芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/www/wp-content/plugins/elementor-pro/assets/js/app.min.js
/*! elementor-pro - v3.21.0 - 20-05-2024 */ (()=>{var e={925:()=>{},9298:()=>{},6198:()=>{},6465:()=>{},6748:()=>{},3461:()=>{},2918:()=>{},6909:()=>{},927:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Link:()=>z,Location:()=>M,LocationProvider:()=>A,Match:()=>Q,Redirect:()=>J,Router:()=>B,ServerLocation:()=>N,createHistory:()=>T,createMemorySource:()=>x,globalHistory:()=>O,isRedirect:()=>V,matchPath:()=>d,navigate:()=>w,redirectTo:()=>K,useLocation:()=>Z,useMatch:()=>te,useNavigate:()=>X,useParams:()=>ee});var r=n(7363),o=n.n(r),i=n(3996),a=n.n(i),s=n(5629),u=n.n(s);function componentWillMount(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function componentWillReceiveProps(e){this.setState(function updater(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function componentWillUpdate(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}componentWillMount.__suppressDeprecationWarning=!0,componentWillReceiveProps.__suppressDeprecationWarning=!0,componentWillUpdate.__suppressDeprecationWarning=!0;var l=function startsWith(e,t){return e.substr(0,t.length)===t},c=function pick(e,t){for(var n=void 0,r=void 0,o=t.split("?")[0],i=_(o),s=""===i[0],u=y(e),l=0,c=u.length;l
t.score?-1:e.index-t.index}))},_=function segmentize(e){return e.replace(/(^\/+|\/+$)/g,"").split("/")},b=function addQuery(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r
0})))&&n.length>0?"?"+n.join("&"):"")},C=["uri","path"],E=Object.assign||function(e){for(var t=1;t
1&&void 0!==arguments[1]?arguments[1]:{},s=a.state,u=a.replace,l=void 0!==u&&u;if("number"==typeof t)e.history.go(t);else{s=E({},s,{key:Date.now()+""});try{o||l?e.history.replaceState(s,null,t):e.history.pushState(s,null,t)}catch(n){e.location[l?"replace":"assign"](t)}}r=S(e),o=!0;var c=new Promise((function(e){return i=e}));return n.forEach((function(e){return e({location:r,action:"PUSH"})})),c}}},x=function createMemorySource(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=e.indexOf("?"),n={pathname:t>-1?e.substr(0,t):e,search:t>-1?e.substr(t):""},r=0,o=[n],i=[null];return{get location(){return o[r]},addEventListener:function addEventListener(e,t){},removeEventListener:function removeEventListener(e,t){},history:{get entries(){return o},get index(){return r},get state(){return i[r]},pushState:function pushState(e,t,n){var a=n.split("?"),s=a[0],u=a[1],l=void 0===u?"":u;r++,o.push({pathname:s,search:l.length?"?"+l:l}),i.push(e)},replaceState:function replaceState(e,t,n){var a=n.split("?"),s=a[0],u=a[1],l=void 0===u?"":u;o[r]={pathname:s,search:l},i[r]=e},go:function go(e){var t=r+e;t<0||t>i.length-1||(r=t)}}}},P=!("undefined"==typeof window||!window.document||!window.document.createElement),O=T(function getSource(){return P?window:x()}()),w=O.navigate,j=Object.assign||function(e){for(var t=1;t
=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var I=function createNamedContext(e,t){var n=u()(t);return n.displayName=e,n},R=I("Location"),M=function Location(e){var t=e.children;return o().createElement(R.Consumer,null,(function(e){return e?t(e):o().createElement(A,null,t)}))},A=function(e){function LocationProvider(){var t,n;_classCallCheck(this,LocationProvider);for(var r=arguments.length,o=Array(r),i=0;i
-1?(i=t.substring(0,r),a=t.substring(r)):i=t,o().createElement(R.Provider,{value:{location:{pathname:i,search:a,hash:""},navigate:function navigate(){throw new Error("You can't call navigate on the server.")}}},n)},D=I("Base",{baseuri:"/",basepath:"/"}),B=function Router(e){return o().createElement(D.Consumer,null,(function(t){return o().createElement(M,null,(function(n){return o().createElement(q,j({},t,n,e))}))}))},q=function(e){function RouterImpl(){return _classCallCheck(this,RouterImpl),_possibleConstructorReturn(this,e.apply(this,arguments))}return _inherits(RouterImpl,e),RouterImpl.prototype.render=function render(){var e=this.props,t=e.location,n=e.navigate,r=e.basepath,i=e.primary,a=e.children,s=(e.baseuri,e.component),u=void 0===s?"div":s,l=_objectWithoutProperties(e,["location","navigate","basepath","primary","children","baseuri","component"]),d=o().Children.toArray(a).reduce((function(e,t){var n=re(r)(t);return e.concat(n)}),[]),f=t.pathname,m=c(d,f);if(m){var h=m.params,v=m.uri,g=m.route,y=m.route.value;r=g.default?r:g.path.replace(/\*$/,"");var _=j({},h,{uri:v,location:t,navigate:function navigate(e,t){return n(p(e,v),t)}}),b=o().cloneElement(y,_,y.props.children?o().createElement(B,{location:t,primary:i},y.props.children):void 0),C=i?W:u,E=i?j({uri:v,location:t,component:u},l):l;return o().createElement(D.Provider,{value:{baseuri:v,basepath:r}},o().createElement(C,E,b))}return null},RouterImpl}(o().PureComponent);q.defaultProps={primary:!0};var F=I("Focus"),W=function FocusHandler(e){var t=e.uri,n=e.location,r=e.component,i=_objectWithoutProperties(e,["uri","location","component"]);return o().createElement(F.Consumer,null,(function(e){return o().createElement(H,j({},i,{component:r,requestFocus:e,uri:t,location:n}))}))},U=!0,L=0,H=function(e){function FocusHandlerImpl(){var t,n;_classCallCheck(this,FocusHandlerImpl);for(var r=arguments.length,o=Array(r),i=0;i
{"use strict";t.__esModule=!0;var r=n(7363),o=(_interopRequireDefault(r),_interopRequireDefault(n(3615))),i=_interopRequireDefault(n(1230));_interopRequireDefault(n(1895));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=1073741823;t.default=function createReactContext(e,t){var n,s,u="__create-react-context-"+(0,i.default)()+"__",l=function(e){function Provider(){var t,n;_classCallCheck(this,Provider);for(var r=arguments.length,o=Array(r),i=0;i
{"use strict";t.__esModule=!0;var r=_interopRequireDefault(n(7363)),o=_interopRequireDefault(n(7996));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}t.default=r.default.createContext||o.default,e.exports=t.default},353:(e,t,n)=>{"use strict";var r=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function useFeatureLock(e){const t=elementorAppProConfig[e]??{},n=t.lock?.is_locked??!1,r=(0,a.htmlDecodeTextContent)(t.lock?.button.text),s=(0,a.replaceUtmPlaceholders)(t.lock?.button.url??"",t.utms??{});return{isLocked:n,ConnectButton:()=>o.default.createElement(i.default,{text:r,url:s})}};var o=r(n(7363)),i=r(n(3953)),a=n(1420)},3953:(e,t,n)=>{"use strict";var r=n(3615),o=n(8003).__,i=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(3119)),s=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=_getRequireWildcardCache(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(7363)),u=s,l=n(6779),c=n(1420);function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(_getRequireWildcardCache=function(e){return e?n:t})(e)}const ConnectButton=e=>{const t=(0,c.arrayToClassName)(["e-app-connect-button",e.className]),n=(0,s.useRef)(null);return(0,s.useEffect)((()=>{n.current&&jQuery(n.current).elementorConnect()}),[]),u.createElement(l.Button,(0,a.default)({},e,{elRef:n,className:t}))};ConnectButton.propTypes={...l.Button.propTypes,text:r.string.isRequired,url:r.string.isRequired,className:r.string},ConnectButton.defaultProps={className:"",variant:"contained",size:"sm",color:"cta",target:"_blank",rel:"noopener noreferrer",text:o("Connect & Activate","elementor")};t.default=u.memo(ConnectButton)},1420:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.replaceUtmPlaceholders=t.htmlDecodeTextContent=t.arrayToClassName=void 0;t.arrayToClassName=(e,t)=>e.filter((e=>"object"==typeof e?Object.entries(e)[0][1]:e)).map((e=>{const n="object"==typeof e?Object.entries(e)[0][0]:e;return t?t(n):n})).join(" ");t.htmlDecodeTextContent=e=>(new DOMParser).parseFromString(e,"text/html").documentElement.textContent;t.replaceUtmPlaceholders=(e="",t={})=>e&&t?(Object.keys(t).forEach((n=>{const r=new RegExp(`%%${n}%%`,"g");e=e.replace(r,t[n])})),e):e},5060:(e,t,n)=>{"use strict";var r=n(3615),o=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.Indicator=void 0;var i=o(n(7363));n(925);const Indicator=e=>{let t="eps-indicator-bullet";return e.active&&(t+=` ${t}--active`),i.default.createElement("i",{className:t})};t.Indicator=Indicator,Indicator.propTypes={active:r.bool}},2717:(e,t,n)=>{"use strict";var r=n(3615),o=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=PreviewIFrame;var i=o(n(7363));function PreviewIFrame(e){const t=i.default.useRef(null),[n,r]=i.default.useState(1),[o,a]=i.default.useState(0);return i.default.useEffect((()=>{const e=t.current.clientWidth/1200;r(e),a(t.current.clientHeight/e)}),[]),i.default.createElement("div",{ref:t,className:`site-editor__preview-iframe site-editor__preview-iframe--${e.templateType}`},i.default.createElement("iframe",{title:"preview",src:e.src,className:"site-editor__preview-iframe__iframe",style:{transform:`scale(${n})`,height:o,width:1200}}))}n(9298),PreviewIFrame.propTypes={src:r.string.isRequired,templateType:r.string.isRequired}},5896:(e,t,n)=>{"use strict";var r=n(7363);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseContext=void 0;class BaseContext extends r.Component{constructor(e){super(e),this.state={action:{current:null,loading:!1,error:null,errorMeta:{}},updateActionState:this.updateActionState.bind(this),resetActionState:this.resetActionState.bind(this)}}executeAction(e,t){return this.updateActionState({current:e,loading:!0,error:null,errorMeta:{}}),t().then((e=>(this.resetActionState(),Promise.resolve(e)))).catch((t=>(this.updateActionState({current:e,loading:!1,error:t.message,errorMeta:t}),Promise.reject(t))))}updateActionState(e){return this.setState((t=>({action:{...t.action,...e}})))}resetActionState(){this.updateActionState({current:null,loading:!1,error:null,errorMeta:{}})}}t.BaseContext=BaseContext;t.default=BaseContext},6455:(e,t,n)=>{"use strict";var r=n(3615),o=n(8003).__,i=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Context=t.ConditionsProvider=void 0;var a=i(n(7363)),s=i(n(3180)),u=i(n(7163)),l=i(n(5896)),c=n(6338);const d=t.Context=a.default.createContext();class ConditionsProvider extends l.default{static propTypes={children:r.any.isRequired,currentTemplate:r.object.isRequired,onConditionsSaved:r.func.isRequired,validateConflicts:r.bool};static defaultProps={validateConflicts:!0};static actions={FETCH_CONFIG:"fetch-config",SAVE:"save",CHECK_CONFLICTS:"check-conflicts"};conditionsConfig=null;constructor(e){super(e),this.state={...this.state,conditions:{},updateConditionItemState:this.updateConditionItemState.bind(this),removeConditionItemInState:this.removeConditionItemInState.bind(this),createConditionItemInState:this.createConditionItemInState.bind(this),findConditionItemInState:this.findConditionItemInState.bind(this),saveConditions:this.saveConditions.bind(this)}}componentDidMount(){this.executeAction(ConditionsProvider.actions.FETCH_CONFIG,(()=>u.default.create())).then((e=>this.conditionsConfig=e)).then(this.normalizeConditionsState.bind(this)).then(this.setSubIdTitles.bind(this))}saveConditions(){const e=Object.values(this.state.conditions).map((e=>e.forDb()));return this.executeAction(ConditionsProvider.actions.SAVE,(()=>$e.data.update(c.TemplatesConditions.signature,{conditions:e},{id:this.props.currentTemplate.id}))).then((()=>{const e=Object.values(this.state.conditions).map((e=>e.forContext()));this.props.onConditionsSaved(this.props.currentTemplate.id,{conditions:e,instances:this.conditionsConfig.calculateInstances(Object.values(this.state.conditions)),isActive:!(!Object.keys(this.state.conditions).length||"publish"!==this.props.currentTemplate.status)})}))}checkConflicts(e){return this.executeAction(ConditionsProvider.actions.CHECK_CONFLICTS,(()=>$e.data.get(c.TemplatesConditionsConflicts.signature,{post_id:this.props.currentTemplate.id,condition:e.clone().toString()}))).then((t=>this.updateConditionItemState(e.id,{conflictErrors:Object.values(t.data)},!1)))}fetchSubIdsTitles(e){return new Promise((t=>elementorCommon.ajax.loadObjects({action:"query_control_value_titles",ids:_.isArray(e.subId)?e.subId:[e.subId],data:{get_titles:e.subIdAutocomplete,unique_id:elementorCommon.helpers.getUniqueId()},success(e){t(e)}})))}normalizeConditionsState(){this.updateConditionsState((()=>this.props.currentTemplate.conditions.reduce(((e,t)=>{const n=new s.default({...t,default:this.props.currentTemplate.defaultCondition,options:this.conditionsConfig.getOptions(),subOptions:this.conditionsConfig.getSubOptions(t.name),subIdAutocomplete:this.conditionsConfig.getSubIdAutocomplete(t.sub),supIdOptions:t.subId?[{value:t.subId,label:t.subId}]:[]});return{...e,[n.id]:n}}),{}))).then((()=>{Object.values(this.state.conditions).forEach((e=>this.checkConflicts(e)))}))}setSubIdTitles(){return Object.values(this.state.conditions).forEach((e=>{if(e.subId)return this.fetchSubIdsTitles(e).then((t=>this.updateConditionItemState(e.id,{subIdOptions:[{label:Object.values(t)[0],value:e.subId}]},!1)))}))}updateConditionItemState(e,t,n=!0){t.name&&(t.subOptions=this.conditionsConfig.getSubOptions(t.name)),(t.sub||t.name)&&(t.subIdAutocomplete=this.conditionsConfig.getSubIdAutocomplete(t.sub),t.subIdOptions=[]),this.updateConditionsState((n=>{const r=n[e];return{...n,[e]:r.clone().set(t)}})).then((()=>{n&&this.checkConflicts(this.findConditionItemInState(e))}))}removeConditionItemInState(e){this.updateConditionsState((t=>{const n={...t};return delete n[e],n}))}createConditionItemInState(e=!0){const t=this.props.currentTemplate.defaultCondition,n=new s.default({name:t,default:t,options:this.conditionsConfig.getOptions(),subOptions:this.conditionsConfig.getSubOptions(t),subIdAutocomplete:this.conditionsConfig.getSubIdAutocomplete("")});this.updateConditionsState((e=>({...e,[n.id]:n}))).then((()=>{e&&this.checkConflicts(n)}))}findConditionItemInState(e){return Object.values(this.state.conditions).find((t=>t.id===e))}updateConditionsState(e){return new Promise((t=>this.setState((t=>({conditions:e(t.conditions)})),t)))}render(){if(this.state.action.current===ConditionsProvider.actions.FETCH_CONFIG){if(this.state.error)return a.default.createElement("h3",null,o("Error:","elementor-pro")," ",this.state.error);if(this.state.loading)return a.default.createElement("h3",null,o("Loading","elementor-pro"),"...")}return a.default.createElement(d.Provider,{value:this.state},this.props.children)}}t.ConditionsProvider=ConditionsProvider;t.default=ConditionsProvider},3180:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class Condition{id=elementorCommon.helpers.getUniqueId();default="";type="include";name="";sub="";subId="";options=[];subOptions=[];subIdAutocomplete=[];subIdOptions=[];conflictErrors=[];constructor(e){this.set(e)}set(e){return Object.assign(this,e),this}clone(){return Object.assign(new Condition,this)}remove(e){return Array.isArray(e)||(e=[e]),e.forEach((e=>{delete this[e]})),this}only(e){Array.isArray(e)||(e=[e]);const t=Object.keys(this).filter((t=>!e.includes(t)));return this.remove(t),this}toJson(){return JSON.stringify(this)}toString(){return this.forDb().filter((e=>e)).join("/")}forDb(){return[this.type,this.name,this.sub,this.subId]}forContext(){return{type:this.type,name:this.name,sub:this.sub,subId:this.subId}}}t.default=Condition},7163:(e,t,n)=>{"use strict";var r=n(8003).__;Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ConditionsConfig=void 0;var o=n(6338);class ConditionsConfig{static instance;config=null;constructor(e){this.config=e}static create(){return ConditionsConfig.instance?Promise.resolve(ConditionsConfig.instance):$e.data.get(o.ConditionsConfig.signature,{},{refresh:!0}).then((e=>(ConditionsConfig.instance=new ConditionsConfig(e.data),ConditionsConfig.instance)))}getOptions(){return this.getSubOptions("general",!0).map((({label:e,value:t})=>({label:e,value:t})))}getSubOptions(e,t=!1){const n=this.config[e];return n?[{label:n.all_label,value:t?e:""},...n.sub_conditions.map((e=>{const t=this.config[e];return{label:t.label,value:e,children:t.sub_conditions.length?this.getSubOptions(e,!0):null}}))]:[]}getSubIdAutocomplete(e){const t=this.config[e];if(!t||"object"!=typeof t.controls)return{};const n=Object.values(t.controls);return n?.[0]?.autocomplete?n[0].autocomplete:{}}calculateInstances(e){let t=e.reduce(((e,t)=>{if("exclude"===t.type)return e;const n=t.sub||t.name,r=this.config[n];if(!r)return e;const o=t.subId?`${r.label} #${t.subId}`:r.all_label;return{...e,[n]:o}}),{});return 0===Object.keys(t).length&&(t=[r("No instances","elementor-pro")]),t}}t.ConditionsConfig=ConditionsConfig;t.default=ConditionsConfig},3606:(e,t,n)=>{"use strict";var r=n(3615),o=n(8003).__,i=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.TemplatesProvider=t.Context=void 0;var a=i(n(7363)),s=i(n(5896)),u=n(6338),l=i(n(1717));const c=t.Context=a.default.createContext();class TemplatesProvider extends s.default{static propTypes={children:r.object.isRequired};static actions={FETCH:"fetch",DELETE:"delete",UPDATE:"update",IMPORT:"import"};constructor(e){super(e),this.state={...this.state,action:{...this.state.action,current:TemplatesProvider.actions.FETCH,loading:!0},templates:{},updateTemplateItemState:this.updateTemplateItemState.bind(this),findTemplateItemInState:this.findTemplateItemInState.bind(this),fetchTemplates:this.fetchTemplates.bind(this),deleteTemplate:this.deleteTemplate.bind(this),updateTemplate:this.updateTemplate.bind(this),importTemplates:this.importTemplates.bind(this)}}componentDidMount(){this.fetchTemplates()}importTemplates({fileName:e,fileData:t}){return this.executeAction(TemplatesProvider.actions.IMPORT,(()=>$e.data.create(u.Templates.signature,{fileName:e,fileData:t}))).then((e=>(this.updateTemplatesState((t=>({...t,...Object.values(e.data).reduce(((e,t)=>t.supportsSiteEditor?{...e,[t.id]:t}:e),{})}))),e)))}deleteTemplate(e){return this.executeAction(TemplatesProvider.actions.DELETE,(()=>$e.data.delete(u.Templates.signature,{id:e}))).then((()=>{this.updateTemplatesState((t=>{const n={...t};return delete n[e],n}))}))}updateTemplate(e,t){return this.executeAction(TemplatesProvider.actions.UPDATE,(()=>$e.data.update(u.Templates.signature,t,{id:e}))).then((t=>{this.updateTemplateItemState(e,t.data)}))}fetchTemplates(){return this.executeAction(TemplatesProvider.actions.FETCH,(()=>$e.data.get(u.Templates.signature,{},{refresh:!0}))).then((e=>{this.updateTemplatesState((()=>Object.values(e.data).reduce(((e,t)=>({...e,[t.id]:t})),{})),!1)}))}updateTemplateItemState(e,t){return this.updateTemplatesState((n=>{const r={...n[e],...t};return{...n,[e]:r}}))}updateTemplatesState(e,t=!0){return t&&$e.data.deleteCache($e.components.get(l.default.namespace),u.Templates.signature),this.setState((t=>({templates:e(t.templates)})))}findTemplateItemInState(e){return this.state.templates[e]}render(){if(this.state.action.current===TemplatesProvider.actions.FETCH){if(this.state.action.error)return a.default.createElement("h3",null,o("Error:","elementor-pro")," ",this.state.action.error);if(this.state.action.loading)return a.default.createElement("h3",null,o("Loading","elementor-pro"),"...")}return a.default.createElement(c.Provider,{value:this.state},this.props.children)}}t.TemplatesProvider=TemplatesProvider;t.default=TemplatesProvider},1471:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ConditionsConfig=void 0;class ConditionsConfig extends $e.modules.CommandData{static signature="site-editor/conditions-config";static getEndpointFormat(){return"site-editor/conditions-config/{id}"}}t.ConditionsConfig=ConditionsConfig;t.default=ConditionsConfig},6338:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ConditionsConfig",{enumerable:!0,get:function(){return o.ConditionsConfig}}),Object.defineProperty(t,"Templates",{enumerable:!0,get:function(){return r.Templates}}),Object.defineProperty(t,"TemplatesConditions",{enumerable:!0,get:function(){return i.TemplatesConditions}}),Object.defineProperty(t,"TemplatesConditionsConflicts",{enumerable:!0,get:function(){return a.TemplatesConditionsConflicts}});var r=n(4837),o=n(1471),i=n(801),a=n(7691)},7691:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.TemplatesConditionsConflicts=void 0;class TemplatesConditionsConflicts extends $e.modules.CommandData{static signature="site-editor/templates-conditions-conflicts";static getEndpointFormat(){return`${TemplatesConditionsConflicts.signature}/{id}`}}t.TemplatesConditionsConflicts=TemplatesConditionsConflicts;t.default=TemplatesConditionsConflicts},801:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.TemplatesConditions=void 0;class TemplatesConditions extends $e.modules.CommandData{static signature="site-editor/templates-conditions";static getEndpointFormat(){return"site-editor/templates-conditions/{id}"}}t.TemplatesConditions=TemplatesConditions;t.default=TemplatesConditions},4837:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Templates=void 0;class Templates extends $e.modules.CommandData{static signature="site-editor/templates";static getEndpointFormat(){return"site-editor/templates/{id}"}}t.Templates=Templates;t.default=Templates},1717:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=_getRequireWildcardCache(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(6338));function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(_getRequireWildcardCache=function(e){return e?n:t})(e)}class Component extends $e.modules.ComponentBase{static namespace="site-editor";getNamespace(){return this.constructor.namespace}defaultData(){return this.importCommands(r)}}t.default=Component},6948:(e,t,n)=>{"use strict";var r=n(7363);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function useTemplatesScreenshot(e=null){const{updateTemplateItemState:t,templates:n}=r.useContext(o.Context),a=Object.values(n).filter((t=>function shouldScreenshotTemplate(e,t=null){if(t)return!1;return"publish"===e.status&&!e.thumbnail&&e.screenshot_url}(t,e))),s=(0,i.default)(a);return r.useEffect((()=>{s.posts.filter((e=>e.status===i.SCREENSHOT_STATUS_SUCCEED)).forEach((e=>t(e.id,{thumbnail:e.imageUrl})))}),[s.succeed]),r.useEffect((()=>{s.posts.filter((e=>e.status===i.SCREENSHOT_STATUS_FAILED)).forEach((e=>t(e.id,{screenshot_url:null})))}),[s.failed]),s};var o=n(3606),i=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=_getRequireWildcardCache(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(8954));function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(_getRequireWildcardCache=function(e){return e?n:t})(e)}},2693:(e,t,n)=>{"use strict";var r=n(8003).__,o=n(3615),i=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=BackButton;var a=i(n(7363)),s=n(6779);function BackButton(e){return a.default.createElement("div",{className:"back-button-wrapper"},a.default.createElement(s.Button,{className:"eps-back-button",text:r("Back","elementor-pro"),icon:"eicon-chevron-left",onClick:e.onClick}))}n(6198),BackButton.propTypes={onClick:o.func},BackButton.defaultProps={onClick:()=>history.back()}},8248:(e,t,n)=>{"use strict";var r=n(3615),o=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.SiteTemplateBody=void 0;var i=o(n(7363)),a=n(6779),s=o(n(883)),u=o(n(2717));const SiteTemplateBody=e=>i.default.createElement(a.CardBody,null,e.extended?i.default.createElement(u.default,{src:e.previewUrl,templateType:e.type}):i.default.createElement(s.default,{id:e.id,title:e.title,type:e.type,thumbnail:e.thumbnail,placeholder:e.placeholderUrl}));t.SiteTemplateBody=SiteTemplateBody,SiteTemplateBody.propTypes={extended:r.bool,id:r.number,title:r.string,thumbnail:r.string,placeholderUrl:r.string,type:r.string,previewUrl:r.string}},617:(e,t,n)=>{"use strict";var r=n(8003).__,o=n(3615),i=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.SiteTemplateFooter=void 0;var a=i(n(7363)),s=n(6779);const SiteTemplateFooter=e=>{const t=Object.values(e.instances).join(", ");return a.default.createElement(s.CardFooter,null,a.default.createElement("div",{className:"e-site-template__instances"},a.default.createElement(s.Icon,{className:"eicon-flow"}),a.default.createElement(s.Text,{tag:"span",variant:"sm"},a.default.createElement("b",null,r("Instances","elementor-pro"),":")),a.default.createElement(s.Text,{className:"e-site-template__instances-list",tag:"span",variant:"xxs"}," ",t),a.default.createElement(s.Button,{text:r("Edit Conditions","elementor-pro"),className:"e-site-template__edit-conditions",url:`/site-editor/conditions/${e.id}`})))};t.SiteTemplateFooter=SiteTemplateFooter,SiteTemplateFooter.propTypes={id:o.number.isRequired,instances:o.any}},2385:(e,t,n)=>{"use strict";var r=n(8003).__,o=n(3615),i=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.SiteTemplateHeader=void 0;var a=i(n(7363)),s=n(6779),u=i(n(5069)),l=n(5060);const SiteTemplateHeader=e=>{const t=e.status&&"publish"!==e.status?` (${e.status})`:"",n=e.title+t,ActionButtons=()=>a.default.createElement(a.default.Fragment,null,a.default.createElement(s.Button,{text:r("Edit","elementor-pro"),icon:"eicon-edit",className:"e-site-template__edit-btn",size:"sm",url:e.editURL}),a.default.createElement(u.default,e)),MetaDataIcon=e=>a.default.createElement(s.Text,{tag:"span",className:"e-site-template__meta-data"},a.default.createElement(s.Icon,{className:e.icon}),e.content),MetaData=()=>a.default.createElement(a.default.Fragment,null,a.default.createElement(MetaDataIcon,{icon:"eicon-user-circle-o",content:e.author}),a.default.createElement(MetaDataIcon,{icon:"eicon-clock-o",content:e.modifiedDate})),o=e.showInstances?a.default.createElement(l.Indicator,{active:e.isActive}):"";return a.default.createElement(s.CardHeader,null,o,a.default.createElement(s.Heading,{tag:"h1",title:n,variant:"text-sm",className:"eps-card__headline"},n),e.extended&&a.default.createElement(MetaData,null),e.extended&&a.default.createElement(ActionButtons,null))};t.SiteTemplateHeader=SiteTemplateHeader,SiteTemplateHeader.propTypes={isActive:o.bool,author:o.string,editURL:o.string,extended:o.bool,modifiedDate:o.string,status:o.string,title:o.string,showInstances:o.bool}},883:(e,t,n)=>{"use strict";var r=n(8003).__,o=n(3615),i=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=SiteTemplateThumbnail;var a=i(n(7363)),s=n(6779);function SiteTemplateThumbnail(e){return a.default.createElement(s.CardImage,{alt:e.title,src:e.thumbnail||e.placeholder,className:e.thumbnail?"":"e-site-template__placeholder"},a.default.createElement(s.CardOverlay,{className:"e-site-template__overlay-preview"},a.default.createElement(s.Button,{className:"e-site-template__overlay-preview-button",text:r("Preview","elementor-pro"),icon:"eicon-preview-medium",url:`/site-editor/templates/${e.type}/${e.id}`})))}SiteTemplateThumbnail.propTypes={id:o.number,title:o.string,type:o.string,thumbnail:o.string,placeholder:o.string}},6899:(e,t,n)=>{"use strict";var r=n(3615),o=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=SiteTemplate;var i=o(n(7363));n(3517);var a=n(6779),s=n(2385),u=n(8248),l=n(617);function SiteTemplate(e){const t="e-site-template",n=[t],r=i.default.useRef(null);i.default.useEffect((()=>{e.isSelected&&r.current.scrollIntoView({behavior:"smooth",block:"start"})}),[e.isSelected]),e.extended&&n.push(`${t}--extended`),e.aspectRatio&&n.push(`${t}--${e.aspectRatio}`);const o=e.extended&&e.showInstances?i.default.createElement(l.SiteTemplateFooter,e):"";return i.default.createElement(a.Card,{className:n.join(" "),ref:r},i.default.createElement(s.SiteTemplateHeader,e),i.default.createElement(u.SiteTemplateBody,e),o)}n(6465),SiteTemplate.propTypes={aspectRatio:r.string,className:r.string,extended:r.bool,id:r.number.isRequired,isActive:r.bool.isRequired,status:r.string,thumbnail:r.string.isRequired,title:r.string.isRequired,isSelected:r.bool,type:r.string.isRequired,showInstances:r.bool},SiteTemplate.defaultProps={isSelected:!1}},2892:(e,t,n)=>{"use strict";var r=n(8003).__,o=n(3615),i=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=SiteTemplates;var a=i(n(7363)),s=i(n(3119)),u=n(6779),l=i(n(6899)),c=n(5069),d=n(3606),p=i(n(6948));function SiteTemplates(e){const{templates:t,action:n,resetActionState:o}=a.default.useContext(d.Context);let i,f;f=a.default.useMemo((()=>Object.values(t).sort(((e,t)=>t.isActive||e.isActive?t.isActive&&e.isActive?t.date
t.type===e.type)),m.extended=!0,m.type=e.type,e.type){case"header":case"footer":i=1,m.aspectRatio="wide";break;default:i=2}return f&&f.length?a.default.createElement("section",{className:"e-site-editor__site-templates"},a.default.createElement(c.PartActionsDialogs,null),n.error&&a.default.createElement(u.Dialog,{text:n.error,dismissButtonText:r("Go Back","elementor-pro"),dismissButtonOnClick:o,approveButtonText:r("Learn More","elementor-pro"),approveButtonColor:"link",approveButtonUrl:"https://go.elementor.com/app-theme-builder-template-load-issue",approveButtonTarget:"_target"}),a.default.createElement(u.CssGrid,{columns:i,spacing:24,colMinWidth:200},f.map((t=>a.default.createElement(l.default,(0,s.default)({key:t.id},t,m,{isSelected:parseInt(e.id)===t.id})))))):a.default.createElement("h3",null,r("No Templates found. Want to create one?","elementor-pro"),"...")}SiteTemplates.propTypes={type:o.string,id:o.string}},9781:(e,t,n)=>{"use strict";var r=n(3615),o=n(8003).__,i=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function AddNew(){const{templates:e}=a.default.useContext(l.Context),t=1<=Object.keys(e).length,{isLocked:n,ConnectButton:i}=(0,d.default)("site-editor"),HoverElement=e=>n?a.default.createElement(s.CardOverlay,{className:"e-site-editor__promotion-overlay"},a.default.createElement("div",{className:"e-site-editor__promotion-overlay__link"},a.default.createElement("i",{className:"e-site-editor__promotion-overlay__icon eicon-lock"}))):a.default.createElement("a",{href:e.urls.create,className:"eps-card__image-overlay eps-add-new__overlay"},a.default.createElement(s.AddNewButton,{hideText:!0}));return HoverElement.propTypes={urls:r.object.isRequired},a.default.createElement("section",{className:"e-site-editor__add-new"},a.default.createElement(s.Grid,{container:!0,direction:"column",className:"e-site-editor__header"},t&&a.default.createElement(s.Grid,{item:!0},a.default.createElement(c.default,null)),a.default.createElement(s.Grid,{item:!0,container:!0,justify:"space-between",alignItems:"start"},a.default.createElement(s.Heading,{variant:"h1"},o("Start customizing every part of your site","elementor-pro")),n&&a.default.createElement(i,null))),a.default.createElement(u.SiteParts,{hoverElement:HoverElement}))};var a=i(n(7363)),s=n(6779),u=n(1418);n(6748);var l=n(3606),c=i(n(2693)),d=i(n(353))},22:(e,t,n)=>{"use strict";var r=n(8003).__,o=n(3615),i=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=ConditionConflicts;var a=i(n(7363)),s=n(6779);function ConditionConflicts(e){if(!e.conflicts.length)return"";const t=e.conflicts.map((e=>a.default.createElement(s.Button,{key:e.template_id,target:"_blank",url:e.edit_url,text:e.template_title})));return a.default.createElement(s.Text,{className:"e-site-editor-conditions__conflict",variant:"sm"},r("Elementor recognized that you have set this location for other templates: ","elementor-pro")," ",t)}ConditionConflicts.propTypes={conflicts:o.array.isRequired}},3117:(e,t,n)=>{"use strict";var r=n(3615),o=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=ConditionName;var i=o(n(7363)),a=n(6779);function ConditionName(e){if("general"!==e.default)return"";return i.default.createElement("div",{className:"e-site-editor-conditions__input-wrapper"},i.default.createElement(a.Select,{options:e.options,value:e.name,onChange:t=>e.updateConditions(e.id,{name:t.target.value,sub:"",subId:""})}))}ConditionName.propTypes={updateConditions:r.func.isRequired,id:r.string.isRequired,name:r.string.isRequired,options:r.array.isRequired,default:r.string.isRequired},ConditionName.defaultProps={name:""}},7122:(e,t,n)=>{"use strict";var r=n(8003).__,o=n(3615),i=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=ConditionSubId;var a=i(n(7363)),s=n(6779);function ConditionSubId(e){const t=a.default.useMemo((()=>Object.keys(e.subIdAutocomplete).length?function getSettings(e){return{allowClear:!1,placeholder:r("All","elementor-pro"),dir:elementorCommon.config.isRTL?"rtl":"ltr",ajax:{transport:(t,n,r)=>elementorCommon.ajax.addRequest("pro_panel_posts_control_filter_autocomplete",{data:{q:t.data.q,autocomplete:e},success:n,error:r}),data:e=>({q:e.term,page:e.page}),cache:!0},escapeMarkup:e=>e,minimumInputLength:1}}(e.subIdAutocomplete):null),[e.subIdAutocomplete]);if(!e.sub||!t)return"";return a.default.createElement("div",{className:"e-site-editor-conditions__input-wrapper"},a.default.createElement(s.Select2,{onChange:t=>e.updateConditions(e.id,{subId:t.target.value}),value:e.subId,settings:t,options:e.subIdOptions}))}ConditionSubId.propTypes={subIdAutocomplete:o.object,id:o.string.isRequired,sub:o.string,subId:o.string,updateConditions:o.func,subIdOptions:o.array},ConditionSubId.defaultProps={subId:"",subIdOptions:[]}},3046:(e,t,n)=>{"use strict";var r=n(3615),o=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=ConditionSub;var i=o(n(7363)),a=n(6779);function ConditionSub(e){if("general"===e.name||!e.subOptions.length)return"";return i.default.createElement("div",{className:"e-site-editor-conditions__input-wrapper"},i.default.createElement(a.Select,{options:e.subOptions,value:e.sub,onChange:t=>e.updateConditions(e.id,{sub:t.target.value,subId:""})}))}ConditionSub.propTypes={updateConditions:r.func.isRequired,id:r.string.isRequired,name:r.string.isRequired,sub:r.string.isRequired,subOptions:r.array.isRequired},ConditionSub.defaultProps={sub:"",subOptions:{}}},6130:(e,t,n)=>{"use strict";var r=n(8003).__,o=n(3615),i=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=ConditionType;var a=i(n(7363)),s=n(6779);function ConditionType(e){const t=a.default.createRef(),n=[{label:r("Include","elementor-pro"),value:"include"},{label:r("Exclude","elementor-pro"),value:"exclude"}];return a.default.useEffect((()=>{t.current.setAttribute("data-elementor-condition-type",e.type)})),a.default.createElement("div",{className:"e-site-editor-conditions__input-wrapper e-site-editor-conditions__input-wrapper--condition-type",ref:t},a.default.createElement(s.Select,{options:n,value:e.type,onChange:t=>{e.updateConditions(e.id,{type:t.target.value})}}))}ConditionType.propTypes={updateConditions:o.func.isRequired,id:o.string.isRequired,type:o.string.isRequired},ConditionType.defaultProps={type:""}},9031:(e,t,n)=>{"use strict";var r=n(8003).__,o=n(3615),i=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=ConditionsRows;var a=i(n(7363)),s=i(n(3119)),u=n(6455),l=n(6779),c=i(n(6130)),d=i(n(3117)),p=i(n(3046)),f=i(n(7122)),m=i(n(22));function ConditionsRows(e){const{conditions:t,createConditionItemInState:n,updateConditionItemState:o,removeConditionItemInState:i,saveConditions:h,action:v,resetActionState:g}=a.default.useContext(u.Context),y=Object.values(t).map((e=>a.default.createElement("div",{key:e.id},a.default.createElement("div",{className:"e-site-editor-conditions__row"},a.default.createElement("div",{className:`e-site-editor-conditions__row-controls ${e.conflictErrors.length&&"e-site-editor-conditions__row-controls--error"}`},a.default.createElement(c.default,(0,s.default)({},e,{updateConditions:o})),a.default.createElement("div",{className:"e-site-editor-conditions__row-controls-inner"},a.default.createElement(d.default,(0,s.default)({},e,{updateConditions:o})),a.default.createElement(p.default,(0,s.default)({},e,{updateConditions:o})),a.default.createElement(f.default,(0,s.default)({},e,{updateConditions:o})))),a.default.createElement(l.Button,{className:"e-site-editor-conditions__remove-condition",text:r("Delete","elementor-pro"),icon:"eicon-close",hideText:!0,onClick:()=>i(e.id)})),a.default.createElement(m.default,{conflicts:e.conflictErrors})))),_=v.current===u.ConditionsProvider.actions.SAVE&&v.loading;return a.default.createElement(a.default.Fragment,null,v.error&&a.default.createElement(l.Dialog,{text:v.error,dismissButtonText:r("Go Back","elementor-pro"),dismissButtonOnClick:g,approveButtonText:r("Learn More","elementor-pro"),approveButtonColor:"link",approveButtonUrl:"https://go.elementor.com/app-theme-builder-conditions-load-issue",approveButtonTarget:"_target"}),a.default.createElement("div",{className:"e-site-editor-conditions__rows"},y),a.default.createElement("div",{className:"e-site-editor-conditions__add-button-container"},a.default.createElement(l.Button,{className:"e-site-editor-conditions__add-button",variant:"contained",size:"lg",text:r("Add Condition","elementor-pro"),onClick:n})),a.default.createElement("div",{className:"e-site-editor-conditions__footer"},a.default.createElement(l.Button,{variant:"contained",color:"primary",size:"lg",hideText:_,icon:_?"eicon-loading eicon-animation-spin":"",text:r("Save & Close","elementor-pro"),onClick:()=>h().then(e.onAfterSave)})))}ConditionsRows.propTypes={onAfterSave:o.func}},5222:(e,t,n)=>{"use strict";var r=n(8003).__,o=n(3615),i=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=Conditions;var a=i(n(7363)),s=n(6779),u=i(n(6455)),l=n(3606),c=i(n(9031));n(3461);var d=i(n(2693));function Conditions(e){const{findTemplateItemInState:t,updateTemplateItemState:n}=a.default.useContext(l.Context),o=t(parseInt(e.id));return o?a.default.createElement("section",{className:"e-site-editor-conditions"},a.default.createElement(d.default,null),a.default.createElement("div",{className:"e-site-editor-conditions__header"},a.default.createElement("img",{className:"e-site-editor-conditions__header-image",src:`${elementorAppProConfig.baseUrl}/modules/theme-builder/assets/images/conditions-tab.svg`,alt:r("Import template","elementor-pro")}),a.default.createElement(s.Heading,{variant:"h1",tag:"h1"},r("Where Do You Want to Display Your Template?","elementor-pro")),a.default.createElement(s.Text,{variant:"p"},r("Set the conditions that determine where your template is used throughout your site.","elementor-pro"),a.default.createElement("br",null),r("For example, choose 'Entire Site' to display the template across your site.","elementor-pro"))),a.default.createElement(u.default,{currentTemplate:o,onConditionsSaved:n},a.default.createElement(c.default,{onAfterSave:()=>history.back()}))):a.default.createElement("div",null,r("Not Found","elementor-pro"))}Conditions.propTypes={id:o.string}},9758:(e,t,n)=>{"use strict";var r=n(8003).__,o=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function Import(){const{importTemplates:e,action:t,resetActionState:n}=i.default.useContext(s.Context),[o,c]=i.default.useState(null),d=t.current===s.TemplatesProvider.actions.IMPORT,p=d&&t.loading,f=d&&t.error,m=i.default.useCallback((t=>{p||function readFile(e){return new Promise((t=>{const n=new FileReader;n.readAsDataURL(e),n.onload=e=>{t(e.target.result.replace(/^[^,]+,/,""))}}))}(t).then((n=>e({fileName:t.name,fileData:n}))).then((e=>{c(e.data[0])}))}),[]),{runAction:h,dialog:v,checkbox:g}=l({doNotShowAgainKey:"upload_json_warning_generic_message",action:m});return i.default.createElement("section",{className:"site-editor__import"},o&&i.default.createElement(a.Dialog,{title:r("Your template was imported","elementor-pro"),approveButtonText:r("Preview","elementor-pro"),approveButtonUrl:o.url,approveButtonTarget:"_blank",dismissButtonText:r("Edit","elementor-pro"),dismissButtonUrl:o.editURL,dismissButtonTarget:"_top",onClose:()=>c(null)}),f&&i.default.createElement(a.Dialog,{title:t.error,approveButtonText:r("Learn More","elementor-pro"),approveButtonUrl:"https://go.elementor.com/app-theme-builder-import-issue",approveButtonTarget:"_blank",approveButtonColor:"link",dismissButtonText:r("Go Back","elementor-pro"),dismissButtonOnClick:n,onClose:n}),v.isOpen&&i.default.createElement(a.Dialog,{title:r("Warning: JSON or ZIP files may be unsafe","elementor-pro"),text:r("Uploading JSON or ZIP files from unknown sources can be harmful and put your site at risk. For maximum safety, upload only JSON or ZIP files from trusted sources.","elementor-pro"),approveButtonColor:"link",approveButtonText:r("Continue","elementor-pro"),approveButtonOnClick:v.approve,dismissButtonText:r("Cancel","elementor-pro"),dismissButtonOnClick:v.dismiss,onClose:v.dismiss},i.default.createElement("label",{htmlFor:"do-not-show-upload-json-warning-again",style:{display:"flex",alignItems:"center",gap:"5px"}},i.default.createElement(a.Checkbox,{id:"do-not-show-upload-json-warning-again",type:"checkbox",value:g.isChecked,onChange:e=>g.setIsChecked(!!e.target.checked)}),r("Do not show this message again","elementor-pro"))),i.default.createElement(u.default,null),i.default.createElement(a.DropZone,{heading:r("Import Template To Your Library","elementor-pro"),text:r("Drag & Drop your .JSON or .zip template file","elementor-pro"),secondaryText:r("or","elementor-pro"),onFileSelect:h,isLoading:p,filetypes:["zip","json"]}))};var i=o(n(7363)),a=n(6779),s=n(3606),u=o(n(2693));const l=n(9404).useConfirmAction??(({action:e})=>({runAction:e,dialog:{isOpen:!1}}))},427:(e,t,n)=>{"use strict";var r=n(8003).__,o=n(3615),i=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=TemplateType;var a=i(n(7363)),s=n(1418),u=n(6779),l=i(n(2892)),c=i(n(353));function TemplateType(e){const{templateTypes:t}=a.default.useContext(s.TemplateTypesContext),n=t.find((t=>t.type===e.type)),{isLocked:o,ConnectButton:i}=(0,c.default)("site-editor");return n?a.default.createElement("section",{className:`e-site-editor__templates e-site-editor__templates--type-${e.type}`},a.default.createElement(u.Grid,{className:"page-header",container:!0,justify:"space-between"},a.default.createElement(u.Heading,{variant:"h1"},n.page_title),o?a.default.createElement(i,null):a.default.createElement(u.AddNewButton,{url:n.urls.create,text:r("Add New","elementor-pro")})),a.default.createElement("hr",{className:"eps-separator"}),a.default.createElement(l.default,{type:n.type,id:e.id})):a.default.createElement(u.NotFound,null)}n(2918),TemplateType.propTypes={type:o.string,page_title:o.string,id:o.string}},2287:(e,t,n)=>{"use strict";var r=n(8003).__,o=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function Templates(){const{isLocked:e,ConnectButton:t}=(0,u.default)("site-editor");return i.default.createElement("section",{className:"e-site-editor__site-templates"},i.default.createElement(s.Grid,{container:!0,justify:"space-between",alignItems:"start",className:"page-header"},i.default.createElement("h1",null,r("Your Site's Global Parts","elementor-pro")),e?i.default.createElement(t,null):i.default.createElement(s.AddNewButton,{url:"/site-editor/add-new"})),i.default.createElement("hr",{className:"eps-separator"}),i.default.createElement(a.default,null))};var i=o(n(7363)),a=o(n(2892)),s=n(6779),u=o(n(353))},2182:(e,t,n)=>{"use strict";var r=n(8003).__,o=n(3615),i=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=DialogDelete;var a=i(n(7363)),s=n(6779),u=n(3606);function DialogDelete(e){const{deleteTemplate:t,findTemplateItemInState:n}=a.default.useContext(u.Context),closeDialog=n=>{e.setId(null),n&&t(e.id)};if(!e.id)return"";const o=n(e.id);return a.default.createElement(s.Dialog,{title:r("Move Item To Trash","elementor-pro"),text:r("Are you sure you want to move this item to trash:","elementor-pro")+` "${o.title}"`,onSubmit:()=>closeDialog(!0),approveButtonText:r("Move to Trash","elementor-pro"),approveButtonOnClick:()=>closeDialog(!0),approveButtonColor:"danger",dismissButtonText:r("Cancel","elementor-pro"),dismissButtonOnClick:()=>closeDialog(),onClose:()=>closeDialog()})}DialogDelete.propTypes={id:o.number,setId:o.func.isRequired}},5518:(e,t,n)=>{"use strict";var r=n(8003).__,o=n(3615);Object.defineProperty(t,"__esModule",{value:!0}),t.default=DialogRename;var i=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=_getRequireWildcardCache(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(7363)),a=n(6779),s=n(3606);function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(_getRequireWildcardCache=function(e){return e?n:t})(e)}function DialogRename(e){const{findTemplateItemInState:t,updateTemplate:n}=i.default.useContext(s.Context),o=t(e.id),[u,l]=i.default.useState("");(0,i.useEffect)((()=>{o&&l(o.title)}),[o]);const closeDialog=t=>{e.setId(null),t&&n(e.id,{post_title:u})};return e.id?i.default.createElement(a.Dialog,{title:r("Rename Site Part","elementor-pro"),approveButtonText:r("Change","elementor-pro"),onSubmit:()=>closeDialog(!0),approveButtonOnClick:()=>closeDialog(!0),approveButtonColor:"primary",dismissButtonText:r("Cancel","elementor-pro"),dismissButtonOnClick:()=>closeDialog(),onClose:()=>closeDialog()},i.default.createElement("input",{type:"text",className:"eps-input eps-input-text eps-input--block",autoFocus:!0,value:u,onChange:e=>l(e.target.value)})):""}DialogRename.propTypes={id:o.number,setId:o.func.isRequired}},5069:(e,t,n)=>{"use strict";var r=n(8003).__,o=n(3615),i=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.PartActionsDialogs=function PartActionsDialogs(){const[e,t]=a.default.useState(null),[n,r]=a.default.useState(null);return c.rename=t,c.delete=r,a.default.createElement(a.default.Fragment,null,a.default.createElement(s.default,{id:e,setId:t}),a.default.createElement(u.default,{id:n,setId:r}))},t.default=PartActionsButtons,t.handlers=void 0;var a=i(n(7363)),s=i(n(5518)),u=i(n(2182)),l=n(6779);const c=t.handlers={rename:null,delete:null};function PartActionsButtons(e){const[t,n]=a.default.useState(!1);let o="";return t&&(o=a.default.createElement(l.Popover,{closeFunction:()=>n(!t)},a.default.createElement("li",null,a.default.createElement(l.Button,{className:"eps-popover__item",icon:"eicon-sign-out",text:r("Export","elementor-pro"),url:e.exportLink})),a.default.createElement("li",null,a.default.createElement(l.Button,{className:"eps-popover__item eps-popover__item--danger",icon:"eicon-trash-o",text:r("Trash","elementor-pro"),onClick:()=>c.delete(e.id)})),a.default.createElement("li",null,a.default.createElement(l.Button,{className:"eps-popover__item",icon:"eicon-edit",text:r("Rename","elementor-pro"),onClick:()=>c.rename(e.id)})))),a.default.createElement("div",{className:"eps-popover__container"},a.default.createElement(l.Button,{text:r("Toggle","elementor-pro"),hideText:!0,icon:"eicon-ellipsis-h",size:"lg",onClick:()=>n(!t)}),o)}PartActionsButtons.propTypes={id:o.number.isRequired,exportLink:o.string.isRequired}},3024:(e,t,n)=>{"use strict";var r=n(8003).__,o=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(7363)),a=n(927),s=o(n(2287)),u=o(n(427)),l=o(n(9781)),c=o(n(5222)),d=o(n(9758)),p=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=_getRequireWildcardCache(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(3606)),f=n(1418),m=n(6779),h=o(n(3869)),v=o(n(1717)),g=o(n(353));function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(_getRequireWildcardCache=function(e){return e?n:t})(e)}function SiteEditor(){const{isLocked:e}=(0,g.default)("site-editor"),t="site-editor",n=[{id:"import",text:r("import","elementor-pro"),hideText:!0,icon:"eicon-upload-circle-o",onClick:()=>h.default.appHistory.navigate(t+"/import")}];elementorCommon.ajax.invalidateCache({unique_id:"app_site_editor_template_types"});const SiteEditorDefault=()=>{const{templates:e}=i.default.useContext(p.Context);return Object.keys(e).length?i.default.createElement(a.Redirect,{from:"/",to:"/"+t+"/templates",noThrow:!0}):i.default.createElement(a.Redirect,{from:"/",to:"/"+t+"/add-new",noThrow:!0})};return i.default.createElement(m.ErrorBoundary,{title:r("Theme Builder could not be loaded","elementor-pro"),learnMoreUrl:"https://go.elementor.com/app-theme-builder-load-issue"},i.default.createElement(f.Layout,{allPartsButton:i.default.createElement(f.AllPartsButton,{url:"/"+t}),headerButtons:n,titleRedirectRoute:"/"+t,promotion:e},i.default.createElement(m.Grid,{container:!0,className:"e-site-editor__content_container"},i.default.createElement(m.Grid,{item:!0,className:"e-site-editor__content_container_main"},i.default.createElement(p.default,null,i.default.createElement(a.LocationProvider,{history:h.default.appHistory},i.default.createElement(a.Router,null,i.default.createElement(SiteEditorDefault,{path:t}),i.default.createElement(s.default,{path:t+"/templates"}),i.default.createElement(u.default,{path:t+"/templates/:type/*id"}),i.default.createElement(l.default,{path:t+"/add-new"}),i.default.createElement(c.default,{path:t+"/conditions/:id"}),i.default.createElement(d.default,{path:t+"/import"}),i.default.createElement(f.NotFound,{default:!0}))))),i.default.createElement(m.Grid,{item:!0,className:"e-site-editor__content_container_secondary"},i.default.createElement(m.Button,{text:r("Switch to table view","elementor-pro"),url:elementorAppProConfig["site-editor"]?.urls?.legacy_view})))))}n(6909);t.default=class Module{constructor(){elementorCommon.debug.addURLToWatch("elementor-pro/assets"),$e.components.register(new v.default),h.default.addRoute({path:"/site-editor/*",component:SiteEditor})}}},8954:(e,t,n)=>{"use strict";var r=n(7363);Object.defineProperty(t,"__esModule",{value:!0}),t.SCREENSHOT_STATUS_SUCCEED=t.SCREENSHOT_STATUS_QUEUE=t.SCREENSHOT_STATUS_IN_PROGRESS=t.SCREENSHOT_STATUS_FAILED=void 0,t.default=function useScreenshot(e,{numberOfScreenshotInParallel:t}=p){const[n,r]=o([]),f=a((()=>filterPostByStatus(n,u)),[n]),m=a((()=>filterPostByStatus(n,l)),[n]),h=a((()=>filterPostByStatus(n,c)),[n]),v=a((()=>filterPostByStatus(n,d)),[n]);i((()=>{const t=e.filter((e=>!n.find((t=>t.id===e.id))));t.length&&r((e=>[...e,...normalizeInitialPosts(t)]))}),[e]);const g=function useIFrameMessageListener(e,t){return s((n=>{const{data:r}=n;if(!r.name||"capture-screenshot-done"!==r.name)return;const o=e.find((e=>e.id===parseInt(r.id)));o&&(o.iframe.remove(),t((e=>updatePostsAttrs(e,o.id,{status:r.success?c:d,imageUrl:r.imageUrl}))))}),[e])}(m,r);return i((()=>(window.addEventListener("message",g,!1),()=>{window.removeEventListener("message",g)})),[g]),i((()=>{if(0===f.length||m.length>=t)return;const[e]=f,n=function createScreenshotIframe(e){const t=document.createElement("iframe");return t.src=e.screenshot_url,t.width="1200",t.style="visibility: hidden;",document.body.appendChild(t),t}(e);r((t=>updatePostsAttrs(t,e.id,{status:l,iframe:n})))}),[n]),{posts:n,queue:f,inProgress:m,succeed:h,failed:v}};const{useState:o,useEffect:i,useMemo:a,useCallback:s}=r,u=t.SCREENSHOT_STATUS_QUEUE="queue",l=t.SCREENSHOT_STATUS_IN_PROGRESS="in-progress",c=t.SCREENSHOT_STATUS_SUCCEED="succeed",d=t.SCREENSHOT_STATUS_FAILED="failed",p={numberOfScreenshotInParallel:1};function filterPostByStatus(e,t){return e.filter((e=>t===e.status))}function normalizeInitialPosts(e){return e.map((e=>({id:e.id,screenshot_url:e.screenshot_url,status:"queue",iframe:null,imageUrl:null})))}function updatePostsAttrs(e,t,n={}){return e.map((e=>e.id!==t?e:{...e,...n}))}},1230:(e,t,n)=>{"use strict";var r="__global_unique_id__";e.exports=function(){return n.g[r]=(n.g[r]||0)+1}},3996:e=>{"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,i,a,s],c=0;(u=new Error(t.replace(/%s/g,(function(){return l[c++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},8772:(e,t,n)=>{"use strict";var r=n(331);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,e.exports=function(){function shim(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function getShim(){return shim}shim.isRequired=shim;var e={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return e.PropTypes=e,e}},3615:(e,t,n)=>{e.exports=n(8772)()},331:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1895:e=>{"use strict";var warning=function(){};e.exports=warning},7363:e=>{"use strict";e.exports=React},6779:e=>{"use strict";e.exports=elementorAppPackages.appUi},9404:e=>{"use strict";e.exports=elementorAppPackages.hooks},3869:e=>{"use strict";e.exports=elementorAppPackages.router},1418:e=>{"use strict";e.exports=elementorAppPackages.siteEditor},8003:e=>{"use strict";e.exports=wp.i18n},3119:e=>{function _extends(){return e.exports=_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t
{e.exports=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},1575:(e,t,n)=>{"use strict";var r=n(5893),o=n(5545),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not a function")}},9972:(e,t,n)=>{"use strict";var r=n(5287),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not an object")}},2971:(e,t,n)=>{"use strict";var r=n(9405),o=n(9961),i=n(9969),createMethod=function(e){return function(t,n,a){var s,u=r(t),l=i(u),c=o(a,l);if(e&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},8576:(e,t,n)=>{"use strict";var r=n(3877),o=n(5289),i=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(o(e)&&!a(e,"length").writable)throw new i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},3048:(e,t,n)=>{"use strict";var r=n(6406),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},779:(e,t,n)=>{"use strict";var r=n(4130),o=n(6627),i=n(10),a=n(7144);e.exports=function(e,t,n){for(var s=o(t),u=a.f,l=i.f,c=0;c
{"use strict";var r=n(3877),o=n(7144),i=n(9637);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},9637:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7205:(e,t,n)=>{"use strict";var r=n(5893),o=n(7144),i=n(3911),a=n(3630);e.exports=function(e,t,n,s){s||(s={});var u=s.enumerable,l=void 0!==s.name?s.name:t;if(r(n)&&i(n,l,s),s.global)u?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(u=!0):delete e[t]}catch(e){}u?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},3630:(e,t,n)=>{"use strict";var r=n(7802),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},3877:(e,t,n)=>{"use strict";var r=n(5306);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},811:e=>{"use strict";var t="object"==typeof document&&document.all,n=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:n}},9800:(e,t,n)=>{"use strict";var r=n(7802),o=n(5287),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},9060:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},2626:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7245:(e,t,n)=>{"use strict";var r,o,i=n(7802),a=n(2626),s=i.process,u=i.Deno,l=s&&s.versions||u&&u.version,c=l&&l.v8;c&&(o=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},4286:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2390:(e,t,n)=>{"use strict";var r=n(7802),o=n(10).f,i=n(9251),a=n(7205),s=n(3630),u=n(779),l=n(5031);e.exports=function(e,t){var n,c,d,p,f,m=e.target,h=e.global,v=e.stat;if(n=h?r:v?r[m]||s(m,{}):(r[m]||{}).prototype)for(c in t){if(p=t[c],d=e.dontCallGetSet?(f=o(n,c))&&f.value:n[c],!l(h?c:m+(v?".":"#")+c,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;u(p,d)}(e.sham||d&&d.sham)&&i(p,"sham",!0),a(n,c,p,e)}}},5306:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},7219:(e,t,n)=>{"use strict";var r=n(5306);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},1550:(e,t,n)=>{"use strict";var r=n(7219),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},9656:(e,t,n)=>{"use strict";var r=n(3877),o=n(4130),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),u=s&&"something"===function something(){}.name,l=s&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:u,CONFIGURABLE:l}},6406:(e,t,n)=>{"use strict";var r=n(7219),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);e.exports=r?a:function(e){return function(){return i.apply(e,arguments)}}},1570:(e,t,n)=>{"use strict";var r=n(7802),o=n(5893);e.exports=function(e,t){return arguments.length<2?(n=r[e],o(n)?n:void 0):r[e]&&r[e][t];var n}},6628:(e,t,n)=>{"use strict";var r=n(1575),o=n(7707);e.exports=function(e,t){var n=e[t];return o(n)?void 0:r(n)}},7802:function(e,t,n){"use strict";var check=function(e){return e&&e.Math===Math&&e};e.exports=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof n.g&&n.g)||function(){return this}()||this||Function("return this")()},4130:(e,t,n)=>{"use strict";var r=n(6406),o=n(5864),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function hasOwn(e,t){return i(o(e),t)}},3421:e=>{"use strict";e.exports={}},3075:(e,t,n)=>{"use strict";var r=n(3877),o=n(5306),i=n(9800);e.exports=!r&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},5366:(e,t,n)=>{"use strict";var r=n(6406),o=n(5306),i=n(3048),a=Object,s=r("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?s(e,""):a(e)}:a},5088:(e,t,n)=>{"use strict";var r=n(6406),o=n(5893),i=n(4830),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},9930:(e,t,n)=>{"use strict";var r,o,i,a=n(5585),s=n(7802),u=n(5287),l=n(9251),c=n(4130),d=n(4830),p=n(139),f=n(3421),m="Object already initialized",h=s.TypeError,v=s.WeakMap;if(a||d.state){var g=d.state||(d.state=new v);g.get=g.get,g.has=g.has,g.set=g.set,r=function(e,t){if(g.has(e))throw new h(m);return t.facade=e,g.set(e,t),t},o=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var y=p("state");f[y]=!0,r=function(e,t){if(c(e,y))throw new h(m);return t.facade=e,l(e,y,t),t},o=function(e){return c(e,y)?e[y]:{}},i=function(e){return c(e,y)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw new h("Incompatible receiver, "+e+" required");return n}}}},5289:(e,t,n)=>{"use strict";var r=n(3048);e.exports=Array.isArray||function isArray(e){return"Array"===r(e)}},5893:(e,t,n)=>{"use strict";var r=n(811),o=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},5031:(e,t,n)=>{"use strict";var r=n(5306),o=n(5893),i=/#|\.prototype\./,isForced=function(e,t){var n=s[a(e)];return n===l||n!==u&&(o(t)?r(t):!!t)},a=isForced.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=isForced.data={},u=isForced.NATIVE="N",l=isForced.POLYFILL="P";e.exports=isForced},7707:e=>{"use strict";e.exports=function(e){return null==e}},5287:(e,t,n)=>{"use strict";var r=n(5893),o=n(811),i=o.all;e.exports=o.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===i}:function(e){return"object"==typeof e?null!==e:r(e)}},99:e=>{"use strict";e.exports=!1},103:(e,t,n)=>{"use strict";var r=n(1570),o=n(5893),i=n(2075),a=n(345),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,s(e))}},9969:(e,t,n)=>{"use strict";var r=n(9099);e.exports=function(e){return r(e.length)}},3911:(e,t,n)=>{"use strict";var r=n(6406),o=n(5306),i=n(5893),a=n(4130),s=n(3877),u=n(9656).CONFIGURABLE,l=n(5088),c=n(9930),d=c.enforce,p=c.get,f=String,m=Object.defineProperty,h=r("".slice),v=r("".replace),g=r([].join),y=s&&!o((function(){return 8!==m((function(){}),"length",{value:8}).length})),_=String(String).split("String"),b=e.exports=function(e,t,n){"Symbol("===h(f(t),0,7)&&(t="["+v(f(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||u&&e.name!==t)&&(s?m(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&a(n,"arity")&&e.length!==n.arity&&m(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&m(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=d(e);return a(r,"source")||(r.source=g(_,"string"==typeof t?t:"")),e};Function.prototype.toString=b((function toString(){return i(this)&&p(this).source||l(this)}),"toString")},1402:e=>{"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function trunc(e){var r=+e;return(r>0?n:t)(r)}},7144:(e,t,n)=>{"use strict";var r=n(3877),o=n(3075),i=n(7475),a=n(9972),s=n(3662),u=TypeError,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",p="configurable",f="writable";t.f=r?i?function defineProperty(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&f in n&&!n[f]){var r=c(e,t);r&&r[f]&&(e[t]=n.value,n={configurable:p in n?n[p]:r[p],enumerable:d in n?n[d]:r[d],writable:!1})}return l(e,t,n)}:l:function defineProperty(e,t,n){if(a(e),t=s(t),a(n),o)try{return l(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new u("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},10:(e,t,n)=>{"use strict";var r=n(3877),o=n(1550),i=n(1940),a=n(9637),s=n(9405),u=n(3662),l=n(4130),c=n(3075),d=Object.getOwnPropertyDescriptor;t.f=r?d:function getOwnPropertyDescriptor(e,t){if(e=s(e),t=u(t),c)try{return d(e,t)}catch(e){}if(l(e,t))return a(!o(i.f,e,t),e[t])}},7397:(e,t,n)=>{"use strict";var r=n(5079),o=n(4286).concat("length","prototype");t.f=Object.getOwnPropertyNames||function getOwnPropertyNames(e){return r(e,o)}},6855:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},2075:(e,t,n)=>{"use strict";var r=n(6406);e.exports=r({}.isPrototypeOf)},5079:(e,t,n)=>{"use strict";var r=n(6406),o=n(4130),i=n(9405),a=n(2971).indexOf,s=n(3421),u=r([].push);e.exports=function(e,t){var n,r=i(e),l=0,c=[];for(n in r)!o(s,n)&&o(r,n)&&u(c,n);for(;t.length>l;)o(r,n=t[l++])&&(~a(c,n)||u(c,n));return c}},1940:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function propertyIsEnumerable(e){var t=r(this,e);return!!t&&t.enumerable}:n},1253:(e,t,n)=>{"use strict";var r=n(1550),o=n(5893),i=n(5287),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&o(n=e.toString)&&!i(s=r(n,e)))return s;if(o(n=e.valueOf)&&!i(s=r(n,e)))return s;if("string"!==t&&o(n=e.toString)&&!i(s=r(n,e)))return s;throw new a("Can't convert object to primitive value")}},6627:(e,t,n)=>{"use strict";var r=n(1570),o=n(6406),i=n(7397),a=n(6855),s=n(9972),u=o([].concat);e.exports=r("Reflect","ownKeys")||function ownKeys(e){var t=i.f(s(e)),n=a.f;return n?u(t,n(e)):t}},6762:(e,t,n)=>{"use strict";var r=n(7707),o=TypeError;e.exports=function(e){if(r(e))throw new o("Can't call method on "+e);return e}},139:(e,t,n)=>{"use strict";var r=n(9231),o=n(6350),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},4830:(e,t,n)=>{"use strict";var r=n(7802),o=n(3630),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},9231:(e,t,n)=>{"use strict";var r=n(99),o=n(4830);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.33.2",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE",source:"https://github.com/zloirock/core-js"})},4053:(e,t,n)=>{"use strict";var r=n(7245),o=n(5306),i=n(7802).String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},9961:(e,t,n)=>{"use strict";var r=n(5930),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},9405:(e,t,n)=>{"use strict";var r=n(5366),o=n(6762);e.exports=function(e){return r(o(e))}},5930:(e,t,n)=>{"use strict";var r=n(1402);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},9099:(e,t,n)=>{"use strict";var r=n(5930),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},5864:(e,t,n)=>{"use strict";var r=n(6762),o=Object;e.exports=function(e){return o(r(e))}},6090:(e,t,n)=>{"use strict";var r=n(1550),o=n(5287),i=n(103),a=n(6628),s=n(1253),u=n(7936),l=TypeError,c=u("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,u=a(e,c);if(u){if(void 0===t&&(t="default"),n=r(u,e,t),!o(n)||i(n))return n;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},3662:(e,t,n)=>{"use strict";var r=n(6090),o=n(103);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},5545:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},6350:(e,t,n)=>{"use strict";var r=n(6406),o=0,i=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},345:(e,t,n)=>{"use strict";var r=n(4053);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7475:(e,t,n)=>{"use strict";var r=n(3877),o=n(5306);e.exports=r&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},5585:(e,t,n)=>{"use strict";var r=n(7802),o=n(5893),i=r.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},7936:(e,t,n)=>{"use strict";var r=n(7802),o=n(9231),i=n(4130),a=n(6350),s=n(4053),u=n(345),l=r.Symbol,c=o("wks"),d=u?l.for||l:l&&l.withoutSetter||a;e.exports=function(e){return i(c,e)||(c[e]=s&&i(l,e)?l[e]:d("Symbol."+e)),c[e]}},3517:(e,t,n)=>{"use strict";var r=n(2390),o=n(5864),i=n(9969),a=n(8576),s=n(9060);r({target:"Array",proto:!0,arity:1,forced:n(5306)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function push(e){var t=o(this),n=i(t),r=arguments.length;s(n+r);for(var u=0;u
{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";new(__webpack_require__(3203)(__webpack_require__(3024)).default)})()})();