/home/awneajlw/faizastore.com/wp-content/plugins/popup-builder-block/build/popup/global.js
(()=>{"use strict";var e={5338:(e,t,o)=>{var r=o(5795);t.H=r.createRoot,r.hydrateRoot},5795:e=>{e.exports=window.ReactDOM}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,o),s.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);const r=window.wp.domReady;var n=o.n(r);const s=window.wp.compose,i=window.wp.element,p=window.wp.hooks,l=window.ReactJSXRuntime,a=(0,s.createHigherOrderComponent)(e=>t=>{const{clientId:o,name:r,attributes:n,setAttributes:s}=t,p=(0,i.useRef)(n);if(r.includes("popup-builder-block")){(0,i.useEffect)(()=>{const e=o?.slice(-6);n?.blockClass||s({blockClass:`pbb${e}`,blockID:o}),n?.blockClass&&JSON.stringify(p.current)!==JSON.stringify(n)&&(s({blockClass:`pbb${e}`,blockID:o}),p.current=n)},[o,JSON.stringify(n)]);const r={...t.wrapperProps,className:n?.blockClass};return(0,l.jsx)(e,{...t,wrapperProps:r})}return(0,l.jsx)(e,{...t})},"blockWrapperProps");(0,p.addFilter)("editor.BlockListBlock","pbb/blockWrapperProps",a),window.wp.i18n;const c=window.wp.blockEditor,d=(0,s.createHigherOrderComponent)(e=>t=>{if(t.name.includes("popup-builder-block")){const{useHasProActive:o}=window.popupBuilderBlock.helpers,{GkitStyle:r,GkitProUpgradeNotice:n}=window?.popupBuilderBlock?.components,s=window?.popupBuilderBlock?.proLink,i=o({windowVariable:"popupBuilderBlock",hookName:"pbb.is-pro-active",cookieName:"isPopupkitValid",apiPath:"pbb"});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r,{}),(0,l.jsx)(e,{...t}),!i&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(c.InspectorControls,{children:(0,l.jsx)(n,{descriptionText:"Get Popupkit Pro for advanced blocks and features.",buttonText:"Upgrade Now",buttonUrl:s})})})]})}return(0,l.jsx)(e,{...t})},"addBlocksComponents");(0,p.addFilter)("editor.BlockEdit","popupkit/global-components",d);var u=o(5338);const w=window.wp.plugins,x=window.wp.data,b=window.wp.primitives,k=(0,l.jsx)(b.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)(b.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm.75 4v1.5h-1.5V8h1.5Zm0 8v-5h-1.5v5h1.5Z"})}),C=window.wp.components,g=(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 30 30",fill:"none",children:[(0,l.jsx)("path",{d:"M0 15C0 6.71573 6.71573 0 15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30H2.72727C1.22104 30 0 28.779 0 27.2727V15Z",fill:"url(#paint0_linear_547_7538)"}),(0,l.jsx)("path",{opacity:"0.7",d:"M23.4775 11.7393C26.6382 11.7393 29.2719 13.988 29.8701 16.9727C28.9043 24.3246 22.6156 30 15 30H2.72754C1.22131 30 0 28.7787 0 27.2725V15C6.79488e-06 14.1468 0.0721337 13.3104 0.208984 12.4961C1.11937 12.0133 2.15749 11.7393 3.25977 11.7393H23.4775Z",fill:"url(#paint1_linear_547_7538)"}),(0,l.jsx)("path",{d:"M5.4165 14.9974C5.41653 9.49907 10.0491 5.08315 15.624 5.43686L15.6265 5.43116C20.3275 5.72943 24.1738 9.50679 24.5514 14.1999C25.0054 19.846 20.5629 24.5686 15.0145 24.5767C13.3066 24.5793 11.9204 25.9523 11.9204 27.6602V29.9998H5.41895V27.6569C5.41905 21.3774 9.79592 18.128 14.8745 18.0752C16.5953 18.0593 18.0736 16.7028 18.0817 15.0137C18.0896 13.3243 16.7405 11.9488 15.0617 11.9172C13.3196 11.8829 11.9204 13.3635 11.9204 15.1056V16.3646C11.9204 16.9294 11.5485 17.4153 11.0155 17.5975C9.07269 18.26 7.39327 19.4956 6.17904 21.1058C5.93346 21.4301 5.4165 21.2451 5.4165 20.8413V14.9974Z",fill:"url(#paint2_linear_547_7538)"}),(0,l.jsxs)("defs",{children:[(0,l.jsxs)("linearGradient",{id:"paint0_linear_547_7538",x1:"15",y1:"0",x2:"15",y2:"30",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#6D85FF"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#3353F4"})]}),(0,l.jsxs)("linearGradient",{id:"paint1_linear_547_7538",x1:"13.3693",y1:"11.7393",x2:"13.3693",y2:"31.9565",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#6D85FF"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#3353F4"})]}),(0,l.jsxs)("linearGradient",{id:"paint2_linear_547_7538",x1:"9.1302",y1:"5.21805",x2:"18.5862",y2:"32.6086",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"white"}),(0,l.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0.8"})]})]})]});(0,w.registerPlugin)("popupkit-settings",{render:()=>{const e=(0,i.useRef)(null),t=(0,i.useSyncExternalStore)(e=>{const t=(0,x.subscribe)(e);return()=>t()},()=>document.querySelector(".editor-header__settings"));return(0,i.useEffect)(()=>{if(!t)return;let o=document.getElementById("popupkit-settings");return o||(o=document.createElement("div"),o.id="popupkit-settings",t.appendChild(o)),!e.current&&o&&(e.current=(0,u.H)(o)),e.current&&e.current.render((0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(C.Button,{className:"popupkit-settings",icon:g,label:"Campaign Settings"}),(0,l.jsx)(C.Button,{className:"popupkit-info",icon:k,label:"Campaign Details"})]})),()=>{e.current&&(e.current.unmount(),e.current=null)}},[t]),null}}),n()(()=>{Object.keys(localStorage).map(e=>{(e.includes("gkit-active-panel")||e.includes("gkit-inspector-tab"))&&localStorage.removeItem(e)})})})();