|
1
|
|
-!function(){"use strict";var n={d:function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o:function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},r:function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})}},e={};n.r(e),n.d(e,{__flushAllInjections:function(){return u},createLocation:function(){return f},createReplaceableLocation:function(){return d}});var t=window.React;class r extends t.Component{state={hasError:!1};static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?this.props.fallback:this.props.children}}function o({children:n}){return t.createElement(r,{fallback:null},t.createElement(t.Suspense,{fallback:null},n))}const i=10,c=[];function u(){c.forEach(n=>n())}function a(n){return()=>[...n.values()].sort((n,e)=>n.priority-e.priority)}function l(n){return()=>(0,t.useMemo)(()=>n(),[])}function s(n){return e=>t.createElement(o,null,t.createElement(n,e))}function p(){return p=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},p.apply(null,arguments)}function f(){const n=new Map,e=a(n),r=l(e),o=function(n){return e=>{const r=n();return t.createElement(t.Fragment,null,r.map(({id:n,component:r})=>t.createElement(r,p({},e,{key:n}))))}}(r),u=function(n){return({component:e,id:t,options:r={}})=>{!n.has(t)||r?.overwrite?n.set(t,{id:t,component:s(e),priority:r.priority??i}):console.warn(`An injection with the id "${t}" already exists. Did you mean to use "options.overwrite"?`)}}(n);return c.push(()=>n.clear()),{inject:u,getInjections:e,useInjections:r,Slot:o}}function d(){const n=new Map,e=a(n),r=l(e),o=function(n){return e=>{const r=n(),{component:o}=r.find(({condition:n})=>n?.(e))??{};return o?t.createElement(o,e):e.children}}(r),u=function(n){return({component:e,id:t,condition:r=()=>!0,options:o={}})=>{n.set(t,{id:t,component:s(e),condition:r,priority:o.priority??i})}}(n);return c.push(()=>n.clear()),{getInjections:e,useInjections:r,inject:u,Slot:o}}(window.elementorV2=window.elementorV2||{}).locations=e}(),window.elementorV2.locations?.init?.(); |
|
1
|
+(function(){var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,__commonJSMin=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),__copyProps=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},__toESM=(n,r,a)=>(a=n==null?{}:e(i(n)),__copyProps(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),o=__toESM(__commonJSMin(((e,t)=>{var n=Object.create,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,__export=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},__copyProps=(e,t,n,o)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let c of a(t))!s.call(e,c)&&c!==n&&r(e,c,{get:()=>t[c],enumerable:!(o=i(t,c))||o.enumerable});return e},__toESM=(e,t,i)=>(i=e==null?{}:n(o(e)),__copyProps(t||!e||!e.__esModule?r(i,`default`,{value:e,enumerable:!0}):i,e)),__toCommonJS=e=>__copyProps(r({},`__esModule`,{value:!0}),e),c={};__export(c,{__flushAllInjections:()=>flushAllInjections,__registerFlushInjections:()=>registerFlushInjections,createLocation:()=>createLocation,createReplaceableLocation:()=>createReplaceableLocation}),t.exports=__toCommonJS(c);var l=__toESM(globalThis.React),u=__toESM(globalThis.React),d=globalThis.React,f=__toESM(globalThis.React),p=globalThis.React,m=globalThis.React,ErrorBoundary=class extends m.Component{state={hasError:!1};static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?this.props.fallback:this.props.children}};function InjectedComponentWrapper({children:e}){return f.createElement(ErrorBoundary,{fallback:null},f.createElement(p.Suspense,{fallback:null},e))}var h=10,g=[];function flushAllInjections(){g.forEach(e=>e())}function registerFlushInjections(e){g.push(e)}function createSubscription(){let e=new Set;return{subscribe:t=>(e.add(t),()=>e.delete(t)),notify:()=>e.forEach(e=>e())}}function createGetInjections(e){return()=>[...e.values()].sort((e,t)=>e.priority-t.priority)}function createUseInjections(e,t){let n=null;t(()=>{n=null});let getSnapshot=()=>(n||=e(),n);return()=>(0,d.useSyncExternalStore)(t,getSnapshot)}function wrapInjectedComponent(e){return t=>u.createElement(InjectedComponentWrapper,null,u.createElement(e,{...t}))}function createLocation(){let e=new Map,{subscribe:t,notify:n}=createSubscription(),r=createGetInjections(e),i=createUseInjections(r,t),a=createSlot(i),o=createInject(e,n);return g.push(()=>{e.clear(),n()}),{inject:o,getInjections:r,useInjections:i,Slot:a}}function createSlot(e){return t=>{let n=e();return l.createElement(l.Fragment,null,n.map(({id:e,component:n})=>l.createElement(n,{...t,key:e})))}}function createInject(e,t){return({component:n,id:r,options:i={}})=>{if(e.has(r)&&!i?.overwrite){console.warn(`An injection with the id "${r}" already exists. Did you mean to use "options.overwrite"?`);return}e.set(r,{id:r,component:wrapInjectedComponent(n),priority:i.priority??h}),t()}}var _=__toESM(globalThis.React);function createReplaceableLocation(){let e=new Map,{subscribe:t,notify:n}=createSubscription(),r=createGetInjections(e),i=createUseInjections(r,t),a=createReplaceable(i),o=createRegister(e,n);return g.push(()=>{e.clear(),n()}),{getInjections:r,useInjections:i,inject:o,Slot:a}}function createReplaceable(e){return t=>{let{component:n}=e().find(({condition:e})=>e?.(t))??{};return n?_.createElement(n,{...t}):t.children}}function createRegister(e,t){return({component:n,id:r,condition:i=()=>!0,options:a={}})=>{e.set(r,{id:r,component:wrapInjectedComponent(n),condition:i,priority:a.priority??h}),t()}}0&&(t.exports={__flushAllInjections,__registerFlushInjections,createLocation,createReplaceableLocation})}))());(window.elementorV2=window.elementorV2||{}).locations=o})(),window.elementorV2.locations?.init?.(); |