AlkantarClanX12
| Current Path : /www/capitalgmcbuickregina_830/public/wp-content/plugins/popup-maker/dist/packages/ |
| Current File : /www/capitalgmcbuickregina_830/public/wp-content/plugins/popup-maker/dist/packages/layout.js |
(()=>{"use strict";var a={d:(t,h)=>{for(var S in h)a.o(h,S)&&!a.o(t,S)&&Object.defineProperty(t,S,{enumerable:!0,get:h[S]})},o:(a,t)=>Object.prototype.hasOwnProperty.call(a,t),r:a=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})}},t={};function h(a){var t,S,P="";if("string"==typeof a||"number"==typeof a)P+=a;else if("object"==typeof a)if(Array.isArray(a)){var V=a.length;for(t=0;t<V;t++)a[t]&&(S=h(a[t]))&&(P&&(P+=" "),P+=S)}else for(S in a)a[S]&&(P&&(P+=" "),P+=S);return P}a.r(t),a.d(t,{AppContent:()=>U,AppHeader:()=>E,AppLayout:()=>e,HeaderActionsFill:()=>b,HeaderActionsSlot:()=>x,HeaderEndFill:()=>g,HeaderEndSlot:()=>M,HeaderStartFill:()=>m,HeaderStartSlot:()=>w,LAYOUT_VARS_FILTER:()=>z,LAYOUT_VARS_PHP_FILTER:()=>C,SupportMenuFill:()=>y,SupportMenuSlot:()=>k,getLocalizedLayoutVars:()=>F,getNavTabs:()=>N,getShowSupportMenu:()=>O,getSupportMenuItems:()=>B,mapLayoutSupportMenuItems:()=>Z,mapNavTabsForHeader:()=>I,navigateNavTab:()=>R,resolveLayoutVars:()=>L,resolveSupportMenuIcon:()=>T,useAppNavHeader:()=>Y,useLayoutVars:()=>D});const S=function(){for(var a,t,S=0,P="",V=arguments.length;S<V;S++)(a=arguments[S])&&(t=h(a))&&(P&&(P+=" "),P+=t);return P},P=window.wp.components,V=window.ReactJSXRuntime,e=({className:a,children:t})=>(0,V.jsx)(P.SlotFillProvider,{children:(0,V.jsx)("div",{className:S("popup-maker-app-layout",a),children:t})}),G=window.wp.element,o=window.popupMaker.i18n,r=((0,G.forwardRef)(({icon:a,size:t=24,...h},S)=>(0,G.cloneElement)(a,{width:t,height:t,...h,ref:S})),window.wp.primitives);r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.Circle,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.Path,r.Circle,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.G,r.Path,r.Path,r.SVG,r.G,r.Path,r.Path,r.SVG,r.G,r.Path,r.Path,r.SVG,r.G,r.Path,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path;const n=(0,V.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,V.jsx)(r.Path,{d:"M12 4a8 8 0 1 1 .001 16.001A8 8 0 0 1 12 4Zm0 1.5a6.5 6.5 0 1 0-.001 13.001A6.5 6.5 0 0 0 12 5.5Zm.75 11h-1.5V15h1.5v1.5Zm-.445-9.234a3 3 0 0 1 .445 5.89V14h-1.5v-1.25c0-.57.452-.958.917-1.01A1.5 1.5 0 0 0 12 8.75a1.5 1.5 0 0 0-1.5 1.5H9a3 3 0 0 1 3.305-2.984Z"})}),l=(r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,(0,V.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,V.jsx)(r.Path,{fillRule:"evenodd",d:"M17.375 15.656A6.47 6.47 0 0018.5 12a6.47 6.47 0 00-.943-3.374l-1.262.813c.448.749.705 1.625.705 2.561a4.977 4.977 0 01-.887 2.844l1.262.813zm-1.951 1.87l-.813-1.261A4.976 4.976 0 0112 17c-.958 0-1.852-.27-2.613-.736l-.812 1.261A6.47 6.47 0 0012 18.5a6.47 6.47 0 003.424-.974zm-8.8-1.87A6.47 6.47 0 015.5 12c0-1.235.344-2.39.943-3.373l1.261.812A4.977 4.977 0 007 12c0 1.056.328 2.036.887 2.843l-1.262.813zm2.581-7.803A4.977 4.977 0 0112 7c1.035 0 1.996.314 2.794.853l.812-1.262A6.47 6.47 0 0012 5.5a6.47 6.47 0 00-3.607 1.092l.812 1.261zM12 20a8 8 0 100-16 8 8 0 000 16zm0-4.5a3.5 3.5 0 100-7 3.5 3.5 0 000 7z",clipRule:"evenodd"})})),s=(r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,(0,V.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,V.jsx)(r.Path,{d:"M11 14.5l1.1 1.1 3-3 .5-.5-.6-.6-3-3-1 1 1.7 1.7H5v1.5h7.7L11 14.5zM16.8 5h-7c-1.1 0-2 .9-2 2v1.5h1.5V7c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v10c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5v-1.5H7.8V17c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2z"})})),p=(r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.Path,(0,V.jsxs)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,V.jsx)(r.Path,{d:"M14.5 5.5h-7V7h7V5.5ZM7.5 9h7v1.5h-7V9Zm7 3.5h-7V14h7v-1.5Z"}),(0,V.jsx)(r.Path,{d:"M16 2H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2ZM6 3.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V4a.5.5 0 0 1 .5-.5Z"}),(0,V.jsx)(r.Path,{d:"M20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z"})]})),i=(r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,(0,V.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,V.jsx)(r.Path,{d:"M15.5 9.5a1 1 0 100-2 1 1 0 000 2zm0 1.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5zm-2.25 6v-2a2.75 2.75 0 00-2.75-2.75h-4A2.75 2.75 0 003.75 15v2h1.5v-2c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v2h1.5zm7-2v2h-1.5v-2c0-.69-.56-1.25-1.25-1.25H15v-1.5h2.5A2.75 2.75 0 0120.25 15zM9.5 8.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0z",fillRule:"evenodd"})})),u=(r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.Path,r.SVG,r.Path,r.Path,r.Path,r.SVG,r.Path,r.Path,r.SVG,r.Path,r.Path,r.SVG,r.Path,r.Path,r.SVG,r.Path,r.Path,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,r.SVG,r.Path,(0,V.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,V.jsx)(r.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"})})),c=window.popupMaker.components,d=(0,P.createSlotFill)("PopupMakerLayoutHeaderStart"),m=d.Fill,w=d.Slot,v=(0,P.createSlotFill)("PopupMakerLayoutHeaderEnd"),g=v.Fill,M=v.Slot,f=(0,P.createSlotFill)("PopupMakerLayoutHeaderActions"),b=f.Fill,x=f.Slot,j=(0,P.createSlotFill)("PopupMakerLayoutSupportMenu"),y=j.Fill,k=j.Slot,A=window.wp.hooks,_={pages:p,people:i,login:s,lifesaver:l,help:n,wordpress:u},T=a=>{if(a)return _[a]},z="popupMaker.layout.vars",C="popup_maker/layout_vars",H={navTabs:[],supportMenuItems:[],showSupport:!0},F=()=>{if("undefined"==typeof window)return{...H};const a=window.popupMaker?.globalVars?.layoutVars;return a&&"object"==typeof a?{navTabs:Array.isArray(a.navTabs)?a.navTabs:Array.isArray(a.shellTabs)?a.shellTabs:[],supportMenuItems:Array.isArray(a.supportMenuItems)?a.supportMenuItems:[],showSupport:a.showSupport??!0}:{...H}},L=()=>{const a=F();return(0,A.applyFilters)(z,a)},N=()=>L().navTabs??[],I=()=>N().map(a=>({name:a.id,title:a.title,className:a.id,pageTitle:a.title,heading:a.title,href:a.href})),R=a=>{const t=N().find(t=>t.id===a);t?.href&&window.location.assign(t.href)},Z=(a=[])=>a.filter(a=>a?.label).map(a=>({label:a.label,href:a.href,target:a.target,group:a.group||"primary",icon:T(a.icon)})),B=()=>Z(L().supportMenuItems??[]),O=()=>L().showSupport??!0,E=({title:a=(0,o.__)("Popup Maker","popup-maker"),brandingUrl:t="https://wppopupmaker.com?utm_campaign=plugin-info&utm_source=plugin-admin-header&utm_medium=plugin-ui&utm_content=header-logo",tabs:h=[],currentTab:S,onTabChange:e,navTabId:r,supportMenuItems:n=[],showSupport:s=!0})=>{const p=(0,G.useRef)(null),{assetsUrl:i}=window.popupMaker.globalVars,u=N().length>0,d=u?I():h,m=u&&r?r:S,v=(0,G.useMemo)(()=>B(),[]),g=s&&O(),f=[...v,...n].reduce((a,t)=>{const h=t.group||"primary";return a[h]||(a[h]=[]),a[h].push(t),a},{});return(0,V.jsxs)("div",{className:"popup-maker-app-header",children:[(0,V.jsx)(w,{}),(0,V.jsx)("h1",{className:"branding wp-heading-inline",children:(0,V.jsxs)("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:[(0,V.jsx)("img",{src:`${i}images/mark.svg`,alt:""}),a]})}),d.length>0&&(0,V.jsx)(c.ControlledTabPanel,{className:"tabs",orientation:"horizontal",selected:m||null,onSelect:a=>{const t=d.find(t=>t.name===a);t?.onClick&&!1===t.onClick()||(t?.href?window.location.assign(t.href):e?.(a))},tabs:d}),(0,V.jsxs)("div",{className:"popup-maker-app-header__actions",children:[(0,V.jsx)(x,{}),g&&(0,V.jsx)(P.DropdownMenu,{label:(0,o.__)("Support","popup-maker"),icon:l,toggleProps:{as:({onClick:a})=>(0,V.jsx)(P.Button,{icon:l,variant:"link",onClick:a,className:"components-tab-panel__tabs-item support-link",children:(0,V.jsx)("span",{ref:p,children:(0,o.__)("Support","popup-maker")})})},popoverProps:{noArrow:!1,position:"bottom left",className:"popup-maker-support-menu",anchor:{getBoundingClientRect:()=>p?.current?.getBoundingClientRect()}},children:({onClose:a})=>(0,V.jsxs)(V.Fragment,{children:[Object.entries(f).map(([t,h])=>(0,V.jsx)(P.MenuGroup,{children:h.map(t=>(0,V.jsx)(P.MenuItem,{icon:t.icon,href:t.href,target:t.target,onClick:()=>{t.onClick&&t.onClick(),t.href||a()},children:t.label},t.label))},t)),(0,V.jsx)(k,{fillProps:{onClose:a}})]})})]}),(0,V.jsx)(M,{})]})},U=({className:a,children:t})=>(0,V.jsx)("div",{className:S("popup-maker-app-content",a),children:t}),Y=a=>{const t=(0,G.useMemo)(()=>N(),[]).length>0;return{tabs:(0,G.useMemo)(()=>I(),[]),currentTab:a,onTabChange:(0,G.useCallback)(a=>{R(a)},[]),usesLayoutNav:t}},D=()=>(0,G.useMemo)(()=>L(),[]);(window.popupMaker=window.popupMaker||{}).layout=t})();