HEX
Server: LiteSpeed
System: Linux server315.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: globfdxw (6114)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //home/globfdxw/public_html/wp-content/plugins/pojo-accessibility/assets/build/5641.js
"use strict";(globalThis.webpackChunkpojo_accessibility=globalThis.webpackChunkpojo_accessibility||[]).push([[5641],{26544(e,t,i){i.d(t,{PL:()=>Et,or:()=>it,dT:()=>ut,uM:()=>gi,sk:()=>Qe,TM:()=>ji.A,Mj:()=>Wt,pR:()=>Ci,Yq:()=>vi,Lp:()=>Zt,y2:()=>Qt,Yr:()=>It,qi:()=>ki,ev:()=>me,Ex:()=>oe,lK:()=>H,Dr:()=>Ui,c:()=>dt.c,O7:()=>Ti,in:()=>T,Zh:()=>ct,cy:()=>ei,wT:()=>fi,En:()=>Ni,f:()=>sn,ID:()=>Fi,Nt:()=>N.A,wZ:()=>z.A,Dg:()=>At,gp:()=>Bt,o7:()=>_i,Ov:()=>Rt});var n=i(66704),o=i(95231),a=i(9626),r=i(59921),s=i(27723),l=i(10790);if((0,o.I)(n.A)`
	justify-content: center;
	padding: ${({theme:e})=>`${e.spacing(1)} ${e.spacing(3)}`};
`,9884==i.j)var c=i(34627);if(9884==i.j)var d=i(80984);if(9884==i.j)var p=i(65463);if(9884==i.j)var u=i(98952);if(9884==i.j)var h=i(38716);var m=i(78048);if(9884==i.j)var x=i(50602);if(9884==i.j)var g=i(92810);if(9884==i.j)var f=i(26368);if(9884==i.j)var b=i(92272);var y=i(92182);if(9884==i.j)var v=i(91116);if(9884==i.j)var j=i(73928);var _=i(85848),A=i(50438),w=i(208);if(9884==i.j)var C=i(67159);if(9884==i.j)var E=i(66231);var k=i(5522),S=i(47064),I=i(42679);if(9884==i.j)var D=i(62883);if(9884==i.j)var R=i(74565);const T=9884==i.j?({closeAction:e,showUpgradeButton:t,...i})=>{const{save:n}=(0,a.rX)(),{error:o}=(0,w.m)(),{planData:y}=(0,a.t0)(),{isElementorOne:T}=(0,I.F)(),N="Free"===y?.plan?.name;return(0,l.jsxs)(b.A,{...i,PaperProps:{sx:{backgroundColor:"common.white",minWidth:224}},autoFocus:!1,children:[y?.plan&&(0,l.jsxs)(P,{children:[(0,l.jsx)(h.A,{sx:{width:24,height:24},children:(0,l.jsx)(u.A,{sx:{color:"common.white"}})}),(0,l.jsxs)(m.A,{display:"flex",flexDirection:"column",gap:.5,children:[(0,l.jsx)(j.A,{title:y?.user?.email,children:(0,l.jsx)(_.A,{variant:"caption",color:"text.primary",children:(0,D.b)(y?.user?.email)})}),y?.plan?.name&&(0,l.jsx)(g.A,{variant:"filled",label:y?.plan?.name,size:"tiny",sx:{width:"fit-content"}})]})]}),y?.plan&&(0,l.jsx)(v.A,{disableGutters:!0,children:(0,l.jsx)(f.A,{sx:{my:1}})}),!T&&y?.plan&&(0,l.jsxs)($,{as:"li",children:[(0,l.jsx)(Ni,{type:"scanner",quotaData:y?.scannedPages}),(0,l.jsx)(Ni,{type:"ai",quotaData:y?.aiCredits}),!t&&(0,l.jsx)(x.A,{variant:"outlined",startIcon:N?(0,l.jsx)(d.A,{}):null,onClick:()=>{C.K.sendEvent(E.m.upgradeButtonClicked,{feature:"upgrade plan",component:"my account popup"}),(0,R.Fe)((0,k.b)(r.qQ.ADD_VISITS))},size:"small",fullWidth:!0,color:N?"promotion":"secondary",sx:{marginBlockStart:.5},children:N?(0,s.__)("Upgrade plan","pojo-accessibility"):(0,s.__)("View more plans","pojo-accessibility")})]}),!T&&y?.plan&&(0,l.jsx)(v.A,{disableGutters:!0,children:(0,l.jsx)(f.A,{sx:{my:1}})}),(0,l.jsxs)(M,{dense:!0,onClick:async()=>{try{await S.A.deactivate(),await S.A.redirectToConnect(),await n({ea11y_close_post_connect_modal:!1}),C.K.sendEvent(E.m.menuButtonClicked,{buttonName:"Switch account"})}catch(e){o((0,s.__)("Failed to switch account. Please try again.","pojo-accessibility")),console.error(e)}},children:[(0,l.jsx)(A.Sv,{sx:{color:"action.active"}}),(0,l.jsx)(O,{children:(0,s.__)("Switch account","pojo-accessibility")})]}),(0,l.jsxs)(M,{dense:!0,onClick:()=>{C.K.sendEvent(E.m.menuButtonClicked,{buttonName:"Deactivate subscription"}),(0,R.Fe)(r.qQ.MANAGE_SUBSCRIPTION.replace("{subscriptionId}/",""))},children:[(0,l.jsx)(p.A,{sx:{color:"action.active"}}),(0,l.jsx)(O,{children:(0,s.__)("Deactivate subscription","pojo-accessibility")})]}),(0,l.jsx)(v.A,{disableGutters:!0,children:(0,l.jsx)(f.A,{sx:{my:1}})}),(0,l.jsxs)(M,{dense:!0,onClick:()=>{C.K.sendEvent(E.m.menuButtonClicked,{buttonName:"Manage subscription"}),(0,R.Fe)(r.qQ.MANAGE_SUBSCRIPTION.replace("{subscriptionId}",y?.plan?.subscription_id))},children:[(0,l.jsx)(c.A,{sx:{color:"action.active"}}),(0,l.jsx)(O,{children:(0,s.__)("Manage subscription","pojo-accessibility")})]})]})}:null,M=(0,o.I)(y.A)`
	gap: ${({theme:e})=>e.spacing(1)};

	&.MuiMenuItem-gutters:focus,
	&.MuiMenuItem-gutters:focus-visible {
		box-shadow: inset 0 0 0 3px #5e9ed6;
	}
`,P=(0,o.I)(y.A)`
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;

	gap: ${({theme:e})=>e.spacing(1.5)};
	padding: ${({theme:e})=>e.spacing(.5,2)};
`,$=(0,o.I)(m.A)`
	display: flex;
	flex-direction: column;
	gap: ${({theme:e})=>e.spacing(.5)};
	padding: ${({theme:e})=>e.spacing(1,2)};
`,O=(0,o.I)(_.A)`
	color: ${({theme:e})=>e.palette.text.primary};
	font-size: 14px;
`;(0,o.I)(y.A)`
	&.MuiMenuItem-gutters:focus,
	&.MuiMenuItem-gutters:focus-visible {
		box-shadow: inset 0 0 0 3px #5e9ed6;
	}
`,(0,o.I)(_.A)`
	color: ${({theme:e})=>e.palette.text.primary};
	font-size: 14px;
`;var N=i(67340),z=i(70589),L=i(86752),B=i(99028),F=i(84162);2207==i.j&&(C=i(67159)),2207==i.j&&(E=i(66231));const H=e=>{const{iconDesign:t,updateIconDesign:i}=(0,a.vS)(),n=e=>()=>{i({size:e}),C.K.sendEvent(E.m.sizeTypeClicked,{size:e})};return(0,l.jsxs)(L.A,{children:[(0,l.jsx)(B.A,{id:"icon-size-radio-buttons-group-label",color:"secondary",children:(0,l.jsx)(_.A,{variant:"subtitle2",component:"div",marginBlockEnd:1,children:(0,s.__)("Size","pojo-accessibility")})}),(0,l.jsx)(F.A,{...e,"aria-labelledby":"icon-size-radio-buttons-group-label",name:"icon-size-radio-buttons-group",value:t.size,sx:{display:"flex",flexDirection:"row",gap:2},children:[{value:"large",fontSize:64},{value:"medium",fontSize:44},{value:"small",fontSize:36}].map(e=>(0,l.jsx)(ki,{iconType:"size",option:e,clickHandler:n},e.value))})]})};var G=i(3072);const V=function({size:e},t){const{iconDesign:i}=(0,a.t0)(),n=`lch(from ${i?.color||"#fff"} calc((50 - l) * 100) 0 0)`;return(0,l.jsx)(G.A,{viewBox:"0 0 22 22",fill:"none",sx:{marginInlineEnd:0,fontSize:e,paddingInlineEnd:"1px"},...t,children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.6776 1.86411C11.3515 1.19015 12.2656 0.811523 13.2188 0.811523C14.1719 0.811523 15.086 1.19015 15.7599 1.86411C16.0888 2.19301 16.3474 2.57911 16.5259 2.99902H19.7812C20.5579 2.99902 21.1875 3.62862 21.1875 4.40527C21.1875 5.18192 20.5579 5.81152 19.7812 5.81152H16.5259C16.3474 6.23144 16.0888 6.61753 15.7599 6.94644C15.086 7.6204 14.1719 7.99902 13.2188 7.99902C12.2656 7.99902 11.3515 7.6204 10.6776 6.94644C10.3487 6.61753 10.0901 6.23144 9.91156 5.81152H2.28125C1.5046 5.81152 0.875 5.18192 0.875 4.40527C0.875 3.62862 1.5046 2.99902 2.28125 2.99902H9.91156C10.0901 2.57911 10.3487 2.19301 10.6776 1.86411ZM13.2188 3.62402C13.0116 3.62402 12.8128 3.70633 12.6663 3.85285C12.5198 3.99936 12.4375 4.19807 12.4375 4.40527C12.4375 4.61247 12.5198 4.81119 12.6663 4.9577C12.8128 5.10421 13.0115 5.18652 13.2188 5.18652C13.426 5.18652 13.6247 5.10421 13.7712 4.9577C13.9177 4.81119 14 4.61247 14 4.40527C14 4.19807 13.9177 3.99936 13.7712 3.85285C13.6247 3.70633 13.426 3.62402 13.2188 3.62402ZM4.11508 8.42661C4.78904 7.75265 5.70313 7.37402 6.65625 7.37402C7.60937 7.37402 8.52346 7.75265 9.19741 8.42661C9.52632 8.75551 9.78489 9.14161 9.96344 9.56152H19.7812C20.5579 9.56152 21.1875 10.1911 21.1875 10.9678C21.1875 11.7444 20.5579 12.374 19.7812 12.374H9.96344C9.78489 12.7939 9.52632 13.18 9.19741 13.5089C8.52346 14.1829 7.60937 14.5615 6.65625 14.5615C5.70313 14.5615 4.78904 14.1829 4.11508 13.5089C3.78618 13.18 3.52761 12.7939 3.34906 12.374H2.28125C1.5046 12.374 0.875 11.7444 0.875 10.9678C0.875 10.1911 1.5046 9.56152 2.28125 9.56152H3.34906C3.52761 9.14161 3.78618 8.75551 4.11508 8.42661ZM6.65625 10.1865C6.44905 10.1865 6.25034 10.2688 6.10382 10.4153C5.95731 10.5619 5.875 10.7606 5.875 10.9678C5.875 11.175 5.95731 11.3737 6.10382 11.5202C6.25033 11.6667 6.44905 11.749 6.65625 11.749C6.86345 11.749 7.06216 11.6667 7.20868 11.5202C7.35519 11.3737 7.4375 11.175 7.4375 10.9678C7.4375 10.7606 7.35519 10.5619 7.20868 10.4153C7.06216 10.2688 6.86345 10.1865 6.65625 10.1865ZM13.9588 14.9891C14.6328 14.3152 15.5469 13.9365 16.5 13.9365C17.4531 13.9365 18.3672 14.3152 19.0412 14.9891C19.3701 15.3181 19.6287 15.7043 19.8073 16.1243C20.5719 16.1381 21.1875 16.7623 21.1875 17.5303C21.1875 18.2982 20.5719 18.9224 19.8073 18.9363C19.6287 19.3563 19.3701 19.7425 19.0412 20.0714C18.3672 20.7454 17.4531 21.124 16.5 21.124C15.5469 21.124 14.6328 20.7454 13.9588 20.0714C13.6299 19.7425 13.3714 19.3564 13.1928 18.9365H2.28125C1.5046 18.9365 0.875 18.3069 0.875 17.5303C0.875 16.7536 1.5046 16.124 2.28125 16.124H13.1928C13.3714 15.7041 13.6299 15.318 13.9588 14.9891ZM16.5 16.749C16.2928 16.749 16.0941 16.8313 15.9476 16.9778C15.8011 17.1244 15.7188 17.3231 15.7188 17.5303C15.7188 17.7375 15.8011 17.9362 15.9476 18.0827C16.0941 18.2292 16.2928 18.3115 16.5 18.3115C16.7072 18.3115 16.9059 18.2292 17.0524 18.0827C17.1989 17.9362 17.2812 17.7375 17.2812 17.5303C17.2812 17.3231 17.1989 17.1244 17.0524 16.9778C16.9059 16.8313 16.7072 16.749 16.5 16.749Z",fill:n})})},W=function({size:e},t){const{iconDesign:i}=(0,a.t0)(),n=`lch(from ${i?.color||"#fff"} calc((50 - l) * 100) 0 0)`;return(0,l.jsx)(G.A,{viewBox:"0 0 24 24",fill:"none",sx:{fontSize:e},...t,children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.44.44a1.5 1.5 0 0 1 2.12 0l15.855 15.853c.073.06.141.128.203.204l4.943 4.942a1.5 1.5 0 0 1-2.122 2.122l-4.246-4.247a11.67 11.67 0 0 1-5.198 1.186c-4.881-.002-8.803-2.764-11.781-7.728a1.5 1.5 0 0 1 0-1.544C1.4 9.25 2.738 7.614 4.24 6.363L.44 2.56a1.5 1.5 0 0 1 0-2.122Zm5.934 8.055C5.288 9.355 4.25 10.512 3.27 12c2.513 3.821 5.427 5.5 8.729 5.5h.01a8.67 8.67 0 0 0 2.892-.476l-1.467-1.468a3.833 3.833 0 0 1-4.99-4.99l-2.071-2.07ZM11.996 6.5a9.064 9.064 0 0 0-1.822.18 1.5 1.5 0 0 1-.595-2.94c.798-.162 1.61-.242 2.423-.24 4.882 0 8.805 2.763 11.784 7.728a1.5 1.5 0 0 1 0 1.544c-.823 1.373-1.719 2.579-2.69 3.607a1.5 1.5 0 1 1-2.18-2.061A16.86 16.86 0 0 0 20.729 12C18.216 8.179 15.302 6.5 12 6.5h-.004Z",fill:n})})},U=function({size:e},t){const{iconDesign:i}=(0,a.t0)(),n=`lch(from ${i?.color||"#fff"} calc((50 - l) * 100) 0 0)`;return(0,l.jsx)(G.A,{viewBox:"0 0 19 25",fill:"none",sx:{marginInlineEnd:0,fontSize:e,paddingInlineEnd:"1px"},...t,children:(0,l.jsx)("path",{d:"m4.834 23.375 5-7.5m0 0 5 7.5m-5-7.5v-5m0 0 7.5-2.5m-7.5 2.5-7.5-2.5m8.75-5.5a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Z",stroke:n,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})})},K=function({size:e},t){const{iconDesign:i}=(0,a.t0)(),n=`lch(from ${i?.color||"#fff"} calc((50 - l) * 100) 0 0)`;return(0,l.jsx)(G.A,{viewBox:"0 0 94 16",fill:"none",sx:{fontSize:3*e},...t,children:(0,l.jsx)("path",{d:"M5.64 2.57 2.548 12H.055L4.28.625h1.586L5.641 2.57ZM8.21 12l-3.1-9.43L4.86.625h1.6L10.71 12h-2.5Zm-.14-4.234v1.836H2.062V7.766H8.07ZM15.267 10.398c.276 0 .521-.052.735-.156.213-.11.38-.26.5-.453.125-.198.19-.43.195-.695h2.117a2.817 2.817 0 0 1-.477 1.586c-.312.458-.731.82-1.257 1.086-.526.26-1.115.39-1.766.39-.656 0-1.23-.11-1.719-.328a3.354 3.354 0 0 1-1.21-.906 3.973 3.973 0 0 1-.727-1.36 5.619 5.619 0 0 1-.242-1.671v-.227c0-.599.08-1.156.242-1.672.161-.52.404-.974.726-1.36.323-.39.727-.694 1.211-.913.485-.219 1.052-.328 1.703-.328.693 0 1.3.132 1.82.398.527.266.938.646 1.235 1.14.302.49.456 1.071.461 1.743h-2.117a1.762 1.762 0 0 0-.18-.766c-.11-.229-.27-.411-.484-.547-.209-.14-.466-.21-.774-.21-.328 0-.596.07-.804.21-.209.136-.37.323-.485.563a2.802 2.802 0 0 0-.242.805c-.041.296-.062.609-.062.937v.227c0 .328.02.643.062.945.042.302.12.57.235.805.12.234.283.419.492.554.208.136.479.203.812.203ZM23.76 10.398c.277 0 .522-.052.735-.156.214-.11.38-.26.5-.453.125-.198.19-.43.196-.695h2.117a2.817 2.817 0 0 1-.477 1.586c-.312.458-.732.82-1.258 1.086-.526.26-1.114.39-1.765.39-.656 0-1.23-.11-1.719-.328a3.355 3.355 0 0 1-1.21-.906 3.97 3.97 0 0 1-.727-1.36 5.616 5.616 0 0 1-.243-1.671v-.227c0-.599.081-1.156.243-1.672.161-.52.403-.974.726-1.36.323-.39.727-.694 1.211-.913.484-.219 1.052-.328 1.703-.328.693 0 1.3.132 1.82.398.527.266.938.646 1.235 1.14.302.49.456 1.071.46 1.743h-2.116a1.762 1.762 0 0 0-.18-.766c-.11-.229-.27-.411-.484-.547-.209-.14-.467-.21-.774-.21-.328 0-.596.07-.805.21-.208.136-.37.323-.484.563a2.8 2.8 0 0 0-.242.805 6.74 6.74 0 0 0-.063.937v.227c0 .328.021.643.063.945.041.302.12.57.234.805.12.234.284.419.492.554.209.136.48.203.813.203ZM32.653 12.156c-.656 0-1.245-.104-1.765-.312a3.878 3.878 0 0 1-1.329-.883 3.923 3.923 0 0 1-.828-1.305 4.391 4.391 0 0 1-.289-1.594V7.75c0-.64.091-1.227.274-1.758.182-.531.442-.992.78-1.383.345-.39.761-.69 1.25-.898.49-.214 1.043-.32 1.657-.32.6 0 1.13.099 1.594.296.463.198.851.48 1.164.844.318.365.557.802.719 1.313.161.505.242 1.067.242 1.687v.938h-6.719v-1.5h4.508v-.172a1.95 1.95 0 0 0-.172-.836 1.327 1.327 0 0 0-.5-.594c-.224-.146-.51-.219-.86-.219-.296 0-.551.066-.765.196a1.51 1.51 0 0 0-.523.547c-.13.234-.23.51-.297.828A5.268 5.268 0 0 0 30.7 7.75v.313a3 3 0 0 0 .14.937c.1.286.238.534.415.742.182.209.4.37.656.485.26.114.555.171.883.171a2.74 2.74 0 0 0 1.133-.234c.354-.161.658-.404.914-.726l1.093 1.187c-.177.255-.419.5-.726.734a3.88 3.88 0 0 1-1.094.579 4.512 4.512 0 0 1-1.46.218ZM42.123 9.664a.73.73 0 0 0-.14-.437c-.094-.13-.268-.25-.524-.36-.25-.114-.612-.219-1.086-.312a8.473 8.473 0 0 1-1.195-.352 4.145 4.145 0 0 1-.953-.523 2.276 2.276 0 0 1-.625-.72 2 2 0 0 1-.227-.96c0-.354.076-.688.227-1 .156-.313.378-.589.664-.828a3.142 3.142 0 0 1 1.063-.57c.421-.141.895-.211 1.421-.211.735 0 1.365.117 1.891.351.531.235.938.557 1.219.969.286.406.43.87.43 1.39h-2.25c0-.218-.047-.413-.141-.585a.929.929 0 0 0-.422-.414c-.188-.105-.432-.157-.734-.157-.25 0-.466.045-.649.133a.995.995 0 0 0-.422.344.827.827 0 0 0-.14.469c0 .13.026.247.078.351.057.1.148.19.273.274.125.083.287.161.485.234.203.068.453.13.75.188.609.125 1.153.289 1.632.492.48.198.86.468 1.141.812.281.339.422.784.422 1.336 0 .375-.083.719-.25 1.031a2.488 2.488 0 0 1-.719.82c-.312.23-.687.41-1.125.54-.432.125-.92.187-1.46.187-.787 0-1.454-.14-2-.422-.542-.28-.954-.638-1.235-1.07-.276-.437-.414-.885-.414-1.344h2.133c.01.308.088.555.234.742.151.188.341.323.57.407.235.083.487.125.758.125.292 0 .534-.04.727-.117.192-.084.338-.193.437-.329a.792.792 0 0 0 .156-.484ZM50.492 9.664a.731.731 0 0 0-.14-.437c-.094-.13-.269-.25-.524-.36-.25-.114-.612-.219-1.086-.312a8.469 8.469 0 0 1-1.195-.352 4.145 4.145 0 0 1-.953-.523 2.275 2.275 0 0 1-.625-.72 1.998 1.998 0 0 1-.227-.96c0-.354.076-.688.227-1 .156-.313.377-.589.664-.828a3.142 3.142 0 0 1 1.062-.57c.422-.141.896-.211 1.422-.211.735 0 1.365.117 1.89.351.532.235.938.557 1.22.969.286.406.43.87.43 1.39h-2.25c0-.218-.048-.413-.141-.585a.928.928 0 0 0-.422-.414c-.188-.105-.433-.157-.735-.157-.25 0-.466.045-.648.133a.994.994 0 0 0-.422.344.826.826 0 0 0-.14.469c0 .13.026.247.078.351.057.1.148.19.273.274.125.083.286.161.484.234.203.068.453.13.75.188a8.63 8.63 0 0 1 1.633.492c.48.198.86.468 1.14.812.282.339.423.784.423 1.336 0 .375-.084.719-.25 1.031a2.49 2.49 0 0 1-.72.82c-.312.23-.687.41-1.124.54-.432.125-.92.187-1.461.187-.786 0-1.453-.14-2-.422-.542-.28-.953-.638-1.234-1.07-.276-.437-.414-.885-.414-1.344h2.132c.01.308.089.555.235.742.15.188.34.323.57.407.234.083.487.125.758.125.292 0 .534-.04.726-.117.193-.084.339-.193.438-.329a.792.792 0 0 0 .156-.484ZM56.666 3.547V12h-2.258V3.547h2.258Zm-2.399-2.203c0-.328.115-.6.344-.813.23-.213.536-.32.922-.32.38 0 .685.107.914.32.234.214.351.485.351.813 0 .328-.117.599-.351.812-.23.214-.534.32-.914.32-.386 0-.693-.106-.922-.32a1.063 1.063 0 0 1-.344-.812ZM58.675 0h2.25v10.063L60.698 12h-2.023V0Zm7.602 7.688v.164c0 .63-.068 1.208-.204 1.734-.13.526-.333.982-.609 1.367-.276.38-.62.677-1.031.89-.406.21-.886.313-1.438.313-.515 0-.963-.104-1.343-.312a2.73 2.73 0 0 1-.946-.883 5.016 5.016 0 0 1-.617-1.336 10.16 10.16 0 0 1-.352-1.672v-.36a10.16 10.16 0 0 1 .352-1.671c.156-.51.362-.956.617-1.336.255-.38.57-.675.946-.883.375-.208.817-.312 1.328-.312.557 0 1.041.106 1.453.32.416.208.76.505 1.031.89.276.38.48.834.61 1.36.135.52.203 1.096.203 1.726Zm-2.25.164v-.165c0-.343-.026-.666-.079-.968a2.56 2.56 0 0 0-.25-.805 1.414 1.414 0 0 0-.492-.555c-.203-.135-.466-.203-.789-.203a1.77 1.77 0 0 0-.781.157c-.214.104-.39.25-.531.437a1.991 1.991 0 0 0-.305.672c-.068.255-.11.536-.125.844v1.023c.016.412.083.776.203 1.094.125.312.313.56.563.742.255.177.586.266.992.266.318 0 .58-.063.789-.188a1.26 1.26 0 0 0 .484-.531c.12-.23.203-.498.25-.805.047-.312.07-.65.07-1.015ZM70.2 3.547V12h-2.258V3.547H70.2Zm-2.398-2.203c0-.328.114-.6.343-.813.23-.213.537-.32.922-.32.38 0 .685.107.914.32.235.214.352.485.352.813 0 .328-.117.599-.352.812-.229.214-.534.32-.914.32-.385 0-.692-.106-.922-.32a1.062 1.062 0 0 1-.343-.812ZM74.584 0v12h-2.257V0h2.257ZM78.969 3.547V12H76.71V3.547h2.258ZM76.57 1.344c0-.328.115-.6.344-.813.23-.213.537-.32.922-.32.38 0 .685.107.914.32.234.214.352.485.352.813 0 .328-.118.599-.352.812-.23.214-.534.32-.914.32-.385 0-.693-.106-.922-.32a1.062 1.062 0 0 1-.344-.812ZM85.119 3.547V5.14h-4.922V3.547h4.922ZM81.416 1.46h2.25v7.992c0 .245.03.432.093.563.068.13.167.221.297.273.13.047.294.07.492.07.141 0 .266-.005.375-.015.115-.016.211-.031.29-.047l.007 1.656a4.231 4.231 0 0 1-.625.149 4.643 4.643 0 0 1-.742.054c-.495 0-.927-.08-1.297-.242a1.786 1.786 0 0 1-.843-.797c-.198-.364-.297-.844-.297-1.437V1.46ZM89.058 11.047l2.242-7.5h2.414l-3.398 9.726a5.264 5.264 0 0 1-.297.688c-.12.245-.284.476-.492.695a2.302 2.302 0 0 1-.774.547c-.307.14-.685.211-1.133.211-.213 0-.388-.013-.523-.039a9.164 9.164 0 0 1-.484-.11v-1.648h.18c.062.005.122.008.179.008.297 0 .539-.034.726-.102.188-.067.339-.171.454-.312a1.5 1.5 0 0 0 .273-.531l.633-1.633Zm-.938-7.5 1.836 6.125.32 2.383-1.53.164-3.04-8.672h2.414Z",fill:n})})},Z={color:"info.main",fontSize:44},q=[{value:"person",icon:(0,l.jsx)(U,{sx:Z}),label:(0,s.__)("Accessibility Person Icon","pojo-accessibility")},{value:"eye",icon:(0,l.jsx)(W,{sx:Z}),label:(0,s.__)("Accessibility Eye Icon","pojo-accessibility")},{value:"controls",icon:(0,l.jsx)(V,{sx:Z}),label:(0,s.__)("Accessibility Controls Slider Icon","pojo-accessibility")},{value:"text",icon:(0,l.jsx)(K,{sx:Z}),label:(0,s.__)("Accessibility Text Badge Icon","pojo-accessibility")},{value:"custom",icon:(0,l.jsx)(K,{sx:Z}),label:(0,s.__)("Accessibility Custom Icon","pojo-accessibility")}],X=q,Y=e=>Object.values(q).find(t=>t.value===e);var Q=i(18970);2207==i.j&&(x=i(50602));var J=i(86087),ee=i(44302),te=i(47143);const ie=e=>{const{fallback:t=null,children:i}=e,{checkingPermissions:n,hasUploadPermissions:o}=(0,te.useSelect)(e=>{const t=e("core");return{hasUploadPermissions:t.canUser("read","media"),checkingPermissions:!t.hasFinishedResolution("canUser",["read","media"])}});return(0,l.jsxs)(l.Fragment,{children:[n&&(0,l.jsx)(ee.A,{}),!n&&o?i:t]})},ne=()=>{const[e,t]=(0,J.useState)(!1),{iconDesign:i,updateIconDesign:n}=(0,a.vS)(),{unfilteredUploads:o}=(0,I.F)(),{save:r}=(0,a.rX)(),[c,d]=(0,J.useState)((0,s.__)("Add custom icon","pojo-accessibility"));(0,J.useEffect)(()=>{i?.custom?.url&&d((0,s.__)("Change custom icon","pojo-accessibility"))},[]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(ie,{children:(0,l.jsx)(x.A,{color:"info",onClick:()=>{i?.custom?.url?C.K.sendEvent(E.m.updateCustomIconClicked):C.K.sendEvent(E.m.addCustomIconClicked),o?(()=>{const e=window.wp.media({title:(0,s.__)("Select SVG Icon","pojo-accessibility"),library:{type:"image/svg+xml"},button:{text:(0,s.__)("Use this SVG","pojo-accessibility")},multiple:!1});e.on("select",async()=>{const t=e.state().get("selection").first().toJSON();await(async e=>{const t=await S.A.getMedia(e.url),o={icon:"custom",custom:{...i.custom,id:e.id,url:e.url,mime:e.mime,svg:t}};n(o),i?.custom?.url?C.K.sendEvent(E.m.customIconUpdated):C.K.sendEvent(E.m.customIconAdded)})(t)}),e.uploader.options.uploader.params={upload_source:"ea11y-custom-icon"},e.open()})():t(!0)},startIcon:(0,l.jsx)(Q.A,{}),children:c})}),(0,l.jsx)(ji.A,{open:e,title:(0,s.__)("Allow SVG upload","pojo-accessibility"),approveText:(0,s.__)("Allow SVG upload","pojo-accessibility"),onApprove:async()=>{await r({ea11y_unfiltered_files_upload:!0}),t(!1),window.location.reload()},onCancel:()=>t(!1),children:(0,s.__)("To upload SVG files, you need to enable unfiltered uploads.","pojo-accessibility")})]})},oe=e=>{const{iconDesign:t,updateIconDesign:i}=(0,a.vS)(),n=e=>()=>{i({icon:e}),C.K.sendEvent(E.m.iconTypeSelected,{iconType:e})};return(0,l.jsxs)(L.A,{children:[(0,l.jsxs)(re,{id:"icon-select-radio-buttons-group-label",color:"secondary",children:[(0,l.jsx)(_.A,{variant:"subtitle2",component:"div",marginBlockEnd:1,children:(0,s.__)("Icon","pojo-accessibility")}),(0,l.jsx)(ne,{})]}),(0,l.jsx)(ae,{...e,"aria-labelledby":"icon-select-radio-buttons-group-label",name:"icon-select-radio-buttons-group",value:t.icon,children:X.map(e=>(0,l.jsx)(ki,{iconType:"select",option:e,clickHandler:n},e.value))})]})},ae=(0,o.I)(F.A)`
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-between;
	gap: ${({theme:e})=>e.spacing(2)};
`,re=(0,o.I)(B.A)`
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: ${({theme:e})=>e.spacing(2)};
	align-items: center;
	justify-content: space-between;
`;var se=i(31766);2207==i.j&&(b=i(92272));var le=i(89804),ce=i(75260),de=i(55016),pe=i(60765);const ue=["PX"],he=[{value:0,label:"0"},{value:32,label:"32"}],me=()=>{const{iconDesign:e,updateIconDesign:t}=(0,a.vS)(),[i,n]=(0,J.useState)(0),[o,r]=(0,J.useState)(!0);(0,J.useEffect)(()=>{(e?.cornerRadius?.radius||0===e?.cornerRadius?.radius)&&window?.ea11yWidget?.iconSettings?.style?.cornerRadius||t({cornerRadius:{radius:"text"===e?.icon?4:32,unit:ue[i].toLowerCase()}})},[e?.icon]),(0,J.useEffect)(()=>{const n=e?.cornerRadius?.radius;isNaN(n)&&(r(!1),t({cornerRadius:{radius:0,unit:ue[i].toLowerCase()}})),(n>32||n<0)&&(r(!1),n>32?t({cornerRadius:{radius:32,unit:ue[i].toLowerCase()}}):n<0&&t({cornerRadius:{radius:0,unit:ue[i].toLowerCase()}})),n>=0&&n<=32&&r(!0)},[e?.cornerRadius?.radius]);const c=(0,de.A)({variant:"popover",popupId:"textfield-inner-selection"}),d=(e,n,o)=>{t({cornerRadius:{radius:parseInt(e.target.value),unit:ue[i].toLowerCase()}}),C.K.sendEvent(E.m.radiusChanged,{previous_radius_value:parseInt(o),new_radius_value:parseInt(e.target.value),interaction_type:n})};return(0,l.jsxs)(L.A,{id:"icon-radius-controls-group","aria-label":(0,s.__)("Widget icon radius control","pojo-accessibility"),"aria-describedby":(0,s.__)("Set corner radius for the icon from 0px to 32px using input or slider. Default corner radius value for icon is 32px and for text icon it is 8px.","pojo-accessibility"),"aria-labelledby":"icon-radius-controls-group-label",children:[(0,l.jsx)(B.A,{id:"icon-radius-controls-group-label",color:"secondary","aria-label":(0,s.__)("Widget icon radius control","pojo-accessibility"),children:(0,l.jsx)(_.A,{variant:"subtitle2",component:"div",marginBlockEnd:1,children:(0,s.__)("Corner radius","pojo-accessibility")})}),(0,l.jsxs)(ge,{children:[(0,l.jsx)(xe,{color:"info",name:(0,s.__)("icon radius input field","pojo-accessibility"),error:!o,helperText:o?"":"Max: 32PX",inputProps:{"aria-label":(0,s.sprintf)(
// Translators: %s - units
// Translators: %s - units
(0,s.__)("Numbered input for corner radius in %s.","pojo-accessibility"),ue[i]),"aria-describedby":(0,s.__)("Set corner radius for the icon from 0px to 32px.","pojo-accessibility"),role:"textbox","aria-labelledby":"icon-radius-controls-group-label"},InputProps:{endAdornment:(0,l.jsxs)(se.A,{position:"end",children:[(0,l.jsx)(x.A,{size:"small",color:"inherit",sx:{font:"inherit",minWidth:"initial",width:"15px",fontSize:"14px"},...(0,pe.cO)(c),disabled:!0,"aria-label":(0,s.__)("Corner radius unit","pojo-accessibility"),"aria-describedby":(0,s.__)("Select corner radius unit in pixels.","pojo-accessibility"),role:"button",children:ue[i]}),(0,l.jsx)(b.A,{MenuListProps:{dense:!0},...(0,pe.NA)(c),"aria-label":(0,s.__)("Select corner radius unit","pojo-accessibility"),role:"menu","aria-disabled":"true","aria-describedby":(0,s.__)("Corner radius unit is pixels.","pojo-accessibility"),children:ue.map((e,t)=>(0,l.jsx)(y.A,{onClick:()=>(e=>{n(e),c.close()})(t),children:e},e))})]})},onChange:t=>d(t,"input",e?.cornerRadius?.radius),value:e?.cornerRadius?.radius||0}),(0,l.jsx)(le.A,{color:"info",onChange:t=>d(t,"slider",e?.cornerRadius?.radius),value:e?.cornerRadius?.radius||0,min:0,max:32,marks:he,name:(0,s.__)("icon radius slider","pojo-accessibility"),"aria-label":(0,s.__)("Slider for corner radius","pojo-accessibility"),"aria-describedby":(0,s.__)("Set corner radius for the icon from 0px to 32px.","pojo-accessibility"),role:"slider","aria-valuemin":0,"aria-valuemax":32})]})]})},xe=(0,o.I)(ce.A)`
	width: 105px;
	.wp-admin & .MuiInputBase-input,
	& .MuiInputBase-input:focus {
		background-color: initial;
		box-shadow: none;
		border: 0;
		color: inherit;
		outline: 0;
		padding: 10px 10px 10px 10px;
		&.MuiInputBase-inputSizeSmall {
			padding: 8.5px 8px 8.5px 8px;
		}
		height: 60px;
	}
`,ge=(0,o.I)(m.A)`
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: ${({theme:e})=>e.spacing(4)};
`;var fe=i(33494),be=i(51609);function ye(){return(ye=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}function ve(e,t){if(null==e)return{};var i,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(i=a[n])>=0||(o[i]=e[i]);return o}function je(e){var t=(0,be.useRef)(e),i=(0,be.useRef)(function(e){t.current&&t.current(e)});return t.current=e,i.current}var _e=function(e,t,i){return void 0===t&&(t=0),void 0===i&&(i=1),e>i?i:e<t?t:e},Ae=function(e){return"touches"in e},we=function(e){return e&&e.ownerDocument.defaultView||self},Ce=function(e,t,i){var n=e.getBoundingClientRect(),o=Ae(t)?function(e,t){for(var i=0;i<e.length;i++)if(e[i].identifier===t)return e[i];return e[0]}(t.touches,i):t;return{left:_e((o.pageX-(n.left+we(e).pageXOffset))/n.width),top:_e((o.pageY-(n.top+we(e).pageYOffset))/n.height)}},Ee=function(e){!Ae(e)&&e.preventDefault()},ke=be.memo(function(e){var t=e.onMove,i=e.onKey,n=e.onEnd,o=ve(e,["onMove","onKey","onEnd"]),a=(0,be.useRef)(null),r=je(t),s=je(i),l=je(n),c=(0,be.useRef)(null),d=(0,be.useRef)(!1),p=(0,be.useMemo)(function(){var e=function(e){Ee(e),(Ae(e)?e.touches.length>0:e.buttons>0)&&a.current?r(Ce(a.current,e,c.current)):(i(!1),l())},t=function(){i(!1),l()};function i(i){var n=d.current,o=we(a.current),r=i?o.addEventListener:o.removeEventListener;r(n?"touchmove":"mousemove",e),r(n?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,n=a.current;if(n&&(Ee(t),!function(e,t){return t&&!Ae(e)}(t,d.current)&&n)){if(Ae(t)){d.current=!0;var o=t.changedTouches||[];o.length&&(c.current=o[0].identifier)}n.focus(),r(Ce(n,t,c.current)),i(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),s({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},function(e){var t=e.which||e.keyCode;t>=37&&t<=40&&l()},i]},[s,r,l]),u=p[0],h=p[1],m=p[2],x=p[3];return(0,be.useEffect)(function(){return x},[x]),be.createElement("div",ye({},o,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:a,onKeyDown:h,onKeyUp:m,tabIndex:0,role:"slider"}))}),Se=function(e){return e.filter(Boolean).join(" ")},Ie=function(e){var t=e.color,i=e.left,n=e.top,o=void 0===n?.5:n,a=Se(["react-colorful__pointer",e.className]);return be.createElement("div",{className:a,style:{top:100*o+"%",left:100*i+"%"}},be.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},De=function(e,t,i){return void 0===t&&(t=0),void 0===i&&(i=Math.pow(10,t)),Math.round(i*e)/i},Re=(Math.PI,function(e){return Ne(Te(e))}),Te=function(e){return"#"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?De(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?De(parseInt(e.substring(6,8),16)/255,2):1}},Me=function(e){var t=function(e){var t=e.s,i=e.v,n=e.a,o=(200-t)*i/100;return{h:De(e.h),s:De(o>0&&o<200?t*i/100/(o<=100?o:200-o)*100:0),l:De(o/2),a:De(n,2)}}(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Pe=function(e){var t=e.h,i=e.s,n=e.v,o=e.a;t=t/360*6,i/=100,n/=100;var a=Math.floor(t),r=n*(1-i),s=n*(1-(t-a)*i),l=n*(1-(1-t+a)*i),c=a%6;return{r:De(255*[n,s,r,r,l,n][c]),g:De(255*[l,n,n,s,r,r][c]),b:De(255*[r,r,l,n,n,s][c]),a:De(o,2)}},$e=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Oe=function(e){var t=e.r,i=e.g,n=e.b,o=e.a,a=o<1?$e(De(255*o)):"";return"#"+$e(t)+$e(i)+$e(n)+a},Ne=function(e){var t=e.r,i=e.g,n=e.b,o=e.a,a=Math.max(t,i,n),r=a-Math.min(t,i,n),s=r?a===t?(i-n)/r:a===i?2+(n-t)/r:4+(t-i)/r:0;return{h:De(60*(s<0?s+6:s)),s:De(a?r/a*100:0),v:De(a/255*100),a:o}},ze=be.memo(function(e){var t=e.hue,i=e.onChange,n=e.onChangeEnd,o=Se(["react-colorful__hue",e.className]);return be.createElement("div",{className:o},be.createElement(ke,{onMove:function(e){i({h:360*e.left})},onKey:function(e){i({h:_e(t+360*e.left,0,360)})},onEnd:n,"aria-label":"Hue","aria-valuenow":De(t),"aria-valuemax":"360","aria-valuemin":"0"},be.createElement(Ie,{className:"react-colorful__hue-pointer",left:t/360,color:Me({h:t,s:100,v:100,a:1})})))}),Le=be.memo(function(e){var t=e.hsva,i=e.onChange,n=e.onChangeEnd,o={backgroundColor:Me({h:t.h,s:100,v:100,a:1})};return be.createElement("div",{className:"react-colorful__saturation",style:o},be.createElement(ke,{onMove:function(e){i({s:100*e.left,v:100-100*e.top})},onKey:function(e){i({s:_e(t.s+100*e.left,0,100),v:_e(t.v-100*e.top,0,100)})},onEnd:n,"aria-label":"Color","aria-valuetext":"Saturation "+De(t.s)+"%, Brightness "+De(t.v)+"%"},be.createElement(Ie,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:Me(t)})))}),Be=function(e,t){if(e===t)return!0;for(var i in e)if(e[i]!==t[i])return!1;return!0};function Fe(e,t,i,n){var o=je(i),a=je(n),r=(0,be.useState)(function(){return e.toHsva(t)}),s=r[0],l=r[1],c=(0,be.useRef)({color:t,hsva:s}),d=(0,be.useRef)(!1);(0,be.useEffect)(function(){if(!e.equal(t,c.current.color)){var i=e.toHsva(t);c.current={hsva:i,color:t},l(i),d.current=!1}},[t,e]),(0,be.useEffect)(function(){var t;Be(s,c.current.hsva)||e.equal(t=e.fromHsva(s),c.current.color)||(c.current={hsva:s,color:t},o(t),d.current=!0)},[s,e,o]);var p=(0,be.useCallback)(function(e){l(function(t){return Object.assign({},t,e)})},[]),u=(0,be.useCallback)(function(){d.current&&(d.current=!1,a(c.current.color))},[a]);return[s,p,u]}var He="undefined"!=typeof window?be.useLayoutEffect:be.useEffect,Ge=new Map,Ve=function(e){var t,n=e.className,o=e.colorModel,a=e.color,r=void 0===a?o.defaultColor:a,s=e.onChange,l=e.onChangeEnd,c=ve(e,["className","colorModel","color","onChange","onChangeEnd"]),d=(0,be.useRef)(null);t=d,He(function(){var e=t.current?t.current.ownerDocument:document;if(void 0!==e&&!Ge.has(e)){var n=e.createElement("style");n.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',Ge.set(e,n);var o=i.nc;o&&n.setAttribute("nonce",o),e.head.appendChild(n)}},[]);var p=Fe(o,r,s,l),u=p[0],h=p[1],m=p[2],x=Se(["react-colorful",n]);return be.createElement("div",ye({},c,{ref:d,className:x}),be.createElement(Le,{hsva:u,onChange:h,onChangeEnd:m}),be.createElement(ze,{hue:u.h,onChange:h,onChangeEnd:m,className:"react-colorful__last-control"}))},We={defaultColor:"000",toHsva:Re,fromHsva:function(e){return function(e){return Oe(Pe(e))}({h:e.h,s:e.s,v:e.v,a:1})},equal:function(e,t){return e.toLowerCase()===t.toLowerCase()||Be(Te(e),Te(t))}},Ue=function(e){return be.createElement(Ve,ye({},e,{colorModel:We}))},Ke=/^#?([0-9A-F]{3,8})$/i,Ze=function(e){var t=e.color,i=void 0===t?"":t,n=e.onChange,o=e.onBlur,a=e.escape,r=e.validate,s=e.format,l=e.process,c=ve(e,["color","onChange","onBlur","escape","validate","format","process"]),d=(0,be.useState)(function(){return a(i)}),p=d[0],u=d[1],h=je(n),m=je(o),x=(0,be.useCallback)(function(e){var t=a(e.target.value);u(t),r(t)&&h(l?l(t):t)},[a,l,r,h]),g=(0,be.useCallback)(function(e){r(e.target.value)||u(a(i)),m(e)},[i,a,r,m]);return(0,be.useEffect)(function(){u(a(i))},[i,a]),be.createElement("input",ye({},c,{value:s?s(p):p,spellCheck:"false",onChange:x,onBlur:g}))},qe=function(e){return"#"+e},Xe=i(81591);const Ye=(0,o.I)(function(e){var t=e.prefixed,i=e.alpha,n=ve(e,["prefixed","alpha"]),o=(0,be.useCallback)(function(e){return e.replace(/([^0-9A-F]+)/gi,"").substring(0,i?8:6)},[i]),a=(0,be.useCallback)(function(e){return function(e,t){var i=Ke.exec(e),n=i?i[1].length:0;return 3===n||6===n||!!t&&4===n||!!t&&8===n}(e,i)},[i]);return be.createElement(Ze,ye({},n,{escape:o,format:t?qe:void 0,process:qe,validate:a}))})`
	width: 100%;
	border: 1px solid rgb(0 0 0 / 0.12);
	border-radius: ${({theme:e})=>e.shape.borderRadius}px;
	padding-inline-start: 10px;
`,Qe=()=>{const{iconDesign:e,updateIconDesign:t}=(0,a.vS)(),i=(0,Xe.YQ)(e=>{C.K.sendEvent(E.m.colorChanged,{color:e})},1e3);return(0,l.jsxs)(L.A,{fullWidth:!0,children:[(0,l.jsx)(B.A,{id:"color-picker-label",color:"secondary",children:(0,l.jsx)(_.A,{variant:"subtitle2",component:"div",marginBlockEnd:2,children:(0,s.__)("Color","pojo-accessibility")})}),(0,l.jsxs)(fe.A,{padding:1,border:1,borderColor:"divider",borderRadius:1,children:[(0,l.jsx)(Ue,{color:e.color,onChange:e=>{t({color:e}),i(e)},className:"widget-settings-color-picker"}),(0,l.jsxs)(fe.A,{marginBlockStart:2,display:"flex",children:[(0,l.jsx)(m.A,{padding:2,sx:{backgroundColor:e.color,marginInlineEnd:1},borderRadius:1}),(0,l.jsx)(Ye,{"aria-label":(0,s.__)("HEX color code","pojo-accessibility"),"aria-description":(0,s.__)("Provide the HEX code here without a leading hash sign","pojo-accessibility"),color:e.color,onChange:e=>{t({color:e}),i(e)}})]})]})]})};var Je=i(93248),et=i(94284),tt=i(55984);2207==i.j&&(j=i(73928));const it=({mode:e})=>{const{iconPosition:t,updateIconPosition:i}=(0,a.Aw)(),n=[{value:"top-left",label:(0,s.__)("Top Left","pojo-accessibility")},..."desktop"===e?[{value:"top-center",label:(0,s.__)("Top Center","pojo-accessibility")}]:[],{value:"top-right",label:(0,s.__)("Top Right","pojo-accessibility")},{value:"center-left",label:(0,s.__)("Center Left","pojo-accessibility")},..."desktop"===e?[{value:"empty"}]:[],{value:"center-right",label:(0,s.__)("Center Right","pojo-accessibility")},{value:"bottom-left",label:(0,s.__)("Bottom Left","pojo-accessibility")},..."desktop"===e?[{value:"bottom-center",label:(0,s.__)("Bottom Center","pojo-accessibility")}]:[],{value:"bottom-right",label:(0,s.__)("Bottom Right","pojo-accessibility")}];return(0,l.jsxs)(L.A,{children:[(0,l.jsx)(B.A,{id:"alignment-matrix-control",color:"secondary",children:(0,l.jsx)(_.A,{variant:"subtitle2",component:"div",marginBlockEnd:3,children:(0,s.__)("Default Position","pojo-accessibility")})}),(0,l.jsx)(et.A,{color:"info",elevation:0,children:(0,l.jsx)(m.A,{display:"flex",justifyContent:"center",padding:4,width:"100%",children:(0,l.jsx)(et.A,{color:"secondary",children:(0,l.jsx)(F.A,{dir:"ltr","aria-labelledby":"alignment-matrix-control",value:t[e].position,onChange:t=>{i(e,"position",t.target.value),C.K.sendEvent(E.m.positionButtonClicked,{buttonData:{mode:e,value:t.target.value}})},name:"alignment-matrix-control",sx:{display:"grid",gridTemplateColumns:"desktop"===e?"repeat(3, 1fr)":"repeat(2, 1fr)",gap:1,columnGap:"desktop"===e?6:1,alignItems:"center",borderWidth:5,borderStyle:"solid",borderColor:"secondary.main",borderRadius:1,minWidth:"desktop"===e?"auto":"100px"},children:n.map(e=>"empty"===e.value?(0,l.jsx)(m.A,{},e.value):(0,l.jsx)(j.A,{title:e.label,children:(0,l.jsx)(Je.A,{sx:{justifyContent:"center",margin:0},value:e.value,control:(0,l.jsx)(tt.A,{color:"secondary"})})},e.value))})})})})]})};var nt=i(8546);const ot=["PX","REM","EM"],at=[{value:"left",label:(0,s.__)("To the left","pojo-accessibility")},{value:"right",label:(0,s.__)("To the right","pojo-accessibility")}],rt=[{value:"top",label:(0,s.__)("Higher","pojo-accessibility")},{value:"bottom",label:(0,s.__)("Lower","pojo-accessibility")}],st=(0,o.I)(m.A,{shouldForwardProp:e=>"isError"!==e})`
	display: flex;
	gap: ${({theme:e})=>e.spacing(1)};
	margin-block-start: ${({theme:e})=>e.spacing(2)};
	margin-block-end: ${({theme:e,isError:t})=>t?e.spacing(4):"initial"};

	transition: all 100ms ease-in-out;
`,lt=(0,o.I)(ce.A)`
	width: 200px;
	height: 56px;

	.wp-admin & .MuiInputBase-input,
	& .MuiInputBase-input:focus {
		height: 56px;
		background-color: initial;
		box-shadow: none;
		border: 0;
		color: inherit;
		outline: 0;
		padding: 16.5px 14px 16.5px 14px;

		&.MuiInputBase-inputSizeSmall {
			padding: 8.5px 14px 8.5px 14px;
		}
	}
`,ct=({type:e,disabled:t,mode:i})=>{const{iconPosition:n,updateExactPosition:o}=(0,a.Aw)(),[r,c]=(0,J.useState)(0),[d,p]=(0,J.useState)(n[i]?.exactPosition[e]?.value),[u,h]=(0,J.useState)(d>=5&&d<=550),m=(0,de.A)({variant:"popover",popupId:"position-settings"});return(0,l.jsxs)(st,{isError:!u,role:"group","aria-label":(0,s.sprintf)(
// Translators: %1$s - date, %2$s - time
// Translators: %1$s - date, %2$s - time
(0,s.__)("%1$s icon %2$s settings","pojo-accessibility"),i,e),children:[(0,l.jsx)(lt,{size:"medium",color:"info",error:!u,helperText:u?"":"Invalid value",disabled:t,value:d,onChange:t=>{const a=parseInt(t.target.value,10)||0,r=a>=5&&a<=550;p(t.target.value),h(r),r&&(o(i,e,n[i]?.exactPosition[e]?.direction,a,n[i]?.exactPosition[e]?.unit),C.K.sendEvent(E.m.handleValueChanged,{positionData:{mode:i,type:e,value:a,unit:n[i]?.exactPosition[e]?.unit,direction:n[i]?.exactPosition[e]?.value}}))},inputProps:{"aria-label":(0,s.sprintf)(
// Translators: %s - units
// Translators: %s - units
(0,s.__)("Number of %s","pojo-accessibility"),ot[r]),"aria-describedby":`ea11y-${i}-position-settings`},InputProps:{endAdornment:(0,l.jsxs)(se.A,{position:"end",children:[(0,l.jsx)(x.A,{size:"small",color:"inherit",sx:{font:"inherit",minWidth:"initial"},...(0,pe.cO)(m),disabled:t,children:ot[r]}),(0,l.jsx)(b.A,{MenuListProps:{dense:!0},...(0,pe.NA)(m),children:ot.map((t,a)=>(0,l.jsx)(y.A,{onClick:()=>(t=>{c(t),o(i,e,n[i]?.exactPosition[e]?.direction,n[i]?.exactPosition[e]?.value,ot[t]),m.close(),C.K.sendEvent(E.m.handleUnitChanged,{positionData:{mode:i,type:e,unit:ot[t],value:n[i]?.exactPosition[e]?.direction,direction:n[i]?.exactPosition[e]?.value}})})(a),children:t},t))})]})}}),(0,l.jsx)(nt.A,{fullWidth:!0,color:"info",name:(0,s.__)("Direction","pojo-accessibility"),variant:"outlined",onChange:t=>{o(i,e,t.target.value,n[i]?.exactPosition[e]?.value,n[i]?.exactPosition[e]?.unit),C.K.sendEvent(E.m.handleDirectionChanged,{positionData:{mode:i,type:e,value:n[i]?.exactPosition[e]?.value,unit:n[i]?.exactPosition[e]?.unit,direction:t.target.value}})},disabled:t,value:n[i]?.exactPosition?.[e].direction,MenuProps:{MenuListProps:{sx:{minWidth:150}},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}},children:"horizontal"===e?at.map(e=>(0,l.jsx)(y.A,{value:e.value,children:e.label},e.value)):rt.map(e=>(0,l.jsx)(y.A,{value:e.value,children:e.label},e.value))})]})};var dt=i(99599),pt=i(96989);const ut=()=>{const{selectedMenu:e,widgetMenuSettings:t,skipToContentSettings:i,widgetActivationSettings:n,iconDesign:o,iconPosition:r,hasChanges:c,hasError:d,setHasChanges:p}=(0,a.t0)(),{save:u}=(0,a.rX)(),{success:h,error:m}=(0,w.m)();return(0,l.jsx)(ht,{children:(0,l.jsx)(pt.A,{variant:"contained",color:"primary",onClick:async()=>{let a={};"capabilities"===e.child?a={ea11y_widget_menu_settings:t,ea11y_skip_to_content_settings:i,ea11y_widget_activation_settings:n}:"design"===e.child&&(a={ea11y_widget_icon_settings:{style:o,position:r}});try{await u(a),h((0,s.__)("Settings saved!","pojo-accessibility")),p(!1),C.K.sendEvent(E.m.saveButtonClicked,{savedData:a})}catch(e){m((0,s.__)("Failed to save settings!","pojo-accessibility"))}},disabled:!c||Object.keys(d).some(e=>d[e]),children:(0,s.__)("Save changes","pojo-accessibility")})})},ht=(0,o.I)(m.A)`
	width: 100%;
	display: flex;
	justify-content: flex-end;

	padding: ${({theme:e})=>e.spacing(2)};
	border-block-start: 1px solid ${({theme:e})=>e.palette.divider};
`;var mt=i(77374),xt=i(74456),gt=i(76656),ft=i(16146),bt=i(23136),yt=i(62784),vt=i(63364);const jt=`\n\x3c!-- wp:heading {"textAlign":"center","level":6} --\x3e\n<h6 class="wp-block-heading has-text-align-center">${(0,s.sprintf)((0,s.__)("Accessibility Statement for %s","pojo-accessibility"),"{company_website}")}</h6>\n\x3c!-- /wp:heading --\x3e\n\x3c!-- wp:paragraph --\x3e\n<p>${(0,s.sprintf)((0,s.__)("%s is committed to ensuring digital accessibility for people with disabilities. We are continually improving the user experience for everyone and applying the relevant accessibility standards.","pojo-accessibility"),"<strong>{company_name}</strong>")}</p>\n\x3c!-- /wp:paragraph --\x3e\n\x3c!-- wp:heading {"level":6} --\x3e\n<h6>${(0,s.__)("Conformance status","pojo-accessibility")}</h6>\n\x3c!-- /wp:heading --\x3e\n\x3c!-- wp:paragraph --\x3e\n<p>${(0,s.__)("The Web Content Accessibility Guidelines (WCAG) defines requirements for designers and developers to improve accessibility for people with disabilities. It defines three levels of conformance: Level A, Level AA, and Level AAA.","pojo-accessibility")}</p>\n\x3c!-- /wp:paragraph --\x3e\n\x3c!-- wp:paragraph --\x3e\n<p>${(0,s.sprintf)((0,s.__)("%s is making constant efforts to improve the accessibility of its site and services in the belief that it is our collective moral obligation to allow seamless, accessible, and unhindered use for those of us with disabilities.","pojo-accessibility"),"<strong>{company_name}</strong>")}</p>\n\x3c!-- /wp:paragraph --\x3e\n\x3c!-- wp:paragraph --\x3e\n<p>${(0,s.sprintf)((0,s.__)("We aim to make all pages and content on %s accessible, but some content may not yet fully meet the highest accessibility standards. This could be due to challenges in identifying the most suitable technological solution.","pojo-accessibility"),"<strong>{company_website}</strong>")}</p>\n\x3c!-- /wp:paragraph --\x3e\n\x3c!-- wp:paragraph --\x3e\n<p>${(0,s.__)("We may revise this Statement periodically to reflect improvements or changes to our accessibility practices.","pojo-accessibility")}</p>\n\x3c!-- /wp:paragraph --\x3e\n\x3c!-- wp:heading {"level":6} --\x3e\n<h6>${(0,s.__)("Feedback","pojo-accessibility")}</h6>\n\x3c!-- /wp:heading --\x3e\n\x3c!-- wp:paragraph --\x3e\n<p>${(0,s.sprintf)((0,s.__)("We welcome your feedback on the accessibility of %s website. Please let us know if you encounter accessibility barriers on our website:","pojo-accessibility"),"<strong>{company_name}</strong>")}</p>\n\x3c!-- /wp:paragraph --\x3e\n\x3c!-- wp:paragraph --\x3e\n<p>${(0,s.sprintf)((0,s.__)("E-mail: %s","pojo-accessibility"),"<strong>{company_email}</strong>")}</p>\n\x3c!-- /wp:paragraph --\x3e\n\x3c!-- wp:paragraph --\x3e\n<p>${(0,s.__)("We try to respond to feedback within 3–5 business days.","pojo-accessibility")}</p>\n\x3c!-- /wp:paragraph --\x3e\n\x3c!-- wp:paragraph --\x3e\n<p>${(0,s.sprintf)((0,s.__)("This statement was created on %s.","pojo-accessibility"),"{current_date}")} </p>\n\x3c!-- /wp:paragraph --\x3e`,_t=(0,o.I)(ce.A)`
	width: 100%;

	.wp-admin & .MuiInputBase-input,
	& .MuiInputBase-input:focus {
		background-color: initial;
		box-shadow: none;
		border: 0;
		color: inherit;
		outline: 0;
		padding: 16.5px 14px 16.5px 14px;
		&.MuiInputBase-inputSizeSmall {
			padding: 8.5px 14px 8.5px 14px;
		}
		height: 40px;
	}
`,At=({open:e,close:t})=>{const[i,n]=(0,J.useState)(!0),[o,r]=(0,J.useState)(!0),[c,d]=(0,J.useState)(!0),{success:p,error:u}=(0,w.m)(),{companyData:h,setCompanyData:x,setAccessibilityStatementData:g,setShowAccessibilityGeneratedInfotip:f}=(0,a.t0)(),{save:b}=(0,a.rX)(),y=h.company_name&&h.company_website&&h.company_email&&o&&i&&c,v=()=>{t()},j=(e,t)=>{const i={...h,[e]:t};x(i),((e,t)=>{switch(e){case"company_website":d(/^(https?:\/\/)?([a-zA-Z0-9\u00A1-\uFFFF-]+\.)+[a-zA-Z\u00A1-\uFFFF]{2,}\/?$/.test(t));break;case"company_name":n("string"==typeof(i=t)&&i.trim().length>0);break;case"company_email":r(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t))}var i})(e,t)};return(0,l.jsx)(yt.A,{fallback:(0,l.jsx)(Et,{}),children:(0,l.jsxs)(mt.A,{open:e,onClose:v,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",fullWidth:!0,maxWidth:"lg",sx:{zIndex:99999},children:[(0,l.jsx)(ft.A,{logo:!1,onClose:v,children:(0,l.jsx)(bt.A,{children:(0,s.__)("Statement generator","pojo-accessibility")})}),(0,l.jsx)(gt.A,{dividers:!0,children:(0,l.jsxs)(m.A,{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:8,children:[(0,l.jsxs)(m.A,{children:[(0,l.jsx)(_.A,{variant:"subtitle1",color:"text.primary",children:(0,s.__)("Enter your company info","pojo-accessibility")}),(0,l.jsx)(_.A,{variant:"body2",color:"text.secondary",marginBlockEnd:3,children:(0,s.__)("This will generate an accessibility statement that you can preview on the right.","pojo-accessibility")}),(0,l.jsxs)(L.A,{fullWidth:!0,children:[(0,l.jsx)(B.A,{htmlFor:"ea11y-statement-generator-company-name",children:(0,s.__)("Company name","pojo-accessibility")}),(0,l.jsx)(_t,{type:"text",id:"ea11y-statement-generator-company-name",variant:"outlined",size:"small",color:"secondary",margin:"normal",value:h.company_name,placeholder:"Acme Inc.",onChange:e=>j("company_name",e.currentTarget.value),error:!1===i}),!i&&(0,l.jsx)(vt.A,{children:(0,s.__)("Company name cannot be empty","pojo-accessibility")})]}),(0,l.jsxs)(L.A,{fullWidth:!0,children:[(0,l.jsx)(B.A,{htmlFor:"ea11y-statement-generator-company-website",children:(0,s.__)("Company website","pojo-accessibility")}),(0,l.jsx)(_t,{type:"text",id:"ea11y-statement-generator-company-website",variant:"outlined",size:"small",color:"secondary",margin:"normal",value:h.company_website,placeholder:"https://www.acme.com/",onChange:e=>j("company_website",e.currentTarget.value),error:!1===c}),!c&&(0,l.jsx)(vt.A,{children:(0,s.__)("Please enter a valid domain","pojo-accessibility")})]}),(0,l.jsxs)(L.A,{fullWidth:!0,children:[(0,l.jsx)(B.A,{htmlFor:"ea11y-statement-generator-business-website",children:(0,s.__)("Business email","pojo-accessibility")}),(0,l.jsx)(_t,{type:"text",id:"ea11y-statement-generator-business-website",variant:"outlined",size:"small",color:"secondary",margin:"normal",value:h.company_email,placeholder:"contact@acme.com",onChange:e=>j("company_email",e.currentTarget.value),error:!1===o}),!o&&(0,l.jsx)(vt.A,{children:(0,s.__)("Please enter a valid email","pojo-accessibility")})]})]}),(0,l.jsxs)(m.A,{children:[(0,l.jsx)(_.A,{variant:"subtitle1",color:"text.primary",marginBlockEnd:6,children:(0,s.__)("Preview your accessibility statement","pojo-accessibility")}),(0,l.jsx)(m.A,{border:1,borderColor:"divider",borderRadius:1,padding:2,children:(0,l.jsx)(It,{htmlString:jt,replacements:h})})]})]})}),(0,l.jsxs)(xt.A,{children:[(0,l.jsx)(pt.A,{onClick:v,color:"secondary",children:(0,s.__)("Cancel","pojo-accessibility")}),(0,l.jsx)(pt.A,{onClick:async()=>{const e=((e,t)=>{let i=e;return Object.keys(t).forEach(e=>{const n=`{${e}}`,o=t[e];i=i.replace(new RegExp(n,"g"),o)}),i})(jt,h);try{const i=await S.A.addPage({title:"Accessibility statement",content:e,status:"publish"});await g({statement:e,pageId:i.id,id:i.id,label:"Accessibility statement",createdOn:i.date,link:i.link}),await f(!0),await b({ea11y_accessibility_statement_data:{statement:e,pageId:i.id,id:i.id,createdOn:i.date,link:i.link,label:"Accessibility statement"},ea11y_show_accessibility_generated_page_infotip:!0}),window?.ea11yWidget&&(window.ea11yWidget.accessibilityStatementURL=i.link),await t(),await p("Page created","pojo-accessibility"),C.K.sendEvent(E.m.statementPageCreated)}catch(e){u("Error while creating page","pojo-accessibility"),console.error(e)}},variant:"contained",color:"primary",disabled:!y,children:(0,s.__)("Create statement & page","pojo-accessibility")})]})]})})};var wt=i(68856),Ct=i(21370);const Et=()=>(0,l.jsx)(wt.Ay,{severity:"error",children:(0,l.jsx)(Ct.A,{children:(0,s.__)("Something went wrong!","pojo-accessibility")})});var kt=i(50442);const St=kt.default||kt,It=({htmlString:e,replacements:t})=>{const i=e=>{if("tag"===e.type){const t=e.name;if(["h1","h2","h3","h4","h5","h6","p","span","div","strong"].includes(t))return(0,l.jsx)(_.A,{variant:"p"===t?"body2":"subtitle2",component:t,marginBlockEnd:1,sx:e.attribs.class?{textAlign:"center"}:{},color:"p"===t?"text.secondary":"text.primary",children:e.children&&e.children.map(e=>i(e))})}return"text"===e.type?(e=>{let i=e;return Object.keys(t).forEach(e=>{const n=`{${e}}`,o=t[e];if(""===t[e]){const t=`[${e?.split("_").join(" ")}]`;i=i.replace(new RegExp(n,"g"),t)}i=i.replace(new RegExp(n,"g"),o)}),i})(e.data):null};return(0,l.jsx)(l.Fragment,{children:St(e,{replace:i})})};var Dt=i(43331);const Rt=({src:e,onLoad:t,onError:i})=>{const{planData:n}=(0,a.t0)();return(0,J.useEffect)(()=>{if(document.querySelector(`script[src="${e}"]`))return void console.log(`Script with src "${e}" already loaded.`);const o=document.createElement("script");return o.src=e||`${window?.ea11ySettingsData?.widgetUrl}?api_key=${n?.public_api_key}`,o.async=!0,o.referrerPolicy="origin",o.onload=()=>{console.log(`Script loaded successfully: ${o.src}`),t?t():console.log("External script loaded!")},o.onerror=()=>{console.error(`Failed to load script: ${o.src}`),i?i():console.error("Failed to load the external script.")},document.head.appendChild(o),()=>{document.getElementById(Dt.no)&&document.getElementById(Dt.no).remove(),document.head.removeChild(o),console.log(`Script removed: ${o.src}`)}},[e,t,i]),null};var Tt=i(97579),Mt=i(42666),Pt=i(49775),$t=i(18650);const Ot=(0,o.I)(Mt.A)`
	padding: ${({theme:e})=>e.spacing(2)};
	margin-block: ${({theme:e})=>e.spacing(4)};
	margin-inline: auto;
	max-width: 1200px;
`,Nt=(0,o.I)(m.A)`
	display: flex;
	align-items: center;
	justify-content: space-between;
`,zt=(0,o.I)($t.A)`
	input {
		height: 56px !important;
	}
`,Lt=(0,o.I)(_.A)`
	display: flex;
	align-items: center;
	gap: 8px;
`,Bt=()=>{const{widgetActivationSettings:e,setWidgetActivationSettings:t,setHasChanges:i}=(0,a.t0)();return(0,l.jsxs)(Ot,{variant:"outlined",children:[(0,l.jsxs)(Nt,{children:[(0,l.jsxs)(Lt,{variant:"subtitle1",component:"h2",id:"ea11y-widget-activation-toggle",children:[(0,s.__)("Widget Activation","pojo-accessibility"),(0,l.jsx)(Pt.A,{tabIndex:"0",content:(0,l.jsxs)(m.A,{sx:{padding:2,maxWidth:"250px"},children:[(0,l.jsx)(_.A,{variant:"subtitle2",sx:{marginBlockEnd:1},children:(0,s.__)("Widget Activation","pojo-accessibility")}),(0,l.jsx)(_.A,{variant:"body2",children:(0,s.__)("Disabling it will prevent the widget from loading entirely.","pojo-accessibility")})]}),placement:"top",arrow:!0,children:(0,l.jsx)(Tt.A,{fontSize:"small"})})]}),(0,l.jsx)(zt,{size:"medium",color:"info",checked:e.enabled??!0,onChange:()=>{const n=!e.enabled;t({...e,enabled:n}),i(!0),C.K.sendEvent(E.m.toggleClicked,{state:n?"on":"off",type:"Widget activation"})},inputProps:{"aria-labelledby":"ea11y-widget-activation-toggle"}})]}),(0,l.jsx)(_.A,{variant:"body1",children:(0,s.__)("Enable or disable the accessibility widget on your website.","pojo-accessibility")})]})};var Ft=i(21627),Ht=i(73916),Gt=i(99054),Vt=i.n(Gt);const Wt=({content:e})=>{const[t,i]=(0,J.useState)(!1),[n,o]=(0,J.useState)(!1);return(0,l.jsx)(j.A,{open:t,onClose:()=>{i(!1),setTimeout(()=>o(!1),200)},onOpen:()=>{i(!0)},placement:"top",title:n?(0,s.__)("Copied!","pojo-accessibility"):(0,s.__)("Copy link","pojo-accessibility"),arrow:!0,PopperProps:{modifiers:[{name:"offset",options:{offset:[0,-16]}},{name:"zIndex",enabled:!0,phase:"beforeWrite",fn:({state:e})=>{e.styles.popper.zIndex="99999"}}]},children:(0,l.jsx)(Ht.A,{onClick:async()=>{await Vt()(e),o(!0)},sx:{marginInlineStart:1},children:(0,l.jsx)(Ft.A,{width:"1em",height:"1em"})})})};var Ut=i(59471),Kt=i(93832);2207==i.j&&(R=i(74565));const Zt=()=>{const{accessibilityStatementData:e}=(0,a.t0)();return(0,l.jsx)(j.A,{placement:"top",title:(0,s.__)("Edit page","pojo-accessibility"),arrow:!0,PopperProps:{modifiers:[{name:"offset",options:{offset:[0,-16]}},{name:"zIndex",enabled:!0,phase:"beforeWrite",fn:({state:e})=>{e.styles.popper.zIndex="99999"}}]},children:(0,l.jsx)(Ht.A,{onClick:()=>{const t=window?.ea11ySettingsData?.adminUrl,i=(0,Kt.addQueryArgs)(`${t}post.php`,{post:e?.pageId,action:"edit"});(0,R.Fe)(i)},sx:{marginInlineStart:1},"aria-label":"Edit accessibility statement page",children:(0,l.jsx)(Ut.A,{})})})};var qt=i(5544),Xt=i(23712),Yt=i(82624);const Qt=()=>{const{setShowAccessibilityGeneratedInfotip:e}=(0,a.t0)(),{save:t}=(0,a.rX)();return(0,l.jsxs)(Mt.A,{elevation:0,sx:{maxWidth:300},children:[(0,l.jsx)(Yt.A,{title:""}),(0,l.jsx)(Xt.A,{children:(0,l.jsx)(_.A,{variant:"body2",color:"text.secondary",children:(0,s.__)("We went ahead and linked the accessibility statement page you just created to your widget.","pojo-accessibility")})}),(0,l.jsx)(qt.A,{children:(0,l.jsx)(x.A,{size:"small",variant:"contained",color:"info",onClick:async()=>{e(!1),await t({ea11y_show_accessibility_generated_page_infotip:!1})},children:(0,s.__)("Got it","pojo-accessibility")})})]})},Jt=(0,o.I)(m.A)`
	display: grid;
	justify-content: space-evenly;

	gap: ${({theme:e})=>e.spacing(5)};
	padding: ${({theme:e})=>e.spacing(2)};

	grid-template-columns: repeat(2, 1fr);
	${({theme:e})=>e.breakpoints.down("lg")} {
		grid-template-columns: repeat(1, 1fr);
	}
`,ei=({children:e})=>(0,l.jsx)(Jt,{children:e});var ti=i(57936),ii=i(46682),ni=i(73452),oi=i(62646),ai=i(56664),ri=i(17614),si=i(63546),li=i(2976);const ci=(0,o.I)(ai.A)`
	border: none;
	width: 100%;
`,di=(0,o.I)(si.A)`
	padding: 0;
	min-height: auto;
	justify-content: flex-start;

	&.Mui-expanded {
		min-height: auto;
	}

	& .MuiAccordionSummary-content,
	& .MuiAccordionSummary-content.Mui-expanded {
		margin: 0 !important;
		align-items: center;
		flex-grow: 0;
	}
`,pi=(0,o.I)(m.A)`
	display: flex;
	gap: 16px;
	align-items: flex-start;
`,ui=(0,o.I)(B.A)`
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	padding-block-start: 7px;
`,hi=(0,o.I)(ce.A)`
	width: 100%;
	input {
		height: 36px;
	}
`,mi=(0,o.I)(ri.A)`
	padding: 5px 45px 5px 0;
`,xi=({sitemap:e})=>{const{widgetMenuSettings:t,setWidgetMenuSettings:i,hasChanges:n,setHasChanges:o,hasError:r,setHasError:c}=(0,a.t0)();return(0,l.jsxs)(ci,{children:[(0,l.jsxs)(di,{"aria-controls":"panel-content",id:"panel-header",children:[(0,l.jsx)(li.A,{sx:{padding:0},children:e?.icon}),(0,l.jsx)(oi.A,{primary:e?.title,sx:{flexGrow:0,marginInlineEnd:1},id:"ea11y-sitemap-toggle"})]}),(0,l.jsx)(mi,{children:(0,l.jsxs)(pi,{children:[(0,l.jsxs)(ui,{htmlFor:"sitemap-url",children:[(0,s.__)("Sitemap URL","pojo-accessibility"),(0,l.jsx)(Pt.A,{content:(0,l.jsx)(_.A,{variant:"body2",sx:{p:2},children:(0,s.__)("You need to add a link to activate this","pojo-accessibility")}),placement:"top",arrow:!0,children:(0,l.jsx)(Tt.A,{fontSize:"small"})})]}),(0,l.jsxs)(m.A,{sx:{flexGrow:1},children:[(0,l.jsx)(hi,{id:"sitemap-url",type:"url",onChange:e=>{i({...t,sitemap:{enabled:!0,url:e.target.value}});const n=(0,R.wv)(e.target.value);c({...r,sitemap:!n}),o(n)},onBlur:()=>{n&&C.K.sendEvent(E.m.fieldContentUpdated,{fieldName:"sitemap-url",value:t.sitemap?.url})},value:t.sitemap?.url,error:r.sitemap,size:"small",variant:"outlined"}),r.sitemap&&(0,l.jsx)(_.A,{variant:"caption",color:"error",children:(0,s.__)("Please enter valid URL!","pojo-accessibility")})]})]})})]})},gi=({childKey:e,childValue:t,parentKey:i,disableOptions:n})=>{const{widgetMenuSettings:o,setWidgetMenuSettings:r,setHasChanges:s,hasError:c,setHasError:d,planData:p}=(0,a.t0)(),u=()=>{const t=p?.plan?.features;return t?.[e.replace("-","_")]};return(0,l.jsxs)(ti.A,{as:"div",disableGutters:!0,sx:{p:"4px"},children:["sitemap"===e?(0,l.jsx)(xi,{sitemap:t}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(ii.A,{children:t.icon}),(0,l.jsxs)(m.A,{display:"flex",flexDirection:"row",alignItems:"center",children:[(0,l.jsx)(B.A,{htmlFor:`ea11y-${e}-toggle`,children:(0,l.jsx)(oi.A,{primary:t.title})}),t?.pro&&!u()&&(0,l.jsx)(fi,{source:"icon",childKey:e,childValue:t,enabled:u(),showIcon:!0})]})]}),(0,l.jsx)(ni.A,{sx:{top:"19px"},children:(0,l.jsx)(fi,{source:"toggle",childKey:e,childValue:t,enabled:u(),children:(0,l.jsx)(vi,{id:`ea11y-${e}-toggle`,checked:o[e]?.enabled||!1,onChange:()=>{return t=e,void r(e=>{const i={...e,[t]:{...e[t],enabled:!e[t]?.enabled}};return"sitemap"===t&&d({...c,sitemap:!e[t]?.enabled&&!(0,R.wv)(e[t]?.url)}),s(!0),window?.ea11yWidget?.toolsSettings&&window?.ea11yWidget?.widget&&(window.ea11yWidget.toolsSettings=i,window?.ea11yWidget?.widget.updateState()),e[t]&&C.K.sendEvent(E.m.toggleClicked,{state:e[t]?.enabled?"off":"on",type:t}),i});var t},disabled:!(!t?.pro||u())||!!o[e]?.enabled&&n})})})]},e)};2207==i.j&&(d=i(80984)),2207==i.j&&(g=i(92810));const fi=({children:e,childKey:t,source:i,enabled:n,childValue:o,showIcon:a=!1})=>{const c=(0,l.jsxs)(Mt.A,{elevation:0,sx:{maxWidth:300},children:[(0,l.jsx)(Yt.A,{title:(0,s.__)("Access more advanced features","pojo-accessibility")}),(0,l.jsx)(Xt.A,{children:(0,l.jsx)(_.A,{variant:"body2",color:"text.secondary",children:(0,s.__)("Upgrade to get more customization and other pro features to boost your site.","pojo-accessibility")})}),(0,l.jsx)(qt.A,{children:(0,l.jsx)(x.A,{size:"medium",color:"promotion",variant:"contained",startIcon:(0,l.jsx)(d.A,{}),onClick:()=>{"screen-reader"===t&&"icon"===i&&((0,R.Fe)((0,k.b)(r.qQ.SCREEN_READER_ICON)),C.K.sendEvent(E.m.upgradeButtonClicked,{feature:"screen reader",component:"pro icon"})),"screen-reader"===t&&"toggle"===i&&((0,R.Fe)(r.qQ.SCREEN_READER_TOGGLE),C.K.sendEvent(E.m.upgradeButtonClicked,{feature:"screen reader",component:"toggle"})),Dt.A_.REMOVE_BRANDING===t&&"icon"===i&&((0,R.Fe)((0,k.b)(r.qQ.ALLY_LABEL_ICON)),C.K.sendEvent(E.m.upgradeButtonClicked,{feature:"ally label",component:"pro icon"})),Dt.A_.REMOVE_BRANDING===t&&"toggle"===i&&((0,R.Fe)((0,k.b)(r.qQ.ALLY_LABEL_TOGGLE)),C.K.sendEvent(E.m.upgradeButtonClicked,{feature:"ally label",component:"toggle"}))},children:(0,s.__)("Upgrade now","pojo-accessibility")})})]});return o?.pro||"pro"===o?(o?.pro||"pro"===o)&&n?e:(0,l.jsxs)(Pt.A,{placement:"top",content:c,disableFocusListener:!0,PopperProps:{sx:{zIndex:9999999999}},onOpen:()=>{let e="",n="";"screen-reader"===t&&"toggle"===i?(e="screen reader",n="toggle"):"screen-reader"===t&&"icon"===i?(e="screen reader",n="icon"):Dt.A_.REMOVE_BRANDING===t&&"icon"===i?(e="ally label",n="pro icon"):Dt.A_.REMOVE_BRANDING===t&&"toggle"===i&&(e="ally label",n="toggle"),C.K.sendEvent(E.m.upgradeTooltipTriggered,{feature:e,component:n})},children:[a&&(0,l.jsx)(bi,{color:"promotion",variant:"standard",icon:(0,l.jsx)(A.Qc,{}),size:"small"}),e]}):e},bi=(0,o.I)(g.A)`
	margin-inline-start: ${({theme:e})=>e.spacing(1)};
	height: 26px;
	width: 26px;

	.MuiChip-label {
		padding: 0;
	}
`,yi=(0,o.I)($t.A)`
	input {
		height: 56px !important;
	}
`,vi=e=>(0,l.jsx)(yi,{size:"medium",color:"info",...e});var ji=i(54866);const _i=({icon:e,size:t,radius:i,control:n,type:o})=>{const{iconDesign:r}=(0,a.t0)(),s=`lch(from ${r?.color||"#2563EB"} calc((50 - l) * 100) 0 0)`;let c=i||r?.cornerRadius?.radius+r?.cornerRadius?.unit,d=i||r?.cornerRadius?.radius-3+r?.cornerRadius?.unit,p=t,u=1,h=t,m=t;return"select"===n&&"text"===o&&(c=1,d=.5),"size"===n&&"text"===o&&(p=t>50?1.2*t:1*t),u=t>=64?2:t>=44&&t<64?1.5:1,64===t?(m=t-16,h=t-16,"text"===o&&(m=1.9*t-16,h=t-16)):44===t?(m=t-14,h=t-14,"text"===o&&(m=1.9*t-14,h=t-14)):(m=t-12,h=t-12,"text"===o&&(m=1.9*t-12,h=t-12)),(0,l.jsx)(Ai,{sx:{backgroundColor:r?.color,borderRadius:c,width:"text"===o?1.9*t:t,height:t},children:(0,l.jsxs)(wi,{sx:{border:u,borderColor:s,borderRadius:d,padding:t>=50?"12px":1,width:m,height:h},children:["custom"!==o&&(0,J.cloneElement)(e,{size:p/2.5}),"custom"===o&&(0,l.jsx)(Ci,{size:p/2.5})]})})},Ai=(0,o.I)(m.A)`
	display: flex;
	justify-content: center;
	align-items: center;
	padding: ${({theme:e})=>e.spacing(1)};
`,wi=(0,o.I)(m.A)`
	display: inline-flex;
	justify-content: center;
	align-items: center;
`,Ci=({size:e})=>{const{iconDesign:t}=(0,a.t0)(),i=`lch(from ${t?.color||"#fff"} calc((50 - l) * 100) 0 0)`;return(0,l.jsx)(Ei,{className:"custom-icon",style:{display:"flex",alignItems:"center",justifyContent:"center"},dangerouslySetInnerHTML:{__html:t?.custom?.svg},size:e,strokeColor:i})},Ei=(0,o.I)("div")`
	svg {
		font-size: ${({size:e})=>e}px;
		width: ${({size:e})=>e}px;
		fill: ${({strokeColor:e})=>e};

		path {
			fill: ${({strokeColor:e})=>e};
		}
	}
`,ki=({iconType:e,option:t,clickHandler:i})=>{const{iconDesign:n}=(0,a.vS)(),[o,r]=(0,J.useState)(!1);(0,J.useEffect)(()=>{const i="custom"===t.value&&"select"===e;r(i)},[]);const c="select"===e?t.icon:Y(n.icon)?.icon,d="select"===e?44:t.fontSize,p="select"===e?100:null,u="select"===e?t.value:Y(n.icon)?.value;if("custom"===t.value&&!n.custom)return null;const h="select"===e?n.icon:n.size;return(0,l.jsxs)(Si,{variant:"outlined",onClick:i(t.value),sx:{borderColor:h===t.value?"info.main":"divider",borderWidth:h===t.value?2:1},children:[o&&(0,l.jsx)(Ii,{label:(0,s.__)("Custom","pojo-accessibility"),size:"small"}),(0,l.jsx)(_i,{icon:c,size:d,radius:p,color:n?.color,control:e,type:u}),(0,l.jsx)(tt.A,{value:t.value,inputProps:{"aria-label":t.label},sx:{opacity:0,position:"absolute"}})]},t.value)},Si=(0,o.I)(et.A)`
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	gap: 12px;
	align-items: center;
	justify-content: center;
	padding: 3px;
	min-width: 10px;
	width: 100px;
	min-height: 100px;
	box-shadow: ${({theme:e})=>e.shadows[0]};
	cursor: pointer;
	position: relative;

	:hover {
		box-shadow: 0 0 15px 0 rgb(37 99 235 / 0.15);
		border-color: ${({theme:e})=>e.palette.info.main};
	}
`,Ii=(0,o.I)(g.A)`
	position: absolute;
	top: 5px;
	left: 5px;
	font-size: 10px;
	height: 16px;
`;var Di=i(14174),Ri=i(3582);const Ti=e=>{const[t,i]=(0,J.useState)(""),{accessibilityStatementData:n,setAccessibilityStatementData:o,showAccessibilityGeneratedInfotip:r}=(0,a.t0)(),c=(0,Ri.useEntityRecords)("postType","page",{per_page:10}),d=(0,Ri.useEntityRecords)("postType","page",{per_page:-1,search:t}),p=t.length>0&&!d?.hasResolved,u=(0,J.useMemo)(()=>t?.length>0&&d?.records?d?.records:c?.records||[],[t,c?.records,d?.records]),h=(0,J.useMemo)(()=>u?u.map(e=>({label:e.title.rendered,id:e.id,link:e.link,pageId:e.id})):[],[u]);return(0,l.jsx)(Pt.A,{placement:"right-start",content:(0,l.jsx)(Qt,{}),disableHoverListener:!0,disableFocusListener:!0,PopperProps:{sx:{zIndex:99999999999}},open:r,children:(0,l.jsx)(Di.A,{...e,options:h,renderInput:e=>(e=>(0,l.jsx)(Mi,{...e,placeholder:(0,s.__)("Search for a page","pojo-accessibility"),onChange:e=>{const t=e.target.value;i(t)},color:"info"}))(e),sx:{width:300},onChange:(e,t)=>{(e=>{o({...n,pageId:e?.id,link:e?.link,id:e?.id,label:e?.label}),C.K.sendEvent(E.m.statementPageSelected,{page:e?.link})})(t)},getOptionLabel:e=>e.label||"",loading:p,loadingText:(0,s.__)("Searching…","pojo-accessibility"),noOptionsText:p?(0,s.__)("Searching…","pojo-accessibility"):(0,s.__)("No pages found","pojo-accessibility"),clearOnBlur:!1,value:n})})},Mi=(0,o.I)(ce.A)`
	& .MuiAutocomplete-input,
	& .MuiAutocomplete-input:focus,
	& .MuiAutocomplete-input:focus-visible {
		border: none;
		outline: none;
		box-shadow: none;
	}
`;if(9884==i.j)var Pi=i(58116);if(9884==i.j)var $i=i(20026);const Oi={visits:{title:(0,s.__)("Widget loads","pojo-accessibility"),infotipDescription:(0,s.__)("This is how many times your widget loads for each unique IP/device in a 24-hour span across your sites this month. Upgrade if you’re nearing your limit to keep all features available.","pojo-accessibility")},scanner:{title:(0,s.__)("Scanned URLs","pojo-accessibility"),infotipDescription:(0,s.__)("This shows how many URLs you’ve scanned for accessibility in total. If you’re reaching your limit, consider upgrading to keep scanning new pages.","pojo-accessibility")},ai:{title:(0,s.__)("AI credits used","pojo-accessibility"),infotipDescription:(0,s.__)("This is how many AI credits you’ve used to resolve issues or to generate content. Upgrade if you’re nearing your plan limit to keep full functionality.","pojo-accessibility"),lockedDescription:(0,s.__)("Upgrade your plan to unlock AI credits for generating alt‑text, one‑click accessibility fixes, and more.","pojo-accessibility")}},Ni=9884==i.j?({type:e,quotaData:t})=>{const i=0===t?.allowed?0:Math.round(t?.used/t?.allowed*100),n=0===t?.allowed;return(0,l.jsxs)(zi,{children:[(0,l.jsxs)(m.A,{display:"flex",justifyContent:"space-between",children:[(0,l.jsxs)(_.A,{variant:"body2",color:n?"text.disabled":"text.secondary",display:"flex",alignItems:"center",gap:.5,sx:{fontSize:"12px"},children:[Oi[e]?.title,(0,l.jsx)(Pt.A,{placement:"bottom",PopperProps:{sx:{width:"210px"},disablePortal:!0},content:(0,l.jsx)(_.A,{variant:"body2",color:"text.secondary",fontSize:"0.75rem",padding:2,children:n?Oi[e]?.lockedDescription:Oi[e]?.infotipDescription}),children:n?(0,l.jsx)(Pi.A,{sx:{fontSize:"medium",color:"text.primary",opacity:.5}}):(0,l.jsx)(Tt.A,{sx:{fontSize:"medium"}})})]}),(0,l.jsx)(m.A,{display:"flex",flexDirection:"row",gap:.5,alignItems:"center",children:(0,l.jsx)(_.A,{variant:"body2",color:n?"text.disabled":"text.primary",sx:{fontSize:"12px"},children:n?"0/0":`${(0,R.g6)(t?.used)} / ${(0,R.g6)(t?.allowed)}`})})]}),(0,l.jsx)($i.A,{sx:{"& .MuiLinearProgress-bar":{animation:"none",backgroundColor:n&&"text.disabled"},animation:"none"},value:i,variant:"buffer",valueBuffer:100,color:i<80?"primary":i>=80&&i<95?"warning":"error"})]})}:null,zi=(0,o.I)(m.A)`
	display: inline-flex;
	flex-direction: column;
	gap: ${({theme:e})=>e.spacing(1)};
	width: 100%;
	margin-block-end: ${({theme:e})=>e.spacing(1)};
`;if(9884==i.j)var Li=i(94382);if(9884==i.j)var Bi=i(42645);const Fi=9884==i.j?()=>{const{planData:e,openSidebar:t}=(0,a.t0)();if(!e?.scannedPages||!e?.aiCredits)return null;const{scannedPages:i,aiCredits:n}=e,o=Math.round(i.used/i.allowed*100),r=Math.round(n.used/n.allowed*100),c=o>=80&&o<100||r>=80&&r<100;return o>=100||r>=100?(0,l.jsx)(j.A,{title:(0,s.__)("You’re reached your plan’s limit","pojo-accessibility"),children:(0,l.jsx)(Li.A,{sx:{color:"error.dark"},fontSize:"16px"})}):c?(0,l.jsx)(j.A,{title:(0,s.__)("You’re nearing your plan’s limit","pojo-accessibility"),children:(0,l.jsx)(Bi.A,{sx:{color:"warning.light",justifySelf:t?"auto":"right",alignSelf:t?"auto":"start",fontSize:t?"inherit":"16px",position:t?"relative":"absolute",top:"0",right:t?"auto":"10px"}})}):null}:null;if(9884==i.j)var Hi=i(13581);if(9884==i.j)var Gi=i(95726);if(9884==i.j)var Vi=i(72608);var Wi=i(31370);const Ui=9884==i.j?({keyName:e,item:t})=>{const{openSidebar:i,selectedMenu:n,setSelectedMenu:o,planData:r}=(0,a.t0)(),{isElementorOne:s,isRTL:c}=(0,I.F)(),[d,p]=(0,J.useState)({widget:!0}),[u,h]=(0,J.useState)({popupPositionAbove:0,popupPositionBefore:0}),m=c?"left":"right",x=(0,J.useRef)(null),g=e,f=r?.plan?.features?Object.keys(r.plan.features).filter(e=>Boolean(r.plan.features[e])&&"false"!==r.plan.features[e]):null,b=(e,t,i)=>{o({parent:t,child:i||null}),window.location.hash=i||t,C.K.sendEvent(E.m.menuButtonClicked,{buttonName:i||t})},y=e=>!s&&f&&e.proIcon&&!f.includes(e.proIcon),v=()=>{if(x.current&&!i&&t?.children){const e=x.current.getBoundingClientRect();h({popupPositionAbove:e.top,popupPositionBefore:c?window.innerWidth-e.left+2:e.right+2})}},_=!i,A=!!t?.children,w=d[g];return(0,l.jsxs)(Qi,{ref:x,hasChildItems:A,isSidebarCollapsed:_,disableGutters:!0,disablePadding:!0,dense:!0,onMouseEnter:v,onFocus:v,children:[(0,l.jsxs)(Ki,{onClick:()=>{return A?(t.name,e=g,p(t=>({...t,[e]:!t[e]})),void C.K.sendEvent(E.m.menuButtonClicked,{buttonName:e})):b(t.name,g);var e},selected:g===n?.parent&&(!n?.child||_),children:[(0,l.jsx)(j.A,{title:t?.name,placement:m,disableHoverListener:i||A,children:(0,l.jsx)(Zi,{"aria-hidden":!_,isSidebarCollapsed:_,children:t.icon})}),!_&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(qi,{primary:t.name}),!y(t)&&t?.infotip,y(t)&&(0,l.jsx)(Yi,{color:"promotion",variant:"standard",icon:(0,l.jsx)(Wi.A,{size:"tiny"}),size:"tiny"}),A&&(0,l.jsx)(Vi.A,{in:!w,children:(0,l.jsx)(Hi.A,{})})]})]}),A&&(0,l.jsxs)(nn,{isSidebarCollapsed:_,isItemExpanded:w,popupPosition:u,children:[_&&(0,l.jsx)(Ji,{primary:t.name}),(0,l.jsx)(Gi.A,{disablePadding:!0,dense:!0,sx:{paddingBlockStart:1},children:Object.entries(t?.children).map(([e,t])=>(0,l.jsx)(Xi,{dense:!0,children:(0,l.jsxs)(en,{isSidebarCollapsed:_,selected:e===n?.child,onClick:()=>b(t.name,g,e),children:[(0,l.jsx)(tn,{primary:t?.name,primaryTypographyProps:{color:"text.secondary"}}),!y(t)&&t?.infotip,y(t)&&(0,l.jsx)(Yi,{color:"promotion",variant:"standard",icon:(0,l.jsx)(Wi.A,{size:"tiny"}),size:"tiny"})]})},e))})]})]},t?.key)}:null,Ki=(0,o.I)(n.A)`
	justify-content: center;
	border-radius: ${({theme:e})=>e.shape.borderRadius}px;
	padding: ${({theme:e})=>e.spacing(.5,1.5)};
`,Zi=(0,o.I)(ii.A,{shouldForwardProp:e=>"isSidebarCollapsed"!==e})`
	/* For smoother sidebar */
	padding: ${({isSidebarCollapsed:e,theme:t})=>e?t.spacing(.5):"auto"};
	margin-inline-end: ${({isSidebarCollapsed:e,theme:t})=>e?"0 !important":t.spacing(1)};
`,qi=(0,o.I)(oi.A)`
	text-align: start;
	white-space: nowrap;
`,Xi=(0,o.I)(ti.A)`
	padding: 0;
`,Yi=(0,o.I)(g.A)`
	height: 26px;
	width: 26px;

	.MuiChip-label {
		padding: 0;
	}
`,Qi=(0,o.I)(ti.A,{shouldForwardProp:e=>"hasChildItems"!==e&&"isSidebarCollapsed"!==e})`
	position: relative;
	flex-direction: column;
	align-items: stretch;

	${({hasChildItems:e,isSidebarCollapsed:t})=>e&&t&&"\n\t\t&:hover > div:last-child,\n\t\t&:focus-within > div:last-child {\n\t\t\tdisplay: block;\n\t\t}\n\t"}
`,Ji=(0,o.I)(oi.A)`
	color: ${({theme:e})=>e.palette.text.secondary};
	padding: ${({theme:e})=>e.spacing(1,2)};
	margin: 0;
	text-align: start;
`,en=(0,o.I)(n.A,{shouldForwardProp:e=>"isSidebarCollapsed"!==e})`
	color: ${({isSidebarCollapsed:e,theme:t})=>e?t.palette.text.primary:t.palette.text.secondary};
	padding: ${({theme:e})=>e.spacing(.5)};
	padding-inline: ${({isSidebarCollapsed:e,theme:t})=>e?t.spacing(2):t.spacing(5,1.5)};
	border-radius: ${({theme:e})=>e.shape.borderRadius}px;
`,tn=(0,o.I)(oi.A)`
	text-align: start;
	white-space: nowrap;
`,nn=(0,o.I)("div",{shouldForwardProp:e=>"isSidebarCollapsed"!==e&&"isItemExpanded"!==e&&"popupPosition"!==e})`
	${({isSidebarCollapsed:e,isItemExpanded:t,popupPosition:i,theme:n})=>e?`\n\t\t\t\tdisplay: none;\n\t\t\t\tposition: fixed;\n\t\t\t\tinset-block-start: ${i?.popupPositionAbove||0}px;\n\t\t\t\tinset-inline-start: ${i?.popupPositionBefore||0}px;\n\t\t\t\tmin-width: 200px;\n\t\t\t\tpadding: ${n.spacing(1)};\n\t\t\t\tbackground-color: ${n.palette.background.paper};\n\t\t\t\tbox-shadow: ${n.shadows[8]};\n\t\t\t\tborder-radius: ${n.shape.borderRadius}px;\n\t\t\t`:t?"display: block;":"display: none;"}
`;var on=i(95236),an=i(75324),rn=i(59598);const sn=9884==i.j?()=>{const{planData:e}=(0,a.t0)(),t=(0,J.useRef)(null),[i,n]=(0,J.useState)(!1),[o,c]=(0,J.useState)(!1),{isConnected:p}=(0,I.F)(),{redirectToConnect:u}=(0,rn.A)();(0,J.useEffect)(()=>{new Date(e?.plan?.next_cycle_date)<new Date&&c(!0)},[e?.plan?.next_cycle_date]);const h="Free"===e?.plan?.name,f=()=>n(!i),b=(0,de.A)({variant:"popover",popupId:"popupMenuCollapsedSidebar"}),y=()=>(0,l.jsxs)(m.A,{display:"flex",alignItems:"center",gap:1,whiteSpace:"nowrap",...(0,pe.cO)(b),children:[(0,l.jsx)(_.A,{variant:"body2",as:"div",children:(0,s.__)("Current plan","pojo-accessibility")}),o?(0,l.jsx)(g.A,{variant:"filled",color:"error",label:(0,s.__)("Expired","pojo-accessibility"),size:"tiny"}):(0,l.jsx)(g.A,{variant:"filled",color:p?"default":"error",label:p?e?.plan?.name:(0,s.__)("Not connected","pojo-accessibility"),size:"tiny"}),(0,l.jsx)(Fi,{})]});return(0,l.jsx)(ln,{children:(0,l.jsxs)(cn,{ref:t,children:[(0,l.jsxs)(Mt.A,{elevation:0,sx:{overflow:"visible"},children:[(0,l.jsx)(un,{onClick:f,children:(0,l.jsx)(pn,{title:(0,l.jsx)(y,{}),action:(0,l.jsx)(Vi.A,{in:!i,children:(0,l.jsx)(Hi.A,{})}),disableActionOffset:!0})}),(0,l.jsx)(T,{...(0,pe.NA)(b),closeAction:b.close,showUpgradeButton:"false",anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},open:i,onClose:f,anchorEl:t.current})]}),(0,l.jsx)(Mt.A,{elevation:0,children:(0,l.jsx)(dn,{children:p||o?(0,l.jsx)(x.A,{variant:"outlined",startIcon:h||o?(0,l.jsx)(d.A,{}):null,size:"small",fullWidth:!0,color:h||o?"promotion":"secondary",onClick:()=>{C.K.sendEvent(E.m.upgradeButtonClicked,{feature:"add visits",component:"quota counter"}),(0,R.Fe)((0,k.b)(r.qQ.ADD_VISITS))},children:h||o?(0,s.__)("Upgrade plan","pojo-accessibility"):(0,s.__)("View more plans","pojo-accessibility")}):(0,l.jsx)(x.A,{variant:"outlined",size:"small",fullWidth:!0,color:"promotion",onClick:u,children:(0,s.__)("Connect to start","pojo-accessibility")})})})]})})}:null,ln=(0,o.I)(m.A)`
	display: flex;
	flex-direction: row;
	align-items: start;
	justify-content: center;
	max-width: 224px;
	margin: ${({theme:e})=>e.spacing(1)};
	padding: 0;

	border-radius: ${({theme:e})=>e.shape.borderRadius}px;

	&:hover,
	&:focus-within {
		background-color: ${({theme:e})=>e.palette.action.hover};
	}
`,cn=(0,o.I)(an.A)`
	display: flex;
	flex-direction: column;
	gap: ${({theme:e})=>e.spacing(1)};

	border: none;
	border-radius: ${({theme:e})=>e.shape.borderRadius}px;
	padding: ${({theme:e})=>e.spacing(1.5)};
	width: 100%;
	background-color: transparent;

	& .MuiPaper-root {
		background-color: transparent;
	}
`,dn=(0,o.I)(Xt.A)`
	padding: 0;
	background-color: transparent;

	:last-child {
		padding-block-end: 0;
	}
`,pn=(0,o.I)(Yt.A)`
	padding: ${({theme:e})=>e.spacing(.5)} 0;
	background-color: transparent;
`,un=(0,o.I)(on.A)`
	background-color: transparent;
	border-radius: ${({theme:e})=>e.shape.borderRadius}px;

	&:hover {
		background-color: transparent;
	}
	.MuiCardActionArea-focusHighlight {
		background-color: transparent;
	}
`},62883(e,t,i){i.d(t,{b:()=>n});const n=(e,t=24)=>null==e?"":e.length<=t?e:e.slice(0,t-3)+"..."},85213(e,t,i){i.d(t,{JX:()=>d,HQ:()=>Ae,DG:()=>B,hP:()=>j,Fy:()=>S,Vo:()=>Q,En:()=>ye,mo:()=>_e.A,Bx:()=>Y.A,u5:()=>pe,P6:()=>X});var n=i(78048),o=i(33494),a=i(85848),r=i(95231),s=i(26544),l=i(27723),c=i(10790);const d=e=>(0,c.jsxs)(p,{...e,children:[(0,c.jsxs)(n.A,{marginBlockEnd:2,children:[(0,c.jsx)(a.A,{variant:"subtitle1",component:"h2",children:(0,l.__)("Style","pojo-accessibility")}),(0,c.jsx)(a.A,{variant:"body2",children:(0,l.__)("Customize your widget's color, icon, and size to match your brand.","pojo-accessibility")})]}),(0,c.jsxs)(u,{children:[(0,c.jsxs)(n.A,{display:"flex",flexDirection:"column",gap:5,children:[(0,c.jsx)(s.Ex,{}),(0,c.jsx)(s.lK,{})]}),(0,c.jsx)(n.A,{children:(0,c.jsx)(s.sk,{})})]}),(0,c.jsx)(u,{children:(0,c.jsx)(s.ev,{})})]}),p=(0,r.I)(n.A)`
	padding: ${({theme:e})=>e.spacing(2)};
	border: 1px solid ${({theme:e})=>e.palette.divider};
	border-radius: ${({theme:e})=>e.shape.borderRadius}px;
	margin-inline: auto;
	max-width: 1200px;
`,u=(0,r.I)(o.A)`
	display: grid;
	gap: ${({theme:e})=>e.spacing(5)};
	padding: ${({theme:e})=>e.spacing(2)};
	grid-template-columns: repeat(2, 1fr);

	${({theme:e})=>e.breakpoints.down("lg")} {
		grid-template-columns: repeat(1, 1fr);
	}
`;var h=i(73755),m=i(20709),x=i(8416),g=i(60688),f=i(32494),b=i(77784),y=i(86087);const v="one",j=e=>{const[t,i]=(0,y.useState)(v),{getTabProps:o}=(0,b.A)(t),r=e=>()=>{i(e)};return(0,c.jsxs)(_,{...e,children:[(0,c.jsxs)(n.A,{marginBlockEnd:2,children:[(0,c.jsx)(a.A,{variant:"subtitle1",component:"h2",children:(0,l.__)("Position","pojo-accessibility")}),(0,c.jsx)(a.A,{variant:"body2",children:(0,l.__)("Decide where you want your accessibility button to appear across every page of your site so visitors can easily find it.","pojo-accessibility")})]}),(0,c.jsx)(n.A,{padding:2,children:(0,c.jsxs)(f.A,{value:t,sx:{borderBlockEnd:"none",height:"65px"},indicatorColor:"secondary",textColor:"secondary",children:[(0,c.jsx)(x.A,{...o(v),label:(0,l.__)("Desktop","pojo-accessibility"),icon:(0,c.jsx)(h.A,{}),iconPosition:"start",onClick:r(v)}),(0,c.jsx)(x.A,{...o("two"),label:(0,l.__)("Mobile","pojo-accessibility"),icon:(0,c.jsx)(m.A,{}),iconPosition:"start",onClick:r("two")})]})}),t===v?(0,c.jsx)(g.A,{children:(0,c.jsx)(S,{})}):(0,c.jsx)(g.A,{children:(0,c.jsx)(Q,{})})]})},_=(0,r.I)(o.A)`
	padding: ${({theme:e})=>e.spacing(2)};
	border: 1px solid ${({theme:e})=>e.palette.divider};
	border-radius: ${({theme:e})=>e.shape.borderRadius}px;
	margin-inline: auto;
	max-width: 1200px;
`;var A=i(93248),w=i(18650),C=i(9626),E=i(67159),k=i(66231);const S=()=>{const{iconPosition:e,updateIconPosition:t}=(0,C.Aw)(),i=(0,c.jsx)(a.A,{variant:"subtitle2",component:"span",marginInlineEnd:2,color:"text.primary",children:(0,l.__)("Hide on desktop","pojo-accessibility")}),o=(0,c.jsx)(a.A,{variant:"subtitle2",component:"span",color:"text.primary",marginInlineEnd:2,children:(0,l.__)("Exact position","pojo-accessibility")});return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(A.A,{label:i,labelPlacement:"start",control:(0,c.jsx)(w.A,{color:"info",size:"small"}),sx:{marginInlineStart:2,marginBlockEnd:3},onChange:()=>{return t(i="desktop","hidden",!e[i].hidden),void E.K.sendEvent(k.m.toggleClicked,{state:e[i].hidden?"on":"off",type:"Hide on desktop",device:i});var i},checked:e.desktop.hidden}),!e.desktop.hidden&&(0,c.jsxs)(s.cy,{children:[(0,c.jsx)(s.or,{mode:"desktop"}),(0,c.jsxs)(n.A,{children:[(0,c.jsx)(A.A,{label:o,labelPlacement:"start",control:(0,c.jsx)(w.A,{color:"info",size:"small"}),sx:{marginInlineStart:0},onChange:()=>{return t(i="desktop","enableExactPosition",!e[i].enableExactPosition),void E.K.sendEvent(k.m.toggleClicked,{state:e[i].enableExactPosition?"on":"off",type:"Exact position",device:i});var i},checked:e.desktop?.enableExactPosition}),(0,c.jsx)(a.A,{id:"ea11y-desktop-position-settings",variant:"body2",sx:{marginBlockStart:2,marginBlockEnd:1},children:(0,l.__)("Exact positioning, 5 – 500 px are permitted values:","pojo-accessibility")}),(0,c.jsx)(s.Zh,{type:"horizontal",mode:"desktop",disabled:!e.desktop?.enableExactPosition}),(0,c.jsx)(s.Zh,{type:"vertical",mode:"desktop",disabled:!e.desktop?.enableExactPosition})]})]})]})};var I=i(68856),D=i(42666),R=i(23712),T=i(82624),M=i(26368),P=i(95726),$=i(57936),O=i(62646),N=i(43331);const z={"content-adjustments":{title:(0,l.__)("Content Adjustments","pojo-accessibility"),options:{"bigger-text":N.xT["bigger-text"],"bigger-line-height":N.xT["bigger-line-height"],"text-align":N.xT["text-align"],"readable-font":N.xT["readable-font"]}},"orientation-adjustments":{title:(0,l.__)("Orientation Adjustments","pojo-accessibility"),options:{"page-structure":N.xT["page-structure"],"screen-reader":N.xT["screen-reader"],sitemap:N.xT.sitemap,"reading-mask":N.xT["reading-mask"],"language-selector":N.xT["language-selector"],"hide-images":N.xT["hide-images"],"pause-animations":N.xT["pause-animations"],"highlight-links":N.xT["highlight-links"],"focus-outline":N.xT["focus-outline"]}},"color-adjustments":{title:(0,l.__)("Color Adjustments","pojo-accessibility"),options:{grayscale:N.xT.grayscale,contrast:N.xT.contrast}}},L=(0,r.I)(R.A)`
	height: 55vh;
	overflow: auto;
	margin-block-end: ${({theme:e})=>e.spacing(2)};
	padding: 0 ${({theme:e})=>e.spacing(2)};
`,B=()=>{const{widgetMenuSettings:e,hideMinimumOptionAlert:t,setHideMinimumOptionAlert:i}=(0,C.t0)(),[o,r]=(0,y.useState)(!1),{save:d}=(0,C.rX)();(0,y.useEffect)(()=>{p(e)?(r(!1),d({a11y_hide_minimum_active_options_alert:!1}).then(()=>{i(!1)})):r(!0)},[e]);const p=e=>{const t=Object.keys(e)?.filter(t=>e[t].enabled);return t.length>2},u=Object.entries(z).length;return(0,c.jsxs)(n.A,{display:"flex",flexDirection:"column",gap:2,children:[(0,c.jsxs)(D.A,{variant:"outlined",children:[(0,c.jsx)(T.A,{title:(0,l.__)("Feature Menu","pojo-accessibility"),titleTypographyProps:{component:"h2"},subheader:(0,c.jsx)(a.A,{variant:"body2",children:(0,l.__)("Choose which accessibility features and capabilities you want to include.","pojo-accessibility")})}),o&&!t&&(0,c.jsx)(I.Ay,{severity:"info",sx:{m:2},onClose:()=>{d({a11y_hide_minimum_active_options_alert:!0}).then(()=>{i(!0)})},children:(0,l.__)("At least two option must remain active","pojo-accessibility")}),(0,c.jsx)(L,{children:(0,c.jsx)(P.A,{as:"div",children:Object.entries(z).map(([e,t],i)=>(0,c.jsxs)(n.A,{children:[(0,c.jsx)($.A,{as:"div",disableGutters:!0,children:(0,c.jsx)(O.A,{sx:{textAlign:"start"},children:(0,c.jsx)(a.A,{variant:"subtitle2",component:"h3",children:t.title})})}),t.options&&Object.entries(t.options).map(([t,i])=>(0,c.jsx)(s.uM,{childKey:t,childValue:i,parentKey:e,disableOptions:o},t)),i+1<u&&(0,c.jsx)(M.A,{sx:{my:2}})]},e))})})]}),(0,c.jsx)(Ae,{})]})};var F=i(32672),H=i(5556),G=i.n(H),V=i(43516);const W=(0,r.I)(F.A)`
	justify-content: center;
	display: flex;
`,U=(0,y.memo)(()=>(0,c.jsxs)(V.Ay,{speed:N.Vb.SPEED,foregroundColor:N.Vb.FOREGROUND_COLOR,height:497,width:393,children:[(0,c.jsx)("rect",{x:"19",y:"18",width:"99.6184",height:"16.2418",fill:"#D9D9D9"}),(0,c.jsx)("rect",{x:"292",y:"10",width:"32.8412",height:"32.4837",rx:"16.2418",fill:"#D9D9D9"}),(0,c.jsx)("rect",{x:"244",y:"10",width:"32.8412",height:"32.4837",rx:"16.2418",fill:"#D9D9D9"}),(0,c.jsx)("rect",{x:"340",y:"10",width:"32.8412",height:"32.4837",rx:"16.2418",fill:"#D9D9D9"}),(0,c.jsx)("rect",{x:"17",y:"476",width:"134",height:"14",fill:"#D9D9D9"}),(0,c.jsx)("rect",{x:"324",y:"476",width:"31",height:"14",fill:"#D9D9D9"}),(0,c.jsx)("rect",{x:"360",y:"476",width:"14.2312",height:"14.0763",rx:"7.03813",fill:"#D9D9D9"}),(0,c.jsx)("rect",{x:"17",y:"76",width:"109.471",height:"73.6296",rx:"4",fill:"#D9D9D9"}),(0,c.jsx)("rect",{x:"17",y:"164",width:"109.471",height:"73.6296",rx:"4",fill:"#D9D9D9"}),(0,c.jsx)("rect",{x:"141",y:"164",width:"109.471",height:"73.6296",rx:"4",fill:"#D9D9D9"}),(0,c.jsx)("rect",{x:"265",y:"164",width:"109.471",height:"73.6296",rx:"4",fill:"#D9D9D9"}),(0,c.jsx)("rect",{x:"17",y:"252",width:"109.471",height:"73.6296",rx:"4",fill:"#D9D9D9"}),(0,c.jsx)("rect",{x:"141",y:"252",width:"109.471",height:"73.6296",rx:"4",fill:"#D9D9D9"}),(0,c.jsx)("rect",{x:"265",y:"252",width:"109.471",height:"73.6296",rx:"4",fill:"#D9D9D9"}),(0,c.jsx)("rect",{x:"17",y:"340",width:"109.471",height:"73.6296",rx:"4",fill:"#D9D9D9"}),(0,c.jsx)("rect",{x:"141",y:"340",width:"109.471",height:"73.6296",rx:"4",fill:"#D9D9D9"}),(0,c.jsx)("rect",{x:"264",y:"340",width:"109.471",height:"73.6296",rx:"4",fill:"#D9D9D9"}),(0,c.jsx)("rect",{x:"17",y:"428",width:"109",height:"42",rx:"4",fill:"#D9D9D9"}),(0,c.jsx)("rect",{x:"141",y:"76",width:"109.471",height:"73.6296",rx:"4",fill:"#D9D9D9"}),(0,c.jsx)("rect",{x:"265",y:"76",width:"109.471",height:"73.6296",rx:"4",fill:"#D9D9D9"}),(0,c.jsx)("line",{y1:"56.5",x2:"393",y2:"56.5",stroke:"#D9D9D9"}),(0,c.jsx)("line",{y1:"469.5",x2:"393",y2:"469.5",stroke:"#D9D9D9"})]})),K=(0,y.memo)(({children:e})=>(0,c.jsxs)(W,{children:[(0,c.jsx)(U,{}),e]}));K.propTypes={children:G().node};const Z=K,q=(0,r.I)(R.A)`
	margin-inline: auto;
	margin-block-start: ${({theme:e})=>e.spacing(4)};
	padding: 0 24px;

	overflow: auto;

	& #ea11y-root {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;

		transform: scale(70%);
	}

	& #ea11y-root #ea11y-widget-container {
		position: initial;
		transform: translateY(0);
	}

	@media screen and (max-height: 850px) {
		& #ea11y-root {
			top: -25px;
			transform: scale(60%);
		}
	}
`,X=()=>{const[e,t]=(0,y.useState)(!1);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(D.A,{variant:"outlined",children:[(0,c.jsx)(T.A,{title:(0,l.__)("Preview","pojo-accessibility"),titleTypographyProps:{component:"h2"},subheader:(0,c.jsx)(a.A,{variant:"body2",children:(0,l.__)("This is what the widget will look like to your site viewers.","pojo-accessibility")}),sx:{paddingBlockEnd:0}}),(0,c.jsx)(q,{id:N.oG,children:!e&&(0,c.jsx)(Z,{})})]}),(0,c.jsx)(s.Ov,{onLoad:()=>{t(!0),document.getElementById(N.oG)&&window?.ea11yWidget?.widget?.open()}})]})};var Y=i(70227);const Q=()=>{const{iconPosition:e,updateIconPosition:t}=(0,C.Aw)(),i=(0,c.jsx)(a.A,{variant:"subtitle2",component:"span",color:"text.primary",marginInlineEnd:2,children:(0,l.__)("Hide on mobile","pojo-accessibility")}),o=(0,c.jsx)(a.A,{variant:"subtitle2",component:"span",color:"text.primary",marginInlineEnd:2,children:(0,l.__)("Exact position","pojo-accessibility")});return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(A.A,{label:i,labelPlacement:"start",control:(0,c.jsx)(w.A,{color:"info",size:"small"}),sx:{marginInlineStart:2,marginBlockEnd:3},onChange:()=>{return t(i="mobile","hidden",!e[i].hidden),void E.K.sendEvent(k.m.toggleClicked,{state:e[i].hidden?"on":"off",type:"Hide on mobile",device:i});var i},checked:e.mobile.hidden}),!e.mobile.hidden&&(0,c.jsxs)(s.cy,{children:[(0,c.jsx)(s.or,{mode:"mobile"}),(0,c.jsxs)(n.A,{children:[(0,c.jsx)(A.A,{label:o,labelPlacement:"start",control:(0,c.jsx)(w.A,{color:"info",size:"small"}),sx:{marginInlineStart:0},onChange:()=>{return t(i="mobile","enableExactPosition",!e[i].enableExactPosition),void E.K.sendEvent(k.m.toggleClicked,{state:e[i].enableExactPosition?"on":"off",type:"Exact position",device:i});var i},checked:e.mobile?.enableExactPosition}),(0,c.jsx)(a.A,{id:"ea11y-mobile-position-settings",variant:"body2",sx:{marginBlockStart:2,marginBlockEnd:1},children:(0,l.__)("Exact positioning, 5 – 500 px are permitted values:","pojo-accessibility")}),(0,c.jsx)(s.Zh,{type:"horizontal",mode:"mobile",disabled:!e.mobile?.enableExactPosition}),(0,c.jsx)(s.Zh,{type:"vertical",mode:"mobile",disabled:!e.mobile?.enableExactPosition})]})]})]})};var J=i(5544),ee=i(86752),te=i(63364),ie=i(99028),ne=i(96989),oe=i(208);const ae=(0,r.I)(n.A)`
	padding: 0;

	justify-content: center;
	display: flex;
`,re=(0,y.memo)(()=>(0,c.jsxs)(V.Ay,{speed:N.Vb.SPEED,foregroundColor:N.Vb.FOREGROUND_COLOR,height:249,width:537,children:[(0,c.jsx)("rect",{x:"25",y:"221",width:"191",height:"15",fill:"#D9D9D9"}),(0,c.jsx)("rect",{x:"444",y:"222",width:"42",height:"15",fill:"#D9D9D9"}),(0,c.jsx)("rect",{x:"492",y:"219",width:"20",height:"20",rx:"10",fill:"#D9D9D9"}),(0,c.jsx)("rect",{x:"25",y:"26",width:"152",height:"110",rx:"10",fill:"#D9D9D9"}),(0,c.jsx)("path",{d:"M25 0H177V0C177 5.52285 172.523 10 167 10H35C29.4772 10 25 5.52285 25 0V0Z",fill:"#D9D9D9"}),(0,c.jsx)("path",{d:"M193 0H345V0C345 5.52285 340.523 10 335 10H203C197.477 10 193 5.52285 193 0V0Z",fill:"#D9D9D9"}),(0,c.jsx)("path",{d:"M362 0H514V0C514 5.52285 509.523 10 504 10H372C366.477 10 362 5.52285 362 0V0Z",fill:"#D9D9D9"}),(0,c.jsx)("rect",{x:"193",y:"26",width:"152",height:"110",rx:"10",fill:"#D9D9D9"}),(0,c.jsx)("rect",{x:"362",y:"26",width:"152",height:"110",rx:"10",fill:"#D9D9D9"}),(0,c.jsx)("path",{d:"M25 162C25 156.477 29.4772 152 35 152H167C172.523 152 177 156.477 177 162V209H25V162Z",fill:"#D9D9D9"}),(0,c.jsx)("line",{y1:"208.5",x2:"536.903",y2:"208.5",stroke:"#D9D9D9"})]})),se=(0,y.memo)(({children:e})=>(0,c.jsxs)(ae,{children:[(0,c.jsx)(re,{}),e]}));se.propTypes={children:G().node};const le=se,ce=(0,r.I)(n.A)`
	margin-block-start: ${({theme:e})=>e.spacing(2)};

	border-radius: ${({theme:e})=>e.shape.borderRadius}px;
	border: 1px solid ${({theme:e})=>e.palette.divider};

	height: 250px;
	position: relative;
	padding: 25px;
	overflow: hidden;

	& .ea11y-widget-container {
		transform: translateY(0);
	}

	& .ea11y-widget-container--preview {
		position: absolute;
	}

	& .ea11y-widget-content::after {
		content: '';

		position: absolute;
		top: 0;
		right: 0;
		left: 0;
		bottom: 40px;

		background-color: #fcfdff;
		opacity: 0.6;
	}

	@media screen and (min-width: 480px) {
		& .ea11y-widget-container--preview {
			bottom: 0;
			right: 0;
		}
	}
`,de=(0,r.I)(w.A)`
	input {
		height: 56px !important;
	}
`,pe=()=>{const[e,t]=(0,y.useState)(!0),[i,o]=(0,y.useState)(!1),{accessibilityStatementData:r,setAccessibilityStatementData:d}=(0,C.t0)(),{save:p}=(0,C.rX)(),{success:u,error:h}=(0,oe.m)(),[m,x]=(0,y.useState)(!1);return(0,y.useEffect)(()=>{window?.ea11yWidget&&(r.hideLink?window.ea11yWidget.accessibilityStatementURL=null:window.ea11yWidget.accessibilityStatementURL=r?.link),window?.ea11yWidget?.widget?.updateState()},[r?.hideLink,r?.link]),(0,y.useEffect)(()=>{t(!1),r?.link?o(!0):(t(!0),o(!1))},[r]),(0,y.useEffect)(()=>{t(!0)},[]),(0,c.jsxs)(D.A,{elevation:0,variant:"outlined",sx:{marginBlockStart:1,width:"100%"},children:[(0,c.jsx)(T.A,{title:(0,l.__)("Statement link","pojo-accessibility"),titleTypographyProps:{component:"h2"},subheader:(0,l.__)("Link your accessibility statement page to your accessibility widget.","pojo-accessibility"),sx:{borderBlockEnd:"1px solid rgb(0 0 0 / 0.12)"}}),(0,c.jsx)(R.A,{children:(0,c.jsxs)(n.A,{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:5,children:[(0,c.jsxs)(n.A,{display:"flex",flexDirection:"column",children:[(0,c.jsxs)(ee.A,{fullWidth:!0,sx:{marginBlockEnd:2},children:[(0,c.jsx)(ie.A,{sx:{marginBlockEnd:1},children:(0,c.jsx)(a.A,{variant:"subtitle2",component:"span",color:"text.primary",children:(0,l.__)("Choose which page to link","pojo-accessibility")})}),(0,c.jsxs)(n.A,{display:"flex",flexDirection:"row",alignItems:"center",width:"100%",children:[(0,c.jsx)(s.O7,{}),r?.link&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.Lp,{}),(0,c.jsx)(s.Mj,{content:r?.link})]})]}),!i&&(0,c.jsx)(te.A,{children:(0,l.__)("Please select a page","pojo-accessibility")})]}),(0,c.jsxs)(ee.A,{fullWidth:!0,children:[(0,c.jsx)(ie.A,{sx:{marginBlock:2},children:(0,c.jsx)(a.A,{variant:"subtitle2",component:"span",color:"text.primary",children:(0,l.__)("Want to hide the link?","pojo-accessibility")})}),(0,c.jsx)(A.A,{label:(0,l.__)("Hide link","pojo-accessibility"),labelPlacement:"start",control:(0,c.jsx)(de,{color:"info",size:"small",sx:{marginInlineStart:3}}),sx:{alignSelf:"start",marginBlockEnd:3,marginInlineStart:0},onChange:()=>{d({...r,hideLink:!r.hideLink}),E.K.sendEvent(k.m.toggleClicked,{state:r.hideLink?"on":"off",type:"Hide link"})},checked:r?.hideLink})]})]}),(0,c.jsxs)(n.A,{children:[(0,c.jsx)(a.A,{variant:"subtitle2",component:"span",color:"text.primary",children:(0,l.__)("Preview link in widget","pojo-accessibility")}),(0,c.jsxs)(ce,{id:"ea11y-widget-preview--container",sx:{padding:m?"initial":0},children:[!m&&(0,c.jsx)(le,{}),(0,c.jsx)(s.Ov,{onLoad:()=>{x(!0),document.getElementById(N.oG)&&window?.ea11yWidget?.widget?.open()}})]})]})]})}),(0,c.jsx)(J.A,{children:(0,c.jsx)(ne.A,{color:"primary",variant:"contained",onClick:async()=>{try{await p({ea11y_accessibility_statement_data:r}),await u("Changes saved","pojo-accessibility"),t(!0)}catch(e){h("Failed to save settings!","pojo-accessibility"),console.error(e)}},disabled:e,children:(0,l.__)("Save changes","pojo-accessibility")})})]})};if(9884==i.j)var ue=i(34627);var he=i(73916);if(9884==i.j)var me=i(70992);if(9884==i.j)var xe=i(73928);if(9884==i.j)var ge=i(55016);if(9884==i.j)var fe=i(60765);var be=i(42679);const ye=9884==i.j?()=>{const{openSidebar:e}=(0,C.t0)(),{loading:t,isElementorOne:i}=(0,C.e7)(),{isRTL:n}=(0,be.F)(),o=n?"left":"right",a=(0,ge.A)({variant:"popover",popupId:"popupMenuExpandedSidebar"});return t&&!i?(0,c.jsx)(ve,{children:(0,c.jsx)(me.A,{width:"100%",height:91})}):e?(0,c.jsx)(s.f,{}):(0,c.jsxs)(ve,{children:[(0,c.jsx)(xe.A,{title:(0,l.__)("My account","site-mailer"),placement:o,children:(0,c.jsxs)(je,{...(0,fe.cO)(a),children:[(0,c.jsx)(ue.A,{sx:{color:"common.black"}}),(0,c.jsx)(s.ID,{})]})}),(0,c.jsx)(s.in,{...(0,fe.NA)(a),closeAction:a.close,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"}})]})}:null,ve=(0,r.I)(n.A)`
	display: flex;
	flex-direction: row;
	align-items: start;
	justify-content: center;

	margin: ${({theme:e})=>e.spacing(2)};
	padding: 0;

	border-radius: ${({theme:e})=>e.shape.borderRadius}px;
`,je=(0,r.I)(he.A)`
	padding: ${({theme:e})=>e.spacing(1)};
	background-color: ${({theme:e})=>e.palette.background.paper};
	border-radius: ${({theme:e})=>e.shape.borderRadius}px;

	&:hover {
		background-color: ${({theme:e})=>e.palette.action.hover};
	}

	&:focus {
		background-color: ${({theme:e})=>e.palette.action.focus};
	}
`;var _e=i(14715);const Ae=()=>{const{widgetMenuSettings:e,planData:t}=(0,C.t0)(),{toggleMenu:i}=(0,C.Yd)(),n=()=>{const e=N.A_.REMOVE_BRANDING.replaceAll("-","_");return t?.plan?.features?.[e]};return(0,c.jsx)(D.A,{variant:"outlined",children:(0,c.jsx)(T.A,{title:(0,c.jsxs)(c.Fragment,{children:[(0,l.__)("Ally by Elementor logo","pojo-accessibility"),!n()&&(0,c.jsx)(s.wT,{childKey:N.A_.REMOVE_BRANDING,childValue:"pro",source:"icon",showIcon:!0})]}),titleTypographyProps:{component:"h2"},subheader:(0,c.jsx)(a.A,{variant:"body2",children:(0,l.__)("Hide the Elementor logo from the bottom of your widget menu.","pojo-accessibility")}),action:(0,c.jsx)(s.wT,{childKey:N.A_.REMOVE_BRANDING,childValue:"pro",source:"toggle",enabled:n(),children:(0,c.jsx)(s.Yq,{disabled:!n(),onChange:()=>i("pro",N.A_?.REMOVE_BRANDING),checked:e?.[N.A_?.REMOVE_BRANDING]?.enabled||!1})})})})}},74565(e,t,i){i.d(t,{Fe:()=>r,GZ:()=>o,g6:()=>l,ln:()=>a,n4:()=>s,wv:()=>n});const n=e=>/^(https?):\/\/([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}(:\d{1,5})?(\/.*)?$/i.test(e),o=e=>/^#[A-Za-z0-9_.-]+$/.test(e),a=(e,t=10)=>{const i=[];for(let n=0;n<e.length;n+=t)i.push(e.slice(n,n+t));return i},r=(e,t="_blank")=>{window.open(e,t)},s=(e,t)=>t&&e?parseFloat((t/e*100).toFixed(1)):0,l=e=>{if(e>=1e6){const t=e/1e6;return t%1==0?`${t}M`:`${t.toFixed(1)}M`}if(e>=1e3){const t=e/1e3;return t%1==0?`${t}K`:`${t.toFixed(1)}K`}return e}},45413(e,t){var i;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(i=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===i.Tag||e.type===i.Script||e.type===i.Style},t.Root=i.Root,t.Text=i.Text,t.Directive=i.Directive,t.Comment=i.Comment,t.Script=i.Script,t.Style=i.Style,t.Tag=i.Tag,t.CDATA=i.CDATA,t.Doctype=i.Doctype},15270(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=t.CARRIAGE_RETURN_PLACEHOLDER=t.CARRIAGE_RETURN_REGEX=t.CARRIAGE_RETURN=t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce(function(e,t){return e[t.toLowerCase()]=t,e},{}),t.CARRIAGE_RETURN="\r",t.CARRIAGE_RETURN_REGEX=new RegExp(t.CARRIAGE_RETURN,"g"),t.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now().toString(),"__"),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(t.CARRIAGE_RETURN_PLACEHOLDER,"g")},65496(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,i,d,p,u,m;e=(0,n.escapeSpecialCharacters)(e);var g=s.exec(e),f=null===(t=null==g?void 0:g[1])||void 0===t?void 0:t.toLowerCase();switch(f){case o:var b=c(e);return(0,n.hasOpenTag)(e,a)||null===(i=null==(v=b.querySelector(a))?void 0:v.parentNode)||void 0===i||i.removeChild(v),(0,n.hasOpenTag)(e,r)||null===(d=null==(v=b.querySelector(r))?void 0:v.parentNode)||void 0===d||d.removeChild(v),b.querySelectorAll(o);case a:case r:var y=l(e).querySelectorAll(f);return(0,n.hasOpenTag)(e,r)&&(0,n.hasOpenTag)(e,a)?null!==(u=null===(p=y[0].parentNode)||void 0===p?void 0:p.childNodes)&&void 0!==u?u:x():y;default:return h?h(e):null!==(m=null==(v=l(e,r).querySelector(r))?void 0:v.childNodes)&&void 0!==m?m:x();var v}};var n=i(67731),o="html",a="head",r="body",s=/<([a-zA-Z]+[0-9]?)/,l=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},c=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},d="object"==typeof window&&window.DOMParser;if("function"==typeof d){var p=new d;l=c=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),p.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var u=document.implementation.createHTMLDocument();l=function(e,t){if(t){var i=u.documentElement.querySelector(t);return i&&(i.innerHTML=e),u}return u.documentElement.innerHTML=e,u}}var h,m="object"==typeof document&&document.createElement("template");m&&m.content&&(h=function(e){return m.innerHTML=e,m.content.childNodes});var x=function(){return document.createDocumentFragment().childNodes}},92471(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=r.exec(e),i=t?t[1]:void 0;return(0,a.formatDOM)((0,o.default)(e),null,i)};var o=n(i(65496)),a=i(67731),r=/<(![a-zA-Z\s]+)>/},67731(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.formatAttributes=a,t.hasOpenTag=function(e,t){var i="<"+t,n=e.toLowerCase().indexOf(i);if(-1===n)return!1;var o=e[n+i.length];return">"===o||" "===o||"\t"===o||"\n"===o||"\r"===o||"/"===o},t.escapeSpecialCharacters=function(e){return e.replace(o.CARRIAGE_RETURN_REGEX,o.CARRIAGE_RETURN_PLACEHOLDER)},t.revertEscapedCharacters=s,t.formatDOM=function e(t,i,o){var l,c,d,p;void 0===i&&(i=null);for(var u,h=[],m=0,x=t.length;m<x;m++){var g=t[m];switch(g.nodeType){case 1:var f=r(g.nodeName);(u=new n.Element(f,a(g.attributes))).children=e("template"===f?g.content.childNodes:g.childNodes,u);break;case 3:u=new n.Text(s(null!==(l=g.nodeValue)&&void 0!==l?l:""));break;case 8:u=new n.Comment(null!==(c=g.nodeValue)&&void 0!==c?c:"");break;default:continue}var b=null!==(d=h[m-1])&&void 0!==d?d:null;b&&(b.next=u),u.parent=i,u.prev=b,u.next=null,h.push(u)}return o&&((u=new n.ProcessingInstruction(o.substring(0,o.indexOf(" ")).toLowerCase(),o)).next=null!==(p=h[0])&&void 0!==p?p:null,u.parent=i,h.unshift(u),h[1]&&(h[1].prev=h[0])),h};var n=i(41141),o=i(15270);function a(e){for(var t={},i=0,n=e.length;i<n;i++){var o=e[i];t[o.name]=o.value}return t}function r(e){return function(e){return o.CASE_SENSITIVE_TAG_NAMES_MAP[e]}(e=e.toLowerCase())||e}function s(e){return e.replace(o.CARRIAGE_RETURN_PLACEHOLDER_REGEX,o.CARRIAGE_RETURN)}},20840(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){void 0===e&&(e={});var i={},c=Boolean(e.type&&s[e.type]);for(var d in e){var p=e[d];if((0,n.isCustomAttribute)(d))i[d]=p;else{var u=d.toLowerCase(),h=l(u);if(h){var m=(0,n.getPropertyInfo)(h);switch(a.includes(h)&&r.includes(t)&&!c&&(h=l("default"+u)),i[h]=p,null==m?void 0:m.type){case n.BOOLEAN:i[h]=!0;break;case n.OVERLOADED_BOOLEAN:""===p&&(i[h]=!0)}}else o.PRESERVE_CUSTOM_ATTRIBUTES&&(i[d]=p)}}return(0,o.setStyleProp)(e.style,i),i};var n=i(14210),o=i(74958),a=["checked","value"],r=["input","select","textarea"],s={reset:!0,submit:!0};function l(e){return n.possibleStandardNames[e]}},10308(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,i){var n,o,c,d,p;void 0===i&&(i={});for(var u=[],h="function"==typeof i.replace,m=null!==(n=i.transform)&&void 0!==n?n:r.returnFirstArg,x=null!==(o=i.library)&&void 0!==o?o:s,g=x.cloneElement,f=x.createElement,b=x.isValidElement,y=t.length,v=0;v<y;v++){var j=t[v];if(h){var _=null===(c=i.replace)||void 0===c?void 0:c.call(i,j,v);if(b(_)){y>1&&(_=g(_,{key:null!==(d=_.key)&&void 0!==d?d:v})),u.push(m(_,j,v));continue}}if("text"!==j.type){var A=j,w={};l(A)?((0,r.setStyleProp)(A.attribs.style,A.attribs),w=A.attribs):A.attribs&&(w=(0,a.default)(A.attribs,A.name));var C=void 0;switch(j.type){case"script":case"style":j.children[0]&&(w.dangerouslySetInnerHTML={__html:j.children[0].data});break;case"tag":"textarea"===j.name&&j.children[0]?w.defaultValue=j.children[0].data:(null===(p=j.children)||void 0===p?void 0:p.length)&&(C=e(j.children,i));break;default:continue}y>1&&(w.key=v),u.push(m(f(j.name,w,C),j,v))}else{var E=!j.data.trim().length;if(E&&j.parent&&!(0,r.canTextBeChildOfNode)(j.parent))continue;if(i.trim&&E)continue;u.push(m(j.data,j,v))}}return 1===u.length?u[0]:u};var o=i(51609),a=n(i(20840)),r=i(74958),s={cloneElement:o.cloneElement,createElement:o.createElement,isValidElement:o.isValidElement};function l(e){return r.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,r.isCustomComponent)(e.name,e.attribs)}},50442(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0,t.default=function(e,t){var i;if("string"!=typeof e)throw new TypeError("First argument must be a string");return e?(0,r.default)((0,o.default)(e,null!==(i=null==t?void 0:t.htmlparser2)&&void 0!==i?i:l),t):[]};var o=n(i(92471));t.htmlToDOM=o.default;var a=n(i(20840));t.attributesToProps=a.default;var r=n(i(10308));t.domToReact=r.default;var s=i(41141);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return s.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return s.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return s.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return s.Text}});var l={lowerCaseAttributeNames:!1}},74958(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=function(e,t){return e.includes("-")?!r.has(e):Boolean(t&&"string"==typeof t.is)},t.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,a.default)(e,s)}catch(e){t.style={}}else t.style={}};var o=i(51609),a=n(i(35229)),r=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]),s={reactCompat:!0};t.PRESERVE_CUSTOM_ATTRIBUTES=Number(o.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}},5077(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,i=/\n/g,n=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,r=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function d(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var p=1,u=1;function h(e){var t=e.match(i);t&&(p+=t.length);var n=e.lastIndexOf("\n");u=~n?e.length-n:u+e.length}function m(){var e={line:p,column:u};return function(t){return t.position=new x(e),b(),t}}function x(e){this.start=e,this.end={line:p,column:u},this.source=l.source}function g(t){var i=new Error(l.source+":"+p+":"+u+": "+t);if(i.reason=t,i.filename=l.source,i.line=p,i.column=u,i.source=e,!l.silent)throw i}function f(t){var i=t.exec(e);if(i){var n=i[0];return h(n),e=e.slice(n.length),i}}function b(){f(n)}function y(e){var t;for(e=e||[];t=v();)!1!==t&&e.push(t);return e}function v(){var t=m();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var i=2;c!=e.charAt(i)&&("*"!=e.charAt(i)||"/"!=e.charAt(i+1));)++i;if(i+=2,c===e.charAt(i-1))return g("End of comment missing");var n=e.slice(2,i-2);return u+=2,h(n),e=e.slice(i),u+=2,t({type:"comment",comment:n})}}function j(){var e=m(),i=f(o);if(i){if(v(),!f(a))return g("property missing ':'");var n=f(r),l=e({type:"declaration",property:d(i[0].replace(t,c)),value:n?d(n[0].replace(t,c)):c});return f(s),l}}return x.prototype.content=e,b(),function(){var e,t=[];for(y(t);e=j();)!1!==e&&(t.push(e),y(t));return t}()}},35229(e,t,i){var n=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(i(51133)),o=i(98917);function a(e,t){var i={};return e&&"string"==typeof e?((0,n.default)(e,function(e,n){e&&n&&(i[(0,o.camelCase)(e,t)]=n)}),i):i}a.default=a,e.exports=a},98917(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var i=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,o=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,r=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||i.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(r,l):e.replace(a,l)).replace(n,s))}},51133(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let i=null;if(!e||"string"!=typeof e)return i;const n=(0,o.default)(e),a="function"==typeof t;return n.forEach(e=>{if("declaration"!==e.type)return;const{property:n,value:o}=e;a?t(n,o,e):o&&(i=i||{},i[n]=o)}),i};const o=n(i(5077))}}]);