You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
3 lines
1.2 MiB
3 lines
1.2 MiB
/*! For license information please see theme-builder.js.LICENSE.txt */
|
|
!function(e,t){for(var r in t)e[r]=t[r]}(window,function(e){function t(t){for(var r,o,a=t[0],i=t[1],u=0,c=[];u<a.length;u++)o=a[u],Object.prototype.hasOwnProperty.call(n,o)&&n[o]&&c.push(n[o][0]),n[o]=0;for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r]);for(l&&l(t);c.length;)c.shift()()}var r={},n={2:0,1:0};function o(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.e=function(e){var t=[],r=n[e];if(0!==r)if(r)t.push(r[2]);else{var a=new Promise((function(t,o){r=n[e]=[t,o]}));t.push(r[2]=a);var i,u=document.createElement("script");u.charset="utf-8",u.timeout=120,o.nc&&u.setAttribute("nonce",o.nc),u.src=function(e){return o.p+"bundle."+({0:"devtools"}[e]||e)+"."+{0:"01585ad2"}[e]+".js"}(e);var l=new Error;i=function(t){u.onerror=u.onload=null,clearTimeout(c);var r=n[e];if(0!==r){if(r){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+o+": "+a+")",l.name="ChunkLoadError",l.type=o,l.request=a,r[1](l)}n[e]=void 0}};var c=setTimeout((function(){i({type:"timeout",target:u})}),12e4);u.onerror=u.onload=i,document.head.appendChild(u)}return Promise.all(t)},o.m=e,o.c=r,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/",o.oe=function(e){throw console.error(e),e};var a=window.webpackETJsonp=window.webpackETJsonp||[],i=a.push.bind(a);a.push=t,a=a.slice();for(var u=0;u<a.length;u++)t(a[u]);var l=i;return o(o.s=391)}([function(e,t){e.exports=window.React},function(e,t,r){e.exports=r(394)()},function(e,t,r){"use strict";r.d(t,"l",(function(){return u})),r.d(t,"c",(function(){return l})),r.d(t,"v",(function(){return c})),r.d(t,"s",(function(){return s})),r.d(t,"w",(function(){return f})),r.d(t,"h",(function(){return d})),r.d(t,"y",(function(){return p})),r.d(t,"u",(function(){return y})),r.d(t,"f",(function(){return m})),r.d(t,"k",(function(){return h})),r.d(t,"n",(function(){return b})),r.d(t,"g",(function(){return g})),r.d(t,"r",(function(){return O})),r.d(t,"i",(function(){return _})),r.d(t,"e",(function(){return w})),r.d(t,"x",(function(){return T})),r.d(t,"d",(function(){return E})),r.d(t,"b",(function(){return P})),r.d(t,"q",(function(){return j})),r.d(t,"m",(function(){return S})),r.d(t,"j",(function(){return I})),r.d(t,"a",(function(){return C})),r.d(t,"o",(function(){return A})),r.d(t,"t",(function(){return D})),r.d(t,"p",(function(){return k}));var n=r(58),o=r(21),a=r(6),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function u(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object.keys(e),n=Object.keys(t),o=[],a=0;a<r.length;a++)e[r[a]]!==t[r[a]]&&o.push({path:[r[a]]});for(var i=0;i<n.length;i++)e[n[i]]!==t[n[i]]&&o.push({path:[n[i]]});return o}function l(e){return"string"==typeof e?e.replace(/\.\*\*|\.\*/,""):e}function c(e){return"object"===(void 0===e?"undefined":i(e))&&null!==e&&!Array.isArray(e)}function s(e){return"object"===(void 0===e?"undefined":i(e))&&null!==e}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=t.reduce((function(t,r){return!!(t||e instanceof r)||t}),!1);return!(void 0===e||!(r||c(e)&&"[object Object]"===Object.prototype.toString.call(e)&&(e.constructor===Object||null===Object.getPrototypeOf(e))||"number"==typeof e||"string"==typeof e||"boolean"==typeof e||null===e||Array.isArray(e)))}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)?e:"string"==typeof e?e.split("."):[]}function p(e){throw new Error("Cerebral - "+e)}function y(){return!1}function m(e,t,r){var n=void 0;return function(){var o=this,a=arguments,i=function(){n=null,r||e.apply(o,a)},u=r&&!n;clearTimeout(n),n=setTimeout(i,t),u&&e.apply(o,a)}}function h(e){if(e&&!f(e)){var t=e.constructor.name;try{Object.defineProperty(e,"toJSON",{value:function(){return"["+t+"]"}})}catch(e){}}return e}function b(e){return Object.assign(Object.keys(e.providers||{}).reduce((function(t,r){return t[r]=e.providers[r]instanceof a.b?e.providers[r]:new a.b(e.providers[r]),t}),{}),Object.keys(e.modules||{}).reduce((function(t,r){return Object.assign(t,b(e.modules[r]))}),{}))}function v(e){return Object.keys(e).reduce((function(t,r){return e[r].children?t.concat(e[r]).concat(v(e[r].children)):t.concat(e[r])}),[])}function g(e,t){for(var r=[],n=0;n<e.length;n++)for(var o=t,a=0;a<e[n].path.length&&o;a++){if(o["**"]&&r.push(o["**"]),a===e[n].path.length-1){var i=o[e[n].path[a]];i&&(r.push(i),i.children&&(e[n].forceChildPathUpdates?r=r.concat(v(i.children)):(i.children["**"]&&r.push(i.children["**"]),i.children["*"]&&r.push(i.children["*"])))),o["*"]&&r.push(o["*"])}if(!o[e[n].path[a]]){o=null;break}o=o[e[n].path[a]].children}return r}function O(e){return function(t){return t.split(".").reduce((function(e,r,n){return n>0&&void 0===e&&p('You are extracting with path "'+t+'", but it is not valid for this object'),e[r]}),e)}}function _(e,t){return s(t)&&-1===e.indexOf("*")?e+".**":e}function w(e){return{isTag:function(e){if(!(e instanceof n.Tag))return!1;for(var t=arguments.length,r=Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];return!r.length||r.reduce((function(t,r){return t||r===e.type}),!1)},isCompute:function(e){return D(e)},value:function(t,r){return t instanceof n.Tag||D(t)?t.getValue(r?Object.assign({},e,{props:r}):e):t},path:function(t){if(t instanceof n.Tag)return t.getPath(e);p("You are extracting a path from an argument that is not a Tag")}}}var T=function(){};function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=function(t){return d(t).reduce((function(e,t){return e?e[t]:void 0}),e)};return{options:{},on:function(){},getState:r,model:{get:r},getSequence:function(e){return t[e]||function(){}},dependencyStore:{addEntity:T,removeEntity:T}}}function P(e){if(s(e)&&!(e instanceof o.a)){for(var t in e)P(e[t]);!e.__CerebralState&&Object.defineProperty(e,"__CerebralState",{value:!0})}return e}function j(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,r){return!t&&s(e[r])&&"__CerebralState"in e[r]?r:t}),null)}function S(e,t){var r=Array.isArray(e)?e:d(e);return r.reduce((function(t,n){return t.modules[n]||p('The path "'+r.join(".")+'" is invalid, can not find module. Does the path "'+r.splice(0,e.length-1).join(".")+'" exist?'),t.modules[n]}),t)}function I(e,t,r){var n=Object.keys(e.modules||{}).reduce((function(n,o){return n[o]=I(e.modules[o],t,r),n}),{});if(e[t]){var o=Object.keys(e[t]).reduce((function(r,n){var o=Object.getOwnPropertyDescriptor(e[t],n);return o&&"get"in o?Object.defineProperty(r,n,o):r[n]=e[t][n],r}),n);return r?r(o,e):o}return n}var M=[];function C(e,t){-1===M.indexOf(e)&&(M.push(e),console.warn(e+" is DEPRECATED - "+t))}function A(e,t){var r=t.execution.name.split(".");return r.splice(0,r.length-1).concat(e).join(".")}function D(e){return e instanceof o.a||e instanceof o.b}function k(e,t,r){var n=[];return function e(t,r,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(D(r)||D(o))return o;if(c(r)&&c(o)){var i=Object.keys(r).concat(Object.keys(o)).reduce((function(e,t){return-1===e.indexOf(t)?e.concat(t):e}),[]),u=!0,l=!1,s=void 0;try{for(var f,d=i[Symbol.iterator]();!(u=(f=d.next()).done);u=!0){var p=f.value;e(t[p],r[p],o[p],a.concat(p))}}catch(e){l=!0,s=e}finally{try{!u&&d.return&&d.return()}finally{if(l)throw s}}}else"function"!=typeof o&&(Array.isArray(r)&&Array.isArray(o)||o===t&&r!==t?n.push({path:a.slice(),value:r}):o!==t&&n.push({path:a.slice(),value:o}))}(e,t,r),n}},function(e,t,r){"use strict";r.r(t),r.d(t,"props",(function(){return Q})),r.d(t,"path",(function(){return ee})),r.d(t,"state",(function(){return te})),r.d(t,"string",(function(){return re})),r.d(t,"sequences",(function(){return ne})),r.d(t,"computed",(function(){return oe})),r.d(t,"moduleState",(function(){return ae})),r.d(t,"moduleSequences",(function(){return ie})),r.d(t,"moduleComputed",(function(){return ue})),r.d(t,"ModuleClass",(function(){return m})),r.d(t,"ControllerClass",(function(){return k})),r.d(t,"ProviderClass",(function(){return b.a})),r.d(t,"BaseControllerClass",(function(){return P})),r.d(t,"ChainSequenceFactory",(function(){return H})),r.d(t,"ChainSequenceWithPropsFactory",(function(){return Y})),r.d(t,"sequence",(function(){return u.j})),r.d(t,"parallel",(function(){return u.h})),r.d(t,"createTemplateTag",(function(){return u.e})),r.d(t,"extractValueWithPath",(function(){return u.g})),r.d(t,"resolveObject",(function(){return u.i})),r.d(t,"ResolveValue",(function(){return u.c})),r.d(t,"Tag",(function(){return u.d})),r.d(t,"Controller",(function(){return le})),r.d(t,"UniversalController",(function(){return ce})),r.d(t,"UniversalApp",(function(){return se})),r.d(t,"Module",(function(){return fe})),r.d(t,"CerebralError",(function(){return $})),r.d(t,"Provider",(function(){return b.a})),r.d(t,"Compute",(function(){return l.c})),r.d(t,"Reaction",(function(){return d})),r.d(t,"View",(function(){return X})),r.d(t,"createDummyController",(function(){return o.d})),r.d(t,"throwError",(function(){return o.y})),r.d(t,"default",(function(){return pe}));var n=r(58),o=r(2),a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.map={}}return a(e,[{key:"addEntity",value:function(e,t){var r=this,n=function(t){var n=t.split(".");n.reduce((function(t,r,o){return t[r]||(t[r]={}),o<n.length-1?(t[r].children=t[r].children||{},t[r].children):(t[r].entities=t[r].entities?t[r].entities.concat(e):[e],t)}),r.map)};for(var o in t)n(o)}},{key:"removeEntity",value:function(e,t){var r=this,n=function(t){var n=t.split(".");n.reduce((function(t,r,o){return o===n.length-1&&(t[r].entities.splice(t[r].entities.indexOf(e),1),t[r].entities.length||delete t[r].entities),t[r].children}),r.map)};for(var o in t)n(o)}},{key:"updateEntity",value:function(e,t,r){var n=t?Object.keys(t).reduce((function(e,t){return r[t]||(e[t]=!0),e}),{}):{},o=Object.keys(r).reduce((function(e,r){return t&&t[r]||(e[r]=!0),e}),{});this.removeEntity(e,n),this.addEntity(e,o)}},{key:"getAllUniqueEntities",value:function(){var e=[];return function t(r){for(var n in r){if(r[n].entities)for(var o=0;o<r[n].entities.length;o++)-1===e.indexOf(r[n].entities[o])&&e.push(r[n].entities[o]);r[n].children&&t(r[n].children)}}(this.map),e.sort((function(e,t){return e.rawId>t.rawId?1:-1}))}},{key:"getUniqueEntities",value:function(e){return Object(o.g)(e,this.map).reduce((function(e,t){return(t.entities||[]).reduce((function(e,t){return-1===e.indexOf(t)?e.concat(t):e}),e)}),[]).sort((function(e,t){return e.rawId>t.rawId?1:-1}))}}]),e}(),u=r(6),l=r(21),c=r(112),s=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var f=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,"Reaction"));return n.dependencies=e,n.cb=r,n.getter=null,n.context=null,n}return function(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)}(t,e),s(t,[{key:"initialize",value:function(){var e=this;return this.context=this.controller.createContext(),this.getter=function(t){return t.getValue(e.context)},this.controller.dependencyStore.updateEntity(this,null,this.createDependencyMap()),this}},{key:"createDependencyMap",value:function(){var e=this;return this.controller.createDependencyMap(Object.keys(this.dependencies).map((function(t){return e.dependencies[t]})),null,this.modulePath)}},{key:"onUpdate",value:function(){var e=this;this.executedCount++,this.controller.devtools&&this.controller.devtools.sendWatchMap([],[],0,0),this.cb(Object.keys(this.dependencies).reduce((function(t,r){return t[r]=e.dependencies[r].getValue(e.context),Object(o.t)(t[r])&&(t[r]=t[r].getValue()),t}),{get:this.getter}))}}]),t}(c.a),d=function(e,t){return t||(t=e,e={}),new f(e,t)},p=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var y=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.moduleDescription=t}return p(e,[{key:"create",value:function(t,r){var n=r.join("."),a={app:t,path:n,name:r.slice().pop()},i="function"==typeof this.moduleDescription?this.moduleDescription(a):Object.assign({},this.moduleDescription);!function e(n,a){Object.keys(n).forEach((function(i){"function"==typeof n[i]?n[i]=new l.a(n[i]).create(t,r,r.concat(a,i).join(".")):n[i]instanceof l.a?n[i].create(t,r,r.concat(a,i).join(".")):Object(o.v)(n[i])&&e(n[i],a.concat(i)),t.devtools&&n[i]instanceof l.a&&t.devtools.registerComputedState(n[i],r.concat(a,i))}))}(i.state||{},[]),i.signals&&Object(o.a)("module.signals",'use the property "sequences" when adding sequences to a module');var c=i.sequences||i.signals;return i.sequences=Object.keys(c||{}).reduce((function(e,n){var a=c[n];return a&&(Array.isArray(a)||"function"==typeof a||a instanceof u.a)||Object(o.y)('Sequence with name "'+n+'" is not correctly defined. Please check that the sequence is either a sequence, an array or a function.'),e[n]={sequence:a,run:function(e){return t.runSequence(r.concat(n).join("."),a,e)}},e}),{}),i.modules=Object.keys(i.modules||{}).reduce((function(n,o){var a=i.modules[o]instanceof e?i.modules[o]:new e(i.modules[o]);return n[o]=a.create(t,r.concat(o)),n}),{}),i.reactions=Object.keys(i.reactions||{}).reduce((function(e,n){if(!(i.reactions[n]instanceof f))throw new Error('You are not using a Reaction in module on key "'+n+'"');return e[n]=i.reactions[n].create(t,r,r.concat(n).join(".")),e}),{}),i}}]),e}(),m=y;function h(e){return Object(b.a)({send:function(t){e.sendExecutionData(t,this.context.execution,this.context.functionDetails,this.context.props)},wrapProvider:function(e,t){var r=this;return Object.keys(t).reduce((function(n,o){var a=t[o];return n[o]=function(){for(var n=arguments.length,i=Array(n),u=0;u<n;u++)i[u]=arguments[u];return r.context.debugger.send({method:e+"."+o,args:i}),console.log(t.context),a.apply(t,i)},n}),{})}},{wrap:!1})}var b=r(45),v=Object(b.a)((function(e){return Object.assign((function(t,r){var n=e.resolve.value(t);return Object(o.t)(n)?n.getValue(r||e.props):n}),{path:function(t){return e.resolve.path(t)}})}),{wrap:!1}),g=r(136);function O(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}function _(e){return Object(b.a)(g.b.reduce((function(e,t){return e[t]=function(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];r=Object(o.h)(r),Object(o.a)("module.*","use the new STORE provider, store.set(state.isAwesome, true)");for(var n=this.context.execution.name.split("."),a=n.splice(0,n.length-1),i=arguments.length,u=Array(i>1?i-1:0),l=1;l<i;l++)u[l-1]=arguments[l];return(e=this.context.state)[t].apply(e,[a.concat(r)].concat(u))},e}),{}),{wrap:!!e&&function(e,t){return g.b.reduce((function(r,n){if("get"===n||"compute"===n)r[n]=function(t){Object(o.a)("module.get","use the new GET provider, get(moduleState.foo)"),t=Object(o.h)(t);var r=e.execution.name.split(".");return t=r.splice(0,r.length-1).concat(t),e.state[n](t)};else{var a=e.state[n];r[n]=function(){for(var r=arguments.length,i=Array(r),u=0;u<r;u++)i[u]=arguments[u];Object(o.a)("module.*","use the new STORE provider, store.set(moduleState.isAwesome, true)");var l=i.slice(),c=Object(o.h)(l.shift()),s=e.execution.name.split("."),f=s.splice(0,s.length-1);c=f.concat(c),e.debugger.send({datetime:Date.now(),type:"mutation",color:"#333",method:"module."+n,args:[c].concat(O(l))});try{a.apply(e.state,[c].concat(O(l)))}catch(r){var d=e.execution.name;Object(o.y)('The sequence "'+d+'" with action "'+t.name+'" has an error: '+r.message)}}}return r}),{})}})}var w=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(n=(i=u.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{!n&&u.return&&u.return()}finally{if(o)throw a}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},T=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var E=function(e){function t(e,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,{},n)),i=r.Model,u=r.devtools,l=void 0===u?null:u,c=r.stateChanges,s=void 0===c?"undefined"!=typeof window&&window.CEREBRAL_STATE:c,f=r.throwToConsole,d=void 0===f||f,p=r.preventInitialize,y=void 0!==p&&p,m=r.returnSequencePromise,b=void 0!==m&&m,g=r.noRethrow,O=void 0!==g&&g,w=a.getSequence,T=a.getSequences;return a.getSequence=function(){Object(o.y)('You are grabbing a sequence before controller has initialized, please wait for "initialized" event')},a.getSequences=function(){Object(o.y)('You are grabbing sequences before controller has initialized, please wait for "initialized" event')},a.throwToConsole=d,a.noRethrow=O,a.returnSequencePromise=b,a.devtools=l,a.Model=i,a.configure(e),y||a.emit("initialized:model"),a.contextProviders=Object.assign(a.contextProviders,Object(o.n)(a.module),{app:a,controller:a,get:v,state:a.model.StateProvider(a.devtools),store:a.model.StoreProvider&&a.model.StoreProvider(a.devtools),module:_(a.devtools)},a.devtools?{debugger:h(a.devtools)}:{}),s&&Object.keys(s).forEach((function(e){a.model.set(Object(o.h)(e),s[e])})),a.devtools&&a.devtools.init(a),!a.devtools&&Object(o.u)()&&"undefined"!=typeof navigator&&/Chrome/.test(navigator.userAgent)&&console.warn("You are not using the Cerebral devtools. It is highly recommended to use it in combination with the debugger: https://cerebraljs.com/docs/introduction/debugger.html"),Object(o.u)()&&(a.on("functionStart",(function(e,t,r){try{JSON.stringify(r)}catch(r){Object(o.y)("The function "+t.name+" in sequence "+e.name+" is not given a valid payload")}})),a.on("functionEnd",(function(e,t,r,n){l&&l.preventPropsReplacement&&Object.keys(n||{}).forEach((function(n){if(n in r)throw new Error('Cerebral Devtools - You have activated the "preventPropsReplacement" option and in sequence "'+e.name+'", before the action "'+t.name+'", the key "'+n+'" was replaced')}))}))),a.getSequence=w,a.getSequences=T,y||a.emit("initialized"),a}return function(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)}(t,e),T(t,[{key:"configure",value:function(e){this.module=e instanceof m?e.create(this,[]):new m(e).create(this,[]),this.model=new this.Model(this)}},{key:"reconfigure",value:function(e){var t=this;if(this.devtools){var r=this.model.get();this.configure(e),Object(o.p)(JSON.parse(this.devtools.initialModelString),r,this.model.get()).forEach((function(e){t.model.set(e.path,e.value)})),this.devtools.sendReInit(),this.flush()}}},{key:"getModel",value:function(){return this.model}},{key:"getState",value:function(e){var t=this.model.get(Object(o.h)(Object(o.c)(e)));return"string"==typeof e&&".*"===e.substr(e.length-2,2)?t?Object.keys(t):[]:t}},{key:"runSequence",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!this.devtools||Object(o.v)(n)&&Object(o.w)(n)||(console.warn('You passed an invalid payload to sequence "'+e+'". Only serializable payloads can be passed to a sequence. The payload has been ignored. This is the object:',n),n={}),this.devtools&&(n=Object.keys(n).reduce((function(t,a){return Object(o.w)(n[a],r.devtools.allowedTypes)?(t[a]=Object(o.k)(n[a]),t):(console.warn('You passed an invalid payload to sequence "'+e+'", on key "'+a+'". Only serializable values like Object, Array, String, Number and Boolean can be passed in. Also these special value types:',r.devtools.allowedTypes),t)}),{}));var a=function(e){if(e){var t=Object(o.h)(e.execution.name).reduce((function(e,t,r){return e.currentModule.catch&&(e.catchingModule=e.currentModule),e.currentModule=e.currentModule.modules[t],e}),{currentModule:r.module,catchingModule:null});if(t.catchingModule){var n=!0,a=!1,i=void 0;try{for(var u,l=t.catchingModule.catch[Symbol.iterator]();!(n=(u=l.next()).done);n=!0){var c=w(u.value,2),s=c[0],f=c[1];if(e instanceof s)return r.runSequence("catch",f,e.payload),void(r.throwToConsole&&setTimeout((function(){console.log('Cerebral is handling error "'+e.name+": "+e.message+'" thrown by sequence "'+e.execution.name+'". Check debugger for more information.')})))}}catch(e){a=!0,i=e}finally{try{!n&&l.return&&l.return()}finally{if(a)throw i}}}if(!r.noRethrow){if(!e.execution.isAsync)throw e;setTimeout((function(){throw e}))}}};if(this.returnSequencePromise)return this.run(e,t,n).catch(a);this.run(e,t,n,a)}},{key:"getSequence",value:function(e){var t=Object(o.h)(e),r=t.pop(),n=t.reduce((function(e,t){return e?e.modules[t]:void 0}),this.module),a=n&&n.sequences[r];if(a)return a&&a.run}},{key:"getSequences",value:function(e){var t=Object(o.h)(e).reduce((function(e,t){return e?e.modules[t]:void 0}),this.module),r=t&&t.sequences;if(r){var n={};for(var a in r)n[a]=r[a].run;return n}}},{key:"addModule",value:function(e,t){var r=Object(o.h)(e),n=r.pop(),a=Object(o.m)(r,this.module),i=t instanceof m?t.create(this,Object(o.h)(e)):new m(t).create(this,Object(o.h)(e));a.modules[n]=i,i.providers&&Object.assign(this.contextProviders,i.providers),this.emit("moduleAdded",e.split("."),i),this.flush()}},{key:"removeModule",value:function(e){var t=this;if(!e)return console.warn("Controller.removeModule requires a Module Path"),null;var r=Object(o.h)(e),n=r.pop(),a=Object(o.m)(r,this.module),i=a.modules[n];i.providers&&Object.keys(i.providers).forEach((function(e){delete t.contextProviders[e]})),delete a.modules[n],this.emit("moduleRemoved",Object(o.h)(e),i),this.flush()}}]),t}(u.f),P=E,j=r(187),S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var M=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.controller=e,r.devtools=e.devtools,r.state=r.devtools&&r.devtools.warnStateProps?Object(o.b)(r.initialState):r.initialState,e.on("initialized",(function(){r.flush()})),r}return function(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)}(t,e),I(t,[{key:"updateIn",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.length?e.reduce((function(a,i,u){if(u===e.length-1){Array.isArray(a)||Object(o.v)(a)||Object(o.y)('The path "'+e.join(".")+'" is invalid. Path: "'+e.slice(0,e.length-1).join(".")+'" is type of "'+(null===a?"null":void 0===a?"undefined":S(a))+'"');var l=a[i];t(a[i],a,i),(a[i]!==l||Object(o.s)(a[i])&&Object(o.s)(l))&&r.changedPaths.push({path:e,forceChildPathUpdates:n})}else a[i]||(a[i]={});return a[i]}),this.state):t(this.state,this,"state")}},{key:"checkForComputed",value:function(e){var t=e.reduce((function(e,t){return e[t]}),this.state);if(t instanceof l.a&&Object(o.y)('You are trying to replace a computed value on path "'+e.join(".")+'", but that is not allowed'),Object(o.v)(t)){!function e(t,r){Object.keys(t).forEach((function(n){t[n]instanceof l.a?Object(o.y)('You are trying to replace a computed value on path "'+r.join(".")+'", but that is not allowed'):Object(o.v)(t[n])&&e(t[n],r.concat(n))}))}(t,e)}}},{key:"verifyValue",value:function(e,t){this.devtools&&(this.checkForComputed(t),Object(o.w)(e,this.devtools.allowedTypes)||Object(o.y)('You are passing a non serializable value into the state tree on path "'+t.join(".")+'"'),Object(o.k)(e),this.devtools.warnStateProps&&Object(o.b)(e))}},{key:"verifyValues",value:function(e,t){var r=this;this.devtools&&e.forEach((function(e){r.verifyValue(e,t)}))}},{key:"emitMutationEvent",value:function(e,t,r){for(var n=arguments.length,o=Array(n>3?n-3:0),a=3;a<n;a++)o[a-3]=arguments[a];this.controller.emit("mutation",{method:e,path:t,forceChildPathUpdates:r,args:o})}},{key:"get",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce((function(t,r,n){return t instanceof l.b?t:t instanceof l.a?new l.b(t,e.slice(n)):t?t[r]:void 0}),this.state)}},{key:"set",value:function(e,t){this.verifyValue(t,e),this.updateIn(e,(function(e,r,n){r[n]=t}),!0),this.emitMutationEvent("set",e,!0,t)}},{key:"toggle",value:function(e){this.updateIn(e,(function(e,t,r){t[r]=!e})),this.emitMutationEvent("toggle",e,!1)}},{key:"push",value:function(e,t){this.verifyValue(t,e),this.updateIn(e,(function(e){e.push(t)})),this.emitMutationEvent("push",e,t,!1)}},{key:"merge",value:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=Object.assign.apply(Object,r);if(this.get(e))for(var a in o)this.set(e.concat(a),o[a]);else this.set(e,o);this.emitMutationEvent.apply(this,["merge",e,!1].concat(r))}},{key:"pop",value:function(e){this.updateIn(e,(function(e){e.pop()})),this.emitMutationEvent("pop",e,!1)}},{key:"shift",value:function(e){this.updateIn(e,(function(e){e.shift()})),this.emitMutationEvent("shift",e,!1)}},{key:"unshift",value:function(e,t){this.verifyValue(t,e),this.updateIn(e,(function(e){e.unshift(t)})),this.emitMutationEvent("unshift",e,t,!1)}},{key:"splice",value:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.verifyValues(r,e),this.updateIn(e,(function(e){e.splice.apply(e,r)})),this.emitMutationEvent.apply(this,["splice",e,!1].concat(r))}},{key:"unset",value:function(e){this.updateIn(e,(function(e,t,r){delete t[r]}),!0),this.emitMutationEvent("unset",e,!0)}},{key:"concat",value:function(e,t){this.verifyValue(t,e),this.updateIn(e,(function(e,r,n){r[n]=e.concat(t)})),this.emitMutationEvent("concat",e,!1,t)}},{key:"increment",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(!Number.isInteger(t))throw new Error("Cerebral state.increment: you must increment with integer values.");this.updateIn(e,(function(e,r,n){if(!Number.isInteger(e))throw new Error("Cerebral state.increment: you must increment integer values.");r[n]=e+t})),this.emitMutationEvent("increment",e,!1,t)}}]),t}(j.a),C=M,A=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var D=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,Object.assign({Model:C},r)));return n.dependencyStore=new i,n.flush=n.flush.bind(n),n.on("asyncFunction",(function(e,t){t.isParallel||n.flush()})),n.on("parallelStart",(function(){return n.flush()})),n.on("parallelProgress",(function(e,t,r){1===r&&n.flush()})),n.on("mutation",(function(e){return n.updateComputed(e)})),n.on("end",(function(){return n.flush()})),Object(o.j)(n.module,"reactions",(function(e,t){return e&&Object.keys(e).filter((function(t){return e[t]instanceof f})).forEach((function(t){return e[t].initialize()})),e})),n.getState=n.getState.bind(n),n.getSequence=n.getSequence.bind(n),n.getSequences=n.getSequences.bind(n),n}return function(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)}(t,e),A(t,[{key:"flush",value:function(e){var t=this.model.flush();(e||t.length)&&(this.updateWatchers(t,e),this.emit("flush",t,Boolean(e)))}},{key:"updateComputed",value:function(e){this.dependencyStore.getUniqueEntities([e]).forEach((function(e){e instanceof l.a&&(e.isDirty=!0)}))}},{key:"updateWatchers",value:function(e,t){var r=[];r=t?this.dependencyStore.getAllUniqueEntities():this.dependencyStore.getUniqueEntities(e);var n=Date.now(),o="undefined"==typeof performance?Date.now():performance.now();r.forEach((function(r){r instanceof l.a||r.onUpdate(e,t)}));var a="undefined"==typeof performance?Date.now():performance.now();this.devtools&&r.length&&this.devtools.sendWatchMap(r,e,n,a-o)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.createContext(t),n=e.getValue(r);return Object(o.t)(n)?n.getValue(t):n}},{key:"createContext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=t.length?t.join(".")+".":"";return{props:e,controller:this,execution:{name:r}}}},{key:"createDependencyMap",value:function(e,t,r){var n=this,a=this.createContext(t,r);return e.reduce((function(e,r){return r instanceof u.d?r.getTags(a).reduce((function(e,r){if("state"===r.type||"moduleState"===r.type){var i=r.getValue(a);if(Object(o.t)(i))return i.getValue(t),Object.assign(e,i.getDependencyMap());var u=r.getPath(a);e[Object(o.i)(u,n.getState(u))]=!0}return e}),e):e}),{})}}]),t}(P),k=D,R=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var x,L=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.changes=[],n.model.state=JSON.parse(JSON.stringify(n.model.state)),n.trackChanges=n.trackChanges.bind(n),n.on("flush",n.trackChanges),n.hasRun=!1,n}return function(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)}(t,e),R(t,[{key:"trackChanges",value:function(e){this.changes=this.changes.concat(e)}},{key:"getChanges",value:function(){var e=this;return this.changes.reduce((function(t,r){return t[r.path.join(".")]=e.getState(r.path),t}),{})}},{key:"getScript",value:function(){var e=JSON.stringify(this.getChanges());return this.hasRun=!0,"<script>window.CEREBRAL_STATE = "+e+"<\/script>"}},{key:"runSequence",value:function(e,t){var r=void 0;if(Array.isArray(e))r=this.run("UniversalController.run",e,t);else if("string"==typeof e){var n=Object(o.h)(e),a=n.pop(),i=Object(o.m)(n,this.module),u=i&&i.sequences[a];r=this.run(e,u.sequence,t)}else Object(o.y)("Sequence must be a sequence-path or an array of action.");return r}},{key:"setState",value:function(e,t){this.model.set(Object(o.h)(e),t),this.flush(!0)}}]),t}(k),B=L,N=r(94),U=(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}x(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),W=function(){function e(e){this.sequenceArray=e}return e.prototype.action=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n,o="string"==typeof t[0],a=o?t.splice(1):t;return a.forEach((function(e){o&&Object.defineProperty(e,"name",{value:t[0]})})),(n=this.sequenceArray).push.apply(n,a),new e(this.sequenceArray)},e.prototype.branch=function(t){var r=this;return this.sequenceArray.push(t),{paths:function(t){var n=function(e){var t={};for(var r in e){var n=new W([]);(0,e[r])(n),t[r]=n.sequenceArray}return t}(t);return r.sequenceArray.push(n),new e(r.sequenceArray)}}},e.prototype.parallel=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n="string"==typeof t[0]?t[1]:t[0],o="string"==typeof t[0]?t[0]:"";return this.sequenceArray.push(Object(u.h)(o,n)),new e(this.sequenceArray)},e.prototype.sequence=function(t){return(r=this.sequenceArray).push.apply(r,t),new e(this.sequenceArray);var r},e.prototype.when=function(e){return this.branch((function(t){return e(t)?t.path.true({}):t.path.false({})}))},e.prototype.debounce=function(e){return this.branch(Object(N.a)(e))},e.prototype.equals=function(e){return this.branch((function(t){var r=String(e(t));return t.path[r]?t.path[r]({}):t.path.othersise({})}))},e.prototype.wait=function(e){return this.sequenceArray.push(Object(N.b)(e)),new F(this.sequenceArray)},e}(),F=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return U(t,e),t.prototype.continue=function(e){var t=new W([]);return this.sequenceArray.push({continue:t.sequenceArray}),t},t}(W);function z(e){var t=new W([]);return e(t),t.sequenceArray}function H(){return function(e){return z(e)}}function Y(){return function(e){return z(e)}}function V(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q(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}var G=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";V(this,t);var r=q(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return Object.defineProperty(r,"message",{configurable:!0,enumerable:!1,value:e,writable:!0}),Object.defineProperty(r,"name",{configurable:!0,enumerable:!1,value:r.constructor.name,writable:!0}),Error.hasOwnProperty("captureStackTrace")?(Error.captureStackTrace(r,r.constructor),q(r)):(Object.defineProperty(r,"stack",{configurable:!0,enumerable:!1,value:new Error(e).stack,writable:!0}),r)}return function(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)}(t,e),t}(function(e){function t(){e.apply(this,arguments)}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error));var $=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.name="CerebralError",n.details=r,n.toJSON=function(){var e=this;return Object.getOwnPropertyNames(this).reduce((function(t,r){return["toJSON","execution","functionDetails"].includes(r)||(t[r]=e[r]),t}),{})},n}return function(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)}(t,e),t}(G),K=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var Z=function(e){function t(e){var r=e.dependencies,n=void 0===r?{}:r,a=e.mergeProps,i=e.props,l=e.controller,c=e.displayName,s=e.onUpdate;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var f=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,"View"));return"function"==typeof n&&Object(o.y)("You can not use a function to define dependencies. Use tags or a function on the specific property you want to dynamically create"),Object.keys(n).forEach((function(e){n[e]instanceof u.d||Object(o.y)('The dependency "'+e+'" on component "'+c+'" is not a tag, it has to be a tag')})),f.dependencies=n,f.mergeProps=a,f.controller=l,f._displayName=c,f._hasWarnedBigComponent=!1,f.isUnmounted=!1,f.updateComponent=s||o.x,f.props=i,f.propKeys=Object.keys(i||{}),f._verifyPropsWarned=!1,f.dynamicDependencies=[],f.reactions=[],f.computedWithProps={},f.dynamicComputedWithProps={},f.createReaction=f.createReaction.bind(f),l.devtools&&l.devtools.warnStateProps&&f.verifyProps(i),f}return function(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)}(t,e),K(t,[{key:"verifyProps",value:function(e){var t=Object(o.q)(e);t&&!this._verifyPropsWarned&&(console.warn("You are passing an "+(Array.isArray(e[t])?"array":"object")+' to the component "'+this._displayName+'" on prop "'+t+'" which is from the Cerebral state tree. You should not do this, but rather connect it directly to this component. This will optimize the component and avoid any rerender issues.'),this._verifyPropsWarned=!0)}},{key:"createDependencyMap",value:function(){var e=this,t=this.controller.createContext(this.props),r={},n=Object.keys(this.dependencies).map((function(n){var a=e.dependencies[n],i=a.getValue(t);return Object(o.t)(i)&&i.propsTags.length&&(r[a.getPath(t)]=i),a})).concat(this.dynamicDependencies);return Object.keys(this.computedWithProps).forEach((function(t){t in r||t in e.dynamicComputedWithProps||(e.computedWithProps[t].destroy(),delete e.computedWithProps[t])})),Object.keys(r).forEach((function(t){e.computedWithProps[t]||(e.computedWithProps[t]=r[t].clone())})),Object.keys(this.dynamicComputedWithProps).forEach((function(t){e.computedWithProps[t]||(e.computedWithProps[t]=e.dynamicComputedWithProps[t])})),this.controller.createDependencyMap(n,this.props)}},{key:"onUpdate",value:function(){this.isUnmounted||this.updateComponent.apply(this,arguments)}},{key:"mount",value:function(){this.create(this.controller,[],this._displayName),this.update(this.props)}},{key:"unMount",value:function(){var e=this;Object.keys(this.computedWithProps).forEach((function(t){e.computedWithProps[t].destroy()})),this.reactions.forEach((function(e){return e.destroy()})),this.isUnmounted=!0,this.destroy()}},{key:"onPropsUpdate",value:function(e,t){this.controller.devtools&&this.verifyProps(t);var r=Object(o.l)(e,t);return!!r.length&&(this.updateFromProps(r,t),!0)}},{key:"updateFromProps",value:function(e,t){this.update(t)}},{key:"updateFromState",value:function(e,t,r){this.update(t)}},{key:"update",value:function(e){var t=this.dependencyMap;this.props=e,this.dependencyMap=this.createDependencyMap();var r=Object.assign({},t),n=Object.assign({},this.dependencyMap);this.controller.dependencyStore.updateEntity(this,r,n),this.controller.devtools&&this.controller.devtools.updateWatchMap(this,n,r)}},{key:"createDynamicGetter",value:function(e,t){var r=this;return this.dynamicDependencies=[],this.dynamicComputedWithProps={},Object.assign((function(n){var a=n.getValue(t);if(r.dynamicDependencies.push(n),Object(o.t)(a)&&a.propsTags.length){var i=n.getPath(t);return r.computedWithProps[i]?(r.dynamicComputedWithProps[i]=r.computedWithProps[i],r.computedWithProps[i].getValue(e)):(r.dynamicComputedWithProps[i]=a.clone(),r.dynamicComputedWithProps[i].getValue(e))}return Object(o.t)(a)?a.getValue(e):a}),{path:function(e){return e.getPath(t)}})}},{key:"createReaction",value:function(e,t,r){var n=d(t,r).create(this.controller,this.modulePath,this.name+"."+e).initialize();return this.reactions.push(n),n}},{key:"getProps",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Object.keys(this.dependencies).reduce((function(n,a){var i=t.dependencies[a],u=i.getValue(e);if(Object(o.t)(u)){var l=i.getPath(e);t.computedWithProps[l]?n[a]=t.computedWithProps[l].getValue(r):n[a]=u.getValue(r)}else n[a]=u;return n}),{});return this.controller.devtools&&this.controller.devtools.bigComponentsWarning&&!this._hasWarnedBigComponent&&Object.keys(this.dependencies).length>=this.controller.devtools.bigComponentsWarning&&(console.warn("Component named "+this._displayName+" has a lot of dependencies, consider refactoring or adjust this option in devtools"),this._hasWarnedBigComponent=!0),this.mergeProps?this.mergeProps(a,r,(function(t){t instanceof u.d||Object(o.y)("You are not passing a tag to the mergeProp get function");var n=t.getValue(e);return Object(o.t)(n)?n.getValue(r):n})):(a.get=this.createDynamicGetter(r,e),a.reaction=this.createReaction,Object.assign({},n?r:{},a))}},{key:"render",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=arguments[2],n=this.controller.createContext(e),o=this.getProps(n,e,r);this.executedCount++,this.controller.devtools&&this.controller.devtools.sendWatchMap([],[],0,0);var a=t(o);return this.dynamicDependencies.length&&this.update(e),a}}]),t}(c.a),X=Z,J=n;var Q=J.props,ee=J.path,te=J.state,re=J.string,ne=J.sequences,oe=J.computed,ae=J.moduleState,ie=J.moduleSequences,ue=J.moduleComputed;function le(e,t){return Object(o.a)("Controller","Use App default import instead"),new k(e,t)}function ce(e,t){return Object(o.a)("UniversalController","Use UniversalApp import instead"),new B(e,t)}function se(e,t){return new B(e,t)}function fe(e){return Object(o.a)("Module","Use plain object/function. Type with ModuleDefinition export"),new m(e)}var de=void 0;function pe(e,t){return t&&!0===t.hotReloading&&de?(de.reconfigure(e),de):de=new k(e,t)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TEMPLATE_PREVIEW_STATUS_LOADING=t.TEMPLATE_PREVIEW_STATUS_LOADED=t.STATUS_CODE_SUBSCRIPTION_EXPIRED=t.SAVE_STATE_SUCCESS=t.SAVE_STATE_LOADING=t.SAVE_STATE_IDLE=t.SAVE_STATE_ERROR=t.PROMPT_TYPE_VISUAL_BUILDER_UNSAVED_CHANGES=t.PROMPT_TYPE_UNKNOWN_ERROR=t.PROMPT_TYPE_THEME_BUILDER_RESET=t.PROMPT_TYPE_LOAD_DRAFT=t.PROMPT_TYPE_LIBRARY_ITEM_NOT_EXISTS=t.PROMPT_TYPE_ITEM_EXPORT_MODAL=t.PROMPT_TYPE_IMPORT_LIBRARY_TEMPLATE=t.PROMPT_TYPE_DELETE_GLOBAL_LAYOUT_PROGRESS=t.PROMPT_TYPE_DELETE_GLOBAL_LAYOUT=t.PORTABILITY_STATE_IMPORT_LIBRARY_TEMPLATE=t.PORTABILITY_STATE_EXPORT_TEMPLATE=t.PORTABILITY_STATE_DEFAULT=t.MODAL_TYPE_VISUAL_BUILDER=t.MODAL_TYPE_USE_GLOBAL_LAYOUTS=t.MODAL_TYPE_USE_DEFAULT_TEMPLATE=t.MODAL_TYPE_THEME_BUILDER_LIBRARY=t.MODAL_TYPE_SAVE_TO_LIBRARY=t.MODAL_TYPE_PORTABILITY=t.MODAL_TYPE_IMPORT_TEMPLATES=t.MODAL_TYPE_HISTORY=t.MODAL_TYPE_DIVI_LIBRARY=t.LOAD_TEMPLATE_ACTION_OVERRIDE_DEFAULT=t.LOAD_TEMPLATE_ACTION_LOAD_WITH_GLOBAL_REFERENCES=t.LOAD_TEMPLATE_ACTION_LOAD_AS_STATIC=t.LIBRARY_SAVE_TEMPLATE_ACTION=t.LIBRARY_SAVE_PRESET_ACTION=t.LIBRARY_ITEM_TYPE_TEMPLATE=t.LIBRARY_ITEM_TYPE_SET=t.LIBRARY_ITEM_ACTION_PREVIEW=t.LIBRARY_ITEM_ACTION_EDIT=t.LAYOUT_TYPE_HEADER=t.LAYOUT_TYPE_FOOTER=t.LAYOUT_TYPE_BODY=t.LAYOUT_TYPES=t.IMPORT_STATE_SUCCESS=t.IMPORT_STATE_LOADING=t.IMPORT_STATE_INCOMING_LAYOUT_DUPLICATE_DECISION=t.IMPORT_STATE_IDLE=t.IMPORT_STATE_ERROR=t.HOTKEYS_UNDO=t.HOTKEYS_SAVE=t.HOTKEYS_REDO=t.HOTKEYS_PASTE=t.HOTKEYS_COPY=t.HOTKEYS_CLOSE=t.EXPORT_STATE_SUCCESS=t.EXPORT_STATE_LOADING=t.EXPORT_STATE_IDLE=t.EXPORT_STATE_ERROR=t.CAP_PORTABILITY=t.CAP_LOAD_LAYOUT=t.CAP_DIVI_LIBRARY=t.ADMIN_BAR_HEIGHT=void 0;t.ADMIN_BAR_HEIGHT=32;var n="header";t.LAYOUT_TYPE_HEADER=n;var o="body";t.LAYOUT_TYPE_BODY=o;var a="footer";t.LAYOUT_TYPE_FOOTER=a;var i=[n,o,a];t.LAYOUT_TYPES=i;t.PROMPT_TYPE_UNKNOWN_ERROR="unknown_error";t.PROMPT_TYPE_LOAD_DRAFT="load_draft";t.PROMPT_TYPE_THEME_BUILDER_RESET="theme_builder_reset";t.PROMPT_TYPE_VISUAL_BUILDER_UNSAVED_CHANGES="visual_builder_unsaved_changes";t.PROMPT_TYPE_DELETE_GLOBAL_LAYOUT="delete_global_layout";t.PROMPT_TYPE_DELETE_GLOBAL_LAYOUT_PROGRESS="delete_global_layout_progress";t.PROMPT_TYPE_LIBRARY_ITEM_NOT_EXISTS="library_item_not_exists";t.PROMPT_TYPE_IMPORT_LIBRARY_TEMPLATE="import_library_template";t.PROMPT_TYPE_ITEM_EXPORT_MODAL="item_export_modal";t.MODAL_TYPE_DIVI_LIBRARY="divi_library";t.MODAL_TYPE_HISTORY="history";t.MODAL_TYPE_IMPORT_TEMPLATES="import_templates";t.MODAL_TYPE_PORTABILITY="portability";t.MODAL_TYPE_SAVE_TO_LIBRARY="save_to_library";t.MODAL_TYPE_THEME_BUILDER_LIBRARY="theme_builder_library";t.MODAL_TYPE_VISUAL_BUILDER="visual_builder";t.MODAL_TYPE_USE_DEFAULT_TEMPLATE="use_default_template";t.MODAL_TYPE_USE_GLOBAL_LAYOUTS="use_global_layouts";t.SAVE_STATE_IDLE="idle";t.SAVE_STATE_LOADING="loading";t.SAVE_STATE_SUCCESS="success";t.SAVE_STATE_ERROR="error";t.PORTABILITY_STATE_DEFAULT="default";t.PORTABILITY_STATE_EXPORT_TEMPLATE="export_template";t.PORTABILITY_STATE_IMPORT_LIBRARY_TEMPLATE="import_template";t.EXPORT_STATE_IDLE="idle";t.EXPORT_STATE_LOADING="loading";t.EXPORT_STATE_SUCCESS="success";t.EXPORT_STATE_ERROR="error";t.IMPORT_STATE_IDLE="idle";t.IMPORT_STATE_LOADING="loading";t.IMPORT_STATE_INCOMING_LAYOUT_DUPLICATE_DECISION="incoming_layout_duplicate_decision";t.IMPORT_STATE_SUCCESS="success";t.IMPORT_STATE_ERROR="error";t.CAP_PORTABILITY="et_theme_builder_portability";t.CAP_DIVI_LIBRARY="divi_library";t.CAP_LOAD_LAYOUT="load_layout";t.HOTKEYS_SAVE=["command+s","ctrl+s"];t.HOTKEYS_CLOSE=["escape"];t.HOTKEYS_UNDO=["command+z","ctrl+z"];t.HOTKEYS_REDO=["command+shift+z","ctrl+shift+z","ctrl+y"];t.HOTKEYS_COPY=["command+c","ctrl+c"];t.HOTKEYS_PASTE=["command+v","ctrl+v"];t.LIBRARY_SAVE_TEMPLATE_ACTION="save_template_action";t.LIBRARY_SAVE_PRESET_ACTION="save_preset_action";t.LIBRARY_ITEM_TYPE_TEMPLATE="template";t.LIBRARY_ITEM_TYPE_SET="set";t.LIBRARY_ITEM_ACTION_EDIT="edit";t.LIBRARY_ITEM_ACTION_PREVIEW="preview";t.TEMPLATE_PREVIEW_STATUS_LOADING="loading";t.TEMPLATE_PREVIEW_STATUS_LOADED="loaded";t.LOAD_TEMPLATE_ACTION_OVERRIDE_DEFAULT="override_default";t.LOAD_TEMPLATE_ACTION_LOAD_AS_STATIC="load_as_static";t.LOAD_TEMPLATE_ACTION_LOAD_WITH_GLOBAL_REFERENCES="load_with_global_references";t.STATUS_CODE_SUBSCRIPTION_EXPIRED=999},function(e,t,r){var n=r(115);e.exports=function(e,t,r){var o=null==e?void 0:n(e,t);return void 0===o?r:o}},function(e,t,r){"use strict";r.d(t,"a",(function(){return u})),r.d(t,"j",(function(){return q})),r.d(t,"h",(function(){return G})),r.d(t,"f",(function(){return V})),r.d(t,"b",(function(){return j.a})),r.d(t,"g",(function(){return C})),r.d(t,"i",(function(){return D})),r.d(t,"c",(function(){return M})),r.d(t,"e",(function(){return x})),r.d(t,"d",(function(){return R}));var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function o(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 a(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)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=function(){function e(t){i(this,e),this.type=t,"string"==typeof(arguments.length<=1?void 0:arguments[1])?(this.name=arguments.length<=1?void 0:arguments[1],this.items=arguments.length<=2?void 0:arguments[2]):(this.name=null,this.items=arguments.length<=1?void 0:arguments[1]),Array.isArray(this.items)||(this.items=[this.items])}return n(e,[{key:"toJSON",value:function(){return{name:this.name,_functionTreePrimitive:!0,type:this.type,items:this.items}}}]),e}(),l=function(e){function t(){var e;i(this,t);for(var r=arguments.length,n=Array(r),a=0;a<r;a++)n[a]=arguments[a];return o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this,"sequence"].concat(n)))}return a(t,e),t}(u),c=function(e){function t(){var e;i(this,t);for(var r=arguments.length,n=Array(r),a=0;a<r;a++)n[a]=arguments[a];return o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this,"parallel"].concat(n)))}return a(t,e),t}(u),s=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(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 p(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 y=function(e){function t(e){f(this,t);var r=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e.message||e));return r.name="FunctionTreeError",r}return p(t,e),s(t,[{key:"toJSON",value:function(){return{name:this.name,message:this.message,stack:this.stack}}}]),t}(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)),m=function(e){function t(e,r,n,o){f(this,t);var a=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,o));return a.name="FunctionTreeExecutionError",a.execution=e,a.funcDetails=r,a.payload=n,a}return p(t,e),s(t,[{key:"toJSON",value:function(){return{name:this.name,message:this.message,execution:{name:this.execution.name},funcDetails:{name:this.funcDetails.name,functionIndex:this.funcDetails.functionIndex},payload:this.payload,stack:this.stack}}}]),t}(y),h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function b(e){if(e.displayName)return e.displayName;if(e.name)return e.name;var t=e.toString(),r=void 0;return 0===t.indexOf("async function")?r="async function ":0===t.indexOf("function")&&(r="function "),t=(t=t.substr(r?r.length:0)).substr(0,t.indexOf("("))}function v(e){return e&&!Array.isArray(e)&&"object"===(void 0===e?"undefined":h(e))&&!(e instanceof u)}function g(e,t,r,n){if(r instanceof u){var o=r.toJSON();return Object.assign(o,{items:g(e,t,o.items,r instanceof c).items})}if(Array.isArray(r))return new l(r.reduce((function(n,o,a){if(o instanceof u){var i=o.toJSON();return n.concat(Object.assign(i,{items:g(e,t,i.items,o instanceof c).items}))}if("function"==typeof o){var l={name:o.displayName||b(o),functionIndex:t.push(o)-1,function:o},s=r[a+1];return v(s)&&(l.outputs={},Object.keys(s).forEach((function(r){if(o.outputs&&!~o.outputs.indexOf(r))throw new y("Outputs object doesn't match list of possible outputs defined for function.");l.outputs[r]=g(e,t,"function"==typeof s[r]?[s[r]]:s[r])}))),n.concat(l)}if(v(o))return n;if(Array.isArray(o)){var f=g(e,t,o);return n.concat(f)}throw new y('Unexpected entry in "'+e+'". '+function(e,t){return"\n[\n"+e.map((function(e){return e===t?" "+(void 0===t?"undefined":h(t))+", <-- PROBLEM":"function"==typeof e?" "+b(e)+",":e instanceof u?" [ "+e.type.toUpperCase()+" ],":Array.isArray(e)?" [ SEQUENCE ],":" { PATHS },"})).join("\n")+"\n]\n "}(r,o))}),[])).toJSON();throw new y("Unexpected entry in tree")}var O=function(e,t){return g(e,[],"function"==typeof t?[t]:t)},_=r(95),w=r(389),T=r.n(w);function E(e,t){return e._functionTreePrimitive&&e.type===t}function P(e,t,r,n,o,a,i,u,l){!function t(l,c,s,f,d){r((function(){function r(e){t(l,c+1,e,s,d)}function p(r,o){return function(a){var i=Object.assign({},s,a?a.payload:{});if(a&&r.outputs){var u=Object.keys(r.outputs);if(!~u.indexOf(a.path))throw new m(e,r,s,"function "+r.name+" must use one of its possible outputs: "+u.join(", ")+".");n(r,a.path,i),t(r.outputs[a.path].items,0,i,s,o)}else o(i)}}var y=l[c];if(y)if(E(y,"sequence"))t(y.items,0,s,f,r);else if(E(y,"parallel")){var h=y.items.length,b=[];a(s,h),y.items.forEach((function(n,o){return n.function?e.runFunction(n,s,f,p(n,(function(e){b.push(e),b.length===h?(u(e,h),r(Object.assign.apply(Object,[{}].concat(b)))):i(e,h-b.length)}))):t(n.items,0,s,f,(function(e){b.push(e),b.length===h?(u(e,h),r(Object.assign.apply(Object,[{}].concat(b)))):i(e,h-b.length)})),b}))}else e.runFunction(y,s,f,p(y,r));else l!==e.staticTree&&o(s),d(s)}))}([e.staticTree],0,t,null,l)}var j=r(93),S=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function I(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var M=function(){function e(){I(this,e)}return S(e,[{key:"getValue",value:function(){throw new Error('Extending ResolveValue requires you to add a "getValue" method')}}]),e}();function C(e,t){return t.split(".").reduce((function(e,r,n){if(n>0&&void 0===e)throw new Error('Cannot extract value at path "'+t+'" ("'+r+'" is not defined).');return e[r]}),e)}var A=function(e){function t(e){I(this,t);var r=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.cvalue=e,r}return function(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)}(t,e),S(t,[{key:"getValue",value:function(e){var t=e.resolve,r=this.cvalue;return t.isResolveValue(r)?t.value(r):Object.keys(r).reduce((function(e,n){return e[n]=t.value(r[n]),e}),{})}}]),t}(M),D=function(e){return new A(e)},k=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var R=function(e){function t(e,r,n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return a.type=e,a.getter=r,a.strings=n,a.values=o,a}return function(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)}(t,e),k(t,[{key:"getTags",value:function(){return[this].concat(this.getNestedTags())}},{key:"getPath",value:function(e){var t=this;return this.strings.reduce((function(r,n,o){var a=t.values[o];return a instanceof M?r+n+a.getValue(e):r+n+(void 0!==a?a:"")}),"")}},{key:"getValue",value:function(e){return this.getter(this.getPath(e),e)}},{key:"getNestedTags",value:function(){var e=this;return this.strings.reduce((function(r,n,o){var a=e.values[o];return a instanceof t?r.concat(a):r}),[])}},{key:"toString",value:function(){return this.type+"`"+this.pathToString()+"`"}},{key:"pathToString",value:function(){var e=this;return this.strings.reduce((function(r,n,o){var a=e.values[o];return a instanceof t?r+n+"${"+a.toString()+"}":r+n+(void 0!==a?a:"")}),"")}}]),t}(M);function x(e,t){return function(r){for(var n=arguments.length,o=Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];if(o.some((function(e){return void 0===e})))throw new Error("One of the values passed inside the tag interpolated to undefined. Please check.");return new R(e,t,r,o)}}var L=new j.a({isTag:function(e){if(!(e instanceof R))return!1;for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return!r.length||r.reduce((function(t,r){return t||r===e.type}),!1)},isResolveValue:function(e){return e instanceof M},value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e instanceof M?e.getValue(t?Object.assign({},this.context,t):this.context):e},path:function(e){if(e instanceof R)return e.getPath(this.context);throw new Error("You are extracting a path from an argument that is not a Tag.")}},{wrap:!1}),B=r(114),N=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function W(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 F(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z(e){return!e||"object"===(void 0===e?"undefined":U(e))&&!Array.isArray(e)}function H(e,t,r,n){var o=e;return o.execution=t,o.functionDetails=r,o.payload=Object.assign({},n,{_execution:{id:t.id,functionIndex:r.functionIndex},error:e.toJSON?e.toJSON():{name:e.name,message:e.message,stack:e.stack}}),o}var Y=function(){function e(t,r,n,o){F(this,e),this.id=Date.now()+"_"+Math.floor(1e4*Math.random()),this.name=t||r.name||this.id,this.staticTree=r,this.functionTree=n,this.datetime=Date.now(),this.errorCallback=o,this.hasThrown=!1,this.isAsync=!1,this.runFunction=this.runFunction.bind(this)}return N(e,[{key:"runFunction",value:function(e,t,r,n){if(!this.hasThrown){var o=this.createContext(e,t,r),a=this.functionTree,i=this.errorCallback,u=this,l=void 0;a.emit("functionStart",u,e,t);try{l=e.function(o)}catch(c){return this.hasThrown=!0,i(H(c,u,e,t),u,e,t)}if(Object(B.b)(l))a.emit("asyncFunction",u,e,t,l),this.isAsync=!0,l.then((function(r){if(r instanceof _.a)a.emit("functionEnd",u,e,t,r),n(r.toJSON());else{if(e.outputs)throw a.emit("functionEnd",u,e,t,r),new m(u,e,t,new Error("The result "+JSON.stringify(r)+" from function "+e.name+" needs to be a path of either "+Object.keys(e.outputs)));if(!z(r))throw a.emit("functionEnd",u,e,t,r),new m(u,e,t,new Error("The result "+JSON.stringify(r)+" from function "+e.name+" is not a valid result"));a.emit("functionEnd",u,e,t,r),n({payload:r})}})).catch((function(r){if(!u.hasThrown)if(r instanceof Error)u.hasThrown=!0,i(H(r,u,e,t),u,e,t);else if(r instanceof _.a)a.emit("functionEnd",u,e,t,r),n(r.toJSON());else if(e.outputs){var o=new m(u,e,t,new Error("The result "+JSON.stringify(r)+" from function "+e.name+" needs to be a path of either "+Object.keys(e.outputs)));u.hasThrown=!0,i(H(o,u,e,t),u,e,t)}else if(z(r))a.emit("functionEnd",u,e,t,r),n({payload:r});else{var l=new m(u,e,t,new Error("The result "+JSON.stringify(r)+" from function "+e.name+" is not a valid result"));u.hasThrown=!0,i(H(l,u,e,t),u,e,t)}}));else if(l instanceof _.a)a.emit("functionEnd",u,e,t,l),n(l.toJSON());else if(e.outputs){var c=new m(u,e,t,new Error("The result "+JSON.stringify(l)+" from function "+e.name+" needs to be a path of either "+Object.keys(e.outputs)));this.hasThrown=!0,i(H(c,u,e,t),u,e,t)}else if(z(l))a.emit("functionEnd",u,e,t,l),n({payload:l});else{var s=new m(u,e,t,new Error("The result "+JSON.stringify(l)+" from function "+e.name+" is not a valid result"));this.hasThrown=!0,i(H(s,u,e,t),u,e,t)}}}},{key:"createContext",value:function(e,t,r){var n=this.functionTree.contextProviders,o={execution:this,props:t||{},functionDetails:e,path:e.outputs?Object.keys(e.outputs).reduce((function(e,t){return e[t]=function(e){return new _.a(t,e)},e}),{}):null},a=n.debugger&&n.debugger.get(o,e,t,r),i=Object.keys(n).reduce((function(o,a){var i=n[a];return i instanceof j.a?o[a]=i.get(o,e,t,r):o[a]=i,o}),o);return a?Object.keys(i).reduce((function(t,r){var o=n[r];return o&&o instanceof j.a&&o.wrap?t[r]="function"==typeof o.wrap?o.wrap(i,e):o.getWrapped(r,i):t[r]=i[r],t}),{}):i}}]),e}(),V=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};F(this,t);var n=W(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(n.cachedTrees=[],n.cachedStaticTrees=[],n.executeBranchWrapper=r.executeBranchWrapper||function(e){e()},"object"!==(void 0===e?"undefined":U(e))||null===e||Array.isArray(e))throw new Error("You have to pass an object of context providers to FunctionTree");var o=Object.keys(e);if(o.indexOf("props")>=0||o.indexOf("path")>=0||o.indexOf("resolve")>=0||o.indexOf("execution")>=0||o.indexOf("debugger")>=0)throw new Error('You are trying to add a provider with protected key. "props", "path", "resolve", "execution" and "debugger" are protected');return n.contextProviders=Object.assign({},e,{resolve:L}),n.run=n.run.bind(n),n}return function(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)}(t,e),N(t,[{key:"run",value:function(){var e=this,t=void 0,r=void 0,n=void 0,o=void 0,a=void 0,i=[].slice.call(arguments);if(i.forEach((function(e){"string"==typeof e?t=e:Array.isArray(e)||e instanceof u?r=e:r||"function"!=typeof e?"function"==typeof e?o=e:n=e:r=e})),!r)throw new Error("function-tree - You did not pass in a function tree");var l=function(o,i){var u=e.cachedTrees.indexOf(r);-1===u?(a=O(t,r),e.cachedTrees.push(r),e.cachedStaticTrees.push(a)):a=e.cachedStaticTrees[u];var l=new Y(t,a,e,(function(t,r,n,o){e.emit("error",t,r,n,o),i(t)}));e.emit("start",l,n),P(l,n,e.executeBranchWrapper,(function(t,r,n){e.emit("pathStart",r,l,t,n)}),(function(t){e.emit("pathEnd",l,t)}),(function(t,r){e.emit("parallelStart",l,t,r)}),(function(t,r){e.emit("parallelProgress",l,t,r)}),(function(t,r){e.emit("parallelEnd",l,t,r)}),(function(t){e.emit("end",l,t),o===i?o(null,t):o(t)}))};if(!o)return new Promise(l);l(o,o)}}]),t}(T.a);function q(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return new(Function.prototype.bind.apply(l,[null].concat(t)))}function G(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return new(Function.prototype.bind.apply(c,[null].concat(t)))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(137))&&n.__esModule?n:{default:n};t.default=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];return o.default.apply(void 0,[window.et_theme_builder_bundle.i18n,[e,t]].concat(n))}},function(e,t){e.exports=function(){}},function(e,t,r){e.exports=r(392)},function(e,t){var r=Array.isArray;e.exports=r},function(e,t){e.exports=window.jQuery},function(e,t,r){var n=r(141),o=r(66),a=r(75),i=r(10),u=r(28),l=r(76),c=r(77),s=r(87),f=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(u(e)&&(i(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||s(e)||a(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!n(e).length;for(var r in e)if(f.call(e,r))return!1;return!0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=window.et_theme_builder_bundle.config;t.default=n},function(e,t,r){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var i=o.apply(null,n);i&&e.push(i)}}else if("object"===a)if(n.toString===Object.prototype.toString)for(var u in n)r.call(n,u)&&n[u]&&e.push(u);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,r){var n=r(99);e.exports=function(e){return null==e?"":n(e)}},function(e,t,r){var n=r(49),o=r(37),a=r(296),i=r(10);e.exports=function(e,t){return(i(e)?n:a)(e,o(t,3))}},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=c(r(1)),i=c(r(8)),u=c(r(346));r(558);var l=["tip","ripple","className","children","forwardedRef"];function c(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(this,arguments)}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var o=g(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return v(this,r)}}function v(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(i,e);var t,r,n,a=b(i);function i(){return y(this,i),a.apply(this,arguments)}return t=i,r=[{key:"render",value:function(){var e=this.props,t=e.tip,r=e.ripple,n=e.className,a=e.children,i=e.forwardedRef,c=p(e,l),s=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){O(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({type:"button",className:"et-common-button ".concat(n)},c);return""!==t&&(s["data-tip"]=t),o.default.createElement("button",f({ref:i},s),a,r&&o.default.createElement(u.default,null))}}],r&&m(t.prototype,r),n&&m(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.PureComponent);O(_,"propTypes",{tip:a.default.string,ripple:a.default.bool,className:a.default.string,forwardedRef:a.default.func}),O(_,"defaultProps",{tip:"",ripple:!0,className:"",forwardedRef:i.default});var w=o.default.forwardRef((function(e,t){return o.default.createElement(_,f({},e,{forwardedRef:t}))}));t.default=w},function(e,t,r){var n=r(149),o=r(85),a=r(295),i=r(10);e.exports=function(e,t){return(i(e)?n:o)(e,a(t))}},function(e,t,r){var n=r(116),o="object"==typeof self&&self&&self.Object===Object&&self,a=n||o||Function("return this")();e.exports=a},function(e,t,r){"use strict";r.d(t,"b",(function(){return l})),r.d(t,"a",(function(){return c}));var n=r(6),o=r(112),a=r(2),i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var l=function(){function e(t,r){u(this,e),this.computed=t,this.propsTags=t.propsTags,this.nestedPath=r}return i(e,[{key:"getValue",value:function(e){return this.nestedPath.reduce((function(e,t){return e&&e[t]}),this.computed.getValue(e))}},{key:"getDependencyMap",value:function(){return this.computed.getDependencyMap()}},{key:"clone",value:function(){return this.computed.clone()}},{key:"destroy",value:function(){return this.computed.destroy()}}]),e}(),c=function(e){function t(e){u(this,t);var r=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,"Compute"));return r.computedCallback=e,r.isDirty=!0,r.value=null,r.props=null,r.getters=null,r.stateTags=[],r.propsTags=[],r.onUpdate=r.onUpdate.bind(r),r.dynamicGetter=r.dynamicGetter.bind(r),r.dynamicGetter.path=r.dynamicPathGetter.bind(r),r}return function(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)}(t,e),i(t,[{key:"createDependencyMap",value:function(){return this.controller.createDependencyMap(this.stateTags,this.props,this.modulePath)}},{key:"getDependencyMap",value:function(){return this.dependencyMap}},{key:"onUpdate",value:function(){this.isDirty=!0}},{key:"clone",value:function(){return new t(this.computedCallback).create(this.controller,this.modulePath,this.name+" (clone)")}},{key:"compute",value:function(){return this.executedCount++,this.computedCallback(this.getDynamicGetter())}},{key:"getDynamicGetter",value:function(){return this.stateTags=[],this.propsTags=[],this.dynamicGetter}},{key:"parseDependencies",value:function(e){var t=this;if(!(e instanceof n.d))throw new Error('Cerebral - Only tags are allowed in the dynamic "get" of Compute');e.getTags().forEach((function(e){"props"===e.type?t.propsTags.push(e):t.stateTags.push(e)}))}},{key:"dynamicGetter",value:function(e){this.parseDependencies(e);var t=e.getValue(this.getters);return Object(a.t)(t)?t.getValue(this.props):t}},{key:"dynamicPathGetter",value:function(e){return e.getPath(this.getters)}},{key:"hasChangedProps",value:function(e){var t=this,r=this.controller.createContext(e);return this.propsTags.reduce((function(e,n){return!!e||n.getValue(t.getters)!==n.getValue(r)}),!1)}},{key:"getValue",value:function(e){if(!this.controller)throw new Error("This Cerebral Compute has not been added to a module");if(!this.isDirty&&this.propsTags.length&&this.hasChangedProps(e)&&(this.isDirty=!0),this.isDirty){this.getters=this.controller.createContext(e),this.props=e,this.value=this.compute();var t=this.dependencyMap;this.dependencyMap=this.createDependencyMap(),this.controller.dependencyStore.updateEntity(this,t,this.dependencyMap),this.controller.devtools&&(this.controller.devtools.updateWatchMap(this,this.dependencyMap,t),this.controller.devtools.updateComputedState(this.name,this.value)),this.isDirty=!1}return this.value}},{key:"toString",value:function(){return this.getValue(this.props)}}]),t}(o.a);t.c=function(e){return new c(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t){e.exports=function(e){return void 0===e}},function(e,t){e.exports={}},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=l(r(1)),i=l(r(14)),u=l(r(110));function l(e){return e&&e.__esModule?e:{default:e}}function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m(e);if(t){var o=m(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return y(this,r)}}function y(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(592);var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(l,e);var t,r,n,a=p(l);function l(){return s(this,l),a.apply(this,arguments)}return t=l,(r=[{key:"_renderGraphics",value:function(){switch(this.props.icon){case"add":return o.default.createElement("g",null,o.default.createElement("path",{d:"M18 13h-3v-3a1 1 0 0 0-2 0v3h-3a1 1 0 0 0 0 2h3v3a1 1 0 0 0 2 0v-3h3a1 1 0 0 0 0-2z",fillRule:"evenodd"}));case"back":return o.default.createElement("g",null,o.default.createElement("path",{d:"M14.988 10.963h-3v-2.52a.393.393 0 0 0-.63-.361l-5.2 4.5a.491.491 0 0 0 0 .72l5.2 4.5a.393.393 0 0 0 .63-.36v-2.52h2.99a2.992 2.992 0 0 1 2.99 2.972v1.287a.7.7 0 0 0 .7.694h2.59a.7.7 0 0 0 .7-.694v-1.3a6.948 6.948 0 0 0-6.97-6.918z",fillRule:"evenodd"}));case"check":return o.default.createElement("g",null,o.default.createElement("path",{d:"M19.203 9.21a.677.677 0 0 0-.98 0l-5.71 5.9-2.85-2.95a.675.675 0 0 0-.98 0l-1.48 1.523a.737.737 0 0 0 0 1.015l4.82 4.979a.677.677 0 0 0 .98 0l7.68-7.927a.737.737 0 0 0 0-1.015l-1.48-1.525z",fillRule:"evenodd"}));case"close":case"close-small":case"multiply-by":return o.default.createElement("g",null,o.default.createElement("path",{d:"M15.59 14l4.08-4.082a1.124 1.124 0 0 0-1.587-1.588L14 12.411 9.918 8.329A1.124 1.124 0 0 0 8.33 9.92L12.411 14l-4.082 4.082a1.124 1.124 0 0 0 1.59 1.589L14 15.589l4.082 4.082a1.124 1.124 0 0 0 1.589-1.59L15.589 14h.001z",fillRule:"evenodd"}));case"column":return o.default.createElement("g",null,o.default.createElement("path",{d:"M20 8H8a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V9a1 1 0 0 0-1-.999V8zm-7 2h2v8h-2v-8zm-2 8H9v-8h2v8zm6-8h2v8h-2v-8z",fillRule:"evenodd"}));case"contract":return o.default.createElement("g",null,o.default.createElement("path",{d:"M20 19L20 9C20 8.5 19.5 8 19 8L9 8C8.5 8 8 8.5 8 9L8 19C8 19.5 8.5 20 9 20L19 20C19.5 20 20 19.5 20 19L20 19ZM18 18L10 18 10 10 18 10 18 18 18 18Z",fillRule:"evenodd"}),o.default.createElement("path",{d:"M11.5 13.5C11.8 13.5 12 13.3 12 13L12 12 13 12C13.3 12 13.5 11.8 13.5 11.5 13.5 11.2 13.3 11 13 11L11.5 11C11.2 11 11 11.2 11 11.5L11 13C11 13.3 11.2 13.5 11.5 13.5L11.5 13.5Z",fillRule:"evenodd"}),o.default.createElement("path",{d:"M16.5 11L15 11C14.7 11 14.5 11.2 14.5 11.5 14.5 11.8 14.7 12 15 12L16 12 16 13C16 13.3 16.2 13.5 16.5 13.5 16.8 13.5 17 13.3 17 13L17 11.5C17 11.2 16.8 11 16.5 11L16.5 11Z",fillRule:"evenodd"}),o.default.createElement("path",{d:"M13 16L12 16 12 15C12 14.7 11.8 14.5 11.5 14.5 11.2 14.5 11 14.7 11 15L11 16.5C11 16.8 11.2 17 11.5 17L13 17C13.3 17 13.5 16.8 13.5 16.5 13.5 16.2 13.3 16 13 16L13 16Z",fillRule:"evenodd"}),o.default.createElement("path",{d:"M16.5 14.5C16.2 14.5 16 14.7 16 15L16 16 15 16C14.7 16 14.5 16.2 14.5 16.5 14.5 16.8 14.7 17 15 17L16.5 17C16.8 17 17 16.8 17 16.5L17 15C17 14.7 16.8 14.5 16.5 14.5L16.5 14.5Z",fillRule:"evenodd"}));case"copy":return o.default.createElement("g",null,o.default.createElement("path",{d:"M16.919 15.391c.05-.124.074-.257.072-.39v-6a1.02 1.02 0 0 0-.072-.389.969.969 0 0 0-.893-.612H7.969a.97.97 0 0 0-.893.611c-.05.124-.076.256-.076.39v6c0 .134.026.266.076.39.146.365.5.604.893.605h8.057a.968.968 0 0 0 .893-.605zm3.074-3.413a1 1 0 0 0-1 1v5.011h-7.008a1 1 0 1 0 0 2h8a1 1 0 0 0 1-1v-6.013a1 1 0 0 0-.992-.998zm-5.016 2.013H8.991v-3.988h5.986v3.993-.005z",fillRule:"evenodd"}));case"delete":return o.default.createElement("g",null,o.default.createElement("path",{d:"M19 9h-3V8a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v1H9a1 1 0 1 0 0 2h10a1 1 0 0 0 .004-2H19zM9 20c.021.543.457.979 1 1h8c.55-.004.996-.45 1-1v-7H9v7zm2.02-4.985h2v4h-2v-4zm4 0h2v4h-2v-4z",fillRule:"evenodd"}));case"desktop":return o.default.createElement("g",null,o.default.createElement("path",{d:"M20 7H8C7.5 7 7 7.5 7 8v10c0 0.5 0.5 1 1 1h5v1h-1c-0.5 0-1 0.5-1 1s0.5 1 1 1h4c0.5 0 1-0.5 1-1s-0.5-1-1-1h-1v-1h5c0.5 0 1-0.5 1-1V8C21 7.5 20.5 7 20 7zM15 18h-2v-1h2V18zM19 16H9V9h10V16z",fillRule:"evenodd"}));case"grid":return o.default.createElement("g",null,o.default.createElement("path",{d:"M20 7H8C7.5 7 7 7.5 7 8v12c0 0.5 0.5 1 1 1h12c0.5 0 1-0.5 1-1V8C21 7.5 20.5 7 20 7zM15 9v2h-2V9H15zM15 13v2h-2v-2H15zM9 9h2v2H9V9zM9 13h2v2H9V13zM9 19v-2h2v2H9zM13 19v-2h2v2H13zM19 19h-2v-2h2V19zM19 15h-2v-2h2V15zM19 11h-2V9h2V11z",fillRule:"evenodd"}));case"wireframe":return o.default.createElement("g",null,o.default.createElement("path",{d:"M20 7H8C7.5 7 7 7.5 7 8v4c0 0.5 0.5 1 1 1h12c0.5 0 1-0.5 1-1V8C21 7.5 20.5 7 20 7zM19 11H9V9h10V11z",fillRule:"evenodd"}),o.default.createElement("path",{d:"M12 15H8c-0.5 0-1 0.5-1 1v4c0 0.5 0.5 1 1 1h4c0.5 0 1-0.5 1-1v-4C13 15.5 12.5 15 12 15zM11 19H9v-2h2V19z",fillRule:"evenodd"}),o.default.createElement("path",{d:"M20 15h-4c-0.5 0-1 0.5-1 1v4c0 0.5 0.5 1 1 1h4c0.5 0 1-0.5 1-1v-4C21 15.5 20.5 15 20 15zM19 19h-2v-2h2V19z",fillRule:"evenodd"}));case"exit":return o.default.createElement("g",null,o.default.createElement("path",{d:"M19.71 16.857l-2.85-2.854 2.85-2.854c.39-.395.39-1.03 0-1.426l-1.43-1.427a1 1 0 0 0-1.42 0L14 11.15l-2.85-2.854a1.013 1.013 0 0 0-1.43 0L8.3 9.723a1 1 0 0 0 0 1.426l2.85 2.854-2.85 2.853a1 1 0 0 0 0 1.427l1.42 1.427a1.011 1.011 0 0 0 1.43 0L14 16.856l2.86 2.854a1 1 0 0 0 1.42 0l1.43-1.427c.39-.395.39-1.03 0-1.426z",fillRule:"evenodd"}));case"expand":return o.default.createElement("g",null,o.default.createElement("path",{d:"M17 16L17 12C17 11.5 16.5 11 16 11L12 11C11.5 11 11 11.5 11 12L11 16C11 16.5 11.5 17 12 17L16 17C16.5 17 17 16.5 17 16L17 16ZM15 15L13 15 13 13 15 13 15 15 15 15Z",fillRule:"evenodd"}),o.default.createElement("path",{d:"M8.5 12C8.8 12 9 11.8 9 11.5L9 9 11.5 9C11.8 9 12 8.8 12 8.5 12 8.2 11.8 8 11.5 8L8.5 8C8.2 8 8 8.2 8 8.5L8 11.5C8 11.8 8.2 12 8.5 12L8.5 12Z",fillRule:"evenodd"}),o.default.createElement("path",{d:"M19.5 8L16.5 8C16.2 8 16 8.2 16 8.5 16 8.8 16.2 9 16.5 9L19 9 19 11.5C19 11.8 19.2 12 19.5 12 19.8 12 20 11.8 20 11.5L20 8.5C20 8.2 19.8 8 19.5 8L19.5 8Z",fillRule:"evenodd"}),o.default.createElement("path",{d:"M11.5 19L9 19 9 16.5C9 16.2 8.8 16 8.5 16 8.2 16 8 16.2 8 16.5L8 19.5C8 19.8 8.2 20 8.5 20L11.5 20C11.8 20 12 19.8 12 19.5 12 19.2 11.8 19 11.5 19L11.5 19Z",fillRule:"evenodd"}),o.default.createElement("path",{d:"M19.5 16C19.2 16 19 16.2 19 16.5L19 19 16.5 19C16.2 19 16 19.2 16 19.5 16 19.8 16.2 20 16.5 20L19.5 20C19.8 20 20 19.8 20 19.5L20 16.5C20 16.2 19.8 16 19.5 16L19.5 16Z",fillRule:"evenodd"}));case"heading-four":return o.default.createElement("g",null,o.default.createElement("path",{d:"M8 12.983h5V9a1 1 0 0 1 2 0v9.956a1 1 0 0 1-2 0v-3.973H8v3.973a1 1 0 0 1-2 0V9a1 1 0 1 1 2 0v3.983zm14 5.66h-.75v1.288h-1.29v-1.288h-2.67v-.914l2.74-4.013h1.22v3.907H22v1.02zm-2.04-1.02v-1.055c0-.175.01-.431.02-.764s.03-.529.03-.584h-.03a5.039 5.039 0 0 1-.38.681l-1.14 1.722h1.5z",fillRule:"evenodd"}));case"heading-one":return o.default.createElement("g",null,o.default.createElement("path",{d:"M13 14.983H8v3.973a1 1 0 0 1-2 0V9a1 1 0 1 1 2 0v3.983h5V9a1 1 0 0 1 2 0v9.956a1 1 0 0 1-2 0v-3.973zm8.1 4.951h-1.32v-3.6l.01-.591.02-.645c-.146.15-.3.294-.46.428l-.71.574-.64-.79 2.01-1.594h1.09v6.218z",fillRule:"evenodd"}));case"heading-three":return o.default.createElement("g",null,o.default.createElement("path",{d:"M13 14.983H8v3.973a1 1 0 0 1-2 0V9a1 1 0 1 1 2 0v3.983h5V9a1 1 0 0 1 2 0v9.956a1 1 0 0 1-2 0v-3.973zm8.65.125c.01.364-.12.718-.36.991-.26.29-.608.487-.99.561v.026a1.97 1.97 0 0 1 1.14.456c.265.256.407.613.39.981.03.546-.214 1.07-.65 1.4a3.04 3.04 0 0 1-1.87.5 4.6 4.6 0 0 1-1.8-.336v-1.118c.256.127.524.228.8.3.28.075.57.114.86.115a1.7 1.7 0 0 0 .97-.221.8.8 0 0 0 .31-.709.642.642 0 0 0-.36-.622 2.669 2.669 0 0 0-1.14-.183h-.48v-1.007h.49c.363.023.727-.042 1.06-.189a.687.687 0 0 0 .33-.648.714.714 0 0 0-.89-.706c-.21 0-.42.035-.62.1-.25.087-.49.206-.71.353l-.61-.906a3.419 3.419 0 0 1 2.04-.612 2.652 2.652 0 0 1 1.53.392c.36.24.572.649.56 1.082z",fillRule:"evenodd"}));case"heading-two":return o.default.createElement("g",null,o.default.createElement("path",{d:"M13 14.983H8v3.973a1 1 0 0 1-2 0V9a1 1 0 1 1 2 0v3.983h5V9a1 1 0 0 1 2 0v9.956a1 1 0 0 1-2 0v-3.973zm8.99 4.951h-4.36v-.914l1.57-1.577c.46-.474.76-.8.91-.985a2.1 2.1 0 0 0 .3-.508c.063-.154.097-.318.1-.484a.7.7 0 0 0-.21-.557.8.8 0 0 0-.55-.183c-.246 0-.49.057-.71.166a3.6 3.6 0 0 0-.71.471l-.72-.845a4.47 4.47 0 0 1 .77-.553c.209-.11.43-.194.66-.249.262-.06.53-.09.8-.087.355-.008.707.065 1.03.213.285.13.527.339.7.6.165.262.252.566.25.876.002.275-.049.549-.15.805-.122.277-.28.536-.47.772-.35.398-.725.774-1.12 1.127l-.81.752v.059h2.72v1.106-.005z",fillRule:"evenodd"}));case"help":return o.default.createElement("g",null,o.default.createElement("circle",{cx:"14",cy:"19",r:"1"}),o.default.createElement("path",{d:"M13 16a3.17 3.17 0 0 1 1.59-2.68c.74-.46 1.41-.8 1.41-1.82 0-.5-.45-1.5-2-1.5-1.73 0-2 .95-2 1-.12.6-.33 1-1 1-.67 0-1.12-.4-1-1a3.89 3.89 0 0 1 4-3 3.68 3.68 0 0 1 4 3.5 3.72 3.72 0 0 1-2.23 3.5 1.53 1.53 0 0 0-.77 1 .93.93 0 0 1-1 1 .93.93 0 0 1-1-1z"}));case"help-circle":return o.default.createElement("g",null,o.default.createElement("path",{d:"M14 22a8 8 0 1 1 0-16 8 8 0 0 1 0 16zm0-3.6a.8.8 0 1 0 0-1.6.8.8 0 0 0 0 1.6zm-.8-3.2a.744.744 0 0 0 .8.8.744.744 0 0 0 .8-.8c.08-.343.305-.634.616-.8a2.976 2.976 0 0 0 1.784-2.8A2.944 2.944 0 0 0 14 8.8a3.112 3.112 0 0 0-3.2 2.4c-.096.48.264.8.8.8s.704-.32.8-.8c0-.04.216-.8 1.6-.8 1.24 0 1.6.8 1.6 1.2 0 .816-.536 1.088-1.128 1.456A2.536 2.536 0 0 0 13.2 15.2z"}));case"history":return o.default.createElement("g",null,o.default.createElement("path",{d:"M14 6.5C9.9 6.5 6.5 9.9 6.5 14 6.5 18.1 9.9 21.5 14 21.5 18.1 21.5 21.5 18.1 21.5 14 21.5 9.9 18.1 6.5 14 6.5L14 6.5ZM14 19.5C11 19.5 8.5 17 8.5 14 8.5 11 11 8.5 14 8.5 17 8.5 19.5 11 19.5 14 19.5 17 17 19.5 14 19.5L14 19.5Z",fillRule:"evenodd"}),o.default.createElement("path",{d:"M17 13L15 13 15 11C15 10.5 14.5 10 14 10 13.5 10 13 10.5 13 11L13 14C13 14.5 13.5 15 14 15L17 15C17.5 15 18 14.5 18 14 18 13.5 17.5 13 17 13L17 13Z",fillRule:"evenodd"}));case"indent":return o.default.createElement("g",null,o.default.createElement("path",{d:"M20 10H8a1 1 0 1 1 0-2h12a1 1 0 1 1 0 2zm0 10H8a1 1 0 0 1 0-2h12a1 1 0 1 1 0 2zm0-5h-7a1 1 0 0 1 0-2h7a1 1 0 1 1 0 2zM7.77 11.978l2.55 1.6a.5.5 0 0 1 0 .848l-2.55 1.6a.5.5 0 0 1-.77-.424v-3.2a.5.5 0 0 1 .77-.424z",fillRule:"evenodd"}));case"letter-spacing-small":return o.default.createElement("g",null,o.default.createElement("path",{d:"M15 19V9a1 1 0 0 1 2 0v10a1 1 0 0 1-2 0zm-4 0V9a1 1 0 0 1 2 0v10a1 1 0 0 1-2 0z",fillRule:"evenodd"}));case"letter-spacing":return o.default.createElement("g",null,o.default.createElement("path",{d:"M18 19V9a1 1 0 0 1 2 0v10a1 1 0 0 1-2 0zM8 19V9a1 1 0 1 1 2 0v10a1 1 0 0 1-2 0z",fillRule:"evenodd"}));case"line-height-small":return o.default.createElement("g",null,o.default.createElement("path",{d:"M19 13H9a1 1 0 0 1 0-2h10a1 1 0 0 1 0 2zm0 4H9a1 1 0 0 1 0-2h10a1 1 0 0 1 0 2z",fillRule:"evenodd"}));case"line-height":return o.default.createElement("g",null,o.default.createElement("path",{d:"M19 10H9a1 1 0 1 1 0-2h10a1 1 0 0 1 0 2zm0 10H9a1 1 0 0 1 0-2h10a1 1 0 0 1 0 2z",fillRule:"evenodd"}));case"list":return o.default.createElement("g",null,o.default.createElement("path",{d:"M7 10a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm0 5a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm0 5a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm11-10h-7a1 1 0 0 1 0-2h7a1 1 0 0 1 0 2zm2 5h-9a1 1 0 0 1 0-2h9a1 1 0 0 1 0 2zm-2 5h-7a1 1 0 0 1 0-2h7a1 1 0 0 1 0 2z",fillRule:"evenodd"}));case"loading":return o.default.createElement("g",null,o.default.createElement("circle",{className:"et-fb-icon__circle et-fb-icon__circle--1",cx:"2",cy:"2",r:"2",transform:"translate(4 12)"}),o.default.createElement("circle",{className:"et-fb-icon__circle et-fb-icon__circle--2",cx:"2.3",cy:"2.7",r:"2",transform:"rotate(72 4.397 10.865)"}),o.default.createElement("circle",{className:"et-fb-icon__circle et-fb-icon__circle--3",cx:"2.3",cy:"2.2",r:"2",transform:"rotate(144 10.216 8.724)"}),o.default.createElement("circle",{className:"et-fb-icon__circle et-fb-icon__circle--4",cx:"2.6",cy:"2",r:"2",transform:"rotate(-144 14.235 7.453)"}),o.default.createElement("circle",{className:"et-fb-icon__circle et-fb-icon__circle--5",cx:"2.8",cy:"2.1",r:"2",transform:"rotate(-72 20.635 5.838)"}));case"move":return o.default.createElement("g",null,o.default.createElement("path",{d:"M20.91,13.78l-1.85-1.85c-0.14-0.14-0.33-0.22-0.53-0.22c-0.2,0-0.39,0.08-0.53,0.22c-0.14,0.14-0.22,0.33-0.22,0.53S17.86,12.86,18,13v0h-2.94v-2.96c0.13,0.11,0.3,0.19,0.48,0.19c0.2,0,0.39-0.08,0.53-0.22c0.14-0.14,0.22-0.33,0.22-0.53s-0.08-0.39-0.22-0.53l-1.85-1.85C14.17,7.03,14.09,7,14,7s-0.16,0.03-0.22,0.09l-1.85,1.85c-0.14,0.14-0.22,0.33-0.22,0.53s0.08,0.39,0.22,0.53c0.14,0.14,0.33,0.22,0.53,0.22S12.86,10.14,13,10h0.06v3H10v0c0.14-0.14,0.22-0.33,0.22-0.53s-0.08-0.39-0.22-0.53c-0.14-0.14-0.33-0.22-0.53-0.22c-0.2,0-0.39,0.08-0.53,0.22L7.1,13.78C7.04,13.84,7,13.92,7,14c0,0.08,0.03,0.16,0.09,0.22l1.85,1.85c0.14,0.14,0.33,0.22,0.53,0.22c0.2,0,0.39-0.08,0.53-0.22c0.14-0.14,0.22-0.33,0.22-0.53c0-0.2-0.08-0.39-0.22-0.53v0h3.06v3H13c-0.14-0.14-0.33-0.22-0.53-0.22s-0.39,0.08-0.53,0.22c-0.14,0.14-0.22,0.33-0.22,0.53c0,0.2,0.08,0.39,0.22,0.53l1.85,1.85C13.84,20.97,13.92,21,14,21s0.16-0.03,0.22-0.09l1.85-1.85c0.14-0.14,0.22-0.33,0.22-0.53c0-0.2-0.08-0.39-0.22-0.53c-0.14-0.14-0.33-0.22-0.53-0.22c-0.18,0-0.34,0.07-0.48,0.19V15H18v0c-0.14,0.14-0.22,0.33-0.22,0.53c0,0.2,0.08,0.39,0.22,0.53c0.14,0.14,0.33,0.22,0.53,0.22c0.2,0,0.39-0.08,0.53-0.22l1.85-1.85C20.97,14.16,21,14.08,21,14C21,13.92,20.97,13.84,20.91,13.78z"}));case"position-move":return o.default.createElement("g",null,o.default.createElement("path",{d:"M21,14a.31.31,0,0,1-.09.22l-1.85,1.85a.75.75,0,0,1-1.28-.53A.77.77,0,0,1,18,15h0a1.42,1.42,0,0,0,0-2h0a.77.77,0,0,1-.22-.54.75.75,0,0,1,1.28-.53l1.85,1.85A.31.31,0,0,1,21,14Zm-4.93,4a.75.75,0,0,0-.53-.22.77.77,0,0,0-.48.18L15,18a1.41,1.41,0,0,1-2,0l0,0a.75.75,0,0,0-1.06,0,.73.73,0,0,0,0,1.06l1.84,1.85A.31.31,0,0,0,14,21a.28.28,0,0,0,.22-.09l1.85-1.85a.75.75,0,0,0,0-1.06ZM10,15a1.42,1.42,0,0,1,0-2h0a.78.78,0,0,0,.23-.54.75.75,0,0,0-.22-.53.77.77,0,0,0-.54-.22.75.75,0,0,0-.53.22L7.1,13.78a.29.29,0,0,0,0,.44l1.84,1.85a.75.75,0,0,0,.53.22.77.77,0,0,0,.54-.22.75.75,0,0,0,.22-.53A.78.78,0,0,0,10,15Zm6.07-6.06L14.22,7.09A.28.28,0,0,0,14,7a.31.31,0,0,0-.22.09L11.94,8.94a.73.73,0,0,0,0,1.06A.75.75,0,0,0,13,10l0,0a1.41,1.41,0,0,1,2,0l.05.06a.77.77,0,0,0,.48.18.75.75,0,0,0,.53-1.28Zm0,5.06a2,2,0,1,0-2,2A2,2,0,0,0,16.06,14Z"}));case"position-horizontal":return o.default.createElement("g",null,o.default.createElement("path",{d:"M21,14a.31.31,0,0,1-.09.22l-1.85,1.85a.75.75,0,0,1-1.28-.53A.77.77,0,0,1,18,15h0a1.42,1.42,0,0,0,0-2h0a.77.77,0,0,1-.22-.54.75.75,0,0,1,1.28-.53l1.85,1.85A.31.31,0,0,1,21,14ZM10,15a1.42,1.42,0,0,1,0-2h0a.78.78,0,0,0,.23-.54.75.75,0,0,0-.22-.53.77.77,0,0,0-.54-.22.75.75,0,0,0-.53.22L7.1,13.78a.29.29,0,0,0,0,.44l1.84,1.85a.75.75,0,0,0,.53.22.77.77,0,0,0,.54-.22.75.75,0,0,0,.22-.53A.78.78,0,0,0,10,15Zm6.06-1a2,2,0,1,0-2,2A2,2,0,0,0,16.06,14Z"}),o.default.createElement("path",{style:{opacity:.2},d:"M16.29,18.53a.75.75,0,0,1-.22.53l-1.85,1.85A.28.28,0,0,1,14,21a.31.31,0,0,1-.22-.09l-1.84-1.85a.73.73,0,0,1,0-1.06A.75.75,0,0,1,13,18l0,0a1.41,1.41,0,0,0,2,0l.05-.06a.77.77,0,0,1,.48-.18.75.75,0,0,1,.75.75Zm-.22-9.59L14.22,7.09A.28.28,0,0,0,14,7a.31.31,0,0,0-.22.09L11.94,8.94a.73.73,0,0,0,0,1.06A.75.75,0,0,0,13,10l0,0a1.41,1.41,0,0,1,2,0l.05.06a.77.77,0,0,0,.48.18.75.75,0,0,0,.53-1.28Z"}));case"position-vertical":return o.default.createElement("g",null,o.default.createElement("path",{style:{opacity:.2},d:"M21,14a.31.31,0,0,1-.09.22l-1.85,1.85a.75.75,0,0,1-1.28-.53A.77.77,0,0,1,18,15h0a1.42,1.42,0,0,0,0-2h0a.77.77,0,0,1-.22-.54.75.75,0,0,1,1.28-.53l1.85,1.85A.31.31,0,0,1,21,14ZM10,15a1.42,1.42,0,0,1,0-2h0a.78.78,0,0,0,.23-.54.75.75,0,0,0-.22-.53.77.77,0,0,0-.54-.22.75.75,0,0,0-.53.22L7.1,13.78a.29.29,0,0,0,0,.44l1.84,1.85a.75.75,0,0,0,.53.22.77.77,0,0,0,.54-.22.75.75,0,0,0,.22-.53A.78.78,0,0,0,10,15Z"}),o.default.createElement("path",{d:"M14.06,16a2,2,0,1,1,2-2A2,2,0,0,1,14.06,16Zm2,2a.75.75,0,0,0-.53-.22.77.77,0,0,0-.48.18L15,18a1.41,1.41,0,0,1-2,0l0,0a.75.75,0,0,0-1.06,0,.73.73,0,0,0,0,1.06l1.84,1.85A.31.31,0,0,0,14,21a.28.28,0,0,0,.22-.09l1.85-1.85a.75.75,0,0,0,0-1.06Zm0-9.06L14.22,7.09A.28.28,0,0,0,14,7a.31.31,0,0,0-.22.09L11.94,8.94a.73.73,0,0,0,0,1.06A.75.75,0,0,0,13,10l0,0a1.41,1.41,0,0,1,2,0l.05.06a.77.77,0,0,0,.48.18.75.75,0,0,0,.53-1.28Z"}));case"numbered-list":return o.default.createElement("g",null,o.default.createElement("path",{d:"M9.08 20H7.5a.5.5 0 1 1 0-1h.78l-.14-.146a.492.492 0 0 1 0-.707L8.28 18H7.5a.5.5 0 1 1 0-1h1.58a.653.653 0 0 1 .61.412.672.672 0 0 1-.14.726l-.36.362.36.362a.672.672 0 0 1 .14.726.653.653 0 0 1-.61.412zm8.91-10h-5a1 1 0 1 1 0-2h5a1 1 0 0 1 0 2zm3 5h-8a1 1 0 1 1 0-2h8a1 1 0 0 1 0 2zm-3 5h-5a1 1 0 1 1 0-2h5a1 1 0 0 1 0 2zm-8.51-5H7.5a.482.482 0 0 1-.46-.309.5.5 0 0 1 .1-.544L8.28 13H7.5a.5.5 0 1 1 0-1h1.59a.661.661 0 0 1 .47 1.126L8.69 14h.79a.5.5 0 0 1 0 1zm-.99-4a.5.5 0 0 1-.5-.5V9a.5.5 0 1 1 0-1h.5a.5.5 0 0 1 .49.5v2a.5.5 0 0 1-.49.5z",fillRule:"evenodd"}));case"paint":return o.default.createElement("g",null,o.default.createElement("path",{d:"M14.489 8.364a.9.9 0 0 0-.641-.26c-.281.003-.55.117-.746.318l-1.611 1.615-1.8-1.8a1 1 0 0 0-1.408 1.41l1.8 1.8-2.767 2.776a.988.988 0 0 0-.057 1.39l4.56 4.573a.9.9 0 0 0 .64.26 1.06 1.06 0 0 0 .747-.317l6.052-6.068a.624.624 0 0 0 .036-.875l-4.805-4.822zm1.07 6.583a4.34 4.34 0 0 1-6.15 0l2.082-2.087 1.017 1.019a1 1 0 1 0 1.408-1.411l-1.017-1.02.925-.928 3.075 3.084-1.34 1.343zm2.39 4.388a1.5 1.5 0 1 0 2.986 0c0-1.278-1.493-4.4-1.493-4.4s-1.493 3.067-1.493 4.4z",fillRule:"evenodd"}));case"phone":return o.default.createElement("g",null,o.default.createElement("path",{d:"M17 7h-6c-0.5 0-1 0.5-1 1v12c0 0.5 0.5 1 1 1h6c0.5 0 1-0.5 1-1V8C18 7.5 17.5 7 17 7zM15 20h-2v-1h2V20zM16 18h-4V9h4V18z",fillRule:"evenodd"}));case"preview-link":return o.default.createElement("g",null,o.default.createElement("path",{d:"M17.586 9l-4.536 4.535a1 1 0 1 0 1.414 1.415L19 10.415V12a1 1 0 0 0 2 0V8a.997.997 0 0 0-1-1h-4a1 1 0 0 0 0 2h1.586zm3.121 11.707A.997.997 0 0 1 20 21H8a.997.997 0 0 1-1-1V8a.997.997 0 0 1 1-1h4a1 1 0 0 1 0 2H9v10h10v-3a1 1 0 0 1 2 0v4a.997.997 0 0 1-.293.707z"}));case"redo":return o.default.createElement("g",null,o.default.createElement("path",{d:"M20.986 7l-1.78 1.78c-1.255-.967-2.835-1.501-4.575-1.527-3.845-.057-7.195 2.624-7.59 6.45C6.577 18.2 10.092 22 14.493 22c1.94 0 3.701-.736 5.031-1.945a.674.674 0 0 0 .032-.979l-1.184-1.175a.655.655 0 0 0-.901-.026c-.791.72-1.83 1.182-2.978 1.182-2.671 0-4.798-2.258-4.46-5.008.273-2.22 2.299-3.831 4.534-3.8a4.51 4.51 0 0 1 2.44.734l-2.014 2.014c0 .552.447.999.999.999h4.994a.998.998 0 0 0 1-1V8a1 1 0 0 0-1-1z",fillRule:"evenodd"}));case"reset":return o.default.createElement("g",null,o.default.createElement("path",{d:"M9.596 8.95a6.811 6.811 0 0 1 9.384-.15 6.661 6.661 0 0 1 .08 9.477 6.421 6.421 0 0 1-4.62 1.931c-.21 0-.42 0-.63-.017A6.084 6.084 0 0 1 9 17.151l5.45.005a3.274 3.274 0 0 0 3.26-3.3 3.418 3.418 0 0 0-3.41-3.314c-.83 0-1.626.321-2.224.89l1.764 1.755a.556.556 0 0 1-.4.948H7.56A.557.557 0 0 1 7 13.58V7.695a.557.557 0 0 1 .95-.393L9.596 8.95z",fillRule:"evenodd"}));case"resize":return o.default.createElement("g",null,o.default.createElement("path",{d:"M11.715 12.858l-2.292-2.291a1.885 1.885 0 0 1-1.381 1.524A1.041 1.041 0 0 1 7 11.049V7.431C7 7.193 7.193 7 7.431 7h3.618c.575 0 1.041.467 1.042 1.042a1.884 1.884 0 0 1-1.523 1.38l2.292 2.291 5.728 5.728a1.886 1.886 0 0 1 1.37-1.532c.575 0 1.041.467 1.042 1.042v3.618a.431.431 0 0 1-.431.431h-3.618a1.043 1.043 0 0 1-1.042-1.042 1.887 1.887 0 0 1 1.533-1.371l-5.728-5.728z",fillRule:"evenodd"}));case"save":return o.default.createElement("g",null,o.default.createElement("path",{d:"M18.95 9.051a1 1 0 1 0-1.414 1.414 5 5 0 1 1-7.07 0A1 1 0 0 0 9.05 9.051a7 7 0 1 0 9.9.001v-.001zm-5.378 8.235a.5.5 0 0 0 .857 0l2.117-3.528a.5.5 0 0 0-.429-.758H15V8a1 1 0 0 0-2 0v5h-1.117a.5.5 0 0 0-.428.758l2.117 3.528z",fillRule:"evenodd"}));case"setting":return o.default.createElement("g",null,o.default.createElement("path",{d:"M20.426 13.088l-1.383-.362a.874.874 0 0 1-.589-.514l-.043-.107a.871.871 0 0 1 .053-.779l.721-1.234a.766.766 0 0 0-.116-.917 6.682 6.682 0 0 0-.252-.253.768.768 0 0 0-.917-.116l-1.234.722a.877.877 0 0 1-.779.053l-.107-.044a.87.87 0 0 1-.513-.587l-.362-1.383a.767.767 0 0 0-.73-.567h-.358a.768.768 0 0 0-.73.567l-.362 1.383a.878.878 0 0 1-.513.589l-.107.044a.875.875 0 0 1-.778-.054l-1.234-.722a.769.769 0 0 0-.918.117c-.086.082-.17.166-.253.253a.766.766 0 0 0-.115.916l.721 1.234a.87.87 0 0 1 .053.779l-.043.106a.874.874 0 0 1-.589.514l-1.382.362a.766.766 0 0 0-.567.731v.357a.766.766 0 0 0 .567.731l1.383.362c.266.07.483.26.588.513l.043.107a.87.87 0 0 1-.053.779l-.721 1.233a.767.767 0 0 0 .115.917c.083.087.167.171.253.253a.77.77 0 0 0 .918.116l1.234-.721a.87.87 0 0 1 .779-.054l.107.044a.878.878 0 0 1 .513.589l.362 1.383a.77.77 0 0 0 .731.567h.356a.766.766 0 0 0 .73-.567l.362-1.383a.878.878 0 0 1 .515-.589l.107-.044a.875.875 0 0 1 .778.054l1.234.721c.297.17.672.123.917-.117.087-.082.171-.166.253-.253a.766.766 0 0 0 .116-.917l-.721-1.234a.874.874 0 0 1-.054-.779l.044-.107a.88.88 0 0 1 .589-.513l1.383-.362a.77.77 0 0 0 .567-.731v-.357a.772.772 0 0 0-.569-.724v-.005zm-6.43 3.9a2.986 2.986 0 1 1 2.985-2.986 3 3 0 0 1-2.985 2.987v-.001z",fillRule:"evenodd"}));case"sidebar":return o.default.createElement("g",null,o.default.createElement("path",{d:"M19 8L9 8C8.5 8 8 8.5 8 9L8 19C8 19.5 8.5 20 9 20L19 20C19.5 20 20 19.5 20 19L20 9C20 8.5 19.5 8 19 8L19 8ZM10 10L12 10 12 12 10 12 10 10 10 10ZM10 13L12 13 12 15 10 15 10 13 10 13ZM10 18L10 16 12 16 12 18 10 18 10 18ZM18 18L14 18 14 10 18 10 18 18 18 18Z",fillRule:"evenodd"}));case"tablet":return o.default.createElement("g",null,o.default.createElement("path",{d:"M19 7H9C8.5 7 8 7.5 8 8v12c0 0.5 0.5 1 1 1h10c0.5 0 1-0.5 1-1V8C20 7.5 19.5 7 19 7zM15 20h-2v-1h2V20zM18 18h-8V9h8V18z",fillRule:"evenodd"}));case"text-bold":return o.default.createElement("g",null,o.default.createElement("path",{d:"M17.337 13.535c.43-.591.662-1.304.663-2.035A3.51 3.51 0 0 0 14.5 8h-3c-.114 0-.221.023-.333.034A.933.933 0 0 0 11 8a.969.969 0 0 0-.53.174A.982.982 0 0 0 10 9v10c.005.338.182.65.47.827.156.108.34.168.53.173a.933.933 0 0 0 .167-.034c.112.011.219.034.333.034h4a3.51 3.51 0 0 0 3.5-3.5 3.494 3.494 0 0 0-1.667-2.965h.004zM16 11.5a1.5 1.5 0 0 1-1.5 1.5H12v-3h2.5a1.5 1.5 0 0 1 1.5 1.5zm1 5a1.5 1.5 0 0 1-1.5 1.5H12v-3h3.5a1.5 1.5 0 0 1 1.5 1.5z",fillRule:"evenodd"}));case"text-center":return o.default.createElement("g",null,o.default.createElement("path",{d:"M18 10h-8a1 1 0 1 1 0-2h8a1 1 0 0 1 0 2zm2 5H8a1 1 0 0 1 0-2h12a1 1 0 0 1 0 2zm-2 5h-8a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2z",fillRule:"evenodd"}));case"text-italic":return o.default.createElement("g",null,o.default.createElement("path",{d:"M17 8h-5c-.6 0-1 .4-1 1s.4 1 1 1h1.3l-2.1 8H10c-.6 0-1 .4-1 1s.4 1 1 1h5c.6 0 1-.4 1-1s-.4-1-1-1h-1.7l2.1-8H17c.6 0 1-.4 1-1s-.4-1-1-1z",fillRule:"evenodd"}));case"text-justify":return o.default.createElement("g",null,o.default.createElement("path",{d:"M20 20H8a1 1 0 0 1 0-2h12a1 1 0 0 1 0 2zm0-10H8a1 1 0 1 1 0-2h12a1 1 0 0 1 0 2zM8 15a1 1 0 0 1 0-2h12a1 1 0 0 1 0 2H8z",fillRule:"evenodd"}));case"text-large":return o.default.createElement("g",null,o.default.createElement("path",{d:"M15.38 8.96a1.006 1.006 0 0 0-.65-.9.942.942 0 0 0-.28-.046c-.03 0-.06-.013-.09-.014-.03 0-.06.011-.09.014a.942.942 0 0 0-.28.045.991.991 0 0 0-.65.9l-4.28 9.622c-.187.52.075 1.093.59 1.291a.992.992 0 0 0 1.28-.592l1.19-2.272h4.47l1.2 2.272a.994.994 0 1 0 1.86-.7l-4.27-9.62zm-2.52 6.042l1.5-3.039 1.5 3.04h-3z",fillRule:"evenodd"}));case"text-left":return o.default.createElement("g",null,o.default.createElement("path",{d:"M16 20H8a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2zm0-10H8a1 1 0 1 1 0-2h8a1 1 0 0 1 0 2zm4 5H8a1 1 0 0 1 0-2h12a1 1 0 0 1 0 2z",fillRule:"evenodd"}));case"text-link":return o.default.createElement("g",null,o.default.createElement("path",{d:"M20.726 7.274a.935.935 0 0 0-1.322 0l-1.849 1.85-.67-.67a3.06 3.06 0 0 0-4.226 0l-4.225 4.225a2.998 2.998 0 0 0 0 4.227l.669.67-1.85 1.85a.935.935 0 0 0 1.322 1.321l1.85-1.85.668.67a2.99 2.99 0 0 0 4.228 0l4.224-4.225a2.998 2.998 0 0 0 0-4.227l-.67-.67 1.85-1.85a.935.935 0 0 0 .001-1.321zm-2.498 5.162a1.123 1.123 0 0 1 0 1.584l-4.223 4.225a1.146 1.146 0 0 1-1.583 0l-.669-.67 1.581-1.582a.937.937 0 1 0-1.328-1.321l-1.582 1.581-.669-.669a1.122 1.122 0 0 1 0-1.584l4.225-4.224a1.12 1.12 0 0 1 1.583 0l.67.67-1.582 1.58a.935.935 0 0 0 1.322 1.322l1.581-1.582.674.67z",fillRule:"evenodd"}));case"text-quote":return o.default.createElement("g",null,o.default.createElement("path",{d:"M9.437 9.049a2 2 0 1 0 1.186 3.116c.264.574.394 1.2.381 1.833 0 2.116-1.118 3.998-1.999 3.998a1 1 0 1 0 0 2c2.392 0 3.999-3.1 3.999-5.998 0-2.709-1.48-4.698-3.567-4.949zm7.997 0a2 2 0 1 0 1.186 3.116c.263.574.393 1.2.38 1.833 0 2.116-1.117 3.998-1.998 3.998a1 1 0 1 0 0 2c2.392 0 3.998-3.1 3.998-5.998 0-2.709-1.48-4.698-3.566-4.949z",fillRule:"evenodd"}));case"text-right":return o.default.createElement("g",null,o.default.createElement("path",{d:"M20 15H8a1 1 0 0 1 0-2h12a1 1 0 0 1 0 2zm0-5h-8a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2zm0 10h-8a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2z",fillRule:"evenodd"}));case"text-small":return o.default.createElement("g",null,o.default.createElement("path",{d:"M14.168 10.639a.672.672 0 0 0-.424-.6.6.6 0 0 0-.186-.03c-.02 0-.038-.009-.057-.009a.521.521 0 0 0-.057.009.6.6 0 0 0-.186.03.672.672 0 0 0-.424.6l-2.792 6.448a.681.681 0 0 0 .384.865.645.645 0 0 0 .836-.4L12 15.997h3l.738 1.558a.646.646 0 0 0 .837.4.68.68 0 0 0 .383-.865l-2.791-6.451zm-1.645 4.315l.978-2.3.978 2.3h-1.956z",fillRule:"evenodd"}));case"text-underline":return o.default.createElement("g",null,o.default.createElement("path",{d:"M8 21h12c.6 0 1 .4 1 1s-.4 1-1 1H8c-.6 0-1-.4-1-1s.4-1 1-1zM10 8c.6 0 1 .4 1 1v6c0 1.7 1.3 3 3 3s3-1.3 3-3V9c0-.6.4-1 1-1s1 .4 1 1v6c0 2.8-2.2 5-5 5s-5-2.2-5-5V9c0-.6.4-1 1-1z",fillRule:"evenodd"}));case"text-underline-double":return o.default.createElement("g",null,o.default.createElement("path",{d:"M8.5 23h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1 0-1zM8.5 21h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1 0-1zM10 8a1 1 0 0 1 1 1v6a3 3 0 1 0 6 0V9a1 1 0 0 1 2 0v6a5 5 0 0 1-10 0V9a1 1 0 0 1 1-1z",fillRule:"evenodd"}));case"text-strikethrough":return o.default.createElement("g",null,o.default.createElement("path",{d:"M14.8 13c-.1 0-.2-.1-.3-.1C11.6 11.7 11 10 12.1 9c.9-.9 3.4-.4 3.7.5.2.5.7.8 1.3.6.5-.2.8-.7.6-1.3-.8-2.4-5.1-3.3-7-1.3-1.6 1.6-1.4 3.8.3 5.5H7c-.6 0-1 .4-1 1s.4 1 1 1h7.3c2.3 1.1 2.7 2.5 1.7 3.7-1.1 1.3-3.4 1.2-4.7-.8-.3-.5-.9-.6-1.4-.3-.5.3-.6.9-.3 1.4 2 3.2 5.9 3.3 7.9 1 1.3-1.5 1.3-3.4 0-5H21c.6 0 1-.4 1-1s-.4-1-1-1h-6.2z",fillRule:"evenodd"}));case"text-smallcaps":return o.default.createElement("g",null,o.default.createElement("path",{d:"M11 10h2c.6 0 1-.4 1-1s-.4-1-1-1H7c-.6 0-1 .4-1 1s.4 1 1 1h2v9c0 .6.4 1 1 1s1-.4 1-1v-9zm8 4v5c0 .6-.4 1-1 1s-1-.4-1-1v-5h-2c-.6 0-1-.4-1-1s.4-1 1-1h6c.6 0 1 .4 1 1s-.4 1-1 1h-2z",fillRule:"evenodd"}));case"text-uppercase":return o.default.createElement("g",null,o.default.createElement("path",{d:"M10 10h2c.6 0 1-.4 1-1s-.4-1-1-1H6c-.6 0-1 .4-1 1s.4 1 1 1h2v9c0 .6.4 1 1 1s1-.4 1-1v-9zm10 0v9c0 .6-.4 1-1 1s-1-.4-1-1v-9h-2c-.6 0-1-.4-1-1s.4-1 1-1h6c.6 0 1 .4 1 1s-.4 1-1 1h-2z",fillRule:"evenodd"}));case"text-h1":return o.default.createElement("g",null,o.default.createElement("path",{d:"M21 19.934h-1.32v-3.6l.01-.591.02-.645c-.146.15-.3.294-.46.428l-.71.574-.64-.79 2.01-1.594H21v6.218zM13 9v4H8V9a1 1 0 0 0-2 0v10a1 1 0 0 0 2 0v-4h5v4a1 1 0 0 0 2 0V9a1 1 0 0 0-2 0z",fillRule:"evenodd"}));case"text-h2":return o.default.createElement("g",null,o.default.createElement("path",{d:"M21.99 19.934h-4.36v-.914l1.57-1.577c.46-.474.76-.8.91-.985.123-.154.224-.325.3-.508.063-.154.097-.318.1-.484a.702.702 0 0 0-.21-.557.797.797 0 0 0-.55-.183c-.246 0-.49.057-.71.166a3.574 3.574 0 0 0-.71.471l-.72-.845a4.47 4.47 0 0 1 .77-.553c.209-.11.43-.194.66-.249.262-.06.53-.09.8-.087.355-.008.707.065 1.03.213.285.13.527.339.7.6.165.262.252.566.25.876.002.275-.049.549-.15.805-.122.277-.28.536-.47.772-.35.398-.725.774-1.12 1.127l-.81.752v.059h2.72v1.106-.005zM13 9v4H8V9a1 1 0 0 0-2 0v10a1 1 0 0 0 2 0v-4h5v4a1 1 0 0 0 2 0V9a1 1 0 0 0-2 0z",fillRule:"evenodd"}));case"text-h3":return o.default.createElement("g",null,o.default.createElement("path",{d:"M21.65 15.108c.01.364-.12.718-.36.991-.26.29-.608.487-.99.561v.026a1.97 1.97 0 0 1 1.14.456c.265.256.407.613.39.981.03.546-.214 1.07-.65 1.4a3.037 3.037 0 0 1-1.87.5 4.587 4.587 0 0 1-1.8-.336v-1.118c.256.127.524.228.8.3.28.075.57.114.86.115.338.025.676-.052.97-.221a.802.802 0 0 0 .31-.709.642.642 0 0 0-.36-.622 2.674 2.674 0 0 0-1.14-.183h-.48v-1.007h.49c.363.023.727-.042 1.06-.189a.686.686 0 0 0 .33-.648.715.715 0 0 0-.89-.706c-.21 0-.42.035-.62.1-.25.087-.49.206-.71.353l-.61-.906a3.42 3.42 0 0 1 2.04-.612 2.65 2.65 0 0 1 1.53.392c.36.24.572.649.56 1.082zM13 9v4H8V9a1 1 0 0 0-2 0v10a1 1 0 0 0 2 0v-4h5v4a1 1 0 0 0 2 0V9a1 1 0 0 0-2 0z",fillRule:"evenodd"}));case"text-h4":return o.default.createElement("g",null,o.default.createElement("path",{d:"M21.25 17.623v-3.907h-1.22l-2.74 4.013v.914h2.67v1.288h1.29v-1.288H22v-1.02h-.75zm-1.27-1.819c-.01.333-.02.589-.02.764v1.055h-1.5l1.14-1.722c.144-.217.271-.445.38-.681h.03c0 .055-.02.251-.03.584zM13 9v4H8V9a1 1 0 0 0-2 0v10a1 1 0 0 0 2 0v-4h5v4a1 1 0 0 0 2 0V9a1 1 0 0 0-2 0z",fillRule:"evenodd"}));case"text-h5":return o.default.createElement("g",null,o.default.createElement("path",{d:"M20.259 15.73c.621 0 1.115.174 1.483.523.368.349.552.826.552 1.433 0 .718-.221 1.27-.664 1.657-.442.387-1.075.58-1.898.58-.715 0-1.292-.116-1.731-.347v-1.173c.231.123.501.223.809.301.308.078.599.117.875.117.829 0 1.244-.34 1.244-1.02 0-.647-.429-.971-1.288-.971-.155 0-.327.015-.514.046-.188.031-.34.064-.457.099l-.541-.29.242-3.274h3.485v1.151H19.56l-.119 1.261.154-.031c.179-.041.4-.062.664-.062z",fillRule:"evenodd"}),o.default.createElement("path",{d:"M13 9v4H8V9a1 1 0 0 0-2 0v10a1 1 0 0 0 2 0v-4h5v4a1 1 0 0 0 2 0V9a1 1 0 0 0-2 0z",fillRule:"evenodd"}));case"text-h6":return o.default.createElement("g",null,o.default.createElement("path",{d:"M22.047 16.275c-.325-.36-.775-.541-1.349-.541-.639 0-1.103.249-1.393.747h-.057c.026-.507.113-.898.259-1.173s.367-.483.661-.624.675-.211 1.14-.211c.255 0 .513.029.773.088v-1.085a4.374 4.374 0 0 0-.861-.066c-1.072 0-1.877.311-2.415.932S18 15.909 18 17.18c0 .595.096 1.103.288 1.525s.464.743.817.962.767.33 1.241.33c.686 0 1.222-.2 1.608-.6s.58-.943.58-1.628c.001-.635-.161-1.133-.487-1.494zm-1.059 2.345c-.155.195-.378.292-.668.292-.281 0-.513-.12-.697-.36s-.275-.535-.275-.883c0-.237.097-.445.292-.624s.43-.268.705-.268c.293 0 .512.09.657.27s.218.427.218.74c.001.36-.076.638-.232.833z",fillRule:"evenodd"}),o.default.createElement("path",{d:"M13 9v4H8V9a1 1 0 0 0-2 0v10a1 1 0 0 0 2 0v-4h5v4a1 1 0 0 0 2 0V9a1 1 0 0 0-2 0z",fillRule:"evenodd"}));case"text":return o.default.createElement("g",null,o.default.createElement("path",{d:"M9.4 8h-.3c-.4.2-.5.5-.6 1l-4.4 9.7c-.2.5.1 1.1.6 1.3.5.2 1.1-.1 1.3-.6L7 17h5l1 2.3c.2.5.8.8 1.3.6.5-.2.8-.8.6-1.3L10.5 9c-.1-.5-.2-.8-.6-.9-.1-.1-.2-.1-.3-.1h-.2zM8 15l1.5-3 1.5 3H8zm15.5 0v-1c0-1.7-1.3-3-3-3h-3c-.5 0-1.2.4-1.2 1s.6 1 1.2 1h3c.6 0 1 .4 1 1h-3c-1.6 0-3 1.3-3 3 0 1.6 1.3 3 3 3h2c.8 0 1.4-.3 2-.9.1.5.5.9 1 .9s1-.5 1-1-.4-1-1-1v-3zm-2 2c0 .6-.4 1-1 1h-2c-.6 0-1-.5-1-1s.5-1 1-1h3v1z",fillRule:"evenodd"}));case"undent":return o.default.createElement("g",null,o.default.createElement("path",{d:"M10.24 16.022l-2.56-1.6a.5.5 0 0 1 0-.848l2.56-1.6a.5.5 0 0 1 .76.424v3.2a.5.5 0 0 1-.76.424zM20 10H8a1 1 0 1 1 0-2h12a1 1 0 0 1 0 2zm0 5h-6a1 1 0 0 1 0-2h6a1 1 0 0 1 0 2zm0 5H8a1 1 0 0 1 0-2h12a1 1 0 0 1 0 2z",fillRule:"evenodd"}));case"undo":case"rotate-90-degree":return o.default.createElement("g",null,o.default.createElement("path",{d:"M14.355 7.253c-1.74.026-3.321.559-4.576 1.528L7.999 7A1 1 0 0 0 7 8v4.998c0 .552.447.999.999.999h4.995a1 1 0 0 0 .999-.999l-2.014-2.016a4.51 4.51 0 0 1 2.44-.733c2.235-.032 4.261 1.58 4.534 3.799.338 2.751-1.789 5.009-4.46 5.009-1.149 0-2.186-.462-2.978-1.182a.654.654 0 0 0-.902.026l-1.184 1.175a.674.674 0 0 0 .032.979A7.443 7.443 0 0 0 14.493 22c4.401 0 7.915-3.8 7.452-8.297-.395-3.826-3.745-6.507-7.59-6.45z",fillRule:"evenodd"}));case"zoom-in":return o.default.createElement("g",null,o.default.createElement("path",{d:"M15.508 7a5.511 5.511 0 0 0-5.505 5.5 5.426 5.426 0 0 0 .847 2.92l-3.737 2.67c-.389.39.32 1.74.708 2.13.39.39 1.764 1.06 2.153.67l2.646-3.71A5.5 5.5 0 1 0 15.508 7zm0 9.01a3.505 3.505 0 1 1 3.5-3.51 3.514 3.514 0 0 1-3.5 3.51zm.5-5.01h-1v1h-1v1h1v1h1v-1h1v-1h-1v-1z",fillRule:"evenodd"}));case"zoom-out":return o.default.createElement("g",null,o.default.createElement("path",{d:"M15.508 7a5.5 5.5 0 0 0-4.658 8.43L7.113 18.1c-.389.39.32 1.73.708 2.12.39.39 1.764 1.07 2.153.68l2.646-3.71A5.5 5.5 0 1 0 15.508 7zm0 9.01a3.505 3.505 0 1 1-.01-7.01 3.505 3.505 0 0 1 .01 7.01zm-1.5-3h3v-1h-3v1z",fillRule:"evenodd"}));case"lock":return o.default.createElement("g",null,o.default.createElement("path",{d:"M20 12C19.9 11.7 19.3 11 19 11L18 11C18 8.1 16.2 6 14 6 11.8 6 10 8.1 10 11L9 11C8.6 11 8.1 11.6 8 12L8 13 8 19 8 20C8.1 20.3 8.7 20.9 9 21L19 21C19.4 21 19.9 20.4 20 20L20 19 20 14 20 12 20 12ZM14 8C15.1 8 16 9.4 16 11.1L12 11.1C12 9.4 12.9 8 14 8L14 8ZM18 19L10 19 10 13 18 13 18 19 18 19Z",fillRule:"evenodd"}),o.default.createElement("path",{d:"M14 18C14.6 18 15 17.6 15 17L15 15C15 14.4 14.6 14 14 14 13.4 14 13 14.4 13 15L13 15 13 17C13 17.6 13.4 18 14 18L14 18Z",fillRule:"evenodd"}));case"previous":return o.default.createElement("g",null,o.default.createElement("path",{d:"M15.2 14L18.7 10C19.1 9.6 19.1 9 18.7 8.6 18.3 8.2 17.7 8.2 17.3 8.6L13.3 13.1C13.1 13.3 13 13.7 13 14 12.9 14.3 13 14.6 13.3 14.9L17.3 19.4C17.7 19.8 18.3 19.8 18.7 19.4 19.1 19 19.1 18.4 18.7 18L15.2 14 15.2 14Z",fillRule:"evenodd"}));case"next":return o.default.createElement("g",null,o.default.createElement("path",{d:"M15.8 14L12.3 18C11.9 18.4 11.9 19 12.3 19.4 12.7 19.8 13.3 19.8 13.7 19.4L17.7 14.9C17.9 14.7 18 14.3 18 14 18.1 13.7 18 13.4 17.7 13.1L13.7 8.6C13.3 8.2 12.7 8.2 12.3 8.6 11.9 9 11.9 9.6 12.3 10L15.8 14 15.8 14Z",fillRule:"evenodd"}));case"sync":return o.default.createElement("g",null,o.default.createElement("path",{d:"M19.1 11.7L19.1 11.7c-0.3 0.3-0.4 0.6-0.3 0.9 0.1 0.4 0.2 0.9 0.2 1.3 0 2.8-2.2 5-5 5v2c3.9 0 7-3.1 7-7 0-0.6-0.1-1.3-0.2-1.8C20.6 11.4 19.6 11.2 19.1 11.7z",fillRule:"evenodd"}),o.default.createElement("path",{d:"M14 9V7c-3.9 0-7 3.1-7 7 0 0.6 0.1 1.2 0.2 1.8 0.2 0.7 1.1 1 1.7 0.4l0 0c0.2-0.2 0.4-0.6 0.3-0.9C9.1 14.9 9 14.5 9 14 9 11.2 11.2 9 14 9z",fillRule:"evenodd"}),o.default.createElement("path",{d:"M18.2 8.6c0.4-0.3 0.4-0.9 0-1.2l-3.4-2.8C14.4 4.3 14 4.4 14 5v6c0 0.6 0.4 0.7 0.8 0.4L18.2 8.6z",fillRule:"evenodd"}),o.default.createElement("path",{d:"M9.8 19.4c-0.4 0.3-0.4 0.9 0 1.2l3.4 2.8c0.4 0.3 0.8 0.2 0.8-0.4v-6c0-0.5-0.4-0.7-0.8-0.4L9.8 19.4z",fillRule:"evenodd"}));case"portability":return o.default.createElement("g",null,o.default.createElement("path",{d:"M9.6 20.8c0.2 0.3 0.7 0.3 0.9 0l2.1-3.5c0.2-0.3 0-0.8-0.4-0.8H11V8c0-0.6-0.4-1-1-1C9.4 7 9 7.4 9 8v8.5H7.9c-0.4 0-0.6 0.4-0.4 0.8L9.6 20.8z",fillRule:"evenodd"}),o.default.createElement("path",{d:"M18.4 7.2c-0.2-0.3-0.7-0.3-0.9 0l-2.1 3.5c-0.2 0.3 0 0.8 0.4 0.8H17V20c0 0.6 0.4 1 1 1 0.6 0 1-0.4 1-1v-8.5h1.1c0.4 0 0.6-0.4 0.4-0.8L18.4 7.2z",fillRule:"evenodd"}));case"background-color":return o.default.createElement("g",null,o.default.createElement("path",{d:"M19.4 14.6c0 0-1.5 3.1-1.5 4.4 0 0.9 0.7 1.6 1.5 1.6 0.8 0 1.5-0.7 1.5-1.6C20.9 17.6 19.4 14.6 19.4 14.6zM19.3 12.8l-4.8-4.8c-0.2-0.2-0.4-0.3-0.6-0.3 -0.3 0-0.5 0.1-0.7 0.3l-1.6 1.6L9.8 7.8c-0.4-0.4-1-0.4-1.4 0C8 8.1 8 8.8 8.4 9.1l1.8 1.8 -2.8 2.8c-0.4 0.4-0.4 1-0.1 1.4l4.6 4.6c0.2 0.2 0.4 0.3 0.6 0.3 0.3 0 0.5-0.1 0.7-0.3l6.1-6.1C19.5 13.4 19.5 13.1 19.3 12.8zM15.6 14.6c-1.7 1.7-4.5 1.7-6.2 0l2.1-2.1 1 1c0.4 0.4 1 0.4 1.4 0 0.4-0.4 0.4-1 0-1.4l-1-1 0.9-0.9 3.1 3.1L15.6 14.6z",fillRule:"evenodd"}));case"background-image":return o.default.createElement("g",null,o.default.createElement("path",{d:"M22.9 7.5c-0.1-0.3-0.5-0.6-0.8-0.6H5.9c-0.4 0-0.7 0.2-0.8 0.6C5.1 7.6 5 7.7 5 7.9v12.2c0 0.1 0 0.2 0.1 0.4 0.1 0.3 0.5 0.5 0.8 0.6h16.2c0.4 0 0.7-0.2 0.8-0.6 0-0.1 0.1-0.2 0.1-0.4V7.9C23 7.7 23 7.6 22.9 7.5zM21 18.9H7v-10h14V18.9z",fillRule:"evenodd"}),o.default.createElement("circle",{cx:"10.5",cy:"12.4",r:"1.5"}),o.default.createElement("polygon",{points:"15 16.9 13 13.9 11 16.9 "}),o.default.createElement("polygon",{points:"17 10.9 15 16.9 19 16.9 "}));case"background-video":return o.default.createElement("g",null,o.default.createElement("path",{d:"M22.9 7.5c-0.1-0.3-0.5-0.6-0.8-0.6H5.9c-0.4 0-0.7 0.2-0.8 0.6C5.1 7.6 5 7.7 5 7.9v12.2c0 0.1 0 0.2 0.1 0.4 0.1 0.3 0.5 0.5 0.8 0.6h16.2c0.4 0 0.7-0.2 0.8-0.6 0-0.1 0.1-0.2 0.1-0.4V7.9C23 7.7 23 7.6 22.9 7.5zM21 18.9H7v-10h14V18.9z",fillRule:"evenodd"}),o.default.createElement("polygon",{points:"13 10.9 13 16.9 17 13.9 "}));case"background-gradient":return o.default.createElement("g",null,o.default.createElement("path",{d:"M22.9 7.5c-0.1-0.3-0.5-0.6-0.8-0.6H5.9c-0.4 0-0.7 0.2-0.8 0.6C5.1 7.6 5 7.7 5 7.9v12.2c0 0.1 0 0.2 0.1 0.4 0.1 0.3 0.5 0.5 0.8 0.6h16.2c0.4 0 0.7-0.2 0.8-0.6 0-0.1 0.1-0.2 0.1-0.4V7.9C23 7.7 23 7.6 22.9 7.5zM21 18.9L7 8.9h14V18.9z",fillRule:"evenodd"}));case"background-pattern":return o.default.createElement("g",null,o.default.createElement("path",{d:"M22,7H6A1,1,0,0,0,5,8V20a1,1,0,0,0,1,1H22a1,1,0,0,0,1-1V8A1,1,0,0,0,22,7ZM19.71,19l-2-2L20,14.71l1,1v2.58l-.71.71Zm-6,0-2-2L14,14.71,16.29,17l-2,2Zm-6,0L7,18.29V15.71l1-1L10.29,17l-2,2ZM7,9.71,7.71,9h.58l2,2L8,13.29l-1-1ZM8.71,14,11,11.71,13.29,14,11,16.29Zm5.58-5,2,2L14,13.29,11.71,11l2-2Zm.42,5L17,11.71,19.29,14,17,16.29Zm5.58-5,.71.71v2.58l-1,1L17.71,11l2-2ZM21,14.29,20.71,14l.29-.29ZM18.29,9,17,10.29,15.71,9Zm-6,0L11,10.29,9.71,9ZM7,13.71l.29.29L7,14.29ZM9.71,19,11,17.71,12.29,19Zm6,0L17,17.71,18.29,19Z"}));case"background-mask":return o.default.createElement("g",null,o.default.createElement("path",{d:"M22,7H6A1,1,0,0,0,5,8V20a1,1,0,0,0,1,1H22a1,1,0,0,0,1-1V8A1,1,0,0,0,22,7ZM21,19H7V16.77A8.76,8.76,0,0,0,9,17a9,9,0,0,0,8.94-8H21Z"}));case"swap":return o.default.createElement("g",null,o.default.createElement("path",{d:"M19 12h-3V9c0-0.5-0.5-1-1-1H8C7.5 8 7 8.5 7 9v7c0 0.5 0.5 1 1 1h3v3c0 0.5 0.5 1 1 1h7c0.5 0 1-0.5 1-1v-7C20 12.5 19.5 12 19 12zM18 19h-5v-2h2c0.5 0 1-0.5 1-1v-2h2V19z",fillRule:"evenodd"}));case"none":return o.default.createElement("g",null,o.default.createElement("path",{d:"M14 24c5.5 0 10-4.5 10-10S19.5 4 14 4 4 8.5 4 14s4.5 10 10 10zm0-17.5c4.1 0 7.5 3.4 7.5 7.5 0 1.5-.5 2.9-1.2 4.1L9.9 7.7c1.2-.7 2.6-1.2 4.1-1.2zM7.7 9.9l10.4 10.4c-1.2.8-2.6 1.2-4.1 1.2-4.1 0-7.5-3.4-7.5-7.5 0-1.5.5-2.9 1.2-4.1z"}));case"animation-bounce":return o.default.createElement("g",{fillRule:"evenodd"},o.default.createElement("circle",{cx:"21.5",cy:"8.5",r:"3.5"}),o.default.createElement("circle",{cx:"16",cy:"12",r:"1.7"}),o.default.createElement("circle",{cx:"13",cy:"15",r:"1.2"}),o.default.createElement("circle",{cx:"11",cy:"18",r:"1"}),o.default.createElement("circle",{cx:"9",cy:"22",r:"1"}),o.default.createElement("circle",{cx:"7",cy:"19",r:"1"}),o.default.createElement("circle",{cx:"4",cy:"17",r:"1"}));case"animation-fade":return o.default.createElement("g",{fillRule:"evenodd"},o.default.createElement("circle",{cx:"8.5",cy:"19.5",r:"1.5"}),o.default.createElement("circle",{cx:"8.5",cy:"14.5",r:"1.5"}),o.default.createElement("circle",{cx:"5",cy:"12",r:"1"}),o.default.createElement("circle",{cx:"5",cy:"17",r:"1"}),o.default.createElement("circle",{cx:"8.5",cy:"9.5",r:"1.5"}),o.default.createElement("path",{d:"M15.7 4c-.4 0-.8.1-1.2.3-.6.3-.5.7-1.5.7-1.1 0-2 .9-2 2s.9 2 2 2c.3 0 .5.2.5.5s-.2.5-.5.5c-1.1 0-2 .9-2 2s.9 2 2 2c.3 0 .5.2.5.5s-.2.5-.5.5c-1.1 0-2 .9-2 2s.9 2 2 2c.3 0 .5.2.5.5s-.2.5-.5.5c-1.1 0-2 .9-2 2s.9 2 2 2c1 0 .9.4 1.4.7.4.2.8.3 1.2.3 4.3-.4 8.3-5.3 8.3-10.5s-4-10-8.2-10.5z"}));case"animation-flip":return o.default.createElement("g",{fillRule:"evenodd"},o.default.createElement("path",{d:"M22 2.4l-7 2.9V7h-2v-.8L7.6 8.7c-.4.2-.6.5-.6.9v8.7c0 .4.2.7.6.9l5.4 2.5V21h2v1.7l7 2.9c.5.2 1-.2 1-.7V3.1c0-.5-.5-.9-1-.7zM15 19h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V9h2v2zM13 2h2v2.5h-2zM13 23.5h2V26h-2z"}));case"animation-fold":return o.default.createElement("g",{fillRule:"evenodd"},o.default.createElement("path",{d:"M24 7h-4V3.4c0-.8-.6-1.4-1.3-1.4-.2 0-.5.1-.7.2l-6.5 3.9c-.9.6-1.5 1.6-1.5 2.6V23c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2zm-6 10.5c0 .2-.1.4-.3.5L12 21.5V8.7c0-.4.2-.7.5-.9L18 4.5v13zM6 7h2v2H6zM6 23h2v2H6zM2.6 7.1c-.1 0-.1.1-.2.1v.1l-.1.1-.1.1c-.1.1-.2.3-.2.5v1h2V7H3c-.1 0-.2 0-.4.1zM2 23v1c0 .4.3.8.7.9.1.1.2.1.3.1h1v-2H2zM2 11h2v2H2zM2 19h2v2H2zM2 15h2v2H2z"}));case"animation-none":return o.default.createElement("g",{fillRule:"evenodd"},o.default.createElement("path",{d:"M14 24c5.5 0 10-4.5 10-10S19.5 4 14 4 4 8.5 4 14s4.5 10 10 10zm0-17.5c4.1 0 7.5 3.4 7.5 7.5 0 1.5-.5 2.9-1.2 4.1L9.9 7.7c1.2-.7 2.6-1.2 4.1-1.2zM7.7 9.9l10.4 10.4c-1.2.8-2.6 1.2-4.1 1.2-4.1 0-7.5-3.4-7.5-7.5 0-1.5.5-2.9 1.2-4.1z"}));case"animation-roll":return o.default.createElement("g",{fillRule:"evenodd"},o.default.createElement("path",{d:"M18.8 5c-5.3-2.7-11.8.2-14 5.6-1.1 2.8-1 6 .2 8.8.4 1 3.9 6.5 5 3.6.5-1.2-1.3-2.2-1.9-3-.8-1.2-1.4-2.5-1.6-3.9-.4-2.7.5-5.5 2.4-7.4 4-4 11.6-2.5 12.6 3.4.4 2.7-.9 5.5-3.4 6.6-2.6 1.1-6 0-6.8-2.8-.7-2.4 1.2-5.7 4-4.8 1.1.3 2 1.5 1.5 2.7-.3.7-1.7 1.2-1.6.1 0-.3.2-.4.2-.8-.1-.4-.5-.6-.9-.6-1.1.1-1.6 1.6-1.3 2.5.3 1.2 1.5 1.9 2.7 1.9 2.9 0 4.2-3.4 3.1-5.7-1.2-2.6-4.6-3.4-7-2.2-2.6 1.3-3.8 4.4-3.1 7.2 1.6 5.9 9.3 6.8 13.1 2.5 3.8-4.2 1.9-11.1-3.2-13.7z"}));case"animation-zoom":return o.default.createElement("g",{fillRule:"evenodd"},o.default.createElement("path",{d:"M23.7 4.3c-.1-.1-.2-.2-.3-.2-.1-.1-.3-.1-.4-.1h-5c-.6 0-1 .4-1 1s.4 1 1 1h2.6l-3.1 3.1c-.2-.1-.3-.1-.5-.1h-6c-.2 0-.3 0-.5.1L7.4 6H10c.6 0 1-.4 1-1s-.4-1-1-1H5c-.1 0-.3 0-.4.1-.2.1-.4.3-.5.5-.1.1-.1.3-.1.4v5c0 .6.4 1 1 1s1-.4 1-1V7.4l3.1 3.1c-.1.2-.1.3-.1.5v6c0 .2 0 .3.1.5L6 20.6V18c0-.6-.4-1-1-1s-1 .4-1 1v5c0 .1 0 .3.1.4.1.2.3.4.5.5.1.1.3.1.4.1h5c.6 0 1-.4 1-1s-.4-1-1-1H7.4l3.1-3.1c.2 0 .3.1.5.1h6c.2 0 .3 0 .5-.1l3.1 3.1H18c-.6 0-1 .4-1 1s.4 1 1 1h5c.1 0 .3 0 .4-.1.2-.1.4-.3.5-.5.1-.1.1-.3.1-.4v-5c0-.6-.4-1-1-1s-1 .4-1 1v2.6l-3.1-3.1c0-.2.1-.3.1-.5v-6c0-.2 0-.3-.1-.5L22 7.4V10c0 .6.4 1 1 1s1-.4 1-1V5c0-.1 0-.3-.1-.4 0-.1-.1-.2-.2-.3z"}));case"animation-slide":return o.default.createElement("g",{fillRule:"evenodd"},o.default.createElement("path",{d:"M22 4h-5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h5c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM10 14c0 .6.4 1 1 1h.6L10 16.6c-.4.4-.4 1 0 1.4.4.4 1 .4 1.4 0l3.3-3.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7L11.4 10c-.4-.4-1-.4-1.4 0-.4.4-.4 1 0 1.4l1.6 1.6H11c-.6 0-1 .4-1 1z"}),o.default.createElement("circle",{cx:"7",cy:"14",r:"1.5"}),o.default.createElement("circle",{cx:"3",cy:"14",r:"1"}));case"align-left":return o.default.createElement("g",null,o.default.createElement("path",{d:"M5 13h2v2H5zM5 21h2v2H5zM5 17h2v2H5zM5 9h2v2H5zM5 5h2v2H5z"}),o.default.createElement("path",{d:"M7.339 13.25a1 1 0 0 0 0 1.501l4.642 4.09a.6.6 0 0 0 1.007-.442V16h9a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-9V9.602a.601.601 0 0 0-1.002-.446L7.339 13.25z"}));case"align-center":return o.default.createElement("g",null,o.default.createElement("path",{d:"M5 13h2v2H5zM5 9h2v2H5zM5 17h2v2H5zM5 5h2v2H5zM5 21h2v2H5zM21 9h2v2h-2zM21 5h2v2h-2zM21 13h2v2h-2zM15 8h-2a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1zM21 17h2v2h-2zM21 21h2v2h-2z"}));case"align-right":return o.default.createElement("g",null,o.default.createElement("path",{d:"M21 21h2v2h-2zM21 17h2v2h-2zM21 9h2v2h-2zM21 5h2v2h-2zM21 13h2v2h-2z"}),o.default.createElement("path",{d:"M20.649 13.249l-4.642-4.09A.6.6 0 0 0 15 9.602V12H6a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h9v2.398a.601.601 0 0 0 1.002.446l4.647-4.094a1 1 0 0 0 0-1.501z"}));case"click":return o.default.createElement("g",{fillRule:"evenodd"},o.default.createElement("path",{d:"M15 10V8c0-.6-.4-1-1-1s-1 .4-1 1v2c0 .3.2.6.4.8.2 0 .5.1.7.2.5-.1.9-.5.9-1zM20 15c.6 0 1-.4 1-1s-.4-1-1-1h-2c-.4 0-.7.2-.9.6l1.6 1.4H20zM10 13H8c-.6 0-1 .4-1 1s.4 1 1 1h2c.6 0 1-.4 1-1s-.4-1-1-1zM9.8 11.2c.2.2.5.3.7.3s.5-.1.7-.3c.4-.4.4-1 0-1.4l-1-1c-.4-.4-1-.4-1.4 0s-.4 1 0 1.4l1 1zM9.8 16.8l-1.1 1.1c-.4.4-.4 1 0 1.4.2.2.5.3.7.3s.5-.1.7-.3l.9-.9v-1.8c-.4-.2-.9-.1-1.2.2zM17.5 11.5c.3 0 .5-.1.7-.3l1-1c.4-.4.4-1 0-1.4s-1-.4-1.4 0l-1 1c-.4.4-.4 1 0 1.4.2.2.4.3.7.3zM13.4 12.9s-.1-.1-.2-.1-.3.1-.3.3v7.4c0 .3.3.6.6.6h.2l1.4-.6.8 2c.2.4.5.6.9.6.1 0 .3 0 .4-.1.5-.2.7-.8.5-1.3l-.8-2 1.9-.8c.3-.1.3-.5.1-.7l-5.5-5.3z",fillRule:"evenodd"}));case"hover":return o.default.createElement("g",{fillRule:"evenodd"},o.default.createElement("path",{d:"M17.1 18.1l-5.7-5.2c-.2-.1-.4 0-.4.2v7.4c0 .4.4.7.8.6l1.4-.6.8 2c.2.5.8.7 1.3.5.5-.2.7-.8.5-1.3l-.8-2 1.9-.8c.3-.3.4-.6.2-.8zM20 10c-.6 0-1-.4-1-1-.6 0-1-.4-1-1s.4-1 1-1c1.1 0 2 .9 2 2 0 .6-.4 1-1 1zM8 10c-.6 0-1-.4-1-1 0-1.1.9-2 2-2 .6 0 1 .4 1 1s-.4 1-1 1c0 .6-.4 1-1 1zM9 20c-1.1 0-2-.9-2-2 0-.6.4-1 1-1s1 .4 1 1c.6 0 1 .4 1 1s-.4 1-1 1zM19 20c-.6 0-1-.4-1-1s.4-1 1-1c0-.6.4-1 1-1s1 .4 1 1c0 1.1-.9 2-2 2zM14.8 9h-1.5c-.6 0-1-.4-1-1s.4-1 1-1h1.5c.6 0 1 .4 1 1s-.5 1-1 1zM20 15c-.6 0-1-.4-1-1v-1c0-.6.4-1 1-1s1 .4 1 1v1c0 .6-.4 1-1 1zM8 15c-.6 0-1-.4-1-1v-1c0-.6.4-1 1-1s1 .4 1 1v1c0 .6-.4 1-1 1z",fillRule:"evenodd"}));case"menu-expand":return o.default.createElement("g",{fillRule:"evenodd"},o.default.createElement("path",{d:"M14 20l-3-5h6zM14 8l3 5h-6z",fillRule:"evenodd"}));case"border-all":return o.default.createElement("g",null,o.default.createElement("path",{d:"M22 5H6a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1zm-2 15H8V8h12z"}));case"border-top":return o.default.createElement("g",null,o.default.createElement("path",{d:"M17 21h2v2h-2zM5 9h2v2H5zM21 17h2v2h-2zM21 9h2v2h-2zM21 13h2v2h-2zM21 23h1a1 1 0 0 0 1-1v-1h-2zM5 17h2v2H5zM5 13h2v2H5zM13 21h2v2h-2zM9 21h2v2H9zM5 21v1a1 1 0 0 0 1 1h1v-2zM22 5H6a1 1 0 0 0-1 1v2h18V6a1 1 0 0 0-1-1z"}));case"border-right":return o.default.createElement("g",null,o.default.createElement("path",{d:"M13 5h2v2h-2zM5 9h2v2H5zM9 5h2v2H9zM7 5H6a1 1 0 0 0-1 1v1h2zM5 13h2v2H5zM13 21h2v2h-2zM5 17h2v2H5zM9 21h2v2H9zM17 5h2v2h-2zM5 21v1a1 1 0 0 0 1 1h1v-2zM22 5h-2v18h2a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1zM17 21h2v2h-2z"}));case"border-bottom":return o.default.createElement("g",null,o.default.createElement("path",{d:"M9 5h2v2H9zM7 20H5v2a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1v-2H7zM17 5h2v2h-2zM5 13h2v2H5zM5 9h2v2H5zM13 5h2v2h-2zM5 17h2v2H5zM21 9h2v2h-2zM21 17h2v2h-2zM22 5h-1v2h2V6a1 1 0 0 0-1-1zM21 13h2v2h-2zM7 5H6a1 1 0 0 0-1 1v1h2z"}));case"border-left":return o.default.createElement("g",null,o.default.createElement("path",{d:"M22 5h-1v2h2V6a1 1 0 0 0-1-1zM9 21h2v2H9zM21 17h2v2h-2zM13 21h2v2h-2zM21 13h2v2h-2zM9 5h2v2H9zM17 21h2v2h-2zM17 5h2v2h-2zM21 9h2v2h-2zM8 7V5H6a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h2V7zM21 23h1a1 1 0 0 0 1-1v-1h-2zM13 5h2v2h-2z"}));case"border-link":return o.default.createElement("g",null,o.default.createElement("path",{d:"M14.71 17.71a3 3 0 0 1-2.12-.88l-.71-.71a1 1 0 0 1 1.41-1.41l.71.71a1 1 0 0 0 1.41 0l5-4.95a1 1 0 0 0 0-1.41l-1.46-1.42a1 1 0 0 0-1.41 0L16.1 9.07a1 1 0 0 1-1.41-1.41l1.43-1.43a3.07 3.07 0 0 1 4.24 0l1.41 1.41a3 3 0 0 1 0 4.24l-5 4.95a3 3 0 0 1-2.06.88z"}),o.default.createElement("path",{d:"M9.76 22.66a3 3 0 0 1-2.12-.88l-1.42-1.42a3 3 0 0 1 0-4.24l5-4.95a3.07 3.07 0 0 1 4.24 0l.71.71a1 1 0 0 1-1.41 1.41l-.76-.7a1 1 0 0 0-1.41 0l-5 4.95a1 1 0 0 0 0 1.41L9 20.36a1 1 0 0 0 1.41 0L11.82 19a1 1 0 0 1 1.41 1.41l-1.36 1.36a3 3 0 0 1-2.11.89z"}));case"window-undock":return o.default.createElement("g",null,o.default.createElement("path",{d:"M9 10H8a1 1 0 0 0-1 1v1a1 1 0 0 0 2 0 1 1 0 0 0 0-2zM13 19h-1a1 1 0 0 0 0 2h1a1 1 0 0 0 0-2zM9 19a1 1 0 0 0-2 0v1a1 1 0 0 0 1 1h1a1 1 0 0 0 0-2zM20 7h-8a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1zm-1 2v6h-6V9zM17 18a1 1 0 0 0-1 1 1 1 0 0 0 0 2h1a1 1 0 0 0 1-1v-1a1 1 0 0 0-1-1zM8 17a1 1 0 0 0 1-1v-1a1 1 0 0 0-2 0v1a1 1 0 0 0 1 1z"}));case"chevron-right":return o.default.createElement("g",null,o.default.createElement("path",{d:"M13.38 19.48l4.6-4.6a1.25 1.25 0 0 0 0-1.77l-4.6-4.6a1.25 1.25 0 1 0-1.77 1.77L15.32 14l-3.71 3.71a1.25 1.25 0 1 0 1.77 1.77z",fillRule:"evenodd"}));case"chevron-left":return o.default.createElement("g",null,o.default.createElement("path",{d:"M14.62 8.52L10 13.12a1.25 1.25 0 0 0 0 1.77l4.6 4.6a1.25 1.25 0 0 0 1.77-1.77L12.68 14l3.71-3.71a1.25 1.25 0 1 0-1.77-1.77z",fillRule:"evenodd"}));case"chevron-up":return o.default.createElement("g",null,o.default.createElement("path",{d:"M20 14.62L15.38 10a1.25 1.25 0 0 0-1.77 0L9 14.62a1.25 1.25 0 0 0 1.77 1.77l3.71-3.71 3.71 3.71A1.25 1.25 0 1 0 20 14.62z",fillRule:"evenodd"}));case"chevron-down":return o.default.createElement("g",null,o.default.createElement("path",{d:"M19.98 11.616a1.25 1.25 0 0 0-1.768 0L14.5 15.328l-3.712-3.712a1.25 1.25 0 0 0-1.768 1.768l4.596 4.596a1.25 1.25 0 0 0 1.768 0l4.596-4.596a1.25 1.25 0 0 0 0-1.768z",fillRule:"evenodd"}));case"flip-horizontally":return o.default.createElement("g",null,o.default.createElement("path",{d:"M22 8.229a.995.995 0 0 0-.665.253L15 14.122l6.348 5.458A1 1 0 0 0 23 18.822V9.229a1 1 0 0 0-1-1zM7 11.458l2.963 2.638L7 16.643v-5.185M6 8.229a.996.996 0 0 0-1 1v9.592a1 1 0 0 0 1.652.758L13 14.122l-6.335-5.64A1 1 0 0 0 6 8.229zM13 5h2v2h-2zM13 9h2v2h-2zM13 13h2v2h-2zM13 17h2v2h-2zM13 21h2v2h-2z",fillRule:"evenodd"}));case"flip-vertically":return o.default.createElement("g",null,o.default.createElement("path",{d:"M13.878 15L8.42 21.348A1 1 0 0 0 9.178 23h9.592a1 1 0 0 0 .747-1.665L13.878 15zM16.542 7l-2.638 2.963L11.357 7h5.185m2.229-2H9.178a1 1 0 0 0-.758 1.652L13.878 13l5.64-6.335A1 1 0 0 0 18.771 5zM5 13h2v2H5zM9 13h2v2H9zM13 13h2v2h-2zM17 13h2v2h-2zM21 13h2v2h-2z",fillRule:"evenodd"}));case"invert":return o.default.createElement("g",null,o.default.createElement("path",{d:"m19.469855,14c0,-3.063118 -2.406736,-5.469854 -5.469854,-5.469854l0,10.939709c3.063118,0 5.469854,-2.406736 5.469854,-5.469854zm2.187942,-9.845738l-15.315592,0c-1.203368,0 -2.187942,0.984574 -2.187942,2.187942l0,15.315592c0,1.203368 0.984574,2.187942 2.187942,2.187942l15.315592,0c1.203368,0 2.187942,-0.984574 2.187942,-2.187942l0,-15.315592c0,-1.203368 -0.984574,-2.187942 -2.187942,-2.187942zm0,17.503534l-7.657796,0l0,-2.187942c-3.063118,0 -5.469854,-2.406736 -5.469854,-5.469854c0,-3.063118 2.406736,-5.469854 5.469854,-5.469854l0,-2.187942l7.657796,0l0,15.315592z"}));case"aspect-ratio-landscape":return o.default.createElement("g",null,o.default.createElement("rect",{x:"2",y:"6",width:"24",height:"16",rx:"2"}));case"aspect-ratio-square":return o.default.createElement("g",null,o.default.createElement("rect",{x:"6",y:"6",width:"16",height:"16",rx:"2"}));case"aspect-ratio-portrait":return o.default.createElement("g",null,o.default.createElement("rect",{x:"6",y:"2",width:"16",height:"24",rx:"2"}));case"eye":return o.default.createElement("g",null,o.default.createElement("path",{d:"M14,16a2,2,0,1,1,2-2A2,2,0,0,1,14,16Zm0,2a6.24,6.24,0,0,0,5.91-4A6.35,6.35,0,0,0,8.09,14,6.24,6.24,0,0,0,14,18ZM14,8a8.22,8.22,0,0,1,8,6A8.33,8.33,0,0,1,6,14,8.22,8.22,0,0,1,14,8Z"}));case"closed-eye":return o.default.createElement("g",null,o.default.createElement("path",{d:"M9.89,16.69l2.18-2.17A1.81,1.81,0,0,1,12,14a2,2,0,0,1,2-2,1.81,1.81,0,0,1,.52.07l1.67-1.68A6.43,6.43,0,0,0,14,10a6.3,6.3,0,0,0-5.91,4.1A6.28,6.28,0,0,0,9.89,16.69ZM12.37,20l1.85-1.84a6.24,6.24,0,0,0,5.69-4.1A6.24,6.24,0,0,0,19.39,13l1.45-1.45A8.41,8.41,0,0,1,22,14.1a8.3,8.3,0,0,1-8,6.1A8.83,8.83,0,0,1,12.37,20Zm-2.1-.73-.11,0L8.34,21.07,6.93,19.66,8.48,18.1A8.36,8.36,0,0,1,6,14.1,8.24,8.24,0,0,1,14,8a8.11,8.11,0,0,1,3.72.87l1.94-1.94,1.41,1.41L19.42,10l.09.08L18.08,11.5,18,11.42l-2.06,2.06a.7.7,0,0,1,0,.14L13.62,16a.7.7,0,0,1-.14,0l-1.83,1.83.13,0Z"}));case"linked":return o.default.createElement("g",null,o.default.createElement("path",{d:"M8 14a1 1 0 0 1 0 2h-.5A2.5 2.5 0 0 1 5 13.5v-2A2.5 2.5 0 0 1 7.5 9h8a2.5 2.5 0 0 1 2.5 2.5v2a2.5 2.5 0 0 1-2.5 2.5H15a1 1 0 0 1 0-2h.5a.5.5 0 0 0 .5-.5v-2a.5.5 0 0 0-.5-.5h-8a.5.5 0 0 0-.5.5v2a.5.5 0 0 0 .5.5z",fillRule:"evenodd"}),o.default.createElement("path",{d:"M20 14a1 1 0 0 1 0-2h.5a2.5 2.5 0 0 1 2.5 2.5v2a2.5 2.5 0 0 1-2.5 2.5h-8a2.5 2.5 0 0 1-2.5-2.5v-2a2.5 2.5 0 0 1 2.5-2.5h.5a1 1 0 0 1 0 2h-.5a.5.5 0 0 0-.5.5v2a.5.5 0 0 0 .5.5h8a.5.5 0 0 0 .5-.5v-2a.5.5 0 0 0-.5-.5z",fillRule:"evenodd"}));case"unlinked":return o.default.createElement("g",null,o.default.createElement("path",{d:"M16.75 9.14a1 1 0 0 1 .37 1.39l-4.5 8a1 1 0 0 1-1.37.37 1 1 0 0 1-.37-1.39l4.5-8a1 1 0 0 1 1.37-.37zM19.71 10H20a3 3 0 0 1 3 3v2a3 3 0 0 1-3 3h-4.81l1.13-2H20a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-1.42zM12.81 10l-1.13 2H8a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h1.42l-1.13 2H8a3 3 0 0 1-3-3v-2a3 3 0 0 1 3-3z",fillRule:"evenodd"}));case"app-setting":return o.default.createElement("g",null,o.default.createElement("path",{d:"M2.001 4.5a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm0 6a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm0 6a2 2 0 1 1 0-4 2 2 0 0 1 0 4z",fillRule:"evenodd"}));case"expand-palette":return o.default.createElement("g",null,o.default.createElement("circle",{cx:"14",cy:"20",r:"2"}),o.default.createElement("circle",{cx:"14",cy:"13",r:"2"}),o.default.createElement("circle",{cx:"14",cy:"6",r:"2"}));case"paint-brush":return o.default.createElement("g",null,o.default.createElement("path",{d:"M12.635 16.21c-.907-.787.159-3.439 2.38-5.92 2.22-2.482 4.756-3.855 5.663-3.068s-.16 3.44-2.38 5.922c-2.223 2.482-4.757 3.854-5.663 3.066zm.254 2.022a2.133 2.133 0 0 1-.7 1.718c-1.458 1.446-3.712 1.274-4.9.242a.84.84 0 0 1-.287-.576.844.844 0 0 1 .796-.89h.01c.077.001.553-.008.716-.513.009-.123.026-.242.054-.36a2.182 2.182 0 0 1 1.988-1.639c1.208-.073 2.247.83 2.323 2.018z",fillRule:"evenodd"}));case"dynamic":return o.default.createElement("g",null,o.default.createElement("path",{d:"M14 13c3.87 0 7-1.34 7-3s-3.13-3-7-3-7 1.34-7 3 3.13 3 7 3zM9.72 9.44A11.35 11.35 0 0 1 14 8.7a11.35 11.35 0 0 1 4.28.74 3.26 3.26 0 0 1 .93.56 3.26 3.26 0 0 1-.93.56 11.35 11.35 0 0 1-4.28.74 11.35 11.35 0 0 1-4.28-.74 3.26 3.26 0 0 1-.93-.56 3.26 3.26 0 0 1 .93-.56zM14 19a11.06 11.06 0 0 1-4.16-.72l-.16-.08a9.17 9.17 0 0 1-2.41-1A1.48 1.48 0 0 0 7 18c0 1.66 3.13 3 7 3a15.86 15.86 0 0 0 1.9-.11 5 5 0 0 1-.81-1.89H14zM9.84 14.28l-.16-.08a9.17 9.17 0 0 1-2.41-1A1.48 1.48 0 0 0 7 14c0 1.66 3.13 3 7 3h1.14a4.22 4.22 0 0 1 1-2 3.29 3.29 0 0 1 .26-.23A13.27 13.27 0 0 1 14 15a11.06 11.06 0 0 1-4.16-.72zM21 17v-2h-2v2h-2v2h2v2h2v-2h2v-2h-2z",fillRule:"evenodd"}));case"search":return o.default.createElement("g",null,o.default.createElement("path",{d:"M12.13,5a4.88,4.88,0,0,0-4.18,7.39L5.23,15.11a.78.78,0,0,0,0,1.11l.55.55a.78.78,0,0,0,1.11,0l2.72-2.72A4.88,4.88,0,1,0,12.13,5Zm0,7.75A2.88,2.88,0,1,1,15,9.88,2.87,2.87,0,0,1,12.13,12.75Z"}));case"skew":return o.default.createElement("g",null,o.default.createElement("path",{d:"M23.28 7H12.16a2 2 0 0 0-1.74 1L3.85 19.5a1 1 0 0 0 .87 1.5h11.12a2 2 0 0 0 1.74-1l6.57-11.5a1 1 0 0 0-.87-1.5zm-7.69 12H6.7l5.71-10h8.89z",fillRule:"evenodd"}));case"rotate":return o.default.createElement("g",null,o.default.createElement("path",{d:"M19.66 10.73a1.15 1.15 0 0 0-.48 1.55A5.85 5.85 0 1 1 14 9.15v2.54a.5.5 0 0 0 .85.35l3.36-3.37a1 1 0 0 0 0-1.41L14.85 3.9a.5.5 0 0 0-.85.35v2.6a8.15 8.15 0 1 0 7.22 4.36 1.15 1.15 0 0 0-1.56-.48z",fillRule:"evenodd"}));case"transform-origin":return o.default.createElement("g",null,o.default.createElement("path",{d:"M24 7V5a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1h-4a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1H8a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1v4a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1v4a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1h4a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1h4a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1v-4a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1V8a1 1 0 0 0 1-1zm-3 5a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1v4a1 1 0 0 0-1 1h-4a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1H8a1 1 0 0 0-1-1v-4a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1V8a1 1 0 0 0 1-1h4a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1h4a1 1 0 0 0 1 1z",fillRule:"evenodd"}),o.default.createElement("path",{d:"M16 13v2a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1z",fillRule:"evenodd"}));case"divi-logo":return o.default.createElement("g",null,o.default.createElement("path",{d:"M15.764 10c0.864 0 1.624 0.142 2.258 0.42 0.626 0.276 1.156 0.664 1.578 1.152 0.444 0.514 0.788 1.14 1.024 1.86 0.25 0.758 0.376 1.614 0.376 2.542 0 0.916-0.124 1.766-0.366 2.528-0.232 0.724-0.57 1.354-1.006 1.874-0.418 0.498-0.952 0.896-1.584 1.186-0.638 0.29-1.404 0.438-2.28 0.438h-2.764v-12h2.764zM15.764 8h-3.764c-0.552 0-1 0.448-1 1v14c0 0.55 0.45 1 1 1h3.764c1.162 0 2.208-0.208 3.11-0.62 0.904-0.414 1.672-0.99 2.284-1.718 0.606-0.72 1.070-1.58 1.38-2.552 0.306-0.96 0.462-2.014 0.462-3.136 0-1.142-0.16-2.206-0.476-3.166-0.32-0.972-0.794-1.826-1.41-2.542-0.62-0.716-1.388-1.28-2.284-1.676-0.89-0.39-1.922-0.59-3.066-0.59v0z",fillRule:"evenodd"}),o.default.createElement("path",{d:"M16 2c7.72 0 14 6.28 14 14s-6.28 14-14 14-14-6.28-14-14 6.28-14 14-14zM16 0c-8.836 0-16 7.164-16 16s7.164 16 16 16 16-7.164 16-16-7.164-16-16-16v0z",fillRule:"evenodd"}));case"global-presets-open":return o.default.createElement("g",null,o.default.createElement("path",{d:"M20.42 18.77h-.08c-1.75-.73-2.51-2.47-3.88-2.47s-2.11.53-2.88.43-.73-.91-1.28-1.37-.46-.31-1.49-.7-.24-2.3.48-2 1.31-.32 1.52.23.7 1.3.65.58a2.4 2.4 0 0 1 .79-2c.6-.56.1-.65.22-1.54s2.21.5 2.21-.32.36-.72 1-1.39.37-.88-.22-1.46a8 8 0 0 1 3.32 2.91c-1 .17-1.42.81-2 1.92-1 2 1.47 3.14 2.81 4l.24.12a8.08 8.08 0 0 1-1.41 3.06zM14 22a8 8 0 0 1-7.66-10.26 6.92 6.92 0 0 0 1 1.38c1 1.09.89 1.27.89 1.27.57 1.66 3.27.86 3.62 2.08s1.33.86.91 2.43a2.72 2.72 0 0 0 1.48 3.1zm0-18a10 10 0 1 0 10 10A10 10 0 0 0 14 4z"}));case"global-presets-return":return o.default.createElement("g",null,o.default.createElement("path",{d:"M17.69 16a7.15 7.15 0 0 0 .6-4.46l2.22-.77a.93.93 0 0 0-.43-1.24l-3.71-1.86a.93.93 0 0 0-1.25.42l-1.87 3.83a1 1 0 0 0 .43 1.25l1.86-.74a4.23 4.23 0 0 1-.38 2.35c-.89 1.89-3.16 3.16-5.05 2.22-1.23-.6-4.89 1.2-.93 2.65A6.85 6.85 0 0 0 17.69 16z"}));case"responsive-orientation-portrait":return o.default.createElement("g",null,o.default.createElement("path",{className:"opacity-half",d:"M21,14H7a2,2,0,0,0-2,2v5a2,2,0,0,0,2,2H21a2,2,0,0,0,2-2V16A2,2,0,0,0,21,14Zm0,7H7V16H21Z"}),o.default.createElement("path",{d:"M12,5H7A2,2,0,0,0,5,7V21a2,2,0,0,0,2,2h5a2,2,0,0,0,2-2V7A2,2,0,0,0,12,5Zm0,16H7V7h5ZM22.94,9.75a.75.75,0,0,1-.22.53l-2.19,2.19a.75.75,0,0,1-1.06,0l-2.19-2.19A.75.75,0,0,1,17.81,9H19a2,2,0,0,0-2-2,1,1,0,0,1,0-2,4,4,0,0,1,4,4h1.19A.76.76,0,0,1,22.94,9.75Z"}));case"responsive-orientation-landscape":return o.default.createElement("g",null,o.default.createElement("path",{className:"opacity-half",d:"M7,7V21h5V7ZM7,5h5a2,2,0,0,1,2,2V21a2,2,0,0,1-2,2H7a2,2,0,0,1-2-2V7A2,2,0,0,1,7,5Z"}),o.default.createElement("path",{d:"M7,16v5H21V16Zm0-2H21a2,2,0,0,1,2,2v5a2,2,0,0,1-2,2H7a2,2,0,0,1-2-2V16A2,2,0,0,1,7,14Zm16-3a1,1,0,0,1-2,0,2,2,0,0,0-2-2v1.19a.75.75,0,0,1-1.28.53L15.53,8.53a.75.75,0,0,1,0-1.06l2.19-2.19A.75.75,0,0,1,19,5.81V7A4,4,0,0,1,23,11Z"}));case"pencil":return o.default.createElement("g",null,o.default.createElement("path",{transform:"scale(-1, 1) translate(-28, 0)",d:"M10.64,13.07l2.43-2.43,6.73,6.73L21,21l-3.63-1.2ZM7.52,7.52a1.78,1.78,0,0,1,2.51,0l1.21,1.26L8.73,11.29,7.52,10A1.78,1.78,0,0,1,7.52,7.52Z"}));case"blur":return o.default.createElement("g",null,o.default.createElement("path",{d:"M14.37,6.4a.51.51,0,0,0-.74,0Q8,12.64,8,15.9c0,3.37,2,6.1,6,6.1s6-2.73,6-6.1Q20,12.65,14.37,6.4ZM14,20c-3.61,0-4-2.86-4-4.1,0-.69.42-2.66,4-6.88,3.58,4.22,4,6.19,4,6.88C18,17.14,17.61,20,14,20Z"}));case"horizontal-motion":return o.default.createElement("g",null,o.default.createElement("path",{d:"M22.8,17.5a.56.56,0,0,1,0,.9l-3.5,2.1c-.4.2-.8,0-.8-.4V19H10a1,1,0,0,1,0-2h8.5V15.8a.52.52,0,0,1,.8-.4ZM19,10a.94.94,0,0,1-1,1H9.5v1.2a.52.52,0,0,1-.8.4L5.2,10.5a.56.56,0,0,1,0-.9L8.7,7.5c.4-.2.8,0,.8.4V9H18A.94.94,0,0,1,19,10Z"}));case"vertical-motion":return o.default.createElement("g",null,o.default.createElement("path",{d:"M17.5,5.2a.56.56,0,0,1,.9,0l2.1,3.5c.2.4,0,.8-.4.8H19V18a1,1,0,0,1-2,0V9.5H15.8a.52.52,0,0,1-.4-.8ZM10,9a.94.94,0,0,1,1,1v8.5h1.2a.52.52,0,0,1,.4.8l-2.1,3.5a.56.56,0,0,1-.9,0L7.5,19.3c-.2-.4,0-.8.4-.8H9V10A.94.94,0,0,1,10,9Z"}));case"cursor":return o.default.createElement("g",null,o.default.createElement("path",{d:"M11.8,7.1c0.2,0,0.5,0.1,0.6,0.3l6.4,7.8c0.2,0.2,0.2,0.6-0.1,0.8c0,0-0.1,0.1-0.1,0.1L16.4,17l1.5,3.6 c0.2,0.6,0,1.3-0.6,1.5c-0.5,0.2-1.2,0-1.5-0.5l-0.1-0.1l-1.5-3.6l-2.5,1c-0.3,0.1-0.6,0-0.8-0.3c0-0.1-0.1-0.2-0.1-0.2V7.9 C11,7.5,11.4,7.1,11.8,7.1z"}));case"pin":return o.default.createElement("g",null,o.default.createElement("path",{d:"M17,13.3c1.2,0.3,2,0.7,2,1.2c0,0.7-1.7,1.3-4,1.5v3l-1,2l-1-2v-3c-2.3-0.1-4-0.7-4-1.5c0-0.5,0.8-0.9,2-1.2V9.7 C9.8,9.4,9,9,9,8.5C9,7.7,11.2,7,14,7s5,0.7,5,1.5c0,0.5-0.8,0.9-2,1.2V13.3z"}));case"caret-down":case"caret-left":case"caret-right":case"caret-up":return o.default.createElement("g",null,o.default.createElement("path",{d:"M13.4,16.66,10.13,12a.71.71,0,0,1-.09-.65.49.49,0,0,1,.44-.36h7a.49.49,0,0,1,.44.36.72.72,0,0,1-.08.64L14.6,16.66a.7.7,0,0,1-1.2,0Z"}));case"overflow":return o.default.createElement("g",null,o.default.createElement("path",{d:"M6,9.5A1.5,1.5,0,1,1,7.5,11,1.5,1.5,0,0,1,6,9.5ZM7.5,16A1.5,1.5,0,1,0,6,14.5,1.5,1.5,0,0,0,7.5,16Zm0,5A1.5,1.5,0,1,0,6,19.5,1.5,1.5,0,0,0,7.5,21Z"}));case"layers-view":return o.default.createElement("g",null,o.default.createElement("path",{d:"M19.89,15.66,19,15.13l-4.48,2.69a1,1,0,0,1-1,0L9,15.13l-.88.53a.39.39,0,0,0,0,.68l5.37,3.23a1,1,0,0,0,1,0l5.37-3.23A.39.39,0,0,0,19.89,15.66Z"}),o.default.createElement("path",{d:"M13.49,15.57a1,1,0,0,0,1,0l5.37-3.23a.4.4,0,0,0,0-.68L14.51,8.43a1,1,0,0,0-1,0L8.11,11.66a.4.4,0,0,0,0,.68ZM14,9.87,17.54,12,14,14.13,10.46,12Z"}));case"update-with-current-styles":return o.default.createElement("g",null,o.default.createElement("path",{d:"M18.55,8a.93.93,0,0,1,.28.28L21,11.45a1,1,0,0,1-.27,1.38,1,1,0,0,1-.56.17H19v7a1,1,0,0,1-.88,1H10a1,1,0,0,1-1-.88V10a1,1,0,0,1,2-.12V19h6V13H15.87a1,1,0,0,1-1-1,1,1,0,0,1,.17-.55l2.13-3.2A1,1,0,0,1,18.55,8Z"}));case"star":return o.default.createElement("g",null,o.default.createElement("path",{d:"M20.46,12.07l-3.82-.56a.55.55,0,0,1-.42-.3l-1.71-3.4a.56.56,0,0,0-1,0l-1.74,3.4a.53.53,0,0,1-.42.3l-3.81.56a.56.56,0,0,0-.31,1L10,15.62a.56.56,0,0,1,.17.5L9.5,19.84a.56.56,0,0,0,.8.6L14,18.55h0l3.69,1.89a.55.55,0,0,0,.8-.59l-.63-3.73a.56.56,0,0,1,.17-.5L20.77,13A.56.56,0,0,0,20.46,12.07Z"}));case"divi-ai":return o.default.createElement(o.default.Fragment,null,o.default.createElement("defs",null,o.default.createElement("linearGradient",{id:"divi-ai-linear-gradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%"},o.default.createElement("stop",{offset:"0%",stopColor:"aqua"}),o.default.createElement("stop",{offset:"100%",stopColor:"#5200ff"}))),o.default.createElement("g",null,o.default.createElement("path",{d:"M22.12,5.88c-.88-.88-2.29-.88-5.12-.88h-6c-2.83,0-4.24,0-5.12,.88-.88,.88-.88,2.29-.88,5.12v6c0,2.83,0,4.24,.88,5.12s2.29,.88,5.12,.88h6c2.83,0,4.24,0,5.12-.88,.88-.88,.88-2.29,.88-5.12v-6c0-2.83,0-4.24-.88-5.12Zm-7.8,12.07c-.52,.17-1.09-.11-1.26-.63l-.44-1.32h-1.23l-.44,1.32c-.17,.52-.74,.81-1.26,.63-.52-.17-.81-.74-.63-1.26l2-6c.14-.41,.52-.68,.95-.68s.81,.28,.95,.68l2,6c.17,.52-.11,1.09-.63,1.26Zm3.68-.95c0,.55-.45,1-1,1s-1-.45-1-1v-6c0-.55,.45-1,1-1s1,.45,1,1v6Z"})));case"divi-ai-no-gradient":return o.default.createElement("g",null,o.default.createElement("path",{d:"M22.12,5.88c-.88-.88-2.29-.88-5.12-.88h-6c-2.83,0-4.24,0-5.12,.88-.88,.88-.88,2.29-.88,5.12v6c0,2.83,0,4.24,.88,5.12s2.29,.88,5.12,.88h6c2.83,0,4.24,0,5.12-.88,.88-.88,.88-2.29,.88-5.12v-6c0-2.83,0-4.24-.88-5.12Zm-7.8,12.07c-.52,.17-1.09-.11-1.26-.63l-.44-1.32h-1.23l-.44,1.32c-.17,.52-.74,.81-1.26,.63-.52-.17-.81-.74-.63-1.26l2-6c.14-.41,.52-.68,.95-.68s.81,.28,.95,.68l2,6c.17,.52-.11,1.09-.63,1.26Zm3.68-.95c0,.55-.45,1-1,1s-1-.45-1-1v-6c0-.55,.45-1,1-1s1,.45,1,1v6Z"}));default:return!1}}},{key:"render",value:function(){var e=this.props,t=e.block,r=e.children,n=e.className,a=e.color,l=e.icon,c=e.iconSvg,s=e.size,f=e.viewBox;if(!l&&!c)return!1;var d={fill:a,width:2*s,minWidth:2*s,height:2*s,margin:-(s-8)};switch(l){case"caret-left":d=(0,u.default)(d,{transform:"rotate(90deg)"});break;case"caret-right":d=(0,u.default)(d,{transform:"rotate(-90deg)"});break;case"caret-up":d=(0,u.default)(d,{transform:"rotate(180deg)"})}var p=l?"et-fb-icon--".concat(l):"et-fb-icon--svg",y=(0,i.default)({"et-fb-icon":!0,"et-fb-icon--block":t},p,n);if(c)return o.default.createElement("div",{className:y,style:(0,u.default)(d,this.props.style),dangerouslySetInnerHTML:{__html:c}});var m=this._renderGraphics();return m||(d={}),o.default.createElement("div",{className:y,style:(0,u.default)(d,this.props.style)},m?o.default.createElement("svg",{viewBox:f,preserveAspectRatio:"xMidYMid meet",shapeRendering:"geometricPrecision"},m):r)}}])&&f(t.prototype,r),n&&f(t,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(o.PureComponent);h(b,"defaultProps",{color:"#4c5866",size:14,viewBox:"0 0 28 28"}),h(b,"propTypes",{className:a.default.string,color:a.default.string,block:a.default.bool,icon:a.default.string,iconSvg:a.default.string,size:a.default.oneOfType([a.default.string,a.default.number]),style:a.default.object,viewBox:a.default.string});var v=b;t.default=v},function(e,t,r){var n=r(453),o=r(455);e.exports=function(e,t,r){return n(o,e,t,r)}},function(e,t,r){var n=r(140),o=r(141),a=r(28);e.exports=function(e){return a(e)?n(e):o(e)}},function(e,t,r){var n=r(36),o=r(100);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},function(e,t,r){var n=r(307);e.exports=function(e){var t=n(e),r=t%1;return t==t?r?t-r:t:0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(r(0)),o=i(r(46)),a=i(r(11));function i(e){return e&&e.__esModule?e:{default:e}}var u=n.default.memo((function(e){var t=e.children;return o.default.createPortal(t,(0,a.default)(".et-tb-admin-modals-portal").first().get(0))}));t.default=u},function(e,t,r){var n=r(52),o=r(190),a=r(191),i=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},function(e,t,r){var n=r(228),o=r(451),a=r(37),i=r(10);e.exports=function(e,t){return(i(e)?n:o)(e,a(t,3))}},function(e,t){e.exports=function(e){return null===e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sortSettings=t.renderTemplateConditions=t.removePlaceholderTemplates=t.optimizationSetTemplateIds=t.optimizationSetDefaultTemplate=t.optimizationSetAutomaticTitles=t.isUnassigned=t.getTemplateTitle=t.getTemplateMeta=t.getSettingByModifiedId=t.getSetting=t.getInitialState=t.getEmptyTemplate=t.generateTemplateTitle=t.formatTemplatesForStorage=t.formatTemplates=t.filterInvalidSettings=void 0;var n=M(r(119)),o=M(r(67)),a=M(r(300)),i=M(r(156)),u=M(r(38)),l=M(r(17)),c=M(r(123)),s=M(r(27)),f=M(r(88)),d=M(r(42)),p=M(r(5)),y=M(r(78)),m=M(r(238)),h=M(r(19)),b=M(r(305)),v=M(r(89)),g=M(r(32)),O=M(r(23)),_=M(r(33)),w=M(r(55)),T=M(r(12)),E=r(92),P=r(4),j=M(r(13)),S=M(r(7)),I=r(310);function M(e){return e&&e.__esModule?e:{default:e}}function C(e){return function(e){if(Array.isArray(e))return A(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return A(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return A(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function k(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?D(Object(r),!0).forEach((function(t){R(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function R(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var x=function(e){return(0,T.default)(e)};t.isUnassigned=x;var L=function(e,t){return(0,p.default)(e,t)};t.getSetting=L;var B=function(e,t){if(!(0,w.default)(t)&&t.includes(":")){var r=t.split(":"),n=parseInt((0,c.default)(r));isNaN(n)||(r.pop(),t=r.join(":")+":")}return L(e,t)};t.getSettingByModifiedId=B;var N=function(e,t){return(0,g.default)(t,(function(t){return!(0,O.default)(e[t])}))};t.filterInvalidSettings=N;var U=function(e,t){var r=(0,a.default)(t,(function(t){return B(e,t).label})).reverse();return(0,a.default)(r,(function(t){return B(e,t).priority})).reverse()};t.sortSettings=U;var W=function(e,t,r,n){var o=function(t){var r=L(e,t),n=(0,w.default)(r.parent)?null:L(e,r.parent);return((0,w.default)(n)?"":"".concat(n.label,": "))+r.label};r=U(e,N(e,r)),n=U(e,N(e,n));var a="",i="",u=r.length+n.length;return r.length>0?(a=o(r[0]),2===u?i=r.length>1?o(r[1]):(0,S.default)("themeBuilder","Exclude From: %1$s",o(n[0])):u>2&&(i=(0,S.default)("themeBuilder","And %1$s More",u-1))):a=(0,S.default)("themeBuilder","Unassigned"),t&&(a=(0,S.default)("themeBuilder","Default Website Template")),{title:a,meta:i}};t.generateTemplateTitle=W;t.getTemplateTitle=function(e,t,r,n){return e||(0,T.default)(r)?n:r};t.getTemplateMeta=function(e,t,r){return e||(0,T.default)(t)?r:""};var F=function(e){return{id:e,default:!1,enabled:!0,title:"",automaticTitle:"",automaticMeta:"",layouts:(0,u.default)((0,f.default)(P.LAYOUT_TYPES),(function(e){return{layout:null,enabled:!0,busy:!1}})),useOn:[],excludeFrom:[]}};t.getEmptyTemplate=F;var z=function(e,t){var r=function(e){return!(0,O.default)(t[e])},n={},o=(0,l.default)(e,(function(e){var t=(0,E.v4)();n[t]=e.id.toString();var o=F(t);return o.default=e.default,o.enabled=e.enabled,o.title=e.title,o.useOn=(0,g.default)(e.use_on,r),o.excludeFrom=(0,g.default)(e.exclude_from,r),o.itemId=e.item_id,o.placeholder=(0,p.default)(e,"placeholder",!1),(0,h.default)(P.LAYOUT_TYPES,(function(t){o.layouts[t].enabled=e.layouts[t].enabled,o.layouts[t].layout=0!==e.layouts[t].id?e.layouts[t].id.toString():null,o.layouts[t].global=e.layouts[t].global})),o}));return{templates:(0,f.default)(o,(function(e){return e.id})),idMap:n}};t.formatTemplates=z;t.formatTemplatesForStorage=function(e,t){return(0,l.default)(e,(function(e){var r=e.title,n=!1;if(e.default&&(r=(0,S.default)("themeBuilder","Default Website Template")),""===r&&(r=e.automaticTitle,n=!0),""===r&&(r=(0,S.default)("themeBuilder","Unassigned")),!(0,w.default)(e.is_default)&&(0,w.default)(e.default)){var o="1"===(0,p.default)(e,"is_default","0");(0,y.default)(e,"default",o)}return{id:(0,p.default)(t,e.id,e.id),title:r,autogenerated_title:n?"1":"0",default:e.default?"1":"0",enabled:e.enabled?"1":"0",layouts:(0,u.default)((0,f.default)(P.LAYOUT_TYPES),(function(t){return{id:e.layouts[t].layout||0,enabled:e.layouts[t].enabled?"1":"0"}})),use_on:e.useOn,exclude_from:e.excludeFrom,item_id:e.itemId}}))};var H=null;t.getInitialState=function(){if(!(0,_.default)(H))return H;var e=function(e){(0,T.default)(e)||(0,i.default)(e,(function(e){return e.default}))||(e[(0,s.default)(e)[0]].default=!0);return e},t=(0,E.v4)(),r=((0,I.getIdQueryParam)("tb_template"),R({},t,k(k({},F(t)),{},{default:!0}))),n={live:{},draft:{}},o=[],a="",u=k(k({},function(e){return(0,m.default)(e,(function(e,t,r){return(0,h.default)(t.settings,(function(t){e[t.id]?(0,y.default)(e,[t.id,"labels",r],t.label):e[t.id]=t})),e}),{})}(j.default.templateSettings.default)),j.default.templateSettings.preloaded);if(!(0,T.default)(j.default.templates.live)){var l=G(j.default.templates.live),c=z(l,u);r=e(c.templates),n.live=c.idMap}var f={templates:{},idMap:{}};return j.default.templates.hasDraft&&((f=z(j.default.templates.draft,u)).templates=e(f.templates)),Y(r,u,(function(e,t,n){r[e].automaticTitle=t,r[e].automaticMeta=n})),V(r,[],(function(e){o=e})),q(r,a,(function(e){a=e})),H={templates:r,templateIdMap:n,draft:f,templateIds:o,defaultTemplate:a,settingGroups:j.default.templateSettings.default,settings:u}};var Y=function(e,t,r){(0,h.default)(e,(function(e){var n=W(t,e.default,e.useOn,e.excludeFrom);n.title===e.automaticTitle&&n.meta===e.automaticMeta||r(e.id,n.title,n.meta)}))};t.optimizationSetAutomaticTitles=Y;var V=function(e,t,r){var n=(0,s.default)(e);(0,d.default)(t,n)||r(n)};t.optimizationSetTemplateIds=V;var q=function(e,t,r){var n=(0,v.default)(e,(function(e){return e.default})).id;t!==n&&r(n)};t.optimizationSetDefaultTemplate=q;var G=function(e){var t=(0,I.getIdQueryParam)("tb_template"),r=(0,I.getIdQueryParam)("tb_set"),n=!1;if(t?n=!0:r&&(n=!(0,i.default)(e,(function(e){return e.default}))),n){var a=function(){var e=j.default.templates.live;if((0,T.default)(e)&&(e=j.default.templates.draft),(0,T.default)(e))return null;var t=(0,o.default)(e[0]);return t.id=0,t.layouts.body.id=0,t.layouts.header.id=0,t.layouts.footer.id=0,t.hidden=!0,t.use_on=[],t.placeholder=!0,t}();(0,_.default)(a)||e.unshift(a)}return e};t.removePlaceholderTemplates=function(e){return(0,g.default)(e,(function(e){return!e.placeholder}))};var $=function(e,t,r){var o=(0,b.default)((0,l.default)(t,(function(t){var n=B(e,t),o=(0,p.default)(n,"parent",null),a=B(e,o);return{group:r,setting:n,parentId:o,parent:a}})),(function(e){return"".concat(e.group,"-").concat(e.parentId||e.setting.id)}));return"useOn"===r&&x(t)&&(o["useOn-unassigned"]=[{group:r,parent:null,parentId:null,setting:{id:"unassigned",label:(0,S.default)("themeBuilder","Unassigned"),priority:0}}]),(0,n.default)(o)};t.renderTemplateConditions=function(e,t,r){var n=[].concat(C($(r,U(r,e),"useOn")),C($(r,U(r,t),"excludeFrom")));return React.createElement("ul",{className:"et-tb-template__conditions"},(0,l.default)(n,(function(e,t){var r=e[0],n=r.group,o=r.setting,a=r.parent,i=r.parentId,u="useOn"===n&&"unassigned"!==o.id?"success":"danger",c=(0,_.default)(i)?"":"".concat(a.label,": "),s=(0,l.default)(e,"setting.label");return React.createElement("li",{key:t},React.createElement("div",{className:"et-tb-admin-list-item et-tb-admin-list-item--".concat(u)}),React.createElement("div",{className:"et-tb-template__condition-item"},c+s.join(", ")))})))}},function(e,t,r){"use strict";r.r(t),r.d(t,"sequence",(function(){return n.j})),r.d(t,"parallel",(function(){return n.h})),r.d(t,"debounce",(function(){return o.a})),r.d(t,"when",(function(){return c})),r.d(t,"wait",(function(){return o.b})),r.d(t,"equals",(function(){return s})),r.d(t,"concat",(function(){return f})),r.d(t,"increment",(function(){return d})),r.d(t,"merge",(function(){return y})),r.d(t,"pop",(function(){return m})),r.d(t,"push",(function(){return h})),r.d(t,"set",(function(){return v})),r.d(t,"shift",(function(){return g})),r.d(t,"splice",(function(){return O})),r.d(t,"toggle",(function(){return _})),r.d(t,"unset",(function(){return w})),r.d(t,"unshift",(function(){return T}));var n=r(6),o=r(94),a=r(58),i=r(2);function u(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}var l="http://cerebraljs.com/docs/api/factories.html#when";var c=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.length>1?t[t.length-1]:null,o=t.length>1?t.slice(0,-1):t;function c(e){var t=e.path,r=e.props,c=e.resolve;if(o.length>0&&!(o[0]instanceof a.Tag))throw new Error("Cerebral factory.when: You have to use the STATE, MODULESTATE or PROPS tag as values, see: "+l);if(!t||!t.true||!t.false)throw new Error("Cerebral factory.when: true/false paths need to be provided, see: http://cerebraljs.com/docs/api/factories.html#when");var s=o.map((function(e){var t=c.value(e);return Object(i.t)(t)?t.getValue(r):t}));return Boolean(n?n.apply(void 0,u(s)):s[0])?t.true():t.false()}return c.displayName="factory.when("+t.filter((function(e){return"function"!=typeof e})).map((function(e){return String(e)})).join(",")+")",c};var s=function(e){function t(t){var r=t.path,n=t.resolve;if(!n.isTag(e,"state","props","moduleState"))throw new Error("Cerebral factory.equals: You have to use the STATE, PROPS or MODULESTATE tag as first argument");var o=n.value(e);return r[o]?r[o]():r.otherwise()}return t.displayName="factory.equals("+String(e)+")",t},f=function(e,t){function r(r){if(!r.resolve.isTag(e,"state","moduleState"))throw new Error("Cerebral factory.concat: You have to use the STATE or MODULESTATE tag as first argument");r.store.concat(e,t)}return r.displayName="factory.concat("+String(e)+", "+String(t)+")",r},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;function r(r){var n=r.store,o=(r.module,r.props),a=r.resolve;if(!a.isTag(e,"state","props","moduleState"))throw new Error("Cerebral factory.increment: You have to use the STATE, MODULESTATE or PROPS tag as first argument");var i=a.value(t);if(!Number.isInteger(i))throw new Error("Cerebral factory.increment: You must increment by integer values");if("state"!==e.type&&"moduleState"!==e.type){var u=Object.assign({},o),l=a.path(e).split("."),c=l.pop(),s=l.reduce((function(e,t){return e[t]=Object.assign({},e[t]||{})}),u);if(!Number.isInteger(s[c]))throw new Error("Cerebral factory.increment: You must increment integer values");return s[c]+=i,u}n.increment(e,i)}return r.displayName="factory.increment("+String(e)+", "+String(t)+")",r};function p(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}var y=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];function o(t){var n;if(!t.resolve.isTag(e,"state","moduleState"))throw new Error("Cerebral factory.merge: You have to use the STATE or MODULESTATE tag as first argument");(n=t.store).merge.apply(n,[e].concat(p(r.map((function(e){return t.resolve.isTag(e)?t.resolve.value(e):Object.keys(e).reduce((function(r,n){return r[n]=t.resolve.value(e[n]),r}),{})})))))}return o.displayName="factory.merge("+String(e)+", "+r.map((function(e){return String(e)})).join(",")+")",o},m=function(e){function t(t){if(!t.resolve.isTag(e,"state","moduleState"))throw new Error("Cerebral factory.pop: You have to use the STATE or MODULESTATE tag as first argument");t.store.pop(e)}return t.displayName="factory.pop("+String(e)+")",t},h=function(e,t){function r(r){if(!r.resolve.isTag(e,"state","moduleState"))throw new Error("Cerebral factory.push: You have to use the STATE TAG as first argument");r.store.push(e,t)}return r.displayName="factory.push("+String(e)+")",r},b=r(21),v=function(e,t,r){function n(n){var o=n.store,a=n.props,u=n.resolve;if(!u.isTag(e,"state","props","moduleState"))throw new Error("Cerebral factory.set: You have to use the STATE, PROPS or MODULESTATE tag as first argument");var l=u.value(t);if(l&&l instanceof b.a&&(l=l.getValue(a)),!u.isResolveValue(t)&&Object(i.v)(t)?l=Object.assign({},l):!u.isResolveValue(t)&&Array.isArray(t)&&(l=l.slice()),r&&(l=r(l,n)),"state"!==e.type&&"moduleState"!==e.type){var c=Object.assign({},a),s=u.path(e).split("."),f=s.pop(),d=s.reduce((function(e,t){return e[t]=Object.assign({},e[t]||{})}),c);return d[f]=l,c}o.set(e,l)}return n.displayName="factory.set("+String(e)+", "+String(t)+")",n},g=function(e){function t(t){if(!t.resolve.isTag(e,"state","moduleState"))throw new Error("Cerebral factory.shift: You have to use the STATE or MODULESTATE tag as first argument");t.store.shift(e)}return t.displayName="factory.shift("+String(e)+")",t},O=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];function o(t){var n;if(!t.resolve.isTag(e,"state","moduleState"))throw new Error("Cerebral factory.splice: You have to use the STATE or MODULESTATE tag as first argument");(n=t.store).splice.apply(n,[e].concat(r))}return o.displayName="factory.splice("+String(e)+", "+r.map((function(e){return String(e)})).join(",")+")",o},_=function(e){function t(t){if(!t.resolve.isTag(e,"state","moduleState"))throw new Error("Cerebral factory.toggle: You have to use the STATE or MODULESTATE tag as first argument");t.store.toggle(e)}return t.displayName="factory.toggle("+String(e)+")",t},w=function(e){function t(t){if(!t.resolve.isTag(e,"state","moduleState"))throw new Error("Cerebral factory.unset: You have to use the STATE or MODULESTATE tag as first argument");t.store.unset(e)}return t.displayName="factory.unset("+String(e)+")",t},T=function(e,t){function r(r){if(!r.resolve.isTag(e,"state","moduleState"))throw new Error("Cerebral factory.unshift: You have to use the STATE or MODULESTATE tag as first argument");r.store.unshift(e,t)}return r.displayName="factory.unshift("+String(e)+", "+String(t)+")",r}},function(e,t,r){var n=r(31),o=r(15);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,r){var n=r(411),o=r(421),a=r(41),i=r(10),u=r(423);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?i(e)?o(e[0],e[1]):n(e):u(e)}},function(e,t,r){var n=r(54),o=r(214),a=r(37);e.exports=function(e,t){var r={};return t=a(t,3),o(e,(function(e,o,a){n(r,o,t(e,o,a))})),r}},function(e,t,r){var n=r(31),o=r(10),a=r(22);e.exports=function(e){return"string"==typeof e||!o(e)&&a(e)&&"[object String]"==n(e)}},function(e,t,r){"use strict";e.exports=function(e,t,r,n,o,a,i,u){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,o,a,i,u],s=0;(l=new Error(t.replace(/%s/g,(function(){return c[s++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t){e.exports=function(e){return e}},function(e,t,r){var n=r(225);e.exports=function(e,t){return n(e,t)}},function(e,t,r){var n=r(31),o=r(105),a=r(22),i=Function.prototype,u=Object.prototype,l=i.toString,c=u.hasOwnProperty,s=l.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=n(e))return!1;var t=o(e);if(null===t)return!0;var r=c.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&l.call(r)==s}},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=d(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=f(r(1)),i=f(r(36)),u=f(r(8)),l=f(r(18)),c=f(r(25));r(271);var s=["title","additionalButton","onClose","className","showCloseButton"];function f(e){return e&&e.__esModule?e:{default:e}}function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(d=function(e){return e?r:t})(e)}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p.apply(this,arguments)}function y(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=O(e);if(t){var o=O(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return g(this,r)}}function g(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}function _(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(u,e);var t,r,n,a=v(u);function u(){return m(this,u),a.apply(this,arguments)}return t=u,(r=[{key:"render",value:function(){var e=this.props,t=e.title,r=e.additionalButton,n=e.onClose,a=e.className,u=e.showCloseButton,f=y(e,s);return o.default.createElement("div",p({className:"et-tb-branded-modal__header ".concat(a)},f),o.default.createElement("span",{className:"et-tb-branded-modal__title"},(0,i.default)(t)?t():t),o.default.createElement("div",{className:"et-tb-branded-modal__header-buttons"},(0,i.default)(r)&&r(),u&&o.default.createElement(l.default,{className:"et-common-button--round",onClick:n},o.default.createElement(c.default,{icon:"close"}))))}}])&&h(t.prototype,r),n&&h(t,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(o.PureComponent);_(w,"propTypes",{title:a.default.oneOfType([a.default.string,a.default.func]).isRequired,className:a.default.string,onClose:a.default.func,additionalButton:a.default.func,showCloseButton:a.default.bool}),_(w,"defaultProps",{className:"",onClose:u.default,additionalButton:u.default,showCloseButton:!0});var T=w;t.default=T},function(e,t,r){"use strict";var n=r(6);t.a=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return new(Function.prototype.bind.apply(n.b,[null].concat(t)))}},function(e,t){e.exports=window.ReactDOM},function(e,t,r){var n=r(196),o=r(199);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}},function(e,t,r){var n=r(41),o=r(154),a=r(122);e.exports=function(e,t){return a(o(e,t,n),e+"")}},function(e,t,r){var n=r(124),o=r(28),a=r(39),i=r(29),u=r(119),l=Math.max;e.exports=function(e,t,r,c){e=o(e)?e:u(e),r=r&&!c?i(r):0;var s=e.length;return r<0&&(r=l(s+r,0)),a(e)?r<=s&&e.indexOf(t,r)>-1:!!s&&n(e,t,r)>-1}},function(e,t,r){var n=r(20).Symbol;e.exports=n},function(e,t,r){var n=r(48),o=r(28),a=r(64),i=r(15);e.exports=function(e,t,r){if(!i(r))return!1;var u=typeof t;return!!("number"==u?o(r)&&a(t,r.length):"string"==u&&t in r)&&n(r[t],e)}},function(e,t,r){var n=r(118);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},function(e,t){e.exports=function(e){return null==e}},function(e,t,r){var n=r(251),o=r(50),a=r(79),i=o((function(e,t){return a(e)?n(e,t):[]}));e.exports=i},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=b(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=h(r(1)),i=h(r(593)),u=h(r(32)),l=h(r(19)),c=h(r(108)),s=h(r(41)),f=h(r(23)),d=h(r(17)),p=h(r(56)),y=r(594),m=h(r(344));function h(e){return e&&e.__esModule?e:{default:e}}function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(b=function(e){return e?r:t})(e)}function v(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function w(e,t){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},w(e,t)}function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=j(e);if(t){var o=j(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return E(this,r)}}function E(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return P(e)}function P(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}function S(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var I=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w(e,t)}(a,e);var t,r,n,o=T(a);function a(){var e;O(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return S(P(e=o.call.apply(o,[this].concat(r))),"isShortcut",(function(e,t){var r=(0,y.getModifiers)(t),n=(0,u.default)((0,d.default)(r,(function(e,t){return e?t:""})),s.default),o=t.keyCode,a=e.toLowerCase().split(/\+/g),i=(0,u.default)(a,(function(e){return!(0,f.default)(r[e])})),l=(0,c.default)((0,u.default)(a,(function(e){return-1===i.indexOf(e)})))||"",m=(0,y.keyToCode)(l),h=-1!==i.indexOf("alt"),b=-1!==i.indexOf("shift");return!(r.alt&&!h)&&(!(r.shift&&!b)&&(0===p.default.apply(void 0,[i].concat(v(n))).length&&o===m))})),S(P(e),"handleOnKeydown",(function(t){var r=e.props.shortcuts,n=null;if(((0,l.default)(r,(function(r){var o=(0,i.default)(r.shortcut);if((0,l.default)(o,(function(o){if(e.isShortcut(o,t))return n=r.action,!1})),null!==n)return!1})),null!==n)&&!1!==n())return!0;return!1})),e}return t=a,(r=[{key:"componentDidMount",value:function(){this.context.addListener(this.handleOnKeydown)}},{key:"componentWillUnmount",value:function(){this.context.removeListener(this.handleOnKeydown)}},{key:"render",value:function(){return null}}])&&_(t.prototype,r),n&&_(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.PureComponent);S(I,"contextType",m.default),S(I,"propTypes",{shortcuts:a.default.arrayOf(a.default.shape({shortcut:a.default.oneOfType([a.default.string,a.default.arrayOf(a.default.string)]).isRequired,action:a.default.func.isRequired})).isRequired}),S(I,"defaultProps",{});var M=I;t.default=M},function(e,t,r){"use strict";r.r(t),r.d(t,"string",(function(){return a})),r.d(t,"path",(function(){return i})),r.d(t,"signal",(function(){return u})),r.d(t,"signals",(function(){return l})),r.d(t,"sequences",(function(){return c})),r.d(t,"state",(function(){return s})),r.d(t,"module",(function(){return e})),r.d(t,"moduleState",(function(){return f})),r.d(t,"moduleSequences",(function(){return d})),r.d(t,"props",(function(){return p}));var n=r(6),o=r(2);r.d(t,"createTemplateTag",(function(){return n.e})),r.d(t,"extractValueWithPath",(function(){return n.g})),r.d(t,"resolveObject",(function(){return n.i})),r.d(t,"ResolveValue",(function(){return n.c})),r.d(t,"Tag",(function(){return n.d}));var a=Object(n.e)("string",(function(e){return e})),i=Object(n.e)("path",(function(e){return e})),u=Object(n.e)("signal",(function(e,t){return Object(o.a)("tags.signal",'use the "sequences" tag instead'),t.controller.getSequence(e)})),l=Object(n.e)("signals",(function(e,t){return Object(o.a)("tags.signals",'use the "sequences" tag instead'),t.controller.getSequences(e)})),c=Object(n.e)("sequences",(function(e,t){return t.controller.getSequence(e)||t.controller.getSequences(e)})),s=Object(n.e)("state",(function(e,t){return t.controller.getState(e)})),f=(e=Object(n.e)("module",(function(e,t){return Object(o.a)("tags.module",'use the "moduleState" tag instead'),t.controller.getState(Object(o.o)(e,t))})),Object(n.e)("moduleState",(function(e,t){return t.controller.getState(Object(o.o)(e,t))}))),d=Object(n.e)("moduleSequences",(function(e,t){return t.controller.getSequence(Object(o.o)(e,t))||t.controller.getSequences(Object(o.o)(e,t))})),p=Object(n.e)("props",(function(e,t){return Object(n.g)(t.props,e)}))},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){var n=r(47)(Object,"create");e.exports=n},function(e,t,r){var n=r(204),o=r(205),a=r(206),i=r(207),u=r(208);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=u,e.exports=l},function(e,t,r){var n=r(48);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},function(e,t,r){var n=r(210);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},function(e,t){var r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&r.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,r){var n=r(418),o=r(98),a=r(419),i=r(288),u=r(289),l=r(31),c=r(138),s="[object Map]",f="[object Promise]",d="[object Set]",p="[object WeakMap]",y="[object DataView]",m=c(n),h=c(o),b=c(a),v=c(i),g=c(u),O=l;(n&&O(new n(new ArrayBuffer(1)))!=y||o&&O(new o)!=s||a&&O(a.resolve())!=f||i&&O(new i)!=d||u&&O(new u)!=p)&&(O=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,n=r?c(r):"";if(n)switch(n){case m:return y;case h:return s;case b:return f;case v:return d;case g:return p}return t}),e.exports=O},function(e,t,r){var n=r(150);e.exports=function(e){return n(e,5)}},function(e,t,r){var n=r(104),o=r(54);e.exports=function(e,t,r,a){var i=!r;r||(r={});for(var u=-1,l=t.length;++u<l;){var c=t[u],s=a?a(r[c],e[c],c,r,e):void 0;void 0===s&&(s=e[c]),i?o(r,c,s):n(r,c,s)}return r}},function(e,t,r){var n=r(140),o=r(233),a=r(28);e.exports=function(e){return a(e)?n(e,!0):o(e)}},function(e,t){e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(0)),o=a(r(82));function a(e){return e&&e.__esModule?e:{default:e}}r(636);var i=n.default.memo((function(){return n.default.createElement(o.default,{className:"et-common-spinner-local-overlay"},n.default.createElement("div",{className:"et-common-spinner-local-overlay__spinner"}))}));t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(0)),o=a(r(1));function a(e){return e&&e.__esModule?e:{default:e}}r(637);var i=function(e){var t=e.progress,r=e.estimate,o=Math.ceil(Math.max(0,Math.min(100,t)));return n.default.createElement("div",{className:"et-common-progress-bar"},n.default.createElement("div",{className:"et-common-progress-bar__background"},n.default.createElement("div",{className:"et-common-progress-bar__bar",style:{width:"".concat(o,"%")}},n.default.createElement("div",{className:"et-common-progress-bar__value"},"".concat(o,"%")))),r&&n.default.createElement("div",{className:"et-common-progress-bar__estimate"},r))};i.propTypes={progress:o.default.number.isRequired,estimate:o.default.string},i.defaultProps={estimate:""};var u=n.default.memo(i);t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.openModal=t.isLibraryItemEditorOpen=t.closeModal=void 0;var n,o,a,i,u,l,c=r(3),s=(r(35),r(4)),f=r(74);function d(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}t.openModal=function(e){return function(t){var r=t.store;(s.MODAL_TYPE_PORTABILITY!==e||(0,f.isAllowedAction)(s.CAP_PORTABILITY))&&r.set((0,c.state)(n||(n=d(["openModal"]))),e)}};t.closeModal=function(e){return function(t){var r=t.get,n=t.store;r((0,c.state)(o||(o=d(["openModal"]))))===e&&n.set((0,c.state)(a||(a=d(["openModal"]))),null)}};t.isLibraryItemEditorOpen=function(e){return function(t){var r=t((0,c.state)(i||(i=d(["libraryItem.itemId"])))),n=t((0,c.state)(u||(u=d(["libraryItem.themeBuilderId"])))),o=t((0,c.state)(l||(l=d(["libraryItem.itemType"]))));return!(!r||!n||o!==e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAllowedAction=void 0;var n,o=(n=r(13))&&n.__esModule?n:{default:n},a=r(406);t.isAllowedAction=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return a.isAllowedAction.apply(void 0,[o.default.capabilities].concat(t))}},function(e,t,r){var n=r(217),o=r(22),a=Object.prototype,i=a.hasOwnProperty,u=a.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return o(e)&&i.call(e,"callee")&&!u.call(e,"callee")};e.exports=l},function(e,t,r){(function(e){var n=r(20),o=r(218),a=t&&!t.nodeType&&t,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,u=i&&i.exports===a?n.Buffer:void 0,l=(u?u.isBuffer:void 0)||o;e.exports=l}).call(this,r(86)(e))},function(e,t){var r=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}},function(e,t,r){var n=r(303);e.exports=function(e,t,r){return null==e?e:n(e,t,r)}},function(e,t,r){var n=r(28),o=r(22);e.exports=function(e){return o(e)&&n(e)}},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=s(r(0)),a=s(r(1)),i=s(r(33)),u=s(r(16)),l=s(r(8)),c=s(r(7));function s(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=b(e);if(t){var o=b(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return m(this,r)}}function m(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(548);var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(l,e);var t,r,n,a=y(l);function l(){var e;f(this,l);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return v(h(e=a.call.apply(a,[this].concat(r))),"state",{expanded:!1,error:null,stack:null}),v(h(e),"toggleError",(function(){e.setState({expanded:!e.state.expanded},(function(){return e.props.onExpand()}))})),e}return t=l,(r=[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,stack:t.componentStack})}},{key:"render",value:function(){if((0,i.default)(this.state.error))return this.props.children;var e=this.props,t=e.component,r=e.className,n=this.state,a=n.expanded,l=n.error,s=n.stack;return o.default.createElement("div",{className:"et-tb-error-boundary et-tb-error-boundary--warning ".concat(r)},o.default.createElement("h4",{className:"et-tb-error-boundary__heading"},(0,c.default)("generic","%1$s could not be displayed.",t)),o.default.createElement("div",{className:"et-tb-error-boundary__error"},o.default.createElement("button",{type:"button",className:"et-tb-error-boundary__button",onClick:this.toggleError},a?(0,c.default)("generic","hide error message"):(0,c.default)("generic","show error message")),a&&o.default.createElement("div",{className:"et-tb-error-boundary__error-content"},o.default.createElement("div",{className:"et-tb-error-boundary__error-message"},(0,u.default)(l)),o.default.createElement("div",{className:"et-tb-error-boundary__error-stack"},(0,u.default)(s)))))}}])&&d(t.prototype,r),n&&d(t,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(o.default.Component);v(g,"propTypes",{component:a.default.string.isRequired,onExpand:a.default.func,className:a.default.string}),v(g,"defaultProps",{onExpand:l.default,className:""});var O=g;t.default=O},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=l(r(1)),i=l(r(267)),u=l(r(176));function l(e){return e&&e.__esModule?e:{default:e}}function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m(e);if(t){var o=m(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return y(this,r)}}function y(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(271);var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(l,e);var t,r,n,a=p(l);function l(){return s(this,l),a.apply(this,arguments)}return t=l,(r=[{key:"componentDidMount",value:function(){i.default.rebuild()}},{key:"render",value:function(){var e=this.props,t=e.animation,r=e.className,n=e.children;return o.default.createElement(u.default,{enabled:t},(function(e){return o.default.createElement("div",{className:"et-tb-branded-modal ".concat(r),style:e},n)}))}}])&&f(t.prototype,r),n&&f(t,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(o.PureComponent);h(b,"propTypes",{animation:a.default.bool,className:a.default.string}),h(b,"defaultProps",{animation:!0,className:""});var v=b;t.default=v},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(o,i,l):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),i=(o=r(1))&&o.__esModule?o:{default:o};function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=p(e);if(t){var o=p(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return d(this,r)}}function d(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(635);var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(i,e);var t,r,n,o=f(i);function i(){return l(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"render",value:function(){var e=this.props,t=e.className,r=e.children;return a.default.createElement("div",{className:"et-common-local-overlay ".concat(t)},r)}}])&&c(t.prototype,r),n&&c(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(a.PureComponent);y(m,"propTypes",{className:i.default.string}),y(m,"defaultProps",{className:""});var h=m;t.default=h},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(o,i,l):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),i=(o=r(1))&&o.__esModule?o:{default:o};function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=p(e);if(t){var o=p(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return d(this,r)}}function d(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(271);var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(i,e);var t,r,n,o=f(i);function i(){return l(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"render",value:function(){var e=this.props,t=e.className,r=e.children;return a.default.createElement("div",{className:"et-tb-branded-modal__actions ".concat(t)},r)}}])&&c(t.prototype,r),n&&c(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(a.PureComponent);y(m,"propTypes",{className:i.default.string}),y(m,"defaultProps",{className:""});var h=m;t.default=h},function(e,t,r){var n=r(97);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},function(e,t,r){var n=r(214),o=r(410)(n);e.exports=o},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){var n=r(219),o=r(65),a=r(101),i=a&&a.isTypedArray,u=i?o(i):n;e.exports=u},function(e,t,r){var n=r(54),o=r(302)((function(e,t,r){n(e,r,t)}));e.exports=o},function(e,t,r){var n=r(450)(r(157));e.exports=n},function(e,t){e.exports={cap:!1,curry:!1,fixed:!1,immutable:!1,rearg:!1}},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=l(r(1)),i=l(r(14));r(598);var u=["positive","value","checked","className","children"];function l(e){return e&&e.__esModule?e:{default:e}}function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function f(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=b(e);if(t){var o=b(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return h(this,r)}}function h(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(l,e);var t,r,n,a=m(l);function l(){return d(this,l),a.apply(this,arguments)}return t=l,(r=[{key:"render",value:function(){var e=this.props,t=e.positive,r=e.value,n=e.checked,a=e.className,l=e.children,c=f(e,u);return o.default.createElement("label",{className:"et-common-checkbox ".concat(a)},o.default.createElement("input",s({type:"checkbox",value:r,checked:n,className:(0,i.default)({"et-common-checkbox__input":!0,"et-common-checkbox__input--danger":!t})},c)),o.default.createElement("span",{className:"et-common-checkbox__label"},l))}}])&&p(t.prototype,r),n&&p(t,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(o.PureComponent);v(g,"propTypes",{positive:a.default.bool,value:a.default.oneOfType([a.default.string,a.default.number]).isRequired,checked:a.default.bool.isRequired,className:a.default.string}),v(g,"defaultProps",{value:1,positive:!0,className:""});var O=g;t.default=O},function(e,t,r){"use strict";r.r(t),r.d(t,"v1",(function(){return c})),r.d(t,"v3",(function(){return b})),r.d(t,"v4",(function(){return v.a})),r.d(t,"v5",(function(){return _}));var n,o,a=r(188),i=r(113),u=0,l=0;var c=function(e,t,r){var c=t&&r||0,s=t||[],f=(e=e||{}).node||n,d=void 0!==e.clockseq?e.clockseq:o;if(null==f||null==d){var p=e.random||(e.rng||a.a)();null==f&&(f=n=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=o=16383&(p[6]<<8|p[7]))}var y=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:l+1,h=y-u+(m-l)/1e4;if(h<0&&void 0===e.clockseq&&(d=d+1&16383),(h<0||y>u)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=y,l=m,o=d;var b=(1e4*(268435455&(y+=122192928e5))+m)%4294967296;s[c++]=b>>>24&255,s[c++]=b>>>16&255,s[c++]=b>>>8&255,s[c++]=255&b;var v=y/4294967296*1e4&268435455;s[c++]=v>>>8&255,s[c++]=255&v,s[c++]=v>>>24&15|16,s[c++]=v>>>16&255,s[c++]=d>>>8|128,s[c++]=255&d;for(var g=0;g<6;++g)s[c+g]=f[g];return t||Object(i.a)(s)};var s=function(e,t,r){var n=function(e,n,o,a){var u=o&&a||0;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=new Array(e.length),r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}(e)),"string"==typeof n&&(n=function(e){var t=[];return e.replace(/[a-fA-F0-9]{2}/g,(function(e){t.push(parseInt(e,16))})),t}(n)),!Array.isArray(e))throw TypeError("value must be an array of bytes");if(!Array.isArray(n)||16!==n.length)throw TypeError("namespace must be uuid string or an Array of 16 byte values");var l=r(n.concat(e));if(l[6]=15&l[6]|t,l[8]=63&l[8]|128,o)for(var c=0;c<16;++c)o[u+c]=l[c];return o||Object(i.a)(l)};try{n.name=e}catch(e){}return n.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",n.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",n};function f(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function d(e,t,r,n,o,a){return f((i=f(f(t,e),f(n,a)))<<(u=o)|i>>>32-u,r);var i,u}function p(e,t,r,n,o,a,i){return d(t&r|~t&n,e,t,o,a,i)}function y(e,t,r,n,o,a,i){return d(t&n|r&~n,e,t,o,a,i)}function m(e,t,r,n,o,a,i){return d(t^r^n,e,t,o,a,i)}function h(e,t,r,n,o,a,i){return d(r^(t|~n),e,t,o,a,i)}var b=s("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Array(t.length);for(var r=0;r<t.length;r++)e[r]=t.charCodeAt(r)}return function(e){var t,r,n,o=[],a=32*e.length,i="0123456789abcdef";for(t=0;t<a;t+=8)r=e[t>>5]>>>t%32&255,n=parseInt(i.charAt(r>>>4&15)+i.charAt(15&r),16),o.push(n);return o}(function(e,t){var r,n,o,a,i;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var u=1732584193,l=-271733879,c=-1732584194,s=271733878;for(r=0;r<e.length;r+=16)n=u,o=l,a=c,i=s,u=p(u,l,c,s,e[r],7,-680876936),s=p(s,u,l,c,e[r+1],12,-389564586),c=p(c,s,u,l,e[r+2],17,606105819),l=p(l,c,s,u,e[r+3],22,-1044525330),u=p(u,l,c,s,e[r+4],7,-176418897),s=p(s,u,l,c,e[r+5],12,1200080426),c=p(c,s,u,l,e[r+6],17,-1473231341),l=p(l,c,s,u,e[r+7],22,-45705983),u=p(u,l,c,s,e[r+8],7,1770035416),s=p(s,u,l,c,e[r+9],12,-1958414417),c=p(c,s,u,l,e[r+10],17,-42063),l=p(l,c,s,u,e[r+11],22,-1990404162),u=p(u,l,c,s,e[r+12],7,1804603682),s=p(s,u,l,c,e[r+13],12,-40341101),c=p(c,s,u,l,e[r+14],17,-1502002290),u=y(u,l=p(l,c,s,u,e[r+15],22,1236535329),c,s,e[r+1],5,-165796510),s=y(s,u,l,c,e[r+6],9,-1069501632),c=y(c,s,u,l,e[r+11],14,643717713),l=y(l,c,s,u,e[r],20,-373897302),u=y(u,l,c,s,e[r+5],5,-701558691),s=y(s,u,l,c,e[r+10],9,38016083),c=y(c,s,u,l,e[r+15],14,-660478335),l=y(l,c,s,u,e[r+4],20,-405537848),u=y(u,l,c,s,e[r+9],5,568446438),s=y(s,u,l,c,e[r+14],9,-1019803690),c=y(c,s,u,l,e[r+3],14,-187363961),l=y(l,c,s,u,e[r+8],20,1163531501),u=y(u,l,c,s,e[r+13],5,-1444681467),s=y(s,u,l,c,e[r+2],9,-51403784),c=y(c,s,u,l,e[r+7],14,1735328473),u=m(u,l=y(l,c,s,u,e[r+12],20,-1926607734),c,s,e[r+5],4,-378558),s=m(s,u,l,c,e[r+8],11,-2022574463),c=m(c,s,u,l,e[r+11],16,1839030562),l=m(l,c,s,u,e[r+14],23,-35309556),u=m(u,l,c,s,e[r+1],4,-1530992060),s=m(s,u,l,c,e[r+4],11,1272893353),c=m(c,s,u,l,e[r+7],16,-155497632),l=m(l,c,s,u,e[r+10],23,-1094730640),u=m(u,l,c,s,e[r+13],4,681279174),s=m(s,u,l,c,e[r],11,-358537222),c=m(c,s,u,l,e[r+3],16,-722521979),l=m(l,c,s,u,e[r+6],23,76029189),u=m(u,l,c,s,e[r+9],4,-640364487),s=m(s,u,l,c,e[r+12],11,-421815835),c=m(c,s,u,l,e[r+15],16,530742520),u=h(u,l=m(l,c,s,u,e[r+2],23,-995338651),c,s,e[r],6,-198630844),s=h(s,u,l,c,e[r+7],10,1126891415),c=h(c,s,u,l,e[r+14],15,-1416354905),l=h(l,c,s,u,e[r+5],21,-57434055),u=h(u,l,c,s,e[r+12],6,1700485571),s=h(s,u,l,c,e[r+3],10,-1894986606),c=h(c,s,u,l,e[r+10],15,-1051523),l=h(l,c,s,u,e[r+1],21,-2054922799),u=h(u,l,c,s,e[r+8],6,1873313359),s=h(s,u,l,c,e[r+15],10,-30611744),c=h(c,s,u,l,e[r+6],15,-1560198380),l=h(l,c,s,u,e[r+13],21,1309151649),u=h(u,l,c,s,e[r+4],6,-145523070),s=h(s,u,l,c,e[r+11],10,-1120210379),c=h(c,s,u,l,e[r+2],15,718787259),l=h(l,c,s,u,e[r+9],21,-343485551),u=f(u,n),l=f(l,o),c=f(c,a),s=f(s,i);return[u,l,c,s]}(function(e){var t,r=[];for(r[(e.length>>2)-1]=void 0,t=0;t<r.length;t+=1)r[t]=0;var n=8*e.length;for(t=0;t<n;t+=8)r[t>>5]|=(255&e[t/8])<<t%32;return r}(e),8*e.length))})),v=r(278);function g(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function O(e,t){return e<<t|e>>>32-t}var _=s("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=new Array(n.length);for(var o=0;o<n.length;o++)e[o]=n.charCodeAt(o)}e.push(128);var a=e.length/4+2,i=Math.ceil(a/16),u=new Array(i);for(o=0;o<i;o++){u[o]=new Array(16);for(var l=0;l<16;l++)u[o][l]=e[64*o+4*l]<<24|e[64*o+4*l+1]<<16|e[64*o+4*l+2]<<8|e[64*o+4*l+3]}for(u[i-1][14]=8*(e.length-1)/Math.pow(2,32),u[i-1][14]=Math.floor(u[i-1][14]),u[i-1][15]=8*(e.length-1)&4294967295,o=0;o<i;o++){for(var c=new Array(80),s=0;s<16;s++)c[s]=u[o][s];for(s=16;s<80;s++)c[s]=O(c[s-3]^c[s-8]^c[s-14]^c[s-16],1);var f=r[0],d=r[1],p=r[2],y=r[3],m=r[4];for(s=0;s<80;s++){var h=Math.floor(s/20),b=O(f,5)+g(h,d,p,y)+m+t[h]+c[s]>>>0;m=y,y=p,p=O(d,30)>>>0,d=f,f=b}r[0]=r[0]+f>>>0,r[1]=r[1]+d>>>0,r[2]=r[2]+p>>>0,r[3]=r[3]+y>>>0,r[4]=r[4]+m>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}))},function(e,t,r){"use strict";var n=r(114),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.wrap,a=void 0===o||o,u=r.ignoreDefinition,l=void 0!==u&&u;i(this,e),this.definition=t,"function"!=typeof t&&(l||this.verifyDefinition(t),this.wrap=a,this.ProviderConstructor=function(e){this.context=e},this.ProviderConstructor.prototype=t,this.WrappedProviderConstructor=function(e,t){this.context=t,this.providerName=e},this.WrappedProviderConstructor.prototype=Object.keys(l?{}:t).reduce((function(e,r){var o=t[r];return e[r]=function(){for(var e=this,t=arguments.length,a=Array(t),i=0;i<t;i++)a[i]=arguments[i];var u=o.apply(this,a);return Object(n.b)(u)?u.then((function(t){return e.context.debugger.send({type:"provider",datetime:Date.now(),method:e.providerName+"."+r,args:a,isPromise:!0,isRejected:!1,returnValue:Object(n.a)(t)?t:"[CAN_NOT_SERIALIZE]"}),t})).catch((function(t){throw e.context.debugger.send({method:e.providerName+"."+r,args:a,isPromise:!0,isRejected:!0}),t})):(this.context.debugger.send({type:"provider",datetime:Date.now(),method:this.providerName+"."+r,args:a,returnValue:Object(n.a)(u)?u:"[CAN_NOT_SERIALIZE]"}),u)},e}),{}))}return a(e,[{key:"verifyDefinition",value:function(e){if(!this.ignoreDefinition){if("object"!==(void 0===e?"undefined":o(e))||null===e)throw new Error("The definition passed as Provider is not valid");Object.keys(e).forEach((function(t){if("function"!=typeof e[t])throw new Error("The property "+t+" passed to Provider is not a method")}))}}},{key:"get",value:function(e){return"function"==typeof this.definition?this.definition(e):new this.ProviderConstructor(e)}},{key:"getWrapped",value:function(e,t){return"function"==typeof this.definition?this.definition(t):new this.WrappedProviderConstructor(e,t)}}]),e}();t.a=u},function(e,t,r){"use strict";function n(e,t){function r(r){var n=r.path;return new Promise((function(r){t.timer&&(t.resolve(n.discard()),clearTimeout(t.timer)),t.timer=setTimeout((function(){t.resolve(n.continue()),t.timer=null,t.resolve=null}),e),t.resolve=r}))}return r.displayName="debounce - "+e+"ms",r}function o(e){return n(e,{timer:null,resolve:null})}r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return i})),o.shared=function(){var e={timer:null,resolve:null};return function(t){return n(t,e)}};var a=o;var i=function(e){function t(t){var r=t.path;return new Promise((function(t){setTimeout((function(){return t(r?r.continue():null)}),e)}))}return t.displayName="wait - "+e+"ms",t}},function(e,t,r){"use strict";var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var o=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.path=t,this.payload=r}return n(e,[{key:"toJSON",value:function(){return{path:this.path,payload:this.payload,_functionTreePath:!0}}}]),e}();t.a=o},function(e,t,r){var n=r(10),o=r(189),a=r(279),i=r(16);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:a(i(e))}},function(e,t,r){var n=r(31),o=r(22);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},function(e,t,r){var n=r(47)(r(20),"Map");e.exports=n},function(e,t,r){var n=r(52),o=r(49),a=r(10),i=r(97),u=n?n.prototype:void 0,l=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return o(t,e)+"";if(i(t))return l?l.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r}},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,r){(function(e){var n=r(116),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=a&&a.exports===o&&n.process,u=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=u}).call(this,r(86)(e))},function(e,t,r){var n=r(61),o=r(220),a=r(221),i=r(222),u=r(223),l=r(224);function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=a,c.prototype.get=i,c.prototype.has=u,c.prototype.set=l,e.exports=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.openPrompt=t.closePrompt=void 0;var n,o,a=r(3),i=r(35),u=r(230);function l(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}t.openPrompt=function(e){var t=e.type,r=e.title,o=void 0===r?"":r,i=e.content,c=void 0===i?"":i,s=e.requireAction,f=void 0!==s&&s,d=e.payload,p=void 0===d?{}:d;return function(e){var r=e.resolve;return e.store.push((0,a.state)(n||(n=l(["prompts.prompts"]))),{type:(0,u.resolveTag)(t,r),title:(0,u.resolveTag)(o,r),content:(0,u.resolveTag)(c,r),requireAction:f,payload:(0,u.resolveTag)(p,r,!0)})}};t.closePrompt=function(){return(0,i.pop)((0,a.state)(o||(o=l(["prompts.prompts"]))))}},function(e,t,r){var n=r(54),o=r(48),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var i=e[t];a.call(e,t)&&o(i,r)&&(void 0!==r||t in e)||n(e,t,r)}},function(e,t,r){var n=r(142)(Object.getPrototypeOf,Object);e.exports=n},function(e,t,r){var n=r(15),o=Object.create,a=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=a},function(e,t,r){var n=r(147),o=r(442);e.exports=function e(t,r,a,i,u){var l=-1,c=t.length;for(a||(a=o),u||(u=[]);++l<c;){var s=t[l];r>0&&a(s)?r>1?e(s,r-1,a,i,u):n(u,s):i||(u[u.length]=s)}return u}},function(e,t){e.exports=function(e){return e&&e.length?e[0]:void 0}},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=u(r(1)),i=u(r(267));function u(e){return e&&e.__esModule?e:{default:e}}function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m(e);if(t){var o=m(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return y(this,r)}}function y(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(566);var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(u,e);var t,r,n,a=p(u);function u(){return s(this,u),a.apply(this,arguments)}return t=u,(r=[{key:"render",value:function(){return o.default.createElement(i.default,c({countTransform:!1,delayShow:700,globalEventOff:"click"},this.props,{className:"et-tb-tooltip ".concat(this.props.className)}))}}])&&f(t.prototype,r),n&&f(t,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(o.PureComponent);h(b,"propTypes",{className:a.default.string}),h(b,"defaultProps",{className:""});var v=b;t.default=v},function(e,t,r){var n=r(104),o=r(68),a=r(169),i=r(28),u=r(77),l=r(27),c=Object.prototype.hasOwnProperty,s=a((function(e,t){if(u(t)||i(t))o(t,l(t),e);else for(var r in t)c.call(t,r)&&n(e,r,t[r])}));e.exports=s},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=l(r(1)),i=l(r(81)),u=l(r(180));function l(e){return e&&e.__esModule?e:{default:e}}function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m(e);if(t){var o=m(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return y(this,r)}}function y(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(661);var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(l,e);var t,r,n,a=p(l);function l(){return s(this,l),a.apply(this,arguments)}return t=l,(r=[{key:"render",value:function(){var e=this.props,t=e.animation,r=e.className,n=e.children;return o.default.createElement("div",{className:"et-tb-modal-root"},o.default.createElement("div",{className:"et-tb-modal-overlay"}),o.default.createElement("div",{className:"et-tb-centered-modal"},o.default.createElement(i.default,{animation:t,className:r},n)),o.default.createElement(u.default,{lockId:"tb-centered-modal"}))}}])&&f(t.prototype,r),n&&f(t,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(o.PureComponent);h(b,"propTypes",{animation:a.default.bool,className:a.default.string}),h(b,"defaultProps",{animation:!0,className:""});var v=b;t.default=v},function(e,t,r){"use strict";var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var r=e.nextWatchId++;this.id="Watch_"+r,this.rawId=r,this.name=null,this.type=t,this.executedCount=0,this.controller=null,this.modulePath="",this.dependencyMap=null}return n(e,[{key:"create",value:function(e,t,r){return this.name=r,this.controller=e,this.modulePath=t,this}},{key:"registerDependencies",value:function(){this.dependencyMap=this.createDependencyMap(),this.controller.dependencyStore.addEntity(this,this.dependencyMap),this.controller.devtools&&(this.controller.devtools.updateWatchMap(this,this.dependencyMap),this.controller.devtools.sendWatchMap([],[],0,0))}},{key:"destroy",value:function(){this.dependencyMap&&(this.controller.dependencyStore.removeEntity(this,this.dependencyMap),this.controller.devtools&&(this.controller.devtools.updateWatchMap(this,null,this.dependencyMap),this.controller.devtools.sendWatchMap([],[],0,0)))}},{key:"toJSON",value:function(){return{id:this.id,executedCount:this.executedCount,type:this.type,name:this.name}}}]),e}();o.nextWatchId=0,t.a=o},function(e,t,r){"use strict";for(var n=[],o=0;o<256;++o)n[o]=(o+256).toString(16).substr(1);t.a=function(e,t){var r=t||0,o=n;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}},function(e,t,r){"use strict";r.d(t,"b",(function(){return o})),r.d(t,"a",(function(){return a}));var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function o(e){return e&&(e instanceof Promise||"function"==typeof e.then&&"function"==typeof e.catch)}function a(e){return!(null!==e&&"object"===(void 0===e?"undefined":n(e))&&!Array.isArray(e)&&e.constructor!==Object)}},function(e,t,r){var n=r(96),o=r(84);e.exports=function(e,t){for(var r=0,a=(t=n(t,e)).length;null!=e&&r<a;)e=e[o(t[r++])];return r&&r==a?e:void 0}},function(e,t,r){(function(t){var r="object"==typeof t&&t&&t.Object===Object&&t;e.exports=r}).call(this,r(59))},function(e,t,r){var n=r(193),o=r(209),a=r(211),i=r(212),u=r(213);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=u,e.exports=l},function(e,t,r){var n=r(47),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,r){var n=r(429),o=r(27);e.exports=function(e){return null==e?[]:n(e,o(e))}},function(e,t,r){var n=r(145);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},function(e,t){e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},function(e,t,r){var n=r(236),o=r(155)(n);e.exports=o},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t,r){var n=r(306),o=r(466),a=r(467);e.exports=function(e,t,r){return t==t?a(e,t,r):n(e,o,r)}},function(e,t){e.exports=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(o);++n<o;)a[n]=e[n+t];return a}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addHistoryPoint=void 0;var n,o,a,i,u,l,c,s,f,d,p,y=r(3),m=(v(r(89)),v(r(5)),v(r(23))),h=v(r(123)),b=r(333);function v(e){return e&&e.__esModule?e:{default:e}}function g(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var O=function(e){return function(t){var r=t.get,u=t.store,l=r((0,y.state)(n||(n=g(["history.points"]))));if(l.length>e){var c=r((0,y.state)(o||(o=g(["history.currentPoint"])))),s=l.length-e;u.set((0,y.state)(a||(a=g(["history.points"]))),l.slice(-e)),u.set((0,y.state)(i||(i=g(["history.currentPoint"]))),Math.max(0,c-s))}}},_=function(e,t){return function(r){var n=r.get,o=r.store,a=(0,b.createHistoryPoint)(e,n((0,y.state)(u||(u=g(["templates.templates"])))),n((0,y.state)(l||(l=g(["templates.defaultTemplate"])))),n((0,y.state)(c||(c=g(["templates.templateIdMap.live"]))))),i=n((0,y.state)(s||(s=g(["history.points"])))).slice(0,n((0,y.state)(f||(f=g(["history.currentPoint"]))))+1),v=(0,h.default)(i);(0,m.default)(v)||a.time-v.time>t?i.push(a):i[i.length-1]=a,o.set((0,y.state)(d||(d=g(["history.points"]))),i),o.set((0,y.state)(p||(p=g(["history.currentPoint"]))),i.length-1)}};t.addHistoryPoint=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300;return function(r){_(e,t)(r),O(200)(r)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.activateCloudPure=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return I(e,t)},t.createMissingTermPure=M,t.doApiRequest=A,t.fetchTimeoutHandler=void 0,t.hasCloudPermission=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=[];return!includes(t,e)},t.removeTokens=function(){return new Promise((function(e){h.default.ajax({type:"POST",url:et_cloud_data.ajaxurl,dataType:"json",data:{action:"et_cloud_remove_tokens",et_cloud_token_nonce:et_cloud_data.nonces.et_cloud_remove_token}})}))},t.resourceToEndpointMapping=C,t.retrieveCloudData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"layouts",r=e.isUserItems?"userItems":"predefined",n=e.pageNo,o=e.perPage,a=e.token,i=(0,s.default)(e,"orderBy","date"),u=(0,s.default)(e,"providedUrl",null),l=(0,s.default)(e,"providedBaseUrl",""),c=(0,s.default)(e,"editPermission",!1),f={providedUrl:u,providedBaseUrl:l,editPermission:c};switch(e.type){case"categoriesList":return P("categories",r,n,o,a,f);case"tagsList":return P("tags",r,n,o,a,f);case"packsList":return P("packs",r,n,o,a);case"itemsList":var d="predefined"===r||"layout"===t?"layouts":t;return j(r,d,n,o,i,a,f)}return new Promise((function(e){return e()}))},t.saveToCloudPure=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;return I().then((function(u){var l=(0,s.default)(u,"accessToken","");if(""===l)return n&&n({error:"auth_error"}),new Promise((function(e){return e({error:"auth_error"})}));var c=(0,s.default)(u,"sharedFolders",[]),d=(0,f.default)(c,["id",i]);return d&&!a&&(a="".concat(d.endpoint,"/cloud/v1")),S(l,e,t,r,n,o,a)})).catch((function(e){return n&&n({error:e}),{error:e}}))},t.saveToCloudWithToken=S,t.splitLibraryItem=function(e,t){var r=et_cloud_data,n=r.ajaxurl,o=r.nonces;return new Promise((function(r){h.default.ajax({type:"POST",url:n,dataType:"json",data:w(w({id:e},t),{},{action:"et_builder_split_library_item",et_cloud_nonce:o.et_builder_split_library_item}),success:function(e){r(e.data)}})}))},t.updateTokens=I;var n=O(r(55)),o=O(r(23)),a=O(r(29)),i=O(r(17)),u=O(r(27)),l=O(r(88)),c=O(r(12)),s=O(r(5)),f=O(r(89)),d=O(r(19)),p=O(r(511)),y=O(r(305)),m=O(r(253)),h=O(r(11)),b=r(167),v=r(337),g=r(168);function O(e){return e&&e.__esModule?e:{default:e}}function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach((function(t){T(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function T(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"user",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if("predefined"===e)return et_cloud_data.predefined_items_url;var r=(0,b.parseJWT)(t),n="invalid-token"===r?"":(0,s.default)(r,["aud",[1]],"");return"".concat(n,"/wp-json/cloud/v1")}function P(e,t,r,o,a,i){var u={},l=(0,s.default)(i,"providedUrl",null),f=(0,s.default)(i,"providedBaseUrl","");return A({type:"get",resource:e,queryString:"per_page=".concat(o,"&page=").concat(r,"&orderby=id"),source:t,accessToken:a,providedUrl:l,providedBaseUrl:f}).then((function(e){var t=e.data,r=t;return(0,n.default)(t)&&(r=e),(0,c.default)(r)||r.error||(0,d.default)(r,(function(e){var t=e.id;u[t]={},u[t].id=t,u[t].name=e.name,u[t].slug=e.slug,u[t].count=e.count,u[t].location="cloud"})),{data:u}}))}function j(e,t,r,n,o,a){var i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},u=[],l=(0,s.default)(i,"editPermission",!1),f="predefined"!==e&&l?"&status=publish,trash":"",y=(0,s.default)(i,"providedUrl",null),b=(0,s.default)(i,"providedBaseUrl",""),v="date",g="asc";switch(o){case"name":v="name";break;case"dateDesc":g="desc"}return A({type:"get",resource:t,queryString:"per_page=".concat(n,"&page=").concat(r).concat(f,"&orderBy=").concat(v,"&order=").concat(g),includeHeaders:!0,source:e,accessToken:a,providedUrl:y,providedBaseUrl:b}).then((function(t){return t.error?t:((0,d.default)(t.body,(function(t){if(t.id){var r={};if(r.id=t.id,r.date=t.date,r.name=(0,h.default)("<textarea/>").html((0,s.default)(t,"title.rendered",t.name)).text(),r.slug=t.slug,r.category_ids=(0,s.default)(t,"categories",[]),r.tag_ids=(0,s.default)(t,"tags",[]),r.is_favorite=t.is_favorite||(0,s.default)(t,"meta.et-api-cloud-favorite",!1),r.item_location="cloud",r.width=(0,c.default)((0,s.default)(t,"module_width",[]))?"regular":"fullwidth",r.subtype=(0,s.default)(t,"meta._et_pb_module_type",""),r.row_layout=(0,s.default)(t,"meta._et_pb_row_layout",""),r.isTrash="trash"===t.status,r.modified=t.modified,t.meta){var n,o=(0,s.default)(t,"meta.et-api-cloud-template-set-templates",[]);r.thumbnail=(0,s.default)(t,"meta.et-api-cloud-thumbnails.large",""),r.thumbnail_medium=(0,s.default)(t,"meta.et-api-cloud-thumbnails.medium",""),r.thumbnail_small=(0,s.default)(t,"meta.et-api-cloud-thumbnails.small",""),r.item_items=o,r.allThumbnails=(0,c.default)(o)?[]:(0,s.default)(t,"meta.et-api-cloud-thumbnails",[]),r.builtFor=null!==(n=t.meta)&&void 0!==n&&n._built_for&&""!==t.meta._built_for?t.meta._built_for:"Divi"}else r.thumbnail=(0,s.default)(t,"thumbnail","");"predefined"===e&&t.link&&(r.previewLink=t.link),t.packs&&(r.pack_id=t.packs[0],r.is_landing=(0,p.default)(t.slug,"-landing-page")||(0,p.default)(t.slug,"-landing"),r.description=(0,c.default)(t.excerpt.rendered)?"":t.excerpt.rendered),u.push(r)}})),{data:{items:(0,m.default)(u)},pagesCount:t.totalPages,itemsCount:t.totalItems,cloudCount:t.totalCloudItems})}))}function S(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],f=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,p=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"";if(0!==f)return A({type:"post",resource:t,resourceId:f,accessToken:e,providedBaseUrl:p},r).then((function(e){return o&&o(e),e}));var m=[];return(0,c.default)(n)||(0,d.default)(n,(function(t,r){(0,c.default)(t)||(0,d.default)(t,(function(t){m.push(M(t,r,e,p))}))})),"fullwidth"===r.width&&m.push(M("fullwidth","module_width",e,p)),(0,c.default)(m)?A({type:"post",resource:t,accessToken:e,providedBaseUrl:p},r).then((function(t){return o&&o(t,e),t})):Promise.all(m).then((function(n){var f=(0,y.default)(n,"taxonomy");return(0,d.default)(["categories","tags","module_width"],(function(e){var t=(0,s.default)(f,[e],[]),n=[];(0,c.default)(t)||(n=(0,i.default)((0,u.default)((0,l.default)(t,"id")),a.default)),r[e]=n})),A({type:"post",resource:t,accessToken:e,providedBaseUrl:p},r).then((function(t){return o&&o(t,e),t}))}))}function I(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return v.ETCloudCache.getOfflineCache("refreshTokenPart").then((function(r){return new Promise((function(n){h.default.ajax({type:"POST",url:et_cloud_data.ajaxurl,dataType:"json",data:{action:"et_cloud_update_tokens",et_cloud_token_nonce:et_cloud_data.nonces.et_cloud_refresh_token,et_cloud_access_token:e,et_cloud_save_session:t,et_cloud_refresh_token_part:r},complete:function(e){var t=(0,s.default)(e,"responseJSON.data",{});v.ETCloudCache.setOfflineCache("refreshTokenPart",t.refreshTokenPart).then((function(){return n(t)}))}})}))}))}function M(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return new Promise((function(a){return(0,o.default)(e)||""===e?a({}):A({type:"post",resource:t,accessToken:r,providedBaseUrl:n},{name:e}).then((function(e){if(e.error&&"term_exists"!==e.error)return a({});var r="term_exists"===(0,s.default)(e,"code","")?e.data.term_id:e.id;a({taxonomy:t,id:r})}))}))}function C(e){return(0,s.default)(g.endpointsList,e,e)}function A(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.type,n=e.resource,o=e.resourceId,a=e.source,i=e.queryString,u=e.providedUrl,l=e.providedBaseUrl,f=e.etAccount,d=e.accessToken,p=e.includeHeaders,y=u||"",m="predefined"===a&&"cloudStatus"!==n?"".concat((0,s.default)(f,"username",""),":").concat((0,s.default)(f,"apiKey","")):d,h=("predefined"!==a||"favoritePacks"===n||"layout"===n||"cloudStatus"===n)&&!u;if(!y){var b=l&&""!==l?l:E(a,m),v=C(n);y="".concat(b,"/").concat(v),o&&(y="".concat(y,"/").concat(o)),i&&(y="".concat(y,"?").concat(i))}var g={method:r,mode:"cors"};(0,c.default)(t)||(g.body=JSON.stringify(t));var O=u?{"Content-Type":"application/x-www-form-urlencoded"}:{"Content-Type":"application/json; charset=UTF-8",Accept:"application/json"};if(h){if(!m)return new Promise((function(e){return e({code:"missing_token",error:"Your Divi Cloud session has ended. Please try logging in again. If you continue to experience authorization failures, try closing Library modal and opening it again so that your authorization token can be regenerated."})}));O.Authorization="Bearer ".concat(m),g.credentials="same-origin"}return g.headers=O,k(y,g,p)}var D=function(e){var t=new AbortController;return setTimeout((function(){return t.abort()}),1e3*e),t};function k(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n="post"===t.method?300:15;return t.signal=D(n).signal,fetch(e,t).then((function(e){if(503===e.status)throw new Error("".concat(e.status," - ").concat(e.statusText));return e.json().then((function(t){return{totalPages:e.headers.get("x-wp-totalpages"),totalItems:e.headers.get("x-wp-total"),totalCloudItems:e.headers.get("X-ET-API-CLOUD-ITEM-COUNT"),body:t}}))})).then((function(e){return(0,s.default)(e,"body.code")?w({error:e.body.code},e.body):r?e:e.body})).catch((function(t){return console.log("CLOUD API REQUEST ERROR:",e,t),{error:t}}))}t.fetchTimeoutHandler=D},function(e,t,r){var n=r(254),o=r(169)((function(e,t,r){n(e,t,r)}));e.exports=o},function(e,t,r){var n=r(54),o=r(48);e.exports=function(e,t,r){(void 0!==r&&!o(e[t],r)||void 0===r&&!(t in e))&&n(e,t,r)}},function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},function(e,t,r){var n=r(301),o=r(10);e.exports=function(e,t,r,a){return null==e?[]:(o(t)||(t=null==t?[]:[t]),o(r=a?void 0:r)||(r=null==r?[]:[r]),n(e,t,r))}},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=u(r(1)),i=u(r(8));function u(e){return e&&e.__esModule?e:{default:e}}function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}var c=o.default.createContext({type:"",source:{id:null,meta:{}},target:{id:null,meta:{}},position:{viewportX:0,viewportY:0,documentX:0,documentY:0,handleX:0,handleY:0},dragStart:i.default,dragUpdate:i.default,dragEnd:i.default,setTarget:i.default});c.Provider.propTypes={value:a.default.shape({type:a.default.string.isRequired,source:a.default.shape({id:a.default.oneOfType([a.default.number,a.default.string]),meta:a.default.object.isRequired}),target:a.default.shape({id:a.default.oneOfType([a.default.number,a.default.string]),meta:a.default.object.isRequired}),position:a.default.shape({viewportX:a.default.number.isRequired,viewportY:a.default.number.isRequired,documentX:a.default.number.isRequired,documentY:a.default.number.isRequired,handleX:a.default.number.isRequired,handleY:a.default.number.isRequired}).isRequired,dragStart:a.default.func.isRequired,dragUpdate:a.default.func.isRequired,dragEnd:a.default.func.isRequired,setTarget:a.default.func.isRequired}).isRequired};var s=c;t.default=s},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),i=(o=r(174))&&o.__esModule?o:{default:o},u=["forwardedRef"];function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){O(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var o=g(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return b(this,r)}}function b(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return v(e)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _=function(e){var t=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(l,t);var r,n,o,i=h(l);function l(){var e;p(this,l);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return O(v(e=i.call.apply(i,[this].concat(r))),"state",{open:!1,left:0,top:0}),O(v(e),"open",(function(t){"contextmenu"===t.type&&(t.preventDefault(),t.stopPropagation()),e.setState({open:!0,left:t.pageX,top:t.pageY})})),O(v(e),"close",(function(){return e.setState({open:!1,left:0,top:0})})),e}return r=l,(n=[{key:"render",value:function(){var t=this.props,r=t.forwardedRef,n=d(t,u);return a.default.createElement(e,c({contextMenu:f({},this.state),openContextMenu:this.open,closeContextMenu:this.close,ref:r},n))}}])&&y(r.prototype,n),o&&y(r,o),Object.defineProperty(r,"prototype",{writable:!1}),l}(a.PureComponent);return O(t,"propTypes",f({},e.propTypes)),O(t,"defaultProps",f({},e.defaultProps)),t.displayName="WithContextMenu(".concat(e.displayName||e.name||"Component",")"),(0,i.default)(t,e),a.default.forwardRef((function(e,r){return a.default.createElement(t,c({},e,{forwardedRef:r}))}))};t.default=_},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(0)),o=a(r(8));function a(e){return e&&e.__esModule?e:{default:e}}var i=n.default.createContext({config:{api:"",etAccount:{username:"",apiKey:"",status:"not_active"}},i18n:{"API Key":"","Authentication Required":"","Import estimated time remaining: %smin":"","Load From Library":"","Premade Layouts":"",Submit:"",Username:"","Your Existing Pages":"","Your Saved Layouts":"",$noAccount:"$noAccount"},actions:{setAccountCredentials:o.default}});t.default=i},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(o,i,l):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),i=(o=r(1))&&o.__esModule?o:{default:o};function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=p(e);if(t){var o=p(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return d(this,r)}}function d(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(662);var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(i,e);var t,r,n,o=f(i);function i(){return l(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"render",value:function(){var e=this.props,t=e.label,r=e.children;return a.default.createElement("div",{className:"et-common-input-group"},t&&a.default.createElement("label",{className:"et-common-input-group__label"},t),a.default.createElement("div",{className:"et-common-input-group__content"},r))}}])&&c(t.prototype,r),n&&c(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(a.PureComponent);y(m,"propTypes",{label:i.default.string}),y(m,"defaultProps",{label:""});var h=m;t.default=h},function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"a",(function(){return u}));var n=r(2),o=r(45);function a(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}var i=["concat","get","increment","merge","pop","push","set","shift","splice","toggle","unset","unshift"];function u(e){var t=null;return Object(o.a)(i.reduce((function(e,r){return e[r]=function(){for(var e=this,o=this.context.controller.model,a=arguments.length,i=Array(a),u=0;u<a;u++)i[u]=arguments[u];var l=Object(n.h)(Object(n.c)(i.shift()));return"get"===r?(Object(n.a)("state.get","use the new GET provider, get(state.foo)"),o.get(l)):(Object(n.a)("state.*","use the new STORE provider, store.set(state.isAwesome, true)"),this.context.controller.flush&&(clearTimeout(t),t=setTimeout((function(){return e.context.controller.flush()}))),o[r].apply(o,[l].concat(i)))},e}),{}),{wrap:!!e&&function(e,t){var r=null;return i.reduce((function(o,i){if("get"===i||"compute"===i)o[i]=function(t){return Object(n.a)("state.get","use the new GET provider, get(state.foo)"),e.controller.model[i](Object(n.h)(Object(n.c)(t)))};else{var u=e.controller.model[i];o[i]=function(){for(var o=arguments.length,l=Array(o),c=0;c<o;c++)l[c]=arguments[c];Object(n.a)("state.*","use the new STORE provider, store.set(state.isAwesome, true)");var s=l.slice(),f=Object(n.h)(s.shift());e.debugger.send({datetime:Date.now(),type:"mutation",color:"#333",method:i,args:[f].concat(a(s))}),e.controller.flush&&(clearTimeout(r),r=setTimeout((function(){return e.controller.flush()})));try{u.apply(e.controller.model,[f].concat(a(s)))}catch(r){var d=e.execution.name;Object(n.y)('The sequence "'+d+'" with action "'+t.name+'" has an error: '+r.message)}}}return o}),{})}})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(5)),o=a(r(280));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){var r=(0,n.default)(e,t,"");for(var a=arguments.length,i=new Array(a>2?a-2:0),u=2;u<a;u++)i[u-2]=arguments[u];return i.length>0?o.default.apply(void 0,[r].concat(i)):r}},function(e,t){var r=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,r){var n=r(215)();e.exports=n},function(e,t,r){var n=r(216),o=r(75),a=r(10),i=r(76),u=r(64),l=r(87),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=a(e),s=!r&&o(e),f=!r&&!s&&i(e),d=!r&&!s&&!f&&l(e),p=r||s||f||d,y=p?n(e.length,String):[],m=y.length;for(var h in e)!t&&!c.call(e,h)||p&&("length"==h||f&&("offset"==h||"parent"==h)||d&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||u(h,m))||y.push(h);return y}},function(e,t,r){var n=r(77),o=r(409),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))a.call(e,r)&&"constructor"!=r&&t.push(r);return t}},function(e,t){e.exports=function(e,t){return function(r){return e(t(r))}}},function(e,t,r){var n=r(117),o=r(414),a=r(415);function i(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}i.prototype.add=i.prototype.push=o,i.prototype.has=a,e.exports=i},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,r){var n=r(20).Uint8Array;e.exports=n},function(e,t){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},function(e,t){e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if(!document.documentMode&&!window.StyleMedia&&!n)return new window.File(e,t,r);var o=new Blob(e,r);return o.lastModified=Date.now(),o.name=t,o};var n=navigator.userAgent.indexOf("Safari")>-1&&-1===navigator.userAgent.indexOf("Chrome")},function(e,t){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}},function(e,t,r){var n=r(102),o=r(149),a=r(104),i=r(298),u=r(430),l=r(151),c=r(70),s=r(431),f=r(432),d=r(285),p=r(235),y=r(66),m=r(433),h=r(434),b=r(153),v=r(10),g=r(76),O=r(438),_=r(15),w=r(440),T=r(27),E=r(69),P="[object Arguments]",j="[object Function]",S="[object Object]",I={};I[P]=I["[object Array]"]=I["[object ArrayBuffer]"]=I["[object DataView]"]=I["[object Boolean]"]=I["[object Date]"]=I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Map]"]=I["[object Number]"]=I[S]=I["[object RegExp]"]=I["[object Set]"]=I["[object String]"]=I["[object Symbol]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I["[object Error]"]=I[j]=I["[object WeakMap]"]=!1,e.exports=function e(t,r,M,C,A,D){var k,R=1&r,x=2&r,L=4&r;if(M&&(k=A?M(t,C,A,D):M(t)),void 0!==k)return k;if(!_(t))return t;var B=v(t);if(B){if(k=m(t),!R)return c(t,k)}else{var N=y(t),U=N==j||"[object GeneratorFunction]"==N;if(g(t))return l(t,R);if(N==S||N==P||U&&!A){if(k=x||U?{}:b(t),!R)return x?f(t,u(k,t)):s(t,i(k,t))}else{if(!I[N])return A?t:{};k=h(t,N,R)}}D||(D=new n);var W=D.get(t);if(W)return W;D.set(t,k),w(t)?t.forEach((function(n){k.add(e(n,r,M,n,t,D))})):O(t)&&t.forEach((function(n,o){k.set(o,e(n,r,M,o,t,D))}));var F=B?void 0:(L?x?p:d:x?E:T)(t);return o(F||t,(function(n,o){F&&(n=t[o=n]),a(k,o,e(n,r,M,o,t,D))})),k}},function(e,t,r){(function(e){var n=r(20),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=a&&a.exports===o?n.Buffer:void 0,u=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=u?u(r):new e.constructor(r);return e.copy(n),n}}).call(this,r(86)(e))},function(e,t,r){var n=r(120);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},function(e,t,r){var n=r(106),o=r(105),a=r(77);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:n(o(e))}},function(e,t,r){var n=r(121),o=Math.max;e.exports=function(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var a=arguments,i=-1,u=o(a.length-t,0),l=Array(u);++i<u;)l[i]=a[t+i];i=-1;for(var c=Array(t+1);++i<t;)c[i]=a[i];return c[t]=r(l),n(e,this,c)}}},function(e,t){var r=Date.now;e.exports=function(e){var t=0,n=0;return function(){var o=r(),a=16-(o-n);if(n=o,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,r){var n=r(284),o=r(37),a=r(446),i=r(10),u=r(53);e.exports=function(e,t,r){var l=i(e)?n:a;return r&&u(e,t,r)&&(t=void 0),l(e,o(t,3))}},function(e,t,r){var n=r(306),o=r(37),a=r(29),i=Math.max;e.exports=function(e,t,r){var u=null==e?0:e.length;if(!u)return-1;var l=null==r?0:a(r);return l<0&&(l=i(u+l,0)),n(e,o(t,3),l)}},function(e,t,r){var n=r(312),o=r(457),a=r(458),i=r(314),u=r(469),l=r(242),c=r(470),s=r(320),f=r(321),d=r(29),p=Math.max;e.exports=function(e,t,r,y,m,h,b,v){var g=2&t;if(!g&&"function"!=typeof e)throw new TypeError("Expected a function");var O=y?y.length:0;if(O||(t&=-97,y=m=void 0),b=void 0===b?b:p(d(b),0),v=void 0===v?v:d(v),O-=m?m.length:0,64&t){var _=y,w=m;y=m=void 0}var T=g?void 0:l(e),E=[e,t,r,y,m,_,w,h,b,v];if(T&&c(E,T),e=E[0],t=E[1],r=E[2],y=E[3],m=E[4],!(v=E[9]=void 0===E[9]?g?0:e.length:p(E[9]-O,0))&&24&t&&(t&=-25),t&&1!=t)P=8==t||16==t?a(e,t,v):32!=t&&33!=t||m.length?i.apply(void 0,E):u(e,t,r,y);else var P=o(e,t,r);return f((T?n:s)(P,E),e,t)}},function(e,t,r){var n=r(106),o=r(15);e.exports=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=n(e.prototype),a=e.apply(r,t);return o(a)?a:r}}},function(e,t,r){var n=r(124);e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},function(e,t){var r="__lodash_placeholder__";e.exports=function(e,t){for(var n=-1,o=e.length,a=0,i=[];++n<o;){var u=e[n];u!==t&&u!==r||(e[n]=r,i[a++]=n)}return i}},function(e,t,r){var n=r(245),o=r(154),a=r(122);e.exports=function(e){return a(o(e,void 0,n),e+"")}},function(e,t,r){var n=r(483),o=r(248),a=r(484);e.exports=function(e){return o(e)?a(e):n(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateDomainToken=t.updateCloudToken=t.unblockInteractions=t.setUnsavedDraftChanges=t.setUnsavedChanges=t.setCloudStatus=t.save=t.resetThemeBuilder=t.loadDraft=t.enableReload=t.enableAutosave=t.discardDraft=t.disableReload=t.closeCurrentModal=t.blockInteractions=void 0;var n,o,a,i,u,l,c,s,f,d,p,y,m,h,b,v,g,O,_,w,T,E,P,j,S,I,M,C,A,D,k,R,x,L,B,N,U,W,F,z,H,Y,V,q,G=ne(r(8)),$=ne(r(38)),K=ne(r(27)),Z=ne(r(505)),X=r(3),J=r(35),Q=r(4),ee=ne(r(7)),te=r(34),re=r(126);function ne(e){return e&&e.__esModule?e:{default:e}}function oe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ae(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(r),!0).forEach((function(t){ie(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ie(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ue(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var le=[function(e){var t=e.get;switch(t((0,X.state)(n||(n=ue(["openModal"]))))){case Q.MODAL_TYPE_HISTORY:return t((0,X.sequences)(o||(o=ue(["history.closeHistory"]))))();case Q.MODAL_TYPE_VISUAL_BUILDER:return t((0,X.sequences)(a||(a=ue(["visualBuilder.closeVisualBuilder"]))))();case Q.MODAL_TYPE_DIVI_LIBRARY:return t((0,X.sequences)(i||(i=ue(["diviLibrary.closeDiviLibrary"]))))();case Q.MODAL_TYPE_THEME_BUILDER_LIBRARY:return t((0,X.sequences)(u||(u=ue(["themeBuilderLibrary.closeThemeBuilderLibrary"]))))();case Q.MODAL_TYPE_PORTABILITY:return t((0,X.sequences)(l||(l=ue(["portability.closePortability"]))))();case Q.MODAL_TYPE_SAVE_TO_LIBRARY:return t((0,X.sequences)(c||(c=ue(["librarySave.closeSaveToLibraryModal"]))))()}}];t.closeCurrentModal=le;var ce=[(0,J.set)((0,X.state)(s||(s=ue(["interactive"]))),!1)];t.blockInteractions=ce;var se=[(0,J.set)((0,X.state)(f||(f=ue(["interactive"]))),!0)];t.unblockInteractions=se;var fe=[(0,J.set)((0,X.state)(d||(d=ue(["reload"]))),!0)];t.enableReload=fe;var de=[(0,J.set)((0,X.state)(p||(p=ue(["reload"]))),!1)];t.disableReload=de;var pe=[function(e){var t=e.get,r=e.store;t((0,X.state)(y||(y=ue(["unsavedChanges"]))))||r.set((0,X.state)(m||(m=ue(["unsavedChanges"]))),!0)}];t.setUnsavedChanges=pe;var ye=[function(e){var t=e.get,r=e.store;t((0,X.state)(h||(h=ue(["unsavedDraftChanges"]))))||r.set((0,X.state)(b||(b=ue(["unsavedDraftChanges"]))),!0)}];t.setUnsavedDraftChanges=ye;var me=[(0,J.set)((0,X.state)(v||(v=ue(["autosave"]))),!0)];t.enableAutosave=me;var he=[function(e){return e.api.dropAutosave().catch(G.default)},me];t.discardDraft=he;var be=[function(e){var t=e.get,r=e.store,n=t((0,X.state)(g||(g=ue(["templates.draft"]))));r.set((0,X.state)(O||(O=ue(["templates.templates"]))),n.templates),r.set((0,X.state)(_||(_=ue(["templates.templateIdMap.draft"]))),n.idMap)},(0,re.addHistoryPoint)((0,ee.default)("themeBuilder","Restored draft")),me];t.loadDraft=be;var ve=[function(e){var t=e.get,r=e.path;return t((0,X.state)(w||(w=ue(["saveState"]))))===Q.SAVE_STATE_IDLE?r.success():r.error()},{error:[],success:[(0,J.set)((0,X.state)(T||(T=ue(["unsavedDraftChanges"]))),!1),(0,J.when)((0,X.props)(E||(E=ue(["draft"])))),{true:[],false:[(0,J.set)((0,X.state)(P||(P=ue(["unsavedChanges"]))),!1)]},(0,J.set)((0,X.state)(j||(j=ue(["saveState"]))),Q.SAVE_STATE_LOADING),function(e){var t=e.api,r=e.get,n=e.path,o=e.props.draft,a=e.store,i=r((0,X.state)(S||(S=ue(["templates.templates"])))),u=o?"draft":"live",l=r((0,X.state)(I||(I=ue(["templates.templateIdMap.",""])),u)),c=(0,te.removePlaceholderTemplates)(i),s=(0,te.formatTemplatesForStorage)(c,l),f=r((0,X.state)(M||(M=ue(["libraryItem.themeBuilderId"])))),d=r((0,X.state)(C||(C=ue(["libraryItem.itemId"])))),p={};f&&d&&(p.library_theme_builder_id=f,p.library_item_id=d);return t.save(o,s,p,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0,r=(0,Z.default)(e/t*100);a.set((0,X.state)(A||(A=ue(["saveProgress"]))),r)})).then((function(e){return(0,K.default)(e.updatedTemplateIds).length>0&&a.set((0,X.state)(D||(D=ue(["templates.templateIdMap.",""])),u),ae(ae({},l),(0,$.default)(e.updatedTemplateIds,(function(e){return e.toString()})))),o||a.set((0,X.state)(k||(k=ue(["templates.templateIdMap.draft"]))),{}),n.success()})).catch((function(){return n.error()}))},{success:[(0,J.set)((0,X.state)(R||(R=ue(["saveState"]))),Q.SAVE_STATE_SUCCESS)],error:[(0,J.set)((0,X.state)(x||(x=ue(["unsavedDraftChanges"]))),!0),(0,J.when)((0,X.props)(L||(L=ue(["draft"])))),{true:[],false:[(0,J.set)((0,X.state)(B||(B=ue(["unsavedChanges"]))),!0)]},(0,J.set)((0,X.state)(N||(N=ue(["saveState"]))),Q.SAVE_STATE_ERROR)]},(0,J.wait)(1e3),(0,J.set)((0,X.state)(U||(U=ue(["saveState"]))),Q.SAVE_STATE_IDLE)]}];t.save=ve;var ge=[ce,(0,J.set)((0,X.state)(W||(W=ue(["unsavedChanges"]))),!1),function(e){return e.api.reset().catch(G.default)},function(){return window.location.reload()}];t.resetThemeBuilder=ge;var Oe=(0,X.sequence)("Set Cloud Status",[(0,J.set)((0,X.state)(F||(F=ue(["cloudStatus"]))),(0,X.props)(z||(z=ue(["cloudStatus"]))))]);t.setCloudStatus=Oe;var _e=(0,X.sequence)("Update Cloud Token",[(0,J.set)((0,X.state)(H||(H=ue(["cloudToken"]))),(0,X.props)(Y||(Y=ue(["cloudToken"]))))]);t.updateCloudToken=_e;var we=(0,X.sequence)("Update Domain Token",[(0,J.set)((0,X.state)(V||(V=ue(["domainToken"]))),(0,X.props)(q||(q=ue(["domainToken"]))))]);t.updateDomainToken=we},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetPortabilityState=t.openPortabilityToExportTemplate=t.openPortability=t.importThemeBuilderStepLoop=t.importThemeBuilder=t.exportThemeBuilderStepLoop=t.exportThemeBuilderItem=t.exportThemeBuilder=t.exportTBLibraryItem=t.closePortability=t.closeItemExportModal=t.cancelThemeBuilderImport=void 0;var n,o,a,i,u,l,c,s,f,d,p,y,m,h,b,v,g,O,_,w,T,E,P,j,S,I,M,C,A,D,k,R,x,L,B,N,U,W,F,z,H,Y,V,q,G,$,K,Z,X,J,Q,ee,te,re,ne,oe,ae,ie,ue,le,ce,se,fe,de,pe,ye,me,he,be,ve,ge,Oe,_e,we,Te,Ee,Pe,je,Se,Ie,Me,Ce,Ae,De,ke,Re,xe,Le,Be,Ne,Ue,We,Fe,ze,He,Ye,Ve,qe,Ge,$e,Ke,Ze,Xe,Je,Qe,et,tt,rt,nt,ot,at,it=r(3),ut=r(35),lt=At(r(166)),ct=At(r(32)),st=At(r(89)),ft=At(r(19)),dt=At(r(5)),pt=At(r(12)),yt=At(r(88)),mt=At(r(17)),ht=At(r(38)),bt=At(r(119)),vt=At(r(16)),gt=(At(r(51)),r(4)),Ot=At(r(13)),_t=At(r(7)),wt=r(34),Tt=r(73),Et=r(250),Pt=r(231),jt=r(232),St=r(126),It=r(103),Mt=r(127),Ct=r(515);function At(e){return e&&e.__esModule?e:{default:e}}function Dt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function kt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Dt(Object(r),!0).forEach((function(t){Rt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Rt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Lt=[(0,ut.set)((0,it.state)(n||(n=xt(["portability.state"]))),gt.PORTABILITY_STATE_DEFAULT)];t.resetPortabilityState=Lt;var Bt=[(0,Tt.openModal)(gt.MODAL_TYPE_PORTABILITY)];t.openPortability=Bt;var Nt=[(0,ut.set)((0,it.state)(o||(o=xt(["portability.export.templateId"]))),(0,it.props)(a||(a=xt(["templateId"])))),(0,ut.set)((0,it.state)(i||(i=xt(["portability.state"]))),gt.PORTABILITY_STATE_EXPORT_TEMPLATE),Bt];t.openPortabilityToExportTemplate=Nt;var Ut=[(0,ut.set)((0,it.state)(u||(u=xt(["portability.export.templateId"]))),(0,it.props)(l||(l=xt(["itemId"])))),(0,ut.set)((0,it.state)(c||(c=xt(["portability.export.libraryItemType"]))),(0,it.props)(s||(s=xt(["itemType"])))),(0,ut.set)((0,it.state)(f||(f=xt(["portability.export.cloudContent"]))),(0,it.props)(d||(d=xt(["content"])))),(0,ut.set)((0,it.state)(p||(p=xt(["portability.state"]))),gt.PORTABILITY_STATE_EXPORT_TEMPLATE),(0,ut.set)((0,it.state)(y||(y=xt(["portability.export.state"]))),null),(0,It.openPrompt)({type:gt.PROMPT_TYPE_ITEM_EXPORT_MODAL}),(0,ut.equals)((0,it.props)(m||(m=xt(["itemType"])))),{template:[(0,ut.set)((0,it.state)(h||(h=xt(["portability.export.items"]))),(0,it.props)(b||(b=xt(["items"]))))],set:[(0,ut.when)((0,it.props)(v||(v=xt(["content"]))),(function(e){return(0,pt.default)(e)})),{true:[Pt.setTBLibraryPresetItems],false:[(0,ut.set)((0,it.state)(g||(g=xt(["portability.export.items"]))),(0,it.props)(O||(O=xt(["items"]))))]}],otherwise:[]}];t.exportTBLibraryItem=Ut;var Wt=[(0,ut.set)((0,it.state)(_||(_=xt(["portability.export.state"]))),gt.EXPORT_STATE_IDLE),(0,ut.set)((0,it.state)(w||(w=xt(["portability.export.libraryItemType"]))),null)];t.closeItemExportModal=Wt;var Ft=[function(e){var t=e.get,r=e.path;return t((0,it.state)(T||(T=xt(["portability.loading"]))))?r.error():r.success()},{success:[(0,ut.set)((0,it.state)(E||(E=xt(["portability.state"]))),gt.PORTABILITY_STATE_DEFAULT),(0,ut.set)((0,it.state)(P||(P=xt(["portability.export.templateId"]))),""),(0,ut.set)((0,it.state)(j||(j=xt(["portability.export.libraryItemType"]))),null),(0,Tt.closeModal)(gt.MODAL_TYPE_PORTABILITY)],error:[]}];t.closePortability=Ft;var zt=[function(e){var t=e.api,r=e.get,n=e.store,o=e.props.chunk,a=void 0===o?0:o,i=r((0,it.state)(S||(S=xt(["portability.export.id"])))),u=r((0,it.state)(I||(I=xt(["portability.export.step"])))),l=r((0,it.state)(M||(M=xt(["portability.export.steps"]))));return t.continueThemeBuilderExport(i,u,a).then((function(e){var t=e.chunks;return a+1<t?r((0,it.sequences)(C||(C=xt(["portability.exportThemeBuilderStepLoop"]))))({chunk:a+1}):u+1>=l?lt.default.resolve():(n.set((0,it.state)(A||(A=xt(["portability.export.step"]))),u+1),r((0,it.sequences)(D||(D=xt(["portability.exportThemeBuilderStepLoop"]))))())}))}];t.exportThemeBuilderStepLoop=zt;var Ht=[function(e){var t=e.api,r=e.path,n=e.props,o=n.templates,a=n.globalLayouts;return t.startThemeBuilderExport(o,a).then((function(e){return r.success({id:e.id,steps:e.steps})})).catch((function(){return r.error()}))},{success:[(0,ut.set)((0,it.state)(k||(k=xt(["portability.export.id"]))),(0,it.props)(R||(R=xt(["id"])))),(0,ut.set)((0,it.state)(x||(x=xt(["portability.export.steps"]))),(0,it.props)(L||(L=xt(["steps"])))),function(e){var t=e.get,r=e.path;return t((0,it.sequences)(B||(B=xt(["portability.exportThemeBuilderStepLoop"]))))().then((function(){return r.success()})).catch((function(){return r.error()}))},{success:[function(e){var t=e.get,r=e.store,n=t((0,it.state)(N||(N=xt(["unsavedChanges"]))));return n&&r.set((0,it.state)(U||(U=xt(["unsavedChanges"]))),!1),{unsavedChanges:n}},(0,ut.wait)(0),function(e){var t=e.api,r=e.props,n=r.id,o=r.filename,a=r.download,i=encodeURI(t.getThemeBuilderExportDownloadUrl(n,o));return a&&window.location.assign(i),{exportDowmloadURL:i}},(0,ut.wait)(0),(0,ut.set)((0,it.state)(W||(W=xt(["unsavedChanges"]))),(0,it.props)(F||(F=xt(["unsavedChanges"])))),(0,ut.set)((0,it.state)(z||(z=xt(["portability.export.state"]))),gt.EXPORT_STATE_SUCCESS),function(){return{exportSuccessful:!0}}],error:[(0,ut.set)((0,it.state)(H||(H=xt(["portability.export.state"]))),gt.EXPORT_STATE_ERROR)]},(0,ut.set)((0,it.state)(Y||(Y=xt(["portability.export.id"]))),""),(0,ut.set)((0,it.state)(V||(V=xt(["portability.export.step"]))),0),(0,ut.set)((0,it.state)(q||(q=xt(["portability.export.steps"]))),0)],error:[(0,ut.set)((0,it.state)(G||(G=xt(["portability.export.state"]))),gt.EXPORT_STATE_ERROR)]},(0,ut.wait)(1e3),(0,ut.set)((0,it.state)($||($=xt(["portability.export.state"]))),gt.EXPORT_STATE_IDLE)],Yt=[function(){return{exportSuccessful:!1}},function(e){var t=e.get,r=e.path,n=e.props,o=n.exportAll,a=n.exportTemplates,i=t((0,it.state)(K||(K=xt(["templates.templates"])))),u=(0,bt.default)(i);if(o||(u=(0,ct.default)(u,(function(e){return-1!==a.indexOf(e.id)}))),u=(0,wt.formatTemplatesForStorage)(u,{}),(0,pt.default)(u))return r.nothingToExport();var l=t((0,it.state)(Z||(Z=xt(["templates.defaultTemplate"]))));return r.export({templates:u,globalLayouts:(0,ht.default)((0,yt.default)(gt.LAYOUT_TYPES),(function(e){return t((0,it.state)(X||(X=xt(["templates.templates.",".layouts.",".layout"])),l,e))||0}))})},{export:[(0,ut.set)((0,it.state)(J||(J=xt(["portability.export.state"]))),gt.EXPORT_STATE_LOADING),Ht],nothingToExport:[function(){return{exportSuccessful:!0}}]}];t.exportThemeBuilder=Yt;var Vt=[function(){return{exportSuccessful:!1}},function(e){var t=e.get,r=e.path,n=e.props,o=n.exportAll,a=n.exportTemplates,i=(0,bt.default)(t((0,it.state)(Q||(Q=xt(["portability.export.items"]))))),u=t((0,it.state)(ee||(ee=xt(["portability.export.cloudContent"]))));if(o||(i=(0,ct.default)(i,(function(e){return-1!==a.indexOf((0,vt.default)(e.id))})),u&&(u.templates=(0,ct.default)(u.templates,(function(e){return-1!==a.indexOf((0,vt.default)(e.id))})))),i=(0,wt.formatTemplatesForStorage)(i,{}),(0,pt.default)(i))return r.nothingToExport();var l=t((0,it.state)(te||(te=xt(["templates.defaultTemplate"]))));return r.export({templates:i,cloudContent:u,globalLayouts:(0,ht.default)((0,yt.default)(gt.LAYOUT_TYPES),(function(e){return t((0,it.state)(re||(re=xt(["templates.templates.",".layouts.",".layout"])),l,e))||0}))})},{export:[(0,ut.set)((0,it.state)(ne||(ne=xt(["portability.export.state"]))),gt.EXPORT_STATE_LOADING),function(e){var t=e.api,r=e.path,n=e.props,o=n.templates,a=n.cloudContent;return t.saveTempDraft(o,a).then((function(e){return r.success({templates:e.templates,globalLayouts:e.global_layouts})})).catch((function(){r.error()}))},{success:[Ht,(0,It.closePrompt)(),function(e){var t=e.api,r=e.props.templates;return t.removeTempDraft(r)},(0,ut.set)((0,it.state)(oe||(oe=xt(["portability.state"]))),gt.PORTABILITY_STATE_DEFAULT),(0,ut.set)((0,it.state)(ae||(ae=xt(["portability.export.templateId"]))),""),(0,ut.set)((0,it.state)(ie||(ie=xt(["portability.export.libraryItemType"]))),null)],error:[(0,ut.set)((0,it.state)(ue||(ue=xt(["portability.export.state"]))),gt.EXPORT_STATE_ERROR)]}],nothingToExport:[function(){return{exportSuccessful:!0}}]}];t.exportThemeBuilderItem=Vt;var qt=[function(e){var t=e.api,r=e.get,n=e.store,o=e.props.chunk,a=void 0===o?0:o,i=r((0,it.state)(le||(le=xt(["portability.import.id"])))),u=r((0,it.state)(ce||(ce=xt(["portability.import.importStep"])))),l=r((0,it.state)(se||(se=xt(["portability.import.importSteps"]))));return t.continueThemeBuilderImport(i,u,a).then((function(e){var t=e.chunks;return a+1<t?r((0,it.sequences)(fe||(fe=xt(["portability.importThemeBuilderStepLoop"]))))({chunk:a+1}):u+1>=l?lt.default.resolve({importStepSuccess:!0,importTemplates:e.templates,settings:e.templateSettings,importPresetId:e.presetId}):(n.set((0,it.state)(de||(de=xt(["portability.import.importStep"]))),u+1),r((0,it.sequences)(pe||(pe=xt(["portability.importThemeBuilderStepLoop"]))))())})).catch((function(){return lt.default.resolve({importStepSuccess:!1})}))}];t.importThemeBuilderStepLoop=qt;var Gt=[(0,ut.when)((0,it.props)(ye||(ye=xt(["backup"])))),{true:[function(){return{exportAll:!0,exportTemplates:[],download:!0}},Yt,(0,ut.set)((0,it.state)(me||(me=xt(["portability.import.backupStep"]))),(0,it.props)(he||(he=xt(["steps"])))),(0,ut.set)((0,it.state)(be||(be=xt(["portability.import.backupSteps"]))),(0,it.props)(ve||(ve=xt(["steps"]))))],false:[function(){return{exportSuccessful:!0}}]}],$t=function(e,t){var r=function(e,r){var n=e.layouts[r].id;return n="use_global"===(n=0!==n?n.toString():null)?t[r]:n};return{title:e.default||e.autogenerated_title?"":e.title,automaticTitle:e.autogenerated_title?e.title:"",default:!1,enabled:e.enabled,useOn:e.use_on,excludeFrom:e.exclude_from,layouts:(0,ht.default)((0,yt.default)(gt.LAYOUT_TYPES),(function(t){return{layout:r(e,t),enabled:e.layouts[t].enabled,busy:!1}}))}},Kt=[function(e){var t=e.get,r=e.path;return t((0,it.sequences)(Te||(Te=xt(["portability.importThemeBuilderStepLoop"]))))().then((function(e){return e.importStepSuccess?r.success(e):r.error()}))},{success:[function(e){var t=e.get,r=e.store;t((0,it.state)(Ee||(Ee=xt(["portability.import.state"]))))!==gt.IMPORT_STATE_ERROR&&r.set((0,it.state)(Pe||(Pe=xt(["portability.import.state"]))),gt.IMPORT_STATE_SUCCESS)},(0,ut.wait)(1e3),(0,ut.set)((0,it.state)(je||(je=xt(["portability.import.state"]))),gt.IMPORT_STATE_IDLE),Ft,(0,It.closePrompt)(),Et.addNewTemplateSettings,function(e){var t=e.get,r=e.props,n=r.importTemplates,o=r.overrideDefaultWebsiteTemplate,a=r.overrideTemplateSettings,i=(r.incomingLayoutDuplicateDecision,r.libraryTemplateImport),u=void 0!==i&&i,l=e.store;if(!u){var c=t((0,it.state)(Se||(Se=xt(["templates.defaultTemplate"])))),s=(0,ht.default)((0,yt.default)(gt.LAYOUT_TYPES),(function(e){return t((0,it.state)(Ie||(Ie=xt(["templates.templates.",".layouts.",".layout"])),c,e))}));if(o){var f=(0,st.default)(n,"default");(0,pt.default)(f)||(s=function(e,t,r,n,o){var a=n((0,it.state)(ge||(ge=xt(["templates.templates.",""])),t)),i=n((0,it.state)(Oe||(Oe=xt(["templates.templates"])))),u=$t(e,r),l=(0,ht.default)((0,yt.default)(gt.LAYOUT_TYPES),(function(e){return u.layouts[e].layout}));return o.set((0,it.state)(_e||(_e=xt(["templates.templates.",""])),t),kt(kt({},a),{},{title:"",automaticTitle:"",enabled:u.enabled,layouts:u.layouts})),(0,ft.default)(i,(function(e){e.default||(0,ft.default)(gt.LAYOUT_TYPES,(function(t){null!==e.layouts[t].layout&&e.layouts[t].layout===r[t]&&o.set((0,it.state)(we||(we=xt(["templates.templates.",".layouts.",".layout"])),e.id,t),l[t])}))})),l}(f,c,s,t,l))}return lt.default.all((0,mt.default)(n,(function(e){return e.default&&o?lt.default.resolve():t((0,it.sequences)(Me||(Me=xt(["templates.addTemplate"]))))({overrideTemplateSettings:a,settings:$t(e,s),addGlobalLayouts:!1,createHistoryPoint:!1})}))).then((function(){}))}},(0,St.addHistoryPoint)((0,_t.default)("themeBuilder","Imported templates"))],error:[(0,ut.set)((0,it.state)(Ce||(Ce=xt(["portability.import.state"]))),gt.IMPORT_STATE_ERROR)]}],Zt=[(0,ut.set)((0,it.state)(Ae||(Ae=xt(["portability.import.state"]))),gt.IMPORT_STATE_LOADING),function(e){var t=e.get,r=e.store,n=e.props.file;return(0,Mt.updateTokens)().then((function(e){var o=e.accessToken,a=function(e){if(e.error)return r.set((0,it.state)(De||(De=xt(["portability.import.state"]))),gt.IMPORT_STATE_ERROR),void(0,Ct.handleCloudError)(e,t,r,null);r.set((0,it.state)(ke||(ke=xt(["portability.import.state"]))),gt.IMPORT_STATE_SUCCESS),setTimeout((function(){return r.pop((0,it.state)(Re||(Re=xt(["prompts.prompts"]))))}),1500),window.ETCloudApp.emitSignal({signal:"refreshCloudItems",data:{}})};if((0,pt.default)(o))r.set((0,it.state)(Le||(Le=xt(["cloudStatus"]))),{error:"auth_error"}),r.set((0,it.state)(Be||(Be=xt(["portability.import.state"]))),gt.IMPORT_STATE_ERROR);else{r.set((0,it.state)(xe||(xe=xt(["cloudToken"]))),o);var i=new FileReader;i.readAsText(n),i.onload=function(){var e=JSON.parse(i.result),t=e.templates.length>1,r={title:n.name.replace(".json",""),content:i.result,status:"publish",meta:{}},u="tb_template";t&&(u="tb_set",r.meta={"et-api-cloud-template-set-templates":(0,mt.default)(e.templates,(function(e){return{id:0,name:e.title}}))});var l=window.ETCloudApp.getActiveFolderEndpoint();(0,Mt.doApiRequest)({type:"post",resource:u,accessToken:o,providedBaseUrl:l},r).then(a)}}}))}],Xt=[(0,ut.set)((0,it.state)(Ne||(Ne=xt(["portability.import.state"]))),gt.IMPORT_STATE_LOADING),function(e){var t=e.api,r=e.path,n=e.props,o=n.file,a=n.overrideDefaultWebsiteTemplate,i=n.incomingLayoutDuplicateDecision,u=void 0===i?"":i,l=n.importPresets,c=void 0!==l&&l,s=n.libraryTemplateImport,f=void 0!==s&&s,d=n.cloudItemEditor,p=n.tempImport,y=void 0!==p&&p;return t.startThemeBuilderImport(o,a,u,c,f,d,y).then((function(e){return r.success({importId:e.id,importSteps:e.steps})})).catch((function(e){return(0,dt.default)(e,"code")===Ot.default.apiErrors.portabilityRequireIncomingLayoutDuplicateDecision?r.promptIncomingLayoutDuplicateDecision():r.error()}))},{success:[(0,ut.set)((0,it.state)(Ue||(Ue=xt(["portability.import.id"]))),(0,it.props)(We||(We=xt(["importId"])))),(0,ut.set)((0,it.state)(Fe||(Fe=xt(["portability.import.importStep"]))),0),(0,ut.set)((0,it.state)(ze||(ze=xt(["portability.import.importSteps"]))),(0,it.props)(He||(He=xt(["importSteps"])))),Gt,(0,ut.when)((0,it.props)(Ye||(Ye=xt(["exportSuccessful"])))),{true:[Kt],false:[(0,ut.set)((0,it.state)(Ve||(Ve=xt(["portability.import.state"]))),gt.IMPORT_STATE_ERROR)]},(0,ut.set)((0,it.state)(qe||(qe=xt(["portability.import.id"]))),""),(0,ut.set)((0,it.state)(Ge||(Ge=xt(["portability.import.backupStep"]))),0),(0,ut.set)((0,it.state)($e||($e=xt(["portability.import.backupSteps"]))),0),(0,ut.set)((0,it.state)(Ke||(Ke=xt(["portability.import.importStep"]))),0),(0,ut.set)((0,it.state)(Ze||(Ze=xt(["portability.import.importSteps"]))),0),function(){return{importSuccessful:!0}}],promptIncomingLayoutDuplicateDecision:[(0,ut.set)((0,it.state)(Xe||(Xe=xt(["portability.import.state"]))),gt.IMPORT_STATE_INCOMING_LAYOUT_DUPLICATE_DECISION)],error:[(0,ut.set)((0,it.state)(Je||(Je=xt(["portability.import.state"]))),gt.IMPORT_STATE_ERROR)]},function(e){var t=e.get,r=e.path;return t((0,it.state)(Qe||(Qe=xt(["portability.import.state"]))))!==gt.IMPORT_STATE_INCOMING_LAYOUT_DUPLICATE_DECISION?r.resolve():r.cancel()},{resolve:[(0,ut.wait)(1e3),(0,ut.set)((0,it.state)(et||(et=xt(["portability.import.state"]))),gt.IMPORT_STATE_IDLE),(0,ut.when)((0,it.state)(tt||(tt=xt(["themeBuilderLibrary.loaded"])))),{true:[function(e){var t=e.store;(0,jt.emitNewItemAdded)(),t.set((0,it.state)(rt||(rt=xt(["themeBuilderLibrary.loaded"]))),!1)},Pt.loadThemeBuilderItems],false:[]}],cancel:[]}],Jt=[(0,ut.when)((0,it.props)(nt||(nt=xt(["importToCloud"])))),{true:[Zt],false:[Xt]}],Qt=[(0,ut.when)((0,it.props)(ot||(ot=xt(["file"])))),{true:[Jt],false:[]}];t.importThemeBuilder=Qt;var er=[(0,ut.set)((0,it.state)(at||(at=xt(["portability.import.state"]))),gt.IMPORT_STATE_IDLE)];t.cancelThemeBuilderImport=er},function(e,t,r){(function(t,r){var n;n=function(){"use strict";function e(e){return"function"==typeof e}var n=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},o=0,a=void 0,i=void 0,u=function(e,t){y[o]=e,y[o+1]=t,2===(o+=2)&&(i?i(m):O())},l="undefined"!=typeof window?window:void 0,c=l||{},s=c.MutationObserver||c.WebKitMutationObserver,f="undefined"==typeof self&&void 0!==t&&"[object process]"==={}.toString.call(t),d="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function p(){var e=setTimeout;return function(){return e(m,1)}}var y=new Array(1e3);function m(){for(var e=0;e<o;e+=2)(0,y[e])(y[e+1]),y[e]=void 0,y[e+1]=void 0;o=0}var h,b,v,g,O=void 0;function _(e,t){var r=this,n=new this.constructor(E);void 0===n[T]&&x(n);var o=r._state;if(o){var a=arguments[o-1];u((function(){return k(o,n,a,r._result)}))}else A(r,n,e,t);return n}function w(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(E);return S(t,e),t}f?O=function(){return t.nextTick(m)}:s?(b=0,v=new s(m),g=document.createTextNode(""),v.observe(g,{characterData:!0}),O=function(){g.data=b=++b%2}):d?((h=new MessageChannel).port1.onmessage=m,O=function(){return h.port2.postMessage(0)}):O=void 0===l?function(){try{var e=Function("return this")().require("vertx");return void 0!==(a=e.runOnLoop||e.runOnContext)?function(){a(m)}:p()}catch(e){return p()}}():p();var T=Math.random().toString(36).substring(2);function E(){}var P=void 0;function j(t,r,n){r.constructor===t.constructor&&n===_&&r.constructor.resolve===w?function(e,t){1===t._state?M(e,t._result):2===t._state?C(e,t._result):A(t,void 0,(function(t){return S(e,t)}),(function(t){return C(e,t)}))}(t,r):void 0===n?M(t,r):e(n)?function(e,t,r){u((function(e){var n=!1,o=function(e,t,r,n){try{e.call(t,r,n)}catch(e){return e}}(r,t,(function(r){n||(n=!0,t!==r?S(e,r):M(e,r))}),(function(t){n||(n=!0,C(e,t))}),e._label);!n&&o&&(n=!0,C(e,o))}),e)}(t,r,n):M(t,r)}function S(e,t){if(e===t)C(e,new TypeError("You cannot resolve a promise with itself"));else if(o=typeof(n=t),null===n||"object"!==o&&"function"!==o)M(e,t);else{var r=void 0;try{r=t.then}catch(t){return void C(e,t)}j(e,t,r)}var n,o}function I(e){e._onerror&&e._onerror(e._result),D(e)}function M(e,t){e._state===P&&(e._result=t,e._state=1,0!==e._subscribers.length&&u(D,e))}function C(e,t){e._state===P&&(e._state=2,e._result=t,u(I,e))}function A(e,t,r,n){var o=e._subscribers,a=o.length;e._onerror=null,o[a]=t,o[a+1]=r,o[a+2]=n,0===a&&e._state&&u(D,e)}function D(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var n=void 0,o=void 0,a=e._result,i=0;i<t.length;i+=3)n=t[i],o=t[i+r],n?k(r,n,o,a):o(a);e._subscribers.length=0}}function k(t,r,n,o){var a=e(n),i=void 0,u=void 0,l=!0;if(a){try{i=n(o)}catch(e){l=!1,u=e}if(r===i)return void C(r,new TypeError("A promises callback cannot return that same promise."))}else i=o;r._state!==P||(a&&l?S(r,i):!1===l?C(r,u):1===t?M(r,i):2===t&&C(r,i))}var R=0;function x(e){e[T]=R++,e._state=void 0,e._result=void 0,e._subscribers=[]}var L=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(E),this.promise[T]||x(this.promise),n(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?M(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&M(this.promise,this._result))):C(this.promise,new Error("Array Methods must be provided an Array"))}return e.prototype._enumerate=function(e){for(var t=0;this._state===P&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var r=this._instanceConstructor,n=r.resolve;if(n===w){var o=void 0,a=void 0,i=!1;try{o=e.then}catch(e){i=!0,a=e}if(o===_&&e._state!==P)this._settledAt(e._state,t,e._result);else if("function"!=typeof o)this._remaining--,this._result[t]=e;else if(r===B){var u=new r(E);i?C(u,a):j(u,e,o),this._willSettleAt(u,t)}else this._willSettleAt(new r((function(t){return t(e)})),t)}else this._willSettleAt(n(e),t)},e.prototype._settledAt=function(e,t,r){var n=this.promise;n._state===P&&(this._remaining--,2===e?C(n,r):this._result[t]=r),0===this._remaining&&M(n,this._result)},e.prototype._willSettleAt=function(e,t){var r=this;A(e,void 0,(function(e){return r._settledAt(1,t,e)}),(function(e){return r._settledAt(2,t,e)}))},e}(),B=function(){function t(e){this[T]=R++,this._result=this._state=void 0,this._subscribers=[],E!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof t?function(e,t){try{t((function(t){S(e,t)}),(function(t){C(e,t)}))}catch(t){C(e,t)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return t.prototype.catch=function(e){return this.then(null,e)},t.prototype.finally=function(t){var r=this,n=r.constructor;return e(t)?r.then((function(e){return n.resolve(t()).then((function(){return e}))}),(function(e){return n.resolve(t()).then((function(){throw e}))})):r.then(t,t)},t}();return B.prototype.then=_,B.all=function(e){return new L(this,e).promise},B.race=function(e){var t=this;return n(e)?new t((function(r,n){for(var o=e.length,a=0;a<o;a++)t.resolve(e[a]).then(r,n)})):new t((function(e,t){return t(new TypeError("You must pass an array to race."))}))},B.resolve=w,B.reject=function(e){var t=new this(E);return C(t,e),t},B._setScheduler=function(e){i=e},B._setAsap=function(e){u=e},B._asap=u,B.polyfill=function(){var e=void 0;if(void 0!==r)e=r;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var n=null;try{n=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===n&&!t.cast)return}e.Promise=B},B.Promise=B,B},e.exports=n()}).call(this,r(335),r(59))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decryptToken=function(e,t){return e.match(/.{1,2}/g).map((function(e){return parseInt(e,16)})).map((function(e){return(r=t,r.split("").map((function(e){return e.charCodeAt(0)}))).reduce((function(e,t){return e^t}),e);var r})).map((function(e){return String.fromCharCode(e)})).join("")},t.getActiveFolderEndpoint=function(e){var t=e((0,w.state)(n||(n=P(["teamSidebar.activeFolder.folder.endpoint"])))),r=e((0,w.state)(o||(o=P(["teamSidebar.activeFolder.folderType"])))),a="";r&&"myFolders"!==r&&(a="".concat(t,"/cloud/v1"));return a},t.getActiveFolderId=function(e,t){var r=e((0,w.state)(i||(i=P(["teamSidebar.activeFolder.folder.id"]))));if((t||e((0,w.state)(u||(u=P(["app.tab"])))))!==e((0,w.state)(l||(l=P(["preferences.cloudTab"])))))return"predefined";return r?(0,O.default)(r):"1"},t.getActiveFolderName=function(e){return e((0,w.state)(y||(y=P(["teamSidebar.activeFolder.folder.name"]))))||""},t.getBaseUrlByFolderId=function(e,t){var r,n="",o=e((0,w.state)(a||(a=P(["teamSidebar.sharedFolders"])))),i=(0,v.default)(o,(function(e){return t===e.id}));""!==(r=(0,b.default)(i,"endpoint",""))&&(n="".concat(r,"/cloud/v1"));return n},t.hasTeamPermissions=function(e,t){var r=e((0,w.state)(c||(c=P(["teamSidebar.activeFolder.folderType"])))),n={use:e((0,w.state)(s||(s=P(["teamSidebar.activeFolder.folder.permissions.",""])),T.PERMISSION_USE)),add:e((0,w.state)(f||(f=P(["teamSidebar.activeFolder.folder.permissions.",""])),T.PERMISSION_ADD)),edit:e((0,w.state)(d||(d=P(["teamSidebar.activeFolder.folder.permissions.",""])),T.PERMISSION_EDIT)),delete:e((0,w.state)(p||(p=P(["teamSidebar.activeFolder.folder.permissions.",""])),T.PERMISSION_DELETE))};return"myFolders"===r||(0,g.default)(t,(function(e){return n[e]}))},t.parseJWT=function(e){try{return(0,_.default)(e)}catch(e){return"invalid-token"}},t.showPremadeLayoutsCopyModal=function(e){var t=e((0,w.state)(m||(m=P(["teamSidebar.sharedFolders"]))));return(0,h.default)(t,(function(e){return e.permissions.add}))},t.uniqItems=function(e){return e.filter((function(e,t){var r=e.id,n=e.item_location||"local";return!this.has(t=r+n)&&this.add(t)}),new Set)};var n,o,a,i,u,l,c,s,f,d,p,y,m,h=E(r(156)),b=E(r(5)),v=E(r(89)),g=E(r(282)),O=E(r(16)),_=E(r(512)),w=r(58),T=r(168);function E(e){return e&&e.__esModule?e:{default:e}}function P(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.endpointsList=t.TOKEN_UPDATE_IN_PROGRESS=t.STATE_SUCCESS=t.STATE_LOADING=t.STATE_IDLE=t.SOURCE_MARKETPLACE=t.SOURCE_LOCAL=t.SOURCE_ELEGANT_THEMES=t.PRODUCT_TOUR_ITEM_URL=t.PRODUCT_TOUR_ITEM_ID=t.PERMISSION_USE=t.PERMISSION_EDIT=t.PERMISSION_DELETE=t.PERMISSION_ADD=t.MENU_ITEM_MOVE_TO=t.MENU_ITEM_COPY_TO=t.MENU_ITEM_COPY_PREDEFINED_ITEM_CLOUD=t.LIBRARY_ITEM_TYPE_SET=t.CLOUD_TOGGLE_ON=t.CLOUD_TOGGLE_OFF=t.BULK_UPDATE_ACTION_TRASH=void 0;t.SOURCE_ELEGANT_THEMES="elegant_themes";t.SOURCE_MARKETPLACE="marketplace";t.SOURCE_LOCAL="local";t.PRODUCT_TOUR_ITEM_URL="https://et-cloud-items-content.nyc3.digitaloceanspaces.com/_main/cloud_layout/divi-builder-demo-landing-page.json";t.PRODUCT_TOUR_ITEM_ID=1849;t.BULK_UPDATE_ACTION_TRASH="bulk_update_action_trash";t.LIBRARY_ITEM_TYPE_SET="set";t.STATE_IDLE="idle";t.STATE_LOADING="loading";t.STATE_SUCCESS="success";t.TOKEN_UPDATE_IN_PROGRESS="inProgress";t.PERMISSION_USE="use";t.PERMISSION_ADD="add";t.PERMISSION_EDIT="edit";t.PERMISSION_DELETE="delete";t.MENU_ITEM_COPY_TO="copy_to";t.MENU_ITEM_MOVE_TO="move_to";t.MENU_ITEM_COPY_PREDEFINED_ITEM_CLOUD="copy_predefined_item_cloud";t.CLOUD_TOGGLE_ON="on";t.CLOUD_TOGGLE_OFF="off";t.endpointsList={tags:"tags",categories:"categories",packs:"packs",favoritePacks:"favorites",cloudStatus:"activate",layout:"layouts",section:"sections",row:"rows",module:"modules",tb_template:"templates",tb_set:"template-sets",code_css:"snippets-css",code_css_no_selector:"snippets-css-ns",code_html:"snippets"}},function(e,t,r){var n=r(50),o=r(53);e.exports=function(e){return n((function(t,r){var n=-1,a=r.length,i=a>1?r[a-1]:void 0,u=a>2?r[2]:void 0;for(i=e.length>3&&"function"==typeof i?(a--,i):void 0,u&&o(r[0],r[1],u)&&(i=a<3?void 0:i,a=1),t=Object(t);++n<a;){var l=r[n];l&&e(t,l,n,i)}return t}))}},function(e,t,r){var n=r(513),o=r(293);e.exports=function(e,t){return null!=e&&o(e,t,n)}},function(e,t,r){var n=r(143),o=r(160),a=r(252),i=r(144),u=r(517),l=r(146);e.exports=function(e,t,r){var c=-1,s=o,f=e.length,d=!0,p=[],y=p;if(r)d=!1,s=a;else if(f>=200){var m=t?null:u(e);if(m)return l(m);d=!1,s=i,y=new n}else y=t?[]:p;e:for(;++c<f;){var h=e[c],b=t?t(h):h;if(h=r||0!==h?h:0,d&&b==b){for(var v=y.length;v--;)if(y[v]===b)continue e;t&&y.push(b),p.push(h)}else s(y,b,r)||(y!==p&&y.push(b),p.push(h))}return p}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSelectedLibraryTermsList=t.getIconNameBySaveState=t.formatTemplateForLibrary=t.formatPreferencesForLibrary=void 0;var n=f(r(38)),o=f(r(88)),a=f(r(10)),i=f(r(51)),u=f(r(5)),l=f(r(19)),c=r(4),s=f(r(7));function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var p=function(e){return(0,n.default)(e,(function(e){return(0,i.default)(["on","off"],e)?"on"===e?"1":"0":e}))};t.formatPreferencesForLibrary=p;t.formatTemplateForLibrary=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=e.title,i=!1;e.default&&(a=(0,s.default)("themeBuilder","Default Website Template")),""===a&&(a=e.automaticTitle,i=!0),""===a&&(a=(0,s.default)("themeBuilder","Unassigned"));var l={autogenerated_title:i?"1":"0",default:e.default?"1":"0",enabled:e.enabled?"1":"0",exclude_from:e.excludeFrom,global_layouts:(0,n.default)((0,o.default)(c.LAYOUT_TYPES),(function(t){return{enabled:(0,u.default)(e,"global_layouts.".concat(t,".enabled"),!0)?"1":"0",id:(0,u.default)(e,"global_layouts.".concat(t,".layout"),0)}})),layouts:(0,n.default)((0,o.default)(c.LAYOUT_TYPES),(function(t){return{enabled:e.layouts[t].enabled?"1":"0",id:e.layouts[t].layout||0}})),title:a,use_on:e.useOn},f=p(t);return r?{processed_template:l,processed_preferences:f}:l};t.getIconNameBySaveState=function(e){var t,r=(d(t={},c.SAVE_STATE_LOADING,"loading"),d(t,c.SAVE_STATE_SUCCESS,"check"),d(t,c.SAVE_STATE_ERROR,"close"),t);return(0,u.default)(r,e,e)};t.getSelectedLibraryTermsList=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"categories",o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i="tags"===n?r:t,u=(0,a.default)(e)?e:e.split("|"),c=[];return(0,l.default)(u,(function(e,t){if("categories"!==n||"on"===e){var r="tags"===n?i[e]:i[t];o?c.push(r.name):c.push(r.id)}})),c}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeCancellable=t.delay=void 0;var n,o=(n=r(166))&&n.__esModule?n:{default:n};t.delay=function(e){return new o.default((function(t){return setTimeout(t,e)}))};t.makeCancellable=function(e){var t=!1;return{promise:new o.default((function(r,n){e.then((function(e){return t?n({isCancelled:!0}):r(e)})),e.catch((function(e){return n(t?{isCancelled:!0}:e)}))})),isCancelled:function(){return t},cancel:function(){return t=!0}}}},function(e,t,r){"use strict";var n=r(555),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function l(e){return n.isMemo(e)?i:u[e.$$typeof]||o}u[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[n.Memo]=i;var c=Object.defineProperty,s=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,y=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(y){var o=p(r);o&&o!==y&&e(t,o,n)}var i=s(r);f&&(i=i.concat(f(r)));for(var u=l(t),m=l(r),h=0;h<i.length;++h){var b=i[h];if(!(a[b]||n&&n[b]||m&&m[b]||u&&u[b])){var v=d(r,b);try{c(t,b,v)}catch(e){}}}}return t}},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=(u(r(1)),u(r(347)));r(569);var i=["className"];function u(e){return e&&e.__esModule?e:{default:e}}function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){g(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(this,arguments)}function d(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var o=v(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return b(this,r)}}function b(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(l,e);var t,r,n,u=h(l);function l(){return p(this,l),u.apply(this,arguments)}return t=l,(r=[{key:"render",value:function(){var e=this.props,t=e.className,r=d(e,i);return o.default.createElement(a.default,f({className:"et-common-context-menu ".concat(t)},r))}}])&&y(t.prototype,r),n&&y(t,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(o.PureComponent);g(O,"propTypes",s({},a.default.propTypes)),g(O,"defaultProps",s(s({},a.default.defaultProps),{},{centerHorizontally:!0}));var _=O;t.default=_},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=c(r(8)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),i=c(r(1)),u=r(262);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function c(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=h(e);if(t){var o=h(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return y(this,r)}}function y(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(i,e);var t,r,n,o=p(i);function i(){var e;s(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return b(m(e=o.call.apply(o,[this].concat(r))),"getDefaultStyle",(function(){return{size:e.props.scale,opacity:0}})),b(m(e),"getStyle",(function(){return{size:e.props.enabled?(0,u.spring)(1,{stiffness:300,damping:20}):1,opacity:e.props.enabled?(0,u.spring)(1,{stiffness:300,damping:20}):1}})),e}return t=i,(r=[{key:"render",value:function(){var e=this;return a.default.createElement(u.Motion,{defaultStyle:this.getDefaultStyle(),style:this.getStyle(),onRest:this.props.onRest},(function(t){return e.props.children({opacity:t.opacity,transform:"scale(".concat(t.size,")")})}))}}])&&f(t.prototype,r),n&&f(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(a.Component);b(v,"propTypes",{enabled:i.default.bool,scale:i.default.number,children:i.default.func.isRequired,onRest:i.default.func}),b(v,"defaultProps",{enabled:!0,scale:.5,onRest:o.default});var g=v;t.default=g},function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]="number"==typeof e[r]?e[r]:e[r].val);return t},e.exports=t.default},function(e,t,r){(function(t){(function(){var r,n,o,a,i,u;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:null!=t&&t.hrtime?(e.exports=function(){return(r()-i)/1e6},n=t.hrtime,a=(r=function(){var e;return 1e9*(e=n())[0]+e[1]})(),u=1e9*t.uptime(),i=a-u):Date.now?(e.exports=function(){return Date.now()-o},o=Date.now()):(e.exports=function(){return(new Date).getTime()-o},o=(new Date).getTime())}).call(this)}).call(this,r(335))},function(e,t,r){var n=r(15),o=r(260),a=r(239),i=Math.max,u=Math.min;e.exports=function(e,t,r){var l,c,s,f,d,p,y=0,m=!1,h=!1,b=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var r=l,n=c;return l=c=void 0,y=t,f=e.apply(n,r)}function g(e){return y=e,d=setTimeout(_,t),m?v(e):f}function O(e){var r=e-p;return void 0===p||r>=t||r<0||h&&e-y>=s}function _(){var e=o();if(O(e))return w(e);d=setTimeout(_,function(e){var r=t-(e-p);return h?u(r,s-(e-y)):r}(e))}function w(e){return d=void 0,b&&l?v(e):(l=c=void 0,f)}function T(){var e=o(),r=O(e);if(l=arguments,c=this,p=e,r){if(void 0===d)return g(p);if(h)return clearTimeout(d),d=setTimeout(_,t),v(p)}return void 0===d&&(d=setTimeout(_,t)),f}return t=a(t)||0,n(r)&&(m=!!r.leading,s=(h="maxWait"in r)?i(a(r.maxWait)||0,t):s,b="trailing"in r?!!r.trailing:b),T.cancel=function(){void 0!==d&&clearTimeout(d),y=0,l=p=c=d=void 0},T.flush=function(){return void 0===d?f:w(o())},T}},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=s(r(1)),i=s(r(11)),u=s(r(32)),l=s(r(359)),c=r(261);function s(e){return e&&e.__esModule?e:{default:e}}function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var o=v(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return h(this,r)}}function h(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return b(e)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(597);var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(a,e);var t,r,n,o=m(a);function a(){var e;d(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return g(b(e=o.call.apply(o,[this].concat(r))),"toggleBodyClass",(function(){var t=(0,i.default)("body"),r=(0,i.default)(window),n=t.hasClass("rtl"),o=e.getLocks().length>0,a="et-common-scroll-lock--added-margin",u=parseInt(t.attr("data-et-common-scroll-lock-offset"))||0,l=t.find("#wpadminbar");if(o&&(0,c.windowHasScrollbar)(window)){var s=(0,c.getScrollbarWidth)();t.addClass(a),t.css("margin".concat(n?"Left":"Right"),"".concat(s,"px")),l.length>0&&l.css("width","calc(100% - ".concat(s,"px)"))}!o&&t.hasClass(a)&&(t.removeClass(a),t.css("margin".concat(n?"Left":"Right"),""),l.length>0&&l.css("width","")),o&&0===u?t.attr("data-et-common-scroll-lock-offset",r.scrollTop()):o||0===u||(r.scrollTop(parseInt(t.attr("data-et-common-scroll-lock-offset"))||0),t.removeAttr("data-et-common-scroll-lock-offset")),t.toggleClass("et-common-scroll-lock",o)})),g(b(e),"getLocks",(function(){return(0,u.default)(((0,i.default)("body").attr("data-et-common-scroll-locks")||"").split(","),(function(e){return!!e}))})),g(b(e),"setLocks",(function(e){(0,i.default)("body").attr("data-et-common-scroll-locks",e.join(","))})),g(b(e),"addLock",(function(t){var r=e.getLocks();r.push(t),e.setLocks((0,l.default)(r))})),g(b(e),"removeLock",(function(t){var r=e.getLocks();e.setLocks((0,u.default)(r,(function(e){return e!==t})))})),e}return t=a,(r=[{key:"componentDidMount",value:function(){this.addLock(this.props.lockId),this.toggleBodyClass()}},{key:"componentDidUpdate",value:function(e){this.removeLock(e.lockId),this.addLock(this.props.lockId),this.toggleBodyClass()}},{key:"componentWillUnmount",value:function(){this.removeLock(this.props.lockId),this.toggleBodyClass()}},{key:"render",value:function(){return null}}])&&p(t.prototype,r),n&&p(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.PureComponent);g(O,"propTypes",{lockId:a.default.string.isRequired});var _=O;t.default=_},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.templateLayout=t.template=t.layoutTypes=void 0;var n=u(r(1)),o=u(r(88)),a=u(r(38)),i=r(4);function u(e){return e&&e.__esModule?e:{default:e}}var l=n.default.oneOf(i.LAYOUT_TYPES);t.layoutTypes=l;var c=n.default.shape({layout:n.default.string,enabled:n.default.bool.isRequired});t.templateLayout=c;var s=n.default.shape({id:n.default.string.isRequired,default:n.default.bool.isRequired,enabled:n.default.bool.isRequired,title:n.default.string.isRequired,automaticTitle:n.default.string.isRequired,automaticMeta:n.default.string.isRequired,layouts:n.default.shape((0,a.default)((0,o.default)(i.LAYOUT_TYPES),(function(e){return c.isRequired}))).isRequired,useOn:n.default.arrayOf(n.default.string).isRequired,excludeFrom:n.default.arrayOf(n.default.string).isRequired});t.template=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dontSetMe=function(e,t,r){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(r," - do not set this, set it on the child."))},t.findInArray=function(e,t){for(var r=0,n=e.length;r<n;r++)if(t.apply(t,[e[r],r,e]))return e[r]},t.int=function(e){return parseInt(e,10)},t.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},t.isNum=function(e){return"number"==typeof e&&!isNaN(e)}},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=u(r(1)),i=u(r(180));function u(e){return e&&e.__esModule?e:{default:e}}function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=y(e);if(t){var o=y(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return p(this,r)}}function p(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(358);var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(u,e);var t,r,n,a=d(u);function u(){return c(this,u),a.apply(this,arguments)}return t=u,(r=[{key:"render",value:function(){var e={left:this.props.left,top:this.props.top,right:this.props.right,bottom:this.props.bottom};return o.default.createElement("div",{className:"et-tb-modal-root"},this.props.overlay&&o.default.createElement("div",{className:"et-tb-modal-overlay"}),o.default.createElement("div",{className:"et-tb-modal et-tb-modal--fixed ".concat(this.props.className),style:e},o.default.createElement("div",{className:"et-tb-modal__content"},this.props.children)),o.default.createElement(i.default,{lockId:"tb-fixed-modal"}))}}])&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(o.PureComponent);m(h,"propTypes",{left:a.default.number,top:a.default.number,right:a.default.number,bottom:a.default.number,overlay:a.default.bool,className:a.default.string}),m(h,"defaultProps",{left:30,top:30,right:30,bottom:30,overlay:!1,className:""});var b=h;t.default=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.END_DRAG=t.DROP=t.HOVER=t.PUBLISH_DRAG_SOURCE=t.BEGIN_DRAG=void 0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};t.beginDrag=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0,clientOffset:null},r=t.publishSource,n=t.clientOffset,u=t.getSourceClientOffset;(0,o.default)((0,a.default)(e),"Expected sourceIds to be an array.");var l=this.getMonitor(),s=this.getRegistry();(0,o.default)(!l.isDragging(),"Cannot call beginDrag while dragging.");for(var f=0;f<e.length;f++)(0,o.default)(s.getSource(e[f]),"Expected sourceIds to be registered.");for(var d=null,p=e.length-1;p>=0;p--)if(l.canDragSource(e[p])){d=e[p];break}if(null===d)return;var y=null;n&&((0,o.default)("function"==typeof u,"When clientOffset is provided, getSourceClientOffset must be a function."),y=u(d));var m=s.getSource(d),h=m.beginDrag(l,d);(0,o.default)((0,i.default)(h),"Item must be an object."),s.pinSource(d);var b=s.getSourceType(d);return{type:c,itemType:b,item:h,sourceId:d,clientOffset:n,sourceClientOffset:y,isSourcePublic:r}},t.publishDragSource=function(){if(!this.getMonitor().isDragging())return;return{type:s}},t.hover=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.clientOffset,n=void 0===r?null:r;(0,o.default)((0,a.default)(e),"Expected targetIds to be an array.");var i=e.slice(0),l=this.getMonitor(),c=this.getRegistry();(0,o.default)(l.isDragging(),"Cannot call hover while not dragging."),(0,o.default)(!l.didDrop(),"Cannot call hover after drop.");for(var s=0;s<i.length;s++){var d=i[s];(0,o.default)(i.lastIndexOf(d)===s,"Expected targetIds to be unique in the passed array.");var p=c.getTarget(d);(0,o.default)(p,"Expected targetIds to be registered.")}for(var y=l.getItemType(),m=i.length-1;m>=0;m--){var h=i[m],b=c.getTargetType(h);(0,u.default)(b,y)||i.splice(m,1)}for(var v=0;v<i.length;v++){var g=i[v],O=c.getTarget(g);O.hover(l,g)}return{type:f,targetIds:i,clientOffset:n}},t.drop=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=this.getMonitor(),a=this.getRegistry();(0,o.default)(r.isDragging(),"Cannot call drop while not dragging."),(0,o.default)(!r.didDrop(),"Cannot call drop twice during one drag operation.");var u=r.getTargetIds().filter(r.canDropOnTarget,r);u.reverse(),u.forEach((function(u,l){var c=a.getTarget(u).drop(r,u);(0,o.default)(void 0===c||(0,i.default)(c),"Drop result must either be an object or undefined."),void 0===c&&(c=0===l?{}:r.getDropResult()),e.store.dispatch({type:d,dropResult:n({},t,c)})}))},t.endDrag=function(){var e=this.getMonitor(),t=this.getRegistry();(0,o.default)(e.isDragging(),"Cannot call endDrag while not dragging.");var r=e.getSourceId();return t.getSource(r,true).endDrag(e,r),t.unpinSource(),{type:p}};var o=l(r(40)),a=l(r(10)),i=l(r(15)),u=l(r(381));function l(e){return e&&e.__esModule?e:{default:e}}var c=t.BEGIN_DRAG="dnd-core/BEGIN_DRAG",s=t.PUBLISH_DRAG_SOURCE="dnd-core/PUBLISH_DRAG_SOURCE",f=t.HOVER="dnd-core/HOVER",d=t.DROP="dnd-core/DROP",p=t.END_DRAG="dnd-core/END_DRAG"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addSource=function(e){return{type:n,sourceId:e}},t.addTarget=function(e){return{type:o,targetId:e}},t.removeSource=function(e){return{type:a,sourceId:e}},t.removeTarget=function(e){return{type:i,targetId:e}};var n=t.ADD_SOURCE="dnd-core/ADD_SOURCE",o=t.ADD_TARGET="dnd-core/ADD_TARGET",a=t.REMOVE_SOURCE="dnd-core/REMOVE_SOURCE",i=t.REMOVE_TARGET="dnd-core/REMOVE_TARGET"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){0}},function(e,t,r){"use strict";var n=r(2),o=r(136),a=r(45);function i(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}var u=["concat","increment","merge","pop","push","set","shift","splice","toggle","unset","unshift"];function l(e){var t=null;return Object(a.a)(u.reduce((function(e,r){return e[r]=function(){for(var e=this,o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];var u=this.context.controller.model,l=a.shift(),c=Object(n.h)(this.context.resolve.isTag(l)?this.context.resolve.path(l):l);if(a=a.map((function(t){return e.context.resolve.value(t)})),"moduleState"===l.type){var s=this.context.execution.name.split("."),f=s.splice(0,s.length-1);c=f.concat(c)}return this.context.controller.flush&&(clearTimeout(t),t=setTimeout((function(){return e.context.controller.flush()}))),"set"===r&&void 0===a[0]?u.unset.apply(u,[c].concat(a)):u[r].apply(u,[c].concat(a))},e}),{}),{wrap:!!e&&function(e,t){var r=null;return u.reduce((function(o,a){var u=e.controller.model[a];return o[a]=function(){for(var o=arguments.length,l=Array(o),c=0;c<o;c++)l[c]=arguments[c];var s=l.slice(),f=s.shift(),d=Object(n.h)(e.resolve.isTag(f)?e.resolve.path(f):f);if(s=s.map((function(t){return e.resolve.value(t)})),"moduleState"===f.type){var p=e.execution.name.split("."),y=p.splice(0,p.length-1);d=y.concat(d)}e.debugger.send({datetime:Date.now(),type:"mutation",color:"#333",method:a,args:[d].concat(i(s))}),e.controller.flush&&(clearTimeout(r),r=setTimeout((function(){return e.controller.flush()})));try{var m;if("set"===a&&void 0===s[0])(m=e.controller.model).unset.apply(m,[d].concat(i(s)));else u.apply(e.controller.model,[d].concat(i(s)))}catch(r){var h=e.execution.name;Object(n.y)('The sequence "'+h+'" with action "'+t.name+'" has an error: '+r.message)}},o}),{})}})}var c=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.initialState=Object(n.j)(t.module,"state"),this.StateProvider=o.a,this.StoreProvider=l,this.changedPaths=[],t.on("moduleAdded",this.onModuleAdded.bind(this)),t.on("moduleRemoved",this.onModuleRemoved.bind(this))}return c(e,[{key:"onModuleAdded",value:function(e,t){this.set(e,t.state)}},{key:"onModuleRemoved",value:function(e){this.unset(e)}},{key:"flush",value:function(){var e=this.changedPaths.slice();return this.changedPaths=[],e}}]),e}();t.a=s},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),o=new Uint8Array(16);function a(){if(!n)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(o)}},function(e,t,r){var n=r(10),o=r(97),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!o(e))||(i.test(e)||!a.test(e)||null!=t&&e in Object(t))}},function(e,t,r){var n=r(52),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,u=n?n.toStringTag:void 0;e.exports=function(e){var t=a.call(e,u),r=e[u];try{e[u]=void 0;var n=!0}catch(e){}var o=i.call(e);return n&&(t?e[u]=r:delete e[u]),o}},function(e,t){var r=Object.prototype.toString;e.exports=function(e){return r.call(e)}},function(e,t,r){var n=r(117);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(o.Cache||n),r}o.Cache=n,e.exports=o},function(e,t,r){var n=r(194),o=r(61),a=r(98);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(a||o),string:new n}}},function(e,t,r){var n=r(195),o=r(200),a=r(201),i=r(202),u=r(203);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=u,e.exports=l},function(e,t,r){var n=r(60);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},function(e,t,r){var n=r(36),o=r(197),a=r(15),i=r(138),u=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,s=l.toString,f=c.hasOwnProperty,d=RegExp("^"+s.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(n(e)?d:u).test(i(e))}},function(e,t,r){var n,o=r(198),a=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!a&&a in e}},function(e,t,r){var n=r(20)["__core-js_shared__"];e.exports=n},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,r){var n=r(60),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},function(e,t,r){var n=r(60),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},function(e,t,r){var n=r(60);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,r){var n=r(62),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():o.call(t,r,1),--this.size,!0)}},function(e,t,r){var n=r(62);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},function(e,t,r){var n=r(62);e.exports=function(e){return n(this.__data__,e)>-1}},function(e,t,r){var n=r(62);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},function(e,t,r){var n=r(63);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,r){var n=r(63);e.exports=function(e){return n(this,e).get(e)}},function(e,t,r){var n=r(63);e.exports=function(e){return n(this,e).has(e)}},function(e,t,r){var n=r(63);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},function(e,t,r){var n=r(139),o=r(27);e.exports=function(e,t){return e&&n(e,t,o)}},function(e,t){e.exports=function(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),u=i.length;u--;){var l=i[e?u:++o];if(!1===r(a[l],l,a))break}return t}}},function(e,t){e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},function(e,t,r){var n=r(31),o=r(22);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,r){var n=r(31),o=r(100),a=r(22),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&o(e.length)&&!!i[n(e)]}},function(e,t,r){var n=r(61);e.exports=function(){this.__data__=new n,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,r){var n=r(61),o=r(98),a=r(117);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var i=r.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new a(i)}return r.set(e,t),this.size=r.size,this}},function(e,t,r){var n=r(413),o=r(22);e.exports=function e(t,r,a,i,u){return t===r||(null==t||null==r||!o(t)&&!o(r)?t!=t&&r!=r:n(t,r,a,i,e,u))}},function(e,t){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},function(e,t,r){var n=r(228),o=r(287),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,u=i?function(e){return null==e?[]:(e=Object(e),n(i(e),(function(t){return a.call(e,t)})))}:o;e.exports=u},function(e,t){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.startLibraryDownload=t.setLibraryDownloadProgress=t.portabilitySetImportProgress=t.portabilityFailImport=t.portabilityCompleteImport=t.openDiviLibrary=t.loadLayouts=t.hideImportProgress=t.goToPreviousLibraryPage=t.goToLibraryPage=t.endLibraryDownload=t.createLayoutInLibrary=t.closeDiviLibraryAfterSuccessfulImport=t.closeDiviLibrary=t.cloneLayoutFromLibrary=t.clearLibraryTarget=void 0;var n,o,a,i,u,l,c,s,f,d,p,y,m,h,b,v,g,O,_,w,T,E,P,j,S,I,M,C,A,D,k,R,x,L,B,N,U,W,F,z,H,Y,V,q,G,$,K,Z,X,J,Q=r(3),ee=r(35),te=le(r(23)),re=r(4),ne=le(r(7)),oe=r(74),ae=le(r(148)),ie=r(73),ue=r(103);function le(e){return e&&e.__esModule?e:{default:e}}function ce(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var se=window.etCore,fe=[(0,ee.set)((0,Q.state)(n||(n=ce(["diviLibrary.target.templateId"]))),""),(0,ee.set)((0,Q.state)(o||(o=ce(["diviLibrary.target.layoutType"]))),"")];t.clearLibraryTarget=fe;var de=[function(e){var t=e.path;return(0,oe.isAllowedAction)(re.CAP_DIVI_LIBRARY)&&(0,oe.isAllowedAction)(re.CAP_LOAD_LAYOUT)?t.success():t.error()},{success:[(0,ee.set)((0,Q.state)(a||(a=ce(["diviLibrary.target.templateId"]))),(0,Q.props)(i||(i=ce(["templateId"])))),(0,ee.set)((0,Q.state)(u||(u=ce(["diviLibrary.target.layoutType"]))),(0,Q.props)(l||(l=ce(["layoutType"])))),(0,ie.openModal)(re.MODAL_TYPE_DIVI_LIBRARY)],error:[]}];t.openDiviLibrary=de;var pe=[function(e){var t=e.get,r=e.path;return t((0,Q.state)(c||(c=ce(["diviLibrary.import.loading"]))))?r.error():r.success()},{success:[fe,(0,ie.closeModal)(re.MODAL_TYPE_DIVI_LIBRARY)],error:[]}];t.closeDiviLibrary=pe;var ye=[function(e){var t=e.get,r=e.path;return t((0,Q.state)(s||(s=ce(["diviLibrary.import.loading"]))))?r.error():r.success()},{success:[(0,ie.closeModal)(re.MODAL_TYPE_DIVI_LIBRARY)],error:[]}];t.closeDiviLibraryAfterSuccessfulImport=ye;var me=[function(e){var t=e.libraryApi,r=e.path;return t.getLayouts().then((function(e){return r.success({layouts:{local:e.layouts_data,custom:e.custom_layouts_data}})})).catch((function(){return r.error()}))},{success:[(0,ee.set)((0,Q.state)(f||(f=ce(["diviLibrary.layouts"]))),(0,Q.props)(d||(d=ce(["layouts"])))),(0,ee.set)((0,Q.state)(p||(p=ce(["diviLibrary.loaded"]))),!0)],error:[(0,ue.openPrompt)({type:re.PROMPT_TYPE_UNKNOWN_ERROR,content:(0,ne.default)("library","Failed to load your existing layouts. Please try again later.")})]}];t.loadLayouts=me;var he=[function(e){var t=e.props,r=t.layoutId,n=t.layoutContent,o=new ae.default([n],"layout.json",{type:"application/json"});se.portability.importFB(o,r,{replace:!0,includeGlobalPresets:!1})}],be=[function(e){var t=e.props.previousUrl,r=e.store;(0,te.default)(t)||r.set((0,Q.state)(y||(y=ce(["diviLibrary.page.previousUrl"]))),t)},(0,ee.set)((0,Q.state)(m||(m=ce(["diviLibrary.page.showBackButton"]))),(0,Q.props)(h||(h=ce(["showBackButton"])))),(0,ee.set)((0,Q.state)(b||(b=ce(["diviLibrary.page.backToLayouts"]))),!(0,Q.props)(v||(v=ce(["showBackButton"]))))];t.goToLibraryPage=be;var ve=[function(e){e.get;var t=e.store;t.set((0,Q.state)(g||(g=ce(["diviLibrary.page.backToLayouts"]))),!0),t.set((0,Q.state)(O||(O=ce(["diviLibrary.page.showBackButton"]))),!1)}];t.goToPreviousLibraryPage=ve;var ge=[(0,ee.set)((0,Q.state)(_||(_=ce(["diviLibrary.import.progress.error"]))),""),(0,ee.set)((0,Q.state)(w||(w=ce(["diviLibrary.import.progress.completed"]))),!1),(0,ee.set)((0,Q.state)(T||(T=ce(["diviLibrary.import.progress.value"]))),1),(0,ee.set)((0,Q.state)(E||(E=ce(["diviLibrary.import.progress.estimate"]))),1),(0,ee.set)((0,Q.state)(P||(P=ce(["diviLibrary.import.progress.show"]))),!0)];t.startLibraryDownload=ge;var Oe=[(0,ee.set)((0,Q.state)(j||(j=ce(["diviLibrary.import.progress.value"]))),100),(0,ee.wait)(400),(0,ee.set)((0,Q.state)(S||(S=ce(["diviLibrary.import.error"]))),(0,Q.props)(I||(I=ce(["importError"])))),(0,ee.set)((0,Q.state)(M||(M=ce(["diviLibrary.import.progress.completed"]))),!0),(0,ee.wait)(1e3),(0,ee.set)((0,Q.state)(C||(C=ce(["diviLibrary.import.progress.show"]))),!1),(0,ee.set)((0,Q.state)(A||(A=ce(["diviLibrary.import.loading"]))),!1)],_e=[(0,ee.set)((0,Q.state)(D||(D=ce(["diviLibrary.import.progress.value"]))),100),(0,ee.wait)(400),(0,ee.set)((0,Q.state)(k||(k=ce(["diviLibrary.import.progress.completed"]))),!0),(0,ee.wait)(1e3),(0,ee.set)((0,Q.state)(R||(R=ce(["diviLibrary.import.progress.show"]))),!1),(0,ee.set)((0,Q.state)(x||(x=ce(["diviLibrary.import.loading"]))),!1),ye],we=[(0,ee.set)((0,Q.state)(L||(L=ce(["diviLibrary.import.loading"]))),!0),function(e){var t=e.api,r=e.get,n=e.path,o=e.props.layoutId;return t.cloneLayout(o,r((0,Q.state)(B||(B=ce(["diviLibrary.target.layoutType"]))))).then((function(e){return n.success({cloneLayoutId:e.id.toString()})})).catch((function(){return n.error()}))},{success:[(0,ee.set)((0,Q.state)(N||(N=ce(["diviLibrary.import.layout.id"]))),(0,Q.props)(U||(U=ce(["cloneLayoutId"])))),_e],error:[function(){return{importError:(0,ne.default)("themeBuilder","Failed to duplicate your layout. Please try again later.")}},Oe]}];t.cloneLayoutFromLibrary=we;var Te=[(0,ee.set)((0,Q.state)(W||(W=ce(["diviLibrary.import.loading"]))),!0),function(e){var t=e.api,r=e.path,n=e.props.layoutType;return t.createLayout(n).then((function(e){return r.success({layoutId:e.id.toString()})})).catch((function(){return r.error()}))},{success:[(0,ee.set)((0,Q.state)(F||(F=ce(["diviLibrary.import.layout.id"]))),(0,Q.props)(z||(z=ce(["layoutId"])))),(0,ee.set)((0,Q.state)(H||(H=ce(["diviLibrary.import.progress.value"]))),75),he,function(e){var t=e.get,r=e.props.layoutId,n=t((0,Q.state)(Y||(Y=ce(["diviLibrary.target.templateId"])))),o=t((0,Q.state)(V||(V=ce(["diviLibrary.target.layoutType"]))));return t((0,Q.sequences)(q||(q=ce(["templates.setGlobalLayout"]))))({layoutId:r,templateId:n,layoutType:o})}],error:[function(){return{importError:(0,ne.default)("generic","An unknown error has occurred. Please try again later.")}},Oe]}];t.createLayoutInLibrary=Te;var Ee=[function(e){var t=e.store,r=e.props.progress;t.set((0,Q.state)(G||(G=ce(["diviLibrary.import.progress.value"]))),Math.max(1,Math.floor(r/2)))}];t.setLibraryDownloadProgress=Ee;var Pe=[function(e){var t=e.get,r=e.path,n=e.props,o=n.isLocalLayout,a=n.layout;return e.store.set((0,Q.state)($||($=ce(["diviLibrary.import.progress.value"]))),50),o?r.clone({layoutId:a}):r.create({layoutType:t((0,Q.state)(K||(K=ce(["diviLibrary.target.layoutType"])))),layoutContent:a})},{clone:[we],create:[Te]}];t.endLibraryDownload=Pe;var je=[function(e){var t=e.props,r=t.value,n=t.estimate,o=e.store;o.set((0,Q.state)(Z||(Z=ce(["diviLibrary.import.progress.value"]))),75+Math.ceil(.25*r)),o.set((0,Q.state)(X||(X=ce(["diviLibrary.import.progress.estimate"]))),n)}];t.portabilitySetImportProgress=je;var Se=[Oe];t.portabilityFailImport=Se;var Ie=[function(e){var t=e.path;return e.props.importResponse.success?t.success():t.error({importError:(0,ne.default)("generic","An unknown error has occurred. Please try again later.")})},{success:[_e,me],error:[Se]}];t.portabilityCompleteImport=Ie;var Me=[function(e){e.store.set((0,Q.state)(J||(J=ce(["diviLibrary.import.progress.show"]))),!1)}];t.hideImportProgress=Me},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveTag=t.createConnectionsFilter=void 0;var n=c(r(19)),o=c(r(36)),a=c(r(10)),i=c(r(15)),u=c(r(17)),l=c(r(38));function c(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.createConnectionsFilter=function(e){return function(t,r){for(var a=arguments.length,i=new Array(a>2?a-2:0),u=2;u<a;u++)i[u-2]=arguments[u];var l=f(f({},r),t);return(0,o.default)(e)?f(f({},l),e.apply(void 0,[t,r].concat(i))):((0,n.default)(e,(function(e){l=f(f({},l),e.apply(void 0,[t,r].concat(i)))})),l)}};t.resolveTag=function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(r.isTag(t,"state","props"))return r.value(t);if(n){if((0,a.default)(t))return(0,u.default)(t,(function(t){return e(t,r,n)}));if((0,i.default)(t))return(0,l.default)(t,(function(t){return e(t,r,n)}))}return t}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateTBLibraryTaxonomies=t.updateTBLibraryItem=t.toggleTBLibraryItemLocation=t.toggleShowBackButton=t.setThemeBuilderItemType=t.setTBLibraryPresetItems=t.openThemeBuilderLibrary=t.openTBPortabilityImportModal=t.openLoadFromLibrary=t.navigatePage=t.loadThemeBuilderItems=t.getTBLibraryItem=t.getCloudToken=t.closeThemeBuilderLibrary=void 0;var n,o,a,i,u,l,c,s,f,d,p,y,m,h,b,v,g,O,_,w,T,E,P,j,S,I,M,C,A,D,k,R=r(3),x=r(35),L=r(4),B=(n=r(7))&&n.__esModule?n:{default:n},N=r(74),U=r(73),W=r(103),F=r(232);function z(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var H=[function(e){var t=e.path;return(0,N.isAllowedAction)(L.CAP_DIVI_LIBRARY)&&(0,N.isAllowedAction)(L.CAP_LOAD_LAYOUT)?t.success():t.error()},{success:[(0,U.openModal)(L.MODAL_TYPE_THEME_BUILDER_LIBRARY)],error:[]}];t.openThemeBuilderLibrary=H;var Y=[function(e){var t=e.get,r=e.path;return t((0,R.state)(o||(o=z(["themeBuilderLibrary.import.loading"]))))?r.error():r.success()},{success:[(0,x.set)((0,R.state)(a||(a=z(["themeBuilderLibrary.page.showBackButton"]))),!1),(0,U.closeModal)(L.MODAL_TYPE_THEME_BUILDER_LIBRARY)],error:[]}];t.closeThemeBuilderLibrary=Y;var V=[function(e){var t=e.api,r=e.get,n=e.path;return t.getItems(r((0,R.state)(i||(i=z(["themeBuilderLibrary.themeBuilderItemType"]))))).then((function(e){return n.success({themeBuilderItems:e})})).catch((function(){return n.error()}))},{success:[(0,x.set)((0,R.state)(u||(u=z(["themeBuilderLibrary.themeBuilderItems"]))),(0,R.props)(l||(l=z(["themeBuilderItems"])))),(0,x.set)((0,R.state)(c||(c=z(["themeBuilderLibrary.loaded"]))),!0),function(e){var t=e.get,r=e.store,n=t((0,R.state)(s||(s=z(["themeBuilderLibrary.themeBuilderItemType"]))));!1===t((0,R.state)(f||(f=z(["themeBuilderLibrary.loadedAndCached.",""])),n))&&r.set((0,R.state)(d||(d=z(["themeBuilderLibrary.loadedAndCached.",""])),n),!0)}],error:[(0,W.openPrompt)({type:L.PROMPT_TYPE_UNKNOWN_ERROR,content:(0,B.default)("themeBuilder","Failed to load your existing items.")})]}];t.loadThemeBuilderItems=V;var q=[(0,x.set)((0,R.state)(p||(p=z(["themeBuilderLibrary.themeBuilderItemType"]))),(0,R.props)(y||(y=z(["type"])))),(0,x.set)((0,R.state)(m||(m=z(["themeBuilderLibrary.page.title"]))),(0,B.default)("themeBuilder","Insert Theme Builder Template"))];t.setThemeBuilderItemType=q;var G=[function(e){var t=e.api,r=e.get,n=e.path;return t.updateTaxonomies(r((0,R.props)(h||(h=z(["payload"]))))).then((function(e){return n.success({updatedTaxonomies:{success:!0,data:e}})})).catch((function(){return n.error()}))},{success:[Promise.resolve((0,R.props)(b||(b=z(["updatedTaxonomies"]))))],error:[]}];t.updateTBLibraryTaxonomies=G;var $=[function(e){var t=e.api,r=e.get,n=e.path;return t.updateLibraryItem(r((0,R.props)(v||(v=z(["payload"]))))).then((function(e){return n.success({updatedItem:{success:!0,data:e}})})).catch((function(){return n.error()}))},{success:[Promise.resolve((0,R.props)(g||(g=z(["updatedItem"]))))],error:[]}];t.updateTBLibraryItem=$;var K=[function(e){var t=e.store,r=e.props.showBackButton;t.set((0,R.state)(O||(O=z(["themeBuilderLibrary.page.showBackButton"]))),r)}];t.toggleShowBackButton=K;var Z=[function(e){var t=e.store,r=e.get,n=e.props.customTitle,o=r((0,R.state)(_||(_=z(["themeBuilderLibrary.page.showBackButton"])))),a=r((0,R.state)(w||(w=z(["themeBuilderLibrary.themeBuilderItemType"])))),i=n||(0,F.getModalTitle)({showBackButton:o,themeBuilderItemType:a});t.set((0,R.state)(T||(T=z(["themeBuilderLibrary.page.title"]))),i)}];t.navigatePage=Z;var X=[function(e){var t=e.api,r=e.path,n=e.props,o=n.id,a=n.itemType;return t.getLibraryItem(o,a).then((function(e){return r.success(e)})).catch((function(){return r.error()}))},{success:[Promise.resolve((0,R.props)(E||(E=z(["response"]))))],error:[]}];t.getTBLibraryItem=X;var J=[function(e){var t=e.api,r=e.get,n=e.path;return t.getPresetItems(r((0,R.state)(P||(P=z(["portability.export.templateId"]))))).then((function(e){return n.success({response:e})})).catch((function(){return n.error()}))},{success:[function(e){var t=e.store,r=e.props.response,n=(0,F.formatItemsForStorage)(r);t.set((0,R.state)(j||(j=z(["portability.export.items"]))),n)}],error:[]}];t.setTBLibraryPresetItems=J;var Q=[(0,x.set)((0,R.state)(S||(S=z(["themeBuilderLibrary.themeBuilderItemType"]))),"set"),(0,x.set)((0,R.state)(I||(I=z(["themeBuilderLibrary.page.showBackButton"]))),!1),(0,x.set)((0,R.state)(M||(M=z(["themeBuilderLibrary.page.title"]))),(0,B.default)("themeBuilder","Insert Theme Builder Set")),H];t.openLoadFromLibrary=Q;var ee=[function(e){var t=e.store;t.set((0,R.state)(C||(C=z(["portability.state"]))),L.PORTABILITY_STATE_IMPORT_LIBRARY_TEMPLATE),t.set((0,R.state)(A||(A=z(["portability.import.state"]))),L.PORTABILITY_STATE_IMPORT_LIBRARY_TEMPLATE)},(0,W.openPrompt)({type:L.PROMPT_TYPE_IMPORT_LIBRARY_TEMPLATE})];t.openTBPortabilityImportModal=ee;var te=[function(e){var t=e.api,r=e.path,n=e.props.id;return t.toggleItemLocation(n).then((function(e){return r.success(e)})).catch((function(){return r.error()}))},{success:[Promise.resolve((0,R.props)(D||(D=z(["response"]))))],error:[]}];t.toggleTBLibraryItemLocation=te;var re=[function(e){var t=e.api,r=e.path;return t.getCloudToken().then((function(e){return r.success(e)})).catch((function(){return r.error()}))},{success:[Promise.resolve((0,R.props)(k||(k=z(["response"]))))],error:[]}];t.getCloudToken=re},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getModalTitle=t.formatItemsForStorage=t.emitNewItemAdded=void 0;var n=i(r(17)),o=r(4),a=i(r(7));function i(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}window.TBLibraryHasNewItem=!1;t.emitNewItemAdded=function(){window.TBLibraryHasNewItem=!0};t.getModalTitle=function(e){var t=e.showBackButton,r=e.themeBuilderItemType,n="";if(t)switch(r){case o.LIBRARY_ITEM_TYPE_TEMPLATE:n=(0,a.default)("themeBuilder","Template Details");break;case o.LIBRARY_ITEM_TYPE_SET:n=(0,a.default)("themeBuilder","Set Details");break;default:n=""}else n=o.LIBRARY_ITEM_TYPE_TEMPLATE===r?(0,a.default)("themeBuilder","Insert Theme Builder Template"):(0,a.default)("themeBuilder","Insert Theme Builder Set");return n};t.formatItemsForStorage=function(e){var t=!0;return(0,n.default)(e,(function(e){return l(l({},e),{},{enabled:t,layouts:{header:{enabled:t},body:{enabled:t},footer:{enabled:t}}})}))}},function(e,t,r){var n=r(15),o=r(77),a=r(234),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return a(e);var t=o(e),r=[];for(var u in e)("constructor"!=u||!t&&i.call(e,u))&&r.push(u);return r}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},function(e,t,r){var n=r(286),o=r(299),a=r(69);e.exports=function(e){return n(e,a,o)}},function(e,t,r){var n=r(237),o=r(118),a=r(41),i=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:a;e.exports=i},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t,r){var n=r(304),o=r(85),a=r(37),i=r(449),u=r(10);e.exports=function(e,t,r){var l=u(e)?n:i,c=arguments.length<3;return l(e,a(t,4),r,c,o)}},function(e,t,r){var n=r(308),o=r(15),a=r(97),i=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=u.test(e);return r||l.test(e)?c(e.slice(2),r?2:8):i.test(e)?NaN:+e}},function(e,t,r){var n=r(106),o=r(241);function a(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}a.prototype=n(o.prototype),a.prototype.constructor=a,e.exports=a},function(e,t){e.exports=function(){}},function(e,t,r){var n=r(313),o=r(8),a=n?function(e){return n.get(e)}:o;e.exports=a},function(e,t,r){var n=r(106),o=r(241);function a(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}a.prototype=n(o.prototype),a.prototype.constructor=a,e.exports=a},function(e,t){e.exports=function(e){return e.placeholder}},function(e,t,r){var n=r(107);e.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},function(e,t,r){e.exports=r(476)},function(e,t,r){var n=r(125);e.exports=function(e,t,r){var o=e.length;return r=void 0===r?o:r,!t&&r>=o?e:n(e,t,r)}},function(e,t){var r=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return r.test(e)}},function(e,t,r){var n=r(96),o=r(123),a=r(497),i=r(84);e.exports=function(e,t){return t=n(t,e),null==(e=a(e,t))||delete e[i(o(t))]}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateTemplatesOrderHistory=t.updateTemplatesOrder=t.toggleLayout=t.setSettings=t.setLayout=t.setJustCloned=t.setGlobalLayout=t.renameTemplate=t.pasteLayout=t.optimizationSetTemplateIds=t.optimizationSetDefaultTemplate=t.optimizationSetAutomaticTitleAndMeta=t.importLayoutFromTBLibraryInTemplate=t.importLayoutFromLibraryInTemplate=t.enableTemplate=t.disableTemplate=t.deleteTemplate=t.deleteLayout=t.deleteGlobalLayoutStep=t.deleteGlobalLayout=t.createLayoutInTemplate=t.cloneTemplate=t.cloneLayoutInTemplate=t.clearTemplateConditionConflicts=t.applyLayout=t.addTemplate=t.addNewTemplateSettings=void 0;var n,o,a,i,u,l,c,s,f,d,p,y,m,h,b,v,g,O,_,w,T,E,P,j,S,I,M,C,A,D,k,R,x,L,B,N,U,W,F,z,H,Y,V,q,G,$,K,Z,X,J,Q,ee,te,re,ne,oe,ae,ie,ue,le,ce,se,fe,de,pe,ye,me,he,be,ve,ge,Oe,_e,we,Te,Ee,Pe,je,Se,Ie,Me,Ce,Ae,De,ke,Re,xe,Le,Be,Ne,Ue,We,Fe,ze,He,Ye,Ve,qe,Ge,$e,Ke,Ze,Xe,Je,Qe,et,tt,rt,nt,ot,at,it,ut,lt,ct,st,ft,dt,pt,yt=r(3),mt=r(35),ht=r(92),bt=Ut(r(67)),vt=Ut(r(32)),gt=Ut(r(245)),Ot=Ut(r(19)),_t=Ut(r(5)),wt=Ut(r(12)),Tt=Ut(r(33)),Et=Ut(r(23)),Pt=Ut(r(88)),jt=Ut(r(17)),St=Ut(r(38)),It=Ut(r(56)),Mt=Ut(r(504)),Ct=r(4),At=Ut(r(7)),Dt=r(34),kt=r(164),Rt=r(334),xt=r(229),Lt=r(231),Bt=r(103),Nt=r(126);function Ut(e){return e&&e.__esModule?e:{default:e}}function Wt(e){return function(e){if(Array.isArray(e))return e}(e)||qt(e)||Vt(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ft(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function zt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ft(Object(r),!0).forEach((function(t){Ht(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ft(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ht(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yt(e){return function(e){if(Array.isArray(e))return Gt(e)}(e)||qt(e)||Vt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vt(e,t){if(e){if("string"==typeof e)return Gt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Gt(e,t):void 0}}function qt(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Gt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $t(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Kt=[function(e){var t=e.get,r=e.store,i=e.props,u=i.templateId,l=i.overrideTemplateSettings,c=void 0===l||l,s=t((0,yt.state)(n||(n=$t(["templates.templates"]))));if(c)(0,Ot.default)(s,(function(e){if(e.id!==u){var t=(0,_t.default)(s[u],"useOn",[]),n=It.default.apply(void 0,[e.useOn].concat(Yt(t)));n.length<e.useOn.length&&r.set((0,yt.state)(o||(o=$t(["templates.templates.",".useOn"])),e.id),n)}}));else{var f=s[u],d=(0,gt.default)((0,jt.default)((0,vt.default)(s,(function(e){return e.id!==u})),"useOn")),p=It.default.apply(void 0,[f.useOn].concat(Yt(d)));p.length<f.useOn.length&&r.set((0,yt.state)(a||(a=$t(["templates.templates.",".useOn"])),u),p)}}];t.clearTemplateConditionConflicts=Kt;var Zt=[function(e){var t=e.get,r=e.store,n=e.props,o=n.settings,a=n.addGlobalLayouts,c=void 0===a||a,s=(0,ht.v4)(),f=zt(zt({},(0,Dt.getEmptyTemplate)(s)),o);if(c){var d=t((0,yt.state)(i||(i=$t(["templates.defaultTemplate"])))),p=t((0,yt.state)(u||(u=$t(["templates.templates.",""])),d));(0,Ot.default)(Ct.LAYOUT_TYPES,(function(e){f.layouts[e].layout=p.layouts[e].layout}))}return r.set((0,yt.state)(l||(l=$t(["templates.templates.",""])),s),f),{templateId:s}},function(e){var t=e.get,r=e.props,n=r.templateId,o=r.overrideTemplateSettings,a=void 0===o||o;return t((0,yt.sequences)(c||(c=$t(["templates.clearTemplateConditionConflicts"]))))({templateId:n,overrideTemplateSettings:a})},(0,mt.when)((0,yt.props)(s||(s=$t(["createHistoryPoint"])))),{true:[(0,Nt.addHistoryPoint)((0,At.default)("themeBuilder","Added template"))],false:[]}];t.addTemplate=Zt;var Xt=[(0,mt.set)((0,yt.state)(f||(f=$t(["templates.templates.",".layouts.",".busy"])),(0,yt.props)(d||(d=$t(["templateId"]))),(0,yt.props)(p||(p=$t(["layoutType"])))),!0),(0,mt.set)((0,yt.state)(y||(y=$t(["templates.templates.",".layouts.",".layout"])),(0,yt.props)(m||(m=$t(["templateId"]))),(0,yt.props)(h||(h=$t(["layoutType"])))),null),function(e){var t=e.api,r=e.get,n=e.path,o=e.props,a=o.templateId,i=o.layoutType,u=o.layoutId;return t.cloneLayout(u,i).then((function(e){var t=!!r((0,yt.state)(b||(b=$t(["templates.templates.",""])),a)),o=r((0,yt.state)(v||(v=$t(["templates.templates.",".layouts.",".busy"])),a,i)),u=null===r((0,yt.state)(g||(g=$t(["templates.templates.",".layouts.",".layout"])),a,i));return t&&o&&u?n.success({cloneLayoutId:e.id.toString()}):n.cancel()})).catch((function(){return n.error()}))},{success:[(0,mt.set)((0,yt.state)(O||(O=$t(["templates.templates.",".layouts.",".layout"])),(0,yt.props)(_||(_=$t(["templateId"]))),(0,yt.props)(w||(w=$t(["layoutType"])))),(0,yt.props)(T||(T=$t(["cloneLayoutId"])))),function(e){var t=e.get,r=e.props,n=r.cloneLayoutId,o=r.templateId,a=r.layoutType;return t((0,yt.sequences)(E||(E=$t(["templates.setGlobalLayout"]))))({layoutId:n,templateId:o,layoutType:a})},(0,Nt.addHistoryPoint)((0,At.default)("themeBuilder","Duplicated layout"))],cancel:[],error:[(0,Bt.openPrompt)({type:Ct.PROMPT_TYPE_UNKNOWN_ERROR,content:(0,At.default)("themeBuilder","Failed to duplicate your layout. Please try again later.")})]},(0,mt.when)((0,yt.state)(P||(P=$t(["templates.templates.",""])),(0,yt.props)(j||(j=$t(["templateId"]))))),{true:[(0,mt.set)((0,yt.state)(S||(S=$t(["templates.templates.",".layouts.",".busy"])),(0,yt.props)(I||(I=$t(["templateId"]))),(0,yt.props)(M||(M=$t(["layoutType"])))),!1)],false:[]}];t.cloneLayoutInTemplate=Xt;var Jt=[function(e){var t=e.store,r=e.get,n=e.path,o=e.props,a=o.templateId,i=o.settings,u=r((0,yt.state)(q||(q=$t(["templates.templates.",""])),a));if((0,Et.default)(u))return n.error();var l=(0,ht.v4)(),c=(0,bt.default)(u);return c.id=l,c.automaticTitle="",c.automaticMeta="",c.useOn=i.useOn,c.excludeFrom=i.excludeFrom,c.default=!1,(0,Mt.default)(c,["itemId"]),(0,wt.default)(c.title)||(c.title=(0,At.default)("generic","%1$s Copy",c.title)),(0,Ot.default)(Ct.LAYOUT_TYPES,(function(e){c.layouts[e].busy=!0,c.layouts[e].layout=null})),t.set((0,yt.state)(G||(G=$t(["templates.templates.",""])),l),c),t.set((0,yt.state)($||($=$t(["templates.justCloned"]))),l),n.success({originalTemplateId:a,cloneTemplateId:l,layoutsToClone:(0,St.default)((0,Pt.default)(Ct.LAYOUT_TYPES),(function(e){return null}))})},{success:[function(e){var t=e.get,r=e.props,n=r.cloneTemplateId,o=r.overrideTemplateSettings,a=void 0===o||o;return t((0,yt.sequences)(K||(K=$t(["templates.clearTemplateConditionConflicts"]))))({templateId:n,overrideTemplateSettings:a})}].concat(Yt((0,jt.default)(Ct.LAYOUT_TYPES,(function(e){return t=e,[function(e){var r=e.get,n=e.path,o=e.props,a=o.originalTemplateId,i=o.cloneTemplateId,u=o.layoutsToClone,l=r((0,yt.state)(C||(C=$t(["templates.templates.",".default"])),a),!1),c=r((0,yt.state)(A||(A=$t(["templates.templates.",".layouts.",".layout"])),(0,yt.state)(D||(D=$t(["templates.defaultTemplate"]))),t),null),s=r((0,yt.state)(k||(k=$t(["templates.templates.",".layouts.",".layout"])),a,t),null);return(0,wt.default)(s)?n.empty():l||s!==c?(u[t]={templateId:i,layoutType:t,layoutId:s},n.defer({layoutsToClone:u})):n.global({layoutId:s})},{empty:[(0,mt.set)((0,yt.state)(R||(R=$t(["templates.templates.",".layouts.",".busy"])),(0,yt.props)(x||(x=$t(["cloneTemplateId"]))),t),!1)],global:[(0,mt.set)((0,yt.state)(L||(L=$t(["templates.templates.",".layouts.",".layout"])),(0,yt.props)(B||(B=$t(["cloneTemplateId"]))),t),(0,yt.props)(N||(N=$t(["layoutId"])))),(0,mt.set)((0,yt.state)(U||(U=$t(["templates.templates.",".layouts.",".busy"])),(0,yt.props)(W||(W=$t(["cloneTemplateId"]))),t),!1)],defer:[]}];var t}))),[(0,Nt.addHistoryPoint)((0,At.default)("themeBuilder","Duplicated template"))],Yt((0,jt.default)(Ct.LAYOUT_TYPES,(function(e){return[(0,mt.when)((0,yt.state)(Z||(Z=$t(["templates.templates.",""])),(0,yt.props)(X||(X=$t(["cloneTemplateId"]))))),{true:(t=e,[function(e){var r=e.path,n=e.props.layoutsToClone;return(0,Tt.default)(n[t])?r.skip():r.clone(n[t])},{clone:[function(e){var t=e.get,r=e.props,n=r.cloneTemplateId,o=r.layoutType,a=r.layoutId;return t((0,yt.sequences)(F||(F=$t(["templates.cloneLayoutInTemplate"]))))({templateId:n,layoutType:o,layoutId:a})}],skip:[]},(0,mt.when)((0,yt.state)(z||(z=$t(["templates.templates.",""])),(0,yt.props)(H||(H=$t(["cloneTemplateId"]))))),{true:[(0,mt.set)((0,yt.state)(Y||(Y=$t(["templates.templates.",".layouts.",".busy"])),(0,yt.props)(V||(V=$t(["cloneTemplateId"]))),t),!1)],false:[]}]),false:[]}];var t})))),error:[]}];t.cloneTemplate=Jt;var Qt=[function(e){var t=e.get,r=e.path,n=e.props.templateId,o=t((0,yt.state)(J||(J=$t(["templates.templates.",""])),n));return(0,Et.default)(o)||o.default?r.error():r.success()},{success:[(0,mt.unset)((0,yt.state)(Q||(Q=$t(["templates.templates.",""])),(0,yt.props)(ee||(ee=$t(["templateId"]))))),(0,Nt.addHistoryPoint)((0,At.default)("themeBuilder","Deleted template"))],error:[]}];t.deleteTemplate=Qt;var er=[function(e){var t=e.get,r=e.path,n=e.props.templateId,o=t((0,yt.state)(te||(te=$t(["templates.templates.",""])),n));return(0,Et.default)(o)||o.default?r.error():r.success()},{success:[(0,mt.set)((0,yt.state)(re||(re=$t(["templates.templates.",".title"])),(0,yt.props)(ne||(ne=$t(["templateId"])))),(0,yt.props)(oe||(oe=$t(["title"])))),(0,Nt.addHistoryPoint)((0,At.default)("themeBuilder","Renamed template"),1e3)],error:[]}];t.renameTemplate=er;var tr=[function(e){var t=e.get,r=e.path,n=e.props.templateId,o=t((0,yt.state)(ae||(ae=$t(["templates.templates.",""])),n));return(0,Et.default)(o)?r.error():r.success()},{success:[(0,mt.set)((0,yt.state)(ie||(ie=$t(["templates.templates.",".enabled"])),(0,yt.props)(ue||(ue=$t(["templateId"])))),!0),(0,Nt.addHistoryPoint)((0,At.default)("themeBuilder","Enabled template"))],error:[]}];t.enableTemplate=tr;var rr=[function(e){var t=e.get,r=e.path,n=e.props.templateId,o=t((0,yt.state)(le||(le=$t(["templates.templates.",""])),n));return(0,Et.default)(o)?r.error():r.success()},{success:[(0,mt.set)((0,yt.state)(ce||(ce=$t(["templates.templates.",".enabled"])),(0,yt.props)(se||(se=$t(["templateId"])))),!1),(0,Nt.addHistoryPoint)((0,At.default)("themeBuilder","Disabled template"))],error:[]}];t.disableTemplate=rr;var nr=[function(e){var t=e.store,r=e.get,n=e.path,o=e.props,a=o.templateId,i=o.settings,u=r((0,yt.state)(fe||(fe=$t(["templates.templates.",""])),a));return(0,Et.default)(u)||u.default?n.error():(t.set((0,yt.state)(de||(de=$t(["templates.templates.",".useOn"])),a),(0,_t.default)(i,"useOn",{})),t.set((0,yt.state)(pe||(pe=$t(["templates.templates.",".excludeFrom"])),a),(0,_t.default)(i,"excludeFrom",{})),n.success())},{success:[function(e){var t=e.get,r=e.props,n=r.templateId,o=r.overrideTemplateSettings,a=void 0===o||o;return t((0,yt.sequences)(ye||(ye=$t(["templates.clearTemplateConditionConflicts"]))))({templateId:n,overrideTemplateSettings:a})},(0,Nt.addHistoryPoint)((0,At.default)("themeBuilder","Updated template settings"))],error:[]}];t.setSettings=nr;var or=[function(e){var t=e.store,r=e.get,n=e.props,o=n.movedId,a=n.insertAt,i=r((0,yt.state)(me||(me=$t(["templates.defaultTemplate"]))));if(o!==i&&a!==i&&o!==a){var u=r((0,yt.state)(he||(he=$t(["templates.templateIds"])))),l=u.indexOf(o),c=u.indexOf(a);u.splice(l,1),u.splice(c,0,o);var s={};(0,Ot.default)(u,(function(e){s[e]=r((0,yt.state)(be||(be=$t(["templates.templates.",""])),e))})),t.set((0,yt.state)(ve||(ve=$t(["templates.templates"]))),s)}}];t.updateTemplatesOrder=or;var ar=[(0,Nt.addHistoryPoint)((0,At.default)("themeBuilder","Updated templates order"))];t.updateTemplatesOrderHistory=ar;var ir=[(0,mt.set)((0,yt.state)(ge||(ge=$t(["templates.templates.",".layouts.",".enabled"])),(0,yt.props)(Oe||(Oe=$t(["templateId"]))),(0,yt.props)(_e||(_e=$t(["layoutType"])))),(0,yt.props)(we||(we=$t(["enabled"])))),(0,Nt.addHistoryPoint)((0,At.default)("themeBuilder","Toggled layout visibility"))];t.toggleLayout=ir;var ur=[(0,mt.set)((0,yt.state)(Te||(Te=$t(["templates.templates.",".layouts.",".layout"])),(0,yt.props)(Ee||(Ee=$t(["templateId"]))),(0,yt.props)(Pe||(Pe=$t(["layoutType"])))),(0,yt.props)(je||(je=$t(["layoutId"])))),function(e){var t=e.path,r=e.props.layoutId;return(0,Tt.default)(r)?t.removed():t.assigned()},{assigned:[(0,Nt.addHistoryPoint)((0,At.default)("themeBuilder","Assigned layout to template"))],removed:[(0,Nt.addHistoryPoint)((0,At.default)("themeBuilder","Removed layout from template"))]}];t.setLayout=ur;var lr=[function(e){var t=e.get,r=e.props,n=r.layoutId,o=r.layoutType,a=r.templateId,i=t((0,yt.state)(Se||(Se=$t(["templates.defaultTemplate"]))));if(a===i){var u=t((0,yt.state)(Ie||(Ie=$t(["templates.templates"])))),l=t((0,yt.sequences)(Me||(Me=$t(["templates.setLayout"]))));(0,Ot.default)(u,(function(e,r){r!==i&&(t(e.layouts[o].layout)||l({templateId:r,layoutType:o,layoutId:n}))}))}}];t.setGlobalLayout=lr;var cr=[function(e){var t=e.get,r=e.path,n=e.props,o=n.sourceLayoutId,a=n.sourceLayoutType,i=n.targetLayoutType,u=n.targetTemplateId;if(a!==i)return r.clone();var l=t((0,yt.state)(Ce||(Ce=$t(["templates.defaultTemplate"])))),c=t((0,yt.state)(Ae||(Ae=$t(["templates.templates.",".layouts.",".layout"])),l,i));return u===l||o===c?r.set():r.clone()},{clone:[function(e){var t=e.get,r=e.props,n=r.sourceLayoutId,o=r.targetLayoutType,a=r.targetTemplateId;return t((0,yt.sequences)(De||(De=$t(["templates.cloneLayoutInTemplate"]))))({layoutId:n,layoutType:o,templateId:a})}],set:[function(e){var t=e.get,r=e.props,n=r.sourceLayoutId,o=r.targetLayoutType,a=r.targetTemplateId;return t((0,yt.sequences)(ke||(ke=$t(["templates.setLayout"]))))({layoutId:n,layoutType:o,templateId:a})},function(e){var t=e.get,r=e.props,n=r.sourceLayoutId,o=r.targetLayoutType,a=r.targetTemplateId;return t((0,yt.sequences)(Re||(Re=$t(["templates.setGlobalLayout"]))))({layoutId:n,layoutType:o,templateId:a})}]}];t.applyLayout=cr;var sr=[function(e){var t=e.get,r=e.props,n=r.layoutType,o=r.templateId,a=t((0,yt.state)(xe||(xe=$t(["clipboard"])))),i=a.layoutId,u=a.layoutType;if(o&&n&&!t((0,yt.state)(Le||(Le=$t(["templates.templates.",".layouts.",".layout"])),o,n)))return t((0,yt.sequences)(Be||(Be=$t(["templates.applyLayout"]))))({sourceLayoutId:i,sourceLayoutType:u,targetLayoutType:n,targetTemplateId:o})}];t.pasteLayout=sr;var fr=function(e,t,r){var n=r((0,yt.state)(Ne||(Ne=$t(["templates.templates.",".layouts.",".layout"])),e,t));return null===n?[]:(0,jt.default)((0,vt.default)(r((0,yt.state)(Ue||(Ue=$t(["templates.templates"])))),(function(r){return r.id!==e&&r.layouts[t].layout===n})),"id")},dr=[function(e){var t=e.get,r=e.path,n=e.props,o=n.templateId,a=n.layoutType,i=t((0,yt.state)(We||(We=$t(["templates.templates.",".default"])),o)),u=i?fr(o,a,t):[];return i&&!(0,wt.default)(u)?r.prompt():r.delete({layoutId:null})},{prompt:[(0,Bt.openPrompt)({type:Ct.PROMPT_TYPE_DELETE_GLOBAL_LAYOUT,payload:{templateId:(0,yt.props)(Fe||(Fe=$t(["templateId"]))),layoutType:(0,yt.props)(ze||(ze=$t(["layoutType"])))}})],delete:[ur]}];t.deleteLayout=dr;var pr=[function(e){var t=e.path,r=Wt(e.props.templateIds),n=r[0],o=r.slice(1);return n?t.loop({templateIds:o,templateId:n}):t.stop()},{loop:[function(e){var t=e.get,r=e.props,n=r.templateId,o=r.layoutType,a=r.globalLayoutId;return t((0,yt.sequences)(He||(He=$t(["templates.cloneLayoutInTemplate"]))))({templateId:n,layoutType:o,layoutId:a})},(0,mt.increment)((0,yt.state)(Ye||(Ye=$t(["templates.deleteGlobalLayout.step"])))),function(e){var t=e.get,r=e.props;return t((0,yt.sequences)(Ve||(Ve=$t(["templates.deleteGlobalLayoutStep"]))))(r)}],stop:[(0,mt.wait)(1e3),(0,Bt.closePrompt)(),(0,mt.set)((0,yt.state)(qe||(qe=$t(["templates.deleteGlobalLayout.step"]))),0),(0,mt.set)((0,yt.state)(Ge||(Ge=$t(["templates.deleteGlobalLayout.steps"]))),0)]}];t.deleteGlobalLayoutStep=pr;var yr=[function(e){var t=e.get,r=e.path,n=e.props.templateId;return t((0,yt.state)($e||($e=$t(["templates.templates.",".default"])),n))?r.delete():r.cancel()},{delete:[function(e){var t=e.get,r=e.props,n=r.templateId,o=r.layoutType,a=e.store,i=t((0,yt.state)(Ke||(Ke=$t(["templates.templates.",".layouts.",".layout"])),n,o)),u=fr(n,o,t);return(0,Ot.default)(u,(function(e){a.set((0,yt.state)(Ze||(Ze=$t(["templates.templates.",".layouts.",".layout"])),e,o),null)})),a.set((0,yt.state)(Xe||(Xe=$t(["templates.deleteGlobalLayout.steps"]))),u.length),{globalLayoutId:i,templateIds:u,layoutId:null}},ur,(0,Bt.openPrompt)({type:Ct.PROMPT_TYPE_DELETE_GLOBAL_LAYOUT_PROGRESS,requireAction:!0,payload:{globalLayoutId:(0,yt.props)(Je||(Je=$t(["globalLayoutId"]))),templateIds:(0,yt.props)(Qe||(Qe=$t(["templateIds"])))}}),pr],cancel:[]}];t.deleteGlobalLayout=yr;var mr=[kt.blockInteractions,function(e){var t=e.api,r=e.path,n=e.props.layoutType;return t.createLayout(n).then((function(e){return r.success({layoutId:e.id.toString()})})).catch((function(){return r.error()}))},{success:[ur,lr,Rt.editLayout,kt.unblockInteractions],error:[kt.unblockInteractions,(0,Bt.openPrompt)({type:Ct.PROMPT_TYPE_UNKNOWN_ERROR,content:(0,At.default)("themeBuilder","Failed to create your layout. Please try again later.")})]}];t.createLayoutInTemplate=mr;var hr=[xt.openDiviLibrary];t.importLayoutFromLibraryInTemplate=hr;var br=[Lt.openThemeBuilderLibrary];t.importLayoutFromTBLibraryInTemplate=br;var vr=[function(e){var t=e.get,r=e.props.settings,n=e.store,o=t((0,yt.state)(et||(et=$t(["templates.settings"])))),a=(0,vt.default)(r,(function(e){return(0,Et.default)(o[e.id])}));(0,wt.default)(a)||n.set((0,yt.state)(tt||(tt=$t(["templates.settings"]))),zt(zt({},o),(0,Pt.default)(a,(function(e){return e.id}))))}];t.addNewTemplateSettings=vr;var gr=[(0,mt.set)((0,yt.state)(rt||(rt=$t(["templates.justCloned"]))),(0,yt.props)(nt||(nt=$t(["templateId"]))))];t.setJustCloned=gr;var Or=[(0,mt.set)((0,yt.state)(ot||(ot=$t(["templates.templates.",".automaticTitle"])),(0,yt.props)(at||(at=$t(["templateId"])))),(0,yt.props)(it||(it=$t(["automaticTitle"])))),(0,mt.set)((0,yt.state)(ut||(ut=$t(["templates.templates.",".automaticMeta"])),(0,yt.props)(lt||(lt=$t(["templateId"])))),(0,yt.props)(ct||(ct=$t(["automaticMeta"]))))];t.optimizationSetAutomaticTitleAndMeta=Or;var _r=[(0,mt.set)((0,yt.state)(st||(st=$t(["templates.templateIds"]))),(0,yt.props)(ft||(ft=$t(["templateIds"]))))];t.optimizationSetTemplateIds=_r;var wr=[(0,mt.set)((0,yt.state)(dt||(dt=$t(["templates.defaultTemplate"]))),(0,yt.props)(pt||(pt=$t(["templateId"]))))];t.optimizationSetDefaultTemplate=wr},function(e,t,r){var n=r(143),o=r(160),a=r(252),i=r(49),u=r(65),l=r(144);e.exports=function(e,t,r,c){var s=-1,f=o,d=!0,p=e.length,y=[],m=t.length;if(!p)return y;r&&(t=i(t,u(r))),c?(f=a,d=!1):t.length>=200&&(f=l,d=!1,t=new n(t));e:for(;++s<p;){var h=e[s],b=null==r?h:r(h);if(h=c||0!==h?h:0,d&&b==b){for(var v=m;v--;)if(t[v]===b)continue e;y.push(h)}else f(t,b,c)||y.push(h)}return y}},function(e,t){e.exports=function(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}},function(e,t){e.exports=function(e){for(var t=-1,r=null==e?0:e.length,n=0,o=[];++t<r;){var a=e[t];a&&(o[n++]=a)}return o}},function(e,t,r){var n=r(102),o=r(129),a=r(139),i=r(255),u=r(15),l=r(69),c=r(130);e.exports=function e(t,r,s,f,d){t!==r&&a(r,(function(a,l){if(d||(d=new n),u(a))i(t,r,l,s,e,f,d);else{var p=f?f(c(t,l),a,l+"",t,r,d):void 0;void 0===p&&(p=a),o(t,l,p)}}),l)}},function(e,t,r){var n=r(129),o=r(151),a=r(152),i=r(70),u=r(153),l=r(75),c=r(10),s=r(79),f=r(76),d=r(36),p=r(15),y=r(43),m=r(87),h=r(130),b=r(256);e.exports=function(e,t,r,v,g,O,_){var w=h(e,r),T=h(t,r),E=_.get(T);if(E)n(e,r,E);else{var P=O?O(w,T,r+"",e,t,_):void 0,j=void 0===P;if(j){var S=c(T),I=!S&&f(T),M=!S&&!I&&m(T);P=T,S||I||M?c(w)?P=w:s(w)?P=i(w):I?(j=!1,P=o(T,!0)):M?(j=!1,P=a(T,!0)):P=[]:y(T)||l(T)?(P=w,l(w)?P=b(w):p(w)&&!d(w)||(P=u(T))):j=!1}j&&(_.set(T,P),g(P,T,v,O,_),_.delete(T)),n(e,r,P)}}},function(e,t,r){var n=r(68),o=r(69);e.exports=function(e){return n(e,o(e))}},function(e,t,r){var n=r(141),o=r(66),a=r(28),i=r(39),u=r(518);e.exports=function(e){if(null==e)return 0;if(a(e))return i(e)?u(e):e.length;var t=o(e);return"[object Map]"==t||"[object Set]"==t?e.size:n(e).length}},function(e,t,r){var n=r(99),o=r(308),a=r(247),i=r(330),u=r(530),l=r(163),c=r(16);e.exports=function(e,t,r){if((e=c(e))&&(r||void 0===t))return o(e);if(!e||!(t=n(t)))return e;var s=l(e),f=l(t),d=u(s,f),p=i(s,f)+1;return a(s,d,p).join("")}},function(e,t,r){var n=r(49),o=r(535),a=r(50),i=r(536),u=a((function(e){var t=n(e,i);return t.length&&t[0]===e[0]?o(t):[]}));e.exports=u},function(e,t,r){var n=r(20);e.exports=function(){return n.Date.now()}},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.windowHasScrollbar=t.getViewportAdaptableRectangle=t.getViewportAdaptablePositioning=t.getScrollbarWidth=void 0;t.getViewportAdaptablePositioning=function(e,t,r,o){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:30,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:100,u=n(e,r,0,t.offset().top,t.parent().width(),o,30,30,a,i);return{position:{left:u.left,top:u.top},size:{width:u.width,height:u.height},flags:{fitsInBottomSpace:u.fitsInBottomSpace,fitsInBottomAndTopSpace:u.fitsInBottomAndTopSpace,fitsWithScroll:u.fitsWithScroll}}};var r=function(e,t,r,n,o,a){var i=t<=Math.min(n,r-o)-a,u=t<=r-o-a,l=Math.max(o,e),c=t;return i||(u?(l-=t-(n-a),c=t):(l=o,c=r-o-a)),{position:l,size:c,fitsInAfterSpace:i,fitsInBeforeAndAfterSpace:u}},n=function(t,n,o,a,i,u){var l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,s=arguments.length>8&&void 0!==arguments[8]?arguments[8]:30,f=arguments.length>9&&void 0!==arguments[9]?arguments[9]:30,d=t.scrollLeft(),p=t.scrollTop(),y=t.width(),m=t.height(),h=y-((o=o>=d?o:d+l)-d),b=m-((a=a>=p?a:p+s)-p),v=n.parents().filter((function(){var t=e(this).css("transform");return"none"!==t&&t.length>0})).first(),g=r(o-d,i,y,h,l,c),O=g.position,_=g.size,w=g.fitsInAfterSpace,T=g.fitsInBeforeAndAfterSpace,E=r(a-p,u,m,b,s,f),P=E.position,j=E.size,S=E.fitsInAfterSpace,I=E.fitsInBeforeAndAfterSpace;return v.length>0&&(O-=v.offset().left-d,P-=v.offset().top-p),{left:O,top:P,width:_,height:j,fitsInRightSpace:w,fitsInRightAndLeftSpace:T,fitsInBottomSpace:S,fitsInBottomAndTopSpace:I,fitsWithScroll:!S&&!I}};t.getViewportAdaptableRectangle=n;var o=-1;t.getScrollbarWidth=function(){if(0<o)return o;var e=document.createElement("div"),t=document.createElement("div");e.style.visibility="hidden",e.style.width="100px",t.style.width="100%",t.style.height="100%",e.appendChild(t),document.body.appendChild(e);var r=e.offsetWidth;e.style.overflow="scroll";var n=t.offsetWidth;return document.body.removeChild(e),o=r-n};t.windowHasScrollbar=function(e){return e.document.body.scrollHeight>e.document.body.clientHeight}}).call(this,r(11))},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e.default:e}t.__esModule=!0;var o=r(559);t.Motion=n(o);var a=r(560);t.StaggeredMotion=n(a);var i=r(561);t.TransitionMotion=n(i);var u=r(563);t.spring=n(u);var l=r(349);t.presets=n(l);var c=r(177);t.stripStyle=n(c);var s=r(564);t.reorderKeys=n(s)},function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=0);return t},e.exports=t.default},function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e,t,r,o,a,i,u){var l=r+(-a*(t-o)+-i*r)*e,c=t+l*e;if(Math.abs(l)<u&&Math.abs(c-o)<u)return n[0]=o,n[1]=0,n;return n[0]=c,n[1]=l,n};var n=[0,0];e.exports=t.default},function(e,t,r){(function(t){for(var n=r(178),o="undefined"==typeof window?t:window,a=["moz","webkit"],i="AnimationFrame",u=o["request"+i],l=o["cancel"+i]||o["cancelRequest"+i],c=0;!u&&c<a.length;c++)u=o[a[c]+"Request"+i],l=o[a[c]+"Cancel"+i]||o[a[c]+"CancelRequest"+i];if(!u||!l){var s=0,f=0,d=[];u=function(e){if(0===d.length){var t=n(),r=Math.max(0,16.666666666666668-(t-s));s=r+t,setTimeout((function(){var e=d.slice(0);d.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(s)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(r))}return d.push({handle:++f,callback:e,cancelled:!1}),f},l=function(e){for(var t=0;t<d.length;t++)d[t].handle===e&&(d[t].cancelled=!0)}}e.exports=function(e){return u.call(o,e)},e.exports.cancel=function(){l.apply(o,arguments)},e.exports.polyfill=function(e){e||(e=o),e.requestAnimationFrame=u,e.cancelAnimationFrame=l}}).call(this,r(59))},function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e,t,r){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(0!==r[n])return!1;var o="number"==typeof t[n]?t[n]:t[n].val;if(e[n]!==o)return!1}return!0},e.exports=t.default},function(e,t,r){"use strict";r.r(t),function(e){var n=r(0),o=r.n(n),a=r(1),i=r.n(a),u=r(278),l=ET_Builder.Frames.top,c=l&&l!==window;function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p.apply(this,arguments)}function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function v(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}var g={HIDE:"__react_tooltip_hide_event",REBUILD:"__react_tooltip_rebuild_event",SHOW:"__react_tooltip_show_event"},O=function(e,t){var r;"function"==typeof window.CustomEvent?r=new window.CustomEvent(e,{detail:t}):(r=document.createEvent("Event")).initEvent(e,!1,!0,t),window.dispatchEvent(r)};var _=function(e,t){var r=this.state.show,n=this.props.id,o=this.isCapture(t.currentTarget),a=t.currentTarget.getAttribute("currentItem");o||t.stopPropagation(),r&&"true"===a?e||this.hideTooltip(t):(t.currentTarget.setAttribute("currentItem","true"),w(t.currentTarget,this.getTargetArray(n)),this.showTooltip(t))},w=function(e,t){for(var r=0;r<t.length;r++)e!==t[r]?t[r].setAttribute("currentItem","false"):t[r].setAttribute("currentItem","true")},T={id:"9b69f92e-d3fe-498b-b1b4-c5e63a51b0cf",set:function(e,t,r){this.id in e?e[this.id][t]=r:Object.defineProperty(e,this.id,{configurable:!0,value:d({},t,r)})},get:function(e,t){var r=e[this.id];if(void 0!==r)return r[t]}};var E=function(e,t,r){var n=t.respectEffect,o=void 0!==n&&n,a=t.customEvent,i=void 0!==a&&a,u=this.props.id,l=r.target.getAttribute("data-tip")||null,c=r.target.getAttribute("data-for")||null,s=r.target;if(!this.isCustomEvent(s)||i){var f=null==u&&null==c||c===u;if(null!=l&&(!o||"float"===this.getEffect(s))&&f){var d=function(e){var t={};for(var r in e)"function"==typeof e[r]?t[r]=e[r].bind(e):t[r]=e[r];return t}(r);d.currentTarget=s,e(d)}}},P=function(e,t){var r={};return e.forEach((function(e){var n=e.getAttribute(t);n&&n.split(" ").forEach((function(e){return r[e]=!0}))})),r},j=function(){return document.getElementsByTagName("body")[0]};function S(e,t,r,n,o,a,i){for(var u=I(r),c=u.width,s=u.height,f=I(t),d=f.width,p=f.height,y=M(e,t,a),m=y.mouseX,h=y.mouseY,b=C(a,d,p,c,s),v=A(i),g=v.extraOffsetX,O=v.extraOffsetY,_=l.innerWidth,w=l.innerHeight,T=D(r),E=T.parentTop,P=T.parentLeft,j=function(e,t){var r=b[e].l;return m*(t=t||1)+r+g},S=function(e,t){var r=b[e].t;return h*(t=t||1)+r+O},k=function(e){return function(e,t){var r=b[e].r;return m*(t=t||1)+r+g}(e)>_},R=function(e){return function(e,t){var r=b[e].b;return h*(t=t||1)+r+O}(e)>w},x=function(e){return function(e){return j(e)<0}(e)||k(e)||function(e){return S(e)<0}(e)||R(e)},L=function(e){return!x(e)},B=["top","bottom","left","right"],N=[],U=0;U<4;U++){var W=B[U];L(W)&&N.push(W)}var F,z=!1,H=o!==n;if(L(o)&&H?(z=!0,F=o):N.length>0&&x(o)&&x(n)&&(z=!0,F=N[0]),z)return{isNewState:!0,newState:{place:F}};var Y=l,V=Y.jQuery,q=V("#et-fb-app-frame, #et-bfb-app-frame"),G=V(t),$=G.closest("html.et-fb-app-frame").length||G.closest("html.et-tb-html").length||G.closest("html.et-bfb-html").length||G.closest("html.et-fb-app-frame--theme-builder").length,K=0;$&&(K=parseInt(q.css("margin-right"),10));var Z={top:0,left:K},X=!!G.closest("html.et-fb-preview--phone").length,J=!(X||!G.closest("html.et-fb-preview--tablet").length),Q=!(X||J||!G.closest("html.et-fb-preview--zoom").length),ee=X||J,te=X||J||Q,re=!1,ne=!1,oe=Q&&$?.5:1,ae=G.closest(".et_pb_root--bfb").length,ie=0;if((Q&&$||ae||ee)&&(ie=V(Y).scrollTop(),re=G.closest(".et-fb-page-settings-bar").length),(ae||ee)&&(ne=G.closest(".et-responsive-view-controls").length),Q){var ue=q.width();if(Z.left=(ue-.5*ue)/2,!re){Z.top-=ie;var le=parseInt(q.css("padding-top"),10);le&&(Z.top+=le/2)}}if(ae){i=V("#et_pb_layout").offset();var ce=V("#et_pb_layout .postbox-header").outerHeight();Z.left+=i.left,te?re||ne||(Z.top+=i.top+ce):Z.top+=i.top-ie+ce}if(ee){var se=G.closest(".et-fb-modal").length;if(re||se||(Z.top-=ie),!re&&!ne&&!se){var fe=V(".et-responsive-view-controls");fe.length&&!G.closest("html.et-tb-html").length&&(Z.top+=parseInt(window.getComputedStyle(fe.get(0),":before").height,10)),Z.left+=q.position().left}}return{isNewState:!1,position:{left:parseInt(j(n,oe)-P+Z.left,10),top:parseInt(S(n,oe)-E+Z.top,10)}}}var I=function(e){var t=e.getBoundingClientRect(),r=t.height,n=t.width;return{height:parseInt(r,10),width:parseInt(n,10)}},M=function(e,t,r){var n=t.getBoundingClientRect(),o=n.top,a=n.left,i=I(t),u=i.width,l=i.height;return"float"===r?{mouseX:e.clientX,mouseY:e.clientY}:{mouseX:a+u/2,mouseY:o+l/2}},C=function(e,t,r,n,o){var a,i,u,l;return"float"===e?(a={l:-n/2,r:n/2,t:-(o+3+2),b:-3},u={l:-n/2,r:n/2,t:15,b:o+3+2+12},l={l:-(n+3+2),r:-3,t:-o/2,b:o/2},i={l:3,r:n+3+2,t:-o/2,b:o/2}):"solid"===e&&(a={l:-n/2,r:n/2,t:-(r/2+o+2),b:-r/2},u={l:-n/2,r:n/2,t:r/2,b:r/2+o+2},l={l:-(n+t/2+2),r:-t/2,t:-o/2,b:o/2},i={l:t/2,r:n+t/2+2,t:-o/2,b:o/2}),{top:a,bottom:u,left:l,right:i}},A=function(e){var t=0,r=0;for(var n in"[object String]"===Object.prototype.toString.apply(e)&&(e=JSON.parse(e.toString().replace(/'/g,'"'))),e)"top"===n?r-=parseInt(e[n],10):"bottom"===n?r+=parseInt(e[n],10):"left"===n?t-=parseInt(e[n],10):"right"===n&&(t+=parseInt(e[n],10));return{extraOffsetX:t,extraOffsetY:r}},D=function(e){for(var t=e;t;){var r=window.getComputedStyle(t);if("none"!==r.getPropertyValue("transform")||"transform"===r.getPropertyValue("will-change"))break;t=t.parentElement}return{parentTop:t&&t.getBoundingClientRect().top||0,parentLeft:t&&t.getBoundingClientRect().left||0}};function k(e,t,r,n){if(t)return t;if(null!=r)return r;if(null===r)return null;var a=/<br\s*\/?>/;return n&&"false"!==n&&a.test(e)?e.split(a).map((function(e,t){return o.a.createElement("span",{key:t,className:"multi-line"},e)})):e}function R(e){var t={};return Object.keys(e).filter((function(e){return/(^aria-\w+$|^role$)/.test(e)})).forEach((function(r){t[r]=e[r]})),t}function x(e){var t=e.length;return e.hasOwnProperty?Array.prototype.slice.call(e):new Array(t).fill().map((function(t){return e[t]}))}var L={dark:{text:"#fff",background:"#222",border:"transparent",arrow:"#222"},success:{text:"#fff",background:"#8DC572",border:"transparent",arrow:"#8DC572"},warning:{text:"#fff",background:"#F0AD4E",border:"transparent",arrow:"#F0AD4E"},error:{text:"#fff",background:"#BE6464",border:"transparent",arrow:"#BE6464"},info:{text:"#fff",background:"#337AB7",border:"transparent",arrow:"#337AB7"},light:{text:"#222",background:"#fff",border:"transparent",arrow:"#fff"}};function B(e,t,r,n){return function(e,t){var r=t.text,n=t.background,o=t.border,a=t.arrow;return"\n \t.".concat(e," {\n\t color: ").concat(r,";\n\t background: ").concat(n,";\n\t border: 1px solid ").concat(o,";\n \t}\n\n \t.").concat(e,".place-top {\n margin-top: -10px;\n }\n .").concat(e,".place-top::before {\n border-top: 8px solid ").concat(o,";\n }\n .").concat(e,".place-top::after {\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n bottom: -6px;\n left: 50%;\n margin-left: -8px;\n border-top-color: ").concat(a,";\n border-top-style: solid;\n border-top-width: 6px;\n }\n\n .").concat(e,".place-bottom {\n margin-top: 10px;\n }\n .").concat(e,".place-bottom::before {\n border-bottom: 8px solid ").concat(o,";\n }\n .").concat(e,".place-bottom::after {\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n top: -6px;\n left: 50%;\n margin-left: -8px;\n border-bottom-color: ").concat(a,";\n border-bottom-style: solid;\n border-bottom-width: 6px;\n }\n\n .").concat(e,".place-left {\n margin-left: -10px;\n }\n .").concat(e,".place-left::before {\n border-left: 8px solid ").concat(o,";\n }\n .").concat(e,".place-left::after {\n border-top: 5px solid transparent;\n border-bottom: 5px solid transparent;\n right: -6px;\n top: 50%;\n margin-top: -4px;\n border-left-color: ").concat(a,";\n border-left-style: solid;\n border-left-width: 6px;\n }\n\n .").concat(e,".place-right {\n margin-left: 10px;\n }\n .").concat(e,".place-right::before {\n border-right: 8px solid ").concat(o,";\n }\n .").concat(e,".place-right::after {\n border-top: 5px solid transparent;\n border-bottom: 5px solid transparent;\n left: -6px;\n top: 50%;\n margin-top: -4px;\n border-right-color: ").concat(a,";\n border-right-style: solid;\n border-right-width: 6px;\n }\n ")}(e,function(e,t,r){var n=e.text,o=e.background,a=e.border,i=e.arrow?e.arrow:e.background,u=function(e){return L[e]?m({},L[e]):void 0}(t);n&&(u.text=n);o&&(u.background=o);r&&(u.border=a||("light"===t?"black":"white"));i&&(u.arrow=i);return u}(t,r,n))}var N="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function U(e,t){return e(t={exports:{}},t.exports),t.exports}var W=function(e){return e&&e.Math==Math&&e},F=W("object"==typeof globalThis&&globalThis)||W("object"==typeof window&&window)||W("object"==typeof self&&self)||W("object"==typeof N&&N)||function(){return this}()||Function("return this")(),z=function(e){try{return!!e()}catch(e){return!0}},H=!z((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Y={}.propertyIsEnumerable,V=Object.getOwnPropertyDescriptor,q={f:V&&!Y.call({1:2},1)?function(e){var t=V(this,e);return!!t&&t.enumerable}:Y},G=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},$={}.toString,K=function(e){return $.call(e).slice(8,-1)},Z="".split,X=z((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==K(e)?Z.call(e,""):Object(e)}:Object,J=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},Q=function(e){return X(J(e))},ee=function(e){return"object"==typeof e?null!==e:"function"==typeof e},te=function(e,t){if(!ee(e))return e;var r,n;if(t&&"function"==typeof(r=e.toString)&&!ee(n=r.call(e)))return n;if("function"==typeof(r=e.valueOf)&&!ee(n=r.call(e)))return n;if(!t&&"function"==typeof(r=e.toString)&&!ee(n=r.call(e)))return n;throw TypeError("Can't convert object to primitive value")},re=function(e){return Object(J(e))},ne={}.hasOwnProperty,oe=function(e,t){return ne.call(re(e),t)},ae=F.document,ie=ee(ae)&&ee(ae.createElement),ue=function(e){return ie?ae.createElement(e):{}},le=!H&&!z((function(){return 7!=Object.defineProperty(ue("div"),"a",{get:function(){return 7}}).a})),ce=Object.getOwnPropertyDescriptor,se={f:H?ce:function(e,t){if(e=Q(e),t=te(t,!0),le)try{return ce(e,t)}catch(e){}if(oe(e,t))return G(!q.f.call(e,t),e[t])}},fe=function(e){if(!ee(e))throw TypeError(String(e)+" is not an object");return e},de=Object.defineProperty,pe={f:H?de:function(e,t,r){if(fe(e),t=te(t,!0),fe(r),le)try{return de(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},ye=H?function(e,t,r){return pe.f(e,t,G(1,r))}:function(e,t,r){return e[t]=r,e},me=function(e,t){try{ye(F,e,t)}catch(r){F[e]=t}return t},he="__core-js_shared__",be=F[he]||me(he,{}),ve=Function.toString;"function"!=typeof be.inspectSource&&(be.inspectSource=function(e){return ve.call(e)});var ge,Oe,_e,we=be.inspectSource,Te=F.WeakMap,Ee="function"==typeof Te&&/native code/.test(we(Te)),Pe=U((function(e){(e.exports=function(e,t){return be[e]||(be[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.12.1",mode:"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})})),je=0,Se=Math.random(),Ie=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++je+Se).toString(36)},Me=Pe("keys"),Ce=function(e){return Me[e]||(Me[e]=Ie(e))},Ae={},De="Object already initialized",ke=F.WeakMap;if(Ee||be.state){var Re=be.state||(be.state=new ke),xe=Re.get,Le=Re.has,Be=Re.set;ge=function(e,t){if(Le.call(Re,e))throw new TypeError(De);return t.facade=e,Be.call(Re,e,t),t},Oe=function(e){return xe.call(Re,e)||{}},_e=function(e){return Le.call(Re,e)}}else{var Ne=Ce("state");Ae[Ne]=!0,ge=function(e,t){if(oe(e,Ne))throw new TypeError(De);return t.facade=e,ye(e,Ne,t),t},Oe=function(e){return oe(e,Ne)?e[Ne]:{}},_e=function(e){return oe(e,Ne)}}var Ue,We,Fe={set:ge,get:Oe,has:_e,enforce:function(e){return _e(e)?Oe(e):ge(e,{})},getterFor:function(e){return function(t){var r;if(!ee(t)||(r=Oe(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}},ze=U((function(e){var t=Fe.get,r=Fe.enforce,n=String(String).split("String");(e.exports=function(e,t,o,a){var i,u=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet;"function"==typeof o&&("string"!=typeof t||oe(o,"name")||ye(o,"name",t),(i=r(o)).source||(i.source=n.join("string"==typeof t?t:""))),e!==F?(u?!c&&e[t]&&(l=!0):delete e[t],l?e[t]=o:ye(e,t,o)):l?e[t]=o:me(t,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||we(this)}))})),He=F,Ye=function(e){return"function"==typeof e?e:void 0},Ve=function(e,t){return arguments.length<2?Ye(He[e])||Ye(F[e]):He[e]&&He[e][t]||F[e]&&F[e][t]},qe=Math.ceil,Ge=Math.floor,$e=function(e){return isNaN(e=+e)?0:(e>0?Ge:qe)(e)},Ke=Math.min,Ze=function(e){return e>0?Ke($e(e),9007199254740991):0},Xe=Math.max,Je=Math.min,Qe=function(e){return function(t,r,n){var o,a=Q(t),i=Ze(a.length),u=function(e,t){var r=$e(e);return r<0?Xe(r+t,0):Je(r,t)}(n,i);if(e&&r!=r){for(;i>u;)if((o=a[u++])!=o)return!0}else for(;i>u;u++)if((e||u in a)&&a[u]===r)return e||u||0;return!e&&-1}},et={includes:Qe(!0),indexOf:Qe(!1)}.indexOf,tt=function(e,t){var r,n=Q(e),o=0,a=[];for(r in n)!oe(Ae,r)&&oe(n,r)&&a.push(r);for(;t.length>o;)oe(n,r=t[o++])&&(~et(a,r)||a.push(r));return a},rt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],nt=rt.concat("length","prototype"),ot={f:Object.getOwnPropertyNames||function(e){return tt(e,nt)}},at={f:Object.getOwnPropertySymbols},it=Ve("Reflect","ownKeys")||function(e){var t=ot.f(fe(e)),r=at.f;return r?t.concat(r(e)):t},ut=function(e,t){for(var r=it(t),n=pe.f,o=se.f,a=0;a<r.length;a++){var i=r[a];oe(e,i)||n(e,i,o(t,i))}},lt=/#|\.prototype\./,ct=function(e,t){var r=ft[st(e)];return r==pt||r!=dt&&("function"==typeof t?z(t):!!t)},st=ct.normalize=function(e){return String(e).replace(lt,".").toLowerCase()},ft=ct.data={},dt=ct.NATIVE="N",pt=ct.POLYFILL="P",yt=ct,mt=se.f,ht=function(e,t,r){if(function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function")}(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}},bt=Array.isArray||function(e){return"Array"==K(e)},vt=Ve("navigator","userAgent")||"",gt=F.process,Ot=gt&>.versions,_t=Ot&&Ot.v8;_t?We=(Ue=_t.split("."))[0]<4?1:Ue[0]+Ue[1]:vt&&(!(Ue=vt.match(/Edge\/(\d+)/))||Ue[1]>=74)&&(Ue=vt.match(/Chrome\/(\d+)/))&&(We=Ue[1]);var wt,Tt=We&&+We,Et=!!Object.getOwnPropertySymbols&&!z((function(){return!String(Symbol())||!Symbol.sham&&Tt&&Tt<41})),Pt=Et&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,jt=Pe("wks"),St=F.Symbol,It=Pt?St:St&&St.withoutSetter||Ie,Mt=function(e){return oe(jt,e)&&(Et||"string"==typeof jt[e])||(Et&&oe(St,e)?jt[e]=St[e]:jt[e]=It("Symbol."+e)),jt[e]},Ct=Mt("species"),At=function(e,t){var r;return bt(e)&&("function"!=typeof(r=e.constructor)||r!==Array&&!bt(r.prototype)?ee(r)&&null===(r=r[Ct])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===t?0:t)},Dt=[].push,kt=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,a=6==e,i=7==e,u=5==e||a;return function(l,c,s,f){for(var d,p,y=re(l),m=X(y),h=ht(c,s,3),b=Ze(m.length),v=0,g=f||At,O=t?g(l,b):r||i?g(l,0):void 0;b>v;v++)if((u||v in m)&&(p=h(d=m[v],v,y),e))if(t)O[v]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return v;case 2:Dt.call(O,d)}else switch(e){case 4:return!1;case 7:Dt.call(O,d)}return a?-1:n||o?o:O}},Rt={forEach:kt(0),map:kt(1),filter:kt(2),some:kt(3),every:kt(4),find:kt(5),findIndex:kt(6),filterOut:kt(7)},xt=Object.keys||function(e){return tt(e,rt)},Lt=H?Object.defineProperties:function(e,t){fe(e);for(var r,n=xt(t),o=n.length,a=0;o>a;)pe.f(e,r=n[a++],t[r]);return e},Bt=Ve("document","documentElement"),Nt=Ce("IE_PROTO"),Ut=function(){},Wt=function(e){return"<script>"+e+"</"+"script>"},Ft=function(){try{wt=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;Ft=wt?function(e){e.write(Wt("")),e.close();var t=e.parentWindow.Object;return e=null,t}(wt):((t=ue("iframe")).style.display="none",Bt.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Wt("document.F=Object")),e.close(),e.F);for(var r=rt.length;r--;)delete Ft.prototype[rt[r]];return Ft()};Ae[Nt]=!0;var zt=Object.create||function(e,t){var r;return null!==e?(Ut.prototype=fe(e),r=new Ut,Ut.prototype=null,r[Nt]=e):r=Ft(),void 0===t?r:Lt(r,t)},Ht=Mt("unscopables"),Yt=Array.prototype;null==Yt[Ht]&&pe.f(Yt,Ht,{configurable:!0,value:zt(null)});var Vt,qt,Gt,$t,Kt=Rt.find,Zt="find",Xt=!0;Zt in[]&&Array(1).find((function(){Xt=!1})),function(e,t){var r,n,o,a,i,u=e.target,l=e.global,c=e.stat;if(r=l?F:c?F[u]||me(u,{}):(F[u]||{}).prototype)for(n in t){if(a=t[n],o=e.noTargetGet?(i=mt(r,n))&&i.value:r[n],!yt(l?n:u+(c?".":"#")+n,e.forced)&&void 0!==o){if(typeof a==typeof o)continue;ut(a,o)}(e.sham||o&&o.sham)&&ye(a,"sham",!0),ze(r,n,a,e)}}({target:"Array",proto:!0,forced:Xt},{find:function(e){return Kt(this,e,arguments.length>1?arguments[1]:void 0)}}),Vt=Zt,Yt[Ht][Vt]=!0;var Jt,Qt=function(e){e.hide=function(e){O(g.HIDE,{target:e})},e.rebuild=function(){O(g.REBUILD)},e.show=function(e){O(g.SHOW,{target:e})},e.prototype.globalRebuild=function(){this.mount&&(this.unbindListener(),this.bindListener())},e.prototype.globalShow=function(e){if(this.mount){var t=!!(e&&e.detail&&e.detail.target);this.showTooltip({currentTarget:t&&e.detail.target},!0)}},e.prototype.globalHide=function(e){if(this.mount){var t=!!(e&&e.detail&&e.detail.target);this.hideTooltip({currentTarget:t&&e.detail.target},t)}}}(qt=function(e){e.prototype.bindWindowEvents=function(e){window.removeEventListener(g.HIDE,this.globalHide),window.addEventListener(g.HIDE,this.globalHide,!1),window.removeEventListener(g.REBUILD,this.globalRebuild),window.addEventListener(g.REBUILD,this.globalRebuild,!1),window.removeEventListener(g.SHOW,this.globalShow),window.addEventListener(g.SHOW,this.globalShow,!1),e&&(window.removeEventListener("resize",this.onWindowResize),window.addEventListener("resize",this.onWindowResize,!1))},e.prototype.unbindWindowEvents=function(){window.removeEventListener(g.HIDE,this.globalHide),window.removeEventListener(g.REBUILD,this.globalRebuild),window.removeEventListener(g.SHOW,this.globalShow),window.removeEventListener("resize",this.onWindowResize)},e.prototype.onWindowResize=function(){this.mount&&this.hideTooltip()}}(qt=function(e){e.prototype.isCustomEvent=function(e){return this.state.event||!!e.getAttribute("data-event")},e.prototype.customBindListener=function(e){var t=this,r=this.state,n=r.event,o=r.eventOff,a=e.getAttribute("data-event")||n,i=e.getAttribute("data-event-off")||o;a.split(" ").forEach((function(r){e.removeEventListener(r,T.get(e,r));var n=_.bind(t,i);T.set(e,r,n),e.addEventListener(r,n,!1)})),i&&i.split(" ").forEach((function(r){e.removeEventListener(r,t.hideTooltip),e.addEventListener(r,t.hideTooltip,!1)}))},e.prototype.customUnbindListener=function(e){var t=this.state,r=t.event,n=t.eventOff,o=r||e.getAttribute("data-event"),a=n||e.getAttribute("data-event-off");e.removeEventListener(o,T.get(e,r)),a&&e.removeEventListener(a,this.hideTooltip)}}(qt=function(e){e.prototype.isCapture=function(e){return e&&"true"===e.getAttribute("data-iscapture")||this.props.isCapture||!1}}(qt=function(e){e.prototype.getEffect=function(e){return e.getAttribute("data-effect")||this.props.effect||"float"}}(qt=function(e){e.prototype.isBodyMode=function(){return!!this.props.bodyMode},e.prototype.bindBodyListener=function(e){var t=this,r=this.state,n=r.event,o=r.eventOff,a=r.possibleCustomEvents,i=r.possibleCustomEventsOff,u=j(),l=P(e,"data-event"),c=P(e,"data-event-off");null!=n&&(l[n]=!0),null!=o&&(c[o]=!0),a.split(" ").forEach((function(e){return l[e]=!0})),i.split(" ").forEach((function(e){return c[e]=!0})),this.unbindBodyListener(u);var s=this.bodyModeListeners={};for(var f in null==n&&(s.mouseover=E.bind(this,this.showTooltip,{}),s.mousemove=E.bind(this,this.updateTooltip,{respectEffect:!0}),s.mouseout=E.bind(this,this.hideTooltip,{})),l)s[f]=E.bind(this,(function(e){var r=e.currentTarget.getAttribute("data-event-off")||o;_.call(t,r,e)}),{customEvent:!0});for(var d in c)s[d]=E.bind(this,this.hideTooltip,{customEvent:!0});for(var p in s)u.addEventListener(p,s[p])},e.prototype.unbindBodyListener=function(e){e=e||j();var t=this.bodyModeListeners;for(var r in t)e.removeEventListener(r,t[r])}}(($t=Gt=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=v(this,h(t).call(this,e))).state={uuid:e.uuid||"t"+Object(u.a)(),place:e.place||"top",desiredPlace:e.place||"top",type:"dark",effect:"float",show:!1,border:!1,customColors:{},offset:{},extraClass:"",html:!1,delayHide:0,delayShow:0,event:e.event||null,eventOff:e.eventOff||null,currentEvent:null,currentTarget:null,ariaProps:R(e),isEmptyTip:!1,disable:!1,possibleCustomEvents:e.possibleCustomEvents||"",possibleCustomEventsOff:e.possibleCustomEventsOff||"",originTooltip:null,isMultiline:!1},r.bind(["showTooltip","updateTooltip","hideTooltip","hideTooltipOnScroll","getTooltipContent","globalRebuild","globalShow","globalHide","onWindowResize","mouseOnToolTip"]),r.mount=!0,r.delayShowLoop=null,r.delayHideLoop=null,r.delayReshow=null,r.intervalUpdateContent=null,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(t,e),f(t,null,[{key:"propTypes",get:function(){return{uuid:i.a.string,children:i.a.any,place:i.a.string,type:i.a.string,effect:i.a.string,offset:i.a.object,multiline:i.a.bool,border:i.a.bool,textColor:i.a.string,backgroundColor:i.a.string,borderColor:i.a.string,arrowColor:i.a.string,insecure:i.a.bool,class:i.a.string,className:i.a.string,id:i.a.string,html:i.a.bool,delayHide:i.a.number,delayUpdate:i.a.number,delayShow:i.a.number,event:i.a.string,eventOff:i.a.string,isCapture:i.a.bool,globalEventOff:i.a.string,getContent:i.a.any,afterShow:i.a.func,afterHide:i.a.func,overridePosition:i.a.func,disable:i.a.bool,scrollHide:i.a.bool,resizeHide:i.a.bool,wrapper:i.a.string,bodyMode:i.a.bool,possibleCustomEvents:i.a.string,possibleCustomEventsOff:i.a.string,clickable:i.a.bool}}}]),f(t,[{key:"bind",value:function(e){var t=this;e.forEach((function(e){t[e]=t[e].bind(t)}))}},{key:"componentDidMount",value:function(){var e=this.props,t=(e.insecure,e.resizeHide);this.bindListener(),this.bindWindowEvents(t),this.injectStyles()}},{key:"componentWillUnmount",value:function(){this.mount=!1,this.clearTimer(),this.unbindListener(),this.removeScrollListener(this.state.currentTarget),this.unbindWindowEvents()}},{key:"injectStyles",value:function(){var e=this.tooltipRef;if(e){for(var t,r=e.parentNode;r.parentNode;)r=r.parentNode;switch(r.constructor.name){case"Document":case"HTMLDocument":case void 0:t=r.head;break;default:t=r}if(!t.querySelector("style[data-react-tooltip]")){var n=document.createElement("style");n.textContent='.__react_component_tooltip {\n border-radius: 3px;\n display: inline-block;\n font-size: 13px;\n left: -999em;\n opacity: 0;\n padding: 8px 21px;\n position: fixed;\n pointer-events: none;\n transition: opacity 0.3s ease-out;\n top: -999em;\n visibility: hidden;\n z-index: 999;\n}\n.__react_component_tooltip.allow_hover, .__react_component_tooltip.allow_click {\n pointer-events: auto;\n}\n.__react_component_tooltip::before, .__react_component_tooltip::after {\n content: "";\n width: 0;\n height: 0;\n position: absolute;\n}\n.__react_component_tooltip.show {\n opacity: 0.9;\n margin-top: 0;\n margin-left: 0;\n visibility: visible;\n}\n.__react_component_tooltip.place-top::before {\n border-left: 10px solid transparent;\n border-right: 10px solid transparent;\n bottom: -8px;\n left: 50%;\n margin-left: -10px;\n}\n.__react_component_tooltip.place-bottom::before {\n border-left: 10px solid transparent;\n border-right: 10px solid transparent;\n top: -8px;\n left: 50%;\n margin-left: -10px;\n}\n.__react_component_tooltip.place-left::before {\n border-top: 6px solid transparent;\n border-bottom: 6px solid transparent;\n right: -8px;\n top: 50%;\n margin-top: -5px;\n}\n.__react_component_tooltip.place-right::before {\n border-top: 6px solid transparent;\n border-bottom: 6px solid transparent;\n left: -8px;\n top: 50%;\n margin-top: -5px;\n}\n.__react_component_tooltip .multi-line {\n display: block;\n padding: 2px 0;\n text-align: center;\n}',n.setAttribute("data-react-tooltip","true"),t.appendChild(n)}}}},{key:"mouseOnToolTip",value:function(){return!(!this.state.show||!this.tooltipRef)&&(this.tooltipRef.matches||(this.tooltipRef.msMatchesSelector?this.tooltipRef.matches=this.tooltipRef.msMatchesSelector:this.tooltipRef.matches=this.tooltipRef.mozMatchesSelector),this.tooltipRef.matches(":hover"))}},{key:"getTargetArray",value:function(e){var t,r=[],n=[];if(e){var o=e.replace(/\\/g,"\\\\").replace(/"/g,'\\"');t='[data-tip][data-for="'.concat(o,'"]')}else t="[data-tip]:not([data-for])";return x(document.getElementsByTagName("*")).filter((function(e){return e.shadowRoot})).forEach((function(e){r=r.concat(x(e.shadowRoot.querySelectorAll(t)))})),r=r.concat(x(document.querySelectorAll(t))),c&&(x(l.document.getElementsByTagName("*")).filter((function(e){return e.shadowRoot})).forEach((function(e){n=n.concat(x(e.shadowRoot.querySelectorAll(t)))})),n=n.concat(x(l.document.querySelectorAll(t)))),r.concat(n)}},{key:"bindListener",value:function(){var e=this,t=this.props,r=t.id,n=t.globalEventOff,o=t.isCapture,a=this.getTargetArray(r);a.forEach((function(t){null===t.getAttribute("currentItem")&&t.setAttribute("currentItem","false"),e.unbindBasicListener(t),e.isCustomEvent(t)&&e.customUnbindListener(t)})),this.isBodyMode()?this.bindBodyListener(a):a.forEach((function(t){var r=e.isCapture(t),n=e.getEffect(t);e.isCustomEvent(t)?e.customBindListener(t):(t.addEventListener("mouseenter",e.showTooltip,r),t.addEventListener("focus",e.showTooltip,r),"float"===n&&t.addEventListener("mousemove",e.updateTooltip,r),t.addEventListener("mouseleave",e.hideTooltip,r),t.addEventListener("blur",e.hideTooltip,r))})),n&&(window.removeEventListener(n,this.hideTooltip),window.addEventListener(n,this.hideTooltip,o)),this.bindRemovalTracker()}},{key:"unbindListener",value:function(){var e=this,t=this.props,r=t.id,n=t.globalEventOff;this.isBodyMode()?this.unbindBodyListener():this.getTargetArray(r).forEach((function(t){e.unbindBasicListener(t),e.isCustomEvent(t)&&e.customUnbindListener(t)})),n&&window.removeEventListener(n,this.hideTooltip),this.unbindRemovalTracker()}},{key:"unbindBasicListener",value:function(e){var t=this.isCapture(e);e.removeEventListener("mouseenter",this.showTooltip,t),e.removeEventListener("mousemove",this.updateTooltip,t),e.removeEventListener("mouseleave",this.hideTooltip,t)}},{key:"getTooltipContent",value:function(){var e,t=this.props,r=t.getContent,n=t.children;return r&&(e=Array.isArray(r)?r[0]&&r[0](this.state.originTooltip):r(this.state.originTooltip)),k(this.state.originTooltip,n,e,this.state.isMultiline)}},{key:"isEmptyTip",value:function(e){return"string"==typeof e&&""===e||null===e}},{key:"showTooltip",value:function(e,t){if(this.tooltipRef){if(t&&!this.getTargetArray(this.props.id).some((function(t){return t===e.currentTarget})))return;var r=this.props,n=r.multiline,o=r.getContent,a=e.currentTarget.getAttribute("data-tip"),i=e.currentTarget.getAttribute("data-multiline")||n||!1,u=e instanceof window.FocusEvent||t,l=!0;e.currentTarget.getAttribute("data-scroll-hide")?l="true"===e.currentTarget.getAttribute("data-scroll-hide"):null!=this.props.scrollHide&&(l=this.props.scrollHide),e&&e.currentTarget&&e.currentTarget.setAttribute&&e.currentTarget.setAttribute("aria-describedby",this.state.uuid);var c=e.currentTarget.getAttribute("data-place")||this.props.place||"top",s=u?"solid":this.getEffect(e.currentTarget),f=e.currentTarget.getAttribute("data-offset")||this.props.offset||{},d=S(e,e.currentTarget,this.tooltipRef,c,c,s,f);d.position&&this.props.overridePosition&&(d.position=this.props.overridePosition(d.position,e,e.currentTarget,this.tooltipRef,c,c,s,f));var p=d.isNewState?d.newState.place:c;this.clearTimer();var y=e.currentTarget,m=this.state.show?y.getAttribute("data-delay-update")||this.props.delayUpdate:0,h=this,b=function(){h.setState({originTooltip:a,isMultiline:i,desiredPlace:c,place:p,type:y.getAttribute("data-type")||h.props.type||"dark",customColors:{text:y.getAttribute("data-text-color")||h.props.textColor||null,background:y.getAttribute("data-background-color")||h.props.backgroundColor||null,border:y.getAttribute("data-border-color")||h.props.borderColor||null,arrow:y.getAttribute("data-arrow-color")||h.props.arrowColor||null},effect:s,offset:f,html:(y.getAttribute("data-html")?"true"===y.getAttribute("data-html"):h.props.html)||!1,delayShow:y.getAttribute("data-delay-show")||h.props.delayShow||0,delayHide:y.getAttribute("data-delay-hide")||h.props.delayHide||0,delayUpdate:y.getAttribute("data-delay-update")||h.props.delayUpdate||0,border:(y.getAttribute("data-border")?"true"===y.getAttribute("data-border"):h.props.border)||!1,extraClass:y.getAttribute("data-class")||h.props.class||h.props.className||"",disable:(y.getAttribute("data-tip-disable")?"true"===y.getAttribute("data-tip-disable"):h.props.disable)||!1,currentTarget:y},(function(){l&&h.addScrollListener(h.state.currentTarget),h.updateTooltip(e),o&&Array.isArray(o)&&(h.intervalUpdateContent=setInterval((function(){if(h.mount){var e=h.props.getContent,t=k(a,"",e[0](),i),r=h.isEmptyTip(t);h.setState({isEmptyTip:r}),h.updatePosition()}}),o[1]))}))};m?this.delayReshow=setTimeout(b,m):b()}}},{key:"updateTooltip",value:function(e){var t=this,r=this.state,n=r.delayShow,o=r.disable,a=this.props.afterShow,i=this.getTooltipContent(),u=e.currentTarget||e.target;if(!this.mouseOnToolTip()&&!this.isEmptyTip(i)&&!o){var l=this.state.show?0:parseInt(n,10),c=function(){if(Array.isArray(i)&&i.length>0||i){var r=!t.state.show;t.setState({currentEvent:e,currentTarget:u,show:!0},(function(){t.updatePosition(),r&&a&&a(e)}))}};clearTimeout(this.delayShowLoop),l?this.delayShowLoop=setTimeout(c,l):c()}}},{key:"listenForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.addEventListener("mouseleave",this.hideTooltip)}},{key:"removeListenerForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.removeEventListener("mouseleave",this.hideTooltip)}},{key:"hideTooltip",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{isScroll:!1},o=this.state.disable,a=n.isScroll,i=a?0:this.state.delayHide,u=this.props.afterHide,l=this.getTooltipContent();if(this.mount&&!this.isEmptyTip(l)&&!o){if(t){var c=this.getTargetArray(this.props.id),s=c.some((function(t){return t===e.currentTarget}));if(!s||!this.state.show)return}e&&e.currentTarget&&e.currentTarget.removeAttribute&&e.currentTarget.removeAttribute("aria-describedby");var f=function(){var t=r.state.show;r.mouseOnToolTip()?r.listenForTooltipExit():(r.removeListenerForTooltipExit(),r.setState({show:!1},(function(){r.removeScrollListener(r.state.currentTarget),t&&u&&u(e)})))};this.clearTimer(),i?this.delayHideLoop=setTimeout(f,parseInt(i,10)):f()}}},{key:"hideTooltipOnScroll",value:function(e,t){this.hideTooltip(e,t,{isScroll:!0})}},{key:"addScrollListener",value:function(e){var t=this.isCapture(e);window.addEventListener("scroll",this.hideTooltipOnScroll,t),c&&l.addEventListener("scroll",this.hideTooltipOnScroll,t)}},{key:"removeScrollListener",value:function(e){var t=this.isCapture(e);window.removeEventListener("scroll",this.hideTooltipOnScroll,t),c&&l.removeEventListener("scroll",this.hideTooltipOnScroll,t)}},{key:"updatePosition",value:function(){var e=this,t=this.state,r=t.currentEvent,n=t.currentTarget,o=t.place,a=t.desiredPlace,i=t.effect,u=t.offset,l=this.tooltipRef,c=S(r,n,l,o,a,i,u);if(c.position&&this.props.overridePosition&&(c.position=this.props.overridePosition(c.position,r,n,l,o,a,i,u)),c.isNewState)return this.setState(c.newState,(function(){e.updatePosition()}));l.style.left=c.position.left+"px",l.style.top=c.position.top+"px"}},{key:"clearTimer",value:function(){clearTimeout(this.delayShowLoop),clearTimeout(this.delayHideLoop),clearTimeout(this.delayReshow),clearInterval(this.intervalUpdateContent)}},{key:"hasCustomColors",value:function(){var e=this;return Boolean(Object.keys(this.state.customColors).find((function(t){return"border"!==t&&e.state.customColors[t]}))||this.state.border&&this.state.customColors.border)}},{key:"render",value:function(){var e=this,r=this.state,n=r.extraClass,a=r.html,i=r.ariaProps,u=r.disable,l=r.uuid,c=this.getTooltipContent(),s=this.isEmptyTip(c),f=B(this.state.uuid,this.state.customColors,this.state.type,this.state.border),d="__react_component_tooltip"+" ".concat(this.state.uuid)+(!this.state.show||u||s?"":" show")+(this.state.border?" border":"")+" place-".concat(this.state.place)+" type-".concat(this.hasCustomColors()?"custom":this.state.type)+(this.props.delayUpdate?" allow_hover":"")+(this.props.clickable?" allow_click":""),y=this.props.wrapper;t.supportedWrappers.indexOf(y)<0&&(y=t.defaultProps.wrapper);var m=[d,n].filter(Boolean).join(" ");if(a){var h="".concat(c,'\n<style aria-hidden="true">').concat(f,"</style>");return o.a.createElement(y,p({className:"".concat(m),id:this.props.id||l,ref:function(t){return e.tooltipRef=t}},i,{"data-id":"tooltip",dangerouslySetInnerHTML:{__html:h}}))}return o.a.createElement(y,p({className:"".concat(m),id:this.props.id||l},i,{ref:function(t){return e.tooltipRef=t},"data-id":"tooltip"}),o.a.createElement("style",{dangerouslySetInnerHTML:{__html:f},"aria-hidden":"true"}),c)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=t.ariaProps,n=R(e);return Object.keys(n).some((function(e){return n[e]!==r[e]}))?m({},t,{ariaProps:n}):null}}]),t}(o.a.Component),d(Gt,"defaultProps",{insecure:!0,resizeHide:!0,wrapper:"div",clickable:!1}),d(Gt,"supportedWrappers",["div","span"]),d(Gt,"displayName","ReactTooltip"),(Jt=qt=$t).prototype.bindRemovalTracker=function(){var e=this,t=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(null!=t){var r=new t((function(t){for(var r=0;r<t.length;r++)for(var n=t[r],o=0;o<n.removedNodes.length;o++)if(n.removedNodes[o]===e.state.currentTarget)return void e.hideTooltip()}));r.observe(window.document,{childList:!0,subtree:!0}),this.removalTracker=r}},qt=void(Jt.prototype.unbindRemovalTracker=function(){this.removalTracker&&(this.removalTracker.disconnect(),this.removalTracker=null)})||qt))||qt)||qt)||qt)||qt)||qt)||qt;t.default=Qt}.call(this,r(59))},function(e,t){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.top_window=t.is_iframe=void 0;var n,o=(n=r(128))&&n.__esModule?n:{default:n};var a=window;t.top_window=a;var i,u=!1;t.is_iframe=u;try{i=!!window.top.document&&window.top}catch(e){i=!1}i&&i.__Cypress__?window.parent===i?(t.top_window=a=window,t.is_iframe=u=!1):(t.top_window=a=window.parent,t.is_iframe=u=!0):i&&(t.top_window=a=i,t.is_iframe=u=i!==window.self),window.ET_Builder=(0,o.default)(window.ET_Builder||{},{Frames:{top:a}})},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=c(r(1)),i=c(r(14)),u=c(r(17)),l=c(r(8));function c(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(this,arguments)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var o=v(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return h(this,r)}}function h(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return b(e)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(591);var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(l,e);var t,r,n,a=m(l);function l(){var e;d(this,l);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return g(b(e=a.call.apply(a,[this].concat(r))),"_onClickTab",(function(t){t.preventDefault();var r=t.target.getAttribute("data-key");e.props.onChange(r)})),e}return t=l,(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.currentTab,n=t.tabs,a=t.className,l=t.forwardedRef;return o.default.createElement("div",{ref:l,className:"et-common-tabs-navigation ".concat(a)},(0,u.default)(n,(function(t){return o.default.createElement("button",{key:t.key,type:"button",className:(0,i.default)({"et-common-tabs-navigation__button":!0,"et-common-tabs-navigation__button--active":t.key===r}),role:"tab","data-key":t.key,onClick:e._onClickTab},t.title)})))}}])&&p(t.prototype,r),n&&p(t,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(o.PureComponent);g(O,"propTypes",{currentTab:a.default.string.isRequired,tabs:a.default.arrayOf(a.default.shape({key:a.default.string.isRequired,title:a.default.string.isRequired})).isRequired,className:a.default.string,onChange:a.default.func}),g(O,"defaultProps",{className:"",onChange:l.default});var _=o.default.forwardRef((function(e,t){return o.default.createElement(O,f({},e,{forwardedRef:t}))}));t.default=_},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.addClassName=p,t.addEvent=function(e,t,r,n){if(!e)return;var o=l({capture:!0},n);e.addEventListener?e.addEventListener(t,r,o):e.attachEvent?e.attachEvent("on"+t,r):e["on"+t]=r},t.addUserSelectStyles=function(e){if(!e)return;var t=e.getElementById("react-draggable-style-el");t||((t=e.createElement("style")).type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t));e.body&&p(e.body,"react-draggable-transparent-selection")},t.createCSSTransform=function(e,t){var r=d(e,t,"px");return c({},(0,a.browserPrefixToKey)("transform",a.default),r)},t.createSVGTransform=function(e,t){return d(e,t,"")},t.getTouch=function(e,t){return e.targetTouches&&(0,o.findInArray)(e.targetTouches,(function(e){return t===e.identifier}))||e.changedTouches&&(0,o.findInArray)(e.changedTouches,(function(e){return t===e.identifier}))},t.getTouchIdentifier=function(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier},t.getTranslation=d,t.innerHeight=function(e){var t=e.clientHeight,r=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,o.int)(r.paddingTop),t-=(0,o.int)(r.paddingBottom)},t.innerWidth=function(e){var t=e.clientWidth,r=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,o.int)(r.paddingLeft),t-=(0,o.int)(r.paddingRight)},t.matchesSelector=f,t.matchesSelectorAndParentsTo=function(e,t,r){var n=e;do{if(f(n,t))return!0;if(n===r)return!1;n=n.parentNode}while(n);return!1},t.offsetXYFromParent=function(e,t,r){var n=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),o=(e.clientX+t.scrollLeft-n.left)/r,a=(e.clientY+t.scrollTop-n.top)/r;return{x:o,y:a}},t.outerHeight=function(e){var t=e.clientHeight,r=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,o.int)(r.borderTopWidth),t+=(0,o.int)(r.borderBottomWidth)},t.outerWidth=function(e){var t=e.clientWidth,r=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,o.int)(r.borderLeftWidth),t+=(0,o.int)(r.borderRightWidth)},t.removeClassName=y,t.removeEvent=function(e,t,r,n){if(!e)return;var o=l({capture:!0},n);e.removeEventListener?e.removeEventListener(t,r,o):e.detachEvent?e.detachEvent("on"+t,r):e["on"+t]=null},t.removeUserSelectStyles=function(e){if(!e)return;try{if(e.body&&y(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{var t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}};var o=r(182),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=i(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var l=a?Object.getOwnPropertyDescriptor(e,u):null;l&&(l.get||l.set)?Object.defineProperty(o,u,l):o[u]=e[u]}o.default=e,r&&r.set(e,o);return o}(r(614));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s="";function f(e,t){return s||(s=(0,o.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(t){return(0,o.isFunction)(e[t])}))),!!(0,o.isFunction)(e[s])&&e[s](t)}function d(e,t,r){var n=e.x,o=e.y,a="translate(".concat(n).concat(r,",").concat(o).concat(r,")");if(t){var i="".concat("string"==typeof t.x?t.x:t.x+r),u="".concat("string"==typeof t.y?t.y:t.y+r);a="translate(".concat(i,", ").concat(u,")")+a}return a}function p(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function y(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=(l(r(1)),l(r(14))),i=l(r(110)),u=l(r(23));function l(e){return e&&e.__esModule?e:{default:e}}function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m(e);if(t){var o=m(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return y(this,r)}}function y(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}r(674);var h,b,v,g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(c,e);var t,r,n,l=p(c);function c(){return s(this,c),l.apply(this,arguments)}return t=c,(r=[{key:"_renderGraphics",value:function(){var e,t=null!==(e=this.props.svgId)&&void 0!==e?e:"";switch(this.props.icon){case"delete":return o.default.createElement("g",null,o.default.createElement("path",{d:"M19 9h-3V8a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v1H9a1 1 0 1 0 0 2h10a1 1 0 0 0 .004-2H19zM9 20c.021.543.457.979 1 1h8c.55-.004.996-.45 1-1v-7H9v7zm2.02-4.985h2v4h-2v-4zm4 0h2v4h-2v-4z",fillRule:"evenodd"}));case"close":return o.default.createElement("g",null,o.default.createElement("path",{d:"M15.59 14l4.08-4.082a1.124 1.124 0 0 0-1.587-1.588L14 12.411 9.918 8.329A1.124 1.124 0 0 0 8.33 9.92L12.411 14l-4.082 4.082a1.124 1.124 0 0 0 1.59 1.589L14 15.589l4.082 4.082a1.124 1.124 0 0 0 1.589-1.59L15.589 14h.001z",fillRule:"evenodd"}));case"exit":return o.default.createElement("g",null,o.default.createElement("path",{d:"M19.71 16.857l-2.85-2.854 2.85-2.854c.39-.395.39-1.03 0-1.426l-1.43-1.427a1 1 0 0 0-1.42 0L14 11.15l-2.85-2.854a1.013 1.013 0 0 0-1.43 0L8.3 9.723a1 1 0 0 0 0 1.426l2.85 2.854-2.85 2.853a1 1 0 0 0 0 1.427l1.42 1.427a1.011 1.011 0 0 0 1.43 0L14 16.856l2.86 2.854a1 1 0 0 0 1.42 0l1.43-1.427c.39-.395.39-1.03 0-1.426z",fillRule:"evenodd"}));case"check":return o.default.createElement("g",null,o.default.createElement("path",{d:"M19.203 9.21a.677.677 0 0 0-.98 0l-5.71 5.9-2.85-2.95a.675.675 0 0 0-.98 0l-1.48 1.523a.737.737 0 0 0 0 1.015l4.82 4.979a.677.677 0 0 0 .98 0l7.68-7.927a.737.737 0 0 0 0-1.015l-1.48-1.525z",fillRule:"evenodd"}));case"three-dots":return o.default.createElement("g",null,o.default.createElement("path",{d:"M2.001 4.5a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm0 6a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm0 6a2 2 0 1 1 0-4 2 2 0 0 1 0 4z",fillRule:"evenodd"}));case"tag":return o.default.createElement("g",null,o.default.createElement("path",{d:"M14.83,5h6.6A1.57,1.57,0,0,1,23,6.57v6.59a1.45,1.45,0,0,1-.35.66l-8.83,8.83a1.2,1.2,0,0,1-1.69,0L5.35,15.87a1.2,1.2,0,0,1,0-1.7l8.82-8.82A2,2,0,0,1,14.83,5Zm4.67,5A1.5,1.5,0,1,0,18,8.5,1.5,1.5,0,0,0,19.5,10Z"}));case"pack":return o.default.createElement("g",null,o.default.createElement("rect",{x:"6",y:"12",width:"16",height:"10",rx:"1",ry:"1"}),o.default.createElement("path",{d:"M21 6a1 1 0 0 1 1 1v3H6V9a1 1 0 0 1 1-1h5.66C13.31 7.13 14 6 15 6z"}));case"list":return o.default.createElement("g",null,o.default.createElement("rect",{x:"6",y:"6",width:"4",height:"4",rx:"1",ry:"1"}),o.default.createElement("rect",{x:"6",y:"12",width:"4",height:"4",rx:"1",ry:"1"}),o.default.createElement("rect",{x:"6",y:"18",width:"4",height:"4",rx:"1",ry:"1"}),o.default.createElement("rect",{x:"12",y:"6",width:"10",height:"4",rx:"1",ry:"1"}),o.default.createElement("rect",{x:"12",y:"12",width:"10",height:"4",rx:"1",ry:"1"}),o.default.createElement("rect",{x:"12",y:"18",width:"10",height:"4",rx:"1",ry:"1"}));case"grid":return o.default.createElement("g",null,o.default.createElement("rect",{x:"6",y:"6",width:"4",height:"4",rx:"1",ry:"1"}),o.default.createElement("rect",{x:"6",y:"12",width:"4",height:"4",rx:"1",ry:"1"}),o.default.createElement("rect",{x:"6",y:"18",width:"4",height:"4",rx:"1",ry:"1"}),o.default.createElement("rect",{x:"18",y:"6",width:"4",height:"4",rx:"1",ry:"1"}),o.default.createElement("rect",{x:"18",y:"12",width:"4",height:"4",rx:"1",ry:"1"}),o.default.createElement("rect",{x:"18",y:"18",width:"4",height:"4",rx:"1",ry:"1"}),o.default.createElement("rect",{x:"12",y:"6",width:"4",height:"4",rx:"1",ry:"1"}),o.default.createElement("rect",{x:"12",y:"12",width:"4",height:"4",rx:"1",ry:"1"}),o.default.createElement("rect",{x:"12",y:"18",width:"4",height:"4",rx:"1",ry:"1"}));case"back":return o.default.createElement("g",null,o.default.createElement("path",{d:"M14.988 10.963h-3v-2.52a.393.393 0 0 0-.63-.361l-5.2 4.5a.491.491 0 0 0 0 .72l5.2 4.5a.393.393 0 0 0 .63-.36v-2.52h2.99a2.992 2.992 0 0 1 2.99 2.972v1.287a.7.7 0 0 0 .7.694h2.59a.7.7 0 0 0 .7-.694v-1.3a6.948 6.948 0 0 0-6.97-6.918z",fillRule:"evenodd"}));case"placeholder":return o.default.createElement("g",null,o.default.createElement("path",{d:"M1 24h6a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1v-6a1 1 0 0 1 1-1zM25 0h6a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1zM1 12h30a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1v-6a1 1 0 0 1 1-1zm12 12h18a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H13a1 1 0 0 1-1-1v-6a1 1 0 0 1 1-1zM1 0h18a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1z",fill:"#e7eef5"}));case"cloud":return o.default.createElement("g",null,o.default.createElement("path",{d:"M5.48,23a5.5,5.5,0,0,1-.26-11A9,9,0,0,1,23,14h.5a4.5,4.5,0,0,1,0,9Z"}));case"menu-expand":return o.default.createElement("g",{fillRule:"evenodd"},o.default.createElement("path",{d:"M14 20l-3-5h6zM14 8l3 5h-6z",fillRule:"evenodd"}));case"arrow-down-dense":return o.default.createElement("g",{fillRule:"evenodd"},o.default.createElement("path",{d:"M3.44987 3.77347L5.90448 0.672666C6.00166 0.555503 6.0272 0.385363 5.96951 0.239402C5.91182 0.0934417 5.78188 -0.000569066 5.63861 2.59252e-06H0.359701C0.217594 0.000439083 0.0889622 0.0937073 0.0311752 0.238209C-0.0266118 0.382711 -0.00278329 0.551512 0.092034 0.669326L2.54904 3.77347C2.66298 3.91748 2.82706 4 2.99946 4C3.17186 4 3.33593 3.91748 3.44987 3.77347Z"}));case"caret-solid-right":return o.default.createElement("g",null,o.default.createElement("path",{d:"M6.65873 4.25043L2.00753 0.160427C1.83179 -0.00150394 1.57658 -0.0440559 1.35764 0.0520706C1.1387 0.148197 0.997682 0.364711 0.998539 0.603427L0.998539 9.39943C0.999194 9.63621 1.1391 9.85055 1.35585 9.94683C1.5726 10.0431 1.8258 10.0034 2.00252 9.84543L6.65873 5.75143C6.87475 5.56158 6.99854 5.28819 6.99854 5.00093C6.99854 4.71366 6.87475 4.44027 6.65873 4.25043Z"}));case"heart":return o.default.createElement("g",null,o.default.createElement("path",{d:"M4,10.66A5.67,5.67,0,0,1,9.51,5Q12.92,5,14,7.37C14.72,5.79,16.21,5,18.49,5A5.67,5.67,0,0,1,24,10.65C24,14,22.87,17.31,14,23,5.13,17.31,4,14,4,10.66Z"}));case"globe":return o.default.createElement("g",null,o.default.createElement("path",{d:"M14 4C8.477 4 4 8.477 4 14s4.477 10 10 10 10-4.477 10-10S19.523 4 14 4zm.01 18c-4.411 0-8-3.589-8-8 0-.783.118-1.539.329-2.255.258.507.628.965.995 1.38.958 1.083.883 1.267.883 1.267.577 1.658 3.275.854 3.627 2.076s1.328.859.906 2.437c-.438 1.636.683 2.553 1.491 3.083-.077.003-.153.012-.231.012zm6.406-3.228c-.025-.011-.047-.027-.072-.037-1.754-.721-2.514-2.467-3.884-2.467s-2.113.532-2.882.436-.723-.917-1.276-1.373c-.553-.457-.457-.312-1.49-.697-1.033-.385-.24-2.307.481-1.971.721.336 1.304-.324 1.52.229.216.553.695 1.298.647.577-.048-.721.189-1.431.79-1.984s.096-.649.216-1.538 2.211.505 2.211-.312.361-.721.961-1.394c.528-.591.368-.882-.217-1.465a8.04 8.04 0 0 1 3.317 2.914c-1.041.174-1.418.809-1.953 1.92-.951 1.975 1.465 3.142 2.808 3.96.08.049.157.08.234.118a7.963 7.963 0 0 1-1.411 3.084z"}));case"help":return o.default.createElement("g",null,o.default.createElement("path",{d:"M14 22a8 8 0 1 1 0-16 8 8 0 0 1 0 16zm0-3.6a.8.8 0 1 0 0-1.6.8.8 0 0 0 0 1.6zm-.8-3.2a.744.744 0 0 0 .8.8.744.744 0 0 0 .8-.8c.08-.343.305-.634.616-.8a2.976 2.976 0 0 0 1.784-2.8A2.944 2.944 0 0 0 14 8.8a3.112 3.112 0 0 0-3.2 2.4c-.096.48.264.8.8.8s.704-.32.8-.8c0-.04.216-.8 1.6-.8 1.24 0 1.6.8 1.6 1.2 0 .816-.536 1.088-1.128 1.456A2.536 2.536 0 0 0 13.2 15.2z"}));case"layout-placeholder":return o.default.createElement("g",{stroke:"none",strokeWidth:"1",fillRule:"evenodd"},o.default.createElement("path",{d:"M102,188 C107.522847,188 112,192.477153 112,198 L112,234 C112,239.522847 107.522847,244 102,244 L50,244 C44.4771525,244 40,239.522847 40,234 L40,198 C40,192.477153 44.4771525,188 50,188 L102,188 Z M350,188 C355.522847,188 360,192.477153 360,198 L360,234 C360,239.522847 355.522847,244 350,244 L140,244 C134.477153,244 130,239.522847 130,234 L130,198 C130,192.477153 134.477153,188 140,188 L350,188 Z M350,114 C355.522847,114 360,118.477153 360,124 L360,160 C360,165.522847 355.522847,170 350,170 L50,170 C44.4771525,170 40,165.522847 40,160 L40,124 C40,118.477153 44.4771525,114 50,114 L350,114 Z M211,40 C216.522847,40 221,44.4771525 221,50 L221,86 C221,91.5228475 216.522847,96 211,96 L50,96 C44.4771525,96 40,91.5228475 40,86 L40,50 C40,44.4771525 44.4771525,40 50,40 L211,40 Z M350,40 C355.522847,40 360,44.4771525 360,50 L360,86 C360,91.5228475 355.522847,96 350,96 L249,96 C243.477153,96 239,91.5228475 239,86 L239,50 C239,44.4771525 243.477153,40 249,40 L350,40 Z"}));case"background-image":return o.default.createElement("g",null,o.default.createElement("path",{d:"M309,78V206H91V78H309m8-16H83a8,8,0,0,0-8,8V214a8,8,0,0,0,8,8H317a8,8,0,0,0,8-8V70a8,8,0,0,0-8-8Z",fill:"#e7eef5"}),o.default.createElement("circle",{cx:"160",cy:"111",r:"12",fill:"#e7eef5"}),o.default.createElement("path",{d:"M105.37,190.83H295.63V151.08l-47.77-47.77a8,8,0,0,0-11.32,0l-65.2,65.2-15.75-15.74a8,8,0,0,0-11.24-.06Z",fill:"#e7eef5"}));case"folder-open":return o.default.createElement("g",null,o.default.createElement("path",{d:"M3.72076 6H17.6126L15.2792 13L1.38743 13L3.72076 6Z",fill:"#2B87DA",stroke:"#2B87DA",strokeWidth:"2"}),o.default.createElement("path",{d:"M7.00087 1.00001L7.00293 1C7.17604 0.999623 7.29258 1.04456 7.40366 1.12166C7.53485 1.21271 7.67711 1.36286 7.85596 1.60786L7.93916 1.72478L8.39713 2.40217L8.40492 2.4137L8.41303 2.425L8.52694 2.58378L8.82621 3.00095L9.33962 3.00087L15 3.00003V13H1V3.02273L1.00097 3.00138L1.0028 2.96112L1.00138 2.92084L1.00073 2.90238V1.02984L1.00233 1.0024L1.02999 1.00082L7.00087 1.00001Z",stroke:"#2B87DA",strokeWidth:"2"}));case"folder-close":return o.default.createElement("g",null,o.default.createElement("mask",{id:"path-1-inside-1_0_3891",fill:"white"},o.default.createElement("rect",{y:"2",width:"16",height:"12",rx:"1"})),o.default.createElement("rect",{y:"2",width:"16",height:"12",rx:"1",fill:"#737E89",stroke:"#737E89",strokeWidth:"4",mask:"url(#path-1-inside-1_0_3891)"}),o.default.createElement("path",{d:"M7.00184 0.500018C5.56659 0.503188 2.56668 0.501792 1.00092 0.500763C0.724748 0.500582 0.500739 0.724357 0.500739 1.0009V2.92021C0.500739 3.21507 0.746868 3.44071 1.03311 3.41833C2.56852 3.29832 5.46237 3.06926 7.76508 2.87025C8.32065 2.82224 8.84065 2.77608 9.29826 2.73369C9.0211 2.44434 8.80329 2.11638 8.61409 1.83149C8.60153 1.81259 8.58911 1.79387 8.5768 1.77537C8.04592 0.977625 7.68891 0.4985 7.00184 0.500018Z",fill:"#737E89",stroke:"#737E89"}));case"portability":return o.default.createElement("g",null,o.default.createElement("path",{d:"M9.6 20.8c0.2 0.3 0.7 0.3 0.9 0l2.1-3.5c0.2-0.3 0-0.8-0.4-0.8H11V8c0-0.6-0.4-1-1-1C9.4 7 9 7.4 9 8v8.5H7.9c-0.4 0-0.6 0.4-0.4 0.8L9.6 20.8z",fillRule:"evenodd"}),o.default.createElement("path",{d:"M18.4 7.2c-0.2-0.3-0.7-0.3-0.9 0l-2.1 3.5c-0.2 0.3 0 0.8 0.4 0.8H17V20c0 0.6 0.4 1 1 1 0.6 0 1-0.4 1-1v-8.5h1.1c0.4 0 0.6-0.4 0.4-0.8L18.4 7.2z",fillRule:"evenodd"}));case"right-arrow":return o.default.createElement("g",null,o.default.createElement("rect",{width:"2.5",height:"9",rx:"1.25",transform:"matrix(-0.707107 0.707107 0.707107 0.707107 6.5 0.135986)",fill:"#737E89"}),o.default.createElement("rect",{width:"2.5",height:"9",rx:"1.25",transform:"matrix(0.707107 0.707107 0.707107 -0.707107 4.73218 11.0962)",fill:"#737E89"}));case"left-arrow":return o.default.createElement("g",null,o.default.createElement("rect",{x:"6.5",y:"0.135986",width:"2.5",height:"9",rx:"1.25",transform:"rotate(45 6.5 0.135986)",fill:"#737E89"}),o.default.createElement("rect",{x:"8.26782",y:"11.0962",width:"2.5",height:"9",rx:"1.25",transform:"rotate(135 8.26782 11.0962)",fill:"#737E89"}));case"magnifying-glass":return o.default.createElement("g",null,o.default.createElement("rect",{width:"28",height:"28",rx:"14",fill:"white"}),o.default.createElement("circle",{cx:"14",cy:"14",r:"4",stroke:"#32373C",strokeWidth:"2"}),o.default.createElement("rect",{x:"10.9492",y:"15.6367",width:"2",height:"4.72877",rx:"1",transform:"rotate(45 10.9492 15.6367)",fill:"#32373C"}));case"divi-ai-light":return o.default.createElement(o.default.Fragment,null,o.default.createElement("defs",null,o.default.createElement("linearGradient",{id:"divi-ai-light-linear-gradient",x1:"10.77",y1:"10.73",x2:"17.1",y2:"18.31",gradientUnits:"userSpaceOnUse"},o.default.createElement("stop",{offset:"0",stopColor:"aqua"}),o.default.createElement("stop",{offset:"1",stopColor:"#5200ff"}))),o.default.createElement("g",null,o.default.createElement("path",{className:"cls-2",d:"M5,11c0-2.83,0-4.24,.88-5.12,.88-.88,2.29-.88,5.12-.88h6c2.83,0,4.24,0,5.12,.88,.88,.88,.88,2.29,.88,5.12v6c0,2.83,0,4.24-.88,5.12s-2.29,.88-5.12,.88h-6c-2.83,0-4.24,0-5.12-.88-.88-.88-.88-2.29-.88-5.12v-6Z"})),o.default.createElement("g",null,o.default.createElement("path",{className:"cls-1",d:"M16,11c0-.55,.45-1,1-1s1,.45,1,1v6c0,.55-.45,1-1,1s-1-.45-1-1v-6Zm-1.05,5.68l-2-6c-.14-.41-.52-.68-.95-.68s-.81,.28-.95,.68l-2,6c-.17,.52,.11,1.09,.63,1.26,.52,.17,1.09-.11,1.26-.63l.44-1.32h1.23l.44,1.32c.17,.52,.74,.81,1.26,.63,.52-.17,.81-.74,.63-1.26Z"})));case"divi-ai":return o.default.createElement(o.default.Fragment,null,o.default.createElement("defs",null,o.default.createElement("linearGradient",{id:"divi-ai-linear-gradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%"},o.default.createElement("stop",{offset:"0%",stopColor:"aqua"}),o.default.createElement("stop",{offset:"100%",stopColor:"#5200ff"}))),o.default.createElement("g",null,o.default.createElement("path",{d:"M22.12,5.88c-.88-.88-2.29-.88-5.12-.88h-6c-2.83,0-4.24,0-5.12,.88-.88,.88-.88,2.29-.88,5.12v6c0,2.83,0,4.24,.88,5.12s2.29,.88,5.12,.88h6c2.83,0,4.24,0,5.12-.88,.88-.88,.88-2.29,.88-5.12v-6c0-2.83,0-4.24-.88-5.12Zm-7.8,12.07c-.52,.17-1.09-.11-1.26-.63l-.44-1.32h-1.23l-.44,1.32c-.17,.52-.74,.81-1.26,.63-.52-.17-.81-.74-.63-1.26l2-6c.14-.41,.52-.68,.95-.68s.81,.28,.95,.68l2,6c.17,.52-.11,1.09-.63,1.26Zm3.68-.95c0,.55-.45,1-1,1s-1-.45-1-1v-6c0-.55,.45-1,1-1s1,.45,1,1v6Z"})));case"divi-ai-code":return o.default.createElement(o.default.Fragment,null,o.default.createElement("rect",{x:"5",y:"5",width:"18",height:"18",rx:"3",fill:"white"}),o.default.createElement("path",{d:"M16 11C16 10.4477 16.4477 10 17 10C17.5523 10 18 10.4477 18 11V17C18 17.5523 17.5523 18 17 18C16.4477 18 16 17.5523 16 17V11Z",fill:"url(#paint0_linear_654_6159_".concat(t,")")}),o.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 10C12.4305 10 12.8126 10.2754 12.9487 10.6838L14.9487 16.6838C15.1234 17.2077 14.8402 17.774 14.3163 17.9487C13.7923 18.1233 13.226 17.8402 13.0513 17.3162L12 14.1623L10.9487 17.3162C10.7741 17.8402 10.2077 18.1233 9.6838 17.9487C9.15986 17.774 8.8767 17.2077 9.05134 16.6838L11.0513 10.6838C11.1875 10.2754 11.5696 10 12 10Z",fill:"url(#paint1_linear_654_6159_".concat(t,")")}),o.default.createElement("path",{d:"M11 14H13V16H11V14Z",fill:"url(#paint2_linear_654_6159_".concat(t,")")}),o.default.createElement("defs",null,o.default.createElement("linearGradient",{id:"paint0_linear_654_6159_".concat(t),x1:"8.99976",y1:"10",x2:"16.9449",y2:"18.9382",gradientUnits:"userSpaceOnUse"},o.default.createElement("stop",{stopColor:"#4C5563"}),o.default.createElement("stop",{offset:"1",stopColor:"#5200FF"})),o.default.createElement("linearGradient",{id:"paint1_linear_654_6159_".concat(t),x1:"8.99976",y1:"10",x2:"16.9449",y2:"18.9382",gradientUnits:"userSpaceOnUse"},o.default.createElement("stop",{stopColor:"#4C5563"}),o.default.createElement("stop",{offset:"1",stopColor:"#5200FF"})),o.default.createElement("linearGradient",{id:"paint2_linear_654_6159_".concat(t),x1:"8.99976",y1:"10",x2:"16.9449",y2:"18.9382",gradientUnits:"userSpaceOnUse"},o.default.createElement("stop",{stopColor:"#4C5563"}),o.default.createElement("stop",{offset:"1",stopColor:"#5200FF"}))));case"divi-ai-code-hover":return o.default.createElement(o.default.Fragment,null,o.default.createElement("rect",{width:"28",height:"28",rx:"3",fill:"white",fillOpacity:"0.16"}),o.default.createElement("rect",{x:"5",y:"5",width:"18",height:"18",rx:"3",fill:"white"}),o.default.createElement("path",{d:"M16 11C16 10.4477 16.4477 10 17 10C17.5523 10 18 10.4477 18 11V17C18 17.5523 17.5523 18 17 18C16.4477 18 16 17.5523 16 17V11Z",fill:"url(#paint0_linear_655_5811_".concat(t,")")}),o.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 10C12.4305 10 12.8126 10.2754 12.9487 10.6838L14.9487 16.6838C15.1234 17.2077 14.8402 17.774 14.3163 17.9487C13.7923 18.1233 13.226 17.8402 13.0513 17.3162L12 14.1623L10.9487 17.3162C10.7741 17.8402 10.2077 18.1233 9.6838 17.9487C9.15986 17.774 8.8767 17.2077 9.05134 16.6838L11.0513 10.6838C11.1875 10.2754 11.5696 10 12 10Z",fill:"url(#paint1_linear_655_5811_".concat(t,")")}),o.default.createElement("path",{d:"M11 14H13V16H11V14Z",fill:"url(#paint2_linear_655_5811_".concat(t,")")}),o.default.createElement("defs",null,o.default.createElement("linearGradient",{id:"paint0_linear_655_5811_".concat(t),x1:"8.99976",y1:"10",x2:"16.9449",y2:"18.9382",gradientUnits:"userSpaceOnUse"},o.default.createElement("stop",{stopColor:"#00FFFF"}),o.default.createElement("stop",{offset:"1",stopColor:"#5200FF"})),o.default.createElement("linearGradient",{id:"paint1_linear_655_5811_".concat(t),x1:"8.99976",y1:"10",x2:"16.9449",y2:"18.9382",gradientUnits:"userSpaceOnUse"},o.default.createElement("stop",{stopColor:"#00FFFF"}),o.default.createElement("stop",{offset:"1",stopColor:"#5200FF"})),o.default.createElement("linearGradient",{id:"paint2_linear_655_5811_".concat(t),x1:"8.99976",y1:"10",x2:"16.9449",y2:"18.9382",gradientUnits:"userSpaceOnUse"},o.default.createElement("stop",{stopColor:"#00FFFF"}),o.default.createElement("stop",{offset:"1",stopColor:"#5200FF"}))));case"save":return o.default.createElement("g",null,o.default.createElement("path",{d:"M18.95 9.051a1 1 0 1 0-1.414 1.414 5 5 0 1 1-7.07 0A1 1 0 0 0 9.05 9.051a7 7 0 1 0 9.9.001v-.001zm-5.378 8.235a.5.5 0 0 0 .857 0l2.117-3.528a.5.5 0 0 0-.429-.758H15V8a1 1 0 0 0-2 0v5h-1.117a.5.5 0 0 0-.428.758l2.117 3.528z",fillRule:"evenodd"}))}}},{key:"render",value:function(){var e=this.props,t=e.className,r=e.color,n=e.icon,l=e.size,c=e.viewBox,s=e.margin,f=e.onClick,d=e.elementType;if(!n)return!1;var p={fill:r,width:2*l,minWidth:2*l,height:2*l,margin:(0,u.default)(s)||!1===s?-(l-8):s},y="et-common-icon--".concat(n),m=(0,a.default)({"et-common-icon":!0},y,t),h=this._renderGraphics();return h||(p={}),o.default.createElement(d,{className:m,style:(0,i.default)(p,this.props.style),onClick:f,"data-testid":this.props["data-for"]},o.default.createElement("svg",{viewBox:c,preserveAspectRatio:"xMidYMid meet",shapeRendering:"geometricPrecision"},h))}}])&&f(t.prototype,r),n&&f(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.PureComponent);v={color:"#4c5866",size:14,viewBox:"0 0 28 28",elementType:"div"},(b="defaultProps")in(h=g)?Object.defineProperty(h,b,{value:v,enumerable:!0,configurable:!0,writable:!0}):h[b]=v;var O=g;t.default=O},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e===t)return!0;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var o=Object.prototype.hasOwnProperty,a=0;a<r.length;a+=1){if(!o.call(t,r[a])||e[r[a]]!==t[r[a]])return!1;var i=e[r[a]],u=t[r[a]];if(i!==u)return!1}return!0}},function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e){return Boolean(e&&"function"==typeof e.dispose)},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.FILE="__NATIVE_FILE__",t.URL="__NATIVE_URL__",t.TEXT="__NATIVE_TEXT__"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildRegExpFromDelimiters=function(e){var t=e.map((function(e){var t=e-48*Math.floor(e/48);return String.fromCharCode(96<=e?t:e)})).join(""),r=(0,a.default)(t);return new RegExp("["+r+"]+")},t.canDrag=function(e){var t=e.moveTag,r=e.readOnly,n=e.allowDragDrop;return void 0!==t&&!r&&n},t.canDrop=function(e){var t=e.readOnly,r=e.allowDragDrop;return!t&&r};var n,o=r(744),a=(n=o)&&n.__esModule?n:{default:n}},function(e,t,r){"use strict";var n=r(188),o=r(113);t.a=function(e,t,r){var a=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||n.a)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var u=0;u<16;++u)t[a+u]=i[u];return t||Object(o.a)(i)}},function(e,t,r){var n=r(399),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,i=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,r,n,o){t.push(n?o.replace(a,"$1"):r||e)})),t}));e.exports=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=/%%|%(?:(\d+)\$)?((?:[-+#0 ]|'[\s\S])*)(\d+)?(?:\.(\d*))?([\s\S])/g,t=arguments,r=0,n=t[r++],o=function(e,t,r,n){r||(r=" ");var o=e.length>=t?"":new Array(1+t-e.length>>>0).join(r);return n?e+o:o+e},a=function(e,t,r,n,a){var i=n-e.length;return i>0&&(e=r||"0"!==a?o(e,n,a,r):[e.slice(0,t.length),o("",i,"0",!0),e.slice(t.length)].join("")),e},i=function(e,t,r,n,i,u){return e=o((e>>>0).toString(t),i||0,"0",!1),a(e,"",r,n,u)},u=function(e,t,r,n,o){return null!=n&&(e=e.slice(0,n)),a(e,"",t,r,o)},l=function(e,n,l,c,s,f){var d,p,y,m,h;if("%%"===e)return"%";var b,v,g=" ",O=!1,_="";for(b=0,v=l.length;b<v;b++)switch(l.charAt(b)){case" ":case"0":g=l.charAt(b);break;case"+":_="+";break;case"-":O=!0;break;case"'":b+1<v&&(g=l.charAt(b+1),b++)}if(c=c?+c:0,!isFinite(c))throw new Error("Width must be finite");if(s=s?+s:"d"===f?0:"fFeE".indexOf(f)>-1?6:void 0,n&&0==+n)throw new Error("Argument number must be greater than zero");if(n&&+n>=t.length)throw new Error("Too few arguments");switch(h=n?t[+n]:t[r++],f){case"%":return"%";case"s":return u("".concat(h),O,c,s,g);case"c":return u(String.fromCharCode(+h),O,c,s,g);case"b":return i(h,2,O,c,s,g);case"o":return i(h,8,O,c,s,g);case"x":return i(h,16,O,c,s,g);case"X":return i(h,16,O,c,s,g).toUpperCase();case"u":return i(h,10,O,c,s,g);case"i":case"d":return d=+h||0,h=(p=(d=Math.round(d-d%1))<0?"-":_)+o(String(Math.abs(d)),s,"0",!1),O&&"0"===g&&(g=" "),a(h,p,O,c,g);case"e":case"E":case"f":case"F":case"g":case"G":return p=(d=+h)<0?"-":_,y=["toExponential","toFixed","toPrecision"]["efg".indexOf(f.toLowerCase())],m=["toString","toUpperCase"]["eEfFgG".indexOf(f)%2],h=p+Math.abs(d)[y](s),a(h,p,O,c,g)[m]();default:return""}};try{return n.replace(e,l)}catch(e){return!1}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.saveVisualBuilder=t.openVisualBuilder=t.closeVisualBuilder=void 0;var n,o,a,i,u,l,c,s=r(3),f=r(35),d=r(4),p=r(73),y=r(229);function m(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var h=[(0,f.set)((0,s.state)(n||(n=m(["visualBuilder.target.url"]))),(0,s.props)(o||(o=m(["url"])))),(0,p.openModal)(d.MODAL_TYPE_VISUAL_BUILDER)];t.openVisualBuilder=h;var b=[(0,p.closeModal)(d.MODAL_TYPE_VISUAL_BUILDER),(0,f.set)((0,s.state)(a||(a=m(["visualBuilder.target.url"]))),""),(0,f.set)((0,s.state)(i||(i=m(["layouts.currentlyEditingLayout"]))),{}),y.loadLayouts];t.closeVisualBuilder=b;var v=[function(e){var t=e.get,r=e.store,n=t((0,s.state)(u||(u=m(["isLibraryTemplateEditorOpen"])))),o=t((0,s.state)(l||(l=m(["isLibraryPresetEditorOpen"]))));(n||o)&&r.set((0,s.state)(c||(c=m(["unsavedChanges"]))),!0)}];t.saveVisualBuilder=v},function(e,t,r){var n=r(407),o=r(408),a=r(37),i=r(10),u=r(53);e.exports=function(e,t,r){var l=i(e)?n:o;return r&&u(e,t,r)&&(t=void 0),l(e,a(t,3))}},function(e,t,r){var n=r(143),o=r(284),a=r(144);e.exports=function(e,t,r,i,u,l){var c=1&r,s=e.length,f=t.length;if(s!=f&&!(c&&f>s))return!1;var d=l.get(e),p=l.get(t);if(d&&p)return d==t&&p==e;var y=-1,m=!0,h=2&r?new n:void 0;for(l.set(e,t),l.set(t,e);++y<s;){var b=e[y],v=t[y];if(i)var g=c?i(v,b,y,t,e,l):i(b,v,y,e,t,l);if(void 0!==g){if(g)continue;m=!1;break}if(h){if(!o(t,(function(e,t){if(!a(h,t)&&(b===e||u(b,e,r,i,l)))return h.push(t)}))){m=!1;break}}else if(b!==v&&!u(b,v,r,i,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},function(e,t){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},function(e,t,r){var n=r(286),o=r(227),a=r(27);e.exports=function(e){return n(e,a,o)}},function(e,t,r){var n=r(147),o=r(10);e.exports=function(e,t,r){var a=t(e);return o(e)?a:n(a,r(e))}},function(e,t){e.exports=function(){return[]}},function(e,t,r){var n=r(47)(r(20),"Set");e.exports=n},function(e,t,r){var n=r(47)(r(20),"WeakMap");e.exports=n},function(e,t,r){var n=r(15);e.exports=function(e){return e==e&&!n(e)}},function(e,t){e.exports=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}},function(e,t,r){var n=r(422),o=r(293);e.exports=function(e,t){return null!=e&&o(e,t,n)}},function(e,t,r){var n=r(96),o=r(75),a=r(10),i=r(64),u=r(100),l=r(84);e.exports=function(e,t,r){for(var c=-1,s=(t=n(t,e)).length,f=!1;++c<s;){var d=l(t[c]);if(!(f=null!=e&&r(e,d)))break;e=e[d]}return f||++c!=s?f:!!(s=null==e?0:e.length)&&u(s)&&i(d,s)&&(a(e)||o(e))}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,r){var n=r(41);e.exports=function(e){return"function"==typeof e?e:n}},function(e,t,r){var n=r(85),o=r(28);e.exports=function(e,t){var r=-1,a=o(e)?Array(e.length):[];return n(e,(function(e,n,o){a[++r]=t(e,n,o)})),a}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.request=t.post=t.download=void 0;var n=a(r(11)),o=a(r(13));function a(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=n.default.ajax(u({type:e,url:o.default.api,dataType:"json",data:t},r));return Promise.resolve(a.promise()).then((function(e){return!1===e.success?Promise.reject(e.data||{}):Promise.resolve(e.data)}))};t.request=c;t.post=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c("POST",e,t)};t.download=function(e){var t=n.default.ajax({type:"GET",url:e});return Promise.resolve(t.promise()).then((function(e){return!1===e.success?Promise.reject(e||{}):Promise.resolve(e)}))}},function(e,t,r){var n=r(68),o=r(27);e.exports=function(e,t){return e&&n(t,o(t),e)}},function(e,t,r){var n=r(147),o=r(105),a=r(227),i=r(287),u=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,a(e)),e=o(e);return t}:i;e.exports=u},function(e,t,r){var n=r(107),o=r(301),a=r(50),i=r(53),u=a((function(e,t){if(null==e)return[];var r=t.length;return r>1&&i(e,t[0],t[1])?t=[]:r>2&&i(t[0],t[1],t[2])&&(t=[t[0]]),o(e,n(t,1),[])}));e.exports=u},function(e,t,r){var n=r(49),o=r(115),a=r(37),i=r(296),u=r(443),l=r(65),c=r(444),s=r(41),f=r(10);e.exports=function(e,t,r){t=t.length?n(t,(function(e){return f(e)?function(t){return o(t,1===e.length?e[0]:e)}:e})):[s];var d=-1;t=n(t,l(a));var p=i(e,(function(e,r,o){return{criteria:n(t,(function(t){return t(e)})),index:++d,value:e}}));return u(p,(function(e,t){return c(e,t,r)}))}},function(e,t,r){var n=r(447),o=r(448),a=r(37),i=r(10);e.exports=function(e,t){return function(r,u){var l=i(r)?n:o,c=t?t():{};return l(r,e,a(u,2),c)}}},function(e,t,r){var n=r(104),o=r(96),a=r(64),i=r(15),u=r(84);e.exports=function(e,t,r,l){if(!i(e))return e;for(var c=-1,s=(t=o(t,e)).length,f=s-1,d=e;null!=d&&++c<s;){var p=u(t[c]),y=r;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(c!=f){var m=d[p];void 0===(y=l?l(m,p,d):void 0)&&(y=i(m)?m:a(t[c+1])?[]:{})}n(d,p,y),d=d[p]}return e}},function(e,t){e.exports=function(e,t,r,n){var o=-1,a=null==e?0:e.length;for(n&&a&&(r=e[++o]);++o<a;)r=t(r,e[o],o,e);return r}},function(e,t,r){var n=r(54),o=r(302),a=Object.prototype.hasOwnProperty,i=o((function(e,t,r){a.call(e,r)?e[r].push(t):n(e,r,[t])}));e.exports=i},function(e,t){e.exports=function(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a<o;)if(t(e[a],a,e))return a;return-1}},function(e,t,r){var n=r(239),o=1/0;e.exports=function(e){return e?(e=n(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},function(e,t,r){var n=r(309),o=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(o,""):e}},function(e,t){var r=/\s/;e.exports=function(e){for(var t=e.length;t--&&r.test(e.charAt(t)););return t}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIdQueryParam=void 0;var n=i(r(29)),o=i(r(39)),a=r(452);function i(e){return e&&e.__esModule?e:{default:e}}t.getIdQueryParam=function(e){var t=window.location.href,r=(0,a.getArg)(e,t);return(0,o.default)(r)?(0,n.default)(r):0}},function(e,t,r){var n=r(26)("curry",r(323));n.placeholder=r(24),e.exports=n},function(e,t,r){var n=r(41),o=r(313),a=o?function(e,t){return o.set(e,t),e}:n;e.exports=a},function(e,t,r){var n=r(289),o=n&&new n;e.exports=o},function(e,t,r){var n=r(315),o=r(316),a=r(459),i=r(159),u=r(317),l=r(244),c=r(468),s=r(161),f=r(20);e.exports=function e(t,r,d,p,y,m,h,b,v,g){var O=128&r,_=1&r,w=2&r,T=24&r,E=512&r,P=w?void 0:i(t);return function j(){for(var S=arguments.length,I=Array(S),M=S;M--;)I[M]=arguments[M];if(T)var C=l(j),A=a(I,C);if(p&&(I=n(I,p,y,T)),m&&(I=o(I,m,h,T)),S-=A,T&&S<g){var D=s(I,C);return u(t,r,e,j.placeholder,d,I,D,b,v,g-S)}var k=_?d:this,R=w?k[t]:t;return S=I.length,b?I=c(I,b):E&&S>1&&I.reverse(),O&&v<S&&(I.length=v),this&&this!==f&&this instanceof j&&(R=P||i(R)),R.apply(k,I)}}},function(e,t){var r=Math.max;e.exports=function(e,t,n,o){for(var a=-1,i=e.length,u=n.length,l=-1,c=t.length,s=r(i-u,0),f=Array(c+s),d=!o;++l<c;)f[l]=t[l];for(;++a<u;)(d||a<i)&&(f[n[a]]=e[a]);for(;s--;)f[l++]=e[a++];return f}},function(e,t){var r=Math.max;e.exports=function(e,t,n,o){for(var a=-1,i=e.length,u=-1,l=n.length,c=-1,s=t.length,f=r(i-l,0),d=Array(f+s),p=!o;++a<f;)d[a]=e[a];for(var y=a;++c<s;)d[y+c]=t[c];for(;++u<l;)(p||a<i)&&(d[y+n[u]]=e[a++]);return d}},function(e,t,r){var n=r(318),o=r(320),a=r(321);e.exports=function(e,t,r,i,u,l,c,s,f,d){var p=8&t;t|=p?32:64,4&(t&=~(p?64:32))||(t&=-4);var y=[e,t,u,p?l:void 0,p?c:void 0,p?void 0:l,p?void 0:c,s,f,d],m=r.apply(void 0,y);return n(e)&&o(m,y),m.placeholder=i,a(m,e,t)}},function(e,t,r){var n=r(240),o=r(242),a=r(319),i=r(461);e.exports=function(e){var t=a(e),r=i[t];if("function"!=typeof r||!(t in n.prototype))return!1;if(e===r)return!0;var u=o(r);return!!u&&e===u[0]}},function(e,t,r){var n=r(460),o=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",r=n[t],a=o.call(n,t)?r.length:0;a--;){var i=r[a],u=i.func;if(null==u||u==e)return i.name}return t}},function(e,t,r){var n=r(312),o=r(155)(n);e.exports=o},function(e,t,r){var n=r(463),o=r(464),a=r(122),i=r(465);e.exports=function(e,t,r){var u=t+"";return a(e,o(u,i(n(u),r)))}},function(e,t,r){var n=r(150);e.exports=function(e){return n(e,4)}},function(e,t,r){var n=r(158);function o(e,t,r){var a=n(e,8,void 0,void 0,void 0,void 0,void 0,t=r?void 0:t);return a.placeholder=o.placeholder,a}o.placeholder={},e.exports=o},function(e,t,r){var n=r(243),o=r(162),a=r(242),i=r(319),u=r(10),l=r(318);e.exports=function(e){return o((function(t){var r=t.length,o=r,c=n.prototype.thru;for(e&&t.reverse();o--;){var s=t[o];if("function"!=typeof s)throw new TypeError("Expected a function");if(c&&!f&&"wrapper"==i(s))var f=new n([],!0)}for(o=f?o:r;++o<r;){s=t[o];var d=i(s),p="wrapper"==d?a(s):void 0;f=p&&l(p[0])&&424==p[1]&&!p[4].length&&1==p[9]?f[i(p[0])].apply(f,p[3]):1==s.length&&l(s)?f[d]():f.thru(s)}return function(){var e=arguments,n=e[0];if(f&&1==e.length&&u(n))return f.plant(n).value();for(var o=0,a=r?t[o].apply(this,e):n;++o<r;)a=t[o].call(this,a);return a}}))}},function(e,t,r){var n=r(26)("toString",r(16),r(90));n.placeholder=r(24),e.exports=n},function(e,t,r){var n=r(26)("split",r(480));n.placeholder=r(24),e.exports=n},function(e,t,r){var n=r(26)("head",r(108),r(90));n.placeholder=r(24),e.exports=n},function(e,t,r){var n=r(26)("tail",r(485),r(90));n.placeholder=r(24),e.exports=n},function(e,t){e.exports=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var o=e[t];n[o[0]]=o[1]}return n}},function(e,t,r){var n=r(124);e.exports=function(e,t){for(var r=e.length;r--&&n(t,e[r],0)>-1;);return r}},function(e,t,r){var n=r(49),o=r(150),a=r(249),i=r(96),u=r(68),l=r(498),c=r(162),s=r(235),f=c((function(e,t){var r={};if(null==e)return r;var c=!1;t=n(t,(function(t){return t=i(t,e),c||(c=t.length>1),t})),u(e,s(e),r),c&&(r=o(r,7,l));for(var f=t.length;f--;)a(r,t[f]);return r}));e.exports=f},function(e,t,r){var n=r(20),o=r(29),a=r(239),i=r(16),u=n.isFinite,l=Math.min;e.exports=function(e){var t=Math[e];return function(e,r){if(e=a(e),(r=null==r?0:l(o(r),292))&&u(e)){var n=(i(e)+"e").split("e"),c=t(n[0]+"e"+(+n[1]+r));return+((n=(i(c)+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createHistoryPoint=void 0;var n=a(r(67)),o=a(r(19));function a(e){return e&&e.__esModule?e:{default:e}}t.createHistoryPoint=function(e,t,r,a){var i=new Date,u=(0,n.default)(t);return(0,o.default)(u,(function(e){(0,o.default)(e.layouts,(function(e){e.busy=!1}))})),{label:e,state:{templates:u,defaultTemplate:r,idMap:(0,n.default)(a)},time:i.getTime(),timeLabel:i.toLocaleTimeString()}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateLayoutEditDetails=t.setLastEditedLayout=t.setHoveredLayout=t.editLayout=t.createLayout=t.cloneLayout=t.cacheLayoutEditUrl=void 0;var n,o,a,i,u,l,c,s,f,d,p,y,m,h,b,v,g=r(3),O=r(35),_=I(r(23)),w=I(r(12)),T=r(4),E=r(103),P=r(164),j=r(281),S=r(34);function I(e){return e&&e.__esModule?e:{default:e}}function M(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}t.cloneLayout=[function(e){var t=e.api,r=e.props.layoutId;return t.cloneLayout(r).then((function(e){return{cloneLayoutId:e.id.toString()}}))}];t.createLayout=[function(e){var t=e.api,r=e.props.layoutType;return t.createLayout(r).then((function(e){return{layoutId:e.id.toString()}}))}];var C=[(0,O.set)((0,g.state)(n||(n=M(["layouts.hovered.templateId"]))),(0,g.props)(o||(o=M(["templateId"])))),(0,O.set)((0,g.state)(a||(a=M(["layouts.hovered.layoutId"]))),(0,g.props)(i||(i=M(["layoutId"])))),(0,O.set)((0,g.state)(u||(u=M(["layouts.hovered.layoutType"]))),(0,g.props)(l||(l=M(["layoutType"]))))];t.setHoveredLayout=C;var A=[(0,O.set)((0,g.state)(c||(c=M(["layouts.editUrls.",""])),(0,g.props)(s||(s=M(["layoutId"])))),(0,g.props)(f||(f=M(["url"]))))];t.cacheLayoutEditUrl=A;var D=[function(e){var t=e.get,r=e.store,n=e.props,o=n.templateId,a=n.layoutType,i=n.isGlobalLayout,u=t((0,g.state)(d||(d=M(["templates.defaultTemplate"])))),l=t((0,g.state)(p||(p=M(["templates.templates.",""])),o)),c=o===u,s=(0,w.default)(l.useOn),f=(0,S.getTemplateTitle)(c,s,l.title,l.automaticTitle),m=(0,S.getTemplateMeta)(c,l.title,l.automaticMeta),h=f;""!==m&&(h+=" (".concat(m,")")),r.set((0,g.state)(y||(y=M(["layouts.currentlyEditingLayout"]))),{templateId:o,layoutType:a,isGlobalLayout:i,templateTitleText:h})}];t.updateLayoutEditDetails=D;var k=[(0,O.set)((0,g.state)(m||(m=M(["lastEdited"]))),(0,g.props)(h||(h=M(["layoutId"]))))];t.setLastEditedLayout=k;var R=[function(e){var t=e.get,r=e.path,n=t((0,g.state)(b||(b=M(["layouts.editUrls.",""])),(0,g.props)(v||(v=M(["layoutId"])))));return(0,_.default)(n)?r.fetch():r.cached({url:n})},{cached:[D,j.openVisualBuilder],fetch:[P.blockInteractions,function(e){var t=e.api,r=e.path,n=e.props.layoutId;return t.getLayoutUrl(n).then((function(e){return r.success({url:e.editUrl})})).catch((function(){return r.error()}))},{success:[A,D,k,j.openVisualBuilder],error:[(0,E.openPrompt)({type:T.PROMPT_TYPE_UNKNOWN_ERROR})]},P.unblockInteractions]}];t.editLayout=R},function(e,t){var r,n,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function u(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(e){r=a}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var l,c=[],s=!1,f=-1;function d(){s&&l&&(s=!1,l.length?c=l.concat(c):f=-1,c.length&&p())}function p(){if(!s){var e=u(d);s=!0;for(var t=c.length;t;){for(l=c,c=[];++f<t;)l&&l[f].run();f=-1,t=c.length}l=null,s=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function y(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new y(e,t)),1!==c.length||s||u(p)},y.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t){e.exports=function(e,t,r){return e==e&&(void 0!==r&&(e=e<=r?e:r),void 0!==t&&(e=e>=t?e:t)),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ETCloudCache=void 0;var n=s(r(128)),o=s(r(78)),a=s(r(170)),i=s(r(5)),u=s(r(338)),l=s(r(514)),c=r(167);function s(e){return e&&e.__esModule?e:{default:e}}var f={cache:{},offlineCacheTable:"DiviCloud",offlineCacheVersion:"1.4",cacheKey:"",init:function(e,t){var r=this;window.ETCloudCache=window.ETCloudCache||{},this.cacheKey=e,(0,a.default)(window.ETCloudCache,e)||(0,o.default)(window.ETCloudCache,e,{}),this.getOfflineCache("cloud-cache-version").then((function(e){r.offlineCacheVersion!==e&&l.default.createInstance({name:r.offlineCacheTable}).clear().then((function(){r.setOfflineCache("cloud-cache-version",r.offlineCacheVersion)}))})),this.cache=window.ETCloudCache[e]},addData:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(r)(0,o.default)(window.ETCloudCache,e,t);else{var a=n?window.ETCloudCache[n]:this.cache;(0,o.default)(a,e,t)}},getData:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return r?(0,i.default)(window.ETCloudCache[r],e,t):(0,i.default)(this.cache,e,t)},clearData:function(){window.ETCloudCache={},(0,o.default)(window.ETCloudCache,this.cacheKey,{}),this.cache=window.ETCloudCache[this.cacheKey]},setOfflineCache:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"items",a=l.default.createInstance({name:this.offlineCacheTable});return r?a.getItem(e).then((function(r){var i=t;return i="array"===o?(0,n.default)(r,t):r?(0,c.uniqItems)((0,u.default)(r,t)):t,a.setItem(e,i)})):a.setItem(e,t)},getOfflineCache:function(e){return l.default.createInstance({name:this.offlineCacheTable}).getItem(e).then((function(e){return e}))}};t.ETCloudCache=f},function(e,t,r){var n=r(147),o=r(107),a=r(70),i=r(10);e.exports=function(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),r=arguments[0],u=e;u--;)t[u-1]=arguments[u];return n(i(r)?a(r):[r],o(t,1))}},function(e,t,r){var n=r(336),o=r(99),a=r(29),i=r(16);e.exports=function(e,t,r){return e=i(e),r=null==r?0:n(a(r),0,e.length),t=o(t),e.slice(r,r+t.length)==t}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCloudFolderById=void 0,t.getCopyMoveToModalCheckboxList=function(e,t,r,n,a){var i=[],l=0;(0,f.default)(e,(function(e){2===++l&&l++,i.push({id:e.id,name:e.name,priority:l,folderType:"myFolders"})})),(0,f.default)(t,(function(e){r===e.name?i.push({id:e.id,name:"My Cloud",priority:2,folderType:"sharedFolders"}):(2===++l&&l++,(0,s.default)(e,"permissions.add",!1)&&i.push({id:e.id,name:e.name,priority:l,folderType:"sharedFolders"}))}));var c=(0,u.default)(i,["priority"]);if(p.MENU_ITEM_COPY_PREDEFINED_ITEM_CLOUD===a)return c;return(0,o.default)(c,(function(e){return!function(e,t){return t.folderType===e.folderType&&t.folder.id===e.id}(e,n)}))},t.itemEditorActionStatusHasPremadeAuthError=t.itemEditorActionStatusHasErrors=t.itemEditorActionStatusHasDownloadError=t.getItemEditorFailedCloudFolders=void 0,t.prepareCloudItemItems=function(e){var t=[];return(0,d.default)(e,(function(e,r){var n=(0,l.default)(e.name)?(0,s.default)(e,"title",""):e.name,o={id:0,name:(0,c.default)(n)?(0,s.default)(e,"automaticTitle",""):n};t.push(o)})),t};var n=y(r(51)),o=y(r(32)),a=y(r(157)),i=y(r(156)),u=y(r(131)),l=y(r(55)),c=y(r(12)),s=y(r(5)),f=y(r(341)),d=y(r(19)),p=r(168);function y(e){return e&&e.__esModule?e:{default:e}}t.itemEditorActionStatusHasErrors=function(e){return!(0,l.default)(e)&&(0,i.default)(e,(function(e){return"error"===e.status}))};t.itemEditorActionStatusHasDownloadError=function(e){return!(0,l.default)(e)&&(0,i.default)(e,(function(e){return"error"===e.status&&"download"===e.action}))};t.itemEditorActionStatusHasPremadeAuthError=function(e){return!(0,l.default)(e)&&(0,i.default)(e,(function(e){return"error"===e.status&&"premade_item_download_authentication_invalid"===e.action}))};var m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r={},n=-1;return""!==t&&(n=(0,a.default)(e,(function(e){return e.id===t}))),-1!==n?e[n]:r};t.getCloudFolderById=m;t.getItemEditorFailedCloudFolders=function(e,t){var r=[];return(0,l.default)(t)||(0,d.default)(t,(function(t){(0,n.default)(["download","premade_item_download_authentication_invalid"],t.action)||r.push(m(e,t.id))})),r}},function(e,t,r){var n=r(214),o=r(295);e.exports=function(e,t){return e&&n(e,o(t))}},function(e,t,r){var n=r(49),o=r(37),a=r(343),i=r(235);e.exports=function(e,t){if(null==e)return{};var r=n(i(e),(function(e){return[e]}));return t=o(t),a(e,r,(function(e,r){return t(e,r[0])}))}},function(e,t,r){var n=r(115),o=r(303),a=r(96);e.exports=function(e,t,r){for(var i=-1,u=t.length,l={};++i<u;){var c=t[i],s=n(e,c);r(s,c)&&o(l,a(c,e),s)}return l}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(0)),o=a(r(8));function a(e){return e&&e.__esModule?e:{default:e}}var i=n.default.createContext({addListener:o.default,removeListener:o.default});t.default=i},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i,u,l,c,s,f,d,p,y,m,h,b,v,g,O,_,w=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=V(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),T=Y(r(1)),E=r(3),P=r(9),j=Y(r(166)),S=Y(r(11)),I=Y(r(14)),M=Y(r(32)),C=r(4),A=Y(r(13)),D=Y(r(7)),k=r(173),R=r(74),x=Y(r(133)),L=Y(r(18)),B=Y(r(175)),N=Y(r(80)),U=Y(r(30)),W=Y(r(350)),F=Y(r(607)),z=Y(r(619)),H=Y(r(622));function Y(e){return e&&e.__esModule?e:{default:e}}function V(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(V=function(e){return e?r:t})(e)}function q(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function G(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function K(e,t){return K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},K(e,t)}function Z(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Q(e);if(t){var o=Q(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return X(this,r)}}function X(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return J(e)}function J(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Q(e){return Q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Q(e)}function ee(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(623);var te="manage_settings",re="reset_settings",ne="duplicate",oe="enable",ae="disable",ie="delete",ue="rename",le="export",ce=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&K(e,t)}(a,e);var t,r,n,o=Z(a);function a(){var e;G(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ee(J(e=o.call.apply(o,[this].concat(r))),"state",{settingsOpen:!1,isHovered:!1}),ee(J(e),"node",null),ee(J(e),"cloneAnimation",null),ee(J(e),"getContextMenuOptions",(function(){var t=e.props,r=t.isEnabled,n=t.isDefault,o=t.isLibraryTemplateEditorOpen,a=[n?null:{value:te,label:(0,D.default)("themeBuilder","Manage Template Assignments")},n?null:{value:re,label:(0,D.default)("themeBuilder","Reset Template Assignments")},o?null:{value:ne,label:(0,D.default)("themeBuilder","Duplicate Template")},r?{value:ae,label:(0,D.default)("themeBuilder","Disable Template")}:{value:oe,label:(0,D.default)("themeBuilder","Enable Template")},n||o?null:{value:ie,label:(0,D.default)("themeBuilder","Delete Template")},n?null:{value:ue,label:(0,D.default)("themeBuilder","Rename Template")},(0,R.isAllowedAction)(C.CAP_PORTABILITY)?{value:le,label:(0,D.default)("portability","Export %s",(0,D.default)("themeBuilder","Template"))}:null];return(0,M.default)(a,(function(e){return!!e}))})),ee(J(e),"handleOnContextMenu",(function(t){e.props.openContextMenu(t)})),ee(J(e),"handleOnContextMenuChange",(function(t){switch(t){case te:e.openSettings();break;case re:e.handleOnSave({useOn:[],excludeFrom:[]});break;case ne:e.cloneTemplate();break;case oe:e.enableTemplate();break;case ae:e.disableTemplate();break;case ie:e.deleteTemplate();break;case ue:e.renameTemplate();break;case le:e.exportTemplate()}e.props.closeContextMenu()})),ee(J(e),"saveTemplateToLibrary",(function(t){e.props.openSaveTemplateModal({templateId:e.props.templateId})})),ee(J(e),"openSettings",(function(){e.setState({settingsOpen:!0})})),ee(J(e),"closeSettings",(function(){e.setState({settingsOpen:!1})})),ee(J(e),"handleOnSave",(function(t){e.closeSettings(),e.props.setSettings({templateId:e.props.templateId,settings:t})})),ee(J(e),"cloneTemplate",(function(){e.props.cloneTemplate({templateId:e.props.templateId,settings:{useOn:[],excludeFrom:[]}})})),ee(J(e),"enableTemplate",(function(){e.props.enableTemplate({templateId:e.props.templateId})})),ee(J(e),"disableTemplate",(function(){e.props.disableTemplate({templateId:e.props.templateId})})),ee(J(e),"deleteTemplate",(function(){e.props.deleteTemplate({templateId:e.props.templateId})})),ee(J(e),"exportTemplate",(function(){e.props.exportTemplate({templateId:e.props.templateId})})),ee(J(e),"animateOnClone",(function(){var t=(0,S.default)(window).height(),r=(0,S.default)(e.node).offset().top,n=(0,S.default)(e.node).height(),o=Math.max(r+Math.floor(n/2)-Math.floor(t/2),0),a=A.default.animation?600:0;(0,S.default)("html, body").animate({scrollTop:o},a),e.cloneAnimation=(0,k.makeCancellable)(new j.default((function(e,t){return(0,k.delay)(a+150).then(e)}))),e.cloneAnimation.promise.then((function(){var t=e.props,r=t.templateId,n=t.justCloned,o=t.setJustCloned;if(r===n)return e.openSettings(),o({templateId:""})})).catch((function(){}))})),ee(J(e),"renameTemplate",(function(){e.titleRef&&(0,S.default)(e.titleRef).trigger("focus")})),ee(J(e),"onMouseEnter",(function(){e.setState({isHovered:!0})})),ee(J(e),"onMouseLeave",(function(){e.setState({isHovered:!1})})),e}return t=a,(r=[{key:"componentDidMount",value:function(){var e=this.props,t=e.templateId;e.justCloned===t&&this.animateOnClone()}},{key:"componentWillUnmount",value:function(){null!==this.cloneAnimation&&this.cloneAnimation.cancel()}},{key:"render",value:function(){var e=this,t=this.props,r=t.templateId,n=t.isDefault,o=t.isEnabled,a=t.useOn,i=t.excludeFrom,u=t.contextMenu,l=t.className,c=this.state.settingsOpen;return w.default.createElement("div",{ref:function(t){return e.node=t},className:(0,I.default)(ee({"et-tb-template":!0,"et-tb-template--disabled":!o},l,!0)),onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave},w.default.createElement("div",{className:"et-tb-template__actions-modal-root"},c&&w.default.createElement(W.default,{anchor:this,templateId:r,defaultSettings:{useOn:a,excludeFrom:i},onSave:this.handleOnSave,onClose:this.closeSettings})),!c&&w.default.createElement(z.default,{isDefault:n,isLibraryTemplateEditorOpen:this.props.isLibraryTemplateEditorOpen,onOpenSettings:this.openSettings,onOpenCloneSettings:this.cloneTemplate,onDeleteTemplate:this.deleteTemplate,onExportTemplate:this.exportTemplate,onContextMenu:this.handleOnContextMenu,onSaveTemplateToLibrary:this.saveTemplateToLibrary,active:this.state.isHovered}),w.default.createElement("div",{className:(0,I.default)({"et-tb-template__content":!0,"et-tb-template__content--disabled":!o}),onContextMenu:this.handleOnContextMenu},w.default.createElement(N.default,{component:"Header template area",className:"et-tb-error-boundary--spaced"},w.default.createElement(F.default,{templateId:r,layoutType:C.LAYOUT_TYPE_HEADER})),w.default.createElement(N.default,{component:"Body template area",className:"et-tb-error-boundary--spaced"},w.default.createElement(F.default,{templateId:r,layoutType:C.LAYOUT_TYPE_BODY})),w.default.createElement(N.default,{component:"Footer template area"},w.default.createElement(F.default,{templateId:r,layoutType:C.LAYOUT_TYPE_FOOTER})),w.default.createElement(N.default,{component:"Template title"},w.default.createElement(H.default,{forwardedRef:function(t){return e.titleRef=t},templateId:r}))),!o&&w.default.createElement("div",{className:"et-tb-template__enable-overlay"},w.default.createElement(L.default,{className:"et-common-button--secondary et-tb-template__enable-button",onClick:this.enableTemplate},(0,D.default)("themeBuilder","Enable Template"))),u.open&&w.default.createElement(U.default,null,w.default.createElement(B.default,{animation:A.default.animation,left:u.left,top:u.top,options:this.getContextMenuOptions(),onChange:this.handleOnContextMenuChange})))}}])&&$(t.prototype,r),n&&$(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(w.PureComponent);ee(ce,"propTypes",{templateId:T.default.string.isRequired,className:T.default.string}),ee(ce,"defaultProps",{className:""}),ee(ce,"connections",{isDefault:(0,E.state)(o||(o=q(["templates.templates.",".default"])),(0,E.props)(a||(a=q(["templateId"])))),isEnabled:(0,E.state)(i||(i=q(["templates.templates.",".enabled"])),(0,E.props)(u||(u=q(["templateId"])))),useOn:(0,E.state)(l||(l=q(["templates.templates.",".useOn"])),(0,E.props)(c||(c=q(["templateId"])))),excludeFrom:(0,E.state)(s||(s=q(["templates.templates.",".excludeFrom"])),(0,E.props)(f||(f=q(["templateId"])))),justCloned:(0,E.state)(d||(d=q(["templates.justCloned"]))),setSettings:(0,E.sequences)(p||(p=q(["templates.setSettings"]))),cloneTemplate:(0,E.sequences)(y||(y=q(["templates.cloneTemplate"]))),enableTemplate:(0,E.sequences)(m||(m=q(["templates.enableTemplate"]))),disableTemplate:(0,E.sequences)(h||(h=q(["templates.disableTemplate"]))),deleteTemplate:(0,E.sequences)(b||(b=q(["templates.deleteTemplate"]))),setJustCloned:(0,E.sequences)(v||(v=q(["templates.setJustCloned"]))),exportTemplate:(0,E.sequences)(g||(g=q(["portability.openPortabilityToExportTemplate"]))),openSaveTemplateModal:(0,E.sequences)(O||(O=q(["librarySave.openSaveTemplateModal"]))),isLibraryTemplateEditorOpen:(0,E.state)(_||(_=q(["isLibraryTemplateEditorOpen"])))});var se=(0,x.default)((0,P.connect)(ce.connections,ce));t.default=se},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(o,i,l):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),i=(o=r(557))&&o.__esModule?o:{default:o};function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=p(e);if(t){var o=p(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return d(this,r)}}function d(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var y={width:"200%",height:"200%",top:"-50%",left:"-50%"},m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(u,e);var t,r,n,o=f(u);function u(){return l(this,u),o.apply(this,arguments)}return t=u,(r=[{key:"render",value:function(){return a.default.createElement(i.default,{radius:150,duration:1200,background:!1,options:{background:!1},style:y})}}])&&c(t.prototype,r),n&&c(t,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(a.PureComponent),h=m;t.default=h},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=y(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=p(r(1)),i=p(r(11)),u=p(r(42)),l=r(261),c=p(r(348)),s=p(r(176)),f=p(r(565));r(568);var d=["animation","className"];function p(e){return e&&e.__esModule?e:{default:e}}function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(y=function(e){return e?r:t})(e)}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){P(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function b(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=E(e);if(t){var o=E(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return w(this,r)}}function w(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return T(e)}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function P(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var j=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O(e,t)}(p,e);var t,r,n,a=_(p);function p(){var e;v(this,p);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return P(T(e=a.call.apply(a,[this].concat(r))),"state",{position:{left:null,top:null,width:null,height:null}}),P(T(e),"cancel",(function(){e.props.onChange(null)})),P(T(e),"reposition",(function(){if(e.popupRef&&e.contentRef){var t="left"===(e.props.menuSide||"right")?1:2,r=(0,i.default)(e.popupRef),n=(0,i.default)(e.contentRef),o=e.props.width||r.width(),a=n.height(),c=e.props.centerHorizontally?e.props.left-Math.ceil(o/t):e.props.left,s=e.props.top;if(e.props.usePredefinedPosition){var f={width:o,height:a,left:c,top:s};(0,u.default)(f,e.state.position)||e.setState({position:f})}else{var d=(0,i.default)(window.top),p=(0,l.getViewportAdaptableRectangle)(d,r,c,s,o,a,e.props.paddingLeft,e.props.paddingRight,e.props.paddingTop,e.props.paddingBottom),y={left:p.left,top:p.top,width:p.width,height:p.height};(0,u.default)(e.state.position,y)||e.setState({position:y})}}})),e}return t=p,(r=[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.reposition),this.reposition()}},{key:"componentDidUpdate",value:function(){this.reposition()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.reposition)}},{key:"render",value:function(){var e=this,t=this.props,r=t.animation,n=t.className,a=b(t,d),i=null===this.state.left?{}:this.state.position;return o.default.createElement(c.default,{onOutsideClick:this.cancel,eventsWindow:this.props.eventsWindow},(function(t){return o.default.createElement("div",{ref:t,className:"et-common-popup-vertical-menu ".concat(n)},o.default.createElement(s.default,{enabled:r},(function(t){return o.default.createElement("div",{ref:function(t){return e.popupRef=t},className:"et-common-popup-vertical-menu__popup",style:h(h({},i),t)},o.default.createElement("div",{ref:function(t){return e.contentRef=t},className:"et-common-popup-vertical-menu__content"},o.default.createElement(f.default,a)))})))}))}}])&&g(t.prototype,r),n&&g(t,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(o.PureComponent);P(j,"propTypes",h(h({},f.default.propTypes),{},{animation:a.default.bool,left:a.default.number.isRequired,top:a.default.number.isRequired,width:a.default.number,centerHorizontally:a.default.bool,paddingLeft:a.default.number,paddingRight:a.default.number,paddingTop:a.default.number,paddingBottom:a.default.number,className:a.default.string,menuSide:a.default.string,usePredefinedPosition:a.default.bool,eventsWindow:a.default.object})),P(j,"defaultProps",h(h({},f.default.defaultProps),{},{animation:!0,width:0,centerHorizontally:!1,paddingLeft:0,paddingRight:0,paddingTop:30,paddingBottom:30,className:"",menuSide:"right"}));var S=j;t.default=S},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=l(r(1)),i=l(r(11)),u=l(r(8));function l(e){return e&&e.__esModule?e:{default:e}}function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=h(e);if(t){var o=h(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return y(this,r)}}function y(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(a,e);var t,r,n,o=p(a);function a(){var e;s(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return b(m(e=o.call.apply(o,[this].concat(r))),"node",null),b(m(e),"setNode",(function(t){return e.node=t})),b(m(e),"handleOnClick",(function(t){e.props.enabled&&(e.node&&(t.target===e.node||(0,i.default)(t.target).closest((0,i.default)(e.node)).length>=1)?e.props.onInsideClick(t):e.props.onOutsideClick(t))})),b(m(e),"render",(function(){return e.props.children(e.setNode)})),e}return t=a,(r=[{key:"componentDidMount",value:function(){this.props.eventsWindow.addEventListener("mousedown",this.handleOnClick)}},{key:"componentWillUnmount",value:function(){this.props.eventsWindow.removeEventListener("mousedown",this.handleOnClick)}}])&&f(t.prototype,r),n&&f(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.PureComponent);b(v,"propTypes",{enabled:a.default.bool,onInsideClick:a.default.func,onOutsideClick:a.default.func,children:a.default.func.isRequired,eventsWindow:a.default.object}),b(v,"defaultProps",{enabled:!0,onInsideClick:u.default,onOutsideClick:u.default,eventsWindow:window});var g=v;t.default=g},function(e,t,r){"use strict";t.__esModule=!0,t.default={noWobble:{stiffness:170,damping:26},gentle:{stiffness:120,damping:14},wobbly:{stiffness:180,damping:12},stiff:{stiffness:210,damping:20}},e.exports=t.default},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=s(r(1)),i=s(r(30)),u=s(r(570)),l=s(r(589));r(606);var c=["anchor"];function s(e){return e&&e.__esModule?e:{default:e}}function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){w(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=_(e);if(t){var o=_(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return g(this,r)}}function g(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return O(e)}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}function w(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(s,e);var t,r,n,a=v(s);function s(){var e;m(this,s);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return w(O(e=a.call.apply(a,[this].concat(r))),"_contentHeightGetter",(function(e){return e.find(".et-common-tabs-navigation").first().outerHeight()+e.find(".et-tb-dropdown-modal__tabs-contents").first().outerHeight()})),e}return t=s,(r=[{key:"render",value:function(){var e=this.props,t=e.anchor,r=y(e,c);return o.default.createElement(i.default,null,o.default.createElement(u.default,{className:"et-tb-template-settings-modal",anchor:t,contentHeightGetter:this._contentHeightGetter},o.default.createElement(l.default,r)))}}])&&h(t.prototype,r),n&&h(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(o.PureComponent);w(T,"propTypes",p(p({},l.default.propTypes),{},{anchor:a.default.object.isRequired})),w(T,"defaultProps",p({},l.default.defaultProps));var E=T;t.default=E},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.getViewportAdaptableRectangle=t.getViewportAdaptablePositioning=t.getBody=t.enableGlobalPageScroll=t.disableGlobalPageScroll=void 0;var n,o=(n=r(352))&&n.__esModule?n:{default:n};t.getViewportAdaptablePositioning=function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:30,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:100,u=i(e,r,0,t.offset().top,t.parent().width(),n,30,30,o,a);return{position:{left:u.left,top:u.top},size:{width:u.width,height:u.height},flags:{fitsInBottomSpace:u.fitsInBottomSpace,fitsInBottomAndTopSpace:u.fitsInBottomAndTopSpace,fitsWithScroll:u.fitsWithScroll}}};var a=function(e,t,r,n,o,a){var i=t<=Math.min(n,r-o)-a,u=t<=r-o-a,l=Math.max(o,e),c=t;return i||(u?(l-=t-(n-a),c=t):(l=o,c=r-o-a)),{position:l,size:c,fitsInAfterSpace:i,fitsInBeforeAndAfterSpace:u}},i=function(t,r,n,o,i,u){var l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,s=arguments.length>8&&void 0!==arguments[8]?arguments[8]:30,f=arguments.length>9&&void 0!==arguments[9]?arguments[9]:30,d=t.scrollLeft(),p=t.scrollTop(),y=t.width(),m=t.height(),h=y-((n=n>=d?n:d+l)-d),b=m-((o=o>=p?o:p+s)-p),v=r.parents().filter((function(){var t=e(this).css("transform");return"none"!==t&&t.length>0})).first(),g=a(n-d,i,y,h,l,c),O=g.position,_=g.size,w=g.fitsInAfterSpace,T=g.fitsInBeforeAndAfterSpace,E=a(o-p,u,m,b,s,f),P=E.position,j=E.size,S=E.fitsInAfterSpace,I=E.fitsInBeforeAndAfterSpace;return v.length>0&&(O-=v.offset().left-d,P-=v.offset().top-p),{left:O,top:P,width:_,height:j,fitsInRightSpace:w,fitsInRightAndLeftSpace:T,fitsInBottomSpace:S,fitsInBottomAndTopSpace:I,fitsWithScroll:!S&&!I}};t.getViewportAdaptableRectangle=i;var u=function(){return o.default.isTB()?o.default.$appWindow("body"):o.default.$topWindow("body")};t.getBody=u;t.enableGlobalPageScroll=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=u();t.removeClass("et-fb-global-scroll-disabled ".concat(e))};t.disableGlobalPageScroll=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=u();t.addClass("et-fb-global-scroll-disabled ".concat(e))}}).call(this,r(11))},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.viewportScrollTop=t.viewModeDraggableHandleWidth=t.triggerResizeForUIUpdate=t.topWindow=t.topViewportWidth=t.topDocument=t.stripHTMLTags=t.sprintf=t.setElementFont=t.sanitized_previously=t.replaceCodeContentEntities=t.removeFancyQuotes=t.removeClassNameByPrefix=t.processRangeValue=t.processIconFontData=t.processFontIcon=t.parseShortcode=t.parseInlineCssIntoObject=t.maybeLoadFont=t.maybeGetScrollbarWidth=t.log=t.linkRel=t.isYes=t.isValidHtml=t.isTB=t.isRealMobileDevice=t.isOnOff=t.isOn=t.isOff=t.isNo=t.isModuleLocked=t.isModuleDeleted=t.isMobileDevice=t.isLimitedMode=t.isJson=t.isIEOrEdge=t.isIE=t.isElementInViewport=t.isDefault=t.isBlockEditor=t.isBFB=t.is=t.intentionallyCloneDeep=t.intentionallyClone=t.hasValue=t.hasNumericValue=t.hasLocalStorage=t.hasBodyMargin=t.getViewModeByWidth=t.getSpacing=t.getScrollbarWidth=t.getRowLayouts=t.getResponsiveStatus=t.getProcessedTabSlug=t.getPreviewModes=t.getPrevBreakpoint=t.getOS=t.getNextBreakpoint=t.getModuleSectionType=t.getModuleAncestor=t.getModuleAddressSequence=t.getKeyboardList=t.getIntegerValue=t.getGradient=t.getFormattedPx=t.getFontFieldIndexes=t.getFixedHeaderHeight=t.getCorners=t.getCorner=t.getComponentType=t.getCommentsMarkup=t.getBreakpoints=t.getAdminBarHeight=t.generateResponsiveCss=t.generatePlaceholderCss=t.fontnameToClass=t.fixSliderHeight=t.fixBuilderContent=t.enableScrollLock=t.disableScrollLock=t.default=t.decodeOptionListValue=t.decodeHtmlEntities=t.cookies=t.condition=t.closestElement=t.callWindow=t.applyMixinsSafely=t.appendPrependCommaSeparatedSelectors=t.appWindow=t.appDocument=t.$topWindow=t.$topDocument=t.$appWindow=t.$appDocument=void 0;var n=$(r(571)),o=$(r(110)),a=$(r(322)),i=$(r(67)),u=$(r(246)),l=$(r(89)),c=$(r(19)),s=$(r(341)),f=$(r(329)),d=$(r(5)),p=$(r(170)),y=$(r(108)),m=$(r(51)),h=$(r(572)),b=$(r(10)),v=$(r(12)),g=$(r(42)),O=$(r(36)),_=$(r(55)),w=$(r(33)),T=$(r(15)),E=$(r(39)),P=$(r(23)),j=$(r(27)),S=$(r(17)),I=$(r(38)),M=$(r(192)),C=$(r(260)),A=$(r(331)),D=$(r(573)),k=$(r(574)),R=$(r(342)),x=$(r(353)),L=$(r(238)),B=$(r(156)),N=$(r(258)),U=$(r(578)),W=$(r(354)),F=r(269),z=$(r(280)),H=r(355),Y=($(r(580)),$(r(585))),V=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==K(e)&&"function"!=typeof e)return{default:e};var r=G(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}n.default=e,r&&r.set(e,n);return n}(r(586)),q=($(r(588)),r(261));function G(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(G=function(e){return e?r:t})(e)}function $(e){return e&&e.__esModule?e:{default:e}}function K(e){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},K(e)}function Z(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function X(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(r),!0).forEach((function(t){te(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Z(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function J(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,a=[],i=!0,u=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){u=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(u)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Q(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Q(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ee(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function te(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var re,ne={},oe=["et_pb_row","et_pb_row_inner"],ae=["et_pb_column","et_pb_column_inner"],ie=function(e){switch(e){case"force_left":return"left";case"justified":return"justify";default:return e}},ue=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),te(this,"postID",(0,d.default)(window.ETBuilderBackend,"currentPage.id")),te(this,"path",(0,d.default)(window.ETBuilderBackend,"cookie_path"))}var t,r,n;return t=e,r=[{key:"secure",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;return"https:"===e.location.protocol}},{key:"getName",value:function(e,t){return"et-".concat(e,"-post-").concat(this.postID,"-").concat(t)}},{key:"set",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:300,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window;o.wpCookies.set(this.getName(e,t),(0,P.default)(r)?t:r,n,this.path,!1,this.secure(o))}},{key:"get",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;return r.wpCookies.get(this.getName(e,t))}},{key:"remove",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;r.wpCookies.remove(this.getName(e,t),this.path,!1,this.secure(r))}}],r&&ee(t.prototype,r),n&&ee(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),le=new ue;t.cookies=le;var ce=window,se=ce.document,fe=null,de=null;e(window).on("et_fb_init",(function(){ce=window.ET_Builder.Frames.app,se=ce.document}));var pe={applyMixinsSafely:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(!(0,v.default)(r))return(0,c.default)(r,(function(t){(0,s.default)(t,(function(t,r){(0,P.default)(e[r])?e[r]=(0,O.default)(t)?t.bind(e):t:e[r]=(0,O.default)(t)?(0,D.default)(e[r],t.bind(e)):e[r]}))})),e},intentionallyClone:function(e){return(0,a.default)(e)},intentionallyCloneDeep:function(e){return(0,i.default)(e)},sanitized_previously:H.sanitizedPreviously,log:function(e,t,r){if(!ET_FB.utils.debug())return!1;var n=t||"general";if((0,m.default)(ET_FB.utils.debugLogAreas(),n))switch(r||"log"){case"warn":console.warn(e);break;case"info":console.info(e);break;default:console.log(e)}},sprintf:z.default,isJson:V.isJson,isValidHtml:V.isValidHtml,getOS:function(){if(!(0,P.default)(window.navigator)){if(-1!=navigator.appVersion.toLocaleLowerCase().indexOf("win"))return"Windows";if(-1!=navigator.appVersion.toLocaleLowerCase().indexOf("mac"))return"MacOS";if(-1!=navigator.appVersion.toLocaleLowerCase().indexOf("x11"))return"UNIX";if(-1!=navigator.appVersion.toLocaleLowerCase().indexOf("linux"))return"Linux"}return"Unknown"},isModuleLocked:function(e,t){var r=e.props||e,n=(0,d.default)(r,"address"),o=pe.isOn((0,d.default)(r,"attrs.locked"))||(0,d.default)(r,"lockedParent");if(!o){var a=pe.getModuleAddressSequence(n);(0,c.default)(a,(function(e){var r=(0,l.default)(t,{address:e});if(pe.isOn((0,d.default)(r,"attrs.locked"))||(0,d.default)(r,"lockedParent"))return o=!0,!1}))}return o},isModuleDeleted:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if((0,d.default)(e,"attrs._deleted"))return!0;if(r){var n=(0,d.default)(e,"address","").split(".");if(n.length>1){var o=pe.getModuleAddressSequence(n),a=!1;if((0,c.default)(o,(function(e){var r=(0,l.default)(t,{address:e});(0,d.default)(r,"attrs._deleted")&&(a=!0)})),a)return!0}}return!1},getComponentType:function(e){var t=e.props||e,r=(0,d.default)(t,"type"),n="module";switch(!0){case"et_pb_section"===r:n="section";break;case(0,m.default)(oe,r):n="row";break;case(0,m.default)(ae,r):n="column"}return n},getModuleSectionType:function(e,t){var r=e.props||e,n=(0,y.default)((0,d.default)(r,"address").split(".")),o=(0,l.default)(t,{address:n});return pe.isOn((0,d.default)(o,"attrs.fullwidth"))?"fullwidth":pe.isOn((0,d.default)(o,"attrs.specialty"))?"specialty":"regular"},getModuleAncestor:function(e,t,r){var n,o=t.props||t,a=pe.getModuleSectionType(o,r),i=pe.getModuleAddressSequence((0,d.default)(o,"address",""));return(0,c.default)(i,(function(t){var o=(0,l.default)(r,{address:t}),i=(0,d.default)(o,"type","");if("specialty"===a)0===i.replace("et_pb_","").indexOf(e)&&(n=o);else i.replace("et_pb_","")===e&&(n=o)})),n},is:function(e,t){var r=t.props||t,n=!1;switch(e){case"section":n="section"===xt(r);break;case"row":n="row"===xt(r);break;case"row-inner":n="et_pb_row_inner"===(0,d.default)(r,"type");break;case"column":n="column"===xt(r);break;case"column-inner":n="et_pb_column_inner"===(0,d.default)(r,"type");break;case"module":n="module"===xt(r)&&!(0,d.default)(r,"is_module_child");break;case"fullwidth":n=Oe((0,d.default)(r,"attrs.fullwidth"));break;case"regular":n="section"===xt(r)&&!Oe((0,d.default)(r,"attrs.fullwidth"))&&!Oe((0,d.default)(r,"attrs.specialty"));break;case"specialty":n=Oe((0,d.default)(r,"attrs.specialty"));break;case"disabled":n=Oe((0,d.default)(r,"attrs.disabled"));break;case"locked":n=Oe((0,d.default)(r,"attrs.locked"));break;case"removed":n="et-fb-removed-component"===(0,d.default)(r,"component_path","");break;default:n=(0,d.default)(r,e)}return n},isOn:V.isOn,isOff:V.isOff,isOnOff:V.isOnOff,isYes:V.isYes,isNo:V.isNo,isDefault:V.isDefault,isMobileDevice:function(){if(null===fe)try{document.createEvent("TouchEvent"),fe=pe.$appWindow().width()<=1024}catch(e){fe=!1}return fe},isFileExtension:V.isFileExtension,isIEOrEdge:function(){return document.documentMode||window.StyleMedia},isIE:function(){return pe.$appWindow("body").hasClass("ie")},isBlockEditor:function(){return(0,p.default)(window,"wp.blocks")},isResponsiveView:function(e){return(0,m.default)(["tablet","phone"],e)},isRealMobileDevice:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},getConditionalDefault:function(e,t,r,n){if(!(0,b.default)(e)||!(0,T.default)((0,d.default)(e,"1")))return e;var o=J(e,2),a=o[0],i=o[1];n&&(a=Y.default.getHoverField(a));var u=r?r.resolve(a):(0,d.default)(t,a);return(0,P.default)(u)&&(u=(0,j.default)(i)[0]),(0,d.default)(i,u)},getValueOrConditionalDefault:function(e,t,r){var n=(0,d.default)(t,e);return(0,P.default)(n)||""===n?pe.getConditionalDefault((0,d.default)(r,e),t):n},condition:function(e){return(0,d.default)(ETBuilderBackend,["conditionalTags",e])},hasNumericValue:V.hasNumericValue,hasValue:V.hasValue,get:V.get,getResponsiveStatus:function(e){var t=(0,E.default)(e)?e.split("|"):["off","desktop"];return!(0,P.default)(t[0])&&pe.isOn(t[0])},getResponsiveLastMode:function(e){var t=(0,E.default)(e)?e.split("|"):["off","desktop"];return(0,d.default)(t,[1],"desktop")},parseShortcode:function(t,r,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=this,i=document.documentMode,u="et-fb-preview-".concat((0,C.default)(),"-").concat(Math.floor(1e3*Math.random()+1)),l="".concat(ETBuilderBackend.site_url,"/?et_pb_preview=true&et_pb_preview_nonce=").concat(ETBuilderBackend.nonces.preview,"&iframe_id=").concat(u);setTimeout((function(){var c=e('*[data-shortcode-id="'.concat(n,'"]')),s=c.length?"".concat(c.width(),"px"):"100%",f=e("<iframe />",{id:u,src:l,style:"position: absolute; bottom: 0; left: 0; opacity: 0; pointer-events: none; width: ".concat(s,"; height: 100%;")}),d=!1,p={et_pb_preview_nonce:ETBuilderBackend.nonces.preview,is_fb_preview:!0,shortcode:t},y=o||e("body");y.append(f),f.on("load",(function(){if(!d){var e=y.find("#".concat(u))[0];!(0,P.default)(i)&&i<10&&(p=JSON.stringify(p)),e.contentWindow.postMessage(p,l),d=!0;var t=window.addEventListener?"addEventListener":"attachEvent";(0,window[t])("attachEvent"==t?"onmessage":"message",(function(e){e.data.iframe_id===u&&(0,E.default)(e.data.html)&&a.hasValue(e.data)&&(r(e.data),o||f.remove())}),!1)}}))}),0)},renderExtendedIcon:function(e){var t=pe.getExtendedIconData(e);return 0===t.unicode.indexOf("&#")?pe.decodeIconUnicode(t.unicode):t.unicode},maybeFaIconType:function(e){return"divi"!==pe.getExtendedIconData(e).type},getExtendedIconFontFamily:function(e){return"divi"!==pe.getExtendedIconData(e).type?"FontAwesome":"ETmodules"},getExtendedIconFontWeight:function(e){return Number.parseInt(pe.getExtendedIconData(e).fontWeight)},maybeBlackExtendedIconFontWeight:function(e){return pe.maybeBlackFontWeightIcon(pe.getExtendedIconData(e).fontWeight)},maybeNormalExtendedIconFontWeight:function(e){return pe.maybeNormalFontWeightIcon(pe.getExtendedIconData(e).fontWeight)},maybeBlackFontWeightIcon:function(e){return 900===Number.parseInt(e)},maybeNormalFontWeightIcon:function(e){return 400===Number.parseInt(e)},decodeIconUnicode:function(t){return void 0===t||(0,v.default)(t)?null:e.parseHTML((0,W.default)(t))[0].nodeValue},convertIconUnicodeToCssValue:function(e){var t=pe.getExtendedIconData(e),r="";if(1===t.unicode.length){if("divi"!==t.type)return'"\\'.concat(t.unicode,'"');for(var n=ETBuilderBackend.fontIconsExtended,o=0;o<n.length;o++)if(n[o].decoded_unicode===t.unicode){r=n[o].unicode;break}}else r=t.unicode;return r=(r=(r=r.toLowerCase().replace("&#x","")).replace("&#x","")).replace(";",""),'"\\'.concat(r,'"')},getExtendedIconStyleData:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hover_icon",r=["","_phone","_tablet","__hover","__sticky"],n=X({},e);return r.forEach((function(e){void 0!==n["".concat(t).concat(e)]&&pe.maybeExtendedFontIconRaw(n["".concat(t).concat(e)])&&(n["".concat(t,"_font_family").concat(e)]=pe.getExtendedIconFontFamily(n["".concat(t).concat(e)]),n["".concat(t,"_font_weight").concat(e)]=pe.getExtendedIconData(n["".concat(t).concat(e)]).fontWeight,n["".concat(t).concat(e)]=pe.convertIconUnicodeToCssValue(n["".concat(t).concat(e)]),void 0!==n["".concat(t,"_last_edited")]&&(n["".concat(t,"_font_family_last_edited")]=n["".concat(t,"_last_edited")],n["".concat(t,"_font_weight_last_edited")]=n["".concat(t,"_last_edited")]),"__hover"===e&&void 0!==n["".concat(t,"__hover_enabled")]&&(n["".concat(t,"_font_family__hover_enabled")]=n["".concat(t,"__hover_enabled")],n["".concat(t,"_font_weight__hover_enabled")]=n["".concat(t,"__hover_enabled")]),"__sticky"===e&&void 0!==n["".concat(t,"__sticky_enabled")]&&(n["".concat(t,"_font_family__sticky_enabled")]=n["".concat(t,"__sticky_enabled")],n["".concat(t,"_font_weight__sticky_enabled")]=n["".concat(t,"__sticky_enabled")]))})),{attrs:n,font_family_attr_name:"".concat(t,"_font_family"),font_weight_attr_name:"".concat(t,"_font_weight")}},getExtendedIconData:function(e){if(pe.maybeExtendedFontIconRaw(e)){var t=e.split("||");return{unicode:t[0],type:t[1],fontWeight:void 0!==t[2]?t[2]:400}}return!1},maybeExtendedFontIconRaw:function(e){return!(0,v.default)(e)&&"string"==typeof e&&0<e.indexOf("||")&&(0<e.indexOf("fa")||0<e.indexOf("divi"))},processIconFontData:function(e){if(!(0,v.default)(e)&&"string"==typeof e&&0<e.indexOf("||")&&(0<e.indexOf("fa")||0<e.indexOf("divi"))){var t=e.split("||");return{iconFontFamily:"divi"!==t[1]?"FontAwesome":"ETmodules",iconFontWeight:void 0!==t[2]?t[2]:400}}},processFontIcon:function(t,r){if((0,P.default)(t))return null;if((0,v.default)(t))return"";if((0,v.default)(r)&&0<t.indexOf("||")&&(0<t.indexOf("fa")||0<t.indexOf("divi"))){var n=t.split("||")[0];return e.parseHTML((0,W.default)(n))[0].nodeValue}var o=parseInt(t.replace(/[^0-9]/g,"")),a=r?ETBuilderBackend.fontIconsDown:ETBuilderBackend.fontIcons;return null===t.trim().match(/^%%/)||(0,P.default)(a[o])||(t=a[o]),t?e.parseHTML((0,W.default)(t))[0].nodeValue:null},generateResponsiveCss:function(e,t,r,n){if((0,v.default)(e))return"";var o=[];return(0,c.default)(e,(function(e,a){if(""!==e&&void 0!==e){var i={selector:t,declaration:"",device:a},u=void 0!==n&&""!==n?n:";";Array.isArray(e)&&!(0,v.default)(e)?(0,c.default)(e,(function(e,t){""!==e&&(i.declaration+="".concat(t,":").concat(e).concat(u))})):i.declaration="".concat(r,":").concat(e).concat(u),o.push(i)}})),o},generatePlaceholderCss:V.generatePlaceholderCss,replaceCodeContentEntities:V.replaceCodeContentEntities,removeFancyQuotes:V.removeFancyQuotes,processRangeValue:function(e,t){if((0,P.default)(e))return"";var r="string"==typeof e?e.trim():e,n=parseFloat(r),o=r.toString().replace(n,"");return""===o&&(o="line_height"===(void 0!==t?t:"")&&3>=n?"em":"px"),isNaN(n)?"":n.toString()+o},getCorners:V.getCorners,getCorner:V.getCorner,gradientFieldsMapping:function(e){var t={repeat:"color_gradient_repeat",type:"color_gradient_type",direction:"color_gradient_direction",radialDirection:"color_gradient_direction_radial",stops:"color_gradient_stops",unit:"color_gradient_unit",overlaysImage:"color_gradient_overlays_image",colorStart:"color_gradient_start",startPosition:"color_gradient_start_position",colorEnd:"color_gradient_end",endPosition:"color_gradient_end_position"};return e?(0,d.default)(t,e):t},gradientDefault:function(){return{type:ETBuilderBackend.defaults.backgroundOptions.type,direction:ETBuilderBackend.defaults.backgroundOptions.direction,radialDirection:ETBuilderBackend.defaults.backgroundOptions.radialDirection,stops:ETBuilderBackend.defaults.backgroundOptions.stops,overlaysImage:ETBuilderBackend.defaults.backgroundOptions.overlaysImage,colorStart:ETBuilderBackend.defaults.backgroundOptions.colorStart,startPosition:ETBuilderBackend.defaults.backgroundOptions.startPosition,colorEnd:ETBuilderBackend.defaults.backgroundOptions.colorEnd,endPosition:ETBuilderBackend.defaults.backgroundOptions.endPosition}},getSpacing:V.getSpacing,closestElement:V.closestElement,getBreakpoints:function(){return["desktop","tablet","phone"]},getPrevBreakpoint:function(e){return pe.getBreakpoints()[(0,h.default)(pe.getBreakpoints(),e)-1]},getNextBreakpoint:function(e){return pe.getBreakpoints()[(0,h.default)(pe.getBreakpoints(),e)+1]},getPreviewModes:function(){return["wireframe","zoom","desktop","tablet","phone"]},getGradient:function(e,t){var r,n,a=(e=(0,o.default)(pe.gradientDefault(),(0,R.default)(e,V.hasValue))).stops.replace(/\|/g,", ");switch(e.type){case"conic":r="conic",n="from ".concat(e.direction," at ").concat(e.radialDirection);break;case"elliptical":r="radial",n="ellipse at ".concat(e.radialDirection);break;case"radial":case"circular":r="radial",n="circle at ".concat(e.radialDirection);break;default:r="linear",n=e.direction}return r=Oe(e.repeat)?"repeating-".concat(r):r,-1!==e.stops.indexOf("gcid-")&&(0,c.default)(t,(function(e){-1!==a.indexOf(e[0])&&(a=a.replaceAll(e[0],e[1].color))})),"".concat(r,"-gradient( ").concat(n,", ").concat(a," )")},removeClassNameByPrefix:function(t,r){var n=e(void 0===r?"body":r),o=n.attr("class"),a=new RegExp("".concat(t,"[^\\s]+"),"g");if(!(0,P.default)(o)){var i=o.replace(a,"");n.attr("class",i.trim())}},getKeyboardList:function(e){var t;switch(e){case"sectionLayout":t=["49","50","51"];break;case"rowLayout":t=["49","50","51","52","53","54","55","56","57","48","189"];break;case"arrowDirections":t=["38","39","40","37"];break;default:t=!1}return t},getRowLayouts:function(e,t){var r="et_pb_row"===e?ETBuilderBackend.columnLayouts.regular:[];if("et_pb_row_inner"===e&&!(0,P.default)(t)){var n=ETBuilderBackend.columnLayouts.specialty[t];r=(0,S.default)((0,x.default)(n.columns),(function(e){var t=e+1;return 1===t?"4_4":(0,S.default)((0,x.default)(t),(function(){return"1_".concat(t)})).join(",")}))}return r},maybeLoadFont:function(t,r){var n=pe.$topWindow("head").add(e("head")),o=ETBuilderBackend.et_builder_fonts_data,a=ETBuilderBackend.customFonts,i=ETBuilderBackend.removedFonts,u=ETBuilderBackend.useGoogleFonts,l=(0,j.default)(ETBuilderBackend.websafeFonts),s=void 0!==o[t]&&void 0!==o[t].styles?":".concat(o[t].styles):"",f=void 0!==o[t]&&void 0!==o[t].character_set?"&".concat(o[t].character_set):"",p=(0,d.default)(i,"".concat(t,".parent_font"),!1)?i[t].parent_font:t,y=pe.fontnameToClass(t);if((0,P.default)(a[t])){if(n.find("link#".concat(y)).length||!u||(0,m.default)(l,t))return;t=p.replace(/ /g,"+"),n.append('<link id="'.concat(y,'" href="//fonts.googleapis.com/css?family=').concat(t).concat(s).concat(f,'" rel="stylesheet" type="text/css" />'))}else{if(n.find("style#".concat(y)).length)return;var h=(0,d.default)(a[t],"font_url",""),b=(0,E.default)(h)?"src: url('".concat(h,"');"):"";if(""===b&&!(0,E.default)(h)){var v={eot:{url:(0,d.default)(h,"eot",!1),format:"embedded-opentype"},woff2:{url:(0,d.default)(h,"woff2",!1),format:"woff2"},woff:{url:(0,d.default)(h,"woff",!1),format:"woff"},ttf:{url:(0,d.default)(h,"ttf",!1),format:"truetype"},otf:{url:(0,d.default)(h,"otf",!1),format:"opentype"}};v.eot.url&&(b="src: url('".concat(v.eot.url,"'); src: url('").concat(v.eot.url,"?#iefix') format('embedded-opentype')")),(0,c.default)(v,(function(e,t){"eot"!==t&&e.url&&(b+=""===b?"src: ":", ",b+="url('".concat(e.url,"') format('").concat(e.format,"')"))}))}n.append('<style id="'.concat(y,'">@font-face{font-family:"').concat(t,'"; ').concat(b,";}</style>"))}},fontnameToClass:function(e){return"et_gf_".concat(e.replace(/ /g,"_").toLowerCase())},callWindow:function(e){if((0,p.default)(window,e)){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];(0,d.default)(window,e).apply(void 0,r)}},$appDocument:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pe.appDocument();return ce.jQuery(e)},$appWindow:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pe.appWindow();return ce.jQuery(e)},$topDocument:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pe.topDocument();return pe.topWindow().jQuery(e)},$topWindow:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pe.topWindow();return pe.topWindow().jQuery(e)},$TBViewport:function(){return pe.$topWindow(".et-common-visual-builder").first()},$TBScrollTarget:function(){return pe.$TBViewport().find("#et-fb-app")},topViewportWidth:function(){return pe.isTB()?pe.$TBViewport().width():pe.topWindow().innerWidth},topViewportHeight:function(){return pe.isTB()?pe.$TBViewport().height():pe.$topWindow().height()},viewportScrollTop:function(){var e=pe.appWindow().ET_Builder.API.State.View_Mode;return pe.isTB()?pe.$TBScrollTarget().scrollTop():pe.isBFB()||e.isPhone()||e.isTablet()||e.isZoom()?pe.$topWindow().scrollTop():pe.$appWindow().scrollTop()},getTopWindowWidth:function(){return pe.isBFB()?pe.$topWindow("#et_pb_layout").width():pe.$topWindow().width()},getAppWindowWidth:function(){return pe.$appWindow().width()},getBuilderAvailableWidth:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(pe.isBFB())return pe.topDocument().getElementById("et_pb_layout").clientWidth;var o=t&&e,a=(0,d.default)(pe.appWindow(),"ET_Builder.API.State.View_Mode",{}),i=pe.maybeGetScrollbarWidth(a.current),u=pe.getTopWindowWidth();return i&&pe.isTB()&&(u-=i),o&&(0,m.default)(["left","right"],r)&&(u-=n),u},appDocument:function(){return se},appWindow:function(){return ce},topDocument:function(){return pe.topWindow().document},topWindow:function(){return F.top_window},hasFixedHeader:function(){return(0,m.default)(["fixed","absolute"],e("header").css("position"))},isElementInViewport:function(t){if(t.length>0&&(t=t[0]),!(0,v.default)(t)){var r=t.ownerDocument?t.ownerDocument.defaultView:t.defaultView,n=r.jQuery&&r.jQuery(r),o=r.frameElement?r.frameElement.getBoundingClientRect():{};if(n){var a=t.getBoundingClientRect(),i=a.top;a.height;o.top&&(i-=Math.abs(o.top));var u=n.height(),l=0;return pe.hasFixedHeader()&&(l=e("header").height()),i<=u&&i>=l}}},getCommentsMarkup:function(e,t){(0,P.default)(e);var r=ETBuilderBackend.commentsModuleMarkup;if("h1"!==e&&(r=(r=r.replace("<h1","<".concat(e))).replace("</h1>","</".concat(e,">"))),"h3"!==t){var o=new RegExp('<h3 id="reply-title" class="comment-reply-title">(.*?)</h3>',"g");r=(0,n.default)(r,o,(function(e){return e=(e=e.replace("<h3","<".concat(t))).replace("</h3>","</".concat(t,">"))}))}return r},decodeHtmlEntities:function(e){return(e=(0,E.default)(e)?e:"").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)}))},isLimitedMode:function(){return pe.condition("is_limited_mode")},isBFB:function(){return pe.condition("is_bfb")},isTB:function(){return pe.condition("is_tb")},isLB:function(){return pe.condition("is_layout_block")},isFB:function(){return!pe.isBFB()&&!pe.isTB()&&!pe.isLB()},getWindowScrollLocation:function(e){return!pe.condition("is_bfb")&&(0,m.default)(["wireframe","desktop"],e)?"app":"top"},hasBodyMargin:function(){return e("#et_pb_root").hasClass("et-fb-has-body-margin")},fixSliderHeight:function(e){setTimeout((function(){return et_fix_slider_height(e)}),600)},fixBuilderContent:function(t){setTimeout((function(){t.find(".et-waypoint, .et_pb_circle_counter, .et_pb_number_counter").each((function(){var t=e(this);t.hasClass("et_pb_circle_counter")&&(pe.appWindow().et_pb_reinit_circle_counters(t),(0,P.default)(t.data("easyPieChart"))||t.data("easyPieChart").update(t.data("number-value"))),t.hasClass("et_pb_number_counter")&&(pe.appWindow().et_pb_reinit_number_counters(t),(0,P.default)(t.data("easyPieChart"))||t.data("easyPieChart").update(t.data("number-value"))),t.find(".et_pb_counter_amount").length>0&&t.find(".et_pb_counter_amount").each((function(){pe.appWindow().et_bar_counters_init(e(this))})),t.css({opacity:"1"})})),t.find(".et_parallax_bg").length&&t.find(".et_parallax_bg").each((function(){window.et_pb_parallax_init(e(this))})),pe.appWindow().et_reinit_waypoint_modules(),(0,P.default)(window.et_shortcodes_init)||pe.appWindow().et_shortcodes_init(t),pe.$appWindow().trigger("resize")}),0)},triggerResizeForUIUpdate:function(){var t=this;clearTimeout(window.ETBuilderFauxResize),window.ETBuilderFauxResize=setTimeout((function(){var r=t;e(window).trigger("resize"),pe.callWindow("et_fix_page_container_position"),r.condition("is_bfb")&&setTimeout((function(){e(document.activeElement).is("iframe")&&e(document.activeElement).trigger("blur")}),200)}),200)},getHeadingLevel:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"h2",r=e.parentAttrs,n=e.attrs;return pe.hasValue(n.header_level)?n.header_level:pe.hasValue(r)&&pe.hasValue(r.header_level)?r.header_level:t},generateRowStructureClass:function(e){if((0,P.default)(e.content)||""===e.content||(0,v.default)(e.content))return"";var t="";switch((0,c.default)(e.content,(function(e){var r=(0,d.default)(e,"attrs.type");r&&(0,E.default)(r)&&(t+="_".concat(r.replace("_","-").trim()))})),t){case"_4-4":case"_1-2_1-2":case"_1-3_1-3_1-3":case"_2-5_3-5":case"_3-5_2-5":case"_1-3_2-3":case"_2-3_1-3":case"_1-5_3-5_1-5":case"_3-8_3-8":case"_1-3_1-3":t="";break;case"_1-4_1-4_1-4_1-4":t="et_pb_row_4col";break;case"_1-5_1-5_1-5_1-5_1-5":t="et_pb_row_5col";break;case"_1-6_1-6_1-6_1-6_1-6_1-6":t="et_pb_row_6col";break;default:t="et_pb_row".concat(t)}return t},shouldComponentUpdate:function(e,t,r){var n=t,o=e.props;e.props.wireframeMode&&(n=pe._cleanPropsForWireframeComparison(t),o=pe._cleanPropsForWireframeComparison(e.props));var a=e&&e.state&&(0,T.default)(e.state)?e.state:{},i=r&&(0,T.default)(r)?r:{},u=o||{},l=u.isInViewport,c=u.computedState,s=n||{},f=s.isInViewport,d=s.computedState,p=a.isInViewportUpdater,y=i.isInViewportUpdater;return!(!1===l&&l===f&&c===d&&p===y)&&(!(0,g.default)(n,o)||!(0,g.default)(r,e.state))},shouldComponentUpdateDelayed:function(e,t){var r=((0,T.default)(e)?e:{}).props,n=(0,T.default)(r)?r:{},o=(0,T.default)(t)?t:{},a=n.isInViewport,i=n.previewMode,u=n._v,l=o.isInViewport,c=o.previewMode,s=o._v;return!1===a&&!1===l&&(i!==c||u!==s)},shouldComponentUpdateOnScroll:function(e,t){var r=e.props,n=r.isInViewport,o=r.eventMode,a=t.isInViewport,i=t.eventMode;return!1===n&&!1===a&&o!==i&&("grid"===o||"grid"===i)},shouldComponentUpdateInViewport:function(e,t,r){var n=(0,T.default)(e)?e:{},o=n.props,a=n.state,i=(0,T.default)(o)?o:{},u=(0,T.default)(t)?t:{},c=(0,T.default)(a)?a:{},s=(0,T.default)(r)?r:{};if(c.isInViewportUpdater!==s.isInViewportUpdater)return!0;var f=i.isInViewport,d=i.shortcode_index,p=u.isInViewport,y=u.shortcode_index;if(!1!==f||!1!==p)return!0;if(d!==y)return!0;if((0,b.default)(i.content)&&(0,b.default)(u.content)){var m=pe.getPropsFlat(i),h=pe.getPropsFlat(u);return(0,B.default)(m,(function(e){var t=e._key,r=e.shortcode_index,n=(0,l.default)(h,(function(e){return e._key===t}));return!n||n.shortcode_index!==r}))}return!1},whyComponentDidUpdate:function(e,t,r,n){if(e){var o=e.props,a=e.state,i=X({},o),u=X({},a),l={},s={};(0,c.default)(i,(function(e,r){if((0,T.default)(e))(0,c.default)(e,(function(e,o){var a=(0,d.default)(t,"".concat(r,".").concat(o));(0,g.default)(e,a)||(l["".concat(r,":").concat(o)]={currentProps:e,previousProps:a,componentId:n})}));else{var o=(0,d.default)(t,r);(0,g.default)(e,o)||(l[r]={currentProps:e,previousProps:o,componentId:n})}})),(0,v.default)(l)||console.table(l),(0,c.default)(u,(function(e,t){if((0,T.default)(e))(0,c.default)(e,(function(e,o){var a=(0,d.default)(r,"".concat(t,".").concat(o));(0,g.default)(e,a)||(s["".concat(t,".").concat(o)]={currentState:e,previousState:a,componentId:n})}));else{var o=(0,d.default)(r,t);(0,g.default)(e,o)||(s[t]={currentState:e,previousState:o,componentId:n})}})),(0,v.default)(s)||console.table(s)}},findObjectByKeyDeep:function(e,t){var r;return(0,c.default)(e,(function(e,n){return n===t?(r=e,!0):(0,T.default)(e)?(r=pe.findObjectByKeyDeep(e,t),!(0,_.default)(r)):void 0})),r},getPropsFlat:function(e,t){return(0,_.default)(t)&&(t=[]),e&&(0,b.default)(e.content)&&(0,c.default)(e.content,(function(e){pe.getPropsFlat(e,t)})),e&&e._key&&t.push(e),t},_cleanPropsForWireframeComparison:function(e){if((0,P.default)(e))return e;var t=(0,A.default)(e,["attrs","children","content"]);return e.attrs&&(t.attrs=(0,k.default)(e.attrs,["locked","global_module","admin_label","collapsed","ab_subject_id","ab_goal","disabled","disabled_on","column_structure","type","_deleted"])),e.content&&(0,b.default)(e.content)&&!(0,v.default)(e.content)?(t.content=[],(0,c.default)(e.content,(function(e){t.content.push(pe._cleanPropsForWireframeComparison(e))}))):(0,b.default)(e.content)||(t.content=""),t},getAdminBarHeight:function(){if(pe.isTB())return 32;var e=pe.$topWindow("#wpadminbar");return e.length>0?parseInt(e.innerHeight()):0},getScrollbarWidth:q.getScrollbarWidth,maybeGetScrollbarWidth:function(e){if(pe.isBFB())return 0;var t=pe.$topWindow("html"),r=pe.$appWindow("html"),n=pe.isTB()?pe.getAdminBarHeight():0,o=pe.$topDocument("#et-fb-app-frame").outerHeight(!0),a=t.outerHeight();return(0,m.default)(["desktop","wireframe"],e)&&(o=r.innerHeight()+n,a=pe.$topWindow().innerHeight()),(0,m.default)(["zoom"],e)&&(o=Math.ceil(r.innerHeight()/2)+n,a=pe.$topWindow().innerHeight()),o>a?pe.getScrollbarWidth():0},getScrollTargets:function(){var e=(0,d.default)(pe.appWindow(),"ET_Builder.API.State.View_Mode",{}),t=pe.$appWindow("html");return pe.isTB()?t=pe.$TBScrollTarget():pe.isBlockEditor()||!pe.isBFB()&&(e.isDesktop()||e.isWireframe())||(t=pe.$topWindow("html")),t},getScrollEventTarget:function(){var e=pe.appWindow().ET_Builder.API.State.View_Mode,t=pe.appWindow();return pe.isTB()?t=pe.$TBScrollTarget().get(0):(pe.isBFB()||!e.isDesktop()&&!e.isWireframe())&&(t=pe.topWindow()),t},enableScrollLock:function(){var e=pe.$topWindow(".et-fb-page-settings-bar"),t=pe.$topWindow("#wpadminbar"),r=pe.$topWindow(".et_fixed_nav:not(.et_vertical_nav) #top-header"),n=pe.$topWindow(".et_fixed_nav:not(.et_vertical_nav) #main-header"),o=((0,d.default)(pe.appWindow(),"ET_Builder.API.State.View_Mode",{}),e.hasClass("et-fb-page-settings-bar--corner")),a=(e.hasClass("et-fb-page-settings-bar--right-corner"),e.hasClass("et-fb-page-settings-bar--left-corner")),i=(e.hasClass("et-fb-page-settings-bar--right"),e.hasClass("et-fb-page-settings-bar--vertical"));pe.getScrollTargets().css({overflowY:"hidden",paddingRight:"".concat(pe.getScrollbarWidth(),"px")}),pe.isBFB()||(o||i||e.css("width","calc(100% - ".concat(re,"px)")),a&&e.find(".et-fb-page-settings-bar__column--right").css("right","".concat(re,"px"))),t.css("width","calc(100% - ".concat(re,"px)")),r.css("width","calc(100% - ".concat(re,"px)")),n.css("width","calc(100% - ".concat(re,"px)"))},disableScrollLock:function(){var e=pe.$topWindow(".et-fb-page-settings-bar"),t=pe.$topWindow("#wpadminbar"),r=pe.$topWindow(".et_fixed_nav:not(.et_vertical_nav) #top-header"),n=pe.$topWindow(".et_fixed_nav:not(.et_vertical_nav) #main-header"),o=((0,d.default)(pe.appWindow(),"ET_Builder.API.State.View_Mode",{}),e.hasClass("et-fb-page-settings-bar--corner")),a=(e.hasClass("et-fb-page-settings-bar--right-corner"),e.hasClass("et-fb-page-settings-bar--left-corner")),i=(e.hasClass("et-fb-page-settings-bar--right"),e.hasClass("et-fb-page-settings-bar--vertical"));pe.getScrollTargets().css({overflowY:"auto",paddingRight:"0px"}),pe.isBFB()||pe.isTB()||(o||i||e.css("width",""),a&&e.find(".et-fb-page-settings-bar__column--right").css("right","0px")),pe.condition("is_bfb")&&t.css("width","100%"),r.css("width",""),n.css("width","")},cookies:le,getEventsTarget:function(e){return pe.isBFB()||e?pe.topWindow():pe.appWindow()},linkRel:function(e){var t=[];if(e){var r=["bookmark","external","nofollow","noreferrer","noopener"];e.split("|").forEach((function(e,n){e&&"off"!==e&&t.push(r[n])}))}return t.length?t.join(" "):null},setElementFont:function(e,t,r){var n="";if(""===e||(0,P.default)(e))return"";function o(e,t,r,n,o,a){var i="",u=a?" !important":"";return r&&!t?i="".concat(e,":").concat(o).concat(u,";"):!r&&t&&(i="".concat(e,":").concat(n).concat(u,";")),i}var a=e?e.split("|"):[],i=(void 0===r?"||||||||":r).split("|");if(!(0,v.default)(a)){var u=a[0],l=""!==a[1]?a[1]:"",c="on"===a[2],s="on"===a[3],f="on"===a[4],y="on"===a[5],m="on"===a[6],h=(0,P.default)(a[7])?"":a[7],b=(0,P.default)(a[8])?"":a[8],g=""!==i[1]?i[1]:"",O="on"===i[2],_="on"===i[3],w="on"===i[4],T="on"===i[5],E="on"===i[6];l="on"===l?"700":l,g="on"===g?"700":g,""!==u&&"Default"!==u&&(pe.maybeLoadFont(u),n+=function(e,t){var r,n,o,a,i=(0,p.default)(ETBuilderBackend.customFonts,e,!1)?ETBuilderBackend.customFonts:ETBuilderBackend.et_builder_fonts_data,u=t?" !important":"",l=ETBuilderBackend.removedFonts;return a=(0,P.default)(i[e])||(0,P.default)(i[e].add_ms_version)?"":"'".concat(e," MS', "),(0,d.default)(l,e,!1)&&(n=l[e].styles,e=l[e].parent_font),""!==n&&(o=" font-weight:".concat(n,";")),r=(0,P.default)(i[e])?"serif":function(e){var t=e||"sans-serif",r=t;switch(t){case"sans-serif":r="Helvetica, Arial, Lucida, sans-serif";break;case"serif":r='Georgia, "Times New Roman", serif';break;case"cursive":r="cursive"}return r}(i[e].type),"".concat("font-family:'").concat(e,"',").concat(a).concat(r).concat(u,";").concat(o)}(u,t)),n+=o("font-weight",""!==g,""!==l,"normal",l,t),n+=o("font-style",O,c,"normal","italic",t),n+=o("text-transform",_,s,"none","uppercase",t),n+=o("text-decoration",w,f,"none","underline",t),n+=o("font-variant",T,y,"none","small-caps",t),n+=o("text-decoration",E,m,"none","line-through",t),n+=o("text-decoration-style",!1,""!==b,"solid",b,t),n+=o("-webkit-text-decoration-color",!1,""!==h,"",h,t),n=(n+=o("text-decoration-color",!1,""!==h,"",h,t)).trim()}return n},setResetFontStyle:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!(0,E.default)(e)||!(0,E.default)(t))return"";var n=e.split("|"),o=t.split("|");if((0,v.default)(n)||(0,v.default)(o))return"";var a=!(0,P.default)(n[2])&&"on"===n[2],i=!(0,P.default)(n[3])&&"on"===n[3],u=!(0,P.default)(n[4])&&"on"===n[4],l=!(0,P.default)(n[5])&&"on"===n[5],c=!(0,P.default)(n[6])&&"on"===n[6],s=!(0,P.default)(o[2])&&"on"===o[2],f=!(0,P.default)(o[3])&&"on"===o[3],d=!(0,P.default)(o[4])&&"on"===o[4],p=!(0,P.default)(o[5])&&"on"===o[5],y=!(0,P.default)(o[6])&&"on"===o[6],m="",h=r?" !important":"";if(!a&&s&&(m+="font-style: normal".concat(h,";")),!i&&f&&(m+="text-transform: none".concat(h,";")),!l&&p&&(m+="font-variant: none".concat(h,";")),!u&&d){var b=c||y?"line-through":"none";m+="text-decoration: ".concat(b).concat(h,";")}if(!c&&y){var g=u||d?"underline":"none";m+="text-decoration: ".concat(g).concat(h,";")}return m},decodeOptionListValue:function(e){var t=["[","]"],r=["[","]"];return e?JSON.parse((0,n.default)((0,n.default)(e,t[0],r[0]),t[1],r[1])):e},moduleHasBackground:function(e,t){var r,n,o,a,i,u,l=(0,P.default)(t)?["color","gradient","image","video","pattern","mask"]:t,s=!1;return(0,c.default)(l,(function(t){switch(t){case"color":s=pe.hasValue(e.background_color);break;case"gradient":s=pe.isOn(e.use_background_color_gradient);break;case"image":s=pe.hasValue(e.background_image);break;case"video":r=pe.hasValue(e.background_video_mp4),n=pe.hasValue(e.background_video_webm),s=r||n;break;case"pattern":o=pe.hasValue(e.background_pattern_style),i=pe.isOn(e.background_enable_pattern_style),s=o&&i;break;case"mask":a=pe.hasValue(e.background_mask_style),u=pe.isOn(e.background_enable_mask_style),s=a&&u}return!s})),s},fitVids:function(e){e.length&&e.fitVids({customSelector:"iframe[src^='http://www.hulu.com'], iframe[src^='http://www.dailymotion.com'], iframe[src^='http://www.funnyordie.com'], iframe[src^='https://embed-ssl.ted.com'], iframe[src^='http://embed.revision3.com'], iframe[src^='https://flickr.com'], iframe[src^='http://blip.tv'], iframe[src^='http://www.collegehumor.com']"})},toTextOrientation:ie,getTextOrientation:(0,u.default)(ie,(function(e){return pe.condition("is_rtl")&&"left"===e?"right":e})),isBuilderFocused:function(){return pe.$appDocument(ETBuilderBackend.css.containerPrefix).is(":hover")||pe.$topDocument(ETBuilderBackend.css.containerPrefix).is(":hover")},getFixedHeaderHeight:function(){var e=pe.$appWindow("body");return e.hasClass("et_divi_theme")&&pe.$topWindow().width()>=980&&!e.hasClass("et_vertical_nav")&&(parseInt(pe.$appWindow("#top-header.et-fixed-header").height()),parseInt(pe.$appWindow("#main-header.et-fixed-header").height())),e.hasClass("et_extra")&&parseInt(pe.$appWindow(".et-fixed-header #main-header").height()),0},parseInlineCssIntoObject:function(e){return(0,f.default)((0,S.default)(e.split("; "),(function(e){return e.split(": ")})))},getProcessedTabSlug:function(e){return"advanced"===e?"design":e},getModuleAddressSequence:function(e){var t=[];if((0,b.default)(e)?t=e:(0,E.default)(e)&&(t=e.split(".")),t.length<1)return[];if((0,B.default)(t,(function(e){return isNaN(parseFloat(e))})))return[];var r=(0,j.default)(t),n=[];return(0,c.default)(r,(function(e){var r=parseInt(e,10)+1,o=(0,U.default)(t,r).join(".");n.push(o)})),n},getFontFieldIndexes:function(e){return(0,d.default)({font:[0],weight:[1],style:[2,3,4,5,6],line_style:[7],line_color:[8]},e,[])},flattenFields:function(e){return(0,L.default)(e,(function(e,t,r){if("composite"===t.type){var n=(0,d.default)(t,"composite_structure",{}),a=(0,S.default)(n,"controls").reduce((function(e,r){var n=(0,I.default)(r,(function(e,r){var n=(0,d.default)(e,"name",r),a=(0,d.default)(e,"tab_slug",(0,d.default)(t,"tab_slug","")),i=(0,d.default)(e,"toggle_slug",(0,d.default)(t,"toggle_slug",""));return(0,o.default)({},e,{name:n,tab_slug:pe.getProcessedTabSlug(a),toggle_slug:i})}));return X(X({},e),n)}),{});return X(X({},e),a)}return X(X({},e),{},te({},r,t))}),{})},hasLocalStorage:function(){if(!(0,w.default)(de))return de;try{de=!!ET_Builder.Frames.top.localStorage}catch(e){}return de},showCoreModal:function(e){if(ETBuilderBackend[e]){var t=ETBuilderBackend[e].header,r=ETBuilderBackend[e].text,n=ETBuilderBackend[e].buttons,o=ETBuilderBackend.coreModalTemplate,a=ETBuilderBackend.coreModalButtonsTemplate,i=ETBuilderBackend[e].classes,u=n?(0,L.default)(n,(function(e,t){return e+t}),""):"";u=pe.sprintf(a,u);var l=(0,j.default)(n).length>1?"et-core-modal-two-buttons":"",c=pe.sprintf(o,t,r,u);pe.$topWindow(".et-core-modal-overlay").remove(),pe.$topWindow(c).appendTo(pe.$topWindow("body")).addClass(l).addClass(i),pe.$appWindow().trigger("et-core-modal-active")}},hideCoreModal:function(e){pe.$topWindow(".".concat(e)).addClass("et-core-closing").delay(600).queue((function(){pe.$topWindow(this).removeClass("et-core-active et-core-closing").dequeue().remove()}))},stripHTMLTags:function(e){return e.replace(/(<([^>]+)>)/gi,"")},getIntegerValue:function(e){switch(K(e)){case"string":return Math.trunc(e.replace(/[^\-\.\d]/g,"").replace(/(?!^)-/g,"").replace(/\..*/g,""));case"number":return Math.trunc(e);default:return 0}},getFormattedPx:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=pe.getIntegerValue(e);return 0!==r?"".concat(r,"px"):t?"":"0px"},scrollToAddress:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"desktop",n=pe.$appWindow('[data-address="'.concat(e,'"]'));if(n&&n.length){var o=pe.isTB()||pe.isBFB()||(0,m.default)(["zoom","tablet","phone"],r),a=o?pe.$topWindow("html"):pe.$appWindow("html");pe.isTB()&&(a=pe.$TBScrollTarget());var i=n.offset().top;"zoom"===r&&(i=Math.ceil(.5*i));var u=pe.viewportScrollTop(),l=pe.isBFB()?pe.$topWindow("#et-bfb-app-frame").offset().top-pe.getAdminBarHeight():0,c=pe.isTB()||pe.isBFB()?0:pe.$appWindow("#et-boc").offset().top,s=i+l-c,f=Math.abs(s-u),d=400,p=800,y=6e3,h=Math.ceil(f/1e3)*d;h<p&&(h=p),h>y&&(h=y),a.stop(),0<f?a.animate({scrollTop:s},h,(function(){(0,O.default)(t)&&t()})):(0,O.default)(t)&&t()}},viewModeDraggableHandleWidth:30,appendPrependCommaSeparatedSelectors:function(e,t,r){var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=[],a=e.split(","),i=(0,S.default)(a,N.default),u="prefix"===r;return(0,c.default)(i,(function(e){u&&n?o.push("".concat(t," ").concat(e)):u&&!n?o.push("".concat(t).concat(e)):!u&&n?o.push("".concat(e," ").concat(t)):u||n||o.push("".concat(e).concat(t))})),(0,L.default)(o,(function(e,t){return"".concat(e,", ").concat(t)}))}};pe.maybeLoadFont=(0,M.default)(pe.maybeLoadFont.bind(pe)),window.ET_FB=window.ET_FB||{},window.ET_FB.utils={log:pe.log,defaultAllLogAreas:["general","store_action_obj","store_emit","warning"],debug:function(){if(!(0,P.default)(ne.debug))return ne.debug;try{return ne.debug="true"===localStorage.getItem("et_fb_debug"),ne.debug}catch(e){return!1}},debugOn:function(){try{return localStorage.setItem("et_fb_debug","true"),ne.debug=!0,"Debug mode is activated"}catch(e){return"Debug mode was not activated due to lack of support or other error"}},debugOff:function(){return localStorage.setItem("et_fb_debug","false"),ne.debug=!1,"Debug mode is deactivated"},debugSetLogAreas:function(e){return localStorage.setItem("et_fb_debug_log_areas",e),"Separate by space to set multiple areas. You are now logging these areas: ".concat(pe.debugLogAreas().join(", "))},debugAddLogArea:function(e){var t=localStorage.getItem("et_fb_debug_log_areas");return localStorage.setItem("et_fb_debug_log_areas","".concat(t," ").concat(e)),"Separate by space to set multiple areas. You are now logging these areas: ".concat(pe.debugLogAreas().join(", "))},debugSetAllLogAreas:function(){return localStorage.setItem("et_fb_debug_log_areas",pe.defaultAllLogAreas.join(" ")),"You are now logging these areas: ".concat(pe.defaultAllLogAreas.join(", "))},debugLogAreas:function(){var e=localStorage.getItem("et_fb_debug_log_areas");return!(0,P.default)(ne.enableAllLogAreas)&&ne.enableAllLogAreas?pe.defaultAllLogAreas:(0,P.default)(ne.enabledLogAreas)?null===e?pe.defaultAllLogAreas:e.split(" "):ne.enabledLogAreas}};var ye=pe.applyMixinsSafely,me=pe.intentionallyCloneDeep,he=pe.intentionallyClone,be=pe.sanitized_previously,ve=pe.log,ge=pe.is,Oe=pe.isOn,_e=pe.isOff,we=pe.isOnOff,Te=pe.isYes,Ee=pe.isNo,Pe=pe.isDefault,je=pe.isMobileDevice,Se=pe.isIEOrEdge,Ie=pe.isIE,Me=pe.isBlockEditor,Ce=pe.condition,Ae=pe.hasLocalStorage,De=pe.hasNumericValue,ke=pe.hasValue,Re=pe.getResponsiveStatus,xe=pe.parseShortcode,Le=pe.processFontIcon,Be=pe.processIconFontData,Ne=pe.generateResponsiveCss,Ue=pe.generatePlaceholderCss,We=pe.replaceCodeContentEntities,Fe=pe.removeFancyQuotes,ze=pe.processRangeValue,He=pe.getCorners,Ye=pe.getCorner,Ve=pe.getSpacing,qe=pe.closestElement,Ge=pe.getBreakpoints,$e=pe.getViewModeByWidth,Ke=pe.getPreviewModes,Ze=pe.getGradient,Xe=pe.removeClassNameByPrefix,Je=pe.getKeyboardList,Qe=pe.getRowLayouts,et=pe.maybeLoadFont,tt=pe.fontnameToClass,rt=pe.getCommentsMarkup,nt=pe.callWindow,ot=pe.decodeHtmlEntities,at=pe.hasBodyMargin,it=pe.fixSliderHeight,ut=pe.fixBuilderContent,lt=pe.triggerResizeForUIUpdate,ct=pe.enableScrollLock,st=pe.disableScrollLock,ft=pe.linkRel,dt=pe.setElementFont,pt=pe.decodeOptionListValue,yt=pe.sprintf,mt=pe.isJson,ht=pe.isValidHtml,bt=pe.getNextBreakpoint,vt=pe.getPrevBreakpoint,gt=pe.appDocument,Ot=pe.$appDocument,_t=pe.appWindow,wt=pe.$appWindow,Tt=pe.topDocument,Et=pe.$topDocument,Pt=pe.topWindow,jt=pe.$topWindow,St=pe.getFixedHeaderHeight,It=pe.parseInlineCssIntoObject,Mt=pe.getOS,Ct=pe.isBFB,At=pe.isTB,Dt=pe.isLimitedMode,kt=pe.isModuleLocked,Rt=pe.isModuleDeleted,xt=pe.getComponentType,Lt=pe.getModuleSectionType,Bt=pe.getModuleAncestor,Nt=pe.getScrollbarWidth,Ut=pe.getProcessedTabSlug,Wt=pe.getModuleAddressSequence,Ft=pe.getFontFieldIndexes,zt=pe.isRealMobileDevice,Ht=pe.stripHTMLTags,Yt=pe.appendPrependCommaSeparatedSelectors,Vt=pe.getIntegerValue,qt=pe.getFormattedPx,Gt=pe.viewModeDraggableHandleWidth,$t=pe.getAdminBarHeight,Kt=pe.viewportScrollTop,Zt=pe.isElementInViewport,Xt=pe.topViewportWidth,Jt=pe.maybeGetScrollbarWidth;t.maybeGetScrollbarWidth=Jt,t.topViewportWidth=Xt,t.isElementInViewport=Zt,t.viewportScrollTop=Kt,t.getAdminBarHeight=$t,t.viewModeDraggableHandleWidth=Gt,t.getFormattedPx=qt,t.getIntegerValue=Vt,t.appendPrependCommaSeparatedSelectors=Yt,t.stripHTMLTags=Ht,t.isRealMobileDevice=zt,t.getFontFieldIndexes=Ft,t.getModuleAddressSequence=Wt,t.getProcessedTabSlug=Ut,t.getScrollbarWidth=Nt,t.getModuleAncestor=Bt,t.getModuleSectionType=Lt,t.getComponentType=xt,t.isModuleDeleted=Rt,t.isModuleLocked=kt,t.isLimitedMode=Dt,t.isTB=At,t.isBFB=Ct,t.getOS=Mt,t.parseInlineCssIntoObject=It,t.getFixedHeaderHeight=St,t.$topWindow=jt,t.topWindow=Pt,t.$topDocument=Et,t.topDocument=Tt,t.$appWindow=wt,t.appWindow=_t,t.$appDocument=Ot,t.appDocument=gt,t.getPrevBreakpoint=vt,t.getNextBreakpoint=bt,t.isValidHtml=ht,t.isJson=mt,t.sprintf=yt,t.decodeOptionListValue=pt,t.setElementFont=dt,t.linkRel=ft,t.disableScrollLock=st,t.enableScrollLock=ct,t.triggerResizeForUIUpdate=lt,t.fixBuilderContent=ut,t.fixSliderHeight=it,t.hasBodyMargin=at,t.decodeHtmlEntities=ot,t.callWindow=nt,t.getCommentsMarkup=rt,t.fontnameToClass=tt,t.maybeLoadFont=et,t.getRowLayouts=Qe,t.getKeyboardList=Je,t.removeClassNameByPrefix=Xe,t.getGradient=Ze,t.getPreviewModes=Ke,t.getViewModeByWidth=$e,t.getBreakpoints=Ge,t.closestElement=qe,t.getSpacing=Ve,t.getCorner=Ye,t.getCorners=He,t.processRangeValue=ze,t.removeFancyQuotes=Fe,t.replaceCodeContentEntities=We,t.generatePlaceholderCss=Ue,t.generateResponsiveCss=Ne,t.processIconFontData=Be,t.processFontIcon=Le,t.parseShortcode=xe,t.getResponsiveStatus=Re,t.hasValue=ke,t.hasNumericValue=De,t.hasLocalStorage=Ae,t.condition=Ce,t.isBlockEditor=Me,t.isIE=Ie,t.isIEOrEdge=Se,t.isMobileDevice=je,t.isDefault=Pe,t.isNo=Ee,t.isYes=Te,t.isOnOff=we,t.isOff=_e,t.isOn=Oe,t.is=ge,t.log=ve,t.sanitized_previously=be,t.intentionallyClone=he,t.intentionallyCloneDeep=me,t.applyMixinsSafely=ye;var Qt=pe;t.default=Qt}).call(this,r(11))},function(e,t,r){var n=r(576)();e.exports=n},function(e,t,r){var n=r(16),o=r(579),a=/&(?:amp|lt|gt|quot|#39);/g,i=RegExp(a.source);e.exports=function(e){return(e=n(e))&&i.test(e)?e.replace(a,o):e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isYes=t.isOnOff=t.isOn=t.isOff=t.isNo=t.isDefault=void 0,t.sanitizedPreviously=function(e){return e};t.isOn=function(e){return"on"===e};t.isOff=function(e){return"off"===e};t.isOnOff=function(e){return"on"===e||"off"===e};t.isYes=function(e){return"yes"===e};t.isNo=function(e){return"no"===e};t.isDefault=function(e){return"default"===e}},function(e,t,r){var n=r(31),o=r(22);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==n(e)}},function(e,t,r){var n=r(356);e.exports=function(e){return n(e)&&e!=+e}},function(e,t,r){"use strict";r.r(t)},function(e,t,r){var n=r(171);e.exports=function(e){return e&&e.length?n(e):[]}},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=T(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),u=w(r(46)),l=w(r(1)),c=r(3),s=r(9),f=w(r(11)),d=w(r(5)),p=w(r(12)),y=w(r(55)),m=w(r(8)),h=w(r(13)),b=w(r(7)),v=r(361),g=w(r(91)),O=w(r(25)),_=w(r(109));function w(e){return e&&e.__esModule?e:{default:e}}function T(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(T=function(e){return e?r:t})(e)}function E(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function P(){return P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},P.apply(this,arguments)}function j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function I(e,t){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},I(e,t)}function M(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=D(e);if(t){var o=D(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return C(this,r)}}function C(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return A(e)}function A(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function D(e){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},D(e)}function k(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(599);var R=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&I(e,t)}(a,e);var t,r,n,o=M(a);function a(){var e;j(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return k(A(e=o.call.apply(o,[this].concat(r))),"hasChildren",(function(){return!(0,y.default)(e.props.setting.options)})),k(A(e),"activate",(function(){if(e.hasChildren()){var t=(0,f.default)(u.default.findDOMNode(A(e))),r=t.offset();e.props.onActivate({settingId:e.props.setting.id,left:Math.floor(r.left),top:Math.floor(r.top),width:t.width()})}})),k(A(e),"deactivate",(function(){e.hasChildren()&&e.props.onDeactivate(e.props.setting.id)})),k(A(e),"clampText",(function(){(0,v.clamp)((0,f.default)(e.metaLabelRef))})),k(A(e),"setMetaLabelRef",(function(t){return e.metaLabelRef=t})),k(A(e),"onChange",(function(t){var r=e.props,n=r.setting;(0,r.onChange)(n.id,t.target.checked,e.hasChildren())})),e}return t=a,(r=[{key:"componentDidMount",value:function(){this.clampText()}},{key:"componentDidUpdate",value:function(){this.clampText()}},{key:"render",value:function(){var e=this.props,t=e.positive,r=e.setting,n=e.metaLabel,o=e.checked,a=e.conflicted,u=(e.onChange,e.groupId),l=(0,d.default)(r,"title",""),c=(0,d.default)(r,["labels",u],r.label),s="template-setting-".concat(r.id,"-name-tooltip"),f=(0,p.default)(l)?{}:{"data-tip":"","data-for":s};return i.default.createElement("li",P({className:"et-tb-template-settings-group-setting",onMouseEnter:this.activate,onMouseLeave:this.deactivate,onClick:this.activate},f),i.default.createElement("div",{className:"et-tb-template-settings-group-setting__label"},i.default.createElement(g.default,{positive:t,value:r.id,checked:o,onChange:this.onChange,disabled:!o&&this.hasChildren()},i.default.createElement("span",{className:"et-common-checkbox-group__label-contents"},i.default.createElement("span",{className:"et-common-checkbox-group__label-main"},c),!(0,p.default)(n)&&i.default.createElement("span",{ref:this.setMetaLabelRef,className:"et-common-checkbox-group__label-meta"},n)),this.hasChildren()&&i.default.createElement(O.default,{icon:h.default.rtl?"chevron-left":"chevron-right"}))),a&&i.default.createElement("div",{className:"et-tb-template-settings-group-setting__conflict"},(0,b.default)("themeBuilder","This item is assigned to another template.")),!(0,p.default)(l)&&i.default.createElement(_.default,{id:s,className:"et-tb-tooltip--compact"},l))}}])&&S(t.prototype,r),n&&S(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(i.PureComponent);k(R,"propTypes",{positive:l.default.bool,settingId:l.default.string.isRequired,metaLabel:l.default.string,checked:l.default.bool.isRequired,conflicted:l.default.bool,onChange:l.default.func,onActivate:l.default.func,onDeactivate:l.default.func}),k(R,"defaultProps",{positive:!0,metaLabel:"",conflicted:!1,onChange:m.default,onActivate:m.default,onDeactivate:m.default}),k(R,"connections",{setting:(0,c.state)(o||(o=E(["templates.settings.",""])),(0,c.props)(a||(a=E(["settingId"]))))});var x=(0,s.connect)(R.connections,R);t.default=x},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.clamp=void 0;var n,o=(n=r(33))&&n.__esModule?n:{default:n};var a=null,i=function(){var e,t,r,n,i,u,l,c,s,f=document,d=f.createElement.bind(f),p=f.createTextNode.bind(f);(0,o.default)(a)&&((a=d("span")).style.position="absolute",a.style.whiteSpace="pre",a.style.visibility="hidden"),e=a,function(o,a){if(o.ownerDocument&&!o.ownerDocument!==f){for(n=u=0,i=1,s=!1,r=o.clientWidth,t=(o.textContent||o.innerText).replace(/\n/g," ");null!==o.firstChild;)o.removeChild(o.firstChild);o.appendChild(e),(t=t.replace(/\s*$/," ")).replace(/ /g,(function(f,y){i!==a&&(e.appendChild(p(t.substr(n,y-n))),r<e.clientWidth?(s?(c=t.substr(n,y+1-n),n=y+1):(c=t.substr(n,u-n),n=u),(l=d("span")).appendChild(p(c)),o.appendChild(l),s=!0,i++):s=!1,u=y+1,e.removeChild(e.firstChild))})),o.removeChild(e),(l=d("span")).style.display="inline-block",l.style.overflow="hidden",l.style.textOverflow="ellipsis",l.style.whiteSpace="nowrap",l.style.width="100%",l.appendChild(p(t.substr(n))),o.appendChild(l)}}.apply(void 0,arguments)};t.clamp=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t.each((function(){var t=e(this);t.find("span").length>0&&i(t.get(0),r),i(t.get(0),r)}))}}).call(this,r(11))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(0))&&n.__esModule?n:{default:n};r(600);var a=o.default.memo((function(){return o.default.createElement("div",{className:"et-common-spinner-block"},o.default.createElement("div",{className:"et-common-spinner-block__spinner"}))}));t.default=a},function(e,t){function r(e,t,r,n){var o,a=null==(o=n)||"number"==typeof o||"boolean"==typeof o?n:r(n),i=t.get(a);return void 0===i&&(i=e.call(this,n),t.set(a,i)),i}function n(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),a=t.get(o);return void 0===a&&(a=e.apply(this,n),t.set(o,a)),a}function o(e,t,r,n,o){return r.bind(t,e,n,o)}function a(e,t){return o(e,this,1===e.length?r:n,t.cache.create(),t.serializer)}function i(){return JSON.stringify(arguments)}function u(){this.cache=Object.create(null)}u.prototype.has=function(e){return e in this.cache},u.prototype.get=function(e){return this.cache[e]},u.prototype.set=function(e,t){this.cache[e]=t};var l={create:function(){return new u}};e.exports=function(e,t){var r=t&&t.cache?t.cache:l,n=t&&t.serializer?t.serializer:i;return(t&&t.strategy?t.strategy:a)(e,{cache:r,serializer:n})},e.exports.strategies={variadic:function(e,t){return o(e,this,n,t.cache.create(),t.serializer)},monadic:function(e,t){return o(e,this,r,t.cache.create(),t.serializer)}}},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=(c(r(1)),c(r(11))),i=c(r(42)),u=c(r(347)),l=["left","top","width","centerHorizontally"];function c(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){_(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p.apply(this,arguments)}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=O(e);if(t){var o=O(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return v(this,r)}}function v(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return g(e)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}function _(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var T=function(e){e.left,e.top,e.width,e.centerHorizontally;return w(e,l)},E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(c,e);var t,r,n,l=b(c);function c(){var e;y(this,c);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return _(g(e=l.call.apply(l,[this].concat(r))),"state",{position:{left:null,top:null,width:null}}),_(g(e),"reposition",(function(){if(e.anchorRef){var t,r,n=e.props.computePosition;r=n?n():{left:(t=(0,a.default)(e.anchorRef)).offset().left,top:t.offset().top,width:t.width()},(0,i.default)(e.state.position,r)||e.setState({position:r})}})),e}return t=c,(r=[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.reposition),this.reposition()}},{key:"componentDidUpdate",value:function(){this.reposition()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.reposition)}},{key:"render",value:function(){var e=this,t=p({},this.props);return o.default.createElement("div",{ref:function(t){return e.anchorRef=t},className:"et-common-anchored-popup-vertical-menu"},null!==this.state.position.left&&o.default.createElement(u.default,p({},t,{left:this.state.position.left,top:this.state.position.top,width:this.state.position.width})))}}])&&m(t.prototype,r),n&&m(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.PureComponent);_(E,"propTypes",d({},T(u.default.propTypes))),_(E,"defaultProps",d({},T(u.default.defaultProps)));var P=E;t.default=P},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=c(r(1)),i=r(367),u=c(r(42)),l=c(r(132));function c(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(this,arguments)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=b(e);if(t){var o=b(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return h(this,r)}}function h(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(c,e);var t,r,n,a=m(c);function c(){return d(this,c),a.apply(this,arguments)}return t=c,r=[{key:"render",value:function(){var e=this.props,t=e.type,r=e.draggableId,n=e.draggableMeta,a=e.draggableHandle,c=e.children,s={id:r,meta:n};return o.default.createElement(l.default.Consumer,null,(function(e){return o.default.createElement(i.DraggableCore,f({onStart:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return e.dragStart.apply(e,n.concat([t,s]))},onDrag:e.dragUpdate,onStop:e.dragEnd,cancel:"input"},a?{handle:a}:{}),c({isDragging:(0,u.default)(r,e.source.id),position:e.position,target:e.target}))}))}}],r&&p(t.prototype,r),n&&p(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.PureComponent);v(g,"propTypes",{type:a.default.string,draggableId:a.default.oneOfType([a.default.number,a.default.string]),draggableMeta:a.default.object,draggableHandle:a.default.string,children:a.default.func.isRequired}),v(g,"defaultProps",{type:"",draggableMeta:{},draggableHandle:""});var O=g;t.default=O},function(e,t,r){"use strict";var n=r(612),o=n.default,a=n.DraggableCore;e.exports=o,e.exports.default=o,e.exports.DraggableCore=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},t.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},t.createCoreData=function(e,t,r){var o=e.state,i=!(0,n.isNum)(o.lastX),u=a(e);return i?{node:u,deltaX:0,deltaY:0,lastX:t,lastY:r,x:t,y:r}:{node:u,deltaX:t-o.lastX,deltaY:r-o.lastY,lastX:o.lastX,lastY:o.lastY,x:t,y:r}},t.createDraggableData=function(e,t){var r=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/r,y:e.state.y+t.deltaY/r,deltaX:t.deltaX/r,deltaY:t.deltaY/r,lastX:e.state.x,lastY:e.state.y}},t.getBoundPosition=function(e,t,r){if(!e.props.bounds)return[t,r];var i=e.props.bounds;i="string"==typeof i?i:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(i);var u=a(e);if("string"==typeof i){var l,c=u.ownerDocument,s=c.defaultView;if(!((l="parent"===i?u.parentNode:c.querySelector(i))instanceof s.HTMLElement))throw new Error('Bounds selector "'+i+'" could not find an element.');var f=l,d=s.getComputedStyle(u),p=s.getComputedStyle(f);i={left:-u.offsetLeft+(0,n.int)(p.paddingLeft)+(0,n.int)(d.marginLeft),top:-u.offsetTop+(0,n.int)(p.paddingTop)+(0,n.int)(d.marginTop),right:(0,o.innerWidth)(f)-(0,o.outerWidth)(u)-u.offsetLeft+(0,n.int)(p.paddingRight)-(0,n.int)(d.marginRight),bottom:(0,o.innerHeight)(f)-(0,o.outerHeight)(u)-u.offsetTop+(0,n.int)(p.paddingBottom)-(0,n.int)(d.marginBottom)}}(0,n.isNum)(i.right)&&(t=Math.min(t,i.right));(0,n.isNum)(i.bottom)&&(r=Math.min(r,i.bottom));(0,n.isNum)(i.left)&&(t=Math.max(t,i.left));(0,n.isNum)(i.top)&&(r=Math.max(r,i.top));return[t,r]},t.getControlPosition=function(e,t,r){var n="number"==typeof t?(0,o.getTouch)(e,t):null;if("number"==typeof t&&!n)return null;var i=a(r),u=r.props.offsetParent||i.offsetParent||i.ownerDocument.body;return(0,o.offsetXYFromParent)(n||e,u,r.props.scale)},t.snapToGrid=function(e,t,r){var n=Math.round(t/e[0])*e[0],o=Math.round(r/e[1])*e[1];return[n,o]};var n=r(182),o=r(272);function a(e){var t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){void 0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={black:"#000000",white:"#FFFFFF",default:"#F1F5F9",checkMark:"#37C4AA",success:"#29C4A9",successAlt:"#70C3A9",primary:"#6C2EB9",primaryAlt:"#7D3BCF",info:"#2B87DA",infoAlt:"#00B9DC",danger:"#EF5555",dangerAlt:"#EB3D00",inverse:"#4C5866",warning:"#FF9232",warningAlt:"#F3CB57",globalitem:"#97d000",optionTabIcon:"#BEC9D5",activeTabIcon:"#2B96E1",abTestingTimeFilter:"#A1A9B2",disabledSubject:"#E1E4EA",inactiveGrey:"#BEC9D6",shuttleGrey:"#5C6978",fiord:"#3E5062",uploadImagePreview:"#333B44",bfbPreviewActive:"#5C6979",bfbPreview:"#9FA5AC",enabledDeviceIcon:"#42E1A7",disabledDeviceIcon:"#EF5555",coreModalButtonBlue:"#008BDA",historyActiveButton:"#99CF02",uiActiveIcon:"#4191DE",uiInactiveIcon:"#bec9d6",moduleItemControlIcons:"#737e89",selectPositionGray:"#E6ECF2",cadetBlue:"#A2B0C1",layerBackground:"#f0f5f9",activeCloud:"#0088E1",activeFav:"#FF454E",button:"#a3b0c2"};t.default=n},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=u(r(0)),a=u(r(39)),i=["_ref"];function u(e){return e&&e.__esModule?e:{default:e}}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l.apply(this,arguments)}function c(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m(e);if(t){var o=m(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return y(this,r)}}function y(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var h=function(e){var t,r,n,u,y=(0,a.default)(e)?e:e.displayName;return t=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(y,t);var r,n,a,u=p(y);function y(){return s(this,y),u.apply(this,arguments)}return r=y,(n=[{key:"shouldComponentUpdate",value:function(){return!1}},{key:"render",value:function(){var t=this.props,r=t._ref,n=c(t,i);return o.default.createElement(e,l({ref:r},n))}}])&&f(r.prototype,n),a&&f(r,a),Object.defineProperty(r,"prototype",{writable:!1}),y}(o.default.Component),r=t,n="displayName",u="withOneRender(".concat(y,")"),n in r?Object.defineProperty(r,n,{value:u,enumerable:!0,configurable:!0,writable:!0}):r[n]=u,t};t.default=h},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i,u,l,c,s,f,d,p=k(r(16)),y=k(r(56)),m=k(r(17)),h=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=D(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),b=k(r(1)),v=r(3),g=r(9),O=r(4),_=k(r(7)),w=k(r(109)),T=r(34),E=k(r(135)),P=k(r(374)),j=k(r(91)),S=k(r(18)),I=k(r(82)),M=k(r(83)),C=k(r(71)),A=k(r(72));function D(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(D=function(e){return e?r:t})(e)}function k(e){return e&&e.__esModule?e:{default:e}}function R(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function x(e){return function(e){if(Array.isArray(e))return L(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return L(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return L(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function B(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function U(e,t){return U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},U(e,t)}function W(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=H(e);if(t){var o=H(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return F(this,r)}}function F(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return z(e)}function z(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function H(e){return H=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},H(e)}function Y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(375);var V=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&U(e,t)}(a,e);var t,r,n,o=W(a);function a(){var e;B(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Y(z(e=o.call.apply(o,[this].concat(r))),"state",{filename:"",exportAll:!0,exportTemplates:[]}),Y(z(e),"isSingleTemplateMode",(function(){return""!==e.props.templateId})),Y(z(e),"handleOnFilenameChange",(function(t){e.setState({filename:t.target.value})})),Y(z(e),"handleOnExportAllChange",(function(t){e.setState({exportAll:t.target.checked})})),Y(z(e),"handleOnExportTemplateChange",(function(t){var r=t.target.checked?[].concat(x(e.state.exportTemplates),[t.target.value]):(0,y.default)(e.state.exportTemplates,t.target.value);e.setState({exportTemplates:r})})),Y(z(e),"export",(function(){var t=e.props,r=t.templateId,n=t.libraryItemType,o=t.exportThemeBuilder,a=t.exportThemeBuilderItem,i=e.state,u=i.filename,l=i.exportAll,c=i.exportTemplates,s=O.LIBRARY_ITEM_TYPE_TEMPLATE===n,f=O.LIBRARY_ITEM_TYPE_SET===n,d={filename:u,exportAll:!1,exportTemplates:[r],download:!0},p={filename:u,exportAll:l,exportTemplates:c,download:!0};e.isSingleTemplateMode()?s?a(d):f?a(p):o(d):o(p)})),Y(z(e),"renderTemplateOptions",(function(t){var r=e.state.exportTemplates;return h.default.createElement(h.Fragment,null,(0,m.default)(t,(function(t){var n=t.id,o=t.title,a=t.useOn,i=t.excludeFrom,u=t.automaticTitle,l="export-template-".concat(n,"-tooltip");return h.default.createElement(j.default,{key:n,value:n,checked:-1!==r.indexOf((0,p.default)(n)),onChange:e.handleOnExportTemplateChange},h.default.createElement(w.default,{id:l,className:"et-tb-tooltip--compact"},(0,T.renderTemplateConditions)(a,i,e.props.settings)),h.default.createElement("span",{"data-tip":"","data-for":l},(0,T.getTemplateTitle)(t.default,(0,T.isUnassigned)(a),o,u)))})))})),e}return t=a,(r=[{key:"render",value:function(){var e=this.props,t=e.state,r=e.progress,n=e.estimate,o=e.items,a=e.templates,i=e.libraryItemType,u=this.state,l=u.filename,c=u.exportAll,s=O.LIBRARY_ITEM_TYPE_SET===i,f=this.isSingleTemplateMode()?(0,_.default)("portability","Export %s",(0,_.default)("themeBuilder","Divi Theme Builder Template")):(0,_.default)("portability","Export %s",(0,_.default)("themeBuilder","Divi Theme Builder Templates"));return h.default.createElement("div",{className:"et-tb-portability"},h.default.createElement("div",{className:"et-tb-portability__scroll"},h.default.createElement(E.default,{label:(0,_.default)("portability","Export File Name")},h.default.createElement(P.default,{value:l,onChange:this.handleOnFilenameChange,placeholder:(0,_.default)("themeBuilder","Divi Theme Builder Templates")})),(!this.isSingleTemplateMode()||s)&&h.default.createElement(E.default,{label:(0,_.default)("portability","Export Options")},h.default.createElement(j.default,{checked:c,onChange:this.handleOnExportAllChange},(0,_.default)("portability","Export All Templates")),!c&&!s&&this.renderTemplateOptions(a),!c&&s&&this.renderTemplateOptions(o))),h.default.createElement(M.default,null,h.default.createElement(S.default,{className:"et-common-button--primary",onClick:this.export},f)),O.EXPORT_STATE_LOADING===t&&0===r&&h.default.createElement(C.default,null),O.EXPORT_STATE_LOADING===t&&0!==r&&h.default.createElement(I.default,{className:"et-common-local-overlay--centered"},h.default.createElement("div",{className:"et-tb-portability__progress-bar"},h.default.createElement(A.default,{progress:100*r,estimate:(0,_.default)("portability","Export estimated time remaining: %smin",n)}))),-1!==[O.EXPORT_STATE_SUCCESS,O.EXPORT_STATE_ERROR].indexOf(t)&&h.default.createElement(I.default,{className:"et-common-local-overlay--centered"},O.EXPORT_STATE_SUCCESS===t?h.default.createElement("span",{className:"et-core-loader et-core-loader-success"}):h.default.createElement("span",{className:"et-core-loader et-core-loader-fail"})))}}])&&N(t.prototype,r),n&&N(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(h.PureComponent);Y(V,"propTypes",{templateId:b.default.string}),Y(V,"defaultProps",{templateId:""}),Y(V,"connections",{settings:(0,v.state)(o||(o=R(["templates.settings"]))),state:(0,v.state)(a||(a=R(["portability.export.state"]))),progress:(0,v.state)(i||(i=R(["portability.export.progress"]))),estimate:(0,v.state)(u||(u=R(["portability.export.estimate"]))),templates:(0,v.state)(l||(l=R(["templates.templates"]))),items:(0,v.state)(c||(c=R(["portability.export.items"]))),exportThemeBuilder:(0,v.sequences)(s||(s=R(["portability.exportThemeBuilder"]))),exportThemeBuilderItem:(0,v.sequences)(f||(f=R(["portability.exportThemeBuilderItem"]))),libraryItemType:(0,v.state)(d||(d=R(["portability.export.libraryItemType"])))});var q=(0,g.connect)(V.connections,V);t.default=q},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),i=(o=r(1))&&o.__esModule?o:{default:o};r(663);var u=["className","type"];function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(this,arguments)}function s(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=h(e);if(t){var o=h(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return m(this,r)}}function m(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(i,e);var t,r,n,o=y(i);function i(){return f(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"render",value:function(){var e=this.props,t=e.className,r=e.type,n=s(e,u);return a.default.createElement("input",c({type:r,className:"et-common-input-text ".concat(t)},n))}}])&&d(t.prototype,r),n&&d(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(a.PureComponent);b(v,"propTypes",{className:i.default.string,type:i.default.string}),b(v,"defaultProps",{className:"",type:"text"});var g=v;t.default=g},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i,u,l,c,s,f=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=P(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),d=(E(r(1)),r(3)),p=r(9),y=r(4),m=E(r(7)),h=E(r(135)),b=E(r(664)),v=E(r(91)),g=E(r(18)),O=E(r(82)),_=E(r(83)),w=E(r(71)),T=E(r(72));function E(e){return e&&e.__esModule?e:{default:e}}function P(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(P=function(e){return e?r:t})(e)}function j(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function I(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?S(Object(r),!0).forEach((function(t){L(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function M(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function A(e,t){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},A(e,t)}function D(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=x(e);if(t){var o=x(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return k(this,r)}}function k(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return R(e)}function R(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}function L(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(375);var B=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&A(e,t)}(a,e);var t,r,n,o=D(a);function a(){var e;M(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return L(R(e=o.call.apply(o,[this].concat(r))),"state",{file:null,overrideDefaultWebsiteTemplate:!0,overrideTemplateSettings:!0,importPresets:!1,importToCloud:!1,backup:!1,incomingLayoutDuplicateDecision:"relink"}),L(R(e),"requireIncomingLayoutDuplicateDecision",(function(){return y.IMPORT_STATE_INCOMING_LAYOUT_DUPLICATE_DECISION===e.props.state&&null!==e.state.file})),L(R(e),"handleOnFileChange",(function(t,r){e.setState({file:t})})),L(R(e),"handleOnOverrideDefaultWebsiteTemplateChange",(function(t){e.setState({overrideDefaultWebsiteTemplate:t.target.checked})})),L(R(e),"handleOnOverrideTemplateSettingsChange",(function(t){e.setState({overrideTemplateSettings:t.target.checked})})),L(R(e),"handleOnImportPresetsChange",(function(t){e.setState({importPresets:t.target.checked})})),L(R(e),"handleOnImportToCloudChange",(function(t){e.setState({importToCloud:t.target.checked})})),L(R(e),"handleOnBackupChange",(function(t){e.setState({backup:t.target.checked})})),L(R(e),"handleOnIncomingLayoutDuplicateDecisionChange",(function(t){e.setState({incomingLayoutDuplicateDecision:t.target.value})})),L(R(e),"import",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.props.importThemeBuilder(I({file:e.state.file,overrideDefaultWebsiteTemplate:e.state.overrideDefaultWebsiteTemplate,overrideTemplateSettings:e.state.overrideTemplateSettings,importPresets:e.state.importPresets,importToCloud:e.state.importToCloud,backup:e.state.backup},t))})),L(R(e),"startImport",(function(){var t=y.PORTABILITY_STATE_IMPORT_LIBRARY_TEMPLATE===e.props.state;e.import({libraryTemplateImport:t})})),L(R(e),"startImportWithIncomingLayoutDuplicateDecision",(function(){e.import({incomingLayoutDuplicateDecision:e.state.incomingLayoutDuplicateDecision})})),L(R(e),"getImportAction",(function(){return e.requireIncomingLayoutDuplicateDecision()?e.startImportWithIncomingLayoutDuplicateDecision:e.startImport})),L(R(e),"componentWillUnmount",(function(){e.props.cancelThemeBuilderImport()})),L(R(e),"renderDefaultContent",(function(){var t=e.props,r=t.error,n=t.state,o=t.isTeamSharingAvailable,a=e.state,i=a.overrideDefaultWebsiteTemplate,u=a.overrideTemplateSettings,l=a.importPresets,c=a.importToCloud,s=a.backup,d=y.PORTABILITY_STATE_IMPORT_LIBRARY_TEMPLATE===n,p=!d||d&&!c,g=d&&!l&&o&&window.ETCloudApp.hasTeamPermissions("add"),O=o&&window.ETCloudApp.getActiveFolderName();O="My Library"===O||""===O?"My":"".concat(O,"'s");var _="Import To ".concat(O," Cloud");return f.default.createElement(f.Fragment,null,f.default.createElement(h.default,{label:(0,m.default)("generic","Choose File")},f.default.createElement(b.default,{defaultFile:e.state.file,label:(0,m.default)("generic","No file selected"),onChange:e.handleOnFileChange})),r&&f.default.createElement("p",{className:"et-tb-portability__error"},r),f.default.createElement(h.default,{label:(0,m.default)("generic","Options")},!d&&f.default.createElement(f.Fragment,null,f.default.createElement(v.default,{checked:i,onChange:e.handleOnOverrideDefaultWebsiteTemplateChange},(0,m.default)("portability","Override Existing Default Website Template.")),f.default.createElement(v.default,{checked:u,onChange:e.handleOnOverrideTemplateSettingsChange},(0,m.default)("portability","Override Existing Assignments"))),p&&f.default.createElement(v.default,{checked:l,onChange:e.handleOnImportPresetsChange},(0,m.default)("portability","Import Presets")),g&&f.default.createElement(v.default,{checked:c,onChange:e.handleOnImportToCloudChange},_),!d&&f.default.createElement(v.default,{checked:s,onChange:e.handleOnBackupChange},(0,m.default)("portability","Download Backup Before Importing"))))})),L(R(e),"renderIncomingLayoutDuplicateDecisionContent",(function(){return f.default.createElement(f.Fragment,null,f.default.createElement("p",null,(0,m.default)("themeBuilder","This import contains references to global layouts.")),f.default.createElement(h.default,null,f.default.createElement(v.default,{value:"relink",checked:"relink"===e.state.incomingLayoutDuplicateDecision,onChange:e.handleOnIncomingLayoutDuplicateDecisionChange,className:"et-tb-portability__import-decision"},f.default.createElement("span",{dangerouslySetInnerHTML:{__html:(0,m.default)("themeBuilder","Relink them to this website's global Header, Body, and/or Footer.")}})),f.default.createElement(v.default,{value:"duplicate",checked:"duplicate"===e.state.incomingLayoutDuplicateDecision,onChange:e.handleOnIncomingLayoutDuplicateDecisionChange,className:"et-tb-portability__import-decision"},f.default.createElement("span",{dangerouslySetInnerHTML:{__html:(0,m.default)("themeBuilder","Import them as static layouts from the website they were exported from.")}}))))})),L(R(e),"renderContent",(function(){return e.requireIncomingLayoutDuplicateDecision()?e.renderIncomingLayoutDuplicateDecisionContent():e.renderDefaultContent()})),e}return t=a,(r=[{key:"render",value:function(){var e=this.props,t=e.state,r=e.progress,n=e.estimate,o=y.PORTABILITY_STATE_IMPORT_LIBRARY_TEMPLATE===t;return f.default.createElement("div",{className:"et-tb-portability"},f.default.createElement("div",{className:"et-tb-portability__scroll"},this.renderContent()),f.default.createElement(_.default,null,f.default.createElement(g.default,{className:"et-common-button--primary",onClick:this.getImportAction()},o?(0,m.default)("portability","Import %s",(0,m.default)("themeBuilder","Theme Builder Library Templates")):(0,m.default)("portability","Import %s",(0,m.default)("themeBuilder","Divi Theme Builder Templates")))),y.IMPORT_STATE_LOADING===t&&0===r&&f.default.createElement(w.default,null),y.IMPORT_STATE_LOADING===t&&0!==r&&f.default.createElement(O.default,{className:"et-common-local-overlay--centered"},f.default.createElement("div",{className:"et-tb-portability__progress-bar"},f.default.createElement(T.default,{progress:100*r,estimate:(0,m.default)("portability","Import estimated time remaining: %smin",n)}))),-1!==[y.IMPORT_STATE_SUCCESS,y.IMPORT_STATE_ERROR].indexOf(t)&&f.default.createElement(O.default,{className:"et-common-local-overlay--centered"},y.IMPORT_STATE_SUCCESS===t?f.default.createElement("span",{className:"et-core-loader et-core-loader-success"}):f.default.createElement("span",{className:"et-core-loader et-core-loader-fail"})))}}])&&C(t.prototype,r),n&&C(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(f.PureComponent);L(B,"propTypes",{}),L(B,"defaultProps",{}),L(B,"connections",{state:(0,d.state)(o||(o=j(["portability.import.state"]))),error:(0,d.state)(a||(a=j(["portability.import.error"]))),progress:(0,d.state)(i||(i=j(["portability.import.progress"]))),estimate:(0,d.state)(u||(u=j(["portability.import.estimate"]))),importThemeBuilder:(0,d.sequences)(l||(l=j(["portability.importThemeBuilder"]))),importThemeBuilderLibrary:(0,d.sequences)(c||(c=j(["themeBuilderLibrary.importThemeBuilderLibrary"]))),cancelThemeBuilderImport:(0,d.sequences)(s||(s=j(["portability.cancelThemeBuilderImport"])))});var N=(0,p.connect)(B.connections,B);t.default=N},function(e,t,r){"use strict";(function(e){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){return function(r){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&te(e,t)}(Z,r);var n,q,G=(n=Z,q=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=oe(n);if(q){var r=oe(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return re(this,e)});function Z(){var t;Q(this,Z);for(var r=arguments.length,n=new Array(r),_=0;_<r;_++)n[_]=arguments[_];return ae(ne(t=G.call.apply(G,[this].concat(n))),"state",{selected_cats:"",selected_tags:[],cloud:"off",new_category_name:"",new_tag_name:"",isSaveAllTemplates:!0,presetTemplates:[],validationMode:!1,updatingCloudCategories:!1,updatingCloudTags:!1,cloudTerms:{},cloudId:(0,T.v4)(),contentHeight:{height:500},librarySaveModal:null,sharedClouds:[],updatingSharedClouds:!1,selectedCloud:0,currentCloudToken:null}),ae(ne(t),"debouncedContentHeight",(0,g.default)(t.responsiveContentHeight.bind(ne(t)),250)),ae(ne(t),"onClick",(function(){var e=t.state,r=e.cloud,n=e.selected_cats,o=e.selected_tags,a=e.new_category_name,i=e.new_tag_name,u=e.sharedClouds,l=e.selectedCloud,c=t.getTags().allTags,s=t.getCategoriesNamesArray().allCategories,f="on"===r,p=(0,H.getSelectedLibraryTermsList)(n,s,c,"categories",f),y=(0,H.getSelectedLibraryTermsList)(o,s,c,"tags",f),m="template_name"===t.props.nameOptionInput,h=0===l?{}:(0,b.default)(u,{id:l}),v={cloud:r,selected_cats:p,selected_tags:y,new_category_name:a,new_tag_name:i,providedBaseUrl:(0,d.default)(h)?"":"".concat(h.endpoint,"/cloud/v1")};if(m){v=J({template_name:t.state.template_name},v)}else{var g=t.state;v=J({set_name:g.set_name,isSaveAllTemplates:g.isSaveAllTemplates,presetTemplates:g.presetTemplates},v)}t.props.onSave({preferences:v})})),ae(ne(t),"maybeRetrieveCloudTerms",(function(){var e=t.props,r=e.setCloudStatus,n=e.updateCloudToken,o=e.updateDomainToken,a=t.state,i=a.sharedClouds,u=a.selectedCloud;(0,d.default)(t.state.cloudTerms)&&t.setState({updatingCloudCategories:!0,updatingCloudTags:!0,updatingSharedClouds:(0,d.default)(i),cloud:"on"}),(0,B.updateTokens)().then((function(e){var a=(0,m.default)(e,"accessToken",""),l=(0,m.default)(e,"domainToken",""),c=(0,m.default)(e,"sharedFolders",[]),s=0===u?{}:(0,b.default)(c,{id:u});if(""===a)r({cloudStatus:{error:"auth_error"}}),t.setState({updatingCloudCategories:!1,updatingCloudTags:!1,updatingSharedClouds:!1,cloud:"off"});else{n({cloudToken:a}),t.setState({currentCloudToken:a});var f=(0,d.default)(s)?"":"".concat(s.endpoint,"/cloud/v1");(0,B.retrieveCloudData)({type:"categoriesList",perPage:100,pageNo:1,isUserItems:!0,token:a,providedBaseUrl:f}).then((function(e){e.error?n({cloudToken:e}):t.setState({cloudTerms:J(J({},t.state.cloudTerms),{},{categories:e.data})}),t.setState({updatingCloudCategories:!1})})),(0,B.retrieveCloudData)({type:"tagsList",perPage:100,pageNo:1,isUserItems:!0,token:a,providedBaseUrl:f}).then((function(e){e.error?(o({domainToken:e.domainToken}),n({cloudToken:e})):t.setState({cloudTerms:J(J({},t.state.cloudTerms),{},{tags:e.data})}),t.setState({updatingCloudTags:!1})})),o({domainToken:l}),(0,d.default)(i)&&t.setState({sharedClouds:c}),t.setState({updatingSharedClouds:!1})}}))})),ae(ne(t),"closeCloudLoginFrame",(function(e){t.setState({cloud:"off"}),(0,t.props.setCloudStatus)({cloudStatus:e})})),ae(ne(t),"onInput",(function(e,r){t.setState(ae({},e,r)),"cloud"===e&&("on"===r?t.maybeRetrieveCloudTerms():t.setState({updatingCloudCategories:!1,updatingCloudTags:!1,selected_tags:[],selected_cats:""}))})),ae(ne(t),"setFieldClass",(function(e){var r={"et-fb-settings-option-container":!0};return(0,p.default)(["template_name","set_name"],e)?(r["et-tb-library-save-container-input-error"]=(0,m.default)(t.state,"validationMode",!1)&&!t.validateNameOptionInput(),(0,w.default)(r)):(0,w.default)(r)})),ae(ne(t),"renderInputField",(function(e){var r=(0,m.default)(et_theme_builder_bundle,"i18n.themeBuilder.saveToLibraryModalPreferences"),n=(0,m.default)(r,"".concat(e,".label")),o=(0,m.default)(r,"".concat(e,".placeholder")),a=(0,m.default)(t.state,e,"");return O.default.createElement("div",{className:"et-tb-library-save-option"},n&&O.default.createElement("label",null,n),O.default.createElement("div",{className:t.setFieldClass(e)},O.default.createElement(P.default,{value:a,onChange:function(r){return t.onInput(e,r.target.value)},className:"et-tb-library-save-option-input",placeholder:o})))})),ae(ne(t),"onChangePresetTemplate",(function(e){var r=e.target.checked?[].concat(K(t.state.presetTemplates),[e.target.value]):(0,o.default)(t.state.presetTemplates,e.target.value);t.setState({presetTemplates:r})})),ae(ne(t),"onChangeAllTemplates",(function(e){t.setState({isSaveAllTemplates:e.target.checked})})),ae(ne(t),"renderSelectTemplates",(function(){if(!t.props.isPresetSaveAction)return null;var e=t.state.isSaveAllTemplates,r={"et-tb-library-save-option":!0,"et-tb-library-save-container-input-error":(0,m.default)(t.state,"validationMode",!1)&&!t.validateSelectTemplates()};return O.default.createElement("div",{className:(0,w.default)(r)},O.default.createElement("div",{className:"et-tb-library-save-option-checkbox-group"},O.default.createElement("label",null,(0,A.default)("themeBuilder","Select Templates")),O.default.createElement(L.default,{checked:e,onChange:t.onChangeAllTemplates},(0,A.default)("themeBuilder","Include All Templates")),!e&&t.renderTemplatesList()))})),ae(ne(t),"renderClouldToggle",(function(){var e=(0,m.default)(t.state,"cloud","off");return O.default.createElement("div",{className:"et-tb-library-save-option"},O.default.createElement("label",null,(0,A.default)("themeBuilder","Save To Divi Cloud")),O.default.createElement("div",{className:"et-tb-library-save-option-container"},O.default.createElement(j.default,{name:"cloud",value:e,onChange:t.onInput})))})),ae(ne(t),"renderCloudUpsell",(function(){var e=t.state,r=e.cloud,n=e.currentCloudToken,o="on"===r?(0,W.parseJWT)(n).dcst:"default";return O.default.createElement(M.default,{context:"save-modal",colorScheme:o})})),ae(ne(t),"getCategoriesNamesArray",(function(){var e=t.props.categories,r=[],n=[],o=[];if("on"===t.state.cloud&&!(0,d.default)((0,m.default)(t.state,"cloudTerms.categories",{}))){var i=(0,c.default)(t.state.cloudTerms.categories,["name"]);(0,h.default)(i,(function(e,t){var i=(0,a.default)(e.name);-1===r.indexOf(i)&&(r.push(i),n.push(i),o.push(e))}))}return(0,d.default)(e)||(0,h.default)(e,(function(e){var t=(0,a.default)(e.name);-1===r.indexOf(t)&&(r.push(t),o.push(e))})),{categoriesList:r,cloudCategoryNames:n,allCategories:o}})),ae(ne(t),"onCategoriesChange",(function(e,r){t.setState(ae({},e,r))})),ae(ne(t),"renderCategories",(function(){var e=t.getCategoriesNamesArray(),r=O.default.createElement(I.default,{icon:"cloud",color:"#0088E1",className:"et-cloud-category-mark",elementType:"span"}),n=O.default.createElement(O.Fragment,null,O.default.createElement("div",{className:"et-tb-library-save-option-container"},O.default.createElement(z.default,{value:t.state.selected_cats,name:"selected_cats",options:e.categoriesList,shortcut_index:"library-categories",_onChange:t.onCategoriesChange,markedCategories:e.cloudCategoryNames,categoryMark:r})),t.renderInputField("new_category_name"));return t.state.updatingCloudCategories&&(n=O.default.createElement("div",{className:(0,w.default)({"et-fb-settings-option":!0,"et-tb-library-save-option--categories":!0})},O.default.createElement(F.default,null))),O.default.createElement("div",{className:"et-tb-library-save-option"},O.default.createElement("label",null,(0,A.default)("themeBuilder","Add To Category")),n)})),ae(ne(t),"getTags",(function(){var e=t.props.tags,r=[],n=[],o={},i=[],u=0;return(0,d.default)(e)||(0,h.default)(e,(function(e,t){var r=(0,a.default)(e.name);n.push(r),o[u=t]=r,i.push(e)})),"on"!==t.state.cloud||(0,d.default)((0,m.default)(t.state,"cloudTerms.tags",{}))||(0,h.default)((0,m.default)(t.state,"cloudTerms.tags",{}),(function(e,t){var l=(0,a.default)(e.name);(0,p.default)(n,l)||(u++,o[u]=l,i.push(e)),r.push(l)})),{tagsList:o,cloudTagNames:r,allTags:i}})),ae(ne(t),"onTagsChange",(function(e,r){var n=t.state.selected_tags;"add"===r?n.push((0,i.default)(e.id)):(0,l.default)(n,(function(t,r){return r===e})),t.setState({selected_tags:n})})),ae(ne(t),"validateSelectTemplates",(function(){var e=!0;if("template_name"===t.props.nameOptionInput)return e;var r=t.state,n=r.isSaveAllTemplates,o=r.presetTemplates;return e=n||!(0,d.default)(o)})),ae(ne(t),"validateNameOptionInput",(function(){var e=t.props.nameOptionInput,r=(0,m.default)(t.state,e);return!(0,f.default)(r)&&""!==r})),ae(ne(t),"validateFields",(function(){return t.setState({validationMode:!0}),t.validateNameOptionInput()&&t.validateSelectTemplates()})),ae(ne(t),"setStateCloud",(function(e){t.setState({cloud:e})})),ae(ne(t),"onDomainTokenGenerated",(function(e){if((0,y.default)(e,"divi_cloud_token")){var r=(0,W.decryptToken)((0,m.default)(e,"divi_cloud_token"),t.state.cloudId),n=1===(0,m.default)(e,"save_session_on_this_website",0),o=t.props.setCloudStatus;o({cloudStatus:{}}),t.setState({currentCloudToken:r}),(0,B.activateCloudPure)(r,n).then((function(e){e.error?o({cloudStatus:e}):t.maybeRetrieveCloudTerms()}))}})),ae(ne(t),"renderTags",(function(){var e=t.getTags(),r=O.default.createElement(I.default,{icon:"cloud",color:"#ffffff",className:"et-cloud-tag-mark",elementType:"span"}),n=O.default.createElement("div",{className:"et-fb-settings-option-container"},!(0,d.default)(e.tagsList)&&O.default.createElement(S.default,{name:"selected_tags",allTags:e.tagsList,selectedTags:t.state.selected_tags,onTagsChange:t.onTagsChange,markedTags:e.cloudTagNames,tagMark:r}),t.renderInputField("new_tag_name"));return t.state.updatingCloudTags&&(n=O.default.createElement("div",{className:(0,w.default)({"et-fb-settings-option":!0,"et-tb-library-save-option--tags":!0})},O.default.createElement(F.default,null))),O.default.createElement("div",{className:"et-tb-library-save-option"},O.default.createElement("label",null,(0,A.default)("themeBuilder","Add To Tags")),n)})),ae(ne(t),"renderModalDescription",(function(){return O.default.createElement("p",{className:"et-tb-description-text"},t.props.modalDescription)})),ae(ne(t),"openCloudCheckout",(function(){(0,t.props.setCloudStatus)({cloudStatus:{error:Y.STATUS_CODE_SUBSCRIPTION_EXPIRED}})})),ae(ne(t),"getCheckoutUrl",(function(){var t=e.param({type:"divi-cloud",is_popup:1});return"https://www.elegantthemes.com/members-area/checkout/?".concat(t)})),ae(ne(t),"onCheckoutComplete",(function(e){"true"===(0,m.default)(e,"product_purchased")&&(setCloudStatus({cloudStatus:""}),t.onClick())})),ae(ne(t),"onCloudFolderChange",(function(e,r){t.setState({cloudTerms:{},selectedCloud:r},(function(){t.maybeRetrieveCloudTerms()}))})),ae(ne(t),"renderCloudLoginFrame",(function(){var e=(0,m.default)(t.props,"cloudStatus.error","");if(""!==e){var r=t.props.domainToken;if("max_free_items"===e){var n=(0,m.default)(t.props,"cloudStatus.data.max_free_items",20),o=(0,A.default)("themeBuilder","$cloudUpgradeMessage",n);return O.default.createElement("div",null,O.default.createElement("h3",null,(0,A.default)("themeBuilder","Free Divi Cloud Limit Reached")),O.default.createElement("p",null,o),O.default.createElement(C.default,{className:"et-common-button--primary et-tb-cloud-checkout-button",onClick:t.openCloudCheckout},(0,A.default)("themeBuilder","Get Unlimited Divi Cloud Storage")))}return Y.STATUS_CODE_SUBSCRIPTION_EXPIRED===e?O.default.createElement("div",null,O.default.createElement("div",{className:"et-cloud-login-notification"},O.default.createElement("h3",null,(0,A.default)("themeBuilder","Upgrade Your Divi Cloud")),O.default.createElement("p",null,(0,A.default)("themeBuilder","$cloudBuyNotification"))),O.default.createElement(N.default,{api:U.default.api,setDomainTokenNonce:U.default.nonces.saveDomainToken,domain:U.default.site_domain,frameUrl:t.getCheckoutUrl(),domainToken:r,frameWidth:400,frameHeight:600,sendMessage:t.onCheckoutComplete,onFrameClose:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.closeCloudLoginFrame(e)},isCloud:!0})):O.default.createElement("div",null,O.default.createElement("div",{className:"et-cloud-login-notification"},O.default.createElement("h3",null,(0,A.default)("themeBuilder","Log In To Divi Cloud")),O.default.createElement("p",null,(0,A.default)("themeBuilder","$cloudLoginNotification"))),O.default.createElement(N.default,{api:U.default.api,setDomainTokenNonce:U.default.nonces.saveDomainToken,domain:U.default.site_domain,frameWidth:400,frameHeight:600,sendMessage:t.onDomainTokenGenerated,queryParams:{cloud_id:t.state.cloudId},onFrameClose:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.closeCloudLoginFrame(e)},isCloud:!0}))}})),ae(ne(t),"renderCloudFolders",(function(){var e=t.state,r=e.selectedCloud,n=e.sharedClouds;if(e.updatingSharedClouds)return O.default.createElement("div",{className:(0,w.default)({"et-fb-settings-option":!0,"et-tb-library-save-option--cloud-folders":!0})},O.default.createElement(F.default,null));var o=(0,v.default)(n,(function(e){return!0===(0,m.default)(e,"permissions.add")})),a=(0,u.default)(o,["name"]);if((0,d.default)(a))return null;var i=(0,s.default)(a,(function(e){var t="".concat((0,m.default)(e,"name",""),"'s Cloud");return J(J({},e),{},{name:t})}));return i.unshift({id:0,name:(0,A.default)("themeBuilder","My Cloud")}),O.default.createElement("div",{className:"et-tb-library-save-option"},O.default.createElement("label",null,(0,A.default)("themeBuilder","Choose Library")),O.default.createElement(V.default,{id:"et-tb-library-save-option--select-cloud-folders",className:"et-tb-library-save-option--select-cloud-folders",name:"Choose Library",options:i,_onChange:t.onCloudFolderChange,value:r}))})),ae(ne(t),"renderSaveModalFields",(function(){var e="on"===t.state.cloud;return O.default.createElement(O.Fragment,null,t.renderModalDescription(),t.renderInputField(t.props.nameOptionInput),t.renderSelectTemplates(),t.renderClouldToggle(),t.renderCloudUpsell(),e&&t.renderCloudFolders(),t.renderCategories(),t.renderTags())})),ae(ne(t),"renderModalContent",(function(){var e=""!==(0,m.default)(t.props,"cloudStatus.error","");return O.default.createElement("div",{className:"et-tb-library-save-modal-options-wrap"},O.default.createElement("div",{className:"et-tb-library-save-modal-options",style:t.state.contentHeight},!e&&t.renderSaveModalFields(),e&&t.renderCloudLoginFrame()))})),ae(ne(t),"renderHelpButton",(function(){return O.default.createElement("div",{className:"et-tb-library-save-option"},O.default.createElement(x.default,{helpText:"Help"}))})),t}return function(e,t,r){t&&ee(e.prototype,t);r&&ee(e,r);Object.defineProperty(e,"prototype",{writable:!1})}(Z,[{key:"componentDidMount",value:function(){var e=this;window.addEventListener("resize",this.debouncedContentHeight),this.setState({librarySaveModal:_.default.findDOMNode(document.querySelector(".et-tb-library-save-modal"))}),setTimeout((function(){return e.responsiveContentHeight()}),1)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.debouncedContentHeight)}},{key:"renderTemplatesList",value:function(){var e=this,t=this.props.templates,r=this.state.presetTemplates;return O.default.createElement(O.Fragment,null,(0,s.default)(t,(function(t){var n=t.id,o=t.title,a=t.useOn,i=t.excludeFrom,u=t.automaticTitle,l="export-template-".concat(n,"-tooltip");return O.default.createElement(L.default,{key:n,value:n,checked:-1!==r.indexOf(n),onChange:e.onChangePresetTemplate},O.default.createElement(D.default,{id:l,className:"et-tb-tooltip--compact"},(0,k.renderTemplateConditions)(a,i,e.props.settings)),O.default.createElement("span",{"data-tip":"","data-for":l},(0,k.getTemplateTitle)(t.default,(0,k.isUnassigned)(a),o,u)))})))}},{key:"responsiveContentHeight",value:function(){var e=160,t=window.innerHeight,r=this.state.librarySaveModal.clientHeight+e;r>t&&(r=t-e),e>t-r&&(r-=e),this.setState({contentHeight:{height:r}})}},{key:"render",value:function(){return O.default.createElement(E.default,{animation:!0,className:(0,w.default)({"et-tb-library-save-modal":!0})},O.default.createElement(R.default,{title:this.props.modalTitle,className:"et-tb-library-save-modal__header",onClose:this.props.close}),this.renderModalContent(),O.default.createElement(t,$({},this.props,this.state,{validateFields:this.validateFields,setStateCloud:this.setStateCloud,onClick:this.onClick})))}}]),Z}(O.default.Component)};var o=G(r(56)),a=G(r(354)),i=G(r(29)),u=G(r(300)),l=G(r(685)),c=G(r(131)),s=G(r(17)),f=G(r(55)),d=G(r(12)),p=G(r(51)),y=G(r(170)),m=G(r(5)),h=G(r(19)),b=G(r(89)),v=G(r(32)),g=G(r(179)),O=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=q(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),_=G(r(46)),w=G(r(14)),T=r(92),E=G(r(111)),P=G(r(374)),j=G(r(687)),S=G(r(689)),I=G(r(273)),M=G(r(748)),C=G(r(18)),A=G(r(7)),D=G(r(109)),k=r(34),R=G(r(44)),x=G(r(751)),L=G(r(91)),B=r(127);r(753);var N=G(r(754)),U=G(r(13)),W=r(167),F=G(r(362)),z=G(r(755)),H=r(172),Y=r(4),V=G(r(768));function q(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(q=function(e){return e?r:t})(e)}function G(e){return e&&e.__esModule?e:{default:e}}function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$.apply(this,arguments)}function K(e){return function(e){if(Array.isArray(e))return Z(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Z(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Z(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function X(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function J(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?X(Object(r),!0).forEach((function(t){ae(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ee(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function te(e,t){return te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},te(e,t)}function re(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ne(e)}function ne(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oe(e){return oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oe(e)}function ae(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}}).call(this,r(11))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(379);Object.defineProperty(t,"DragDropContext",{enumerable:!0,get:function(){return l(n).default}});var o=r(711);Object.defineProperty(t,"DragDropContextProvider",{enumerable:!0,get:function(){return l(o).default}});var a=r(712);Object.defineProperty(t,"DragLayer",{enumerable:!0,get:function(){return l(a).default}});var i=r(713);Object.defineProperty(t,"DragSource",{enumerable:!0,get:function(){return l(i).default}});var u=r(723);function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"DropTarget",{enumerable:!0,get:function(){return l(u).default}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unpackBackendForEs5Users=t.createChildContext=t.CHILD_CONTEXT_TYPES=void 0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e){d.default.apply(void 0,["DragDropContext","backend"].concat(Array.prototype.slice.call(arguments)));var t=g(e),r=v(t);return function(e){var t,a,l=e.displayName||e.name||"Component",c=(a=t=function(t){function a(){return y(this,a),m(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return h(a,t),o(a,[{key:"getDecoratedComponentInstance",value:function(){return(0,s.default)(this.child,"In order to access an instance of the decorated component it can not be a stateless component."),this.child}},{key:"getManager",value:function(){return r.dragDropManager}},{key:"getChildContext",value:function(){return r}},{key:"render",value:function(){var t=this;return u.default.createElement(e,n({},this.props,{ref:function(e){t.child=e}}))}}]),a}(i.Component),t.DecoratedComponent=e,t.displayName="DragDropContext("+l+")",t.childContextTypes=b,a);return(0,f.default)(c,e)}};var i=r(0),u=p(i),l=p(r(1)),c=r(692),s=p(r(40)),f=p(r(174)),d=p(r(186));function p(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(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 h(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 b=t.CHILD_CONTEXT_TYPES={dragDropManager:l.default.object.isRequired},v=t.createChildContext=function(e,t){return{dragDropManager:new c.DragDropManager(e,t)}},g=t.unpackBackendForEs5Users=function(e){var t=e;return"object"===(void 0===t?"undefined":a(t))&&"function"==typeof t.default&&(t=t.default),(0,s.default)("function"==typeof t,"Expected the backend to be a function or an ES6 module exporting a default function. Read more: http://react-dnd.github.io/react-dnd/docs-drag-drop-context.html"),t}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments[1];switch(t.type){case o.BEGIN_DRAG:return{initialSourceClientOffset:t.sourceClientOffset,initialClientOffset:t.clientOffset,clientOffset:t.clientOffset};case o.HOVER:return i(e.clientOffset,t.clientOffset)?e:n({},e,{clientOffset:t.clientOffset});case o.END_DRAG:case o.DROP:return a;default:return e}},t.getSourceClientOffset=function(e){var t=e.clientOffset,r=e.initialClientOffset,n=e.initialSourceClientOffset;if(!t||!r||!n)return null;return{x:t.x+n.x-r.x,y:t.y+n.y-r.y}},t.getDifferenceFromInitialOffset=function(e){var t=e.clientOffset,r=e.initialClientOffset;if(!t||!r)return null;return{x:t.x-r.x,y:t.y-r.y}};var o=r(184),a={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function i(e,t){return e===t||e&&t&&e.x===t.x&&e.y===t.y}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)(e)?e.some((function(e){return e===t})):e===t};var n,o=r(10),a=(n=o)&&n.__esModule?n:{default:n}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments[1],t=arguments[2];switch(e.type){case a.HOVER:break;case i.ADD_SOURCE:case i.ADD_TARGET:case i.REMOVE_TARGET:case i.REMOVE_SOURCE:return l;case a.BEGIN_DRAG:case a.PUBLISH_DRAG_SOURCE:case a.END_DRAG:case a.DROP:default:return c}var r=e.targetIds,o=t.targetIds,u=(0,n.default)(r,o),s=!1;if(0===u.length){for(var f=0;f<r.length;f++)if(r[f]!==o[f]){s=!0;break}}else s=!0;if(!s)return l;var d=o[o.length-1],p=r[r.length-1];d!==p&&(d&&u.push(d),p&&u.push(p));return u},t.areDirty=function(e,t){if(e===l)return!1;if(e===c||void 0===t)return!0;return(0,o.default)(t,e).length>0};var n=u(r(700)),o=u(r(259)),a=r(184),i=r(185);function u(e){return e&&e.__esModule?e:{default:e}}var l=[],c=[]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e,t){if(e===t)return!0;if("object"!==(void 0===e?"undefined":n(e))||null===e||"object"!==(void 0===t?"undefined":n(t))||null===t)return!1;var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(var a=Object.prototype.hasOwnProperty,i=0;i<r.length;i+=1){if(!a.call(t,r[i]))return!1;var u=e[r[i]],l=t[r[i]];if(u!==l||"object"===(void 0===u?"undefined":n(u))||"object"===(void 0===l?"undefined":n(l)))return!1}return!0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();t.default=function(e){var t,r,y=e.DecoratedComponent,h=e.createHandler,b=e.createMonitor,v=e.createConnector,g=e.registerHandler,O=e.containerDisplayName,_=e.getType,w=e.collect,T=e.options.arePropsEqual,E=void 0===T?p.default:T,P=y.displayName||y.name||"Component",j=(r=t=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.handleChange=n.handleChange.bind(n),n.handleChildRef=n.handleChildRef.bind(n),(0,s.default)("object"===o(n.context.dragDropManager),"Could not find the drag and drop manager in the context of %s. Make sure to wrap the top-level component of your app with DragDropContext. Read more: http://react-dnd.github.io/react-dnd/docs-troubleshooting.html#could-not-find-the-drag-and-drop-manager-in-the-context",P,P),n.manager=n.context.dragDropManager,n.handlerMonitor=b(n.manager),n.handlerConnector=v(n.manager.getBackend()),n.handler=h(n.handlerMonitor),n.disposable=new c.SerialDisposable,n.receiveProps(e),n.state=n.getCurrentState(),n.dispose(),n}return function(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)}(t,e),a(t,[{key:"getHandlerId",value:function(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function(){return this.decoratedComponentInstance}},{key:"shouldComponentUpdate",value:function(e,t){return!E(e,this.props)||!(0,d.default)(t,this.state)}}]),a(t,[{key:"componentDidMount",value:function(){this.isCurrentlyMounted=!0,this.disposable=new c.SerialDisposable,this.currentType=null,this.receiveProps(this.props),this.handleChange()}},{key:"componentWillReceiveProps",value:function(e){E(e,this.props)||(this.receiveProps(e),this.handleChange())}},{key:"componentWillUnmount",value:function(){this.dispose(),this.isCurrentlyMounted=!1}},{key:"receiveProps",value:function(e){this.handler.receiveProps(e),this.receiveType(_(e))}},{key:"receiveType",value:function(e){if(e!==this.currentType){this.currentType=e;var t=g(e,this.handler,this.manager),r=t.handlerId,n=t.unregister;this.handlerId=r,this.handlerMonitor.receiveHandlerId(r),this.handlerConnector.receiveHandlerId(r);var o=this.manager.getMonitor().subscribeToStateChange(this.handleChange,{handlerIds:[r]});this.disposable.setDisposable(new c.CompositeDisposable(new c.Disposable(o),new c.Disposable(n)))}}},{key:"handleChange",value:function(){if(this.isCurrentlyMounted){var e=this.getCurrentState();(0,d.default)(e,this.state)||this.setState(e)}}},{key:"dispose",value:function(){this.disposable.dispose(),this.handlerConnector.receiveHandlerId(null)}},{key:"handleChildRef",value:function(e){this.decoratedComponentInstance=e,this.handler.receiveComponent(e)}},{key:"getCurrentState",value:function(){return w(this.handlerConnector.hooks,this.handlerMonitor)}},{key:"render",value:function(){return u.default.createElement(y,n({},this.props,this.state,{ref:m(y)?this.handleChildRef:null}))}}]),t}(i.Component),t.DecoratedComponent=y,t.displayName=O+"("+P+")",t.contextTypes={dragDropManager:l.default.object.isRequired},r);return(0,f.default)(j,y)};var i=r(0),u=y(i),l=y(r(1)),c=r(714),s=(y(r(43)),y(r(40))),f=y(r(174)),d=y(r(274)),p=y(r(383));function y(e){return e&&e.__esModule?e:{default:e}}var m=function(e){return Boolean(e&&e.prototype&&"function"==typeof e.prototype.render)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t={};return Object.keys(e).forEach((function(r){var n=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if((0,o.isValidElement)(t)){var n=t;u(n);var a=r?function(t){return e(t,r)}:e;return(0,i.default)(n,a)}e(t,r)}}(e[r]);t[r]=function(){return n}})),t};var n,o=r(0),a=r(722),i=(n=a)&&n.__esModule?n:{default:n};function u(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors.You can either wrap "+t+" into a <div>, or turn it into a drag source or a drop target itself.")}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t===e)return!0;return null!==t&&null!==e&&(0,a.default)(t,e)};var n,o=r(274),a=(n=o)&&n.__esModule?n:{default:n}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function e(t,r){return"string"==typeof t||"symbol"===(void 0===t?"undefined":n(t))||r&&(0,i.default)(t)&&t.every((function(t){return e(t,!1)}))};var o,a=r(10),i=(o=a)&&o.__esModule?o:{default:o}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSafari=t.isFirefox=void 0;var n,o=r(192),a=(n=o)&&n.__esModule?n:{default:n};t.isFirefox=(0,a.default)((function(){return/firefox/i.test(navigator.userAgent)})),t.isSafari=(0,a.default)((function(){return Boolean(window.safari)}))},function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty,o="~";function a(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function u(){this._events=new a,this._eventsCount=0}Object.create&&(a.prototype=Object.create(null),(new a).__proto__||(o=!1)),u.prototype.eventNames=function(){var e,t,r=[];if(0===this._eventsCount)return r;for(t in e=this._events)n.call(e,t)&&r.push(o?t.slice(1):t);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},u.prototype.listeners=function(e,t){var r=o?o+e:e,n=this._events[r];if(t)return!!n;if(!n)return[];if(n.fn)return[n.fn];for(var a=0,i=n.length,u=new Array(i);a<i;a++)u[a]=n[a].fn;return u},u.prototype.emit=function(e,t,r,n,a,i){var u=o?o+e:e;if(!this._events[u])return!1;var l,c,s=this._events[u],f=arguments.length;if(s.fn){switch(s.once&&this.removeListener(e,s.fn,void 0,!0),f){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,t),!0;case 3:return s.fn.call(s.context,t,r),!0;case 4:return s.fn.call(s.context,t,r,n),!0;case 5:return s.fn.call(s.context,t,r,n,a),!0;case 6:return s.fn.call(s.context,t,r,n,a,i),!0}for(c=1,l=new Array(f-1);c<f;c++)l[c-1]=arguments[c];s.fn.apply(s.context,l)}else{var d,p=s.length;for(c=0;c<p;c++)switch(s[c].once&&this.removeListener(e,s[c].fn,void 0,!0),f){case 1:s[c].fn.call(s[c].context);break;case 2:s[c].fn.call(s[c].context,t);break;case 3:s[c].fn.call(s[c].context,t,r);break;case 4:s[c].fn.call(s[c].context,t,r,n);break;default:if(!l)for(d=1,l=new Array(f-1);d<f;d++)l[d-1]=arguments[d];s[c].fn.apply(s[c].context,l)}}return!0},u.prototype.on=function(e,t,r){var n=new i(t,r||this),a=o?o+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],n]:this._events[a].push(n):(this._events[a]=n,this._eventsCount++),this},u.prototype.once=function(e,t,r){var n=new i(t,r||this,!0),a=o?o+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],n]:this._events[a].push(n):(this._events[a]=n,this._eventsCount++),this},u.prototype.removeListener=function(e,t,r,n){var i=o?o+e:e;if(!this._events[i])return this;if(!t)return 0==--this._eventsCount?this._events=new a:delete this._events[i],this;var u=this._events[i];if(u.fn)u.fn!==t||n&&!u.once||r&&u.context!==r||(0==--this._eventsCount?this._events=new a:delete this._events[i]);else{for(var l=0,c=[],s=u.length;l<s;l++)(u[l].fn!==t||n&&!u[l].once||r&&u[l].context!==r)&&c.push(u[l]);c.length?this._events[i]=1===c.length?c[0]:c:0==--this._eventsCount?this._events=new a:delete this._events[i]}return this},u.prototype.removeAllListeners=function(e){var t;return e?(t=o?o+e:e,this._events[t]&&(0==--this._eventsCount?this._events=new a:delete this._events[t])):(this._events=new a,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prototype.setMaxListeners=function(){return this},u.prefixed=o,u.EventEmitter=u,e.exports=u},function(e,t,r){"use strict";function n(e){var t,r=e.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";(function(e){var t=f(r(0)),n=f(r(46)),o=f(r(3)),a=r(9),i=f(r(11)),u=f(r(13)),l=f(r(7)),c=f(r(400)),s=f(r(544));function f(e){return e&&e.__esModule?e:{default:e}}Object({NODE_ENV:"production"}).DEV_SERVER;r.p=u.default.distPath;var d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=(0,o.default)(c.default,{devtools:e,returnSequencePromise:!0});(0,i.default)("body").first().append('<div class="et-tb-admin et-tb-admin-modals-portal"></div>'),n.default.render(t.default.createElement(a.Container,{app:r},t.default.createElement(s.default,null)),(0,i.default)("#et-theme-builder").get(0))},p=function(){try{d.apply(void 0,arguments)}catch(t){console.error(t);var e=(0,i.default)('<div class="et-tb-admin-load-failure"></div>');e.text((0,l.default)("themeBuilder","Failed to load the Theme Builder")),e.append((0,i.default)("<p></p>").text(t.message)),e.append((0,i.default)("<p></p>").text(t.stack)),(0,i.default)("#et-theme-builder").html(e)}};window.addEventListener("pageshow",(function(){var e=window.performance.getEntriesByType("navigation"),t=window.performance.navigation,r=e.length>0&&"back_forward"===e[0].type,n=t&&t.type===t.TYPE_BACK_FORWARD;(r||n)&&location.reload()})),e((function(){p()}))}).call(this,r(11))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decorator=t.connect=t.Container=void 0;var n=r(393);Object.defineProperty(t,"Container",{enumerable:!0,get:function(){return u(n).default}});var o=u(r(397)),a=r(398),i=u(a);function u(e){return e&&e.__esModule?e:{default:e}}t.connect=(0,i.default)(o.default),t.decorator=(0,a.decoratorFactory)(o.default)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=l(r(0)),a=l(r(1)),i=r(3),u=r(396);function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(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}var f=function(e){function t(){return c(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(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)}(t,e),n(t,[{key:"getChildContext",value:function(){var e=this.props,t=e.app,r=e.controller;return r&&(0,u.DEPRECATE)("Container",'please change from "controller" to "app" property'),t||r||(0,i.throwError)("You are not passing a Cerebral app to Container"),{controller:t||r}}},{key:"render",value:function(){return this.props.children}}]),t}(o.default.Component);f.propTypes={app:a.default.object.isRequired,children:a.default.node.isRequired},f.childContextTypes={controller:a.default.object.isRequired},t.default=f},function(e,t,r){"use strict";var n=r(395);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,a,i){if(i!==n){var u=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 u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return r.PropTypes=r,r}},function(e,t,r){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,r){"use strict";r.r(t);var n=r(2);r.d(t,"getChangedProps",(function(){return n.l})),r.d(t,"cleanPath",(function(){return n.c})),r.d(t,"isObject",(function(){return n.v})),r.d(t,"isComplexObject",(function(){return n.s})),r.d(t,"isSerializable",(function(){return n.w})),r.d(t,"ensurePath",(function(){return n.h})),r.d(t,"throwError",(function(){return n.y})),r.d(t,"isDeveloping",(function(){return n.u})),r.d(t,"debounce",(function(){return n.f})),r.d(t,"forceSerializable",(function(){return n.k})),r.d(t,"getProviders",(function(){return n.n})),r.d(t,"dependencyMatch",(function(){return n.g})),r.d(t,"getWithPath",(function(){return n.r})),r.d(t,"ensureStrictPath",(function(){return n.i})),r.d(t,"createResolver",(function(){return n.e})),r.d(t,"noop",(function(){return n.x})),r.d(t,"createDummyController",(function(){return n.d})),r.d(t,"addCerebralStateKey",(function(){return n.b})),r.d(t,"getStateTreeProp",(function(){return n.q})),r.d(t,"getModule",(function(){return n.m})),r.d(t,"extractModuleProp",(function(){return n.j})),r.d(t,"DEPRECATE",(function(){return n.a})),r.d(t,"getRootPath",(function(){return n.o})),r.d(t,"isComputedValue",(function(){return n.t})),r.d(t,"getStateChanges",(function(){return n.p}));var o=r(187);r.d(t,"BaseModel",(function(){return o.a}));var a=r(21);r.d(t,"ComputedClass",(function(){return a.a}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();t.default=function(e,t,r){var a=function(a){function i(n,o){return l(this,i),c(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e,t,n,o.controller,r.displayName||r.name))}return s(i,a),n(i,[{key:"toJSON",value:function(){return this.view._displayName}},{key:"render",value:function(){return this.view.render(this.props,(function(e){return o.default.createElement(r,e)}))}}]),i}(f);return a.displayName="CerebralWrapping_"+(r.displayName||r.name),a.contextTypes={controller:i.default.object},a};var o=u(r(0)),a=r(3),i=u(r(1));function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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 s(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 f=function(e){function t(e,r,n,o,i){l(this,t);var u=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));return o||(0,a.throwError)("Can not find controller, did you remember to use the Container component? Read more at: http://cerebraljs.com/docs/api/components.html#react"),u.onUpdate=u.onUpdate.bind(u),u.view=new a.View({dependencies:e,mergeProps:r,props:n,controller:o,displayName:i,onUpdate:u.onUpdate}),u.view.mount(),u}return s(t,e),n(t,[{key:"shouldComponentUpdate",value:function(e){return this.view.onPropsUpdate(this.props,e)}},{key:"componentDidMount",value:function(){this.view.dynamicDependencies.length&&this.view.update(this.props)}},{key:"componentDidUpdate",value:function(){this.view.dynamicDependencies.length&&this.view.update(this.props)}},{key:"componentWillUnmount",value:function(){this.view.unMount()}},{key:"onUpdate",value:function(e,t){this.view.updateFromState(e,this.props,t),this.forceUpdate()}}]),t}(o.default.Component)},function(e,t,r){"use strict";function n(e,t,r,n){return r&&!n?(n=r,r=null):r||n||(n=t,t={},r=null),e(t,r,n)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,r,o){return n(e,t,r,o)}};t.decoratorFactory=function(e){return function(t){return function(r){return n(e,t)(r)}}}},function(e,t,r){var n=r(192);e.exports=function(e){var t=n(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}},function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((n=r(401))&&n.__esModule?n:{default:n}).default;t.default=o},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i,u,l,c,s=r(3),f=r(4),d=D(r(13)),p=D(r(402)),y=D(r(405)),m=D(r(425)),h=D(r(427)),b=D(r(428)),v=D(r(507)),g=D(r(508)),O=D(r(510)),_=D(r(522)),w=D(r(524)),T=D(r(526)),E=D(r(532)),P=D(r(539)),j=r(73),S=A(r(541)),I=A(r(542)),M=A(r(164));function C(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(C=function(e){return e?r:t})(e)}function A(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=C(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}function D(e){return e&&e.__esModule?e:{default:e}}function k(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var R={state:{interactive:!0,saveState:f.SAVE_STATE_IDLE,autosave:!d.default.templates.hasDraft,unsavedChanges:!1,unsavedDraftChanges:!1,openModal:null,isHistoryOpen:function(e){return e((0,s.state)(o||(o=k(["openModal"]))))===f.MODAL_TYPE_HISTORY},isVisualBuilderOpen:function(e){return e((0,s.state)(a||(a=k(["openModal"]))))===f.MODAL_TYPE_VISUAL_BUILDER},isDiviLibraryOpen:function(e){return e((0,s.state)(i||(i=k(["openModal"]))))===f.MODAL_TYPE_DIVI_LIBRARY},isThemeBuilderLibraryOpen:function(e){return e((0,s.state)(u||(u=k(["openModal"]))))===f.MODAL_TYPE_THEME_BUILDER_LIBRARY},isPortabilityOpen:function(e){return e((0,s.state)(l||(l=k(["openModal"]))))===f.MODAL_TYPE_PORTABILITY},isSaveToLibraryOpen:function(e){return e((0,s.state)(c||(c=k(["openModal"]))))===f.MODAL_TYPE_SAVE_TO_LIBRARY},isLibraryTemplateEditorOpen:(0,j.isLibraryItemEditorOpen)(f.LIBRARY_ITEM_TYPE_TEMPLATE),isLibraryPresetEditorOpen:(0,j.isLibraryItemEditorOpen)(f.LIBRARY_ITEM_TYPE_SET),cloudStatus:{error:""},cloudToken:"",domainToken:d.default.domainToken},modules:{etAccount:p.default,visualBuilder:y.default,diviLibrary:m.default,themeBuilderLibrary:h.default,templates:b.default,layouts:v.default,history:g.default,portability:O.default,prompts:_.default,clipboard:w.default,librarySave:T.default,libraryUse:E.default,libraryItem:P.default},sequences:M,providers:I,reactions:S};t.default=R},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a=(o=r(13))&&o.__esModule?o:{default:o},i=c(r(403)),u=c(r(404));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function c(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}var s={state:{username:a.default.etAccount.et_username,apiKey:a.default.etAccount.et_api_key,status:a.default.etAccount.status},sequences:i,reactions:u};t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storeETAccount=t.setETAccount=void 0;var n,o,a,i,u,l,c=r(3),s=r(35);function f(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var d=[(0,s.set)((0,c.state)(n||(n=f(["etAccount.username"]))),(0,c.props)(o||(o=f(["username"])))),(0,s.set)((0,c.state)(a||(a=f(["etAccount.apiKey"]))),(0,c.props)(i||(i=f(["apiKey"])))),(0,s.set)((0,c.state)(u||(u=f(["etAccount.status"]))),(0,c.props)(l||(l=f(["status"]))))];t.setETAccount=d;t.storeETAccount=[function(e){var t=e.api,r=e.props,n=r.username,o=r.apiKey,a=r.status;return t.setETAccount(n,o,a)}]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storeETAccount=void 0;var n,o,a=r(3);function i(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var u=(0,a.Reaction)({etAccount:(0,a.state)(n||(n=i(["etAccount"])))},(function(e){var t=e.etAccount,r=e.get;"active"===t.status&&r((0,a.sequences)(o||(o=i(["etAccount.storeETAccount"]))))(t)}));t.storeETAccount=u},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a={state:{target:{url:""}},sequences:function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var l=i?Object.getOwnPropertyDescriptor(e,u):null;l&&(l.get||l.set)?Object.defineProperty(a,u,l):a[u]=e[u]}a.default=e,r&&r.set(e,a);return a}(r(281))};t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAllowedAction=void 0;var n=u(r(282)),o=u(r(5)),a=u(r(10)),i=u(r(12));function u(e){return e&&e.__esModule?e:{default:e}}t.isAllowedAction=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if((0,i.default)(t))return!0;var u=r?"off":"on";return(0,a.default)(t)?(0,n.default)(t,(function(t){return"on"===(0,o.default)(e,t,u)})):"on"===(0,o.default)(e,t,u)}},function(e,t){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}},function(e,t,r){var n=r(85);e.exports=function(e,t){var r=!0;return n(e,(function(e,n,o){return r=!!t(e,n,o)})),r}},function(e,t,r){var n=r(142)(Object.keys,Object);e.exports=n},function(e,t,r){var n=r(28);e.exports=function(e,t){return function(r,o){if(null==r)return r;if(!n(r))return e(r,o);for(var a=r.length,i=t?a:-1,u=Object(r);(t?i--:++i<a)&&!1!==o(u[i],i,u););return r}}},function(e,t,r){var n=r(412),o=r(420),a=r(291);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}},function(e,t,r){var n=r(102),o=r(225);e.exports=function(e,t,r,a){var i=r.length,u=i,l=!a;if(null==e)return!u;for(e=Object(e);i--;){var c=r[i];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<u;){var s=(c=r[i])[0],f=e[s],d=c[1];if(l&&c[2]){if(void 0===f&&!(s in e))return!1}else{var p=new n;if(a)var y=a(f,d,s,e,t,p);if(!(void 0===y?o(d,f,3,a,p):y))return!1}}return!0}},function(e,t,r){var n=r(102),o=r(283),a=r(416),i=r(417),u=r(66),l=r(10),c=r(76),s=r(87),f="[object Arguments]",d="[object Array]",p="[object Object]",y=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,m,h,b){var v=l(e),g=l(t),O=v?d:u(e),_=g?d:u(t),w=(O=O==f?p:O)==p,T=(_=_==f?p:_)==p,E=O==_;if(E&&c(e)){if(!c(t))return!1;v=!0,w=!1}if(E&&!w)return b||(b=new n),v||s(e)?o(e,t,r,m,h,b):a(e,t,O,r,m,h,b);if(!(1&r)){var P=w&&y.call(e,"__wrapped__"),j=T&&y.call(t,"__wrapped__");if(P||j){var S=P?e.value():e,I=j?t.value():t;return b||(b=new n),h(S,I,r,m,b)}}return!!E&&(b||(b=new n),i(e,t,r,m,h,b))}},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,r){var n=r(52),o=r(145),a=r(48),i=r(283),u=r(226),l=r(146),c=n?n.prototype:void 0,s=c?c.valueOf:void 0;e.exports=function(e,t,r,n,c,f,d){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=u;case"[object Set]":var y=1&n;if(p||(p=l),e.size!=t.size&&!y)return!1;var m=d.get(e);if(m)return m==t;n|=2,d.set(e,t);var h=i(p(e),p(t),n,c,f,d);return d.delete(e),h;case"[object Symbol]":if(s)return s.call(e)==s.call(t)}return!1}},function(e,t,r){var n=r(285),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,a,i,u){var l=1&r,c=n(e),s=c.length;if(s!=n(t).length&&!l)return!1;for(var f=s;f--;){var d=c[f];if(!(l?d in t:o.call(t,d)))return!1}var p=u.get(e),y=u.get(t);if(p&&y)return p==t&&y==e;var m=!0;u.set(e,t),u.set(t,e);for(var h=l;++f<s;){var b=e[d=c[f]],v=t[d];if(a)var g=l?a(v,b,d,t,e,u):a(b,v,d,e,t,u);if(!(void 0===g?b===v||i(b,v,r,a,u):g)){m=!1;break}h||(h="constructor"==d)}if(m&&!h){var O=e.constructor,_=t.constructor;O==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof O&&O instanceof O&&"function"==typeof _&&_ instanceof _||(m=!1)}return u.delete(e),u.delete(t),m}},function(e,t,r){var n=r(47)(r(20),"DataView");e.exports=n},function(e,t,r){var n=r(47)(r(20),"Promise");e.exports=n},function(e,t,r){var n=r(290),o=r(27);e.exports=function(e){for(var t=o(e),r=t.length;r--;){var a=t[r],i=e[a];t[r]=[a,i,n(i)]}return t}},function(e,t,r){var n=r(225),o=r(5),a=r(292),i=r(189),u=r(290),l=r(291),c=r(84);e.exports=function(e,t){return i(e)&&u(t)?l(c(e),t):function(r){var i=o(r,e);return void 0===i&&i===t?a(r,e):n(t,i,3)}}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,r){var n=r(294),o=r(424),a=r(189),i=r(84);e.exports=function(e){return a(e)?n(i(e)):o(e)}},function(e,t,r){var n=r(115);e.exports=function(e){return function(t){return n(t,e)}}},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}function a(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var l=i?Object.getOwnPropertyDescriptor(e,u):null;l&&(l.get||l.set)?Object.defineProperty(a,u,l):a[u]=e[u]}return a.default=e,r&&r.set(e,a),a}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={state:{loaded:!1,target:{templateId:"",layoutType:""},layouts:{local:{},custom:{}},page:{url:"",previousUrl:"",showBackButton:""},import:{loading:!1,error:"",progress:{show:!1,completed:!1,value:0,estimate:1},layout:{id:0}}},sequences:a(r(229)),providers:a(r(426))};t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.libraryApi=void 0;var n,o=(n=r(13))&&n.__esModule?n:{default:n},a=r(297);var i={getLayouts:function(){return(0,a.post)({action:"et_builder_library_get_layouts_data",nonce:o.default.nonces.et_builder_library_get_layouts_data})}};t.libraryApi=i},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a=s(r(5)),i=r(3),u=s(r(7)),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(231));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}function s(e){return e&&e.__esModule?e:{default:e}}var f={template:[],set:["preview"]},d={state:{page:{url:"",previousUrl:"",showBackButton:!1,title:(0,u.default)("themeBuilder","Load From Library")},themeBuilderItemType:"",themeBuilderItems:{},loaded:!1,unsupportedMenuItems:function(e){var t,r,n=e((0,i.state)(o||(t=["themeBuilderLibrary.themeBuilderItemType"],r||(r=t.slice(0)),o=Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(r)}})))));return(0,a.default)(f,n,[])},loadedAndCached:{set:!1,template:!1}},sequences:l};t.default=d},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i,u=r(3),l=h(r(19)),c=h(r(12)),s=h(r(23)),f=r(34),d=m(r(250)),p=m(r(506));function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(y=function(e){return e?r:t})(e)}function m(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=y(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}function h(e){return e&&e.__esModule?e:{default:e}}function b(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var v=(0,f.getInitialState)(),g={state:{templates:v.templates,justCloned:"",templateIdMap:v.templateIdMap,draft:v.draft,templateIds:v.templateIds,defaultTemplate:v.defaultTemplate,settingGroups:v.settingGroups,settings:v.settings,settingsChildren:function(e){var t=e((0,u.state)(o||(o=b(["templates.settings"])))),r={};return(0,l.default)(t,(function(e){var t=(0,s.default)(e.parent)||(0,c.default)(e.parent),n=t?e.id:e.parent;(0,s.default)(r[n])&&(r[n]={}),t||(r[n][e.id]=e)})),r},deleteGlobalLayout:{step:0,steps:0,progress:function(e){var t=e((0,u.state)(a||(a=b(["templates.deleteGlobalLayout.step"])))),r=e((0,u.state)(i||(i=b(["templates.deleteGlobalLayout.steps"]))));return 0===r?0:Math.min(Math.floor(t/r*100),100)}}},sequences:d,reactions:p};t.default=g},function(e,t,r){var n=r(49);e.exports=function(e,t){return n(t,(function(t){return e[t]}))}},function(e,t,r){var n=r(68),o=r(69);e.exports=function(e,t){return e&&n(t,o(t),e)}},function(e,t,r){var n=r(68),o=r(227);e.exports=function(e,t){return n(e,o(e),t)}},function(e,t,r){var n=r(68),o=r(299);e.exports=function(e,t){return n(e,o(e),t)}},function(e,t){var r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&r.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},function(e,t,r){var n=r(120),o=r(435),a=r(436),i=r(437),u=r(152);e.exports=function(e,t,r){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return o(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return u(e,r);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return a(e);case"[object Symbol]":return i(e)}}},function(e,t,r){var n=r(120);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},function(e,t){var r=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,r.exec(e));return t.lastIndex=e.lastIndex,t}},function(e,t,r){var n=r(52),o=n?n.prototype:void 0,a=o?o.valueOf:void 0;e.exports=function(e){return a?Object(a.call(e)):{}}},function(e,t,r){var n=r(439),o=r(65),a=r(101),i=a&&a.isMap,u=i?o(i):n;e.exports=u},function(e,t,r){var n=r(66),o=r(22);e.exports=function(e){return o(e)&&"[object Map]"==n(e)}},function(e,t,r){var n=r(441),o=r(65),a=r(101),i=a&&a.isSet,u=i?o(i):n;e.exports=u},function(e,t,r){var n=r(66),o=r(22);e.exports=function(e){return o(e)&&"[object Set]"==n(e)}},function(e,t,r){var n=r(52),o=r(75),a=r(10),i=n?n.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||o(e)||!!(i&&e&&e[i])}},function(e,t){e.exports=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}},function(e,t,r){var n=r(445);e.exports=function(e,t,r){for(var o=-1,a=e.criteria,i=t.criteria,u=a.length,l=r.length;++o<u;){var c=n(a[o],i[o]);if(c)return o>=l?c:c*("desc"==r[o]?-1:1)}return e.index-t.index}},function(e,t,r){var n=r(97);e.exports=function(e,t){if(e!==t){var r=void 0!==e,o=null===e,a=e==e,i=n(e),u=void 0!==t,l=null===t,c=t==t,s=n(t);if(!l&&!s&&!i&&e>t||i&&u&&c&&!l&&!s||o&&u&&c||!r&&c||!a)return 1;if(!o&&!i&&!s&&e<t||s&&r&&a&&!o&&!i||l&&r&&a||!u&&a||!c)return-1}return 0}},function(e,t,r){var n=r(85);e.exports=function(e,t){var r;return n(e,(function(e,n,o){return!(r=t(e,n,o))})),!!r}},function(e,t){e.exports=function(e,t,r,n){for(var o=-1,a=null==e?0:e.length;++o<a;){var i=e[o];t(n,i,r(i),e)}return n}},function(e,t,r){var n=r(85);e.exports=function(e,t,r,o){return n(e,(function(e,n,a){t(o,e,r(e),a)})),o}},function(e,t){e.exports=function(e,t,r,n,o){return o(e,(function(e,o,a){r=n?(n=!1,e):t(r,e,o,a)})),r}},function(e,t,r){var n=r(37),o=r(28),a=r(27);e.exports=function(e){return function(t,r,i){var u=Object(t);if(!o(t)){var l=n(r,3);t=a(t),r=function(e){return l(u[e],e,u)}}var c=e(t,r,i);return c>-1?u[l?t[c]:c]:void 0}}},function(e,t,r){var n=r(85);e.exports=function(e,t){var r=[];return n(e,(function(e,n,o){t(e,n,o)&&r.push(e)})),r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setArgs=t.setArg=t.rmArg=t.isJquerySrc=t.getUrlFileName=t.getArgs=t.getArg=t.default=t.clearArgs=void 0;var n=T(r(311)),o=T(r(246)),a=T(r(478)),i=T(r(325)),u=T(r(326)),l=T(r(327)),c=T(r(328)),s=T(r(486)),f=T(r(487)),d=T(r(489)),p=T(r(494)),y=T(r(495)),m=T(r(496)),h=T(r(499)),b=T(r(500)),v=T(r(501)),g=T(r(39)),O=T(r(51)),_=T(r(19)),w=r(503);function T(e){return e&&e.__esModule?e:{default:e}}function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){j(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function j(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var S=[],I=(0,o.default)((0,f.default)("&"),(0,s.default)((0,f.default)("=")),d.default),M=(0,o.default)((function(e){return(0,y.default)(e,"/")}),l.default,(0,u.default)("?"),i.default);t.clearArgs=M;var C=(0,o.default)(p.default,(0,h.default)((0,o.default)((0,v.default)(b.default),l.default)),(0,s.default)((0,u.default)("=")),(0,u.default)("&"),c.default,(0,u.default)("?"),i.default);t.getArgs=C;var A=(0,n.default)((function(e,t){return(0,a.default)(e,C(t))}));t.getArg=A;var D=(0,n.default)((function(e,t){return"".concat(M(t),"?").concat(I(P(P({},C(t)),e)))}));t.setArgs=D;var k=(0,n.default)((function(e,t,r){return D(j({},e,t),r)}));t.setArg=k;var R=(0,n.default)((function(e,t){return D((0,m.default)(e,C(t)),M(t))}));t.rmArg=R;var x=function(e){return(0,g.default)(e)?e.split("/").pop().split("?").shift():""};t.getUrlFileName=x;var L=function(e){if(!(0,g.default)(e))return!1;var t=x(e).toLowerCase();return-1!==t.indexOf("jquery")&&((0,b.default)(S)&&(S=["jquery.js","jquery.min.js"],(0,_.default)(w.versions,(function(e){S.push("jquery-".concat(e,".js")),S.push("jquery-".concat(e,".min.js"))}))),(0,O.default)(S,t))};t.isJquerySrc=L;var B={getArgs:C,getArg:A,clearArgs:M,setArgs:D,setArg:k,rmArg:R,getUrlFileName:x,isJquerySrc:L};t.default=B},function(e,t,r){var n=r(454),o=r(24),a=Array.prototype.push;function i(e,t){return 2==t?function(t,r){return e(t,r)}:function(t){return e(t)}}function u(e){for(var t=e?e.length:0,r=Array(t);t--;)r[t]=e[t];return r}function l(e,t){return function(){var r=arguments.length;if(r){for(var n=Array(r);r--;)n[r]=arguments[r];var o=n[0]=t.apply(void 0,n);return e.apply(void 0,n),o}}}e.exports=function e(t,r,c,s){var f="function"==typeof r,d=r===Object(r);if(d&&(s=c,c=r,r=void 0),null==c)throw new TypeError;s||(s={});var p=!("cap"in s)||s.cap,y=!("curry"in s)||s.curry,m=!("fixed"in s)||s.fixed,h=!("immutable"in s)||s.immutable,b=!("rearg"in s)||s.rearg,v=f?c:o,g="curry"in s&&s.curry,O="fixed"in s&&s.fixed,_="rearg"in s&&s.rearg,w=f?c.runInContext():void 0,T=f?c:{ary:t.ary,assign:t.assign,clone:t.clone,curry:t.curry,forEach:t.forEach,isArray:t.isArray,isError:t.isError,isFunction:t.isFunction,isWeakMap:t.isWeakMap,iteratee:t.iteratee,keys:t.keys,rearg:t.rearg,toInteger:t.toInteger,toPath:t.toPath},E=T.ary,P=T.assign,j=T.clone,S=T.curry,I=T.forEach,M=T.isArray,C=T.isError,A=T.isFunction,D=T.isWeakMap,k=T.keys,R=T.rearg,x=T.toInteger,L=T.toPath,B=k(n.aryMethod),N={castArray:function(e){return function(){var t=arguments[0];return M(t)?e(u(t)):e.apply(void 0,arguments)}},iteratee:function(e){return function(){var t=arguments[0],r=arguments[1],n=e(t,r),o=n.length;return p&&"number"==typeof r?(r=r>2?r-2:1,o&&o<=r?n:i(n,r)):n}},mixin:function(e){return function(t){var r=this;if(!A(r))return e(r,Object(t));var n=[];return I(k(t),(function(e){A(t[e])&&n.push([e,r.prototype[e]])})),e(r,Object(t)),I(n,(function(e){var t=e[1];A(t)?r.prototype[e[0]]=t:delete r.prototype[e[0]]})),r}},nthArg:function(e){return function(t){var r=t<0?1:x(t)+1;return S(e(t),r)}},rearg:function(e){return function(t,r){var n=r?r.length:0;return S(e(t,r),n)}},runInContext:function(r){return function(n){return e(t,r(n),s)}}};function U(e,t){if(p){var r=n.iterateeRearg[e];if(r)return function(e,t){return Y(e,(function(e){var r=t.length;return function(e,t){return 2==t?function(t,r){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}(R(i(e,r),t),r)}))}(t,r);var o=!f&&n.iterateeAry[e];if(o)return function(e,t){return Y(e,(function(e){return"function"==typeof e?i(e,t):e}))}(t,o)}return t}function W(e,t,r){if(m&&(O||!n.skipFixed[e])){var o=n.methodSpread[e],i=o&&o.start;return void 0===i?E(t,r):function(e,t){return function(){for(var r=arguments.length,n=r-1,o=Array(r);r--;)o[r]=arguments[r];var i=o[t],u=o.slice(0,t);return i&&a.apply(u,i),t!=n&&a.apply(u,o.slice(t+1)),e.apply(this,u)}}(t,i)}return t}function F(e,t,r){return b&&r>1&&(_||!n.skipRearg[e])?R(t,n.methodRearg[e]||n.aryRearg[r]):t}function z(e,t){for(var r=-1,n=(t=L(t)).length,o=n-1,a=j(Object(e)),i=a;null!=i&&++r<n;){var u=t[r],l=i[u];null==l||A(l)||C(l)||D(l)||(i[u]=j(r==o?l:Object(l))),i=i[u]}return a}function H(t,r){var o=n.aliasToReal[t]||t,a=n.remap[o]||o,i=s;return function(t){var n=f?w:T,u=f?w[a]:r,l=P(P({},i),t);return e(n,o,u,l)}}function Y(e,t){return function(){var r=arguments.length;if(!r)return e();for(var n=Array(r);r--;)n[r]=arguments[r];var o=b?0:r-1;return n[o]=t(n[o]),e.apply(void 0,n)}}function V(e,t,r){var o,a=n.aliasToReal[e]||e,i=t,c=N[a];return c?i=c(t):h&&(n.mutate.array[a]?i=l(t,u):n.mutate.object[a]?i=l(t,function(e){return function(t){return e({},t)}}(t)):n.mutate.set[a]&&(i=l(t,z))),I(B,(function(e){return I(n.aryMethod[e],(function(t){if(a==t){var r=n.methodSpread[a],u=r&&r.afterRearg;return o=u?W(a,F(a,i,e),e):F(a,W(a,i,e),e),o=function(e,t,r){return g||y&&r>1?S(t,r):t}(0,o=U(a,o),e),!1}})),!o})),o||(o=i),o==t&&(o=g?S(o,1):function(){return t.apply(this,arguments)}),o.convert=H(a,t),o.placeholder=t.placeholder=r,o}if(!d)return V(r,c,v);var q=c,G=[];return I(B,(function(e){I(n.aryMethod[e],(function(e){var t=q[n.remap[e]||e];t&&G.push([e,V(e,t,q)])}))})),I(k(q),(function(e){var t=q[e];if("function"==typeof t){for(var r=G.length;r--;)if(G[r][0]==e)return;t.convert=H(e,t),G.push([e,t])}})),I(G,(function(e){q[e[0]]=e[1]})),q.convert=function(e){return q.runInContext.convert(e)(void 0)},q.placeholder=q,I(k(q),(function(e){I(n.realToAlias[e]||[],(function(t){q[t]=q[e]}))})),q}},function(e,t){t.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},t.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},t.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},t.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},t.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},t.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},t.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},t.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},t.realToAlias=function(){var e=Object.prototype.hasOwnProperty,r=t.aliasToReal,n={};for(var o in r){var a=r[o];e.call(n,a)?n[a].push(o):n[a]=[o]}return n}(),t.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},t.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},t.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},function(e,t,r){e.exports={ary:r(456),assign:r(298),clone:r(322),curry:r(323),forEach:r(149),isArray:r(10),isError:r(471),isFunction:r(36),isWeakMap:r(472),iteratee:r(473),keys:r(141),rearg:r(474),toInteger:r(29),toPath:r(475)}},function(e,t,r){var n=r(158);e.exports=function(e,t,r){return t=r?void 0:t,t=e&&null==t?e.length:t,n(e,128,void 0,void 0,void 0,void 0,t)}},function(e,t,r){var n=r(159),o=r(20);e.exports=function(e,t,r){var a=1&t,i=n(e);return function t(){var n=this&&this!==o&&this instanceof t?i:e;return n.apply(a?r:this,arguments)}}},function(e,t,r){var n=r(121),o=r(159),a=r(314),i=r(317),u=r(244),l=r(161),c=r(20);e.exports=function(e,t,r){var s=o(e);return function o(){for(var f=arguments.length,d=Array(f),p=f,y=u(o);p--;)d[p]=arguments[p];var m=f<3&&d[0]!==y&&d[f-1]!==y?[]:l(d,y);if((f-=m.length)<r)return i(e,t,a,o.placeholder,void 0,d,m,void 0,void 0,r-f);var h=this&&this!==c&&this instanceof o?s:e;return n(h,this,d)}}},function(e,t){e.exports=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}},function(e,t){e.exports={}},function(e,t,r){var n=r(240),o=r(243),a=r(241),i=r(10),u=r(22),l=r(462),c=Object.prototype.hasOwnProperty;function s(e){if(u(e)&&!i(e)&&!(e instanceof n)){if(e instanceof o)return e;if(c.call(e,"__wrapped__"))return l(e)}return new o(e)}s.prototype=a.prototype,s.prototype.constructor=s,e.exports=s},function(e,t,r){var n=r(240),o=r(243),a=r(70);e.exports=function(e){if(e instanceof n)return e.clone();var t=new o(e.__wrapped__,e.__chain__);return t.__actions__=a(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}},function(e,t){var r=/\{\n\/\* \[wrapped with (.+)\] \*/,n=/,? & /;e.exports=function(e){var t=e.match(r);return t?t[1].split(n):[]}},function(e,t){var r=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;e.exports=function(e,t){var n=t.length;if(!n)return e;var o=n-1;return t[o]=(n>1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(r,"{\n/* [wrapped with "+t+"] */\n")}},function(e,t,r){var n=r(149),o=r(160),a=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];e.exports=function(e,t){return n(a,(function(r){var n="_."+r[0];t&r[1]&&!o(e,n)&&e.push(n)})),e.sort()}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}},function(e,t,r){var n=r(70),o=r(64),a=Math.min;e.exports=function(e,t){for(var r=e.length,i=a(t.length,r),u=n(e);i--;){var l=t[i];e[i]=o(l,r)?u[l]:void 0}return e}},function(e,t,r){var n=r(121),o=r(159),a=r(20);e.exports=function(e,t,r,i){var u=1&t,l=o(e);return function t(){for(var o=-1,c=arguments.length,s=-1,f=i.length,d=Array(f+c),p=this&&this!==a&&this instanceof t?l:e;++s<f;)d[s]=i[s];for(;c--;)d[s++]=arguments[++o];return n(p,u?r:this,d)}}},function(e,t,r){var n=r(315),o=r(316),a=r(161),i="__lodash_placeholder__",u=128,l=Math.min;e.exports=function(e,t){var r=e[1],c=t[1],s=r|c,f=s<131,d=c==u&&8==r||c==u&&256==r&&e[7].length<=t[8]||384==c&&t[7].length<=t[8]&&8==r;if(!f&&!d)return e;1&c&&(e[2]=t[2],s|=1&r?0:4);var p=t[3];if(p){var y=e[3];e[3]=y?n(y,p,t[4]):p,e[4]=y?a(e[3],i):t[4]}return(p=t[5])&&(y=e[5],e[5]=y?o(y,p,t[6]):p,e[6]=y?a(e[5],i):t[6]),(p=t[7])&&(e[7]=p),c&u&&(e[8]=null==e[8]?t[8]:l(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=s,e}},function(e,t,r){var n=r(31),o=r(22),a=r(43);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!a(e)}},function(e,t,r){var n=r(66),o=r(22);e.exports=function(e){return o(e)&&"[object WeakMap]"==n(e)}},function(e,t,r){var n=r(150),o=r(37);e.exports=function(e){return o("function"==typeof e?e:n(e,1))}},function(e,t,r){var n=r(158),o=r(162),a=o((function(e,t){return n(e,256,void 0,void 0,void 0,t)}));e.exports=a},function(e,t,r){var n=r(49),o=r(70),a=r(10),i=r(97),u=r(279),l=r(84),c=r(16);e.exports=function(e){return a(e)?n(e,l):i(e)?[e]:o(u(c(e)))}},function(e,t,r){var n=r(26)("flowRight",r(477));n.placeholder=r(24),e.exports=n},function(e,t,r){var n=r(324)(!0);e.exports=n},function(e,t,r){e.exports=r(479)},function(e,t,r){var n=r(26)("get",r(5));n.placeholder=r(24),e.exports=n},function(e,t,r){var n=r(99),o=r(247),a=r(248),i=r(53),u=r(481),l=r(163),c=r(16);e.exports=function(e,t,r){return r&&"number"!=typeof r&&i(e,t,r)&&(t=r=void 0),(r=void 0===r?4294967295:r>>>0)?(e=c(e))&&("string"==typeof t||null!=t&&!u(t))&&!(t=n(t))&&a(e)?o(l(e),0,r):e.split(t,r):[]}},function(e,t,r){var n=r(482),o=r(65),a=r(101),i=a&&a.isRegExp,u=i?o(i):n;e.exports=u},function(e,t,r){var n=r(31),o=r(22);e.exports=function(e){return o(e)&&"[object RegExp]"==n(e)}},function(e,t){e.exports=function(e){return e.split("")}},function(e,t){var r="[\\ud800-\\udfff]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",a="[^\\ud800-\\udfff]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+n+"|"+o+")"+"?",c="[\\ufe0e\\ufe0f]?",s=c+l+("(?:\\u200d(?:"+[a,i,u].join("|")+")"+c+l+")*"),f="(?:"+[a+n+"?",n,i,u,r].join("|")+")",d=RegExp(o+"(?="+o+")|"+f+s,"g");e.exports=function(e){return e.match(d)||[]}},function(e,t,r){var n=r(125);e.exports=function(e){var t=null==e?0:e.length;return t?n(e,1,t):[]}},function(e,t,r){var n=r(26)("map",r(17));n.placeholder=r(24),e.exports=n},function(e,t,r){var n=r(26)("join",r(488));n.placeholder=r(24),e.exports=n},function(e,t){var r=Array.prototype.join;e.exports=function(e,t){return null==e?"":r.call(e,t)}},function(e,t,r){var n=r(26)("toPairs",r(490),r(90));n.placeholder=r(24),e.exports=n},function(e,t,r){var n=r(491)(r(27));e.exports=n},function(e,t,r){var n=r(492),o=r(66),a=r(226),i=r(493);e.exports=function(e){return function(t){var r=o(t);return"[object Map]"==r?a(t):"[object Set]"==r?i(t):n(t,e(t))}}},function(e,t,r){var n=r(49);e.exports=function(e,t){return n(t,(function(t){return[t,e[t]]}))}},function(e,t){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=[e,e]})),r}},function(e,t,r){var n=r(26)("fromPairs",r(329));n.placeholder=r(24),e.exports=n},function(e,t,r){var n=r(99),o=r(247),a=r(330),i=r(163),u=r(16),l=r(309);e.exports=function(e,t,r){if((e=u(e))&&(r||void 0===t))return e.slice(0,l(e)+1);if(!e||!(t=n(t)))return e;var c=i(e),s=a(c,i(t))+1;return o(c,0,s).join("")}},function(e,t,r){var n=r(26)("omit",r(331));n.placeholder=r(24),e.exports=n},function(e,t,r){var n=r(115),o=r(125);e.exports=function(e,t){return t.length<2?e:n(e,o(t,0,-1))}},function(e,t,r){var n=r(43);e.exports=function(e){return n(e)?void 0:e}},function(e,t,r){var n=r(26)("filter",r(32));n.placeholder=r(24),e.exports=n},function(e,t,r){var n=r(26)("isEmpty",r(12),r(90));n.placeholder=r(24),e.exports=n},function(e,t,r){var n=r(26)("negate",r(502),r(90));n.placeholder=r(24),e.exports=n},function(e,t){e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.versions=t.default=void 0;var n=["1.12.4","1.12.3","1.12.2","1.12.1","1.12.0","1.11.3","1.11.2","1.11.1","1.11.0","1.10.2","1.10.1","1.10.0","1.9.1","1.9.0","1.8.3","1.8.2","1.8.1","1.8.0","1.7.2","1.7.1","1.7.0","1.7.0","1.6.4","1.6.3","1.6.2","1.6.1","1.6.0","1.5.2","1.5.1","1.5.0","1.4.4","1.4.3","1.4.2","1.4.1","1.4.0","1.3.2","1.3.1","1.3.0","1.2.6","1.2.5","1.2.4","1.2.3","1.2.2","1.2.1","1.2.0","1.1.4","1.1.3","1.1.2","1.1.1","1.1.0","1.0.4","1.0.3","1.0.2","1.0.1","1.0.0","2.2.4","2.2.3","2.2.2","2.2.1","2.2.0","2.1.4","2.1.3","2.1.2","2.1.1","2.1.0","2.0.3","2.0.2","2.0.1","2.0.0","3.4.1","3.4.0","3.3.1","3.3.0","3.2.1","3.2.0","3.1.1","3.1.0","3.0.0"];t.versions=n;var o={versions:n};t.default=o},function(e,t,r){var n=r(249);e.exports=function(e,t){return null==e||n(e,t)}},function(e,t,r){var n=r(332)("floor");e.exports=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.optimizationSetTemplateIds=t.optimizationSetDefaultTemplate=t.optimizationSetAutomaticTitles=t.assignLayoutToTemplateOnLibraryClosure=void 0;var n,o,a,i,u,l,c,s,f,d,p,y,m,h,b,v,g=r(3),O=(n=r(12))&&n.__esModule?n:{default:n},_=r(34);function w(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var T=(0,g.Reaction)({openModal:(0,g.state)(o||(o=w(["openModal"]))),open:(0,g.state)(a||(a=w(["isDiviLibraryOpen"])))},(function(e){var t=e.open,r=e.get;if(!t){var n=r((0,g.state)(i||(i=w(["diviLibrary.target"])))),o=r((0,g.state)(u||(u=w(["diviLibrary.import.layout.id"]))));(0,O.default)(n.templateId)||(0,O.default)(o)||(r((0,g.sequences)(l||(l=w(["templates.setLayout"]))))({templateId:n.templateId,layoutType:n.layoutType,layoutId:o}),r((0,g.sequences)(c||(c=w(["diviLibrary.clearLibraryTarget"]))))())}}));t.assignLayoutToTemplateOnLibraryClosure=T;var E=(0,g.Reaction)({settings:(0,g.state)(s||(s=w(["templates.settings"]))),templates:(0,g.state)(f||(f=w(["templates.templates"])))},(function(e){var t=e.get,r=e.settings,n=e.templates,o=t((0,g.sequences)(d||(d=w(["templates.optimizationSetAutomaticTitleAndMeta"]))));(0,_.optimizationSetAutomaticTitles)(n,r,(function(e,t,r){o({templateId:e,automaticTitle:t,automaticMeta:r})}))}));t.optimizationSetAutomaticTitles=E;var P=(0,g.Reaction)({templates:(0,g.state)(p||(p=w(["templates.templates"])))},(function(e){var t=e.get,r=e.templates;(0,_.optimizationSetTemplateIds)(r,t((0,g.state)(y||(y=w(["templates.templateIds"])))),(function(e){t((0,g.sequences)(m||(m=w(["templates.optimizationSetTemplateIds"]))))({templateIds:e})}))}));t.optimizationSetTemplateIds=P;var j=(0,g.Reaction)({templates:(0,g.state)(h||(h=w(["templates.templates"])))},(function(e){var t=e.get,r=e.templates;(0,_.optimizationSetDefaultTemplate)(r,t((0,g.state)(b||(b=w(["templates.defaultTemplate"])))),(function(e){t((0,g.sequences)(v||(v=w(["templates.optimizationSetDefaultTemplate"]))))({templateId:e})}))}));t.optimizationSetDefaultTemplate=j},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a={state:{editUrls:{},hovered:{templateId:null,layoutId:null,layoutType:null}},sequences:function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var l=i?Object.getOwnPropertyDescriptor(e,u):null;l&&(l.get||l.set)?Object.defineProperty(a,u,l):a[u]=e[u]}a.default=e,r&&r.set(e,a);return a}(r(334))};t.default=a},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a=(o=r(7))&&o.__esModule?o:{default:o},i=r(34),u=r(333),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(509));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}var s=(0,i.getInitialState)(),f={state:{currentPoint:0,points:[(0,u.createHistoryPoint)((0,a.default)("themeBuilder","Loaded Theme Builder"),s.templates,s.defaultTemplate,s.templateIdMap.live)]},sequences:l};t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.undo=t.restoreHistoryPoint=t.redo=t.openHistory=t.closeHistory=void 0;var n,o,a,i,u,l,c,s,f,d,p=r(3),y=(n=r(67))&&n.__esModule?n:{default:n},m=r(4),h=r(73);function b(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var v=[(0,h.openModal)(m.MODAL_TYPE_HISTORY)];t.openHistory=v;var g=[(0,h.closeModal)(m.MODAL_TYPE_HISTORY)];t.closeHistory=g;var O=[function(e){var t=e.get,r=e.props.index,n=e.store,c=t((0,p.state)(o||(o=b(["history.points.",""])),r));c&&(n.set((0,p.state)(a||(a=b(["templates.templates"]))),(0,y.default)(c.state.templates)),n.set((0,p.state)(i||(i=b(["templates.defaultTemplate"]))),c.state.defaultTemplate),n.set((0,p.state)(u||(u=b(["templates.templateIdMap.live"]))),(0,y.default)(c.state.idMap)),n.set((0,p.state)(l||(l=b(["history.currentPoint"]))),r))}];t.restoreHistoryPoint=O;var _=[function(e){var t=e.get;return t((0,p.sequences)(c||(c=b(["history.restoreHistoryPoint"]))))({index:t((0,p.state)(s||(s=b(["history.currentPoint"]))))-1})}];t.undo=_;var w=[function(e){var t=e.get;return t((0,p.sequences)(f||(f=b(["history.restoreHistoryPoint"]))))({index:t((0,p.state)(d||(d=b(["history.currentPoint"]))))+1})}];t.redo=w},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i,u,l,c,s,f,d,p,y,m,h,b=r(3),v=r(4),g=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=O(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(165));function O(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(O=function(e){return e?r:t})(e)}function _(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var w=function(e){return function(t){var r=t((0,b.state)(o||(o=_(["portability.",".step"])),e)),n=t((0,b.state)(a||(a=_(["portability.",".steps"])),e));return 0!==n?r/n:0}},T=function(e){return function(t){var r=t((0,b.state)(i||(i=_(["portability.",".steps"])),e)),n=t((0,b.state)(u||(u=_(["portability.",".progress"])),e)),o=Math.round(20*r/60);return Math.ceil(o*(1-n))}},E={state:{state:v.PORTABILITY_STATE_DEFAULT,loading:function(e){return e((0,b.state)(l||(l=_(["portability.export.state"]))))!==v.EXPORT_STATE_IDLE||e((0,b.state)(c||(c=_(["portability.import.state"]))))!==v.IMPORT_STATE_IDLE&&e((0,b.state)(s||(s=_(["portability.import.state"]))))!==v.IMPORT_STATE_INCOMING_LAYOUT_DUPLICATE_DECISION},export:{templateId:"",state:v.EXPORT_STATE_IDLE,id:"",step:0,steps:0,progress:w("export"),estimate:T("export"),libraryItemType:null,cloudContent:{},items:[]},import:{state:v.IMPORT_STATE_IDLE,error:"",id:"",backupStep:0,backupSteps:0,importStep:0,importSteps:0,step:function(e){return e((0,b.state)(f||(f=_(["portability.export.step"]))))+e((0,b.state)(d||(d=_(["portability.import.backupStep"]))))+e((0,b.state)(p||(p=_(["portability.import.importStep"]))))},steps:function(e){return e((0,b.state)(y||(y=_(["portability.export.step"]))))+e((0,b.state)(m||(m=_(["portability.import.backupSteps"]))))+e((0,b.state)(h||(h=_(["portability.import.importSteps"]))))},progress:w("import"),estimate:T("import")}},sequences:g};t.default=E},function(e,t,r){var n=r(336),o=r(99),a=r(29),i=r(16);e.exports=function(e,t,r){e=i(e),t=o(t);var u=e.length,l=r=void 0===r?u:n(a(r),0,u);return(r-=t.length)>=0&&e.slice(r,l)==t}},function(e,t,r){"use strict";function n(e){this.message=e}r.r(t),r.d(t,"InvalidTokenError",(function(){return i})),n.prototype=new Error,n.prototype.name="InvalidCharacterError";var o="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,o,a=0,i=0,u="";o=t.charAt(i++);~o&&(r=a%4?64*r+o:o,a++%4)?u+=String.fromCharCode(255&r>>(-2*a&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return u};function a(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(o(e).replace(/(.)/g,(function(e,t){var r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(t)}catch(e){return o(t)}}function i(e){this.message=e}i.prototype=new Error,i.prototype.name="InvalidTokenError",t.default=function(e,t){if("string"!=typeof e)throw new i("Invalid token specified");var r=!0===(t=t||{}).header?0:1;try{return JSON.parse(a(e.split(".")[r]))}catch(e){throw new i("Invalid token specified: "+e.message)}}},function(e,t){var r=Object.prototype.hasOwnProperty;e.exports=function(e,t){return null!=e&&r.call(e,t)}},function(e,t,r){(function(t){e.exports=function e(t,r,n){function o(i,u){if(!r[i]){if(!t[i]){if(a)return a(i,!0);var l=new Error("Cannot find module '"+i+"'");throw l.code="MODULE_NOT_FOUND",l}var c=r[i]={exports:{}};t[i][0].call(c.exports,(function(e){var r=t[i][1][e];return o(r||e)}),c,c.exports,e,t,r,n)}return r[i].exports}for(var a=!1,i=0;i<n.length;i++)o(n[i]);return o}({1:[function(e,r,n){(function(e){"use strict";var t,n,o=e.MutationObserver||e.WebKitMutationObserver;if(o){var a=0,i=new o(s),u=e.document.createTextNode("");i.observe(u,{characterData:!0}),t=function(){u.data=a=++a%2}}else if(e.setImmediate||void 0===e.MessageChannel)t="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){s(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(s,0)};else{var l=new e.MessageChannel;l.port1.onmessage=s,t=function(){l.port2.postMessage(0)}}var c=[];function s(){var e,t;n=!0;for(var r=c.length;r;){for(t=c,c=[],e=-1;++e<r;)t[e]();r=c.length}n=!1}function f(e){1!==c.push(e)||n||t()}r.exports=f}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,r){"use strict";var n=e(1);function o(){}var a={},i=["REJECTED"],u=["FULFILLED"],l=["PENDING"];function c(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==o&&p(this,e)}function s(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function f(e,t,r){n((function(){var n;try{n=t(r)}catch(t){return a.reject(e,t)}n===e?a.reject(e,new TypeError("Cannot resolve promise with itself")):a.resolve(e,n)}))}function d(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function p(e,t){var r=!1;function n(t){r||(r=!0,a.reject(e,t))}function o(t){r||(r=!0,a.resolve(e,t))}function i(){t(o,n)}var u=y(i);"error"===u.status&&n(u.value)}function y(e,t){var r={};try{r.value=e(t),r.status="success"}catch(e){r.status="error",r.value=e}return r}function m(e){return e instanceof this?e:a.resolve(new this(o),e)}function h(e){var t=new this(o);return a.reject(t,e)}function b(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);for(var i=new Array(r),u=0,l=-1,c=new this(o);++l<r;)s(e[l],l);return c;function s(e,o){function l(e){i[o]=e,++u!==r||n||(n=!0,a.resolve(c,i))}t.resolve(e).then(l,(function(e){n||(n=!0,a.reject(c,e))}))}}function v(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);for(var i=-1,u=new this(o);++i<r;)l(e[i]);return u;function l(e){t.resolve(e).then((function(e){n||(n=!0,a.resolve(u,e))}),(function(e){n||(n=!0,a.reject(u,e))}))}}t.exports=c,c.prototype.catch=function(e){return this.then(null,e)},c.prototype.then=function(e,t){if("function"!=typeof e&&this.state===u||"function"!=typeof t&&this.state===i)return this;var r=new this.constructor(o);return this.state!==l?f(r,this.state===u?e:t,this.outcome):this.queue.push(new s(r,e,t)),r},s.prototype.callFulfilled=function(e){a.resolve(this.promise,e)},s.prototype.otherCallFulfilled=function(e){f(this.promise,this.onFulfilled,e)},s.prototype.callRejected=function(e){a.reject(this.promise,e)},s.prototype.otherCallRejected=function(e){f(this.promise,this.onRejected,e)},a.resolve=function(e,t){var r=y(d,t);if("error"===r.status)return a.reject(e,r.value);var n=r.value;if(n)p(e,n);else{e.state=u,e.outcome=t;for(var o=-1,i=e.queue.length;++o<i;)e.queue[o].callFulfilled(t)}return e},a.reject=function(e,t){e.state=i,e.outcome=t;for(var r=-1,n=e.queue.length;++r<n;)e.queue[r].callRejected(t);return e},c.resolve=m,c.reject=h,c.all=b,c.race=v},{1:1}],3:[function(e,r,n){(function(t){"use strict";"function"!=typeof t.Promise&&(t.Promise=e(2))}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(e,t,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(e){return}}var i=a();function u(){try{if(!i||!i.open)return!1;var e="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!e||t)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(e){return!1}}function l(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(o){if("TypeError"!==o.name)throw o;for(var r=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),n=0;n<e.length;n+=1)r.append(e[n]);return r.getBlob(t.type)}}"undefined"==typeof Promise&&e(3);var c=Promise;function s(e,t){t&&e.then((function(e){t(null,e)}),(function(e){t(e)}))}function f(e,t,r){"function"==typeof t&&e.then(t),"function"==typeof r&&e.catch(r)}function d(e){return"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function p(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var y="local-forage-detect-blob-support",m=void 0,h={},b=Object.prototype.toString,v="readonly",g="readwrite";function O(e){for(var t=e.length,r=new ArrayBuffer(t),n=new Uint8Array(r),o=0;o<t;o++)n[o]=e.charCodeAt(o);return r}function _(e){return new c((function(t){var r=e.transaction(y,g),n=l([""]);r.objectStore(y).put(n,"key"),r.onabort=function(e){e.preventDefault(),e.stopPropagation(),t(!1)},r.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/),r=navigator.userAgent.match(/Edge\//);t(r||!e||parseInt(e[1],10)>=43)}})).catch((function(){return!1}))}function w(e){return"boolean"==typeof m?c.resolve(m):_(e).then((function(e){return m=e}))}function T(e){var t=h[e.name],r={};r.promise=new c((function(e,t){r.resolve=e,r.reject=t})),t.deferredOperations.push(r),t.dbReady?t.dbReady=t.dbReady.then((function(){return r.promise})):t.dbReady=r.promise}function E(e){var t=h[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function P(e,t){var r=h[e.name].deferredOperations.pop();if(r)return r.reject(t),r.promise}function j(e,t){return new c((function(r,n){if(h[e.name]=h[e.name]||L(),e.db){if(!t)return r(e.db);T(e),e.db.close()}var o=[e.name];t&&o.push(e.version);var a=i.open.apply(i,o);t&&(a.onupgradeneeded=function(t){var r=a.result;try{r.createObjectStore(e.storeName),t.oldVersion<=1&&r.createObjectStore(y)}catch(r){if("ConstraintError"!==r.name)throw r;console.warn('The database "'+e.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.')}}),a.onerror=function(e){e.preventDefault(),n(a.error)},a.onsuccess=function(){var t=a.result;t.onversionchange=function(e){e.target.close()},r(t),E(e)}}))}function S(e){return j(e,!1)}function I(e){return j(e,!0)}function M(e,t){if(!e.db)return!0;var r=!e.db.objectStoreNames.contains(e.storeName),n=e.version<e.db.version,o=e.version>e.db.version;if(n&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),o||r){if(r){var a=e.db.version+1;a>e.version&&(e.version=a)}return!0}return!1}function C(e){return new c((function(t,r){var n=new FileReader;n.onerror=r,n.onloadend=function(r){var n=btoa(r.target.result||"");t({__local_forage_encoded_blob:!0,data:n,type:e.type})},n.readAsBinaryString(e)}))}function A(e){return l([O(atob(e.data))],{type:e.type})}function D(e){return e&&e.__local_forage_encoded_blob}function k(e){var t=this,r=t._initReady().then((function(){var e=h[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady}));return f(r,e,e),r}function R(e){T(e);for(var t=h[e.name],r=t.forages,n=0;n<r.length;n++){var o=r[n];o._dbInfo.db&&(o._dbInfo.db.close(),o._dbInfo.db=null)}return e.db=null,S(e).then((function(t){return e.db=t,M(e)?I(e):t})).then((function(n){e.db=t.db=n;for(var o=0;o<r.length;o++)r[o]._dbInfo.db=n})).catch((function(t){throw P(e,t),t}))}function x(e,t,r,n){void 0===n&&(n=1);try{var o=e.db.transaction(e.storeName,t);r(null,o)}catch(o){if(n>0&&(!e.db||"InvalidStateError"===o.name||"NotFoundError"===o.name))return c.resolve().then((function(){if(!e.db||"NotFoundError"===o.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),I(e)})).then((function(){return R(e).then((function(){x(e,t,r,n-1)}))})).catch(r);r(o)}}function L(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function B(e){var t=this,r={db:null};if(e)for(var n in e)r[n]=e[n];var o=h[r.name];o||(o=L(),h[r.name]=o),o.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=k);var a=[];function i(){return c.resolve()}for(var u=0;u<o.forages.length;u++){var l=o.forages[u];l!==t&&a.push(l._initReady().catch(i))}var s=o.forages.slice(0);return c.all(a).then((function(){return r.db=o.db,S(r)})).then((function(e){return r.db=e,M(r,t._defaultConfig.version)?I(r):e})).then((function(e){r.db=o.db=e,t._dbInfo=r;for(var n=0;n<s.length;n++){var a=s[n];a!==t&&(a._dbInfo.db=r.db,a._dbInfo.version=r.version)}}))}function N(e,t){var r=this;e=d(e);var n=new c((function(t,n){r.ready().then((function(){x(r._dbInfo,v,(function(o,a){if(o)return n(o);try{var i=a.objectStore(r._dbInfo.storeName).get(e);i.onsuccess=function(){var e=i.result;void 0===e&&(e=null),D(e)&&(e=A(e)),t(e)},i.onerror=function(){n(i.error)}}catch(e){n(e)}}))})).catch(n)}));return s(n,t),n}function U(e,t){var r=this,n=new c((function(t,n){r.ready().then((function(){x(r._dbInfo,v,(function(o,a){if(o)return n(o);try{var i=a.objectStore(r._dbInfo.storeName).openCursor(),u=1;i.onsuccess=function(){var r=i.result;if(r){var n=r.value;D(n)&&(n=A(n));var o=e(n,r.key,u++);void 0!==o?t(o):r.continue()}else t()},i.onerror=function(){n(i.error)}}catch(e){n(e)}}))})).catch(n)}));return s(n,t),n}function W(e,t,r){var n=this;e=d(e);var o=new c((function(r,o){var a;n.ready().then((function(){return a=n._dbInfo,"[object Blob]"===b.call(t)?w(a.db).then((function(e){return e?t:C(t)})):t})).then((function(t){x(n._dbInfo,g,(function(a,i){if(a)return o(a);try{var u=i.objectStore(n._dbInfo.storeName);null===t&&(t=void 0);var l=u.put(t,e);i.oncomplete=function(){void 0===t&&(t=null),r(t)},i.onabort=i.onerror=function(){var e=l.error?l.error:l.transaction.error;o(e)}}catch(e){o(e)}}))})).catch(o)}));return s(o,r),o}function F(e,t){var r=this;e=d(e);var n=new c((function(t,n){r.ready().then((function(){x(r._dbInfo,g,(function(o,a){if(o)return n(o);try{var i=a.objectStore(r._dbInfo.storeName).delete(e);a.oncomplete=function(){t()},a.onerror=function(){n(i.error)},a.onabort=function(){var e=i.error?i.error:i.transaction.error;n(e)}}catch(e){n(e)}}))})).catch(n)}));return s(n,t),n}function z(e){var t=this,r=new c((function(e,r){t.ready().then((function(){x(t._dbInfo,g,(function(n,o){if(n)return r(n);try{var a=o.objectStore(t._dbInfo.storeName).clear();o.oncomplete=function(){e()},o.onabort=o.onerror=function(){var e=a.error?a.error:a.transaction.error;r(e)}}catch(e){r(e)}}))})).catch(r)}));return s(r,e),r}function H(e){var t=this,r=new c((function(e,r){t.ready().then((function(){x(t._dbInfo,v,(function(n,o){if(n)return r(n);try{var a=o.objectStore(t._dbInfo.storeName).count();a.onsuccess=function(){e(a.result)},a.onerror=function(){r(a.error)}}catch(e){r(e)}}))})).catch(r)}));return s(r,e),r}function Y(e,t){var r=this,n=new c((function(t,n){e<0?t(null):r.ready().then((function(){x(r._dbInfo,v,(function(o,a){if(o)return n(o);try{var i=a.objectStore(r._dbInfo.storeName),u=!1,l=i.openKeyCursor();l.onsuccess=function(){var r=l.result;r?0===e||u?t(r.key):(u=!0,r.advance(e)):t(null)},l.onerror=function(){n(l.error)}}catch(e){n(e)}}))})).catch(n)}));return s(n,t),n}function V(e){var t=this,r=new c((function(e,r){t.ready().then((function(){x(t._dbInfo,v,(function(n,o){if(n)return r(n);try{var a=o.objectStore(t._dbInfo.storeName).openKeyCursor(),i=[];a.onsuccess=function(){var t=a.result;t?(i.push(t.key),t.continue()):e(i)},a.onerror=function(){r(a.error)}}catch(e){r(e)}}))})).catch(r)}));return s(r,e),r}function q(e,t){t=p.apply(this,arguments);var r=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||r.name,e.storeName=e.storeName||r.storeName);var n,o=this;if(e.name){var a=e.name===r.name&&o._dbInfo.db?c.resolve(o._dbInfo.db):S(e).then((function(t){var r=h[e.name],n=r.forages;r.db=t;for(var o=0;o<n.length;o++)n[o]._dbInfo.db=t;return t}));n=e.storeName?a.then((function(t){if(t.objectStoreNames.contains(e.storeName)){var r=t.version+1;T(e);var n=h[e.name],o=n.forages;t.close();for(var a=0;a<o.length;a++){var u=o[a];u._dbInfo.db=null,u._dbInfo.version=r}var l=new c((function(t,n){var o=i.open(e.name,r);o.onerror=function(e){o.result.close(),n(e)},o.onupgradeneeded=function(){o.result.deleteObjectStore(e.storeName)},o.onsuccess=function(){var e=o.result;e.close(),t(e)}}));return l.then((function(e){n.db=e;for(var t=0;t<o.length;t++){var r=o[t];r._dbInfo.db=e,E(r._dbInfo)}})).catch((function(t){throw(P(e,t)||c.resolve()).catch((function(){})),t}))}})):a.then((function(t){T(e);var r=h[e.name],n=r.forages;t.close();for(var o=0;o<n.length;o++)n[o]._dbInfo.db=null;var a=new c((function(t,r){var n=i.deleteDatabase(e.name);n.onerror=function(){var e=n.result;e&&e.close(),r(n.error)},n.onblocked=function(){console.warn('dropInstance blocked for database "'+e.name+'" until all open connections are closed')},n.onsuccess=function(){var e=n.result;e&&e.close(),t(e)}}));return a.then((function(e){r.db=e;for(var t=0;t<n.length;t++)E(n[t]._dbInfo)})).catch((function(t){throw(P(e,t)||c.resolve()).catch((function(){})),t}))}))}else n=c.reject("Invalid arguments");return s(n,t),n}var G={_driver:"asyncStorage",_initStorage:B,_support:u(),iterate:U,getItem:N,setItem:W,removeItem:F,clear:z,length:H,key:Y,keys:V,dropInstance:q};function $(){return"function"==typeof openDatabase}var K="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Z="~~local_forage_type~",X=/^~~local_forage_type~([^~]+)~/,J="__lfsc__:",Q=J.length,ee="arbf",te="blob",re="si08",ne="ui08",oe="uic8",ae="si16",ie="si32",ue="ur16",le="ui32",ce="fl32",se="fl64",fe=Q+ee.length,de=Object.prototype.toString;function pe(e){var t,r,n,o,a,i=.75*e.length,u=e.length,l=0;"="===e[e.length-1]&&(i--,"="===e[e.length-2]&&i--);var c=new ArrayBuffer(i),s=new Uint8Array(c);for(t=0;t<u;t+=4)r=K.indexOf(e[t]),n=K.indexOf(e[t+1]),o=K.indexOf(e[t+2]),a=K.indexOf(e[t+3]),s[l++]=r<<2|n>>4,s[l++]=(15&n)<<4|o>>2,s[l++]=(3&o)<<6|63&a;return c}function ye(e){var t,r=new Uint8Array(e),n="";for(t=0;t<r.length;t+=3)n+=K[r[t]>>2],n+=K[(3&r[t])<<4|r[t+1]>>4],n+=K[(15&r[t+1])<<2|r[t+2]>>6],n+=K[63&r[t+2]];return r.length%3==2?n=n.substring(0,n.length-1)+"=":r.length%3==1&&(n=n.substring(0,n.length-2)+"=="),n}function me(e,t){var r="";if(e&&(r=de.call(e)),e&&("[object ArrayBuffer]"===r||e.buffer&&"[object ArrayBuffer]"===de.call(e.buffer))){var n,o=J;e instanceof ArrayBuffer?(n=e,o+=ee):(n=e.buffer,"[object Int8Array]"===r?o+=re:"[object Uint8Array]"===r?o+=ne:"[object Uint8ClampedArray]"===r?o+=oe:"[object Int16Array]"===r?o+=ae:"[object Uint16Array]"===r?o+=ue:"[object Int32Array]"===r?o+=ie:"[object Uint32Array]"===r?o+=le:"[object Float32Array]"===r?o+=ce:"[object Float64Array]"===r?o+=se:t(new Error("Failed to get type for BinaryArray"))),t(o+ye(n))}else if("[object Blob]"===r){var a=new FileReader;a.onload=function(){var r=Z+e.type+"~"+ye(this.result);t(J+te+r)},a.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(r){console.error("Couldn't convert value into a JSON string: ",e),t(null,r)}}function he(e){if(e.substring(0,Q)!==J)return JSON.parse(e);var t,r=e.substring(fe),n=e.substring(Q,fe);if(n===te&&X.test(r)){var o=r.match(X);t=o[1],r=r.substring(o[0].length)}var a=pe(r);switch(n){case ee:return a;case te:return l([a],{type:t});case re:return new Int8Array(a);case ne:return new Uint8Array(a);case oe:return new Uint8ClampedArray(a);case ae:return new Int16Array(a);case ue:return new Uint16Array(a);case ie:return new Int32Array(a);case le:return new Uint32Array(a);case ce:return new Float32Array(a);case se:return new Float64Array(a);default:throw new Error("Unkown type: "+n)}}var be={serialize:me,deserialize:he,stringToBuffer:pe,bufferToString:ye};function ve(e,t,r,n){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],r,n)}function ge(e){var t=this,r={db:null};if(e)for(var n in e)r[n]="string"!=typeof e[n]?e[n].toString():e[n];var o=new c((function(e,n){try{r.db=openDatabase(r.name,String(r.version),r.description,r.size)}catch(e){return n(e)}r.db.transaction((function(o){ve(o,r,(function(){t._dbInfo=r,e()}),(function(e,t){n(t)}))}),n)}));return r.serializer=be,o}function Oe(e,t,r,n,o,a){e.executeSql(r,n,o,(function(e,i){i.code===i.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],(function(e,u){u.rows.length?a(e,i):ve(e,t,(function(){e.executeSql(r,n,o,a)}),a)}),a):a(e,i)}),a)}function _e(e,t){var r=this;e=d(e);var n=new c((function(t,n){r.ready().then((function(){var o=r._dbInfo;o.db.transaction((function(r){Oe(r,o,"SELECT * FROM "+o.storeName+" WHERE key = ? LIMIT 1",[e],(function(e,r){var n=r.rows.length?r.rows.item(0).value:null;n&&(n=o.serializer.deserialize(n)),t(n)}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,t),n}function we(e,t){var r=this,n=new c((function(t,n){r.ready().then((function(){var o=r._dbInfo;o.db.transaction((function(r){Oe(r,o,"SELECT * FROM "+o.storeName,[],(function(r,n){for(var a=n.rows,i=a.length,u=0;u<i;u++){var l=a.item(u),c=l.value;if(c&&(c=o.serializer.deserialize(c)),void 0!==(c=e(c,l.key,u+1)))return void t(c)}t()}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,t),n}function Te(e,t,r,n){var o=this;e=d(e);var a=new c((function(a,i){o.ready().then((function(){void 0===t&&(t=null);var u=t,l=o._dbInfo;l.serializer.serialize(t,(function(t,c){c?i(c):l.db.transaction((function(r){Oe(r,l,"INSERT OR REPLACE INTO "+l.storeName+" (key, value) VALUES (?, ?)",[e,t],(function(){a(u)}),(function(e,t){i(t)}))}),(function(t){if(t.code===t.QUOTA_ERR){if(n>0)return void a(Te.apply(o,[e,u,r,n-1]));i(t)}}))}))})).catch(i)}));return s(a,r),a}function Ee(e,t,r){return Te.apply(this,[e,t,r,1])}function Pe(e,t){var r=this;e=d(e);var n=new c((function(t,n){r.ready().then((function(){var o=r._dbInfo;o.db.transaction((function(r){Oe(r,o,"DELETE FROM "+o.storeName+" WHERE key = ?",[e],(function(){t()}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,t),n}function je(e){var t=this,r=new c((function(e,r){t.ready().then((function(){var n=t._dbInfo;n.db.transaction((function(t){Oe(t,n,"DELETE FROM "+n.storeName,[],(function(){e()}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,e),r}function Se(e){var t=this,r=new c((function(e,r){t.ready().then((function(){var n=t._dbInfo;n.db.transaction((function(t){Oe(t,n,"SELECT COUNT(key) as c FROM "+n.storeName,[],(function(t,r){var n=r.rows.item(0).c;e(n)}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,e),r}function Ie(e,t){var r=this,n=new c((function(t,n){r.ready().then((function(){var o=r._dbInfo;o.db.transaction((function(r){Oe(r,o,"SELECT key FROM "+o.storeName+" WHERE id = ? LIMIT 1",[e+1],(function(e,r){var n=r.rows.length?r.rows.item(0).key:null;t(n)}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,t),n}function Me(e){var t=this,r=new c((function(e,r){t.ready().then((function(){var n=t._dbInfo;n.db.transaction((function(t){Oe(t,n,"SELECT key FROM "+n.storeName,[],(function(t,r){for(var n=[],o=0;o<r.rows.length;o++)n.push(r.rows.item(o).key);e(n)}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,e),r}function Ce(e){return new c((function(t,r){e.transaction((function(n){n.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],(function(r,n){for(var o=[],a=0;a<n.rows.length;a++)o.push(n.rows.item(a).name);t({db:e,storeNames:o})}),(function(e,t){r(t)}))}),(function(e){r(e)}))}))}function Ae(e,t){t=p.apply(this,arguments);var r=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||r.name,e.storeName=e.storeName||r.storeName);var n,o=this;return s(n=e.name?new c((function(t){var n;n=e.name===r.name?o._dbInfo.db:openDatabase(e.name,"","",0),e.storeName?t({db:n,storeNames:[e.storeName]}):t(Ce(n))})).then((function(e){return new c((function(t,r){e.db.transaction((function(n){function o(e){return new c((function(t,r){n.executeSql("DROP TABLE IF EXISTS "+e,[],(function(){t()}),(function(e,t){r(t)}))}))}for(var a=[],i=0,u=e.storeNames.length;i<u;i++)a.push(o(e.storeNames[i]));c.all(a).then((function(){t()})).catch((function(e){r(e)}))}),(function(e){r(e)}))}))})):c.reject("Invalid arguments"),t),n}var De={_driver:"webSQLStorage",_initStorage:ge,_support:$(),iterate:we,getItem:_e,setItem:Ee,removeItem:Pe,clear:je,length:Se,key:Ie,keys:Me,dropInstance:Ae};function ke(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}function Re(e,t){var r=e.name+"/";return e.storeName!==t.storeName&&(r+=e.storeName+"/"),r}function xe(){var e="_localforage_support_test";try{return localStorage.setItem(e,!0),localStorage.removeItem(e),!1}catch(e){return!0}}function Le(){return!xe()||localStorage.length>0}function Be(e){var t=this,r={};if(e)for(var n in e)r[n]=e[n];return r.keyPrefix=Re(e,t._defaultConfig),Le()?(t._dbInfo=r,r.serializer=be,c.resolve()):c.reject()}function Ne(e){var t=this,r=t.ready().then((function(){for(var e=t._dbInfo.keyPrefix,r=localStorage.length-1;r>=0;r--){var n=localStorage.key(r);0===n.indexOf(e)&&localStorage.removeItem(n)}}));return s(r,e),r}function Ue(e,t){var r=this;e=d(e);var n=r.ready().then((function(){var t=r._dbInfo,n=localStorage.getItem(t.keyPrefix+e);return n&&(n=t.serializer.deserialize(n)),n}));return s(n,t),n}function We(e,t){var r=this,n=r.ready().then((function(){for(var t=r._dbInfo,n=t.keyPrefix,o=n.length,a=localStorage.length,i=1,u=0;u<a;u++){var l=localStorage.key(u);if(0===l.indexOf(n)){var c=localStorage.getItem(l);if(c&&(c=t.serializer.deserialize(c)),void 0!==(c=e(c,l.substring(o),i++)))return c}}}));return s(n,t),n}function Fe(e,t){var r=this,n=r.ready().then((function(){var t,n=r._dbInfo;try{t=localStorage.key(e)}catch(e){t=null}return t&&(t=t.substring(n.keyPrefix.length)),t}));return s(n,t),n}function ze(e){var t=this,r=t.ready().then((function(){for(var e=t._dbInfo,r=localStorage.length,n=[],o=0;o<r;o++){var a=localStorage.key(o);0===a.indexOf(e.keyPrefix)&&n.push(a.substring(e.keyPrefix.length))}return n}));return s(r,e),r}function He(e){var t=this.keys().then((function(e){return e.length}));return s(t,e),t}function Ye(e,t){var r=this;e=d(e);var n=r.ready().then((function(){var t=r._dbInfo;localStorage.removeItem(t.keyPrefix+e)}));return s(n,t),n}function Ve(e,t,r){var n=this;e=d(e);var o=n.ready().then((function(){void 0===t&&(t=null);var r=t;return new c((function(o,a){var i=n._dbInfo;i.serializer.serialize(t,(function(t,n){if(n)a(n);else try{localStorage.setItem(i.keyPrefix+e,t),o(r)}catch(e){"QuotaExceededError"!==e.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==e.name||a(e),a(e)}}))}))}));return s(o,r),o}function qe(e,t){if(t=p.apply(this,arguments),!(e="function"!=typeof e&&e||{}).name){var r=this.config();e.name=e.name||r.name,e.storeName=e.storeName||r.storeName}var n,o=this;return n=e.name?new c((function(t){e.storeName?t(Re(e,o._defaultConfig)):t(e.name+"/")})).then((function(e){for(var t=localStorage.length-1;t>=0;t--){var r=localStorage.key(t);0===r.indexOf(e)&&localStorage.removeItem(r)}})):c.reject("Invalid arguments"),s(n,t),n}var Ge={_driver:"localStorageWrapper",_initStorage:Be,_support:ke(),iterate:We,getItem:Ue,setItem:Ve,removeItem:Ye,clear:Ne,length:He,key:Fe,keys:ze,dropInstance:qe},$e=function(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)},Ke=function(e,t){for(var r=e.length,n=0;n<r;){if($e(e[n],t))return!0;n++}return!1},Ze=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},Xe={},Je={},Qe={INDEXEDDB:G,WEBSQL:De,LOCALSTORAGE:Ge},et=[Qe.INDEXEDDB._driver,Qe.WEBSQL._driver,Qe.LOCALSTORAGE._driver],tt=["dropInstance"],rt=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(tt),nt={description:"",driver:et.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function ot(e,t){e[t]=function(){var r=arguments;return e.ready().then((function(){return e[t].apply(e,r)}))}}function at(){for(var e=1;e<arguments.length;e++){var t=arguments[e];if(t)for(var r in t)t.hasOwnProperty(r)&&(Ze(t[r])?arguments[0][r]=t[r].slice():arguments[0][r]=t[r])}return arguments[0]}var it=function(){function e(t){for(var r in o(this,e),Qe)if(Qe.hasOwnProperty(r)){var n=Qe[r],a=n._driver;this[r]=a,Xe[a]||this.defineDriver(n)}this._defaultConfig=at({},nt),this._config=at({},this._defaultConfig,t),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch((function(){}))}return e.prototype.config=function(e){if("object"===(void 0===e?"undefined":n(e))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in e){if("storeName"===t&&(e[t]=e[t].replace(/\W/g,"_")),"version"===t&&"number"!=typeof e[t])return new Error("Database version must be a number.");this._config[t]=e[t]}return!("driver"in e)||!e.driver||this.setDriver(this._config.driver)}return"string"==typeof e?this._config[e]:this._config},e.prototype.defineDriver=function(e,t,r){var n=new c((function(t,r){try{var n=e._driver,o=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!e._driver)return void r(o);for(var a=rt.concat("_initStorage"),i=0,u=a.length;i<u;i++){var l=a[i];if((!Ke(tt,l)||e[l])&&"function"!=typeof e[l])return void r(o)}var f=function(){for(var t=function(e){return function(){var t=new Error("Method "+e+" is not implemented by the current driver"),r=c.reject(t);return s(r,arguments[arguments.length-1]),r}},r=0,n=tt.length;r<n;r++){var o=tt[r];e[o]||(e[o]=t(o))}};f();var d=function(r){Xe[n]&&console.info("Redefining LocalForage driver: "+n),Xe[n]=e,Je[n]=r,t()};"_support"in e?e._support&&"function"==typeof e._support?e._support().then(d,r):d(!!e._support):d(!0)}catch(e){r(e)}}));return f(n,t,r),n},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(e,t,r){var n=Xe[e]?c.resolve(Xe[e]):c.reject(new Error("Driver not found."));return f(n,t,r),n},e.prototype.getSerializer=function(e){var t=c.resolve(be);return f(t,e),t},e.prototype.ready=function(e){var t=this,r=t._driverSet.then((function(){return null===t._ready&&(t._ready=t._initDriver()),t._ready}));return f(r,e,e),r},e.prototype.setDriver=function(e,t,r){var n=this;Ze(e)||(e=[e]);var o=this._getSupportedDrivers(e);function a(){n._config.driver=n.driver()}function i(e){return n._extend(e),a(),n._ready=n._initStorage(n._config),n._ready}function u(e){return function(){var t=0;function r(){for(;t<e.length;){var o=e[t];return t++,n._dbInfo=null,n._ready=null,n.getDriver(o).then(i).catch(r)}a();var u=new Error("No available storage method found.");return n._driverSet=c.reject(u),n._driverSet}return r()}}var l=null!==this._driverSet?this._driverSet.catch((function(){return c.resolve()})):c.resolve();return this._driverSet=l.then((function(){var e=o[0];return n._dbInfo=null,n._ready=null,n.getDriver(e).then((function(e){n._driver=e._driver,a(),n._wrapLibraryMethodsWithReady(),n._initDriver=u(o)}))})).catch((function(){a();var e=new Error("No available storage method found.");return n._driverSet=c.reject(e),n._driverSet})),f(this._driverSet,t,r),this._driverSet},e.prototype.supports=function(e){return!!Je[e]},e.prototype._extend=function(e){at(this,e)},e.prototype._getSupportedDrivers=function(e){for(var t=[],r=0,n=e.length;r<n;r++){var o=e[r];this.supports(o)&&t.push(o)}return t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var e=0,t=rt.length;e<t;e++)ot(this,rt[e])},e.prototype.createInstance=function(t){return new e(t)},e}(),ut=new it;t.exports=ut},{3:3}]},{},[4])(4)}).call(this,r(59))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.downloadCloudItemContent=function e(t,r,n,o){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},u=arguments.length>6&&void 0!==arguments[6]&&arguments[6],l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"";if(De.PRODUCT_TOUR_ITEM_ID===t)return(0,Ae.doApiRequest)({type:"get",resource:n,resourceId:t,providedUrl:De.PRODUCT_TOUR_ITEM_URL,source:o}).then((function(e){return{content:e}}));return(0,Ae.doApiRequest)({type:"get",resource:n,resourceId:t,source:o,etAccount:i,accessToken:a,providedBaseUrl:l}).then((function(c){return c.content?(0,Ae.doApiRequest)({type:"get",resource:n,resourceId:t,providedUrl:c.content.url,source:o,accessToken:a,providedBaseUrl:l}).then((function(e){return{content:e}})):c.error&&401===(0,Oe.default)(c,"data.status")&&!u?(0,Ae.updateTokens)().then((function(u){var c=(0,Oe.default)(u,"accessToken","");return""===a?new Promise((function(e){return e({error:"auth_error"})})):(r.set((0,Ie.state)(O||(O=Re(["cloudToken"]))),c),e(t,r,n,o,c,i,!0,l))})):c}))},t.enableCloud=Ue,t.getRequestStatus=Le,t.handleCloudError=Ne,t.mergeFilterLists=Be,t.resetRequestStatus=function(e){var t=e.get,r=t((0,Ie.state)(v||(v=Re(["app.tab"])))),n=t((0,Ie.state)(g||(g=Re(["preferences.cloudTab"]))));n!==r&&Me.ETCloudCache.addData([n,"meta"],{});return Me.ETCloudCache.addData([r,"meta"],{})},t.retrieveFolders=function e(t,r){var v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"categoriesList",g=t((0,Ie.state)(n||(n=Re(["app.tab"])))),O=t((0,Ie.state)(o||(o=Re(["source"])))),_=v,w=(0,Ce.getActiveFolderId)(t),T=Le(g,_,w),E=g===t((0,Ie.state)(a||(a=Re(["preferences.predefinedTab"])))),P=g===t((0,Ie.state)(i||(i=Re(["preferences.cloudTab"])))),j="".concat(t((0,Ie.state)(u||(u=Re(["preferences.context"]))))),S=t((0,Ie.state)(l||(l=Re(["cloudToken"]))))||"",I="inProgress"===t((0,Ie.state)(c||(c=Re(["accessTokenUpdate"])))),M=t((0,Ie.state)(s||(s=Re(["teamSidebar.activeFolder.folder.permissions.",""])),De.PERMISSION_EDIT)),C=t((0,Ie.state)(f||(f=Re(["teamSidebar.activeFolder.folder.endpoint"])))),A=t((0,Ie.state)(d||(d=Re(["teamSidebar.activeFolder.folderType"])))),D="";A&&"myFolders"!==A&&!E&&(D="".concat(C,"/cloud/v1"));if(!E&&!P)return;if("finished"===T)return;if(!E&&I)return void setTimeout((function(){e(t,r,v)}),1e3);var k=(0,Oe.default)(T,"pageNo",1),R=100,x={type:_,perPage:R,isUserItems:!E,pageNo:k,token:S,providedBaseUrl:D,editPermission:M},L="categories";switch(v){case"packsList":L="packs";break;case"tagsList":L="tags"}var B=function(n){if(n){var o=Le(g,_,w),a="packs"===L,i=a?{}:[],u=(0,je.default)(Me.ETCloudCache.getData([g,"data",w,L],i)),l=a?n.data:(0,ye.default)(n.data,"name"),c=a?(0,me.default)(u,l):(0,ye.default)(Be(t,L,l,O),"name");if(Me.ETCloudCache.addData([g,"data",w,L],c),t((0,Ie.state)(p||(p=Re(["app.tab"]))))===g&&r.set((0,Ie.state)(y||(y=Re(["sources.",".",""])),O,L),c),E)try{a?Me.ETCloudCache.setOfflineCache("et-cloud-cache-".concat(g,"-").concat(L),l,!0,"array"):Me.ETCloudCache.setOfflineCache("et-cloud-cache-".concat(g,"-").concat(L),c)}catch(e){}if((0,pe.default)(l)<R)xe(g,_,"finished",j,w,w);else{var s=(0,Oe.default)(o,"skipCached",!1);k++,xe(g,_,{pageNo:k,skipCached:s},j,w,w),e(t,r,v)}}};if(E&&!(0,Oe.default)(T,"skipCached",!1)){var N=function(e){if(Me.ETCloudCache.addData([g,"data",w,L],e),t((0,Ie.state)(m||(m=Re(["app.tab"]))))===g){var n=t((0,Ie.state)(h||(h=Re(["source"]))));r.set((0,Ie.state)(b||(b=Re(["sources.",".",""])),n,L),e)}};return void Me.ETCloudCache.getOfflineCache("et-cloud-cache-".concat(g,"-").concat(L)).then((function(n){var o=(0,pe.default)(n);o>0&&N(n);var a=100>o?1:(0,Se.default)(o/100);xe(g,_,{pageNo:a,skipCached:!0},j,w),e(t,r,v)})).catch((function(n){xe(g,_,{pageNo:1,skipCached:!0},j,w),e(t,r,v)}))}(0,Ae.retrieveCloudData)(x,j).then(B)},t.setRequestStatus=xe,t.updateItemsList=function(e,t,r){var n=r.updateType,o=r.itemId,a=r.itemLocation,i=r.cacheTab,u=r.cacheContext,l=r.newItem,c=r.cloudId,s=r.syncFilters,f=e((0,Ie.state)(_||(_=Re(["source"])))),d=e((0,Ie.state)(w||(w=Re(["app.tab"])))),p=(0,he.default)(i)?d:i,y=(0,he.default)(c)?(0,Ce.getActiveFolderId)(e):c,m=p!==d,h=e((0,Ie.state)(T||(T=Re(["sources.",".items"])),f)),b=(0,je.default)(Me.ETCloudCache.getData([p,"data",y,"items"],[],u));switch(n){case"remove":var v="cloud"===a;if(!m){var g=(0,we.default)(h,(function(e){return e.id===o&&(!v&&"cloud"!==e.item_location||v&&"cloud"===e.item_location)}));t.splice((0,Ie.state)(E||(E=Re(["sources.",".items"])),f),g,1)}b=e((0,Ie.state)(P||(P=Re(["sources.",".items"])),f));break;case"add":b=(0,Ce.uniqItems)((0,Ee.default)(b,l)),m||t.set((0,Ie.state)(j||(j=Re(["sources.",".items"])),f),b);break;case"update":b=h;break;case"syncWithCache":m||t.set((0,Ie.state)(S||(S=Re(["sources.",".items"])),f),b)}if(s){var O=(0,je.default)(Me.ETCloudCache.getData([p,"data",y,"categories"],[],u)),C=(0,je.default)(Me.ETCloudCache.getData([p,"data",y,"tags"],[],u));t.set((0,Ie.state)(I||(I=Re(["sources.",".categories"])),f),O),t.set((0,Ie.state)(M||(M=Re(["sources.",".tags"])),f),C)}Me.ETCloudCache.addData([p,"data",y,"items"],(0,Pe.default)(b),!1,u)},t.updateLocalItemsCache=void 0;var n,o,a,i,u,l,c,s,f,d,p,y,m,h,b,v,g,O,_,w,T,E,P,j,S,I,M,C,A,D,k,R,x,L,B,N,U,W,F,z,H,Y,V,q,G,$,K,Z,X,J,Q,ee,te,re,ne,oe,ae,ie,ue,le,ce=ke(r(516)),se=ke(r(16)),fe=ke(r(29)),de=ke(r(339)),pe=ke(r(257)),ye=ke(r(131)),me=ke(r(128)),he=ke(r(23)),be=ke(r(42)),ve=ke(r(12)),ge=ke(r(51)),Oe=ke(r(5)),_e=ke(r(19)),we=ke(r(157)),Te=ke(r(32)),Ee=ke(r(338)),Pe=ke(r(253)),je=ke(r(67)),Se=ke(r(521)),Ie=r(58),Me=r(337),Ce=r(167),Ae=r(127),De=r(168);function ke(e){return e&&e.__esModule?e:{default:e}}function Re(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function xe(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"1";return Me.ETCloudCache.addData([e,"meta",o,"requests",t],r,!1,n)}function Le(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"1";return Me.ETCloudCache.getData([e,"meta",r,"requests",t],"")}function Be(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=""!==n?n:e((0,Ie.state)(C||(C=Re(["source"])))),a=e((0,Ie.state)(A||(A=Re(["sources.",".",""])),o,t))||[];return(0,_e.default)(r,(function(e){var t=(0,fe.default)(e.id),r=(0,se.default)(e.name),n=e.location?(0,se.default)(e.location):"local",o=e.count?(0,fe.default)(e.count):0,i=(0,we.default)(a,(function(e){return"local"===n?e.id===t&&(!e.location||"cloud"!==e.location):e.id===t&&"cloud"===e.location}));if(-1!==i)return a[i].count=o,void(a[i].name=r);a.push({id:t,name:r,location:n,count:o})})),a}function Ne(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=(0,Oe.default)(e,"error",""),i=t((0,Ie.state)(D||(D=Re(["app.i18n"])))),u=["missing_token","rest_forbidden_context","401"],l=["rest_post_invalid_page_number"],c=(0,Oe.default)(e,"code",a),s=(0,se.default)((0,Oe.default)(e,"message",a)),f="silent"===(0,Oe.default)(e,"errorType","");if(!((0,ge.default)(l,c)||(0,de.default)("SyntaxError:",a)||(0,ge.default)(s,"AbortError:")||f)){"wp_die"===c&&(c=(0,se.default)((0,Oe.default)(e,"data.status",c)));var d={message:s};if((0,ge.default)(u,c)&&""===(0,Ce.getActiveFolderEndpoint)(t)){var p=t((0,Ie.state)(k||(k=Re(["lastAutoLogin"])))),y="inProgress"===t((0,Ie.state)(R||(R=Re(["accessTokenUpdate"]))));if(y)return;return p?(r.set((0,Ie.state)(x||(x=Re(["cloudStatus"]))),"off"),Me.ETCloudCache.setOfflineCache("refreshTokenPart",""),d={title:i["Your Divi Cloud Session Has Ended"],subtitle:i["Please Log In Again"],message:i.$cloudAuthError},void r.set((0,Ie.state)(L||(L=Re(["errorMessage"]))),d)):(r.set((0,Ie.state)(B||(B=Re(["lastAutoLogin"]))),!0),void Ue({get:t,store:r,bridge:n,callback:o}))}if(""===(0,Ce.getActiveFolderEndpoint)(t)&&("max_free_items"===a||"max_paid_bytes"===a)){var m=(0,Oe.default)(e,["data",a],50),h=function(){r.set((0,Ie.state)(N||(N=Re(["errorMessage"]))),{}),r.set((0,Ie.state)(U||(U=Re(["app.isCheckoutForm"]))),!0),n.emit("et_cloud_page_changed",[!1,i["Free Divi Cloud Limit Reached"]])},b="max_paid_bytes"===a?i.$cloudPaidLimitExceeded:i.$cloudFreeLimitExceeded,v="max_paid_bytes"===a?i.$cloudUpgradeMessage500:i.$cloudUpgradeMessage.replace("%s",m);d={title:i["Free Divi Cloud Limit Reached"],subtitle:b,message:v,button:{text:i["Get Unlimited Divi Cloud Storage"],action:h}}}r.set((0,Ie.state)(W||(W=Re(["errorMessage"]))),d)}}function Ue(e){var t=e.get,r=e.store,n=e.bridge,o=e.callback,a=void 0!==o&&o,i=t((0,Ie.state)(F||(F=Re(["activationToken"])))),u=t((0,Ie.state)(z||(z=Re(["saveSession"]))));return"inProgress"===t((0,Ie.state)(H||(H=Re(["accessTokenUpdate"]))))?new Promise((function(e){return e({enablingStatus:"waiting"})})):(r.set((0,Ie.state)(Y||(Y=Re(["activationToken"]))),""),r.set((0,Ie.state)(V||(V=Re(["saveSession"]))),!1),r.set((0,Ie.state)(q||(q=Re(["accessTokenUpdate"]))),"inProgress"),(0,Ae.activateCloudPure)(i,u).then((function(e){var o=(0,Oe.default)(e,"accessToken",""),i=(0,Oe.default)(e,"error"),u=(0,Oe.default)(e,"sharedFolders",null);r.set((0,Ie.state)(G||(G=Re(["teamSidebar.sharedFolders"]))),u),r.set((0,Ie.state)($||($=Re(["accessTokenUpdate"]))),"");var l=(0,Ce.showPremadeLayoutsCopyModal)(t);return r.set((0,Ie.state)(K||(K=Re(["teamSidebar.showPremadeLayoutsCopyModal"]))),l),Me.ETCloudCache.setOfflineCache("sharedFolders",u),""!==o&&(0,ve.default)(i)?(r.set((0,Ie.state)(J||(J=Re(["cloudToken"]))),e.accessToken),r.set((0,Ie.state)(Q||(Q=Re(["domainToken"]))),e.domainToken),r.set((0,Ie.state)(ee||(ee=Re(["lastAutoLogin"]))),!1),n.emit("et_cloud_token_ready"),a&&a({get:t,store:r}),new Promise((function(e){return e({enablingStatus:"enabled"})}))):(r.set((0,Ie.state)(Z||(Z=Re(["lastAutoLogin"]))),!0),Ne(e,t,r,n),r.set((0,Ie.state)(X||(X=Re(["cloudStatus"]))),"off"),Me.ETCloudCache.setOfflineCache("refreshTokenPart",""),new Promise((function(e){return e({enablingStatus:"failed"})})))})).catch((function(e){return r.set((0,Ie.state)(te||(te=Re(["cloudStatus"]))),"off"),Me.ETCloudCache.setOfflineCache("refreshTokenPart",""),r.set((0,Ie.state)(re||(re=Re(["accessTokenUpdate"]))),""),Ne(e,t,r,n),new Promise((function(e){return e({enablingStatus:"failed"})}))})))}t.updateLocalItemsCache=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=e((0,Ie.state)(ne||(ne=Re(["source"])))),a=e((0,Ie.state)(oe||(oe=Re(["sources.",".items"])),o)),i=e((0,Ie.state)(ae||(ae=Re(["sources.",".categories"])),o)),u=e((0,Ie.state)(ie||(ie=Re(["sources.",".tags"])),o)),l=e((0,Ie.state)(ue||(ue=Re(["app.allLocalData"]))))||[];if(r){var c=(0,Te.default)(a,(function(e){return"cloud"!==e.item_location}));l.items=(0,Ce.uniqItems)(c)}if(n){var s=(0,Te.default)(i,(function(e){return"cloud"!==e.location})),f=(0,Te.default)(u,(function(e){return"cloud"!==e.location}));l.categories=(0,ce.default)(s,be.default),l.tags=(0,ce.default)(f,be.default)}t.set((0,Ie.state)(le||(le=Re(["app.allLocalData"]))),l)}},function(e,t,r){var n=r(171);e.exports=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?n(e,void 0,t):[]}},function(e,t,r){var n=r(288),o=r(8),a=r(146),i=n&&1/a(new n([,-0]))[1]==1/0?function(e){return new n(e)}:o;e.exports=i},function(e,t,r){var n=r(519),o=r(248),a=r(520);e.exports=function(e){return o(e)?a(e):n(e)}},function(e,t,r){var n=r(294)("length");e.exports=n},function(e,t){var r="[\\ud800-\\udfff]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",a="[^\\ud800-\\udfff]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+n+"|"+o+")"+"?",c="[\\ufe0e\\ufe0f]?",s=c+l+("(?:\\u200d(?:"+[a,i,u].join("|")+")"+c+l+")*"),f="(?:"+[a+n+"?",n,i,u,r].join("|")+")",d=RegExp(o+"(?="+o+")|"+f+s,"g");e.exports=function(e){for(var t=d.lastIndex=0;d.test(e);)++t;return t}},function(e,t,r){var n=r(332)("ceil");e.exports=n},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a=r(4),i=(o=r(13))&&o.__esModule?o:{default:o},u=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(523));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}var c=[];i.default.templates.hasDraft&&c.push({type:a.PROMPT_TYPE_LOAD_DRAFT,title:null,content:null});var s={state:{prompts:c},sequences:u};t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.openPrompt=t.closePrompt=void 0;r(3);var n=r(103),o=[function(e){return(0,n.openPrompt)(e.props)(e)}];t.openPrompt=o;var a=[(0,n.closePrompt)()];t.closePrompt=a},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a={state:{layoutId:null,layoutType:null},sequences:function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var l=i?Object.getOwnPropertyDescriptor(e,u):null;l&&(l.get||l.set)?Object.defineProperty(a,u,l):a[u]=e[u]}a.default=e,r&&r.set(e,a);return a}(r(525))};t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setClipboard=void 0;var n,o,a,i,u,l=r(3),c=r(35);function s(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var f=[(0,c.when)((0,l.props)(n||(n=s(["layoutId"])))),{true:[(0,c.set)((0,l.state)(o||(o=s(["clipboard.layoutId"]))),(0,l.props)(a||(a=s(["layoutId"])))),(0,c.set)((0,l.state)(i||(i=s(["clipboard.layoutType"]))),(0,l.props)(u||(u=s(["layoutType"]))))],false:[]}];t.setClipboard=f},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i=d(r(131)),u=r(3),l=r(4),c=d(r(13)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(527));function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var y={state:{currentAction:null,templateId:null,saveState:l.SAVE_STATE_IDLE,cloudSave:l.SAVE_STATE_IDLE,isTemplateSaveAction:function(e){return e((0,u.state)(o||(o=p(["librarySave.currentAction"]))))===l.LIBRARY_SAVE_TEMPLATE_ACTION},isPresetSaveAction:function(e){return e((0,u.state)(a||(a=p(["librarySave.currentAction"]))))===l.LIBRARY_SAVE_PRESET_ACTION},templateCategories:(0,i.default)(c.default.localLibrary.templateCategories,["name"]),templateTags:(0,i.default)(c.default.localLibrary.templateTags,["name"]),isTermsDirty:{templateCategories:!1,templateTags:!1}},sequences:s};t.default=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.saveEditedItemToCloud=t.openSaveTemplateModal=t.openSavePresetModal=t.onSave=t.closeSaveToLibraryModal=void 0;var n,o,a,i,u,l,c,s,f,d,p,y,m,h,b,v,g,O,_,w,T,E,P,j,S,I,M,C,A,D,k,R,x,L,B,N,U,W,F,z,H,Y,V,q,G,$,K,Z,X,J,Q,ee,te,re,ne,oe,ae,ie=Se(r(8)),ue=Se(r(67)),le=Se(r(12)),ce=Se(r(119)),se=Se(r(17)),fe=Se(r(19)),de=Se(r(32)),pe=Se(r(78)),ye=Se(r(5)),me=r(3),he=r(35),be=r(4),ve=r(73),ge=r(172),Oe=r(528),_e=r(232),we=r(165),Te=r(127),Ee=r(340),Pe=r(529),je=r(531);function Se(e){return e&&e.__esModule?e:{default:e}}function Ie(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Me(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Ce=[(0,ve.openModal)(be.MODAL_TYPE_SAVE_TO_LIBRARY),(0,he.set)((0,me.state)(n||(n=Me(["librarySave.currentAction"]))),be.LIBRARY_SAVE_TEMPLATE_ACTION),(0,he.set)((0,me.state)(o||(o=Me(["librarySave.templateId"]))),(0,me.props)(a||(a=Me(["templateId"]))))];t.openSaveTemplateModal=Ce;var Ae=[(0,ve.openModal)(be.MODAL_TYPE_SAVE_TO_LIBRARY),(0,he.set)((0,me.state)(i||(i=Me(["librarySave.currentAction"]))),be.LIBRARY_SAVE_PRESET_ACTION)];t.openSavePresetModal=Ae;var De=[function(){return{filename:"",exportAll:!1,download:!1}},we.exportThemeBuilder,Pe.downloadExportedContent,{success:[Pe.saveContentToCloud,{success:[(0,he.set)((0,me.state)(u||(u=Me(["librarySave.saveState"]))),be.SAVE_STATE_SUCCESS),function(){window.ETCloudApp.emitSignal({signal:"refreshCloudItems",data:{}})}],error:[(0,he.set)((0,me.state)(l||(l=Me(["cloudStatus"]))),(0,me.props)(c||(c=Me(["result"])))),(0,he.set)((0,me.state)(s||(s=Me(["librarySave.saveState"]))),be.SAVE_STATE_ERROR)]}],error:[(0,he.set)((0,me.state)(f||(f=Me(["librarySave.saveState"]))),be.SAVE_STATE_ERROR)]}],ke=[function(e){var t=e.path,r=e.api,n=e.get,o=e.props.preferences,a=n((0,me.state)(d||(d=Me(["librarySave.templateId"])))),i=(0,ue.default)(n((0,me.state)(p||(p=Me(["templates.templates.",""])),a),{})),u=n((0,me.state)(y||(y=Me(["templates.defaultTemplate"])))),l=n((0,me.state)(m||(m=Me(["templates.templates.",""])),u));i.global_layouts=(0,ue.default)(l.layouts);var c=(0,ge.formatTemplateForLibrary)(i,o),s=c.processed_template,f=c.processed_preferences;return r.saveTemplateToLibrary(s,f).then((function(e){return t.success({post_id:e.post_id})})).catch((function(){return t.error()}))},{success:[(0,he.set)((0,me.state)(h||(h=Me(["librarySave.saveState"]))),be.SAVE_STATE_SUCCESS),function(){(0,_e.emitNewItemAdded)()},function(e){var t=e.props,r=e.store;""!==t.preferences.new_category_name&&r.set((0,me.state)(b||(b=Me(["librarySave.isTermsDirty.templateCategories"]))),!0),""!==t.preferences.new_tag_name&&r.set((0,me.state)(v||(v=Me(["librarySave.isTermsDirty.templateTags"]))),!0)}],error:[(0,he.set)((0,me.state)(g||(g=Me(["librarySave.saveState"]))),be.SAVE_STATE_ERROR)]}],Re=[(0,he.set)((0,me.state)(O||(O=Me(["librarySave.saveState"]))),be.SAVE_STATE_LOADING),function(e){var t=e.path;return"on"===e.props.preferences.cloud?t.cloud():t.local()},{local:ke,cloud:[function(e){var t=e.get,r=e.props.preferences;return{exportTemplates:[t((0,me.state)(_||(_=Me(["librarySave.templateId"]))))],cloudContext:"templates",title:r.template_name}},De]},function(e){var t=e.path,r=e.get;return be.SAVE_STATE_SUCCESS===r((0,me.state)(w||(w=Me(["librarySave.saveState"]))))?t.saveSuccess():t.saveFail()},{saveSuccess:[(0,he.wait)(500),(0,ve.closeModal)(be.MODAL_TYPE_SAVE_TO_LIBRARY),(0,Oe.refreshTerms)("layout_category","templateCategories"),(0,Oe.refreshTerms)("layout_tag","templateTags")],saveFail:[]},(0,he.set)((0,me.state)(T||(T=Me(["librarySave.saveState"]))),be.SAVE_STATE_IDLE)],xe=[(0,he.set)((0,me.state)(E||(E=Me(["librarySave.saveState"]))),be.SAVE_STATE_LOADING),function(e){var t=e.get,r=e.props.preferences,n=r.isSaveAllTemplates,o=r.presetTemplates,a=t((0,me.state)(P||(P=Me(["templates.templates"])))),i=(0,ce.default)(a);return n||(i=(0,de.default)(i,(function(e){return-1!==o.indexOf(e.id)}))),{exportedTemplates:i}},function(e){var t=e.path;return"on"===e.props.preferences.cloud?t.cloud():t.local()},{local:[function(e){var t=e.get,r=e.path,n=e.props,o=n.preferences,a=n.exportedTemplates,i=t((0,me.state)(j||(j=Me(["templates.defaultTemplate"])))),u=(0,se.default)(a,(function(e){var r=(0,ye.default)(e,"id"),n=(0,ue.default)(t((0,me.state)(S||(S=Me(["templates.templates.",""])),r),{})),a=t((0,me.state)(I||(I=Me(["templates.templates.",""])),i));return n.global_layouts=a?(0,ue.default)(a.layouts):[],(0,ge.formatTemplateForLibrary)(n,o,!1)})),l=(0,ge.formatPreferencesForLibrary)(o);return(0,le.default)(u)?r.noPresetToSave():r.savePreset({templates:u,processed_preferences:l})},{noPresetToSave:[],savePreset:[function(e){var t=e.api,r=e.path,n=e.props,o=n.templates,a=n.processed_preferences;return t.savePresetToLibrary(o,a).then((function(e){return r.success({post_id:e.post_id})})).catch((function(){return r.error()}))},{success:[(0,he.set)((0,me.state)(M||(M=Me(["librarySave.saveState"]))),be.SAVE_STATE_SUCCESS),function(){(0,_e.emitNewItemAdded)()}],error:[(0,he.set)((0,me.state)(C||(C=Me(["librarySave.saveState"]))),be.SAVE_STATE_ERROR)]}]}],cloud:[function(e){return{exportTemplates:e.props.exportedTemplates.map((function(e){return e.id}))}},function(e){return{cloudContext:"template-sets",title:e.props.preferences.set_name}},De]},(0,he.wait)(500),(0,ve.closeModal)(be.MODAL_TYPE_SAVE_TO_LIBRARY),(0,he.set)((0,me.state)(A||(A=Me(["librarySave.saveState"]))),be.SAVE_STATE_IDLE)],Le=[(0,he.equals)((0,me.state)(D||(D=Me(["librarySave.currentAction"])))),(k={},Ie(k,be.LIBRARY_SAVE_TEMPLATE_ACTION,[Re]),Ie(k,be.LIBRARY_SAVE_PRESET_ACTION,[xe]),Ie(k,"otherwise",[]),k)];t.onSave=Le;var Be=[(0,ve.closeModal)(be.MODAL_TYPE_SAVE_TO_LIBRARY),(0,he.equals)((0,me.state)(R||(R=Me(["librarySave.currentAction"])))),(N={},Ie(N,be.LIBRARY_SAVE_TEMPLATE_ACTION,[(0,he.set)((0,me.state)(x||(x=Me(["librarySave.templateId"]))),null),(0,he.set)((0,me.state)(L||(L=Me(["librarySave.currentAction"]))),null),(0,he.set)((0,me.state)(B||(B=Me(["librarySave.saveState"]))),be.SAVE_STATE_IDLE)]),Ie(N,be.LIBRARY_SAVE_PRESET_ACTION,[]),Ie(N,"otherwise",[]),N)];t.closeSaveToLibraryModal=Be;var Ne=[(0,he.set)((0,me.state)(U||(U=Me(["librarySave.cloudSave"]))),be.SAVE_STATE_LOADING),(0,he.set)((0,me.state)(W||(W=Me(["saveState"]))),be.SAVE_STATE_LOADING),je.saveThemeBuilder,{success:[function(e){var t=e.props,r=t.exportTemplates;return{filename:"",exportAll:t.exportAll,exportTemplates:r,download:!1}},we.exportThemeBuilder,function(e){var t=e.props.exportDowmloadURL,r=e.api,n=e.path;return r.downloadItem(t).then((function(e){return n.success({content:e})})).catch((function(e){return n.error(e)}))},{success:[function(e){var t=e.get,r=e.path,n=e.props,o=n.content,a=n.cloudContext,i=n.exportTemplates,u=t((0,me.state)(F||(F=Me(["libraryItem.cloudItemId"])))),l={content:JSON.stringify(o)},c=(0,ye.default)(o,"templates.0.description","");if(""!==c&&(0,pe.default)(l,"excerpt",c),t((0,me.state)(z||(z=Me(["libraryItem.itemType"]))))===be.LIBRARY_ITEM_TYPE_SET){var s=t((0,me.state)(H||(H=Me(["templates.templates"])))),f=i.map((function(e){var t=(0,ye.default)(s,e);return(0,le.default)(t.title)?{title:t.automaticTitle}:{title:t.title}}));(0,pe.default)(l,"meta.et-api-cloud-template-set-templates",(0,Ee.prepareCloudItemItems)(f))}return(0,Te.saveToCloudPure)(a,l,[],ie.default,u).then((function(){return r.success()})).catch((function(){return r.error()}))},{success:[(0,he.set)((0,me.state)(Y||(Y=Me(["unsavedChanges"]))),!1),(0,he.set)((0,me.state)(V||(V=Me(["saveState"]))),be.SAVE_STATE_SUCCESS),(0,he.set)((0,me.state)(q||(q=Me(["librarySave.cloudSave"]))),be.SAVE_STATE_SUCCESS)],error:[(0,he.set)((0,me.state)(G||(G=Me(["saveState"]))),be.SAVE_STATE_ERROR),(0,he.set)((0,me.state)($||($=Me(["librarySave.cloudSave"]))),be.SAVE_STATE_ERROR)]}],error:[(0,he.set)((0,me.state)(K||(K=Me(["saveState"]))),be.SAVE_STATE_ERROR),(0,he.set)((0,me.state)(Z||(Z=Me(["librarySave.cloudSave"]))),be.SAVE_STATE_ERROR)]}],error:[(0,he.set)((0,me.state)(X||(X=Me(["saveState"]))),be.SAVE_STATE_ERROR),(0,he.set)((0,me.state)(J||(J=Me(["librarySave.cloudSave"]))),be.SAVE_STATE_ERROR)]},(0,he.wait)(500),(0,he.set)((0,me.state)(Q||(Q=Me(["saveState"]))),be.SAVE_STATE_IDLE),(0,he.set)((0,me.state)(ee||(ee=Me(["librarySave.cloudSave"]))),be.SAVE_STATE_IDLE)],Ue=[(0,he.when)((0,me.state)(te||(te=Me(["libraryItem.cloudItemId"]))),(0,me.state)(re||(re=Me(["libraryItem.currentAction"]))),(function(e,t){return e&&be.LIBRARY_ITEM_ACTION_EDIT===t})),{true:[function(e){var t=(0,e.get)((0,me.state)(ne||(ne=Me(["templates.templates"])))),r=[];return(0,fe.default)(t,(function(e){e.placeholder||r.push(e.id)})),{exportTemplates:r}},(0,he.equals)((0,me.state)(oe||(oe=Me(["libraryItem.itemType"])))),(ae={},Ie(ae,be.LIBRARY_ITEM_TYPE_TEMPLATE,[function(){return{exportAll:!1,cloudContext:"templates"}},Ne]),Ie(ae,be.LIBRARY_ITEM_TYPE_SET,[function(){return{exportAll:!1,cloudContext:"template-sets"}},Ne]),Ie(ae,"otherwise",[]),ae)],false:[]}];t.saveEditedItemToCloud=Ue},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.refreshTerms=void 0;var n,o,a,i,u=(n=r(131))&&n.__esModule?n:{default:n},l=r(3);function c(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}t.refreshTerms=function(e,t){return function(r){var n=r.api,s=r.get,f=r.store;if(s((0,l.state)(o||(o=c(["librarySave.isTermsDirty.",""])),t)))return n.getTerms(e).then((function(e){var r=(0,u.default)(e,["name"]);f.set((0,l.state)(a||(a=c(["librarySave.",""])),t),r),f.set((0,l.state)(i||(i=c(["librarySave.isTermsDirty.",""])),t),!1)}))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.downloadExportedContent=function(e){var t=e.props.exportDowmloadURL,r=e.api,n=e.path;t||n.error();return r.downloadItem(t).then((function(e){return n.success({content:e})})).catch((function(){return n.error()}))},t.getStaticTemplateIds=function(e){var t=e.get;if(e.props.exportAll)return{exportTemplates:t((0,s.state)(n||(n=h(["templates.templateIds"]))))};var r,a=t((0,s.state)(o||(o=h(["templates.templates"]))));return(0,c.default)(a,(function(e){e.default||(r=e.id)})),{exportTemplates:[r]}},t.saveContentToCloud=function(e){var t=e.path,r=e.props,n=r.content,o=r.cloudContext,c=r.preferences,s=r.title,p=r.exportedTemplates,m="template-sets"===o?{"et-api-cloud-template-set-templates":(0,d.prepareCloudItemItems)(p)}:{},h={title:s,content:JSON.stringify(n),categories:[],tags:[],meta:m,status:"publish",width:""},b=(0,i.default)(n,"templates.0.description","");""!==b&&(0,a.default)(h,"excerpt",b);var v=c.new_category_name,g=c.new_tag_name,O=c.selected_tags,_=c.selected_cats,w=c.providedBaseUrl,T=v.split(",").map((function(e){return(0,u.default)(e)})),E=g.split(",").map((function(e){return(0,u.default)(e)})),P={tags:[].concat(y(O),y(E)),categories:[].concat(y(_),y(T))};return(0,f.saveToCloudPure)(o,h,P,l.default,0,w).then((function(e){return e.error?t.error({result:e}):t.success()})).catch((function(){return t.error()}))};var n,o,a=p(r(78)),i=p(r(5)),u=p(r(258)),l=p(r(8)),c=p(r(19)),s=r(3),f=r(127),d=r(340);function p(e){return e&&e.__esModule?e:{default:e}}function y(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function h(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}},function(e,t,r){var n=r(124);e.exports=function(e,t){for(var r=-1,o=e.length;++r<o&&n(t,e[r],0)>-1;);return r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.saveThemeBuilder=function(e){var t=e.api,r=e.get,p=e.path,y=e.props.draft,h=e.store,v=r((0,f.state)(n||(n=b(["templates.templates"])))),g=y?"draft":"live",O=r((0,f.state)(o||(o=b(["templates.templateIdMap.",""])),g)),_=(0,d.removePlaceholderTemplates)(v),w=(0,d.formatTemplatesForStorage)(_,O),T=r((0,f.state)(a||(a=b(["libraryItem.themeBuilderId"])))),E=r((0,f.state)(i||(i=b(["libraryItem.itemId"])))),P={};T&&E&&(P.library_theme_builder_id=T,P.library_item_id=E);return t.save(y,w,P).then((function(e){return(0,s.default)(e.updatedTemplateIds).length>0&&h.set((0,f.state)(u||(u=b(["templates.templateIdMap.",""])),g),m(m({},O),(0,c.default)(e.updatedTemplateIds,(function(e){return e.toString()})))),y||h.set((0,f.state)(l||(l=b(["templates.templateIdMap.draft"]))),{}),p.success()})).catch((function(){return p.error()}))};var n,o,a,i,u,l,c=p(r(38)),s=p(r(27)),f=r(3),d=r(34);function p(e){return e&&e.__esModule?e:{default:e}}function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i=r(3),u=r(4),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(533));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}function s(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var f={state:{itemId:0,itemType:null,isShowImportTemplatesModal:!1,presetTemplates:{},globalLayouts:{header:"",body:"",footer:""},defaultPresetTemplate:0,isDefaultTemplateUseModalOpen:function(e){return e((0,i.state)(o||(o=s(["openModal"]))))===u.MODAL_TYPE_USE_DEFAULT_TEMPLATE},isGlobalLayoutsUseModalOpen:function(e){return e((0,i.state)(a||(a=s(["openModal"]))))===u.MODAL_TYPE_USE_GLOBAL_LAYOUTS},loadDefaultTemplateAction:null,importState:u.IMPORT_STATE_IDLE,cloudItem:{item:{},hasPresets:!1,importPresetsToggle:"0",hasDefaultTemplate:!1,hasGlobalLayouts:null}},sequences:l};t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useGlobalLayouts=t.useDefaultTemplate=t.setLoadDefaultTemplateAction=t.setImportPresetsFlag=t.openImportTemplatesModal=t.onUseLibraryItem=t.onImportTemplatesClick=t.closeUseGlobalLayoutsModal=t.closeUseDefaultTemplateModal=t.closeImportTemplatesModal=t.beforeOnUseLibraryItem=void 0;var n,o,a,i,u,l,c,s,f,d,p,y,m,h,b,v,g,O,_,w,T,E,P,j,S,I,M,C,A,D,k,R,x,L,B,N,U,W,F,z,H,Y,V,q,G,$,K,Z,X,J,Q,ee,te,re,ne,oe,ae,ie,ue,le,ce,se,fe,de,pe,ye,me,he,be,ve,ge,Oe,_e,we,Te,Ee,Pe,je,Se,Ie,Me,Ce,Ae,De,ke,Re,xe,Le,Be,Ne,Ue,We,Fe,ze,He,Ye,Ve,qe,Ge,$e,Ke,Ze,Xe,Je,Qe,et,tt,rt,nt,ot,at,it,ut,lt,ct,st,ft,dt,pt,yt,mt,ht,bt,vt,gt,Ot,_t,wt,Tt,Et,Pt,jt,St,It,Mt=Gt(r(16)),Ct=Gt(r(15)),At=Gt(r(12)),Dt=Gt(r(5)),kt=Gt(r(19)),Rt=Gt(r(67)),xt=r(35),Lt=r(3),Bt=r(4),Nt=r(126),Ut=r(250),Wt=r(165),Ft=r(164),zt=Gt(r(13)),Ht=Gt(r(7)),Yt=r(73),Vt=r(534),qt=Gt(r(148));function Gt(e){return e&&e.__esModule?e:{default:e}}function $t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Zt=[(0,xt.when)((0,Lt.props)(n||(n=Kt(["isDownloadBackup"])))),{true:[function(){return{exportAll:!0,exportTemplates:[],download:!0}},Wt.exportThemeBuilder],false:[]}],Xt=[(0,xt.set)((0,Lt.state)(o||(o=Kt(["libraryUse.isShowImportTemplatesModal"]))),!0)];t.openImportTemplatesModal=Xt;var Jt=[(0,xt.set)((0,Lt.state)(a||(a=Kt(["libraryUse.isShowImportTemplatesModal"]))),!1),(0,xt.set)((0,Lt.state)(i||(i=Kt(["libraryUse.importState"]))),Bt.IMPORT_STATE_IDLE),(0,xt.set)((0,Lt.state)(u||(u=Kt(["libraryUse.defaultPresetTemplate"]))),0),(0,xt.set)((0,Lt.state)(l||(l=Kt(["libraryUse.cloudItem.item"]))),{}),(0,xt.set)((0,Lt.state)(c||(c=Kt(["libraryUse.cloudItem.hasPresets"]))),!1),(0,xt.set)((0,Lt.state)(s||(s=Kt(["libraryUse.cloudItem.importPresetsToggle"]))),"0"),(0,xt.set)((0,Lt.state)(f||(f=Kt(["libraryUse.cloudItem.overrideDefaultWebsiteTemplate"]))),!1)];t.closeImportTemplatesModal=Jt;var Qt=[(0,xt.set)((0,Lt.state)(d||(d=Kt(["libraryUse.loadDefaultTemplateAction"]))),Bt.LOAD_TEMPLATE_ACTION_OVERRIDE_DEFAULT),(0,Yt.openModal)(Bt.MODAL_TYPE_USE_DEFAULT_TEMPLATE)],er=[(0,xt.set)((0,Lt.state)(p||(p=Kt(["libraryUse.cloudItem.item"]))),{}),(0,xt.set)((0,Lt.state)(y||(y=Kt(["libraryUse.cloudItem.hasPresets"]))),!1),(0,xt.set)((0,Lt.state)(m||(m=Kt(["libraryUse.cloudItem.importPresetsToggle"]))),"0"),(0,xt.set)((0,Lt.state)(h||(h=Kt(["libraryUse.cloudItem.overrideDefaultWebsiteTemplate"]))),!1),(0,xt.set)((0,Lt.state)(b||(b=Kt(["libraryUse.loadDefaultTemplateAction"]))),null),(0,Yt.closeModal)(Bt.MODAL_TYPE_USE_DEFAULT_TEMPLATE)];t.closeUseDefaultTemplateModal=er;var tr=[(0,xt.set)((0,Lt.state)(v||(v=Kt(["libraryUse.loadDefaultTemplateAction"]))),(0,Lt.props)(g||(g=Kt(["action"]))))];t.setLoadDefaultTemplateAction=tr;var rr=[(0,xt.set)((0,Lt.state)(O||(O=Kt(["libraryUse.loadDefaultTemplateAction"]))),Bt.LOAD_TEMPLATE_ACTION_LOAD_WITH_GLOBAL_REFERENCES),(0,Yt.openModal)(Bt.MODAL_TYPE_USE_GLOBAL_LAYOUTS)],nr=[(0,xt.set)((0,Lt.state)(_||(_=Kt(["libraryUse.cloudItem.item"]))),{}),(0,xt.set)((0,Lt.state)(w||(w=Kt(["libraryUse.cloudItem.hasPresets"]))),!1),(0,xt.set)((0,Lt.state)(T||(T=Kt(["libraryUse.cloudItem.importPresetsToggle"]))),"0"),(0,xt.set)((0,Lt.state)(E||(E=Kt(["libraryUse.cloudItem.overrideDefaultWebsiteTemplate"]))),!1),(0,xt.set)((0,Lt.state)(P||(P=Kt(["libraryUse.loadDefaultTemplateAction"]))),null),(0,Yt.closeModal)(Bt.MODAL_TYPE_USE_GLOBAL_LAYOUTS)];t.closeUseGlobalLayoutsModal=nr;var or=[(0,xt.when)((0,Lt.props)(j||(j=Kt(["isFile"])))),{true:[Vt.parseCloudItem,function(e){var t=e.store,r=e.props,n=r.isCloudItem,o=r.hasDefaultTemplate,a=r.hasGlobalLayouts,i=r.hasPresets,u=r.itemId;if(n){var l=JSON.parse(u);t.set((0,Lt.state)(S||(S=Kt(["libraryUse.itemId"]))),0),t.set((0,Lt.state)(I||(I=Kt(["libraryUse.defaultPresetTemplate"]))),0),t.set((0,Lt.state)(M||(M=Kt(["libraryUse.cloudItem.hasDefaultTemplate"]))),o),t.set((0,Lt.state)(C||(C=Kt(["libraryUse.cloudItem.hasGlobalLayouts"]))),a),t.set((0,Lt.state)(A||(A=Kt(["libraryUse.cloudItem.hasPresets"]))),i),t.set((0,Lt.state)(D||(D=Kt(["libraryUse.cloudItem.item"]))),l)}},function(e){var t=e.get,r=e.path,n=e.props,o=n.hasDefaultTemplate,a=n.hasGlobalLayouts,i=n.hasPresets;if(n.isCloudItem){var u=o||a||i,l=t((0,Lt.state)(k||(k=Kt(["themeBuilderLibrary.themeBuilderItemType"]))));return u&&l===Bt.LIBRARY_ITEM_TYPE_SET?r.show_import_templates_modal():u&&l===Bt.LIBRARY_ITEM_TYPE_TEMPLATE?r.show_load_template_modal():r.importFile()}},{show_load_template_modal:[(0,xt.equals)((0,Lt.state)(R||(R=Kt(["libraryUse.cloudItem.hasDefaultTemplate"])))),{true:[(0,xt.set)((0,Lt.state)(x||(x=Kt(["libraryUse.importState"]))),Bt.IMPORT_STATE_IDLE),Qt],false:[(0,xt.set)((0,Lt.state)(L||(L=Kt(["libraryUse.importState"]))),Bt.IMPORT_STATE_IDLE),rr]}],show_import_templates_modal:[function(e){var t=e.store,r=e.props,n=r.hasDefaultTemplate,o=r.hasGlobalLayouts;!n&&o&&t.set((0,Lt.state)(B||(B=Kt(["libraryUse.importState"]))),Bt.IMPORT_STATE_INCOMING_LAYOUT_DUPLICATE_DECISION)},(0,xt.set)((0,Lt.state)(N||(N=Kt(["libraryUse.importState"]))),Bt.IMPORT_STATE_IDLE),Xt],importFile:[function(e){var t=e.path,r=(0,e.get)((0,Lt.state)(U||(U=Kt(["libraryUse.cloudItem.item"])))),n=(0,Ct.default)(r)&&!(0,At.default)(r)?JSON.stringify(r):JSON.stringify({});return(0,At.default)(n)?t.nothing_to_import():t.import_file({file:new qt.default([n],"items.json",{type:"application/json"}),overrideDefaultWebsiteTemplate:!1})},{import_file:[(0,xt.set)((0,Lt.state)(W||(W=Kt(["libraryUse.importState"]))),Bt.IMPORT_STATE_LOADING),Wt.importThemeBuilder,(0,xt.when)((0,Lt.props)(F||(F=Kt(["importSuccessful"])))),{true:[(0,xt.set)((0,Lt.state)(z||(z=Kt(["libraryUse.importState"]))),Bt.IMPORT_STATE_IDLE),Jt,Ft.closeCurrentModal],false:[(0,xt.set)((0,Lt.state)(H||(H=Kt(["libraryUse.importState"]))),Bt.IMPORT_STATE_IDLE)]}],nothing_to_import:[(0,xt.set)((0,Lt.state)(Y||(Y=Kt(["libraryUse.importState"]))),Bt.IMPORT_STATE_IDLE)]}],has_errors:[]}],false:[(0,xt.set)((0,Lt.state)(V||(V=Kt(["libraryUse.itemId"]))),(0,Lt.props)(q||(q=Kt(["itemId"])))),function(e){var t=e.props,r=t.itemId,n=t.isOverrideDefaultTemplate,o=void 0===n||n,a=t.isOverrideAssignments,i=void 0!==a&&a,u=t.isDownloadBackup,l=void 0!==u&&u,c=t.incomingLayoutDuplicateDecision,s=void 0===c?"":c,f=e.api,d=e.path,p=e.store;return f.useLibraryItem(r,o,i,l,s).then((function(e){var t=e.item_type;return Bt.LIBRARY_ITEM_TYPE_TEMPLATE===t?(p.set((0,Lt.state)(G||(G=Kt(["libraryUse.newItem"]))),e.item_data),d.success({itemType:t,newLayouts:e.item_data.layouts,templateSettings:e.item_data.settings})):Bt.LIBRARY_ITEM_TYPE_SET===t?d.success({itemType:t,itemData:e.item_data,override_default_website_template:e.override_default_website_template,override_assignments:e.override_assignments,download_backup:e.download_backup,incoming_layout_duplicate_decision:e.incoming_layout_duplicate_decision}):void 0})).catch((function(e){return(0,Dt.default)(e,"code")===zt.default.apiErrors.portabilityRequireIncomingLayoutDuplicateDecision?d.promptIncomingLayoutDuplicateDecision():d.error()}))},{success:[(0,xt.equals)((0,Lt.props)($||($=Kt(["itemType"])))),(ee={},$t(ee,Bt.LIBRARY_ITEM_TYPE_TEMPLATE,[function(e){var t=e.props.templateSettings,r=e.path;return"1"===t.default?r.default_template():r.static_template()},{default_template:[(0,xt.set)((0,Lt.state)(K||(K=Kt(["libraryUse.importState"]))),Bt.IMPORT_STATE_IDLE),Qt],static_template:[function(e){var t=e.get,r=e.path,n=t((0,Lt.state)(Z||(Z=Kt(["libraryUse.newItem.settings"])))),o=!1;return(0,kt.default)(Bt.LAYOUT_TYPES,(function(e){if("1"===n["".concat(e,"_layout_global")])return o=!0,!1})),o?r.has_global_layouts():r.no_global_layouts_found()},{no_global_layouts_found:[(0,xt.set)((0,Lt.state)(X||(X=Kt(["libraryUse.importState"]))),Bt.IMPORT_STATE_LOADING),Ut.addTemplate,Vt.updateTemplateSettings,Vt.updateLayoutIds,Vt.removeExistingAssignments,(0,xt.set)((0,Lt.state)(J||(J=Kt(["libraryUse.importState"]))),Bt.IMPORT_STATE_IDLE),Ft.closeCurrentModal],has_global_layouts:[(0,xt.set)((0,Lt.state)(Q||(Q=Kt(["libraryUse.importState"]))),Bt.IMPORT_STATE_IDLE),rr]}]},(0,Nt.addHistoryPoint)((0,Ht.default)("themeBuilder","Loaded Template"))]),$t(ee,Bt.LIBRARY_ITEM_TYPE_SET,[Zt,Vt.generatePresetTemplates,Vt.updateThemeBuilderTemplatesButDefault,Vt.updateThemeBuilderDefaultTemplate,(0,Nt.addHistoryPoint)((0,Ht.default)("themeBuilder","Loaded Preset")),(0,xt.wait)(200),Jt,Ft.closeCurrentModal]),$t(ee,"otherwise",[]),ee)],error:[(0,xt.set)((0,Lt.state)(te||(te=Kt(["libraryUse.importState"]))),Bt.IMPORT_STATE_ERROR),Jt,Ft.closeCurrentModal],promptIncomingLayoutDuplicateDecision:[(0,xt.set)((0,Lt.state)(re||(re=Kt(["libraryUse.importState"]))),Bt.IMPORT_STATE_INCOMING_LAYOUT_DUPLICATE_DECISION)]}]}];t.onUseLibraryItem=or;var ar=[(0,xt.when)((0,Lt.state)(ne||(ne=Kt(["libraryUse.cloudItem.item"]))),(function(e){return!(0,At.default)(e)})),{true:[(0,xt.equals)((0,Lt.state)(oe||(oe=Kt(["libraryUse.importState"])))),(Te={},$t(Te,Bt.IMPORT_STATE_INCOMING_LAYOUT_DUPLICATE_DECISION,[(0,xt.set)((0,Lt.state)(ae||(ae=Kt(["libraryUse.importState"]))),Bt.IMPORT_STATE_LOADING),Zt,function(e){var t=e.path,r=e.get,n=e.props.incomingLayoutDuplicateDecision,o=r((0,Lt.state)(ie||(ie=Kt(["libraryUse.cloudItem.item"])))),a=(0,Ct.default)(o)&&!(0,At.default)(o)?JSON.stringify(o):JSON.stringify({}),i=!0===r((0,Lt.state)(ue||(ue=Kt(["libraryUse.cloudItem.hasPresets"]))))&&"1"===r((0,Lt.state)(le||(le=Kt(["libraryUse.cloudItem.importPresetsToggle"]))));return(0,At.default)(a)?t.nothingToImport():t.importFile({file:new qt.default([a],"items.json",{type:"application/json"}),overrideDefaultWebsiteTemplate:!1,incomingLayoutDuplicateDecision:n,importPresets:i})},{importFile:[Wt.importThemeBuilder,(0,xt.when)((0,Lt.props)(ce||(ce=Kt(["importSuccessful"])))),{true:[(0,xt.set)((0,Lt.state)(se||(se=Kt(["libraryUse.importState"]))),Bt.IMPORT_STATE_IDLE),Jt,Ft.closeCurrentModal],false:[(0,xt.set)((0,Lt.state)(fe||(fe=Kt(["libraryUse.importState"]))),Bt.IMPORT_STATE_IDLE)]}],nothingToImport:[(0,xt.set)((0,Lt.state)(de||(de=Kt(["libraryUse.importState"]))),Bt.IMPORT_STATE_IDLE)]}]),$t(Te,Bt.IMPORT_STATE_IDLE,[function(e){var t=e.path,r=e.get,n=e.props.isOverrideDefaultTemplate;return r((0,Lt.state)(pe||(pe=Kt(["libraryUse.cloudItem.hasDefaultTemplate"]))))&&!n?t.promptIncomingLayoutDuplicateDecision():t.importFile()},{promptIncomingLayoutDuplicateDecision:[(0,xt.set)((0,Lt.state)(ye||(ye=Kt(["libraryUse.importState"]))),Bt.IMPORT_STATE_INCOMING_LAYOUT_DUPLICATE_DECISION)],importFile:[(0,xt.set)((0,Lt.state)(me||(me=Kt(["libraryUse.importState"]))),Bt.IMPORT_STATE_LOADING),Zt,function(e){var t=e.path,r=e.get,n=e.props.isOverrideDefaultTemplate,o=r((0,Lt.state)(he||(he=Kt(["libraryUse.cloudItem.item"])))),a=(0,Ct.default)(o)&&!(0,At.default)(o)?JSON.stringify(o):JSON.stringify({}),i=!0===r((0,Lt.state)(be||(be=Kt(["libraryUse.cloudItem.hasPresets"]))))&&"1"===r((0,Lt.state)(ve||(ve=Kt(["libraryUse.cloudItem.importPresetsToggle"]))));return(0,At.default)(a)?t.nothing_to_import():t.import_file({file:new qt.default([a],"items.json",{type:"application/json"}),overrideDefaultWebsiteTemplate:n,importPresets:i})},{import_file:[Wt.importThemeBuilder,(0,xt.when)((0,Lt.props)(ge||(ge=Kt(["importSuccessful"])))),{true:[(0,xt.set)((0,Lt.state)(Oe||(Oe=Kt(["libraryUse.importState"]))),Bt.IMPORT_STATE_IDLE),Jt,Ft.closeCurrentModal],false:[(0,xt.set)((0,Lt.state)(_e||(_e=Kt(["libraryUse.importState"]))),Bt.IMPORT_STATE_IDLE)]}],nothing_to_import:[(0,xt.set)((0,Lt.state)(we||(we=Kt(["libraryUse.importState"]))),Bt.IMPORT_STATE_IDLE)]}]}]),$t(Te,"otherwise",[]),Te)],false:[or]}];t.onImportTemplatesClick=ar;var ir=[(0,xt.equals)((0,Lt.state)(Ee||(Ee=Kt(["themeBuilderLibrary.themeBuilderItemType"])))),(Ae={},$t(Ae,Bt.LIBRARY_ITEM_TYPE_SET,[(0,xt.when)((0,Lt.props)(Pe||(Pe=Kt(["isFile"])))),{true:[or],false:[Vt.getPresetDefaultTemplateId,{success:[(0,xt.set)((0,Lt.state)(je||(je=Kt(["libraryUse.defaultPresetTemplate"]))),(0,Lt.props)(Se||(Se=Kt(["defaultPresetTemplate"]))))],error:[(0,xt.set)((0,Lt.state)(Ie||(Ie=Kt(["libraryUse.defaultPresetTemplate"]))),0)]},Xt,(0,xt.set)((0,Lt.state)(Me||(Me=Kt(["libraryUse.itemId"]))),(0,Lt.props)(Ce||(Ce=Kt(["itemId"]))))]}]),$t(Ae,Bt.LIBRARY_ITEM_TYPE_TEMPLATE,[or]),$t(Ae,"otherwise",[]),Ae)];t.beforeOnUseLibraryItem=ir;var ur=[(0,xt.when)((0,Lt.state)(De||(De=Kt(["libraryUse.itemId"]))),(0,Lt.state)(ke||(ke=Kt(["libraryUse.cloudItem.item"]))),(function(e,t){return 0===e&&!(0,At.default)(t)})),{true:[(0,xt.set)((0,Lt.state)(Re||(Re=Kt(["libraryUse.importState"]))),Bt.IMPORT_STATE_LOADING),function(e){var t=e.path,r=e.get,n=Bt.LOAD_TEMPLATE_ACTION_OVERRIDE_DEFAULT===r((0,Lt.state)(xe||(xe=Kt(["libraryUse.loadDefaultTemplateAction"])))),o=r((0,Lt.state)(Le||(Le=Kt(["libraryUse.loadDefaultTemplateAction"])))),a=r((0,Lt.state)(Be||(Be=Kt(["libraryUse.cloudItem.item"])))),i=!0===r((0,Lt.state)(Ne||(Ne=Kt(["libraryUse.cloudItem.hasPresets"]))))&&"1"===r((0,Lt.state)(Ue||(Ue=Kt(["libraryUse.cloudItem.importPresetsToggle"])))),u=(0,Ct.default)(a)&&!(0,At.default)(a)?JSON.stringify(a):JSON.stringify({});return(0,At.default)(u)?t.nothing_to_import():t.import_file({file:new qt.default([u],"items.json",{type:"application/json"}),overrideDefaultWebsiteTemplate:n,incomingLayoutDuplicateDecision:Bt.LOAD_TEMPLATE_ACTION_LOAD_AS_STATIC===o?"duplicate":"",importPresets:i})},{import_file:[Wt.importThemeBuilder,(0,xt.when)((0,Lt.props)(We||(We=Kt(["importSuccessful"])))),{true:[(0,xt.set)((0,Lt.state)(Fe||(Fe=Kt(["libraryUse.importState"]))),Bt.IMPORT_STATE_IDLE),er],false:[(0,xt.set)((0,Lt.state)(ze||(ze=Kt(["libraryUse.importState"]))),Bt.IMPORT_STATE_IDLE)]}],nothing_to_import:[(0,xt.set)((0,Lt.state)(He||(He=Kt(["libraryUse.importState"]))),Bt.IMPORT_STATE_IDLE),er]}],false:[(0,xt.equals)((0,Lt.state)(Ye||(Ye=Kt(["libraryUse.loadDefaultTemplateAction"])))),(nt={},$t(nt,Bt.LOAD_TEMPLATE_ACTION_LOAD_AS_STATIC,[(0,xt.set)((0,Lt.state)(Ve||(Ve=Kt(["libraryUse.importState"]))),Bt.IMPORT_STATE_LOADING),Ut.addTemplate,Vt.updateTemplateSettings,Vt.updateLayoutIds]),$t(nt,Bt.LOAD_TEMPLATE_ACTION_OVERRIDE_DEFAULT,[(0,xt.set)((0,Lt.state)(qe||(qe=Kt(["libraryUse.importState"]))),Bt.IMPORT_STATE_LOADING),function(e){var t=e.get,r=e.store,n=t((0,Lt.state)(Ge||(Ge=Kt(["templates.defaultTemplate"])))),o=t((0,Lt.state)($e||($e=Kt(["libraryUse.newItem.layouts"])))),a=t((0,Lt.state)(Ke||(Ke=Kt(["templates.templates.",".layouts"])),n)),i=t((0,Lt.state)(Ze||(Ze=Kt(["templates.templates"])))),u=(0,Rt.default)(a);(0,kt.default)(Bt.LAYOUT_TYPES,(function(e){var t=(0,Dt.default)(o,e,0);t?r.set((0,Lt.state)(Xe||(Xe=Kt(["templates.templates.",".layouts.",".layout"])),n,e),(0,Mt.default)(t)):r.set((0,Lt.state)(Je||(Je=Kt(["templates.templates.",".layouts.",".layout"])),n,e),null)})),(0,kt.default)(i,(function(e,o){o!==n&&(0,kt.default)(Bt.LAYOUT_TYPES,(function(e){if(t((0,Lt.state)(Qe||(Qe=Kt(["templates.templates.",".layouts.",".layout"])),o,e))===(0,Dt.default)(u,"".concat(e,".layout"))){var a=t((0,Lt.state)(et||(et=Kt(["templates.templates.",".layouts.",".layout"])),n,e));a?r.set((0,Lt.state)(tt||(tt=Kt(["templates.templates.",".layouts.",".layout"])),o,e),(0,Mt.default)(a)):r.set((0,Lt.state)(rt||(rt=Kt(["templates.templates.",".layouts.",".layout"])),o,e),null)}}))}))}]),nt),(0,xt.set)((0,Lt.state)(ot||(ot=Kt(["libraryUse.importState"]))),Bt.IMPORT_STATE_IDLE),er]}];t.useDefaultTemplate=ur;var lr=[(0,xt.when)((0,Lt.state)(at||(at=Kt(["libraryUse.itemId"]))),(function(e){return 0!==e})),{true:[(0,xt.set)((0,Lt.state)(it||(it=Kt(["libraryUse.importState"]))),Bt.IMPORT_STATE_LOADING),Ut.addTemplate,Vt.updateTemplateSettings,(0,xt.equals)((0,Lt.state)(ut||(ut=Kt(["libraryUse.loadDefaultTemplateAction"])))),(ht={},$t(ht,Bt.LOAD_TEMPLATE_ACTION_LOAD_AS_STATIC,[Vt.updateLayoutIds]),$t(ht,Bt.LOAD_TEMPLATE_ACTION_LOAD_WITH_GLOBAL_REFERENCES,[function(e){var t=e.props.templateId,r=e.store,n=e.get,o=n((0,Lt.state)(lt||(lt=Kt(["templates.defaultTemplate"])))),a=n((0,Lt.state)(ct||(ct=Kt(["libraryUse.newItem.layouts"])))),i=n((0,Lt.state)(st||(st=Kt(["libraryUse.newItem.settings"])))),u={body:n((0,Lt.state)(ft||(ft=Kt(["templates.templates.",".layouts.body.layout"])),o)),header:n((0,Lt.state)(dt||(dt=Kt(["templates.templates.",".layouts.header.layout"])),o)),footer:n((0,Lt.state)(pt||(pt=Kt(["templates.templates.",".layouts.footer.layout"])),o))};(0,kt.default)(Bt.LAYOUT_TYPES,(function(e){var n;n=(n="1"===i["".concat(e,"_layout_global")]?(0,Dt.default)(u,e,!1):(0,Dt.default)(a,e,0))?(0,Mt.default)(n):null,r.set((0,Lt.state)(yt||(yt=Kt(["templates.templates.",".layouts.",".layout"])),t,e),n),r.set((0,Lt.state)(mt||(mt=Kt(["templates.templates.",".layouts.",".enabled"])),t,e),"1"===i["".concat(e,"_layout_enabled")])}))}]),ht),(0,xt.set)((0,Lt.state)(bt||(bt=Kt(["libraryUse.importState"]))),Bt.IMPORT_STATE_IDLE),nr],false:[(0,xt.set)((0,Lt.state)(vt||(vt=Kt(["libraryUse.importState"]))),Bt.IMPORT_STATE_LOADING),function(e){var t=e.get,r=t((0,Lt.state)(gt||(gt=Kt(["libraryUse.loadDefaultTemplateAction"]))))===Bt.LOAD_TEMPLATE_ACTION_LOAD_AS_STATIC,n=t((0,Lt.state)(Ot||(Ot=Kt(["libraryUse.loadDefaultTemplateAction"]))))===Bt.LOAD_TEMPLATE_ACTION_LOAD_WITH_GLOBAL_REFERENCES,o=t((0,Lt.state)(_t||(_t=Kt(["libraryUse.cloudItem.item"])))),a=(0,Ct.default)(o)?JSON.stringify(o):JSON.stringify({}),i=!0===t((0,Lt.state)(wt||(wt=Kt(["libraryUse.cloudItem.overrideDefaultWebsiteTemplate"])))),u=r?"duplicate":n?"relink":"",l="1"===t((0,Lt.state)(Tt||(Tt=Kt(["libraryUse.cloudItem.importPresetsToggle"]))));return{file:new qt.default([a],"items.json",{type:"application/json"}),overrideDefaultWebsiteTemplate:i,incomingLayoutDuplicateDecision:u,importPresets:l}},Wt.importThemeBuilder,(0,xt.when)((0,Lt.props)(Et||(Et=Kt(["importSuccessful"])))),{true:[(0,xt.set)((0,Lt.state)(Pt||(Pt=Kt(["libraryUse.importState"]))),Bt.IMPORT_STATE_IDLE),nr],false:[(0,xt.set)((0,Lt.state)(jt||(jt=Kt(["libraryUse.importState"]))),Bt.IMPORT_STATE_IDLE)]}]}];t.useGlobalLayouts=lr;var cr=[(0,xt.set)((0,Lt.state)(St||(St=Kt(["libraryUse.cloudItem.importPresetsToggle"]))),(0,Lt.props)(It||(It=Kt(["toggle"]))))];t.setImportPresetsFlag=cr},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateThemeBuilderTemplatesButDefault=t.updateThemeBuilderDefaultTemplate=t.updateTemplateSettings=t.updateLayoutIds=t.setPresetTemplatesGlobalLayouts=t.replaceDefaultTemplate=t.removeExistingAssignments=t.parseCloudItem=t.getPresetDefaultTemplateId=t.generatePresetTemplates=void 0;var n,o,a,i,u,l,c,s,f,d,p,y,m,h,b,v,g,O,_,w,T,E,P,j,S,I,M,C,A,D,k,R,x,L,B,N,U,W,F,z,H,Y,V,q,G,$,K=ye(r(56)),Z=ye(r(16)),X=ye(r(78)),J=ye(r(342)),Q=ye(r(17)),ee=ye(r(23)),te=ye(r(39)),re=ye(r(12)),ne=ye(r(259)),oe=ye(r(5)),ae=ye(r(19)),ie=ye(r(245)),ue=ye(r(32)),le=ye(r(537)),ce=r(3),se=r(92),fe=r(4),de=r(538),pe=r(34);function ye(e){return e&&e.__esModule?e:{default:e}}function me(e){return function(e){if(Array.isArray(e))return he(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return he(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return he(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function be(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}t.setPresetTemplatesGlobalLayouts=function(e){var t=e.get,r=e.store,s=t((0,ce.state)(n||(n=be(["libraryUse.presetTemplates"]))));(0,ae.default)(s,(function(e,n){if(!n.default){var s="use_global"===e.layouts[fe.LAYOUT_TYPE_HEADER].layout,f=t((0,ce.state)(o||(o=be(["libraryUse.globalLayouts.",""])),fe.LAYOUT_TYPE_HEADER)),d="use_global"===e.layouts[fe.LAYOUT_TYPE_BODY].layout,p=t((0,ce.state)(a||(a=be(["libraryUse.globalLayouts.",""])),fe.LAYOUT_TYPE_BODY)),y="use_global"===e.layouts[fe.LAYOUT_TYPE_FOOTER].layout,m=t((0,ce.state)(i||(i=be(["libraryUse.globalLayouts.",""])),fe.LAYOUT_TYPE_FOOTER));s&&r.set((0,ce.state)(u||(u=be(["libraryUse.presetTemplates.",".layouts.",".layout"])),n,fe.LAYOUT_TYPE_HEADER),f),d&&r.set((0,ce.state)(l||(l=be(["libraryUse.presetTemplates.",".layouts.",".layout"])),n,fe.LAYOUT_TYPE_BODY),p),y&&r.set((0,ce.state)(c||(c=be(["libraryUse.presetTemplates.",".layouts.",".layout"])),n,fe.LAYOUT_TYPE_FOOTER),m)}}))};t.replaceDefaultTemplate=function(e){var t=e.get,r=e.store,n=t((0,ce.state)(s||(s=be(["templates.defaultTemplate"])))),o=t((0,ce.state)(f||(f=be(["libraryUse.defaultPresetTemplate"])))),a=t((0,ce.state)(d||(d=be(["libraryUse.presetTemplates.",""])),o));r.set((0,ce.state)(p||(p=be(["templates.templates.",".layouts"])),n),a.layouts),r.set((0,ce.state)(y||(y=be(["templates.templates.",".automaticTitle"])),n),a.automaticTitle),r.set((0,ce.state)(m||(m=be(["templates.templates.",".enabled"])),n),a.enabled),r.set((0,ce.state)(h||(h=be(["templates.templates.",".excludeFrom"])),n),a.excludeFrom),r.set((0,ce.state)(b||(b=be(["templates.templates.",".useOn"])),n),a.useOn)};t.generatePresetTemplates=function(e){var t=e.get,r=e.store,n=e.props,o=n.itemData,a=n.override_default_website_template,i={},u=t((0,ce.state)(v||(v=be(["templates.defaultTemplate"])))),l=t((0,ce.state)(g||(g=be(["templates.templates.",""])),u));(0,ae.default)(o,(function(e){var t=(0,se.v4)(),n=(0,pe.getEmptyTemplate)(t),o=e.settings,u=e.layouts;(0,ae.default)(fe.LAYOUT_TYPES,(function(e){var t=(0,oe.default)(u,e,null);"use_global"===(t=null!==t?(0,Z.default)(t):null)&&(t=(0,oe.default)(l,"layouts.".concat(e,".layout"))),(0,X.default)(n,"layouts.".concat(e,".layout"),t),(0,X.default)(n,"layouts.".concat(e,".enabled"),"1"===o["".concat(e,"_layout_enabled")])})),(0,ae.default)(de.storePathSettingKeyMapping,(function(e,i){if("default"===e){var u="1"===o[e];u&&(a?((0,X.default)(n,"".concat(i),u),r.set((0,ce.state)(O||(O=be(["libraryUse.defaultPresetTemplate"]))),t)):((0,X.default)(n,"default",!1),(0,X.default)(n,"automaticTitle",""),(0,X.default)(n,"automaticMeta","")))}else(0,X.default)(n,"".concat(i),o[e])})),(0,X.default)(i,"".concat(t),n)})),r.set((0,ce.state)(_||(_=be(["libraryUse.presetTemplates"]))),i)};t.updateThemeBuilderTemplatesButDefault=function(e){var t=e.get,r=e.store,n=e.props.override_assignments,o=t((0,ce.state)(w||(w=be(["libraryUse.presetTemplates"])))),a=t((0,ce.state)(T||(T=be(["templates.templates"]))));(0,ae.default)(o,(function(e,t){if(!e.default){if(n){var i=(0,oe.default)(e,"useOn");(0,ae.default)(a,(function(e,t){var n=(0,oe.default)(e,"useOn");if(!e.default&&(0,ne.default)(n,i).length){var o=(0,le.default)(n,i);r.set((0,ce.state)(E||(E=be(["templates.templates.",".useOn"])),t),o),r.set((0,ce.state)(P||(P=be(["templates.templates.",".automaticTitle"])),t),""),r.set((0,ce.state)(j||(j=be(["templates.templates.",".automaticMeta"])),t),"")}}))}else{var u=(0,ie.default)((0,Q.default)((0,ue.default)(a,(function(e){return e.id!==t})),"useOn")),l=(0,oe.default)(e,"useOn"),c=K.default.apply(void 0,[l].concat(me(u)));c.length<e.useOn.length&&r.set((0,ce.state)(S||(S=be(["libraryUse.presetTemplates.",".useOn"])),t),c)}r.set((0,ce.state)(I||(I=be(["templates.templates.",""])),t),o[t])}}))};t.updateThemeBuilderDefaultTemplate=function(e){var t=e.get,r=e.store,n=e.props.override_default_website_template;if(n){var o=t((0,ce.state)(M||(M=be(["libraryUse.presetTemplates"])))),a=t((0,ce.state)(C||(C=be(["templates.defaultTemplate"])))),i=o[t((0,ce.state)(A||(A=be(["libraryUse.defaultPresetTemplate"]))))];n&&!(0,ee.default)(i)&&(r.set((0,ce.state)(D||(D=be(["templates.templates.",".layouts"])),a),i.layouts),r.set((0,ce.state)(k||(k=be(["templates.templates.",".automaticTitle"])),a),i.automaticTitle),r.set((0,ce.state)(R||(R=be(["templates.templates.",".enabled"])),a),i.enabled),r.set((0,ce.state)(x||(x=be(["templates.templates.",".excludeFrom"])),a),i.excludeFrom),r.set((0,ce.state)(L||(L=be(["templates.templates.",".useOn"])),a),i.useOn))}};t.updateLayoutIds=function(e){var t=e.props.templateId,r=e.store,n=e.get,o=n((0,ce.state)(B||(B=be(["libraryUse.newItem.layouts"])))),a=n((0,ce.state)(N||(N=be(["libraryUse.newItem.settings"]))));(0,ae.default)(fe.LAYOUT_TYPES,(function(e){var n=(0,oe.default)(o,e,0);n?r.set((0,ce.state)(U||(U=be(["templates.templates.",".layouts.",".layout"])),t,e),(0,Z.default)(n)):r.set((0,ce.state)(W||(W=be(["templates.templates.",".layouts.",".layout"])),t,e),null),r.set((0,ce.state)(F||(F=be(["templates.templates.",".layouts.",".enabled"])),t,e),"1"===a["".concat(e,"_layout_enabled")])}))};t.updateTemplateSettings=function(e){var t=e.props.templateId,r=e.store,n=(0,e.get)((0,ce.state)(z||(z=be(["libraryUse.newItem.settings"])))),o=(0,de.formatTemplateSettingsForUse)(n),a=(0,J.default)(de.storePathSettingKeyMapping,(function(e,t){return"default"!==t}));(0,ae.default)(a,(function(e,n){r.set((0,ce.state)(H||(H=be(["templates.templates.",".",""])),t,n),o[e])}))};t.getPresetDefaultTemplateId=function(e){var t=e.props.itemId,r=e.api,n=e.path;return r.getPresetDefaultTemplateId(t).then((function(e){return n.success({defaultPresetTemplate:e.default_template_id})})).catch((function(){return n.error()}))};t.parseCloudItem=function(e){var t=e.props,r=t.itemId,n=t.isFile,o=void 0!==n&&n,a=(0,te.default)(r)&&o,i=JSON.parse(r),u=(0,oe.default)(i,"has_global_layouts",!1),l=(0,oe.default)(i,"has_default_template",!1);return{isCloudItem:a,hasGlobalLayouts:u,hasPresets:!(0,re.default)((0,oe.default)(i,"presets",{})),hasDefaultTemplate:l}};t.removeExistingAssignments=function(e){var t=e.get,r=e.store,n=e.props.templateId,o=t((0,ce.state)(Y||(Y=be(["templates.templates"])))),a=t((0,ce.state)(V||(V=be(["templates.templates.",""])),n));(0,ae.default)(o,(function(e,t){var o=(0,oe.default)(e,"useOn");if(t!==n&&!e.default){var i=(0,oe.default)(a,"useOn");if((0,ne.default)(o,i).length){var u=(0,le.default)(o,i);r.set((0,ce.state)(q||(q=be(["templates.templates.",".useOn"])),t),u),r.set((0,ce.state)(G||(G=be(["templates.templates.",".automaticTitle"])),t),""),r.set((0,ce.state)($||($=be(["templates.templates.",".automaticMeta"])),t),"")}}}))}},function(e,t,r){var n=r(143),o=r(160),a=r(252),i=r(49),u=r(65),l=r(144),c=Math.min;e.exports=function(e,t,r){for(var s=r?a:o,f=e[0].length,d=e.length,p=d,y=Array(d),m=1/0,h=[];p--;){var b=e[p];p&&t&&(b=i(b,u(t))),m=c(b.length,m),y[p]=!r&&(t||f>=120&&b.length>=120)?new n(p&&b):void 0}b=e[0];var v=-1,g=y[0];e:for(;++v<f&&h.length<m;){var O=b[v],_=t?t(O):O;if(O=r||0!==O?O:0,!(g?l(g,_):s(h,_,r))){for(p=d;--p;){var w=y[p];if(!(w?l(w,_):s(e[p],_,r)))continue e}g&&g.push(_),h.push(O)}}return h}},function(e,t,r){var n=r(79);e.exports=function(e){return n(e)?e:[]}},function(e,t,r){var n=r(251),o=r(107),a=r(50),i=r(79),u=a((function(e,t){return i(e)?n(e,o(t,1,i,!0)):[]}));e.exports=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storePathSettingKeyMapping=t.getIconNameByImportState=t.formatTemplateSettingsForUse=void 0;var n=i(r(38)),o=i(r(5)),a=r(4);function i(e){return e&&e.__esModule?e:{default:e}}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.formatTemplateSettingsForUse=function(e){return(0,n.default)(e,(function(e){return"0"!==e&&("1"===e||e)}))};t.getIconNameByImportState=function(e){var t,r=(u(t={},a.IMPORT_STATE_LOADING,"loading"),u(t,a.IMPORT_STATE_SUCCESS,"check"),u(t,a.IMPORT_STATE_ERROR,"close"),t);return(0,o.default)(r,e,e)};t.storePathSettingKeyMapping={automaticTitle:"autogenerated_title",default:"default",enabled:"enabled",excludeFrom:"exclude_from",title:"template_title",useOn:"use_on"}},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a=(o=r(13))&&o.__esModule?o:{default:o},i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(o,i,l):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(540));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}var l={state:{itemId:null,currentAction:null,themeBuilderId:a.default.localLibrary.themeBuilderId,itemType:null,itemTitle:null,cloudItemId:null},sequences:i};t.default=l},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.trashThemeBuilder=t.resetPreset=t.previewItem=t.openItemEditor=t.initAction=t.editItem=t.closeTemplatePreview=void 0;var n,o,a,i,u,l,c,s,f,d,p,y,m,h,b,v,g,O,_,w,T,E,P,j,S,I,M,C,A,D,k,R,x,L,B,N,U,W,F,z=ne(r(29)),H=ne(r(260)),Y=ne(r(78)),V=ne(r(5)),q=ne(r(33)),G=ne(r(19)),$=r(3),K=r(35),Z=ne(r(148)),X=r(4),J=ne(r(13)),Q=r(310),ee=r(126),te=ne(r(7)),re=r(165);function ne(e){return e&&e.__esModule?e:{default:e}}function oe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ae(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var ie=[function(e){var t=e.get,r=e.store,u=t((0,$.state)(n||(n=ae(["templates.templates"])))),l=t((0,$.state)(o||(o=ae(["templates.defaultTemplate"])))),c=t((0,$.state)(a||(a=ae(["templates.templates.",""])),l));(0,G.default)(u,(function(e,t){t!==l&&(0,G.default)(e.layouts,(function(e,n){if((0,V.default)(e,"global")){var o=(0,V.default)(c,"layouts.".concat(n,".layout"));(0,q.default)(o)||r.set((0,$.state)(i||(i=ae(["templates.templates.",".layouts.",".layout"])),t,n),o)}}))}))}],ue=[function(){var e,t,r=(0,Q.getIdQueryParam)("tb_template"),n=(0,Q.getIdQueryParam)("tb_set"),o=(0,Q.getIdQueryParam)("cloud_item");if(r?(e=(0,z.default)(r),t=X.LIBRARY_ITEM_TYPE_TEMPLATE):n&&(e=(0,z.default)(n),t=X.LIBRARY_ITEM_TYPE_SET),e)return{itemId:e,cloudItemId:o,action:X.LIBRARY_ITEM_ACTION_EDIT,itemType:t}},function(e){var t=e.props,r=e.store,n=t.itemId,o=t.action,a=t.itemType,i=t.cloudItemId;i&&r.set((0,$.state)(u||(u=ae(["libraryItem.cloudItemId"]))),i),n&&r.set((0,$.state)(l||(l=ae(["libraryItem.itemId"]))),n),o&&r.set((0,$.state)(c||(c=ae(["libraryItem.currentAction"]))),o),a&&(r.set((0,$.state)(s||(s=ae(["libraryItem.itemType"]))),a),r.set((0,$.state)(f||(f=ae(["libraryItem.itemTitle"]))),(0,V.default)(J.default,"localLibrary.libraryItemTitle","")))},(0,K.equals)((0,$.props)(d||(d=ae(["itemType"])))),(p={},oe(p,X.LIBRARY_ITEM_TYPE_SET,ie),oe(p,"otherwise",[]),p)];t.initAction=ue;var le=[function(e){var t=e.get;return{themeBuilderId:t((0,$.state)(y||(y=ae(["libraryItem.themeBuilderId"])))),currentAction:t((0,$.state)(m||(m=ae(["libraryItem.currentAction"])))),itemId:t((0,$.state)(h||(h=ae(["libraryItem.itemId"])))),cloudItemId:t((0,$.state)(b||(b=ae(["libraryItem.cloudItemId"]))))}},(0,K.set)((0,$.state)(v||(v=ae(["libraryItem.itemId"]))),null),(0,K.set)((0,$.state)(g||(g=ae(["libraryItem.currentAction"]))),null),(0,K.set)((0,$.state)(O||(O=ae(["libraryItem.themeBuilderId"]))),null),function(e){var t=e.props,r=t.themeBuilderId,n=t.currentAction,o=t.itemId,a=t.cloudItemId,i=e.api;return!(n!==X.LIBRARY_ITEM_ACTION_EDIT||!r)&&i.trashThemeBuilder(r,o,a)}];t.trashThemeBuilder=le;var ce=[function(e){var t=e.props,r=t.item,n=t.isCloudItem,o=t.importTemplates,a=t.importPresetId,i=t.themeBuilderItemType,u=0;return n?i===X.LIBRARY_ITEM_TYPE_SET?u=a:i===X.LIBRARY_ITEM_TYPE_TEMPLATE&&(u=(0,V.default)(o,"0.template_id",0)):u=r.id,{itemId:u}},function(t){var r=t.props,n=r.item,o=r.itemId,a=r.context,i=r.isCloudItem,u={_wpnonce:J.default.nonces.et_theme_builder_library_item_edit};i&&(0,Y.default)(u,"cloud_item",n.id),(0,Y.default)(u,a,o);var l="".concat(J.default.themeBuilderURL,"&").concat(e.param(u));window.open(l,"_blank")}];t.openItemEditor=ce;var se=[function(e){var t=e.props,r=t.content,n=t.cloudItemEditor;return{file:new Z.default([JSON.stringify(r)],"items.json",{type:"application/json"}),libraryTemplateImport:!0,cloudItemEditor:n,overrideDefaultWebsiteTemplate:!0,tempImport:!0}},re.importThemeBuilder,function(){return window.ETCloudApp.emitDownloadPregressUpdate(200)},function(){return window.ETCloudApp.setDownloadProgressStatus({status:!1})}],fe=[function(e){var t=e.props.item;return{isCloudItem:"cloud"===(0,V.default)(t,"item_location","")}},(0,K.when)((0,$.props)(_||(_=ae(["isCloudItem"])))),{true:[function(e){return{cloudItemEditor:e.props.themeBuilderItemType}},se],false:[]},ce];t.editItem=fe;var de=[(0,K.set)((0,$.state)(w||(w=ae(["libraryItem.previewStatus"]))),X.TEMPLATE_PREVIEW_STATUS_LOADING),function(e){return{itemId:e.props.item.id,action:X.LIBRARY_ITEM_ACTION_PREVIEW}},(0,K.set)((0,$.state)(T||(T=ae(["libraryItem.item"]))),(0,$.props)(E||(E=ae(["item"])))),function(e){var t=e.props.item;return{isCloudItem:"cloud"===(0,V.default)(t,"item_location","")}},(0,K.when)((0,$.props)(P||(P=ae(["isCloudItem"])))),{true:[se,function(e){var t=e.props,r=t.importTemplates,n=t.item,o=t.themeBuilderItemType;return{itemId:(0,V.default)(r,"0.template_id",0),cloudItemId:n.id,itemType:o}}],false:[]},ue,function(t){var r=t.props,n=t.store,o=t.api,a="et-fb-preview-".concat((0,H.default)(),"-").concat(Math.floor(1e3*Math.random()+1)),i="".concat(J.default.site_url,"/?et_pb_preview=true&et_pb_preview_nonce=").concat(J.default.nonces.et_pb_preview_nonce,"&iframe_id=").concat(a,"&item_id=").concat(r.itemId);setTimeout((function(){var t=e("<iframe />",{id:a,src:i});e(".et-tb-template-preview-content").append(t),t.on("load",(function(){n.set((0,$.state)(j||(j=ae(["libraryItem.previewStatus"]))),X.TEMPLATE_PREVIEW_STATUS_LOADED),r.isCloudItem&&o.clearTempData()}))}),0)}],pe=[(0,K.set)((0,$.state)(S||(S=ae(["libraryItem.currentAction"]))),null),(0,K.set)((0,$.state)(I||(I=ae(["libraryItem.itemId"]))),0),(0,K.unset)((0,$.state)(M||(M=ae(["libraryItem.item"])))),(0,K.set)((0,$.state)(C||(C=ae(["libraryItem.cloudItemId"]))),null)];t.closeTemplatePreview=pe;var ye=[(0,K.equals)((0,$.props)(A||(A=ae(["themeBuilderItemType"])))),(D={},oe(D,X.LIBRARY_ITEM_TYPE_TEMPLATE,de),oe(D,"otherwise",[]),D)];t.previewItem=ye;var me=[function(e){var t=e.get,r=e.store,n=t((0,$.state)(k||(k=ae(["templates.defaultTemplate"])))),o=t((0,$.state)(R||(R=ae(["templates.templates"]))));(0,G.default)(o,(function(e,t){n!==t&&r.unset((0,$.state)(x||(x=ae(["templates.templates.",""])),t))}))},function(e){var t=e.get,r=e.store,n=t((0,$.state)(L||(L=ae(["templates.defaultTemplate"]))));r.set((0,$.state)(B||(B=ae(["templates.templates.",".layouts.body.layout"])),n),null),r.set((0,$.state)(N||(N=ae(["templates.templates.",".layouts.header.layout"])),n),null),r.set((0,$.state)(U||(U=ae(["templates.templates.",".layouts.footer.layout"])),n),null),r.set((0,$.state)(W||(W=ae(["templates.templates.",".useOn"])),n),[]),r.set((0,$.state)(F||(F=ae(["templates.templates.",".excludeFrom"])),n),[])},(0,ee.addHistoryPoint)((0,te.default)("themeBuilder","Reset All Templates"))];t.resetPreset=me}).call(this,r(11))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateUnsavedChanges=void 0;var n,o,a,i,u=r(3);function l(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var c=(0,u.Reaction)({templates:(0,u.state)(n||(n=l(["templates.templates"])))},(function(e){var t=e.get;t((0,u.state)(o||(o=l(["autosave"]))))&&(t((0,u.sequences)(a||(a=l(["setUnsavedChanges"]))))(),t((0,u.sequences)(i||(i=l(["setUnsavedDraftChanges"]))))())}));t.updateUnsavedChanges=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.api=void 0;var n=c(r(8)),o=c(r(19)),a=c(r(543)),i=c(r(11)),u=c(r(13)),l=r(297);function c(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var p={reset:function(){return(0,l.post)({action:"et_theme_builder_api_reset",nonce:u.default.nonces.et_theme_builder_api_reset})},save:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.default,c=10,s=(0,a.default)(t,c),d=s.map((function(t,n){var o=0===n?"1":"0",a=s.length-1===n?"1":"0";return f({action:"et_theme_builder_api_save",nonce:u.default.nonces.et_theme_builder_api_save,live:e?"0":"1",templates:t,first_request:o,last_request:a,processed_templates:[],hasDefault:"0"},r)})),p={},y=[];return new Promise((function(e){!function t(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0";(0,l.post)(f(f({},d[r]),{},{processed_templates:n,hasDefault:a})).then((function(n){i(r+1,s.length),(0,o.default)(n.updatedTemplateIds,(function(e,t){p[t]=e})),(0,o.default)(n.processedTemplatesData,(function(e,t){y.push(e)}));var a=r+1;d[a]?t(a,y,n.hasDefault):e({updatedTemplateIds:p})}))}(0)}))},dropAutosave:function(){return(0,l.post)({action:"et_theme_builder_api_drop_autosave",nonce:u.default.nonces.et_theme_builder_api_drop_autosave})},getLayoutUrl:function(e){return(0,l.post)({action:"et_theme_builder_api_get_layout_url",nonce:u.default.nonces.et_theme_builder_api_get_layout_url,layout_id:e})},cloneLayout:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,l.post)({action:"et_theme_builder_api_duplicate_layout",nonce:u.default.nonces.et_theme_builder_api_duplicate_layout,layout_id:e,layout_type:t})},createLayout:function(e){return(0,l.post)({action:"et_theme_builder_api_create_layout",nonce:u.default.nonces.et_theme_builder_api_create_layout,layout_type:e})},setETAccount:function(e,t,r){return(0,l.post)({action:"et_builder_library_update_account",nonce:u.default.nonces.et_builder_library_update_account,et_username:e,et_api_key:t,status:r})},startThemeBuilderExport:function(e,t){return(0,l.post)({action:"et_theme_builder_api_export_theme_builder",nonce:u.default.nonces.et_theme_builder_api_export_theme_builder,templates:e,global_layouts:t})},continueThemeBuilderExport:function(e,t,r){return(0,l.post)({action:"et_theme_builder_api_export_theme_builder_step",nonce:u.default.nonces.et_theme_builder_api_export_theme_builder,id:e,step:t,chunk:r})},getThemeBuilderExportDownloadUrl:function(e,t){var r={action:"et_theme_builder_api_export_theme_builder_download",nonce:u.default.nonces.et_theme_builder_api_export_theme_builder,id:e,filename:t};return"".concat(u.default.api,"?").concat(i.default.param(r))},startThemeBuilderImport:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",i=arguments.length>6&&void 0!==arguments[6]&&arguments[6],c=new FormData;return c.append("action","et_theme_builder_api_import_theme_builder"),c.append("nonce",u.default.nonces.et_theme_builder_api_import_theme_builder),c.append("file",e),c.append("override_default_website_template",t?"1":"0"),c.append("incoming_layout_duplicate_decision",r),c.append("import_presets",n?"1":"0"),c.append("library_template_import",o?"1":"0"),c.append("cloud_item_editor",a),c.append("temp_import",i?"1":"0"),(0,l.post)(c,{contentType:!1,processData:!1})},continueThemeBuilderImport:function(e,t,r){return(0,l.post)({action:"et_theme_builder_api_import_theme_builder_step",nonce:u.default.nonces.et_theme_builder_api_import_theme_builder,id:e,step:t,chunk:r})},saveTemplateToLibrary:function(e,t){return(0,l.post)({action:"et_theme_builder_api_save_template_to_library",nonce:u.default.nonces.et_theme_builder_api_save_template_to_library,template:e,preferences:t})},savePresetToLibrary:function(e,t){return(0,l.post)({action:"et_theme_builder_api_save_preset_to_library",nonce:u.default.nonces.et_theme_builder_api_save_preset_to_library,templates:e,preferences:t})},getTerms:function(e){return(0,l.post)({action:"et_theme_builder_api_get_terms",nonce:u.default.nonces.et_theme_builder_api_get_terms,tax:e})},useLibraryItem:function(e,t,r,n,o){var a=t?"1":"0",i=r?"1":"0",c=n?"1":"0",s=o;return(0,l.post)({action:"et_theme_builder_api_use_library_item",nonce:u.default.nonces.et_theme_builder_api_use_library_item,item_id:e,override_default_website_template:a,override_assignments:i,download_backup:c,incoming_layout_duplicate_decision:s})},trashThemeBuilder:function(e,t,r){return(0,l.post)({action:"et_theme_builder_trash_theme_builder",nonce:u.default.nonces.et_theme_builder_trash_theme_builder,theme_builder_id:e,item_id:t,cloud_item_id:r},{async:!1})},getItems:function(e){return(0,l.post)({action:"et_theme_builder_library_get_items_data",nonce:u.default.nonces.et_theme_builder_library_get_items_data,et_item_type:e})},updateTaxonomies:function(e){var t="tags"===e[0].filterType?"tag":"category";return(0,l.post)({action:"et_theme_builder_library_update_terms",nonce:u.default.nonces.et_theme_builder_library_update_terms,et_library_taxonomy:"layout_".concat(t),payload:e})},updateLibraryItem:function(e){return(0,l.post)({action:"et_theme_builder_library_update_item",nonce:u.default.nonces.et_theme_builder_library_update_item,payload:e})},saveTempDraft:function(e,t){return(0,l.post)({action:"et_theme_builder_library_save_temp_layout",nonce:u.default.nonces.et_theme_builder_library_save_temp_layout,localContent:e,cloudContent:t})},removeTempDraft:function(e){return(0,l.post)({action:"et_theme_builder_library_remove_temp_layout",nonce:u.default.nonces.et_theme_builder_library_remove_temp_layout,payload:e})},getLibraryItem:function(e,t){return(0,l.post)({action:"et_theme_builder_library_get_item",nonce:u.default.nonces.et_theme_builder_library_get_item,id:e,itemType:t})},getPresetItems:function(e){return(0,l.post)({action:"et_theme_builder_library_get_set_items",nonce:u.default.nonces.et_theme_builder_library_get_set_items,itemId:e})},toggleItemLocation:function(e){return(0,l.post)({action:"et_theme_builder_library_toggle_cloud_status",nonce:u.default.nonces.et_theme_builder_library_toggle_cloud_status,id:e})},getPresetDefaultTemplateId:function(e){return(0,l.post)({action:"et_theme_builder_get_preset_default_template_id",nonce:u.default.nonces.et_theme_builder_get_preset_default_template_id,item_id:e})},downloadItem:function(e){return(0,l.download)(e)},clearTempData:function(){return(0,l.post)({action:"et_theme_builder_library_clear_temp_data",nonce:u.default.nonces.et_theme_builder_library_clear_temp_data})},getCloudToken:function(){return(0,l.post)({action:"et_theme_builder_library_get_cloud_token",nonce:u.default.nonces.et_theme_builder_library_get_cloud_token})}};t.api=p},function(e,t,r){var n=r(125),o=r(53),a=r(29),i=Math.ceil,u=Math.max;e.exports=function(e,t,r){t=(r?o(e,t,r):void 0===t)?1:u(a(t),0);var l=null==e?0:e.length;if(!l||t<1)return[];for(var c=0,s=0,f=Array(i(l/t));c<l;)f[s++]=n(e,c,c+=t);return f}},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=x(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),i=(R(r(1)),r(545)),u=r(546),l=r(3),c=r(9),s=R(r(11)),f=R(r(80)),d=R(r(549)),p=R(r(552)),y=R(r(625)),m=R(r(109)),h=R(r(631)),b=R(r(642)),v=R(r(646)),g=R(r(653)),O=R(r(659)),_=R(r(667)),w=R(r(671)),T=R(r(677)),E=R(r(678)),P=R(r(679)),j=R(r(30)),S=R(r(680)),I=R(r(682)),M=R(r(683)),C=R(r(773)),A=R(r(776)),D=R(r(779)),k=R(r(784));function R(e){return e&&e.__esModule?e:{default:e}}function x(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(x=function(e){return e?r:t})(e)}function L(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function N(e,t){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},N(e,t)}function U(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=F(e);if(t){var o=F(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return W(this,r)}}function W(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function F(e){return F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},F(e)}function z(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(786),(0,u.setConfig)({showReactDomPatchNotification:!1});var H,Y,V=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&N(e,t)}(i,e);var t,r,n,o=U(i);function i(){return L(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"componentDidMount",value:function(){(0,s.default)("body").addClass("et-tb")}},{key:"componentWillUnmount",value:function(){(0,s.default)("body").removeClass("et-tb")}},{key:"render",value:function(){var e=this.props.interactive;return a.default.createElement("div",{className:"et-tb-admin et-tb-admin-theme-builder"},a.default.createElement(d.default,null,a.default.createElement(P.default,null),a.default.createElement(p.default,null,a.default.createElement(S.default,null),a.default.createElement(k.default,null),a.default.createElement("div",{className:"et-tb-admin-container"},a.default.createElement(I.default,null),a.default.createElement(f.default,{component:"Template list"},a.default.createElement(y.default,null))),a.default.createElement(h.default,null),a.default.createElement(b.default,null),a.default.createElement(v.default,null),a.default.createElement(g.default,null),a.default.createElement(O.default,null),a.default.createElement(w.default,null),a.default.createElement(M.default,null),a.default.createElement(C.default,null),a.default.createElement(A.default,null),a.default.createElement(D.default,null),a.default.createElement(j.default,null,a.default.createElement(m.default,null),!e&&a.default.createElement(_.default,null)))),a.default.createElement(T.default,null),a.default.createElement(E.default,null))}}])&&B(t.prototype,r),n&&B(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(a.PureComponent);z(V,"propTypes",{}),z(V,"defaultProps",{}),z(V,"connections",{interactive:(0,l.state)(o||(H=["interactive"],Y||(Y=H.slice(0)),o=Object.freeze(Object.defineProperties(H,{raw:{value:Object.freeze(Y)}}))))});var q=(0,c.connect)(V.connections,V),G=(0,i.hot)(q);t.default=G},function(e,t,r){t.hot=function(e){return e}},function(e,t,r){"use strict";e.exports=r(547)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=(n=r(0))&&"object"==typeof n&&"default"in n?n.default:n;function a(e){return a.warnAboutHMRDisabled&&(a.warnAboutHMRDisabled=!0,console.error("React-Hot-Loader: misconfiguration detected, using production version in non-production environment."),console.error("React-Hot-Loader: Hot Module Replacement is not enabled.")),o.Children.only(e.children)}a.warnAboutHMRDisabled=!1;var i=function e(){return e.shouldWrapWithAppContainer?function(e){return function(t){return o.createElement(a,null,o.createElement(e,t))}}:function(e){return e}};i.shouldWrapWithAppContainer=!1;t.AppContainer=a,t.hot=i,t.areComponentsEqual=function(e,t){return e===t},t.setConfig=function(){},t.cold=function(e){return e},t.configureComponent=function(){}},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=(c(r(1)),c(r(19))),i=c(r(550)),u=c(r(56)),l=c(r(344));function c(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=h(e);if(t){var o=h(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return y(this,r)}}function y(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(s,e);var t,r,n,c=p(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),b(m(t=c.call(this,e)),"listeners",[]),b(m(t),"value",{}),b(m(t),"addListener",(function(e){t.listeners=t.listeners.concat([e])})),b(m(t),"removeListener",(function(e){t.listeners=(0,u.default)(t.listeners,e)})),b(m(t),"handleOnKeydown",(function(e){(0,a.default)((0,i.default)(t.listeners),(function(t){var r=t(e);return r&&(e.preventDefault(),e.stopPropagation()),!r}))})),t.value={addListener:t.addListener,removeListener:t.removeListener},t}return t=s,(r=[{key:"componentDidMount",value:function(){window.addEventListener("keydown",this.handleOnKeydown)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("keydown",this.handleOnKeydown)}},{key:"render",value:function(){return o.default.createElement(l.default.Provider,{value:this.value},this.props.children)}}])&&f(t.prototype,r),n&&f(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(o.PureComponent);b(v,"propTypes",{}),b(v,"defaultProps",{});var g=v;t.default=g},function(e,t,r){var n=r(26)("reverse",r(551));n.placeholder=r(24),e.exports=n},function(e,t){var r=Array.prototype.reverse;e.exports=function(e){return null==e?e:r.call(e)}},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=p(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),u=(d(r(1)),r(3)),l=r(9),c=(d(r(5)),d(r(553))),s=d(r(30)),f=d(r(554));function d(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}function y(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=_(e);if(t){var o=_(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return g(this,r)}}function g(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return O(e)}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}function w(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(a,e);var t,r,n,o=v(a);function a(){var e;h(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return w(O(e=o.call.apply(o,[this].concat(r))),"handleOnDragEnd",(function(t,r,n,o){"template"!==r?null!==o.id&&"layout"===r&&e.props.applyLayout({sourceLayoutId:n.meta.layoutId,sourceLayoutType:n.meta.layoutType,targetLayoutType:o.meta.layoutType,targetTemplateId:o.meta.templateId}):e.props.updateTemplatesOrderHistory()})),w(O(e),"render",(function(){return i.default.createElement(c.default,{onDragEnd:e.handleOnDragEnd},i.default.createElement(s.default,null,i.default.createElement(f.default,null)),e.props.children)})),e}return t=a,r&&m(t.prototype,r),n&&m(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(i.PureComponent);w(T,"propTypes",{}),w(T,"defaultProps",{}),w(T,"connections",{applyLayout:(0,u.sequences)(o||(o=y(["templates.applyLayout"]))),updateTemplatesOrderHistory:(0,u.sequences)(a||(a=y(["templates.updateTemplatesOrderHistory"])))});var E=(0,l.connect)(T.connections,T);t.default=E},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=l(r(1)),i=l(r(8)),u=l(r(132));function l(e){return e&&e.__esModule?e:{default:e}}function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=b(e);if(t){var o=b(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return m(this,r)}}function m(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(i,e);var t,r,n,a=y(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),v(h(t=a.call(this,e)),"isDragging",(function(){return null!==t.state.source.id})),v(h(t),"getPositionStateUpdate",(function(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=f(f({},t.state.position),{},{viewportX:e.clientX,viewportY:e.clientY,documentX:e.pageX,documentY:e.pageY});return n&&(o.handleX=-r.x,o.handleY=-r.y),o})),v(h(t),"dragStart",(function(e,r,n,o){e.preventDefault();var a=t.getPositionStateUpdate(e,r,!0);t.setState({potentialDrag:{type:n,source:o,position:{documentX:a.documentX,documentY:a.documentY}},position:a})})),v(h(t),"dragUpdate",(function(e,r){var n=t.getPositionStateUpdate(e,r),o=!1,a={position:n};if(null!==t.state.potentialDrag.source.id){var i=t.state.potentialDrag.position.documentX-n.documentX,u=t.state.potentialDrag.position.documentY-n.documentY;Math.sqrt(i*i+u*u)>=3&&(o=!0,a.type=t.state.potentialDrag.type,a.source=t.state.potentialDrag.source,a.potentialDrag={type:"",source:{id:null,meta:{}},position:{documentX:0,documentY:0}})}t.setState(a,(function(){o&&t.props.onDragStart(t.state.position,t.state.type,t.state.source,t.state.target),t.props.onDragUpdate(t.state.position,t.state.type,t.state.source,t.state.target)}))})),v(h(t),"dragEnd",(function(e,r){t.isDragging()&&(t.props.onDragEnd(t.state.position,t.state.type,t.state.source,t.state.target),t.setState({type:"",source:{id:null,meta:{}},target:{id:null,meta:{}},position:{viewportX:0,viewportY:0,documentX:0,documentY:0,handleX:0,handleY:0}}))})),v(h(t),"dragCancel",(function(){t.dragEnd()})),v(h(t),"setTarget",(function(e){t.setState({target:e})})),t.state={potentialDrag:{type:"",source:{id:null,meta:{}},position:{documentX:0,documentY:0}},type:"",source:{id:null,meta:{}},target:{id:null,meta:{}},position:{viewportX:0,viewportY:0,documentX:0,documentY:0,handleX:0,handleY:0},dragStart:t.dragStart,dragUpdate:t.dragUpdate,dragEnd:t.dragEnd,setTarget:t.setTarget},t}return t=i,(r=[{key:"componentDidMount",value:function(){window.addEventListener("blur",this.dragCancel)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("blur",this.dragCancel)}},{key:"render",value:function(){return o.default.createElement(u.default.Provider,{value:this.state},this.props.children)}}])&&d(t.prototype,r),n&&d(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.PureComponent);v(g,"propTypes",{onDragStart:a.default.func,onDragUpdate:a.default.func,onDragEnd:a.default.func}),v(g,"defaultProps",{onDragStart:i.default,onDragUpdate:i.default,onDragEnd:i.default});var O=g;t.default=O},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=p(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=d(r(11)),i=d(r(14)),u=d(r(5)),l=r(4),c=d(r(132)),s=d(r(345)),f=d(r(25));function d(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=O(e);if(t){var o=O(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return v(this,r)}}function v(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return g(e)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}function _(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(624);var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(d,e);var t,r,n,c=b(d);function d(){var e;y(this,d);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return _(g(e=c.call.apply(c,[this].concat(r))),"scrollInterval",null),_(g(e),"getStyle",(function(e){var t=e.viewportX,r=e.viewportY,n="translate(".concat(t,"px, ").concat(r,"px)");return{transform:n,WebkitTransform:n}})),_(g(e),"bindScroll",(function(){var t=e.context,r=t.source,n=t.position.viewportY;if(null!==r.id){var o=40+l.ADMIN_BAR_HEIGHT,i=(0,a.default)(window).height()-40,u=function(){var e=0,t=0;return n<o?(e=-1,t=Math.min(40,Math.abs(n-o))):n>i&&(e=1,t=n-i),{multiplier:e,intensity:t,scrollAmount:Math.ceil(t*e*.4)}},c=function(e){0!==e&&(0,a.default)(window).scrollTop((0,a.default)(window).scrollTop()+e)},s=u();0!==s.multiplier&&(c(s.scrollAmount),e.scrollInterval=setInterval((function(){c(u().scrollAmount)}),13))}})),_(g(e),"unbindScroll",(function(){return clearInterval(e.scrollInterval)})),_(g(e),"componentDidMount",(function(){e.bindScroll()})),_(g(e),"componentDidUpdate",(function(){e.unbindScroll(),e.bindScroll(),null!==e.context.source.id?(0,a.default)("body").addClass("et-tb-drag-and-drop-layer-dragging"):(0,a.default)("body").removeClass("et-tb-drag-and-drop-layer-dragging")})),_(g(e),"componentWillUnmount",(function(){e.unbindScroll(),(0,a.default)("body").removeClass("et-tb-drag-and-drop-layer-dragging")})),_(g(e),"renderTemplatePreview",(function(e,t,r){return o.default.createElement("div",{className:"et-tb-drag-and-drop-layer__template",style:{width:(0,u.default)(t,"meta.width","")}},o.default.createElement(s.default,{templateId:t.id}))})),_(g(e),"renderLayoutPreview",(function(e,t,r){var n=(0,u.default)(t,"meta.isGlobal",!1)||(0,u.default)(r,"meta.isGlobal",!1);return o.default.createElement("div",{className:(0,i.default)({"et-tb-drag-and-drop-layer__layout":!0,"et-tb-drag-and-drop-layer__layout--global":n,"et-tb-drag-and-drop-layer__layout--custom":!n})},o.default.createElement(f.default,{icon:n?"add":"copy"}))})),_(g(e),"renderPreview",(function(t,r,n){return"template"===t?e.renderTemplatePreview(t,r,n):"layout"===t?e.renderLayoutPreview(t,r,n):null})),e}return t=d,(r=[{key:"render",value:function(){var e=this.context,t=e.type,r=e.source,n=e.target,a=e.position;return null===r.id?null:o.default.createElement("div",{className:"et-tb-drag-and-drop-layer"},o.default.createElement("div",{className:"et-tb-drag-and-drop-layer__preview",style:this.getStyle(a)},this.renderPreview(t,r,n)))}}])&&m(t.prototype,r),n&&m(t,n),Object.defineProperty(t,"prototype",{writable:!1}),d}(o.PureComponent);_(w,"contextType",c.default),_(w,"propTypes",{}),_(w,"defaultProps",{});var T=w;t.default=T},function(e,t,r){"use strict";e.exports=r(556)},function(e,t,r){"use strict";var n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,u=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,f=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,y=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,b=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,O=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case d:case i:case l:case u:case y:return e;default:switch(e=e&&e.$$typeof){case s:case p:case b:case h:case c:return e;default:return t}}case a:return t}}}function T(e){return w(e)===d}t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=s,t.ContextProvider=c,t.Element=o,t.ForwardRef=p,t.Fragment=i,t.Lazy=b,t.Memo=h,t.Portal=a,t.Profiler=l,t.StrictMode=u,t.Suspense=y,t.isAsyncMode=function(e){return T(e)||w(e)===f},t.isConcurrentMode=T,t.isContextConsumer=function(e){return w(e)===s},t.isContextProvider=function(e){return w(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===b},t.isMemo=function(e){return w(e)===h},t.isPortal=function(e){return w(e)===a},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===u},t.isSuspense=function(e){return w(e)===y},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===l||e===u||e===y||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===h||e.$$typeof===c||e.$$typeof===s||e.$$typeof===p||e.$$typeof===g||e.$$typeof===O||e.$$typeof===_||e.$$typeof===v)},t.typeOf=w},function(e,t,r){"use strict";var n=function(e){return e&&"object"==typeof e&&"default"in e?e.default:e}(r(0)),o=!1;"undefined"!=typeof window&&(o="ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch);var a=o,i={borderRadius:"inherit",height:"100%",left:0,position:"absolute",top:0,width:"100%"};function u(e,t,r,n){return r*((e=e/n-1)*e*e*e*e+1)+t}var l=Math.sqrt(2),c=Math.cos,s=Math.max,f=Math.min;function d(e){return f(e.duration,Date.now()-e.mouseDown)}function p(e){return 0<e.mouseUp?Date.now()-e.mouseUp:0}function y(e){var t=e.duration,r=e.radius,n=.85*u(d(e),0,r,t),o=.15*u(p(e),0,r,t),a=.02*r*c(Date.now()/t);return s(0,n+o+a)}function m(e,t,r){return r||f(.6*s(e,t))}function h(e,t){return u(p(e),t,-t,e.duration)}function b(e,t){return f(h(e,t),u(d(e),0,.3,3*e.duration))}function v(e,t,r){return f(1,y(e)/t*2/l)*(r/2-e.x)}function g(e,t,r){return f(1,y(e)/t*2/l)*(r/2-e.y)}function O(e){return y(e)/e.radius}var _=function(e){var t=e.mouseUp,r=e.duration;return!t||Date.now()-t<r};function w(e){var t,r=[],n=!1,o={each:function(e,t){for(var n=0,o=r.length;n<o;n++)e.call(t,r[n])},play:function(){n||(n=!0,o.update())},stop:function(){n=!1,cancelAnimationFrame(t)},getTotalOpacity:function(e){for(var t=0,n=0,o=r.length;n<o;n++)t+=b(r[n],e);return t},update:function(){(r=r.filter(_)).length?t=requestAnimationFrame(o.update):o.stop(),e()},add:function(e){r.push(e),o.play()},release:function(e){for(var t=r.length-1;0<=t;t--)if(!r[t].mouseUp)return r[t].mouseUp=e}};return o}function T(){for(var e=arguments,t={},r=0;r<arguments.length;r++){var n=e[r];if(n)for(var o in n)t[o]=n[o]}return t}var E=2*Math.PI,P={background:!0,className:"ink",duration:1e3,opacity:.25,recenter:!0,hasTouch:a},j=function(e){function t(t){e.apply(this,arguments),this.state={color:"transparent",density:1,height:0,store:w(this.tick.bind(this)),width:0},this.touchEvents=this.touchEvents()}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.touchEvents=function(){return this.props.hasTouch?{onTouchStart:this.t.bind(this),onTouchEnd:this.n.bind(this),onTouchCancel:this.n.bind(this)}:{onMouseDown:this.t.bind(this),onMouseUp:this.n.bind(this),onMouseLeave:this.n.bind(this)}},t.prototype.tick=function(){var e=this.state,t=e.ctx,r=e.color,n=e.density,o=e.height,a=e.width,i=e.store;t.save(),t.scale(n,n),t.clearRect(0,0,a,o),t.fillStyle=r,this.props.background&&(t.globalAlpha=i.getTotalOpacity(this.props.opacity),t.fillRect(0,0,a,o)),i.each(this.makeBlot,this),t.restore()},t.prototype.makeBlot=function(e){var t=this.state,r=t.ctx,n=t.height,o=t.width,a=e.x,i=e.y,u=e.radius;if(r.globalAlpha=h(e,this.props.opacity),r.beginPath(),this.props.recenter){var l=Math.max(n,o);a+=v(e,l,o),i+=g(e,l,n)}r.arc(a,i,u*O(e),0,E),r.closePath(),r.fill()},t.prototype.componentWillUnmount=function(){this.state.store.stop()},t.prototype.pushBlot=function(e,t,r){var n=this,o=this.canvas;o.getDOMNode&&"function"==typeof o.getDOMNode&&(o=o.getDOMNode());var a=o.getBoundingClientRect(),i=a.top,u=a.bottom,l=a.left,c=a.right,s=window.getComputedStyle(o).color,f=this.state.ctx||o.getContext("2d"),d=function(e){return(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)}(f),p=u-i,y=c-l,h=m(p,y,this.props.radius);this.setState({color:s,ctx:f,density:d,height:p,width:y},(function(){n.state.store.add({duration:n.props.duration,mouseDown:e,mouseUp:0,radius:h,x:t-l,y:r-i})}))},t.prototype.setCanvas=function(e){this.canvas=e},t.prototype.render=function(){var e=this.state,t=e.density,r=e.height,o=e.width,a=this.props,u=a.className,l=a.style,c=T({className:u,ref:this.setCanvas.bind(this),height:r*t,width:o*t,onDragOver:this.n,style:T(i,l)},this.touchEvents);return n.createElement("canvas",c)},t.prototype.t=function(e){var t=e.button,r=e.ctrlKey,n=e.clientX,o=e.clientY,a=e.changedTouches,i=Date.now();if(a)for(var u=0;u<a.length;u++){var l=a[u],c=l.clientX,s=l.clientY;this.pushBlot(i,c,s)}else 0!==t||r||this.pushBlot(i,n,o)},t.prototype.n=function(){this.state.store.release(Date.now())},t}(n.PureComponent);j.defaultProps=P,e.exports=j},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function a(e){return e&&e.__esModule?e:{default:e}}var i=a(r(263)),u=a(r(177)),l=a(r(264)),c=a(r(178)),s=a(r(265)),f=a(r(266)),d=a(r(0)),p=a(r(1)),y=1e3/60,m=function(e){function t(r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,r),this.wasAnimating=!1,this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyle=null,this.clearUnreadPropStyle=function(e){var t=!1,r=o.state,a=r.currentStyle,i=r.currentVelocity,u=r.lastIdealStyle,l=r.lastIdealVelocity;for(var c in e)if(Object.prototype.hasOwnProperty.call(e,c)){var s=e[c];"number"==typeof s&&(t||(t=!0,a=n({},a),i=n({},i),u=n({},u),l=n({},l)),a[c]=s,i[c]=0,u[c]=s,l[c]=0)}t&&o.setState({currentStyle:a,currentVelocity:i,lastIdealStyle:u,lastIdealVelocity:l})},this.startAnimationIfNecessary=function(){o.animationID=s.default((function(e){var t=o.props.style;if(f.default(o.state.currentStyle,t,o.state.currentVelocity))return o.wasAnimating&&o.props.onRest&&o.props.onRest(),o.animationID=null,o.wasAnimating=!1,void(o.accumulatedTime=0);o.wasAnimating=!0;var r=e||c.default(),n=r-o.prevTime;if(o.prevTime=r,o.accumulatedTime=o.accumulatedTime+n,o.accumulatedTime>10*y&&(o.accumulatedTime=0),0===o.accumulatedTime)return o.animationID=null,void o.startAnimationIfNecessary();var a=(o.accumulatedTime-Math.floor(o.accumulatedTime/y)*y)/y,i=Math.floor(o.accumulatedTime/y),u={},s={},d={},p={};for(var m in t)if(Object.prototype.hasOwnProperty.call(t,m)){var h=t[m];if("number"==typeof h)d[m]=h,p[m]=0,u[m]=h,s[m]=0;else{for(var b=o.state.lastIdealStyle[m],v=o.state.lastIdealVelocity[m],g=0;g<i;g++){var O=l.default(y/1e3,b,v,h.val,h.stiffness,h.damping,h.precision);b=O[0],v=O[1]}var _=l.default(y/1e3,b,v,h.val,h.stiffness,h.damping,h.precision),w=_[0],T=_[1];d[m]=b+(w-b)*a,p[m]=v+(T-v)*a,u[m]=b,s[m]=v}}o.animationID=null,o.accumulatedTime-=i*y,o.setState({currentStyle:d,currentVelocity:p,lastIdealStyle:u,lastIdealVelocity:s}),o.unreadPropStyle=null,o.startAnimationIfNecessary()}))},this.state=this.defaultState()}return function(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)}(t,e),o(t,null,[{key:"propTypes",value:{defaultStyle:p.default.objectOf(p.default.number),style:p.default.objectOf(p.default.oneOfType([p.default.number,p.default.object])).isRequired,children:p.default.func.isRequired,onRest:p.default.func},enumerable:!0}]),t.prototype.defaultState=function(){var e=this.props,t=e.defaultStyle,r=e.style,n=t||u.default(r),o=i.default(n);return{currentStyle:n,currentVelocity:o,lastIdealStyle:n,lastIdealVelocity:o}},t.prototype.componentDidMount=function(){this.prevTime=c.default(),this.startAnimationIfNecessary()},t.prototype.UNSAFE_componentWillReceiveProps=function(e){null!=this.unreadPropStyle&&this.clearUnreadPropStyle(this.unreadPropStyle),this.unreadPropStyle=e.style,null==this.animationID&&(this.prevTime=c.default(),this.startAnimationIfNecessary())},t.prototype.componentWillUnmount=function(){null!=this.animationID&&(s.default.cancel(this.animationID),this.animationID=null)},t.prototype.render=function(){var e=this.props.children(this.state.currentStyle);return e&&d.default.Children.only(e)},t}(d.default.Component);t.default=m,e.exports=t.default},function(e,t,r){"use strict";t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function a(e){return e&&e.__esModule?e:{default:e}}var i=a(r(263)),u=a(r(177)),l=a(r(264)),c=a(r(178)),s=a(r(265)),f=a(r(266)),d=a(r(0)),p=a(r(1)),y=1e3/60;var m=function(e){function t(r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,r),this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyles=null,this.clearUnreadPropStyle=function(e){for(var t=o.state,r=t.currentStyles,a=t.currentVelocities,i=t.lastIdealStyles,u=t.lastIdealVelocities,l=!1,c=0;c<e.length;c++){var s=e[c],f=!1;for(var d in s)if(Object.prototype.hasOwnProperty.call(s,d)){var p=s[d];"number"==typeof p&&(f||(f=!0,l=!0,r[c]=n({},r[c]),a[c]=n({},a[c]),i[c]=n({},i[c]),u[c]=n({},u[c])),r[c][d]=p,a[c][d]=0,i[c][d]=p,u[c][d]=0)}}l&&o.setState({currentStyles:r,currentVelocities:a,lastIdealStyles:i,lastIdealVelocities:u})},this.startAnimationIfNecessary=function(){o.animationID=s.default((function(e){var t=o.props.styles(o.state.lastIdealStyles);if(function(e,t,r){for(var n=0;n<e.length;n++)if(!f.default(e[n],t[n],r[n]))return!1;return!0}(o.state.currentStyles,t,o.state.currentVelocities))return o.animationID=null,void(o.accumulatedTime=0);var r=e||c.default(),n=r-o.prevTime;if(o.prevTime=r,o.accumulatedTime=o.accumulatedTime+n,o.accumulatedTime>10*y&&(o.accumulatedTime=0),0===o.accumulatedTime)return o.animationID=null,void o.startAnimationIfNecessary();for(var a=(o.accumulatedTime-Math.floor(o.accumulatedTime/y)*y)/y,i=Math.floor(o.accumulatedTime/y),u=[],s=[],d=[],p=[],m=0;m<t.length;m++){var h=t[m],b={},v={},g={},O={};for(var _ in h)if(Object.prototype.hasOwnProperty.call(h,_)){var w=h[_];if("number"==typeof w)b[_]=w,v[_]=0,g[_]=w,O[_]=0;else{for(var T=o.state.lastIdealStyles[m][_],E=o.state.lastIdealVelocities[m][_],P=0;P<i;P++){var j=l.default(y/1e3,T,E,w.val,w.stiffness,w.damping,w.precision);T=j[0],E=j[1]}var S=l.default(y/1e3,T,E,w.val,w.stiffness,w.damping,w.precision),I=S[0],M=S[1];b[_]=T+(I-T)*a,v[_]=E+(M-E)*a,g[_]=T,O[_]=E}}d[m]=b,p[m]=v,u[m]=g,s[m]=O}o.animationID=null,o.accumulatedTime-=i*y,o.setState({currentStyles:d,currentVelocities:p,lastIdealStyles:u,lastIdealVelocities:s}),o.unreadPropStyles=null,o.startAnimationIfNecessary()}))},this.state=this.defaultState()}return function(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)}(t,e),o(t,null,[{key:"propTypes",value:{defaultStyles:p.default.arrayOf(p.default.objectOf(p.default.number)),styles:p.default.func.isRequired,children:p.default.func.isRequired},enumerable:!0}]),t.prototype.defaultState=function(){var e=this.props,t=e.defaultStyles,r=e.styles,n=t||r().map(u.default),o=n.map((function(e){return i.default(e)}));return{currentStyles:n,currentVelocities:o,lastIdealStyles:n,lastIdealVelocities:o}},t.prototype.componentDidMount=function(){this.prevTime=c.default(),this.startAnimationIfNecessary()},t.prototype.UNSAFE_componentWillReceiveProps=function(e){null!=this.unreadPropStyles&&this.clearUnreadPropStyle(this.unreadPropStyles),this.unreadPropStyles=e.styles(this.state.lastIdealStyles),null==this.animationID&&(this.prevTime=c.default(),this.startAnimationIfNecessary())},t.prototype.componentWillUnmount=function(){null!=this.animationID&&(s.default.cancel(this.animationID),this.animationID=null)},t.prototype.render=function(){var e=this.props.children(this.state.currentStyles);return e&&d.default.Children.only(e)},t}(d.default.Component);t.default=m,e.exports=t.default},function(e,t,r){"use strict";t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function a(e){return e&&e.__esModule?e:{default:e}}var i=a(r(263)),u=a(r(177)),l=a(r(264)),c=a(r(562)),s=a(r(178)),f=a(r(265)),d=a(r(266)),p=a(r(0)),y=a(r(1)),m=1e3/60;function h(e,t,r){var n=t;return null==n?e.map((function(e,t){return{key:e.key,data:e.data,style:r[t]}})):e.map((function(e,t){for(var o=0;o<n.length;o++)if(n[o].key===e.key)return{key:n[o].key,data:n[o].data,style:r[t]};return{key:e.key,data:e.data,style:r[t]}}))}function b(e,t,r,n,o,a,u,l,s){for(var f=c.default(n,o,(function(e,n){var o=t(n);return null==o||d.default(a[e],o,u[e])?(r({key:n.key,data:n.data}),null):{key:n.key,data:n.data,style:o}})),p=[],y=[],m=[],h=[],b=0;b<f.length;b++){for(var v=f[b],g=null,O=0;O<n.length;O++)if(n[O].key===v.key){g=O;break}if(null==g){var _=e(v);p[b]=_,m[b]=_;var w=i.default(v.style);y[b]=w,h[b]=w}else p[b]=a[g],m[b]=l[g],y[b]=u[g],h[b]=s[g]}return[f,p,y,m,h]}var v=function(e){function t(r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,r),this.unmounting=!1,this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyles=null,this.clearUnreadPropStyle=function(e){for(var t=b(o.props.willEnter,o.props.willLeave,o.props.didLeave,o.state.mergedPropsStyles,e,o.state.currentStyles,o.state.currentVelocities,o.state.lastIdealStyles,o.state.lastIdealVelocities),r=t[0],a=t[1],i=t[2],u=t[3],l=t[4],c=0;c<e.length;c++){var s=e[c].style,f=!1;for(var d in s)if(Object.prototype.hasOwnProperty.call(s,d)){var p=s[d];"number"==typeof p&&(f||(f=!0,a[c]=n({},a[c]),i[c]=n({},i[c]),u[c]=n({},u[c]),l[c]=n({},l[c]),r[c]={key:r[c].key,data:r[c].data,style:n({},r[c].style)}),a[c][d]=p,i[c][d]=0,u[c][d]=p,l[c][d]=0,r[c].style[d]=p)}}o.setState({currentStyles:a,currentVelocities:i,mergedPropsStyles:r,lastIdealStyles:u,lastIdealVelocities:l})},this.startAnimationIfNecessary=function(){o.unmounting||(o.animationID=f.default((function(e){if(!o.unmounting){var t=o.props.styles,r="function"==typeof t?t(h(o.state.mergedPropsStyles,o.unreadPropStyles,o.state.lastIdealStyles)):t;if(function(e,t,r,n){if(n.length!==t.length)return!1;for(var o=0;o<n.length;o++)if(n[o].key!==t[o].key)return!1;for(o=0;o<n.length;o++)if(!d.default(e[o],t[o].style,r[o]))return!1;return!0}(o.state.currentStyles,r,o.state.currentVelocities,o.state.mergedPropsStyles))return o.animationID=null,void(o.accumulatedTime=0);var n=e||s.default(),a=n-o.prevTime;if(o.prevTime=n,o.accumulatedTime=o.accumulatedTime+a,o.accumulatedTime>10*m&&(o.accumulatedTime=0),0===o.accumulatedTime)return o.animationID=null,void o.startAnimationIfNecessary();for(var i=(o.accumulatedTime-Math.floor(o.accumulatedTime/m)*m)/m,u=Math.floor(o.accumulatedTime/m),c=b(o.props.willEnter,o.props.willLeave,o.props.didLeave,o.state.mergedPropsStyles,r,o.state.currentStyles,o.state.currentVelocities,o.state.lastIdealStyles,o.state.lastIdealVelocities),f=c[0],p=c[1],y=c[2],v=c[3],g=c[4],O=0;O<f.length;O++){var _=f[O].style,w={},T={},E={},P={};for(var j in _)if(Object.prototype.hasOwnProperty.call(_,j)){var S=_[j];if("number"==typeof S)w[j]=S,T[j]=0,E[j]=S,P[j]=0;else{for(var I=v[O][j],M=g[O][j],C=0;C<u;C++){var A=l.default(m/1e3,I,M,S.val,S.stiffness,S.damping,S.precision);I=A[0],M=A[1]}var D=l.default(m/1e3,I,M,S.val,S.stiffness,S.damping,S.precision),k=D[0],R=D[1];w[j]=I+(k-I)*i,T[j]=M+(R-M)*i,E[j]=I,P[j]=M}}v[O]=E,g[O]=P,p[O]=w,y[O]=T}o.animationID=null,o.accumulatedTime-=u*m,o.setState({currentStyles:p,currentVelocities:y,lastIdealStyles:v,lastIdealVelocities:g,mergedPropsStyles:f}),o.unreadPropStyles=null,o.startAnimationIfNecessary()}})))},this.state=this.defaultState()}return function(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)}(t,e),o(t,null,[{key:"propTypes",value:{defaultStyles:y.default.arrayOf(y.default.shape({key:y.default.string.isRequired,data:y.default.any,style:y.default.objectOf(y.default.number).isRequired})),styles:y.default.oneOfType([y.default.func,y.default.arrayOf(y.default.shape({key:y.default.string.isRequired,data:y.default.any,style:y.default.objectOf(y.default.oneOfType([y.default.number,y.default.object])).isRequired}))]).isRequired,children:y.default.func.isRequired,willEnter:y.default.func,willLeave:y.default.func,didLeave:y.default.func},enumerable:!0},{key:"defaultProps",value:{willEnter:function(e){return u.default(e.style)},willLeave:function(){return null},didLeave:function(){}},enumerable:!0}]),t.prototype.defaultState=function(){var e=this.props,t=e.defaultStyles,r=e.styles,n=e.willEnter,o=e.willLeave,a=e.didLeave,l="function"==typeof r?r(t):r,c=void 0;c=null==t?l:t.map((function(e){for(var t=0;t<l.length;t++)if(l[t].key===e.key)return l[t];return e}));var s=null==t?l.map((function(e){return u.default(e.style)})):t.map((function(e){return u.default(e.style)})),f=null==t?l.map((function(e){return i.default(e.style)})):t.map((function(e){return i.default(e.style)})),d=b(n,o,a,c,l,s,f,s,f),p=d[0];return{currentStyles:d[1],currentVelocities:d[2],lastIdealStyles:d[3],lastIdealVelocities:d[4],mergedPropsStyles:p}},t.prototype.componentDidMount=function(){this.prevTime=s.default(),this.startAnimationIfNecessary()},t.prototype.componentWillReceiveProps=function(e){this.unreadPropStyles&&this.clearUnreadPropStyle(this.unreadPropStyles);var t=e.styles;this.unreadPropStyles="function"==typeof t?t(h(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.lastIdealStyles)):t,null==this.animationID&&(this.prevTime=s.default(),this.startAnimationIfNecessary())},t.prototype.componentWillUnmount=function(){this.unmounting=!0,null!=this.animationID&&(f.default.cancel(this.animationID),this.animationID=null)},t.prototype.render=function(){var e=h(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.currentStyles),t=this.props.children(e);return t&&p.default.Children.only(t)},t}(p.default.Component);t.default=v,e.exports=t.default},function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e,t,r){for(var n={},o=0;o<e.length;o++)n[e[o].key]=o;var a={};for(o=0;o<t.length;o++)a[t[o].key]=o;var i=[];for(o=0;o<t.length;o++)i[o]=t[o];for(o=0;o<e.length;o++)if(!Object.prototype.hasOwnProperty.call(a,e[o].key)){var u=r(o,e[o]);null!=u&&i.push(u)}return i.sort((function(e,r){var o=a[e.key],i=a[r.key],u=n[e.key],l=n[r.key];if(null!=o&&null!=i)return a[e.key]-a[r.key];if(null!=u&&null!=l)return n[e.key]-n[r.key];if(null!=o){for(var c=0;c<t.length;c++){var s=t[c].key;if(Object.prototype.hasOwnProperty.call(n,s)){if(o<a[s]&&l>n[s])return-1;if(o>a[s]&&l<n[s])return 1}}return 1}for(c=0;c<t.length;c++){s=t[c].key;if(Object.prototype.hasOwnProperty.call(n,s)){if(i<a[s]&&u>n[s])return 1;if(i>a[s]&&u<n[s])return-1}}return-1}))},e.exports=t.default},function(e,t,r){"use strict";t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};t.default=function(e,t){return n({},u,t,{val:e})};var o,a=r(349),i=(o=a)&&o.__esModule?o:{default:o},u=n({},i.default.noWobble,{precision:.01});e.exports=t.default},function(e,t,r){"use strict";t.__esModule=!0,t.default=function(){0};e.exports=t.default},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=m(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=y(r(1)),i=y(r(5)),u=y(r(108)),l=y(r(12)),c=y(r(23)),s=y(r(17)),f=y(r(8)),d=y(r(109)),p=y(r(18));function y(e){return e&&e.__esModule?e:{default:e}}function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(m=function(e){return e?r:t})(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=w(e);if(t){var o=w(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return O(this,r)}}function O(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _(e)}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function T(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(567);var E=a.default.shape({value:a.default.string.isRequired,label:a.default.string}),P=a.default.shape({label:a.default.string,options:a.default.arrayOf(E).isRequired}),j=a.default.arrayOf(E),S=a.default.arrayOf(P),I=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(f,e);var t,r,n,a=g(f);function f(){var e;h(this,f);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return T(_(e=a.call.apply(a,[this].concat(r))),"getGroups",(function(){var t=e.props.options,r=(0,u.default)(t);return(0,c.default)(r)?[]:(0,c.default)(r.options)?[{options:t}]:t})),T(_(e),"handleOnClick",(function(t,r){r.preventDefault(),r.stopPropagation(),e.props.onChange(t)})),e}return t=f,(r=[{key:"render",value:function(){var e=this,t=this.getGroups();return o.default.createElement("ul",{className:"et-common-vertical-menu"},(0,s.default)(t,(function(t,r){return o.default.createElement("li",{key:(0,i.default)(t,"label",r),className:"et-common-vertical-menu__group"},!(0,c.default)(t.label)&&o.default.createElement("p",{className:"et-common-vertical-menu__group-label"},t.label),!(0,l.default)(t.options)&&o.default.createElement("ul",null,(0,s.default)(t.options,(function(t,n){return o.default.createElement("li",{key:(0,i.default)(t,"label")+":"+t.value,className:"et-common-vertical-menu__option","data-tip":!0,"data-for":"vertical-menu-tooltip-".concat(r,"-").concat(n)},o.default.createElement(p.default,{className:"et-common-vertical-menu__option-button",onClick:e.handleOnClick.bind(null,t.value),onContextMenu:e.handleOnClick.bind(null,t.value)},o.default.createElement("span",{className:"et-common-vertical-menu__option-label"},(0,i.default)(t,"label",t.value))),e.props.showTooltip&&o.default.createElement(d.default,{id:"vertical-menu-tooltip-".concat(r,"-").concat(n),className:"et-tb-tooltip--compact"},(0,i.default)(t,"label",t.value)))}))))})))}}])&&b(t.prototype,r),n&&b(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(o.PureComponent);T(I,"propTypes",{options:a.default.oneOfType([j,S]).isRequired,onChange:a.default.func,showTooltip:a.default.bool}),T(I,"defaultProps",{onChange:f.default,showTooltip:!0});var M=I;t.default=M},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=d(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=f(r(46)),i=f(r(1)),u=f(r(11)),l=f(r(179)),c=r(4),s=r(351);function f(e){return e&&e.__esModule?e:{default:e}}function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(d=function(e){return e?r:t})(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var o=g(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return b(this,r)}}function b(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return v(e)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(358);var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(f,e);var t,r,n,i=h(f);function f(){var e;p(this,f);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return O(v(e=i.call.apply(i,[this].concat(r))),"state",{left:null,top:null,width:null,height:null,transition:!1}),O(v(e),"updatePosition",(function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],r=(0,u.default)(a.default.findDOMNode(v(e))),n=r.find(".et-tb-modal").first(),o=(0,u.default)(a.default.findDOMNode(e.props.anchor)),i=(0,u.default)(window),l=Math.ceil(o.outerWidth()),f=o.offset(),d=(0,s.getViewportAdaptableRectangle)(i,n,f.left,f.top,n.width(),e.props.contentHeightGetter(r),0,0,30+c.ADMIN_BAR_HEIGHT,30);e.setState({left:Math.floor(f.left),top:Math.floor(d.top),width:Math.floor(l),height:Math.floor(d.height),transition:t})})),O(v(e),"debouncedUpdatePosition",(0,l.default)(e.updatePosition,250)),e}return t=f,(r=[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.debouncedUpdatePosition),this.updatePosition(!1)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.debouncedUpdatePosition)}},{key:"render",value:function(){var e=this.props.className,t=null===this.state.width?{}:{left:"".concat(this.state.left,"px"),top:"".concat(this.state.top,"px"),width:"".concat(this.state.width,"px"),height:"".concat(this.state.height,"px"),transition:this.state.transition?"left 200ms ease, top 200ms ease, width 200ms ease, height 200ms ease":""};return o.default.createElement("div",{className:"et-tb-modal-root ".concat(e)},o.default.createElement("div",{className:"et-tb-modal et-tb-modal--anchored",style:t},o.default.createElement("div",{className:"et-tb-modal__content"},this.props.children)))}}])&&y(t.prototype,r),n&&y(t,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(o.PureComponent);O(_,"propTypes",{anchor:i.default.object.isRequired,contentHeightGetter:i.default.func,className:i.default.string}),O(_,"defaultProps",{contentHeightGetter:function(e){return e.find(".et-tb-modal__content").first().outerHeight()},className:""});var w=_;t.default=w},function(e,t,r){var n=r(16);e.exports=function(){var e=arguments,t=n(e[0]);return e.length<3?t:t.replace(e[1],e[2])}},function(e,t,r){var n=r(124),o=r(29),a=Math.max;e.exports=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var u=null==r?0:o(r);return u<0&&(u=a(i+u,0)),n(e,t,u)}},function(e,t,r){var n=r(50),o=r(158),a=r(244),i=r(161),u=n((function(e,t){var r=i(t,a(u));return o(e,32,void 0,t,r)}));u.placeholder={},e.exports=u},function(e,t,r){var n=r(575),o=r(162)((function(e,t){return null==e?{}:n(e,t)}));e.exports=o},function(e,t,r){var n=r(343),o=r(292);e.exports=function(e,t){return n(e,t,(function(t,r){return o(e,r)}))}},function(e,t,r){var n=r(577),o=r(53),a=r(307);e.exports=function(e){return function(t,r,i){return i&&"number"!=typeof i&&o(t,r,i)&&(r=i=void 0),t=a(t),void 0===r?(r=t,t=0):r=a(r),i=void 0===i?t<r?1:-1:a(i),n(t,r,i,e)}}},function(e,t){var r=Math.ceil,n=Math.max;e.exports=function(e,t,o,a){for(var i=-1,u=n(r((t-e)/(o||1)),0),l=Array(u);u--;)l[a?u:++i]=e,e+=o;return l}},function(e,t,r){var n=r(125),o=r(29);e.exports=function(e,t,r){return e&&e.length?(t=r||void 0===t?1:o(t),n(e,0,t<0?0:t)):[]}},function(e,t,r){var n=r(268)({"&":"&","<":"<",">":">",""":'"',"'":"'"});e.exports=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.vhToPx=t.sanitizeInputUnit=t.sanitizeCSSSelector=t.pxToPercent=t.percentToPx=t.isAcceptableCSSStringValue=t.getUnit=t.getNumber=t.default=void 0;var n=f(r(23)),o=f(r(51)),a=f(r(356)),i=f(r(5)),u=f(r(16)),l=f(r(258)),c=f(r(33)),s=r(581);function f(e){return e&&e.__esModule?e:{default:e}}function d(e){return function(e){if(Array.isArray(e))return m(e)}(e)||h(e)||y(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e){return function(e){if(Array.isArray(e))return e}(e)||h(e)||y(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){if(e){if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function h(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var b=new RegExp(["::-webkit-input-placeholder","::-moz-placeholder",":-ms-input-placeholder"].join("|")),v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px",r=(0,c.default)(e)||(0,n.default)(e)?"":(0,u.default)(e),i=r.length,l=["%"],s=["em","px","cm","mm","in","pt","pc","ex","vh","vw","ms"],f=["deg","rem"],d=["vmin","vmax"],p="!important",y=p.length;return""===r||(0,a.default)(r)?t:(r.substr(0-y,y)===p&&(i-=y,r=r.substr(0,i).trim()),(0,o.default)(d,r.substr(-4,4))?r.substr(-4,4):(0,o.default)(f,r.substr(-3,3))?r.substr(-3,3):(0,o.default)(s,r.substr(-2,2))?r.substr(-2,2):(0,o.default)(l,r.substr(-1,1))?"%":t)};t.getUnit=v;t.getNumber=function(e,t){return(0,s.maybeFloat)(e,t)};var g=function(e,t){return(0,o.default)((0,i.default)(ETBuilderBackend.acceptableCSSStringValues,e,[]),t)};t.isAcceptableCSSStringValue=g;var O=function(e,t,r,a){e=(0,u.default)(e),t=!!t;var i,l,c="!important",s=c.length,f=!1,d=e.length;return""===e?"":(e.substr(0-s,s)===c&&(f=!0,d-=s,e=e.substr(0,d).trim()),!(0,n.default)(a)&&g(a,e)?(i=e,f&&!t&&(i="".concat(i," ").concat(c)),i):(0,o.default)(["%"],e.substr(-1,1))?(i=parseFloat(e)+e.substr(-1,1),f&&!t&&(i="".concat(i," ").concat(c)),i):(0,o.default)(["deg","rem"],e.substr(-3,3))?(i=parseFloat(e)+e.substr(-3,3),f&&!t&&(i="".concat(i," ").concat(c)),i):(0,o.default)(["em","px","cm","mm","in","pt","pc","ex","vh","vw","ms"],e.substr(-2,2))?(i=parseFloat(e)+e.substr(-2,2),f&&!t&&(i="".concat(i," ").concat(c)),i):isNaN(parseFloat(e))?"":(l=parseFloat(e),(0,n.default)(r)?(((0,n.default)(r)||"no_default_unit"!==r)&&(l+="px"),l):l+r))};t.sanitizeInputUnit=O;var _=function(e){return(0,u.default)(e).split(",").map(l.default).reduce((function(e,t){var r=p(e),n=r[0],o=r.slice(1);return t.match(b)?[n].concat(d(o),[t]):[n?"".concat(n,", ").concat(t):t].concat(d(o))}),[])};t.sanitizeCSSSelector=_;t.percentToPx=function(e,t){return t*e/100};t.pxToPercent=function(e,t){return 100*t/e};t.vhToPx=function(e,t){return e/100*t};var w={getUnit:v,isAcceptableCSSStringValue:g,sanitizeInputUnit:O,sanitizeCSSSelector:_};t.default=w},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toPrecision=t.toFixed=t.roundOff=t.roundBy=t.range=t.min=t.maybeNumber=t.maybeNaN=t.maybeInt=t.maybeFloat=t.max=t.mapNumber=t.getPrecision=t.getPercent=t.getAmount=t.average=t.Normalizer=void 0;var n=d(r(311)),o=d(r(246)),a=d(r(325)),i=d(r(326)),u=d(r(328)),l=d(r(327)),c=d(r(582)),s=d(r(583)),f=d(r(357));function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e){return e<0?-1:1};t.Normalizer=function(){var e=0;return(0,n.default)((function(t,r){var n=e+Math.abs(r);return t>n?(e=n,0):t===n?(e=0,n*p(r)):t<n?(e=n%t,Math.floor(n/t)*p(r)):void 0}))};var y=function(e,t){return(0,f.default)(e)?t:e};t.maybeNaN=y;t.maybeInt=function(e,t){return y(parseInt(e),t)};t.maybeFloat=function(e,t){return y(parseFloat(e),t)};t.maybeNumber=function(e,t){return(0,f.default)(parseInt(e))?t:e};var m=(0,n.default)(Math.min);t.min=m;var h=(0,n.default)(Math.max);t.max=h;t.range=function(e,t,r){return Math.min(t,Math.max(e,r))};var b=(0,o.default)(c.default,l.default,u.default,(0,i.default)("."),a.default);t.getPrecision=b;var v=(0,n.default)((function(e,t){return parseFloat(parseFloat(t).toFixed(e))}));t.toFixed=v;var g=(0,n.default)((function(e,t){return t*Math.pow(10,-1*e)}));t.toPrecision=g;t.mapNumber=function(e,t,r){var n=parseFloat(t);return(0,f.default)(n)?r:e(n)};t.getPercent=function(e,t){return 0===t?0:100*e/t};t.getAmount=function(e,t){return t*(.01*e)};t.roundBy=function(e,t){return e>t?Math.ceil(t):Math.floor(t)};t.roundOff=function(e,t){return e>t?Math.floor(t):Math.ceil(t)};t.average=function(e){return(0,s.default)(e)/e.length}},function(e,t,r){var n=r(26)("size",r(257),r(90));n.placeholder=r(24),e.exports=n},function(e,t,r){var n=r(584),o=r(41);e.exports=function(e){return e&&e.length?n(e,o):0}},function(e,t){e.exports=function(e,t){for(var r,n=-1,o=e.length;++n<o;){var a=t(e[n]);void 0!==a&&(r=void 0===r?a:r+a)}return r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEnabled=t.hoverSuffix=t.getHoverField=t.getHoverEnabledField=t.getFieldBaseName=t.enabledSuffix=t.default=void 0;var n=i(r(12)),o=i(r(39)),a=i(r(5));function i(e){return e&&e.__esModule?e:{default:e}}var u="__hover",l="__hover_enabled",c=function(){return u};t.hoverSuffix=c;var s=function(){return l};t.enabledSuffix=s;var f=function(e){return!(0,n.default)(e)&&(0,o.default)(e)?e.split(u).shift():e};t.getFieldBaseName=f;var d=function(e){return"".concat(f(e)).concat(u)};t.getHoverField=d;var p=function(e){return"".concat(f(e)).concat(l)};t.getHoverEnabledField=p;var y=function(e,t){return 0===(0,a.default)(t,p(e),"").indexOf("on")};t.isEnabled=y;var m={isEnabled:y,hoverSuffix:c,enabledSuffix:s,getFieldBaseName:f,getHoverField:d,getHoverEnabledField:p};t.default=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isOnOff=t.isOn=t.isOff=t.isNo=t.isJson=t.isFileExtension=t.isDefault=t.hasValue=t.hasNumericValue=t.getSpacing=t.getPercentage=t.getCorners=t.getCorner=t.get=t.generatePlaceholderCss=t.closestElement=void 0,t.isRealMobileDevice=function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},t.toString=t.toOnOff=t.set=t.replaceCodeContentEntities=t.removeFancyQuotes=t.prop=t.isYes=t.isValidHtml=void 0;var n=d(r(15)),o=d(r(108)),a=d(r(123)),i=d(r(19)),u=d(r(10)),l=d(r(12)),c=d(r(16)),s=d(r(357)),f=d(r(157));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(587);var h=function(e){return""!==e&&void 0!==e&&!1!==e&&!(0,s.default)(e)};t.hasValue=h;var b=function(e,t){return h(e)?e:t};t.get=b;t.isJson=function(e){try{return(0,n.default)(JSON.parse(e))}catch(e){return!1}};t.isValidHtml=function(e){var t=["area","base","br","col","embed","hr","img","input","link","menuitem","meta","param","source","track","wbr","!--"].join("|"),r=new RegExp("<(".concat(t,").*?>"),"gi"),n=e.replace(r,""),o=n.match(/<[^\/].*?>/g)||[],a=n.match(/<\/.+?>/g)||[];return o.length===a.length};t.isOn=function(e){return"on"===e};t.isOff=function(e){return"off"===e};t.isOnOff=function(e){return"on"===e||"off"===e};t.toOnOff=function(e){return e?"on":"off"};t.isYes=function(e){return"yes"===e};t.isNo=function(e){return"no"===e};t.isDefault=function(e){return"default"===e};t.isFileExtension=function(e,t){return t===(0,o.default)((0,a.default)(e.split(".")).split("?"))};t.generatePlaceholderCss=function(e,t){var r=["::-webkit-input-placeholder",":-moz-placeholder","::-moz-placeholder",":-ms-input-placeholder"],n=[];return!(0,l.default)(e)&&(0,u.default)(e)&&(0,i.default)(e,(function(e){(0,i.default)(r,(function(r){n.push({selector:e+r,declaration:t})}))})),n};t.replaceCodeContentEntities=function(e){return"string"==typeof(e=(0,c.default)(e))&&(e=(e=(e=(e=e.replace(/'/g,"'")).replace(/[/g,"[")).replace(/]/g,"]")).replace(/×/g,"x")),e};t.hasNumericValue=function(e){return""!==e&&void 0!==e&&!(0,s.default)(parseInt(e))};t.removeFancyQuotes=function(e){return"string"==typeof(e=(0,c.default)(e))&&(e=e.replace(/”/g,"").replace(/″/g,"")),e};var v=function(){return["top","right","bottom","left"]};t.getCorners=v;t.getCorner=function(e){return["top","right","bottom","left"][e]};t.getSpacing=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0px";if(!h(e))return r;var n=["top","right","bottom","left"],o=(0,f.default)(n,(function(e){return e===t})),a=(0,c.default)(e).split("|");return h(a[o])?a[o]:r};t.toString=function(e){return h(e)?(0,c.default)(e):""};t.prop=function(e,t,r){return r&&b(r[t],e)||e};t.set=function(e,t,r){return y(y({},r||{}),{},m({},e,t))};t.getPercentage=function(e,t){return e/100*parseFloat(t)};t.closestElement=function(e,t){return e.closest(t)}},function(e,t,r){"use strict";Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(Element.prototype.matches.call(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(92);function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=function(){function e(t,r,o,a,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.color=t,this.position=r,this.index=o,this.uuid=a||(0,n.v4)(),this.unit=i}var t,r,a;return t=e,(r=[{key:"value",set:function(e){this.position=e}},{key:"toString",value:function(){return"".concat(this.color," ").concat(this.position).concat(this.unit)}},{key:"valueOf",value:function(){return this.position}}])&&o(t.prototype,r),a&&o(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=a},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i,u,l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=N(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),c=B(r(1)),s=r(3),f=r(9),d=B(r(11)),p=B(r(32)),y=B(r(5)),m=B(r(12)),h=B(r(17)),b=B(r(38)),v=B(r(8)),g=B(r(56)),O=B(r(238)),_=B(r(339)),w=r(4),T=B(r(7)),E=B(r(13)),P=r(34),j=r(230),S=B(r(18)),I=B(r(348)),M=B(r(133)),C=B(r(80)),A=B(r(590)),D=B(r(30)),k=B(r(175)),R=B(r(57)),x=B(r(596)),L=B(r(602));function B(e){return e&&e.__esModule?e:{default:e}}function N(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(N=function(e){return e?r:t})(e)}function U(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function W(e){return function(e){if(Array.isArray(e))return F(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return F(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return F(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function z(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function H(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?z(Object(r),!0).forEach((function(t){X(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):z(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function q(e,t){return q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},q(e,t)}function G(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Z(e);if(t){var o=Z(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return $(this,r)}}function $(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return K(e)}function K(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z(e){return Z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Z(e)}function X(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(605);var J="useOn",Q="excludeFrom",ee="reset_all",te="reset_use_on",re="reset_exclude_from",ne="header",oe="use_on",ae="exclude_from",ie=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&q(e,t)}(a,e);var t,r,n,o=G(a);function a(){var e;Y(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return X(K(e=o.call.apply(o,[this].concat(r))),"state",H(H({},(0,b.default)(e.props.defaultSettings,(function(e){return[].concat(e)}))),{},{currentSetting:{section:J,id:"",label:"",left:0,top:0,width:0},contextMenuTarget:ne,recentlyChanged:[]})),X(K(e),"getChildSettings",(function(t,r){return(0,p.default)(e.state[t],(function(t){return(0,P.getSetting)(e.props.settings,t).parent===r}))})),X(K(e),"handleOnChange",(function(t){return function(r,n,o){var a,i=e.state[t];if(o){if(n)return;i=(0,p.default)(i,(function(e){return!(0,_.default)(e,r)}))}else n?(i=i.concat([r]),e.state.recentlyChanged.includes(r)||e.setState({recentlyChanged:[].concat(W(e.state.recentlyChanged),[r])})):i=(0,g.default)(i,r);var u=J===t?Q:J,l=g.default.apply(void 0,[e.state[u]].concat(W(i)));e.setState((X(a={},t,i),X(a,u,l),a))}})),X(K(e),"retainCurrentSetting",(function(){clearTimeout(e.currentSettingTimeout)})),X(K(e),"activateSetting",(function(t){var r=t.section,n=t.label;return function(t){e.retainCurrentSetting(),e.currentSettingTimeout=setTimeout((function(){var o=(0,P.getSetting)(e.props.settings,t.settingId);e.setState({currentSetting:{section:r,id:t.settingId,label:(0,y.default)(o,"options.label",n),left:t.left,top:t.top,width:t.width}})}),100)}})),X(K(e),"deactivateSetting",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;e.retainCurrentSetting(),e.currentSettingTimeout=setTimeout((function(){e.setState({currentSetting:H(H({},e.state.currentSetting),{},{id:""})})}),t)})),X(K(e),"close",(function(){return e.props.onClose()})),X(K(e),"maybeSaveAndClose",(function(t){(0,d.default)(t.target).is(".et-tb-admin-save-button, .et-tb-admin-save-button *")&&e.handleOnSave(),e.close()})),X(K(e),"handleOnSave",(function(){return e.props.onSave({useOn:e.state.useOn,excludeFrom:e.state.excludeFrom})})),X(K(e),"OnThemeBuilderSave",(function(){return e.handleOnSave(),!1})),X(K(e),"deactivateSettingDelayed",(function(){e.deactivateSetting(250)})),X(K(e),"getContextMenuOptions",(function(){switch(e.state.contextMenuTarget){case ne:return[{value:ee,label:(0,T.default)("themeBuilder","Reset Template Assignments")}];case oe:return[{value:te,label:(0,T.default)("themeBuilder","Reset Use On Filters")}];case ae:return[{value:re,label:(0,T.default)("themeBuilder","Reset Exclude From Filters")}]}return[]})),X(K(e),"handleOnContextMenuChange",(function(t){var r;switch(t){case ee:e.setState((X(r={},J,[]),X(r,Q,[]),r));break;case te:e.setState(X({},J,[]));break;case re:e.setState(X({},Q,[]))}e.props.closeContextMenu()})),X(K(e),"openHeaderContextMenu",(function(t){e.setState({contextMenuTarget:ne},(function(){e.props.openContextMenu(t)}))})),X(K(e),"openUseOnContextMenu",(function(t){e.setState({contextMenuTarget:oe},(function(){e.props.openContextMenu(t)}))})),X(K(e),"openExcludeFromContextMenu",(function(t){e.setState({contextMenuTarget:ae},(function(){e.props.openContextMenu(t)}))})),X(K(e),"bindContextMenus",(function(){if(e.clickTargetRef){var t=(0,d.default)(ReactDOM.findDOMNode(e.clickTargetRef)),r=t.find(".et-tb-branded-modal__header").first(),n=t.find('.et-common-tabs-navigation__button[data-key="use_on"]').first(),o=t.find('.et-common-tabs-navigation__button[data-key="exclude_from"]').first();r.on("contextmenu",e.openHeaderContextMenu),n.on("contextmenu",e.openUseOnContextMenu),o.on("contextmenu",e.openExcludeFromContextMenu)}})),X(K(e),"unbindContextMenus",(function(){if(e.clickTargetRef){var t=(0,d.default)(ReactDOM.findDOMNode(e.clickTargetRef)),r=t.find(".et-tb-branded-modal__header").first(),n=t.find('.et-common-tabs-navigation__button[data-key="use_on"]').first(),o=t.find('.et-common-tabs-navigation__button[data-key="exclude_from"]').first();r.off("contextmenu",e.openHeaderContextMenu),n.off("contextmenu",e.openUseOnContextMenu),o.off("contextmenu",e.openExcludeFromContextMenu)}})),X(K(e),"componentDidMount",(function(){e.bindContextMenus()})),X(K(e),"componentDidUpdate",(function(){e.unbindContextMenus(),e.bindContextMenus()})),X(K(e),"componentWillUnmount",(function(){e.unbindContextMenus(),e.retainCurrentSetting()})),X(K(e),"renderSettings",(function(t){return function(){var r=e.props,n=r.settingGroups,o=r.takenUseOnConditions;return l.default.createElement(l.Fragment,null,(0,h.default)(n,(function(r,n){var a=(0,p.default)(e.state[t],(function(t){var n=(0,h.default)(r.settings,"id");if(-1!==n.indexOf(t))return!0;var o=(0,P.getSetting)(e.props.settings,t).parent;return-1!==n.indexOf(o)}));return l.default.createElement(L.default,{key:n,positive:J===t,groupId:n,values:a,takenUseOnConditions:o,onChange:e.handleOnChange(t),onActivate:e.activateSetting({section:t,label:r.label}),onDeactivate:e.deactivateSettingDelayed})})))}})),X(K(e),"renderActions",(function(){return l.default.createElement(S.default,{className:"et-common-button--primary",onClick:e.handleOnSave},e.props.actionLabel)})),e}return t=a,(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.takenUseOnConditions,n=t.contextMenu,o=this.state,a=o.currentSetting,i=o.recentlyChanged;return l.default.createElement(C.default,{component:"Template settings"},l.default.createElement(I.default,{enabled:!n.open,onOutsideClick:this.maybeSaveAndClose},(function(t){return l.default.createElement("div",{ref:function(r){return t(e.clickTargetRef=r)},className:"et-tb-template-settings-click-target"},l.default.createElement(A.default,{animation:E.default.animation,title:(0,T.default)("themeBuilder","Template Settings"),tabs:[{key:"use_on",title:(0,T.default)("themeBuilder","Use On"),render:e.renderSettings(J)},{key:"exclude_from",title:(0,T.default)("themeBuilder","Exclude From"),render:e.renderSettings(Q)}],actions:e.renderActions,onClose:e.close,className:"et-tb-template-settings"}),!(0,m.default)(a.id)&&l.default.createElement(x.default,{key:a.id,animation:E.default.animation,positive:J===a.section,settingId:a.id,values:e.getChildSettings(a.section,a.id),label:a.label,left:a.left,top:a.top,width:a.width,takenUseOnConditions:r,onChange:e.handleOnChange(a.section),onMouseEnter:e.retainCurrentSetting,onMouseLeave:e.deactivateSetting,recentlyChanged:i,onClose:e.deactivateSetting}),n.open&&l.default.createElement(D.default,null,l.default.createElement(k.default,{animation:E.default.animation,left:n.left,top:n.top,options:e.getContextMenuOptions(),onChange:e.handleOnContextMenuChange})))})),l.default.createElement(R.default,{shortcuts:[{shortcut:w.HOTKEYS_SAVE,action:this.OnThemeBuilderSave}]}))}}])&&V(t.prototype,r),n&&V(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(l.PureComponent);X(ie,"propTypes",{templateId:c.default.string,defaultSettings:c.default.object,actionLabel:c.default.string,onSave:c.default.func,onClose:c.default.func}),X(ie,"defaultProps",{templateId:"",defaultSettings:(o={},X(o,J,[]),X(o,Q,[]),o),actionLabel:(0,T.default)("generic","Save"),onSave:v.default,onClose:v.default}),X(ie,"connections",{templates:(0,s.state)(a||(a=U(["templates.templates"]))),settingGroups:(0,s.state)(i||(i=U(["templates.settingGroups"]))),settings:(0,s.state)(u||(u=U(["templates.settings"])))}),X(ie,"connectionsFilter",(0,j.createConnectionsFilter)((function(e,t){return{takenUseOnConditions:(0,O.default)(e.templates,(function(e,r){return r.id===t.templateId?e:e.concat(r.useOn)}),[])}})));var ue=(0,M.default)((0,f.connect)(ie.connections,ie.connectionsFilter,ie));t.default=ue},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=O(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=g(r(1)),i=g(r(11)),u=g(r(14)),l=g(r(36)),c=g(r(55)),s=g(r(108)),f=g(r(17)),d=g(r(8)),p=r(4),y=g(r(270)),m=g(r(80)),h=g(r(81)),b=g(r(44)),v=g(r(57));function g(e){return e&&e.__esModule?e:{default:e}}function O(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(O=function(e){return e?r:t})(e)}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function T(e,t){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T(e,t)}function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=S(e);if(t){var o=S(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return P(this,r)}}function P(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return j(e)}function j(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}function I(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(595);var M=o.default.memo((function(e){return(0,e.render)(e.currentTab)})),C=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&T(e,t)}(d,e);var t,r,n,a=E(d);function d(){var e;_(this,d);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return I(j(e=a.call.apply(a,[this].concat(r))),"state",{currentTab:(0,s.default)(e.props.tabs).key}),I(j(e),"resetScroll",(function(){e.tabsContentsRef&&(0,i.default)(e.tabsContentsRef).scrollTop(0)})),I(j(e),"setTab",(function(t){e.setState({currentTab:t},e.resetScroll)})),e}return t=d,(r=[{key:"renderChildren",value:function(){var e=this.props.children,t=this.state.currentTab;return o.default.createElement("div",{className:(0,u.default)({"et-tb-dropdown-modal__tab-content":!0,"et-tb-dropdown-modal__tab-content--active":!0})},o.default.createElement(m.default,{component:"Template settings"},o.default.createElement(M,{render:e,currentTab:t})))}},{key:"renderTabs",value:function(){var e=this.props.tabs,t=this.state.currentTab;return(0,f.default)(e,(function(e){return o.default.createElement("div",{key:e.key,className:(0,u.default)({"et-tb-dropdown-modal__tab-content":!0,"et-tb-dropdown-modal__tab-content--active":e.key===t})},o.default.createElement(m.default,{component:"Template settings"},o.default.createElement(M,{render:e.render})))}))}},{key:"render",value:function(){var e=this,t=this.props,r=t.animation,n=t.title,a=t.tabs,i=t.actions,u=t.onClose,s=t.className,f=t.children,d=this.state.currentTab,m=i();return o.default.createElement(h.default,{animation:r,className:s},o.default.createElement(b.default,{title:n,onClose:u}),o.default.createElement("div",{className:"et-tb-dropdown-modal__content"},o.default.createElement(y.default,{currentTab:d,tabs:a,onChange:this.setTab}),o.default.createElement("div",{ref:function(t){return e.tabsContentsRef=t},className:"et-tb-dropdown-modal__tabs-contents-scroll"},o.default.createElement("div",{className:"et-tb-dropdown-modal__tabs-contents"},(0,l.default)(f)?this.renderChildren():this.renderTabs()))),!(0,c.default)(m)&&o.default.createElement("div",{className:"et-tb-dropdown-modal__actions"},m),o.default.createElement(v.default,{shortcuts:[{shortcut:p.HOTKEYS_CLOSE,action:u}]}))}}])&&w(t.prototype,r),n&&w(t,n),Object.defineProperty(t,"prototype",{writable:!1}),d}(o.PureComponent);I(C,"propTypes",{animation:a.default.bool,title:a.default.string.isRequired,tabs:a.default.arrayOf(a.default.shape({key:a.default.string.isRequired,title:a.default.string.isRequired,render:a.default.func})).isRequired,actions:a.default.func,onClose:a.default.func,className:a.default.string,children:a.default.func}),I(C,"defaultProps",{animation:!0,actions:d.default,onClose:d.default,className:"",children:null});var A=C;t.default=A},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";r.r(t)},function(e,t,r){var n=r(10);e.exports=function(){if(!arguments.length)return[];var e=arguments[0];return n(e)?e:[e]}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitizeKey=t.keyToCode=t.keyAliases=t.getModifiers=t.codes=t.codeToKey=void 0;var n=l(r(5)),o=l(r(41)),a=l(r(23)),i=l(r(19)),u=l(r(88));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var d=s(s({},(0,l(r(38)).default)((0,u.default)(["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9"],o.default),(function(e){return e.toUpperCase().charCodeAt(0)}))),{},{escape:27,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,"`":192,"-":189,"=":187,backspace:8,tab:9,"[":219,"]":221,"\\":220,capslock:20,";":186,"'":222,enter:13,",":188,".":190,"/":191,space:32,insert:45,home:36,pageup:33,delete:46,end:35,pagedown:34,left:37,up:38,down:40,right:39});t.codes=d;var p={esc:"escape","~":"`",_:"-","+":"=","{":"[","}":"]","|":"\\",":":";",'"':"'","<":",",">":".","?":"/",caps:"capslock",return:"enter",control:"ctrl",cmd:"command",option:"alt"," ":"space",del:"delete"};t.keyAliases=p;var y=function(e){return e=e.toLowerCase(),e=(0,n.default)(p,e,e),(0,a.default)(d[e])?"":e};t.sanitizeKey=y;t.keyToCode=function(e){return(0,n.default)(d,y(e),-1)};t.codeToKey=function(e){var t="";return(0,i.default)(d,(function(r,n){if(r===e)return t=n,!1})),t};t.getModifiers=function(e){var t=e.metaKey,r=e.ctrlKey;return{ctrl:r,command:t||r,alt:e.altKey,shift:e.shiftKey,meta:t}}},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i,u=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=D(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),l=A(r(46)),c=A(r(1)),s=r(3),f=r(9),d=A(r(14)),p=A(r(166)),y=A(r(11)),m=A(r(179)),h=A(r(5)),b=A(r(12)),v=A(r(17)),g=A(r(8)),O=A(r(56)),_=r(4),w=A(r(13)),T=A(r(7)),E=(r(173),r(351)),P=A(r(180)),j=A(r(18)),S=A(r(25)),I=A(r(176)),M=A(r(360)),C=A(r(362));function A(e){return e&&e.__esModule?e:{default:e}}function D(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(D=function(e){return e?r:t})(e)}function k(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function R(e){return function(e){if(Array.isArray(e))return x(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return x(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return x(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function L(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function N(e,t){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},N(e,t)}function U(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=z(e);if(t){var o=z(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return W(this,r)}}function W(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return F(e)}function F(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z(e){return z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},z(e)}function H(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(601);var Y=w.default.rtl?10:20,V=w.default.rtl?20:10,q={},G=function(e){return(0,h.default)(q,y.default.param(e))},$=function(e){return new p.default((function(t,r){y.default.ajax({type:"GET",dataType:"json",url:w.default.api,data:e,success:t,error:r})})).then((function(t){return!0===(0,h.default)(t,"success",!1)?(function(e,t){q[y.default.param(e)]=t}(e,t.data),t.data):p.default.reject()}))},K=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&N(e,t)}(a,e);var t,r,n,o=U(a);function a(){var e;L(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return H(F(e=o.call.apply(o,[this].concat(r))),"state",{search:"",loading:!1,results:[],page:1,reachedEnd:!1,compact:!0,onTheRight:!w.default.rtl}),H(F(e),"mounted",!1),H(F(e),"getWidth",(function(){return e.props.width+Y+V})),H(F(e),"getWidthOffset",(function(e){return e?V:Y})),H(F(e),"getFilteredOptions",(function(){var t=e.props.values,r=e.state,n=r.results;return r.compact?n:O.default.apply(void 0,[n].concat(R(t)))})),H(F(e),"useResults",(function(t){var r=e.state.results.concat((0,v.default)(t,"id").filter((function(t){return-1===e.state.results.indexOf(t)})));e.props.addNewTemplateSettings({settings:t}),e.setState({results:r,reachedEnd:0===t.length,compact:""===e.state.search&&r.length<=10})})),H(F(e),"useCachedResults",(function(t){e.useResults(t),e.setState({loading:!1})})),H(F(e),"getRequestData",(function(){return{action:"et_theme_builder_api_get_template_settings",nonce:w.default.nonces.et_theme_builder_api_get_template_settings,parent:e.props.setting.id,search:e.state.search,page:e.state.page}})),H(F(e),"_requestResults",(function(){$(e.getRequestData()).then((function(t){e.mounted&&e.useResults(t.results)})).catch(g.default).then((function(){e.mounted&&e.setState({loading:!1})}))})),H(F(e),"_debouncedRequestResults",(0,m.default)(e._requestResults,250)),H(F(e),"requestResults",(function(t,r){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];e.setState({loading:!0,search:t,page:r,results:n?[]:e.state.results},(function(){var t=G(e.getRequestData());return t?e.useCachedResults(t.results):e._debouncedRequestResults()}))})),H(F(e),"handleOnSearch",(function(t){var r=t.target.value;r!==e.state.search&&(e.setState({search:r}),(0===r.length||r.length>=3)&&e.requestResults(r,1))})),H(F(e),"handleOnScroll",(function(){if(!e.state.loading&&!e.state.reachedEnd){var t=(0,y.default)(e.scrollRef);t.get(0).scrollHeight-(t.scrollTop()+t.height())<400&&e.requestResults(e.state.search,e.state.page+1,!1)}})),H(F(e),"reposition",(function(){var t=e.props,r=t.left,n=t.top,o=t.width,a=l.default.findDOMNode(F(e));if(null!==a){var i=function(t,r,o){return(0,E.getViewportAdaptableRectangle)((0,y.default)(window),t,r,n,e.getWidth()+e.getWidthOffset(o),420,30,30,30+_.ADMIN_BAR_HEIGHT,30)},u=(0,y.default)(a),c=Math.floor(r+o),s=Math.floor(r-e.getWidth()-Y+e.getWidthOffset(!1)),f=!w.default.rtl,d=f?c:s,p=i(u,d,f);if(p.left!==d){var m=i(u,d=f?s:c,!f);m.left===d&&(p=m,f=w.default.rtl)}u.css({left:"".concat(p.left,"px"),top:"".concat(p.top,"px")}),e.state.onTheRight!==f&&e.setState({onTheRight:f})}})),e}return t=a,(r=[{key:"componentDidMount",value:function(){this.mounted=!0,this.requestResults(this.state.search,this.state.page),this.reposition()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"render",value:function(){var e=this,t=this.props,r=t.animation,n=t.positive,o=t.values,a=t.label,i=t.takenUseOnConditions,l=t.onChange,c=t.onMouseEnter,s=t.onMouseLeave,f=t.onClose,p=t.recentlyChanged,y=this.state,m=y.loading,h=y.results,g=y.search,O=y.compact,_=y.onTheRight,w=this.getWidthOffset(_),E=this.getFilteredOptions();return u.default.createElement("div",{className:"et-tb-template-settings-sublist",onMouseEnter:c,onMouseLeave:s,style:{paddingLeft:_?"".concat(w,"px"):0,paddingRight:_?0:"".concat(w,"px"),width:"".concat(_?this.getWidth()+w:this.getWidth(),"px"),height:"".concat(420,"px")}},u.default.createElement(I.default,{enabled:r,scale:.8},(function(t){return u.default.createElement("div",{className:"et-tb-template-settings-sublist__panel",style:t},u.default.createElement("div",{className:"et-tb-template-settings-sublist__header"},u.default.createElement(j.default,{className:"et-common-button--round",onClick:f},u.default.createElement(S.default,{icon:"close"}))),!O&&u.default.createElement("div",{className:"et-tb-template-settings-sublist__search"},u.default.createElement("input",{type:"text",value:g,onChange:e.handleOnSearch,placeholder:(0,T.default)("themeBuilder","Search %1$s",a),className:"et-tb-template-settings-sublist__search-input"})),u.default.createElement("div",{ref:function(t){return e.scrollRef=t},onScroll:e.handleOnScroll,className:"et-tb-template-settings-sublist__scroll"},u.default.createElement("div",{className:"et-tb-template-settings-sublist__content"},u.default.createElement("label",{className:"et-common-checkbox-group__label"},a),!O&&!(0,b.default)(o)&&u.default.createElement("div",{className:"et-common-checkbox-group"},u.default.createElement("ul",{className:"et-common-checkbox-group__list"},(0,v.default)(o,(function(e){var t=n&&-1!==i.indexOf(e);return u.default.createElement(M.default,{key:e,positive:n,settingId:e,checked:!0,conflicted:t,onChange:l})})))),!O&&!(0,b.default)(o)&&!(0,b.default)(E)&&u.default.createElement("div",{className:"et-tb-template-settings-sublist__separator"}),E.length>0&&u.default.createElement("div",{className:"et-common-checkbox-group"},u.default.createElement("ul",{className:"et-common-checkbox-group__list"},(0,v.default)(E,(function(e){var t=o.includes(e),r=i.includes(e),a=p.includes(e),c=t&&r&&a;return u.default.createElement(M.default,{key:e,positive:n,settingId:e,checked:t,conflicted:c,onChange:l})})))),!m&&0===h.length&&u.default.createElement("div",{className:"et-tb-template-settings-sublist__no-results"},u.default.createElement("p",null,(0,T.default)("generic","No results found."))),m&&u.default.createElement("div",{className:(0,d.default)({"et-tb-template-settings-sublist__loading":!0,"et-tb-template-settings-sublist__loading--centered":0===h.length})},u.default.createElement(C.default,null)))))})),u.default.createElement(P.default,{lockId:"template-settings-sublist"}))}}])&&B(t.prototype,r),n&&B(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(u.PureComponent);H(K,"propTypes",{animation:c.default.bool,positive:c.default.bool,settingId:c.default.string.isRequired,values:c.default.arrayOf(c.default.string).isRequired,label:c.default.string.isRequired,left:c.default.number.isRequired,top:c.default.number.isRequired,width:c.default.number.isRequired,takenUseOnConditions:c.default.arrayOf(c.default.string),onChange:c.default.func,onMouseEnter:c.default.func,onMouseLeave:c.default.func,onClose:c.default.func}),H(K,"defaultProps",{animation:!0,positive:!0,takenUseOnConditions:[],onChange:g.default,onMouseEnter:g.default,onMouseLeave:g.default,onClose:g.default}),H(K,"connections",{setting:(0,s.state)(o||(o=k(["templates.settings.",""])),(0,s.props)(a||(a=k(["settingId"])))),addNewTemplateSettings:(0,s.sequences)(i||(i=k(["templates.addNewTemplateSettings"])))});var Z=(0,f.connect)(K.connections,K);t.default=Z},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i,u=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=w(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),l=_(r(1)),c=r(3),s=r(9),f=_(r(259)),d=_(r(5)),p=_(r(12)),y=_(r(27)),m=_(r(17)),h=_(r(38)),b=_(r(8)),v=r(230),g=r(603),O=_(r(360));function _(e){return e&&e.__esModule?e:{default:e}}function w(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(w=function(e){return e?r:t})(e)}function T(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function j(e,t){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},j(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=C(e);if(t){var o=C(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return I(this,r)}}function I(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return M(e)}function M(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}function A(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(604);var D=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&j(e,t)}(a,e);var t,r,n,o=S(a);function a(){var e;E(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return A(M(e=o.call.apply(o,[this].concat(r))),"shouldComponentUpdate",g.shouldComponentUpdate),e}return t=a,(r=[{key:"render",value:function(){var e=this.props,t=e.positive,r=e.group,n=e.groupId,o=e.values,a=e.settingsChildren,i=e.takenUseOnConditions,l=e.onChange,c=e.onActivate,s=e.onDeactivate;return u.default.createElement("div",{key:r.label,className:"et-tb-template-settings-group et-common-checkbox-group"},u.default.createElement("label",{className:"et-common-checkbox-group__label"},r.label),u.default.createElement("ul",{className:"et-common-checkbox-group__list"},(0,m.default)(r.settings,(function(e){var r=(0,d.default)(a,e.id,[]),f=-1!==o.indexOf(e.id),y=!(0,p.default)(r),m=t&&f&&-1!==i.indexOf(e.id);return u.default.createElement(O.default,{key:e.id,positive:t,settingId:e.id,groupId:n,metaLabel:r.join(", "),checked:f||y,conflicted:m,onChange:l,onActivate:c,onDeactivate:s})}))))}}])&&P(t.prototype,r),n&&P(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(u.Component);A(D,"propTypes",{positive:l.default.bool,groupId:l.default.string.isRequired,values:l.default.arrayOf(l.default.string).isRequired,takenUseOnConditions:l.default.arrayOf(l.default.string),onChange:l.default.func,onActivate:l.default.func,onDeactivate:l.default.func}),A(D,"defaultProps",{positive:!0,takenUseOnConditions:[],onChange:b.default,onActivate:b.default,onDeactivate:b.default}),A(D,"connections",{group:(0,c.state)(o||(o=T(["templates.settingGroups.",""])),(0,c.props)(a||(a=T(["groupId"]))))}),A(D,"connectionsFilter",(0,v.createConnectionsFilter)((function(e,t,r){return{settingsChildren:e.group.settings.reduce((function(e,n){var o=(0,h.default)(r((0,c.state)(i||(i=T(["templates.settingsChildren.",""])),n.id)),(function(e){return e.label})),a=(0,f.default)((0,y.default)(o),t.values);return e[n.id]=(0,m.default)(a,(function(e){return o[e]})),e}),{})}})));var k=(0,s.connect)(D.connections,D.connectionsFilter,D);t.default=k},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shouldComponentUpdate=void 0;var n,o=(n=r(42))&&n.__esModule?n:{default:n};t.shouldComponentUpdate=function(e,t){return!(0,o.default)(this.props,e)||!(0,o.default)(this.state,t)}},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i,u,l,c,s,f,d,p,y,m,h,b,v,g=k(r(0)),O=A(r(1)),_=r(3),w=r(9),T=A(r(14)),E=A(r(33)),P=k(r(181)),j=A(r(7)),S=A(r(608)),I=A(r(18)),M=A(r(25)),C=A(r(611));function A(e){return e&&e.__esModule?e:{default:e}}function D(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(D=function(e){return e?r:t})(e)}function k(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=D(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}function R(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function B(e,t){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},B(e,t)}function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=F(e);if(t){var o=F(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return U(this,r)}}function U(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return W(e)}function W(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F(e){return F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},F(e)}function z(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(618);var H=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&B(e,t)}(a,e);var t,r,n,o=N(a);function a(){var e;x(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return z(W(e=o.call.apply(o,[this].concat(r))),"getLayoutLabel",(function(e,t){if("global"===e)switch(t){case"header":return(0,j.default)("themeBuilder","Add Global Header");case"body":return(0,j.default)("themeBuilder","Add Global Body");case"footer":return(0,j.default)("themeBuilder","Add Global Footer")}switch(t){case"header":return(0,j.default)("themeBuilder","Add Custom Header");case"body":return(0,j.default)("themeBuilder","Add Custom Body");case"footer":return(0,j.default)("themeBuilder","Add Custom Footer")}return""})),z(W(e),"handleOnEdit",(function(){var t=e.props,r=t.layout,n=t.editLayout,o=t.templateId,a=t.layoutType,i=t.globalLayoutId,u=t.isDefaultTemplate,l=r.layout===i||u;n({layoutId:r.layout,templateId:o,layoutType:a,isGlobalLayout:l})})),z(W(e),"handleOnDelete",(function(){var t=e.props,r=t.templateId,n=t.layoutType;(0,t.deleteLayout)({templateId:r,layoutType:n})})),z(W(e),"handleOnCopy",(function(){var t=e.props,r=t.layoutType,n=t.layout.layout;(0,t.setClipboard)({layoutId:n,layoutType:r})})),z(W(e),"handleOnPaste",(function(){var t=e.props,r=t.layoutType,n=t.templateId;(0,t.pasteLayout)({templateId:n,layoutType:r})})),z(W(e),"handleOnLayoutToggle",(function(){var t=e.props,r=t.templateId,n=t.layoutType,o=t.layout;(0,t.toggleLayout)({templateId:r,layoutType:n,enabled:!o.enabled})})),z(W(e),"handleOnDisableGlobal",(function(){e.props.isDefaultTemplate||e.props.cloneLayout({templateId:e.props.templateId,layoutType:e.props.layoutType,layoutId:e.props.globalLayoutId})})),z(W(e),"handleOnMouseEnter",(function(){var t=e.props,r=t.templateId,n=t.layoutType,o=t.layout.layout;(0,t.setHoveredLayout)({templateId:r,layoutType:n,layoutId:o})})),z(W(e),"handleOnMouseLeave",(function(){e.props.setHoveredLayout({templateId:null,layoutType:null,layoutId:null})})),e}return t=a,(r=[{key:"render",value:function(){var e=this.props,t=e.templateId,r=e.layoutType,n=e.isDefaultTemplate,o=e.layout,a=e.globalLayoutId,i={"et-common-button--round":!0,"et-common-button--rectangle":!0,"et-tb-layout-slot__visibility-button":!0,"et-tb-layout-slot__visibility-button--disabled":!o.enabled};return g.default.createElement("div",{className:"et-tb-layout-slot"},g.default.createElement("div",{className:"et-tb-layout-slot__elements"},!(0,E.default)(o.layout)&&g.default.createElement(C.default,{isDefaultTemplate:n,templateId:t,layoutType:r,layoutId:o.layout,layoutEnabled:o.enabled,globalLayoutId:a,onEdit:this.handleOnEdit,onDelete:this.handleOnDelete,onCopy:this.handleOnCopy,onMouseEnter:this.handleOnMouseEnter,onMouseLeave:this.handleOnMouseLeave,onToggleVisibility:this.handleOnLayoutToggle,onDisableGlobal:this.handleOnDisableGlobal}),(0,E.default)(o.layout)&&g.default.createElement(S.default,{templateId:t,layoutType:r,onMouseEnter:this.handleOnMouseEnter,onMouseLeave:this.handleOnMouseLeave,onPaste:this.handleOnPaste,label:this.getLayoutLabel(n?"global":"custom",r)}),g.default.createElement(I.default,{tip:o.enabled?(0,j.default)("themeBuilder","Hide On Front End"):(0,j.default)("themeBuilder","Show On Front End"),type:"button",className:(0,T.default)(i),onClick:this.handleOnLayoutToggle},o.enabled?g.default.createElement(M.default,{icon:"eye"}):g.default.createElement(M.default,{icon:"closed-eye"}))))}}])&&L(t.prototype,r),n&&L(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(g.PureComponent);z(H,"propTypes",{templateId:O.default.string.isRequired,layoutType:P.layoutTypes.isRequired}),z(H,"connections",{isDefaultTemplate:(0,_.state)(o||(o=R(["templates.templates.",".default"])),(0,_.props)(a||(a=R(["templateId"])))),layout:(0,_.state)(i||(i=R(["templates.templates.",".layouts.",""])),(0,_.props)(u||(u=R(["templateId"]))),(0,_.props)(l||(l=R(["layoutType"])))),globalLayoutId:(0,_.state)(c||(c=R(["templates.templates.",".layouts.",".layout"])),(0,_.state)(s||(s=R(["templates.defaultTemplate"]))),(0,_.props)(f||(f=R(["layoutType"])))),toggleLayout:(0,_.sequences)(d||(d=R(["templates.toggleLayout"]))),editLayout:(0,_.sequences)(p||(p=R(["layouts.editLayout"]))),setHoveredLayout:(0,_.sequences)(y||(y=R(["layouts.setHoveredLayout"]))),deleteLayout:(0,_.sequences)(m||(m=R(["templates.deleteLayout"]))),setClipboard:(0,_.sequences)(h||(h=R(["clipboard.setClipboard"]))),pasteLayout:(0,_.sequences)(b||(b=R(["templates.pasteLayout"]))),cloneLayout:(0,_.sequences)(v||(v=R(["templates.cloneLayoutInTemplate"])))});var Y=(0,w.connect)(H.connections,H);t.default=Y},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i,u,l,c,s,f,d,p,y=k(r(0)),m=A(r(1)),h=r(3),b=r(9),v=A(r(14)),g=A(r(363)),O=A(r(33)),_=A(r(13)),w=A(r(7)),T=k(r(181)),E=A(r(609)),P=A(r(133)),j=A(r(175)),S=A(r(25)),I=A(r(30)),M=A(r(346)),C=A(r(610));function A(e){return e&&e.__esModule?e:{default:e}}function D(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(D=function(e){return e?r:t})(e)}function k(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=D(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}function R(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function B(e,t){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},B(e,t)}function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=F(e);if(t){var o=F(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return U(this,r)}}function U(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return W(e)}function W(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F(e){return F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},F(e)}function z(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(365);var H="paste",Y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&B(e,t)}(a,e);var t,r,n,o=N(a);function a(){var e;x(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return z(W(e=o.call.apply(o,[this].concat(r))),"state",{addLayoutOpen:!1}),z(W(e),"addLayout",(function(t){var r=e.props,n=r.templateId,o=r.layoutType,a=r.defaultTemplate,i=r.setLayout,u=r.cloneLayout,l=r.createLayout,c=r.importFromLibrary;switch(e.closeAddLayoutMenu(),t){case"buildGlobal":case"buildCustom":l({templateId:n,layoutType:o,isGlobalLayout:"buildGlobal"===t});break;case"useGlobal":i({templateId:n,layoutType:o,layoutId:a.layouts[o].layout});break;case"addFromLibrary":c({templateId:n,layoutType:o});break;default:u({templateId:n,layoutType:o,layoutId:t})}})),z(W(e),"openAddLayoutMenu",(function(){e.setState({addLayoutOpen:!0})})),z(W(e),"closeAddLayoutMenu",(function(){e.setState({addLayoutOpen:!1})})),z(W(e),"handleOnChange",(function(t){(0,O.default)(t)?e.closeAddLayoutMenu():e.addLayout(t)})),z(W(e),"getDroppableMeta",(0,g.default)((function(e,t,r){return{templateId:e,layoutType:t,isGlobal:e===r}}))),z(W(e),"getContextMenuOptions",(function(){return[{value:H,label:(0,w.default)("generic","Paste")}]})),z(W(e),"handleOnContextMenu",(function(t){var r=e.props,n=r.clipboard,o=r.openContextMenu;n.layoutId&&n.layoutType&&o(t)})),z(W(e),"handleOnContextMenuChange",(function(t){var r=e.props,n=r.onPaste,o=r.closeContextMenu;if(t===H)n();o()})),e}return t=a,(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.busy,n=t.templateId,o=t.layoutType,a=t.defaultTemplate,i=t.label,u=t.contextMenu,l=t.onMouseEnter,c=t.onMouseLeave,s=this.state.addLayoutOpen;return y.default.createElement("div",{className:"et-tb-layout-placeholder",onContextMenu:this.handleOnContextMenu,onMouseEnter:l,onMouseLeave:c},r&&y.default.createElement("button",{type:"button",className:"et-tb-layout-placeholder__button"},y.default.createElement("div",{className:"et-tb-layout-placeholder__loading"},y.default.createElement(S.default,{icon:"copy"}))),!r&&s&&y.default.createElement(C.default,{templateId:n,layoutType:o,onChange:this.handleOnChange}),u.open&&y.default.createElement(I.default,null,y.default.createElement(j.default,{animation:_.default.animation,left:u.left,top:u.top,options:this.getContextMenuOptions(),onChange:this.handleOnContextMenuChange})),!r&&y.default.createElement(E.default,{type:"layout",droppableId:"template:".concat(n,":layoutType:").concat(o),droppableMeta:this.getDroppableMeta(n,o,a.id)},(function(t){var r=t.ref,n=t.isDragging,o=t.isOver;return n?y.default.createElement("div",{ref:r,className:(0,v.default)({"et-tb-layout-placeholder__dropzone":!0,"et-tb-layout-placeholder__dropzone--hover":o})}):y.default.createElement("button",{type:"button",className:"et-tb-layout-placeholder__button",onClick:e.openAddLayoutMenu},y.default.createElement("h4",{className:"et-tb-layout-placeholder__title"},i),y.default.createElement(M.default,null))})))}}])&&L(t.prototype,r),n&&L(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(y.PureComponent);z(Y,"propTypes",{templateId:m.default.string.isRequired,layoutType:T.layoutTypes.isRequired,label:m.default.string.isRequired}),z(Y,"defaultProps",{}),z(Y,"connections",{busy:(0,h.state)(o||(o=R(["templates.templates.",".layouts.",".busy"])),(0,h.props)(a||(a=R(["templateId"]))),(0,h.props)(i||(i=R(["layoutType"])))),defaultTemplate:(0,h.state)(u||(u=R(["templates.templates.",""])),(0,h.state)(l||(l=R(["templates.defaultTemplate"])))),clipboard:(0,h.state)(c||(c=R(["clipboard"]))),setLayout:(0,h.sequences)(s||(s=R(["templates.setLayout"]))),cloneLayout:(0,h.sequences)(f||(f=R(["templates.cloneLayoutInTemplate"]))),createLayout:(0,h.sequences)(d||(d=R(["templates.createLayoutInTemplate"]))),importFromLibrary:(0,h.sequences)(p||(p=R(["templates.importLayoutFromLibraryInTemplate"])))});var V=(0,P.default)((0,b.connect)(Y.connections,Y));t.default=V},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=l(r(1)),i=l(r(42)),u=l(r(132));function l(e){return e&&e.__esModule?e:{default:e}}function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=h(e);if(t){var o=h(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return y(this,r)}}function y(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(a,e);var t,r,n,o=p(a);function a(){var e;s(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return b(m(e=o.call.apply(o,[this].concat(r))),"ref",null),b(m(e),"setRef",(function(t){e.unbindEvents(e.ref),e.ref=t,e.bindEvents(e.ref)})),b(m(e),"bindEvents",(function(t){t&&(t.addEventListener("mouseenter",e.handleOnMouseEnter),t.addEventListener("mouseleave",e.handleOnMouseLeave))})),b(m(e),"unbindEvents",(function(t){t&&(t.removeEventListener("mouseenter",e.handleOnMouseEnter),t.removeEventListener("mouseleave",e.handleOnMouseLeave))})),b(m(e),"isDragging",(function(){return null!==e.context.source.id&&e.props.type===e.context.type})),b(m(e),"isTarget",(function(){return(0,i.default)(e.props.droppableId,e.context.target.id)})),b(m(e),"handleOnMouseEnter",(function(){var t=e.props,r=t.droppableId,n=t.droppableMeta;e.isDragging()&&!e.isTarget()&&e.context.setTarget({id:r,meta:n})})),b(m(e),"handleOnMouseLeave",(function(){e.isDragging()&&e.isTarget()&&e.context.setTarget({id:null,meta:{}})})),b(m(e),"componentWillUnmount",(function(){e.unbindEvents(e.ref)})),e}return t=a,(r=[{key:"render",value:function(){return this.props.children({ref:this.setRef,isDragging:this.isDragging(),isOver:this.isTarget()})}}])&&f(t.prototype,r),n&&f(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.PureComponent);b(v,"contextType",u.default),b(v,"propTypes",{type:a.default.string,droppableId:a.default.oneOfType([a.default.number,a.default.string]),droppableMeta:a.default.object,children:a.default.func.isRequired}),b(v,"defaultProps",{type:"",droppableMeta:{}});var g=v;t.default=g},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i,u=P(r(0)),l=T(r(1)),c=r(3),s=r(9),f=T(r(19)),d=T(r(5)),p=T(r(12)),y=T(r(33)),m=T(r(8)),h=r(4),b=T(r(13)),v=P(r(181)),g=T(r(7)),O=T(r(364)),_=r(74),w=r(34);function T(e){return e&&e.__esModule?e:{default:e}}function E(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(E=function(e){return e?r:t})(e)}function P(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=E(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}function j(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function M(e,t){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},M(e,t)}function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=k(e);if(t){var o=k(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return A(this,r)}}function A(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return D(e)}function D(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}function R(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(365);var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&M(e,t)}(a,e);var t,r,n,o=C(a);function a(){var e;S(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return R(D(e=o.call.apply(o,[this].concat(r))),"getLayoutOptionLabel",(function(e,t){if("buildGlobal"===e)switch(t){case"header":return(0,g.default)("themeBuilder","Build Global Header");case"body":return(0,g.default)("themeBuilder","Build Global Body");case"footer":return(0,g.default)("themeBuilder","Build Global Footer")}if("buildCustom"===e)switch(t){case"header":return(0,g.default)("themeBuilder","Build Custom Header");case"body":return(0,g.default)("themeBuilder","Build Custom Body");case"footer":return(0,g.default)("themeBuilder","Build Custom Footer")}switch(t){case"header":return(0,g.default)("themeBuilder","Use Global Header");case"body":return(0,g.default)("themeBuilder","Use Global Body");case"footer":return(0,g.default)("themeBuilder","Use Global Footer")}})),R(D(e),"getLayoutOptions",(function(){var t=e.props,r=t.templateId,n=t.defaultTemplate,o=t.layoutType,a=[];r===n.id?a.push({value:"buildGlobal",label:e.getLayoutOptionLabel("buildGlobal",o)}):((0,y.default)((0,d.default)(n,["layouts",o,"layout"],null))||a.push({value:"useGlobal",label:e.getLayoutOptionLabel("useGlobal",o)}),a.push({value:"buildCustom",label:e.getLayoutOptionLabel("buildCustom",o)})),(0,_.isAllowedAction)(h.CAP_DIVI_LIBRARY)&&(0,_.isAllowedAction)(h.CAP_LOAD_LAYOUT)&&a.push({value:"addFromLibrary",label:(0,g.default)("themeBuilder","Add From Library")});var i=[{options:a}],u=e.getLayoutOptionsFromTemplates();return(0,p.default)(u)||i.push({label:(0,g.default)("themeBuilder","Copy From Another Template"),options:u}),i})),R(D(e),"getLayoutOptionsFromTemplates",(function(){var t=e.props,r=t.templates,n=t.templateId,o=t.layoutType,a=t.defaultTemplate,i=[];return(0,f.default)(r,(function(e){var t=e.layouts[o].layout,r=e.id===n,u=e.default,l=(0,y.default)(t),c=a.layouts[o].layout===t;r||u||l||c||i.push({value:t,label:(0,w.getTemplateTitle)(e.default,(0,w.isUnassigned)(e.useOn),e.title,e.automaticTitle)})})),i})),e}return t=a,(r=[{key:"render",value:function(){var e=this.props.onChange;return u.default.createElement(O.default,{animation:b.default.animation,paddingTop:30+h.ADMIN_BAR_HEIGHT,options:this.getLayoutOptions(),onChange:e})}}])&&I(t.prototype,r),n&&I(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(u.PureComponent);R(x,"propTypes",{templateId:l.default.string.isRequired,layoutType:v.layoutTypes.isRequired,onChange:l.default.func}),R(x,"defaultProps",{onChange:m.default}),R(x,"connections",{defaultTemplate:(0,c.state)(o||(o=j(["templates.templates.",""])),(0,c.state)(a||(a=j(["templates.defaultTemplate"])))),templates:(0,c.state)(i||(i=j(["templates.templates"])))});var L=(0,s.connect)(x.connections,x);t.default=L},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=(c(r(1)),c(r(363))),i=c(r(33)),u=c(r(366)),l=c(r(616));function c(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){_(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p.apply(this,arguments)}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=O(e);if(t){var o=O(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return v(this,r)}}function v(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return g(e)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}function _(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(s,e);var t,r,n,c=b(s);function s(){var e;y(this,s);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return _(g(e=c.call.apply(c,[this].concat(r))),"getDraggableMeta",(0,a.default)((function(e,t,r,n){return{templateId:e,layoutType:t,layoutId:r,isGlobal:!(0,i.default)(r)&&r===n}}))),e}return t=s,(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.templateId,n=t.layoutType,a=t.layoutId,i=t.globalLayoutId;return o.default.createElement(u.default,{type:"layout",draggableId:"template:".concat(r,":layoutType:").concat(n,":layoutId:").concat(a),draggableMeta:this.getDraggableMeta(r,n,a,i)},(function(t){var r=t.isDragging;return o.default.createElement("div",{className:"et-tb-layout-drag-handle"},o.default.createElement(l.default,p({isDragging:r},e.props)))}))}}])&&m(t.prototype,r),n&&m(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(o.PureComponent);_(w,"propTypes",d({},l.default.propTypes)),_(w,"defaultProps",d({},l.default.defaultProps));var T=w;t.default=T},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraggableCore",{enumerable:!0,get:function(){return f.default}}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=m(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=y(r(1)),i=y(r(46)),u=y(r(613)),l=r(272),c=r(368),s=r(182),f=y(r(615)),d=y(r(369)),p=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];function y(e){return e&&e.__esModule?e:{default:e}}function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(m=function(e){return e?r:t})(e)}function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h.apply(this,arguments)}function b(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,a=[],i=!0,u=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){u=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(u)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return _(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function T(e,t){return T=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},T(e,t)}function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=S(e);if(t){var o=S(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return P(this,r)}}function P(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return j(e)}function j(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}function I(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var M=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&T(e,t)}(s,e);var t,r,n,a=E(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),I(j(t=a.call(this,e)),"onDragStart",(function(e,r){if((0,d.default)("Draggable: onDragStart: %j",r),!1===t.props.onStart(e,(0,c.createDraggableData)(j(t),r)))return!1;t.setState({dragging:!0,dragged:!0})})),I(j(t),"onDrag",(function(e,r){if(!t.state.dragging)return!1;(0,d.default)("Draggable: onDrag: %j",r);var n=(0,c.createDraggableData)(j(t),r),o={x:n.x,y:n.y};if(t.props.bounds){var a=o.x,i=o.y;o.x+=t.state.slackX,o.y+=t.state.slackY;var u=O((0,c.getBoundPosition)(j(t),o.x,o.y),2),l=u[0],s=u[1];o.x=l,o.y=s,o.slackX=t.state.slackX+(a-o.x),o.slackY=t.state.slackY+(i-o.y),n.x=o.x,n.y=o.y,n.deltaX=o.x-t.state.x,n.deltaY=o.y-t.state.y}if(!1===t.props.onDrag(e,n))return!1;t.setState(o)})),I(j(t),"onDragStop",(function(e,r){if(!t.state.dragging)return!1;if(!1===t.props.onStop(e,(0,c.createDraggableData)(j(t),r)))return!1;(0,d.default)("Draggable: onDragStop: %j",r);var n={dragging:!1,slackX:0,slackY:0};if(Boolean(t.props.position)){var o=t.props.position,a=o.x,i=o.y;n.x=a,n.y=i}t.setState(n)})),t.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:g({},e.position),slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),t}return t=s,n=[{key:"getDerivedStateFromProps",value:function(e,t){var r=e.position,n=t.prevPropsPosition;return!r||n&&r.x===n.x&&r.y===n.y?null:((0,d.default)("Draggable: getDerivedStateFromProps %j",{position:r,prevPropsPosition:n}),{x:r.x,y:r.y,prevPropsPosition:g({},r)})}}],(r=[{key:"componentDidMount",value:function(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){var e,t,r;return null!==(e=null===(t=this.props)||void 0===t||null===(r=t.nodeRef)||void 0===r?void 0:r.current)&&void 0!==e?e:i.default.findDOMNode(this)}},{key:"render",value:function(){var e,t=this.props,r=(t.axis,t.bounds,t.children),n=t.defaultPosition,a=t.defaultClassName,i=t.defaultClassNameDragging,s=t.defaultClassNameDragged,d=t.position,y=t.positionOffset,m=(t.scale,b(t,p)),v={},O=null,_=!Boolean(d)||this.state.dragging,w=d||n,T={x:(0,c.canDragX)(this)&&_?this.state.x:w.x,y:(0,c.canDragY)(this)&&_?this.state.y:w.y};this.state.isElementSVG?O=(0,l.createSVGTransform)(T,y):v=(0,l.createCSSTransform)(T,y);var E=(0,u.default)(r.props.className||"",a,(I(e={},i,this.state.dragging),I(e,s,this.state.dragged),e));return o.createElement(f.default,h({},m,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),o.cloneElement(o.Children.only(r),{className:E,style:g(g({},r.props.style),v),transform:O}))}}])&&w(t.prototype,r),n&&w(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(o.Component);t.default=M,I(M,"displayName","Draggable"),I(M,"propTypes",g(g({},f.default.propTypes),{},{axis:a.default.oneOf(["both","x","y","none"]),bounds:a.default.oneOfType([a.default.shape({left:a.default.number,right:a.default.number,top:a.default.number,bottom:a.default.number}),a.default.string,a.default.oneOf([!1])]),defaultClassName:a.default.string,defaultClassNameDragging:a.default.string,defaultClassNameDragged:a.default.string,defaultPosition:a.default.shape({x:a.default.number,y:a.default.number}),positionOffset:a.default.shape({x:a.default.oneOfType([a.default.number,a.default.string]),y:a.default.oneOfType([a.default.number,a.default.string])}),position:a.default.shape({x:a.default.number,y:a.default.number}),className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe})),I(M,"defaultProps",g(g({},f.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},function(e,t,r){"use strict";function n(e){var t,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=n(e[t]))&&(o&&(o+=" "),o+=r);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}r.r(t),t.default=function(){for(var e,t,r=0,o="";r<arguments.length;)(e=arguments[r++])&&(t=n(e))&&(o&&(o+=" "),o+=t);return o}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.browserPrefixToKey=a,t.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},t.default=void 0,t.getPrefix=o;var n=["Moz","Webkit","O","ms"];function o(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";var o=null===(e=window.document)||void 0===e||null===(t=e.documentElement)||void 0===t?void 0:t.style;if(!o)return"";if(r in o)return"";for(var i=0;i<n.length;i++)if(a(r,n[i])in o)return n[i];return""}function a(e,t){return t?"".concat(t).concat(function(e){for(var t="",r=!0,n=0;n<e.length;n++)r?(t+=e[n].toUpperCase(),r=!1):"-"===e[n]?r=!0:t+=e[n];return t}(e)):e}var i=o();t.default=i},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=d(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=f(r(1)),i=f(r(46)),u=r(272),l=r(368),c=r(182),s=f(r(369));function f(e){return e&&e.__esModule?e:{default:e}}function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(d=function(e){return e?r:t})(e)}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,a=[],i=!0,u=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){u=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(u)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=_(e);if(t){var o=_(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return g(this,r)}}function g(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return O(e)}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}function w(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var T={start:"touchstart",move:"touchmove",stop:"touchend"},E={start:"mousedown",move:"mousemove",stop:"mouseup"},P=E,j=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(c,e);var t,r,n,a=v(c);function c(){var e;m(this,c);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return w(O(e=a.call.apply(a,[this].concat(r))),"state",{dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null}),w(O(e),"mounted",!1),w(O(e),"handleDragStart",(function(t){if(e.props.onMouseDown(t),!e.props.allowAnyClick&&"number"==typeof t.button&&0!==t.button)return!1;var r=e.findDOMNode();if(!r||!r.ownerDocument||!r.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");var n=r.ownerDocument;if(!(e.props.disabled||!(t.target instanceof n.defaultView.Node)||e.props.handle&&!(0,u.matchesSelectorAndParentsTo)(t.target,e.props.handle,r)||e.props.cancel&&(0,u.matchesSelectorAndParentsTo)(t.target,e.props.cancel,r))){"touchstart"===t.type&&t.preventDefault();var o=(0,u.getTouchIdentifier)(t);e.setState({touchIdentifier:o});var a=(0,l.getControlPosition)(t,o,O(e));if(null!=a){var i=a.x,c=a.y,f=(0,l.createCoreData)(O(e),i,c);(0,s.default)("DraggableCore: handleDragStart: %j",f),(0,s.default)("calling",e.props.onStart),!1!==e.props.onStart(t,f)&&!1!==e.mounted&&(e.props.enableUserSelectHack&&(0,u.addUserSelectStyles)(n),e.setState({dragging:!0,lastX:i,lastY:c}),(0,u.addEvent)(n,P.move,e.handleDrag),(0,u.addEvent)(n,P.stop,e.handleDragStop))}}})),w(O(e),"handleDrag",(function(t){var r=(0,l.getControlPosition)(t,e.state.touchIdentifier,O(e));if(null!=r){var n=r.x,o=r.y;if(Array.isArray(e.props.grid)){var a=n-e.state.lastX,i=o-e.state.lastY,u=p((0,l.snapToGrid)(e.props.grid,a,i),2);if(a=u[0],i=u[1],!a&&!i)return;n=e.state.lastX+a,o=e.state.lastY+i}var c=(0,l.createCoreData)(O(e),n,o);if((0,s.default)("DraggableCore: handleDrag: %j",c),!1!==e.props.onDrag(t,c)&&!1!==e.mounted)e.setState({lastX:n,lastY:o});else try{e.handleDragStop(new MouseEvent("mouseup"))}catch(t){var f=document.createEvent("MouseEvents");f.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),e.handleDragStop(f)}}})),w(O(e),"handleDragStop",(function(t){if(e.state.dragging){var r=(0,l.getControlPosition)(t,e.state.touchIdentifier,O(e));if(null!=r){var n=r.x,o=r.y;if(Array.isArray(e.props.grid)){var a=n-e.state.lastX||0,i=o-e.state.lastY||0,c=p((0,l.snapToGrid)(e.props.grid,a,i),2);a=c[0],i=c[1],n=e.state.lastX+a,o=e.state.lastY+i}var f=(0,l.createCoreData)(O(e),n,o);if(!1===e.props.onStop(t,f)||!1===e.mounted)return!1;var d=e.findDOMNode();d&&e.props.enableUserSelectHack&&(0,u.removeUserSelectStyles)(d.ownerDocument),(0,s.default)("DraggableCore: handleDragStop: %j",f),e.setState({dragging:!1,lastX:NaN,lastY:NaN}),d&&((0,s.default)("DraggableCore: Removing handlers"),(0,u.removeEvent)(d.ownerDocument,P.move,e.handleDrag),(0,u.removeEvent)(d.ownerDocument,P.stop,e.handleDragStop))}}})),w(O(e),"onMouseDown",(function(t){return P=E,e.handleDragStart(t)})),w(O(e),"onMouseUp",(function(t){return P=E,e.handleDragStop(t)})),w(O(e),"onTouchStart",(function(t){return P=T,e.handleDragStart(t)})),w(O(e),"onTouchEnd",(function(t){return P=T,e.handleDragStop(t)})),e}return t=c,(r=[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.findDOMNode();e&&(0,u.addEvent)(e,T.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.findDOMNode();if(e){var t=e.ownerDocument;(0,u.removeEvent)(t,E.move,this.handleDrag),(0,u.removeEvent)(t,T.move,this.handleDrag),(0,u.removeEvent)(t,E.stop,this.handleDragStop),(0,u.removeEvent)(t,T.stop,this.handleDragStop),(0,u.removeEvent)(e,T.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,u.removeUserSelectStyles)(t)}}},{key:"findDOMNode",value:function(){var e,t,r;return null!==(e=this.props)&&void 0!==e&&e.nodeRef?null===(t=this.props)||void 0===t||null===(r=t.nodeRef)||void 0===r?void 0:r.current:i.default.findDOMNode(this)}},{key:"render",value:function(){return o.cloneElement(o.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}])&&h(t.prototype,r),n&&h(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Component);t.default=j,w(j,"displayName","DraggableCore"),w(j,"propTypes",{allowAnyClick:a.default.bool,disabled:a.default.bool,enableUserSelectHack:a.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:a.default.arrayOf(a.default.number),handle:a.default.string,cancel:a.default.string,nodeRef:a.default.object,onStart:a.default.func,onDrag:a.default.func,onStop:a.default.func,onMouseDown:a.default.func,scale:a.default.number,className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe}),w(j,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=O(r(0)),a=v(r(1)),i=v(r(14)),u=v(r(32)),l=v(r(33)),c=v(r(8)),s=v(r(13)),f=v(r(7)),d=O(r(181)),p=v(r(133)),y=v(r(175)),m=v(r(18)),h=v(r(25)),b=v(r(30));function v(e){return e&&e.__esModule?e:{default:e}}function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(g=function(e){return e?r:t})(e)}function O(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=g(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function T(e,t){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T(e,t)}function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=S(e);if(t){var o=S(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return P(this,r)}}function P(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return j(e)}function j(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}function I(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(617);var M="edit",C="delete",A="copy",D="toggle_visibility",k="disable_global",R=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&T(e,t)}(c,e);var t,r,n,a=E(c);function c(){var e;_(this,c);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return I(j(e=a.call.apply(a,[this].concat(r))),"lastDragTime",0),I(j(e),"isGlobal",(function(){return!(0,l.default)(e.props.layoutId)&&e.props.layoutId===e.props.globalLayoutId})),I(j(e),"getType",(function(){return e.isGlobal()?"global":"custom"})),I(j(e),"getLayoutTypeLabel",(function(e,t){if("global"===e)switch(t){case"header":return(0,f.default)("themeBuilder","Global Header");case"body":return(0,f.default)("themeBuilder","Global Body");case"footer":return(0,f.default)("themeBuilder","Global Footer")}switch(t){case"header":return(0,f.default)("themeBuilder","Custom Header");case"body":return(0,f.default)("themeBuilder","Custom Body");case"footer":return(0,f.default)("themeBuilder","Custom Footer")}})),I(j(e),"getContextMenuOptions",(function(){var t=[{value:M,label:(0,f.default)("generic","Edit")},{value:C,label:(0,f.default)("generic","Delete")},{value:A,label:(0,f.default)("generic","Copy")},e.props.layoutEnabled?{value:D,label:(0,f.default)("themeBuilder","Hide On Front End")}:{value:D,label:(0,f.default)("themeBuilder","Show On Front End")},e.isGlobal()&&!e.props.isDefaultTemplate?{value:k,label:(0,f.default)("generic","Disable Global")}:null];return(0,u.default)(t,(function(e){return!!e}))})),I(j(e),"handleOnContextMenuChange",(function(t){switch(t){case M:e.props.onEdit();break;case C:e.props.onDelete();break;case A:e.props.onCopy();break;case D:e.props.onToggleVisibility();break;case k:e.props.onDisableGlobal()}e.props.closeContextMenu()})),I(j(e),"componentDidUpdate",(function(t){return e.lastDragTime=!e.props.isDragging&&t.isDragging?Date.now():0})),I(j(e),"onClick",(function(){return Date.now()-e.lastDragTime>50&&e.props.onEdit()})),e}return t=c,(r=[{key:"render",value:function(){var e,t=this.props,r=t.isDragging,n=t.layoutType,a=t.contextMenu,u=t.onEdit,l=t.onDelete,c=t.onMouseEnter,d=t.onMouseLeave,p=this.getType();return o.default.createElement("div",{className:(0,i.default)((e={"et-tb-layout":!0},I(e,"et-tb-layout--".concat(p),!0),I(e,"et-tb-layout--dragged",r),e)),onDoubleClick:u,onContextMenu:this.props.openContextMenu,onMouseEnter:c,onMouseLeave:d},o.default.createElement(m.default,{tip:(0,f.default)("generic","Edit"),className:"et-common-button--round et-common-button--compact",onClick:this.onClick},o.default.createElement(h.default,{icon:"pencil"})),o.default.createElement("h4",{className:"et-tb-layout__title"},this.getLayoutTypeLabel(p,n)),o.default.createElement(m.default,{tip:(0,f.default)("generic","Delete"),className:"et-common-button--round et-common-button--compact",onClick:l},o.default.createElement(h.default,{icon:"delete"})),o.default.createElement(m.default,{tip:(0,f.default)("generic","More Settings"),className:"et-common-button--round et-common-button--compact",onClick:this.props.openContextMenu},o.default.createElement(h.default,{icon:"app-setting",viewBox:"0 0 4 17",style:{height:12,width:3,minWidth:3,margin:"2px 0"}})),a.open&&o.default.createElement(b.default,null,o.default.createElement(y.default,{animation:s.default.animation,left:a.left,top:a.top,options:this.getContextMenuOptions(),onChange:this.handleOnContextMenuChange})))}}])&&w(t.prototype,r),n&&w(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.PureComponent);I(R,"propTypes",{isDefaultTemplate:a.default.bool,isDragging:a.default.bool,templateId:a.default.string.isRequired,layoutType:d.layoutTypes.isRequired,layoutId:a.default.string.isRequired,layoutEnabled:a.default.bool.isRequired,globalLayoutId:a.default.string,onEdit:a.default.func,onDelete:a.default.func,onToggleVisibility:a.default.func,onDisableGlobal:a.default.func}),I(R,"defaultProps",{isDefaultTemplate:!1,isDragging:!1,onEdit:c.default,onDelete:c.default,onToggleVisibility:c.default,onDisableGlobal:c.default});var x=(0,p.default)(R);t.default=x},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=v(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=b(r(1)),i=(b(r(267)),b(r(8))),u=b(r(5)),l=b(r(17)),c=b(r(13)),s=r(4),f=b(r(7)),d=r(74),p=b(r(18)),y=b(r(25)),m=b(r(620)),h=b(r(621));function b(e){return e&&e.__esModule?e:{default:e}}function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(v=function(e){return e?r:t})(e)}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _(e,t){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_(e,t)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=P(e);if(t){var o=P(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return T(this,r)}}function T(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return E(e)}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P(e){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},P(e)}function j(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}(b,e);var t,r,n,a=w(b);function b(){var e;g(this,b);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return j(E(e=a.call.apply(a,[this].concat(r))),"getButtonsArray",(function(){var t=e.props,r=t.isDefault,n=t.isLibraryTemplateEditorOpen,o=t.onOpenSettings,a=t.onOpenCloneSettings,u=t.onDeleteTemplate,l=t.onExportTemplate,c=t.onContextMenu,p=t.onSaveTemplateToLibrary,y=[];return r||n||y.push({tip:(0,f.default)("generic","Move"),additionalClass:"et-tb-template-drag-handle",onClick:i.default,icon:"move"}),r||y.push({tip:(0,f.default)("generic","Settings"),onClick:o,icon:"setting"}),n||y.push({tip:(0,f.default)("generic","Duplicate"),onClick:a,icon:"copy"}),y.push({tip:(0,f.default)("themeBuilder","Save Template To Library"),onClick:p,icon:"save"}),r||n||y.push({tip:(0,f.default)("generic","Delete"),onClick:u,icon:"delete"}),(0,d.isAllowedAction)(s.CAP_PORTABILITY)&&y.push({tip:(0,f.default)("portability","Export"),onClick:l,icon:"portability"}),y.push({tip:(0,f.default)("generic","More Settings"),onClick:c,icon:"app-setting",iconSettings:{iconViewBox:"0 0 4 17",iconStyle:{height:14,width:3,minWidth:3,margin:"3px 0 1px 0"}}}),y})),e}return t=b,(r=[{key:"render",value:function(){var e=this.props.active,t=this.getButtonsArray();return!!e&&o.default.createElement(m.default,{enabled:c.default.animation},(function(e){return o.default.createElement("div",{className:"et-tb-template__actions",style:{opacity:e.opacity}},o.default.createElement(h.default,{enabled:c.default.animation,elements:t},(function(e){return o.default.createElement(o.Fragment,null,(0,l.default)(t,(function(t,r){var n=(0,u.default)(t,"iconSettings.iconStyle",{}),a=(0,u.default)(t,"iconSettings.iconViewBox",void 0);return o.default.createElement(p.default,{key:r,tip:t.tip,className:"et-tb-template__action ".concat(t.additionalClass),ripple:!1,onClick:t.onClick,style:{opacity:e[r].opacity,transform:"scale(".concat(e[r].top,")")}},o.default.createElement(y.default,{icon:t.icon,viewBox:a,style:n}))})))})))}))}}])&&O(t.prototype,r),n&&O(t,n),Object.defineProperty(t,"prototype",{writable:!1}),b}(o.PureComponent);j(S,"propTypes",{isDefault:a.default.bool.isRequired,active:a.default.bool.isRequired,onOpenSettings:a.default.func.isRequired,onOpenCloneSettings:a.default.func.isRequired,onDeleteTemplate:a.default.func.isRequired,onExportTemplate:a.default.func.isRequired,onContextMenu:a.default.func.isRequired,onSaveTemplateToLibrary:a.default.func.isRequired}),j(S,"defaultProps",{});var I=S;t.default=I},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),i=(o=r(1))&&o.__esModule?o:{default:o},u=r(262);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m(e);if(t){var o=m(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return p(this,r)}}function p(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return y(e)}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(i,e);var t,r,n,o=d(i);function i(){var e;c(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return h(y(e=o.call.apply(o,[this].concat(r))),"getDefaultStyle",(function(){return{opacity:0}})),h(y(e),"getStyle",(function(){return{opacity:e.props.enabled?(0,u.spring)(1,{stiffness:300,damping:20}):1}})),e}return t=i,(r=[{key:"render",value:function(){var e=this;return a.default.createElement(u.Motion,{defaultStyle:this.getDefaultStyle(),style:this.getStyle()},(function(t){return e.props.children({opacity:t.opacity})}))}}])&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(a.PureComponent);h(b,"propTypes",{enabled:i.default.bool,opacity:i.default.number,children:i.default.func.isRequired}),h(b,"defaultProps",{enabled:!0,opacity:0});var v=b;t.default=v},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=c(r(1)),i=r(262),u=c(r(12)),l=c(r(17));function c(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=b(e);if(t){var o=b(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return m(this,r)}}function m(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(c,e);var t,r,n,a=y(c);function c(){var e;f(this,c);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return v(h(e=a.call.apply(a,[this].concat(r))),"getDefaultStyles",(function(){var t=e.props.elements;return(0,l.default)(t,(function(){return{opacity:0,top:0}}))})),v(h(e),"getStyles",(function(t){var r={stiffness:2e3,damping:60};return(0,l.default)(t,(function(n,o){return 0===o?{opacity:e.props.enabled?(0,i.spring)(1,r):1,top:e.props.enabled?(0,i.spring)(1,r):1}:{opacity:e.props.enabled?(0,i.spring)(t[o-1].opacity,r):1,top:e.props.enabled?(0,i.spring)(t[o-1].top,r):1}}))})),e}return t=c,(r=[{key:"render",value:function(){var e=this;return!(0,u.default)(this.props.elements)&&o.default.createElement(i.StaggeredMotion,{defaultStyles:this.getDefaultStyles(),styles:this.getStyles},(function(t){return e.props.children(t)}))}}])&&d(t.prototype,r),n&&d(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.PureComponent);v(g,"propTypes",{enabled:a.default.bool,elements:a.default.array,children:a.default.func.isRequired}),v(g,"defaultProps",{enabled:!0,elements:[]});var O=g;t.default=O},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i,u,l,c,s,f,d,p,y,m,h,b,v,g,O=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=x(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),_=R(r(46)),w=R(r(1)),T=r(3),E=r(9),P=R(r(14)),j=R(r(11)),S=R(r(787)),I=R(r(12)),M=R(r(8)),C=R(r(7)),A=r(361),D=r(34),k=R(r(109));function R(e){return e&&e.__esModule?e:{default:e}}function x(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(x=function(e){return e?r:t})(e)}function L(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function B(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function U(e,t){return U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},U(e,t)}function W(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=H(e);if(t){var o=H(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return F(this,r)}}function F(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return z(e)}function z(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function H(e){return H=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},H(e)}function Y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var V=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&U(e,t)}(a,e);var t,r,n,o=W(a);function a(){var e;B(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Y(z(e=o.call.apply(o,[this].concat(r))),"state",{editingTitle:!1,value:(0,D.getTemplateTitle)(e.props.isDefault,(0,D.isUnassigned)(e.props.useOn),e.props.title,e.props.automaticTitle)}),Y(z(e),"textareaRef",null),Y(z(e),"setTextareaRef",(function(t){e.textareaRef=t,e.props.forwardedRef(t)})),Y(z(e),"hasValue",(function(){return(0,C.default)("themeBuilder","Unassigned")!==e.state.value})),Y(z(e),"getTitleMeta",(function(){var t=e.props,r=t.isDefault,n=t.title,o=t.automaticMeta;return(0,D.getTemplateMeta)(r,n,o)})),Y(z(e),"renameTemplate",(function(t){e.props.renameTemplate({templateId:e.props.templateId,title:t})})),Y(z(e),"handleOnTitleFocus",(function(){e.props.isDefault||e.setState({editingTitle:!0})})),Y(z(e),"handleOnTitleBlur",(function(){var t=e.props,r=t.isDefault,n=t.title,o=t.automaticTitle;r||(n===o&&e.renameTemplate(""),e.setState({editingTitle:!1,value:(0,D.getTemplateTitle)(r,(0,D.isUnassigned)(e.props.useOn),n,o)}))})),Y(z(e),"handleOnTitleChange",(function(t){var r=t.target.value.replace(/[\r\n]/g,"");e.renameTemplate(r),e.setState({value:r})})),Y(z(e),"handleOnKeyUp",(function(t){var r=13===t.keyCode,n=27===t.keyCode;(r||n)&&e.textareaRef&&(0,j.default)(e.textareaRef).trigger("blur")})),Y(z(e),"clampText",(function(){var t=_.default.findDOMNode(z(e)),r=(0,j.default)(t).find(".et-tb-template__conditions li div:last-child");(0,A.clamp)(r)})),e}return t=a,n=[{key:"getDerivedStateFromProps",value:function(e,t){return t.editingTitle?null:{value:(0,D.getTemplateTitle)(e.isDefault,(0,D.isUnassigned)(e.useOn),e.title,e.automaticTitle)}}}],(r=[{key:"componentDidMount",value:function(){this.clampText()}},{key:"componentDidUpdate",value:function(){this.clampText()}},{key:"render",value:function(){var e=this.props,t=e.id,r=e.isDefault,n=e.useOn,o=e.excludeFrom,a=e.settings,i="template-".concat(t,"-name-tooltip"),u=(0,D.renderTemplateConditions)(n,o,a),l=this.hasValue()&&!(0,I.default)(u)?{"data-tip":"","data-for":i}:{},c=this.getTitleMeta();return O.default.createElement(O.Fragment,null,O.default.createElement("div",l,O.default.createElement(S.default,{ref:this.setTextareaRef,value:this.state.value,onFocus:this.handleOnTitleFocus,onBlur:this.handleOnTitleBlur,onChange:this.handleOnTitleChange,onKeyUp:this.handleOnKeyUp,className:(0,P.default)({"et-tb-template__title":!0,"et-tb-template__title--unassigned":!r&&(0,D.isUnassigned)(n)})}),c&&O.default.createElement("h3",{className:"et-tb-template__meta"},c)),this.hasValue()&&!(0,I.default)(u)&&O.default.createElement(k.default,{id:i,afterShow:this.clampText,className:"et-tb-tooltip--compact"},(0,D.renderTemplateConditions)(n,o,a)))}}])&&N(t.prototype,r),n&&N(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(O.PureComponent);Y(V,"propTypes",{templateId:w.default.string.isRequired,forwardedRef:w.default.func}),Y(V,"defaultProps",{forwardedRef:M.default}),Y(V,"connections",{settings:(0,T.state)(o||(o=L(["templates.settings"]))),id:(0,T.state)(a||(a=L(["templates.templates.",".id"])),(0,T.props)(i||(i=L(["templateId"])))),title:(0,T.state)(u||(u=L(["templates.templates.",".title"])),(0,T.props)(l||(l=L(["templateId"])))),automaticTitle:(0,T.state)(c||(c=L(["templates.templates.",".automaticTitle"])),(0,T.props)(s||(s=L(["templateId"])))),automaticMeta:(0,T.state)(f||(f=L(["templates.templates.",".automaticMeta"])),(0,T.props)(d||(d=L(["templateId"])))),isDefault:(0,T.state)(p||(p=L(["templates.templates.",".default"])),(0,T.props)(y||(y=L(["templateId"])))),useOn:(0,T.state)(m||(m=L(["templates.templates.",".useOn"])),(0,T.props)(h||(h=L(["templateId"])))),excludeFrom:(0,T.state)(b||(b=L(["templates.templates.",".excludeFrom"])),(0,T.props)(v||(v=L(["templateId"])))),renameTemplate:(0,T.sequences)(g||(g=L(["templates.renameTemplate"])))});var q=(0,E.connect)(V.connections,V);t.default=q},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i,u,l,c,s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=O(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),f=(g(r(1)),r(3)),d=r(9),p=g(r(17)),y=g(r(5)),m=g(r(132)),h=g(r(80)),b=g(r(626)),v=g(r(628));function g(e){return e&&e.__esModule?e:{default:e}}function O(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(O=function(e){return e?r:t})(e)}function _(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}function P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=I(e);if(t){var o=I(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return j(this,r)}}function j(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return S(e)}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function I(e){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},I(e)}function M(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(630);var C=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E(e,t)}(a,e);var t,r,n,o=P(a);function a(){var e;w(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return M(S(e=o.call.apply(o,[this].concat(r))),"handleOnAddNew",(function(t){e.props.addTemplate({overrideTemplateSettings:!0,settings:t,createHistoryPoint:!0})})),M(S(e),"handleTemplateDrag",(function(t){null!==e.context.source.id&&"template"===e.context.type&&e.props.updateTemplatesOrder({movedId:e.context.source.id,insertAt:t})})),e}return t=a,(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.templates,n=t.templateIds,o=(t.libraryThemeBuilder,t.isLibraryTemplateEditorOpen);return s.default.createElement("div",{className:"et-tb-template-list"},(0,p.default)(n,(function(t,n){return s.default.createElement(h.default,{key:t,component:"Template"},s.default.createElement(b.default,{templateId:t,onMouseEnter:e.handleTemplateDrag,hidden:(0,y.default)(r,[t,"placeholder"],!1)}))})),!o&&s.default.createElement(v.default,{onAddNew:this.handleOnAddNew}))}}])&&T(t.prototype,r),n&&T(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(s.PureComponent);M(C,"contextType",m.default),M(C,"propTypes",{}),M(C,"defaultProps",{}),M(C,"connections",{templateIds:(0,f.state)(o||(o=_(["templates.templateIds"]))),templates:(0,f.state)(a||(a=_(["templates.templates"]))),addTemplate:(0,f.sequences)(i||(i=_(["templates.addTemplate"]))),updateTemplatesOrder:(0,f.sequences)(u||(u=_(["templates.updateTemplatesOrder"]))),libraryThemeBuilder:(0,f.state)(l||(l=_(["libraryItem.themeBuilderId"]))),isLibraryTemplateEditorOpen:(0,f.state)(c||(c=_(["isLibraryTemplateEditorOpen"])))});var A=(0,d.connect)(C.connections,C);t.default=A},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=p(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=d(r(46)),i=d(r(1)),u=d(r(11)),l=d(r(8)),c=d(r(366)),s=d(r(345));r(627);var f=["templateId","onMouseEnter","hidden"];function d(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){P(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h.apply(this,arguments)}function b(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=E(e);if(t){var o=E(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return w(this,r)}}function w(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return T(e)}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function P(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var j=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O(e,t)}(l,e);var t,r,n,i=_(l);function l(){var e;g(this,l);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return P(T(e=i.call.apply(i,[this].concat(r))),"state",{width:0}),P(T(e),"updateWidth",(function(){var t=(0,u.default)(a.default.findDOMNode(T(e))).width();e.state.width!==t&&e.setState({width:t})})),P(T(e),"onMouseEnter",(function(){return e.props.onMouseEnter(e.props.templateId)})),P(T(e),"componentDidMount",(function(){e.updateWidth()})),P(T(e),"componentDidUpdate",(function(){e.updateWidth()})),P(T(e),"render",(function(){var t=e.props,r=t.templateId,n=(t.onMouseEnter,t.hidden),a=b(t,f);return n?null:o.default.createElement(c.default,{type:"template",draggableId:r,draggableMeta:{width:e.state.width},draggableHandle:".et-tb-template-drag-handle"},(function(t){var n=t.isDragging;return o.default.createElement("div",{onMouseEnter:e.onMouseEnter,className:"et-tb-draggable-template"},o.default.createElement(s.default,h({},a,{templateId:r,className:n?"et-tb-template--dragging":""})))}))})),e}return t=l,r&&v(t.prototype,r),n&&v(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(o.PureComponent);P(j,"propTypes",m(m({},s.default.propTypes),{},{onMouseEnter:i.default.func})),P(j,"defaultProps",m(m({},s.default.defaultProps),{},{onMouseEnter:l.default}));var S=j;t.default=S},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";(function(e){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=g(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),u=v(r(1)),l=v(r(8)),c=r(3),s=r(9),f=v(r(7)),d=v(r(18)),p=v(r(364)),y=v(r(13)),m=v(r(350)),h=v(r(25)),b=v(r(133));function v(e){return e&&e.__esModule?e:{default:e}}function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(g=function(e){return e?r:t})(e)}function O(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function T(e,t){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T(e,t)}function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=S(e);if(t){var o=S(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return P(this,r)}}function P(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return j(e)}function j(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}function I(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(629);var M=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&T(e,t)}(u,t);var r,n,o,a=E(u);function u(){var t;_(this,u);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return I(j(t=a.call.apply(a,[this].concat(n))),"state",{settingsOpen:!1,chooseTemplateType:!1}),I(j(t),"divRef",i.default.createRef()),I(j(t),"openSettings",(function(){t.setState({settingsOpen:!0})})),I(j(t),"closeSettings",(function(){t.setState({settingsOpen:!1})})),I(j(t),"openChooseTemplateType",(function(){t.setState({chooseTemplateType:!0})})),I(j(t),"closeChooseTemplateType",(function(){t.setState({chooseTemplateType:!1})})),I(j(t),"handleOnSave",(function(e){t.closeSettings(),t.props.onAddNew(e)})),I(j(t),"getMenuOptions",(function(){return[{options:[{value:"buildNewTemplate",label:(0,f.default)("themeBuilder","Build New Template")},{value:"addFromLibrary",label:(0,f.default)("themeBuilder","Add From Library")}]}]})),I(j(t),"handleOnChange",(function(e){switch(e){case"buildNewTemplate":t.openSettings();break;case"addFromLibrary":t.props.setThemeBuilderItemType({type:"template"}),t.props.importFromTBLibrary({templateId:"",layoutType:""})}t.closeChooseTemplateType()})),I(j(t),"computeAnchorPosition",(function(){var r=e(t.divRef.current),n=r.parent().width(),o=r.offset().left,a=r.offset().top;return{left:o-n/2+r.width()/2,top:a-r.height()/2,width:n}})),t}return r=u,(n=[{key:"render",value:function(){var e,t=this.state,r=t.settingsOpen,n=t.chooseTemplateType;return r?e=i.default.createElement(m.default,{anchor:this,actionLabel:(0,f.default)("themeBuilder","Create Template"),onSave:this.handleOnSave,onClose:this.closeSettings}):n&&(e=i.default.createElement("div",{className:"et-tb-template-placeholder-container__popup-menu"},i.default.createElement(p.default,{showTooltip:y.default.verticalMenu.showTooltip,animation:y.default.animation,options:this.getMenuOptions(),onChange:this.handleOnChange,computePosition:this.computeAnchorPosition}))),i.default.createElement("div",{className:"et-tb-template-placeholder-container"},e,i.default.createElement("div",{className:"et-tb-template-placeholder",onClick:this.openChooseTemplateType},i.default.createElement("div",{className:"et-tb-template-placeholder__action",ref:this.divRef},i.default.createElement(d.default,{type:"button",className:"et-common-button--round et-common-button--meta",onClick:this.openChooseTemplateType},i.default.createElement(h.default,{icon:"add"})),i.default.createElement("h4",{className:"et-tb-template-placeholder__title"},(0,f.default)("themeBuilder","Add New Template")))))}}])&&w(r.prototype,n),o&&w(r,o),Object.defineProperty(r,"prototype",{writable:!1}),u}(i.PureComponent);I(M,"propTypes",{onAddNew:u.default.func}),I(M,"defaultProps",{onAddNew:l.default}),I(M,"connections",{setThemeBuilderItemType:(0,c.sequences)(o||(o=O(["themeBuilderLibrary.setThemeBuilderItemType"]))),importFromTBLibrary:(0,c.sequences)(a||(a=O(["templates.importLayoutFromTBLibraryInTemplate"])))});var C=(0,b.default)((0,s.connect)(M.connections,M));t.default=C}).call(this,r(11))},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=m(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),u=(y(r(1)),r(3)),l=r(9),c=r(4),s=y(r(13)),f=y(r(57)),d=y(r(30)),p=y(r(632));function y(e){return e&&e.__esModule?e:{default:e}}function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(m=function(e){return e?r:t})(e)}function h(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=T(e);if(t){var o=T(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return _(this,r)}}function _(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return w(e)}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}function E(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var P=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(a,e);var t,r,n,o=O(a);function a(){var e;b(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return E(w(e=o.call.apply(o,[this].concat(r))),"close",(function(){return e.props.close()})),e}return t=a,(r=[{key:"render",value:function(){return this.props.diviLibraryOpen?i.default.createElement(d.default,null,i.default.createElement(p.default,{animation:s.default.animation,onClose:this.close,isEditingAllowed:!1}),i.default.createElement(f.default,{shortcuts:[{shortcut:c.HOTKEYS_CLOSE,action:this.close}]})):null}}])&&v(t.prototype,r),n&&v(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(i.PureComponent);E(P,"propTypes",{}),E(P,"defaultProps",{}),E(P,"connections",{diviLibraryOpen:(0,u.state)(o||(o=h(["isDiviLibraryOpen"]))),close:(0,u.sequences)(a||(a=h(["closeCurrentModal"])))});var j=(0,l.connect)(P.connections,P);t.default=j},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i,u,l,c,s,f,d,p,y,m,h,b,v,g,O=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=U(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),_=N(r(1)),w=r(9),T=r(3),E=N(r(14)),P=N(r(11)),j=(N(r(23)),N(r(8))),S=r(4),I=N(r(7)),M=N(r(13)),C=N(r(370)),A=N(r(18)),D=N(r(25)),k=N(r(134)),R=N(r(633)),x=N(r(183)),L=N(r(81)),B=N(r(44));function N(e){return e&&e.__esModule?e:{default:e}}function U(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(U=function(e){return e?r:t})(e)}function W(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function F(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function H(e,t){return H=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},H(e,t)}function Y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=G(e);if(t){var o=G(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return V(this,r)}}function V(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return q(e)}function q(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G(e){return G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},G(e)}function $(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(641);var K=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&H(e,t)}(a,e);var t,r,n,o=Y(a);function a(){var e;F(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return $(q(e=o.call.apply(o,[this].concat(r))),"getDiviLibraryContext",(function(){return{config:{api:M.default.api,diviLibraryCustomTabs:M.default.diviLibraryCustomTabs},etAccount:e.props.etAccount,i18n:{"API Key":(0,I.default)("library","API Key"),"Authentication Required":(0,I.default)("library","Authentication Required"),"Import estimated time remaining: %smin":(0,I.default)("portability","Import estimated time remaining: %smin"),"Load From Library":(0,I.default)("library","Load From Library"),"Premade Layouts":(0,I.default)("library","Premade Layouts"),Submit:(0,I.default)("library","Submit"),Username:(0,I.default)("library","Username"),"Your Existing Pages":(0,I.default)("library","Your Existing Pages"),"Your Saved Layouts":(0,I.default)("library","Your Saved Layouts"),$noAccount:(0,I.default)("library","$noAccount")},actions:{setAccountCredentials:e.setAccountCredentials}}})),$(q(e),"setAccountCredentials",(function(t,r,n){e.props.setETAccount({username:t,apiKey:r,status:n})})),$(q(e),"close",(function(){e.props.onClose()})),$(q(e),"back",(function(){e.props.goToPreviousPage()})),$(q(e),"handleOnPageChanged",(function(t){var r={showBackButton:!t};e.props.goToPage(r)})),$(q(e),"handleOnDownloadStart",(function(){e.props.startLibraryDownload()})),$(q(e),"handleOnDownloadProgress",(function(t){e.props.setLibraryDownloadProgress({progress:t})})),$(q(e),"handleOnDownloadEnd",(function(t,r,n){e.props.endLibraryDownload({isLocalLayout:t,layout:r})})),$(q(e),"handleOnPortabilityImportProgress",(function(){e.props.portabilitySetImportProgress({value:window.et_fb_import_progress,estimate:Math.max(1,window.et_fb_import_estimation)})})),$(q(e),"handleOnPortabilityImportError",(function(){e.props.portabilityFailImport({importError:window.et_fb_import_layout_message})})),$(q(e),"handleOnPortabilityImportEnd",(function(){e.props.portabilityCompleteImport({importResponse:window.et_fb_import_layout_response})})),e}return t=a,(r=[{key:"componentDidMount",value:function(){this.props.loadLayouts(),(0,P.default)(window).on("et_fb_layout_import_finished.themeBuilder",this.handleOnPortabilityImportEnd),window.addEventListener("et_fb_layout_import_error",this.handleOnPortabilityImportError),window.addEventListener("et_fb_layout_import_in_progress",this.handleOnPortabilityImportProgress)}},{key:"componentWillUnmount",value:function(){(0,P.default)(window).off("et_fb_layout_import_finished.themeBuilder",this.handleOnPortabilityImportEnd),window.removeEventListener("et_fb_layout_import_error",this.handleOnPortabilityImportError),window.removeEventListener("et_fb_layout_import_in_progress",this.handleOnPortabilityImportProgress)}},{key:"render",value:function(){var e=this,t=this.props,r=t.animation,n=t.layoutsLoaded,o=t.layouts,a=t.page,i=t.importStatus,u=t.isEditingAllowed,l=t.hideImportProgress;return O.default.createElement("div",{className:"et-tb-divi-library-root"},O.default.createElement("div",{className:"et-tb-divi-library-overlay"}),O.default.createElement("div",{className:"et-tb-divi-library-modal-positioner"},O.default.createElement(x.default,{className:"et-tb-divi-library-modal",top:S.ADMIN_BAR_HEIGHT},O.default.createElement(L.default,{animation:r,className:"et-tb-divi-library"},O.default.createElement(B.default,{title:function(){return O.default.createElement(O.Fragment,null,O.default.createElement(A.default,{className:(0,E.default)({"et-tb-divi-library__back-button":!0,"et-tb-divi-library__back-button--visible":a.showBackButton}),onClick:e.back},O.default.createElement(D.default,{size:"14",icon:"back",color:C.default.white})),O.default.createElement("span",{className:"et-tb-divi-library__title"},a.showBackButton?(0,I.default)("library","Layout Details"):(0,I.default)("library","Load From Library")))},onClose:this.close}),O.default.createElement(k.default.Provider,{value:this.getDiviLibraryContext()},O.default.createElement(R.default,{layoutsLoaded:n,layouts:o,showLoadOptions:!1,showImportProgress:i.progress.show,showImportResult:i.progress.completed,backToLayouts:a.backToLayouts,importError:i.error,importProgress:i.progress.value,importEstimate:i.progress.estimate,onPageChanged:this.handleOnPageChanged,onDownloadStart:this.handleOnDownloadStart,onDownloadProgress:this.handleOnDownloadProgress,onDownloadEnd:this.handleOnDownloadEnd,editSupport:u,hideImportProgress:l}))))))}}])&&z(t.prototype,r),n&&z(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(O.PureComponent);$(K,"propTypes",{animation:_.default.bool,onClose:_.default.func,isEditingAllowed:_.default.bool}),$(K,"defaultProps",{animation:!0,onClose:j.default,isEditingAllowed:!1}),$(K,"connections",{etAccount:(0,T.state)(o||(o=W(["etAccount"]))),layoutsLoaded:(0,T.state)(a||(a=W(["diviLibrary.loaded"]))),layouts:(0,T.state)(i||(i=W(["diviLibrary.layouts"]))),page:(0,T.state)(u||(u=W(["diviLibrary.page"]))),importStatus:(0,T.state)(l||(l=W(["diviLibrary.import"]))),setETAccount:(0,T.sequences)(c||(c=W(["etAccount.setETAccount"]))),loadLayouts:(0,T.sequences)(s||(s=W(["diviLibrary.loadLayouts"]))),goToPage:(0,T.sequences)(f||(f=W(["diviLibrary.goToLibraryPage"]))),goToPreviousPage:(0,T.sequences)(d||(d=W(["diviLibrary.goToPreviousLibraryPage"]))),startLibraryDownload:(0,T.sequences)(p||(p=W(["diviLibrary.startLibraryDownload"]))),setLibraryDownloadProgress:(0,T.sequences)(y||(y=W(["diviLibrary.setLibraryDownloadProgress"]))),endLibraryDownload:(0,T.sequences)(m||(m=W(["diviLibrary.endLibraryDownload"]))),portabilityCompleteImport:(0,T.sequences)(h||(h=W(["diviLibrary.portabilityCompleteImport"]))),portabilitySetImportProgress:(0,T.sequences)(b||(b=W(["diviLibrary.portabilitySetImportProgress"]))),portabilityFailImport:(0,T.sequences)(v||(v=W(["diviLibrary.portabilityFailImport"]))),hideImportProgress:(0,T.sequences)(g||(g=W(["diviLibrary.hideImportProgress"])))});var Z=(0,w.connect)(K.connections,K);t.default=Z},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=y(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=p(r(1)),i=(p(r(17)),p(r(8))),u=p(r(12)),l=p(r(19)),c=p(r(137)),s=p(r(270)),f=p(r(134)),d=p(r(634));function p(e){return e&&e.__esModule?e:{default:e}}function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(y=function(e){return e?r:t})(e)}function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},m.apply(this,arguments)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=w(e);if(t){var o=w(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return O(this,r)}}function O(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _(e)}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function T(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(640);var E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(i,e);var t,r,n,a=g(i);function i(){var e;h(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return T(_(e=a.call.apply(a,[this].concat(r))),"state",{tab:"modules_all",loaded:!1}),T(_(e),"setTab",(function(t){e.state.loaded&&e.setState({tab:t})})),T(_(e),"handleOnLoaded",(function(){e.setState({loaded:!0},e.props.onLoaded)})),T(_(e),"getTabs",(function(e){var t=[{key:"modules_all",title:(0,c.default)(e.i18n,"Premade Layouts")},{key:"modules_library",title:(0,c.default)(e.i18n,"Your Saved Layouts")},{key:"existing_pages",title:(0,c.default)(e.i18n,"Your Existing Pages")}],r=e.config.diviLibraryCustomTabs;return(0,u.default)(r)||(0,l.default)(r,(function(e,r){return t.push({key:r,title:e})})),t})),e}return t=i,(r=[{key:"render",value:function(){var e=this;return o.default.createElement(f.default.Consumer,null,(function(t){return o.default.createElement("div",{className:"et-common-divi-library"},o.default.createElement(s.default,{currentTab:e.state.tab,tabs:e.getTabs(t),onChange:e.setTab}),o.default.createElement(d.default,m({etAccount:t.etAccount,onAccountCredentialsChanged:t.actions.setAccountCredentials,tab:e.state.tab},e.props,{onLoaded:e.handleOnLoaded})))}))}}])&&b(t.prototype,r),n&&b(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.PureComponent);T(E,"propTypes",{animation:a.default.bool,layoutsLoaded:a.default.bool.isRequired,layouts:a.default.shape({local:a.default.object,custom:a.default.object}).isRequired,showLoadOptions:a.default.bool.isRequired,showImportProgress:a.default.bool.isRequired,showImportResult:a.default.bool.isRequired,importError:a.default.string.isRequired,importProgress:a.default.number.isRequired,importEstimate:a.default.number.isRequired,onLoaded:a.default.func,onPageChanged:a.default.func,onDownloadStart:a.default.func,onDownloadProgress:a.default.func,onDownloadEnd:a.default.func}),T(E,"defaultProps",{animation:!0,onLoaded:i.default,onPageChanged:i.default,onDownloadStart:i.default,onDownloadProgress:i.default,onDownloadEnd:i.default});var P=E;t.default=P},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=S(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=j(r(1)),i=j(r(11)),u=j(r(67)),l=j(r(5)),c=j(r(10)),s=j(r(12)),f=j(r(42)),d=j(r(33)),p=j(r(15)),y=j(r(39)),m=j(r(23)),h=j(r(8)),b=j(r(78)),v=r(355),g=j(r(137)),O=j(r(371)),_=j(r(71)),w=j(r(82)),T=j(r(72)),E=j(r(638)),P=j(r(134));function j(e){return e&&e.__esModule?e:{default:e}}function S(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(S=function(e){return e?r:t})(e)}function I(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function C(e,t){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},C(e,t)}function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=R(e);if(t){var o=R(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return D(this,r)}}function D(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return k(e)}function k(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R(e){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},R(e)}function x(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var L=(0,O.default)("div"),B=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C(e,t)}(h,e);var t,r,n,a=A(h);function h(){var e;I(this,h);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return x(k(e=a.call.apply(a,[this].concat(r))),"state",{loading:!0,downloading:!1,requireAuthentication:!1,retryUseLayout:!1}),x(k(e),"load",(function(){var t=e.props,r=t.showLoadOptions,n={context:"layout",initialTab:"modules_all",editableTabs:t.editSupport?["modules_library"]:[],cloudTab:"modules_library",predefinedTab:"modules_all",animation:"on",showLoadOptions:r};(0,i.default)(window).trigger("et_cloud_container_ready",[n])})),x(k(e),"unload",(function(){e.isInitialized()&&((0,i.default)(window).off("et_cloud_page_changed",e.onPageChanged),(0,i.default)(window).off("et_cloud_use_item",e.onUseLayout),(0,i.default)(window).off("et_cloud_download_progress",e.onDownloadProgress))})),x(k(e),"isInitialized",(function(){return!(0,d.default)(e.library)})),x(k(e),"initialize",(function(){e.props.etAccount;(0,i.default)(window).on("et_cloud_page_changed",e.onPageChanged),(0,i.default)(window).on("et_cloud_use_item",e.onUseLayout),(0,i.default)(window).on("et_cloud_download_progress",e.onDownloadProgress),(0,i.default)(window).on("et_cloud_account_status_error",e.onAccountStatusError),(0,m.default)(e.props.layoutFilters)||e.updateLayoutFilters(),e.setState({loading:!1},e.props.onLoaded)})),x(k(e),"updateLayoutFilters",(function(){var t=(0,c.default)(e.props.layoutFilters)?e.props.layoutFilters:[e.props.layoutFilters];window.ETCloudApp.emitSignal({signal:"categoriesFilterChanged",data:{value:t}})})),x(k(e),"updateTab",(function(){var t=e.props,r=t.layoutsLoaded,n=t.layouts,o=t.tab,a=t.type;if(r){var i="modules_library"===o?(0,u.default)(n.local):(0,u.default)((0,l.default)(n.custom,o,{}));(0,b.default)(i,"filters.type",a),window.ETCloudApp.toggleTab({items:i,tab:o})}})),x(k(e),"onPageChanged",(function(t,r){e.props.onPageChanged(r)})),x(k(e),"onDownloadProgress",(function(t,r){e.state.downloading||(e.props.onDownloadStart(),e.setState({downloading:!0})),e.props.onDownloadProgress(r)})),x(k(e),"onUseLayout",(function(t,r){e.setState({requireAuthentication:!1,downloading:!1});var n=(0,p.default)(r),o=n?r.item:r,a=n?r.replace_content:"off";e.props.onDownloadEnd(!(0,y.default)(o),o,(0,v.isOn)(a))})),x(k(e),"authenticate",(function(t,r){e.isInitialized()&&"loading"!==e.props.etAccount.status&&(e.props.onAccountCredentialsChanged(t,r,"active"),e.setState({requireAuthentication:!1}),window.ETCloudApp.retryUseLayout({et_username:t,et_api_key:r}))})),x(k(e),"onAccountStatusError",(function(t,r){var n=e.props,o=n.onAccountCredentialsChanged,a=(n.hideImportProgress,n.onPageChanged),i=!0;"not_found"===r&&(e.setState({requireAuthentication:!0}),i=!1),o(e.props.etAccount.username,e.props.etAccount.apiKey,r),a(i)})),e}return t=h,(r=[{key:"componentDidMount",value:function(){this.load(),this.initialize()}},{key:"componentWillUnmount",value:function(){this.unload()}},{key:"componentDidUpdate",value:function(e){if(this.isInitialized()){!(0,f.default)(this.props.layoutFilters,e.layoutFilters)&&this.updateLayoutFilters();var t=!(0,f.default)(this.props.tab,e.tab),r=!(0,f.default)(this.props.layouts,e.layouts),n=!(0,f.default)(this.props.layoutsLoaded,e.layoutsLoaded),o=!(0,f.default)(this.props.showLoadOptions,e.showLoadOptions);(t||"modules_all"!==this.props.tab&&(r||n)||o)&&this.updateTab();var a=!(0,f.default)(this.props.backToLayouts,e.backToLayouts)&&this.props.backToLayouts;a&&(window.ETCloudApp.goTo("back"),this.props.onPageChanged(!0)),this.state.requireAuthentication&&(t||a)&&this.setState({requireAuthentication:!1})}}},{key:"render",value:function(){var e=this,t=this.props,r=t.showImportProgress,n=t.showImportResult,a=t.importError,i=t.importProgress,u=t.importEstimate,l=this.state,c=l.loading,f=l.requireAuthentication,d=Math.max(0,Math.min(100,i));return o.default.createElement("div",{className:"et-common-divi-library__container"},o.default.createElement(L,{_ref:function(t){return e.container=t},className:"et-common-divi-library__frame"}),o.default.createElement("div",{id:"et-cloud-app",className:"et-fb-library-container"}),f&&o.default.createElement(E.default,{onAuthenticate:this.authenticate}),c&&o.default.createElement(_.default,null),r&&o.default.createElement(w.default,{className:"et-common-local-overlay--centered"},o.default.createElement("div",{className:"et-common-divi-library__progress-bar"},n&&(0,s.default)(a)&&o.default.createElement("span",{className:"et-common-divi-library__success et-core-loader et-core-loader-success"}),n&&!(0,s.default)(a)&&o.default.createElement("span",{className:"et-common-divi-library__success et-core-loader et-core-loader-fail"}),!n&&o.default.createElement(o.Fragment,null,o.default.createElement(P.default.Consumer,null,(function(e){return o.default.createElement(T.default,{progress:d,estimate:u>0?(0,g.default)(e.i18n,"Import estimated time remaining: %smin",u):""})}))))))}}])&&M(t.prototype,r),n&&M(t,n),Object.defineProperty(t,"prototype",{writable:!1}),h}(o.PureComponent);x(B,"propTypes",{etAccount:a.default.shape({username:a.default.string,api_key:a.default.string,status:a.default.string}).isRequired,tab:a.default.string.isRequired,backToLayouts:a.default.bool,type:a.default.string,layoutsLoaded:a.default.bool.isRequired,layouts:a.default.shape({local:a.default.object,custom:a.default.object}).isRequired,showLoadOptions:a.default.bool.isRequired,showImportProgress:a.default.bool.isRequired,showImportResult:a.default.bool.isRequired,editSupport:a.default.bool,importError:a.default.string.isRequired,importProgress:a.default.number.isRequired,importEstimate:a.default.number.isRequired,onLoaded:a.default.func,onPageChanged:a.default.func,onDownloadStart:a.default.func,onDownloadProgress:a.default.func,onDownloadEnd:a.default.func,onAccountCredentialsChanged:a.default.func}),x(B,"defaultProps",{type:"layout",editSupport:!1,onLoaded:h.default,onPageChanged:h.default,onDownloadStart:h.default,onDownloadProgress:h.default,onDownloadEnd:h.default,onAccountCredentialsChanged:h.default});var N=B;t.default=N},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=p(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=d(r(1)),i=d(r(14)),u=d(r(8)),l=d(r(137)),c=d(r(18)),s=d(r(25)),f=d(r(134));function d(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=O(e);if(t){var o=O(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return v(this,r)}}function v(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return g(e)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}function _(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(639);var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(u,e);var t,r,n,a=b(u);function u(){var e;y(this,u);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return _(g(e=a.call.apply(a,[this].concat(r))),"state",{attempted:!1,username:"",apiKey:""}),_(g(e),"setUsername",(function(t){return e.setState({username:t.target.value})})),_(g(e),"setApiKey",(function(t){return e.setState({apiKey:t.target.value})})),_(g(e),"hasError",(function(t){return e.state.attempted&&"not_found"===t.etAccount.status})),_(g(e),"authenticate",(function(t){var r=e.state,n=r.attempted,o=r.username,a=r.apiKey;t.preventDefault(),n||e.setState({attempted:!0}),e.props.onAuthenticate(o,a)})),e}return t=u,(r=[{key:"render",value:function(){var e=this,t=this.state,r=t.username,n=t.apiKey;return o.default.createElement(f.default.Consumer,null,(function(t){return o.default.createElement("div",{className:(0,i.default)({"et-common-divi-library-authentication":!0,"et-common-divi-library-authentication--error":e.hasError(t)})},o.default.createElement("div",{className:"et-common-divi-library-authentication__container"},o.default.createElement("h2",null,(0,l.default)(t.i18n,"Authentication Required")),o.default.createElement("form",{action:"",method:"post",className:"et-common-divi-library-authentication__content",onSubmit:e.authenticate},o.default.createElement("p",null,(0,l.default)(t.i18n,"$noAccount")),o.default.createElement("div",{className:"et-common-divi-library-authentication__row"},o.default.createElement("label",{className:"et-common-divi-library-authentication__label"},(0,l.default)(t.i18n,"Username")),o.default.createElement("input",{type:"text",value:r,onChange:e.setUsername,className:"et-common-divi-library-authentication__input"})),o.default.createElement("div",{className:"et-common-divi-library-authentication__row"},o.default.createElement("label",{className:"et-common-divi-library-authentication__label"},(0,l.default)(t.i18n,"API Key")),o.default.createElement("input",{type:"text",value:n,onChange:e.setApiKey,className:"et-common-divi-library-authentication__input"})),o.default.createElement("div",{className:"et-common-divi-library-authentication__actions"},o.default.createElement(c.default,{type:"submit",className:"et-common-divi-library-authentication__submit"},"loading"!==t.etAccount.status?(0,l.default)(t.i18n,"Submit"):o.default.createElement(s.default,{icon:"loading"}))))))}))}}])&&m(t.prototype,r),n&&m(t,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(o.PureComponent);_(w,"propTypes",{onAuthenticate:a.default.func}),_(w,"defaultProps",{onAuthenticate:u.default});var T=w;t.default=T},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i,u,l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=b(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),c=r(3),s=r(9),f=r(4),d=h(r(13)),p=h(r(57)),y=h(r(30)),m=h(r(643));function h(e){return e&&e.__esModule?e:{default:e}}function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(b=function(e){return e?r:t})(e)}function v(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _(e,t){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_(e,t)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=P(e);if(t){var o=P(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return T(this,r)}}function T(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return E(e)}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P(e){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},P(e)}function j(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}(a,e);var t,r,n,o=w(a);function a(){var e;g(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return j(E(e=o.call.apply(o,[this].concat(r))),"close",(function(){return e.props.close()})),e}return t=a,(r=[{key:"render",value:function(){var e=this.props,t=e.themeBuilderItemType,r=e.themeBuilderLibraryOpen,n=e.unsupportedMenuItems;return r?l.default.createElement(y.default,null,l.default.createElement(m.default,{context:"tb_".concat(t),animation:d.default.animation,onClose:this.close,isEditingAllowed:!0,unsupportedMenuItems:n}),l.default.createElement(p.default,{shortcuts:[{shortcut:f.HOTKEYS_CLOSE,action:this.close}]})):null}}])&&O(t.prototype,r),n&&O(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(l.PureComponent);j(S,"connections",{themeBuilderItemType:(0,c.state)(o||(o=v(["themeBuilderLibrary.themeBuilderItemType"]))),themeBuilderLibraryOpen:(0,c.state)(a||(a=v(["isThemeBuilderLibraryOpen"]))),unsupportedMenuItems:(0,c.state)(i||(i=v(["themeBuilderLibrary.unsupportedMenuItems"]))),close:(0,c.sequences)(u||(u=v(["closeCurrentModal"])))});var I=(0,s.connect)(S.connections,S);t.default=I},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i,u,l,c,s,f,d,p,y,m,h,b,v,g,O,_,w,T,E,P=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=z(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),j=F(r(1)),S=r(9),I=r(3),M=F(r(14)),C=F(r(8)),A=r(4),D=F(r(7)),k=F(r(370)),R=F(r(18)),x=F(r(25)),L=F(r(183)),B=F(r(81)),N=F(r(44)),U=F(r(134)),W=F(r(644));function F(e){return e&&e.__esModule?e:{default:e}}function z(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(z=function(e){return e?r:t})(e)}function H(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function q(e,t){return q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},q(e,t)}function G(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Z(e);if(t){var o=Z(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return $(this,r)}}function $(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return K(e)}function K(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z(e){return Z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Z(e)}function X(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(645);var J=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&q(e,t)}(a,e);var t,r,n,o=G(a);function a(){var e;Y(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return X(K(e=o.call.apply(o,[this].concat(r))),"getThemeBuilderLibraryContext",(function(){return{i18n:{"Load From Library":(0,D.default)("library","Load From Library")}}})),X(K(e),"close",(function(){e.props.page.showBackButton?(e.props.toggleShowBackButton({showBackButton:!1}),window.ETCloudApp.goTo("back"),e.props.navigatePage()):e.props.onClose()})),X(K(e),"back",(function(){e.props.toggleShowBackButton({showBackButton:!1}),window.ETCloudApp.goTo("back"),e.props.navigatePage()})),e}return t=a,(r=[{key:"componentDidMount",value:function(){this.props.loadThemeBuilderItems()}},{key:"render",value:function(){var e=this,t=this.props,r=t.animation,n=t.page,o=t.openTBPortabilityImportModal,a=n.title;return P.default.createElement("div",{className:"et-tb-divi-library-root"},P.default.createElement("div",{className:"et-tb-divi-library-overlay"}),P.default.createElement("div",{className:"et-tb-divi-library-modal-positioner"},P.default.createElement(L.default,{className:"et-tb-divi-library-modal",top:A.ADMIN_BAR_HEIGHT},P.default.createElement(B.default,{animation:r,className:"et-tb-divi-library"},P.default.createElement(N.default,{title:function(){return P.default.createElement(P.Fragment,null,P.default.createElement(R.default,{className:(0,M.default)({"et-tb-divi-library__back-button":!0,"et-tb-divi-library__back-button--visible":n.showBackButton}),onClick:e.back},P.default.createElement(x.default,{size:"14",icon:"back",color:k.default.white})),P.default.createElement("span",{className:"et-tb-divi-library__title"},a))},additionalButton:function(){return P.default.createElement(R.default,{className:(0,M.default)({"et-tb-divi-library__portability-button":!0,"et-tb-divi-library__portability-button--invisible":n.showBackButton}),onClick:o},P.default.createElement(x.default,{size:"14",icon:"portability",color:k.default.white}))},onClose:this.close}),P.default.createElement(U.default.Provider,{value:this.getThemeBuilderLibraryContext()},P.default.createElement(U.default.Consumer,null,(function(t){return P.default.createElement("div",{className:"et-tb-library"},P.default.createElement(W.default,e.props))})))))))}}])&&V(t.prototype,r),n&&V(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(P.PureComponent);X(J,"propTypes",{animation:j.default.bool,onClose:j.default.func,onPageChanged:j.default.func}),X(J,"defaultProps",{animation:!0,onClose:C.default,onPageChanged:C.default}),X(J,"connections",{page:(0,I.state)(o||(o=H(["themeBuilderLibrary.page"]))),themeBuilderItems:(0,I.state)(a||(a=H(["themeBuilderLibrary.themeBuilderItems"]))),themeBuilderItemType:(0,I.state)(i||(i=H(["themeBuilderLibrary.themeBuilderItemType"]))),themeBuilderItemsLoaded:(0,I.state)(u||(u=H(["themeBuilderLibrary.loaded"]))),loadedAndCached:(0,I.state)(l||(l=H(["themeBuilderLibrary.loadedAndCached"]))),cachedToken:(0,I.state)(c||(c=H(["cloudToken"]))),editTBLibraryItem:(0,I.sequences)(s||(s=H(["libraryItem.editItem"]))),exportTBLibraryItem:(0,I.sequences)(f||(f=H(["portability.exportTBLibraryItem"]))),getCloudToken:(0,I.sequences)(d||(d=H(["themeBuilderLibrary.getCloudToken"]))),getTBLibraryItem:(0,I.sequences)(p||(p=H(["themeBuilderLibrary.getTBLibraryItem"]))),goToPreviousPage:(0,I.sequences)(y||(y=H(["themeBuilderLibrary.goToPreviousLibraryPage"]))),importThemeBuilder:(0,I.sequences)(m||(m=H(["portability.importThemeBuilder"]))),loadThemeBuilderItems:(0,I.sequences)(h||(h=H(["themeBuilderLibrary.loadThemeBuilderItems"]))),navigatePage:(0,I.sequences)(b||(b=H(["themeBuilderLibrary.navigatePage"]))),openTBPortabilityImportModal:(0,I.sequences)(v||(v=H(["themeBuilderLibrary.openTBPortabilityImportModal"]))),previewTBLibraryItem:(0,I.sequences)(g||(g=H(["libraryItem.previewItem"]))),toggleShowBackButton:(0,I.sequences)(O||(O=H(["themeBuilderLibrary.toggleShowBackButton"]))),toggleTBLibraryItemLocation:(0,I.sequences)(_||(_=H(["themeBuilderLibrary.toggleTBLibraryItemLocation"]))),updateCloudToken:(0,I.sequences)(w||(w=H(["updateCloudToken"]))),updateTBLibraryItem:(0,I.sequences)(T||(T=H(["themeBuilderLibrary.updateTBLibraryItem"]))),updateTBLibraryTaxonomies:(0,I.sequences)(E||(E=H(["themeBuilderLibrary.updateTBLibraryTaxonomies"])))});var Q=(0,S.connect)(J.connections,J);t.default=Q},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=O(r(17)),a=O(r(16)),i=O(r(78)),u=O(r(42)),l=O(r(5)),c=O(r(110)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=g(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),f=O(r(1)),d=O(r(11)),p=O(r(7)),y=r(4),m=r(74),h=O(r(72)),b=O(r(71)),v=O(r(371));O(r(148));function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(g=function(e){return e?r:t})(e)}function O(e){return e&&e.__esModule?e:{default:e}}function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach((function(t){C(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function P(e,t){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},P(e,t)}function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=M(e);if(t){var o=M(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return S(this,r)}}function S(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return I(e)}function I(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M(e){return M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},M(e)}function C(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var A=(0,v.default)("div"),D=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&P(e,t)}(v,e);var t,r,n,f=j(v);function v(){var e;T(this,v);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return C(I(e=f.call.apply(f,[this].concat(r))),"state",{importProgress:0,importEstimation:1,hideProgressBar:!0}),C(I(e),"load",(function(){var t=e.props,r=t.context,n=t.isEditingAllowed,o={unsupportedMenuItems:t.unsupportedMenuItems,context:r,itemsLabel:e.getItemsLabel(),editorLabel:(0,p.default)("themeBuilder","Edit With Theme Builder"),initialTab:"modules_library",editableTabs:n?["modules_library"]:[],cloudTab:"modules_library",predefinedTab:"",animation:"on",detailsViewLayout:r&&-1!==r.indexOf(y.LIBRARY_ITEM_TYPE_SET)?"grid":"",detailsViewGridItems:{title:(0,p.default)("themeBuilder","Template"),type:"tb_template"},excerptFieldValue:"excerpt",showHelpButton:!1,skipTooltip:!0};(0,d.default)(window).trigger("et_cloud_container_ready",[o])})),C(I(e),"saveCloudToken",(function(){var t=e.props,r=t.getCloudToken,n=t.updateCloudToken;r().then((function(e){var t=(0,l.default)(e,"accessToken","");n({cloudToken:t})}))})),C(I(e),"removeCloudToken",(function(){e.props.updateCloudToken({cloudToken:""})})),C(I(e),"loadCloudToken",(function(){var t=e.props.cachedToken;t&&(window.ETCloudApp.setCloudToken(t),window.ETCloudApp.setSharedFolders())})),C(I(e),"onDownloadProgress",(function(t,r){e.setState({hideProgressBar:!1}),(r=Math.floor(r/2))<1&&(r=1),e.setState({importProgress:r})})),C(I(e),"onFilterUpdate",(function(t,r){e.props.updateTBLibraryTaxonomies({payload:r}).then((function(e){window.ETCloudApp.emitSignal({signal:"receiveNewFilter",data:e.updatedTaxonomies})}))})),C(I(e),"exportLocalItem",(function(t,r,n){e.props.getTBLibraryItem({id:t,itemType:r}).then((function(e){e=(0,l.default)(e,"exported","");var r=(0,c.default)(n,{content:e,updatedItem:t});window.ETCloudApp.emitSignal({signal:"receiveItemUpdate",data:{data:r}})}))})),C(I(e),"onItemUpdate",(function(t,r){var n=e.props,o=n.updateTBLibraryItem,a=n.themeBuilderItemType,u=(0,l.default)(r,"clickedItem.id",""),c={item_id:u,update_details:(0,l.default)(r,"itemPayload",[])},s=(0,l.default)(r,"clickedItem.type",a),f=(0,l.default)(r,"clickedItem.is_favorite")?"on":"off",d=(0,l.default)(r,"itemPayload.updateType",""),p="on"===(0,l.default)(r,"itemPayload.cloud"),y=(0,l.default)(c,"update_details",{});if("toggle_cloud"===d||"duplicate"===d&&p)e.exportLocalItem(u,s,y);else{(0,i.default)(c,"update_details.itemType",s),(0,i.default)(c,"update_details.favoriteStatus",f);var m=(0,l.default)(c,"update_details.content.presets","");if(m){var h=JSON.stringify(m);(0,i.default)(c,"update_details.content.presets",h)}o({payload:c}).then((function(e){window.ETCloudApp.emitSignal({signal:"receiveItemUpdate",data:e.updatedItem})}))}})),C(I(e),"onPageChanged",(function(t,r,n){e.props.toggleShowBackButton({showBackButton:!r}),e.props.navigatePage({customTitle:n})})),C(I(e),"toggleCloudStatus",(function(t,r){var n=r.id;n&&e.props.toggleTBLibraryItemLocation({id:n})})),C(I(e),"onCloudItemAction",(function(t,r){switch(r.action){case"export":e.onExportLayout(r);break;case"edit":e.runItemAction(e.props.editTBLibraryItem)(r);break;case"preview":e.runItemAction(e.props.previewTBLibraryItem)(r)}})),C(I(e),"openExportItemModal",(function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=e.props,i=o.themeBuilderItemType,u=o.exportTBLibraryItem;u({itemId:(0,a.default)(t),items:r,content:n,itemType:i})})),C(I(e),"onExportLayout",(function(t){var r=t.item,n=t.content,a=(0,l.default)(r,"id",0),i=!0,u={enabled:i,layouts:{header:{enabled:i},body:{enabled:i},footer:{enabled:i}}},c={};if(a&&(0,m.isAllowedAction)(y.CAP_PORTABILITY))if(n){var s=function(e){return new Promise((function(t){return setTimeout(t,e)}))};Promise.all([s(1e3).then((function(){return window.ETCloudApp.emitSignal({signal:"onDownloadProgress",data:{progress:150}})})),s(1500).then((function(){return window.ETCloudApp.emitSignal({signal:"onDownloadProgress",data:{progress:200}})})),s(1e3).then((function(){return window.ETCloudApp.emitSignal({signal:"finishDownload",data:{}})}))]).then((function(){c=(0,o.default)(n.templates,(function(e,t){var r=t+1;return n.templates[t].id=r,e.default&&(e.automaticTitle=e.title),w(w({id:r},e),u)})),e.openExportItemModal(1,c,n)}))}else c=C({},a,w(w({title:r.name},r),u)),e.openExportItemModal(a,c)})),C(I(e),"runItemAction",(function(t){return function(r){var n=e.props,o=n.context,a=n.themeBuilderItemType;t(w(w({},r),{},{context:o,themeBuilderItemType:a}))}})),e}return t=v,(r=[{key:"componentDidMount",value:function(){this.load(),(0,d.default)(window).on("et_cloud_filter_update",this.onFilterUpdate),(0,d.default)(window).on("et_cloud_update_item",this.onItemUpdate),(0,d.default)(window).on("et_cloud_page_changed",this.onPageChanged),(0,d.default)(window).on("et_cloud_item_action",this.onCloudItemAction),(0,d.default)(window).on("et_cloud_item_toggle_location",this.toggleCloudStatus),(0,d.default)(window).on("et_cloud_download_progress",this.onDownloadProgress),(0,d.default)(window).on("et_cloud_token_ready",this.saveCloudToken),(0,d.default)(window).on("et_cloud_token_removed",this.removeCloudToken),(0,d.default)(window).on("et_cloud_app_ready",this.loadCloudToken)}},{key:"componentWillUnmount",value:function(){(0,d.default)(window).off("et_cloud_filter_update",this.onFilterUpdate),(0,d.default)(window).off("et_cloud_update_item",this.onItemUpdate),(0,d.default)(window).off("et_cloud_page_changed",this.onPageChanged),(0,d.default)(window).off("et_cloud_item_action",this.onCloudItemAction),(0,d.default)(window).off("et_cloud_item_toggle_location",this.toggleCloudStatus),(0,d.default)(window).off("et_cloud_download_progress",this.onDownloadProgress),(0,d.default)(window).off("et_cloud_token_ready",this.saveCloudToken),(0,d.default)(window).off("et_cloud_token_removed",this.removeCloudToken),(0,d.default)(window).off("et_cloud_app_ready",this.loadCloudToken)}},{key:"componentDidUpdate",value:function(e){var t=this.props.themeBuilderItems;(0,u.default)(e.themeBuilderItems,t)||(window.TBLibraryHasNewItem=!0,window.ETCloudApp.toggleTab({items:t,tab:"modules_library",forceUpdateLocal:window.TBLibraryHasNewItem}),window.TBLibraryHasNewItem=!1)}},{key:"getItemsLabel",value:function(){return"template"===this.props.themeBuilderItemType?(0,p.default)("themeBuilder","Template"):(0,p.default)("themeBuilder","Set")}},{key:"renderProgressBar",value:function(){var e=this.state,t=e.importProgress,r=e.hideProgressBar,n=e.importEstimation;return!r&&t>0&&t<100&&s.default.createElement(h.default,{progress:t,time_remaining:n})}},{key:"render",value:function(){var e=this,t=this.props,r=t.themeBuilderItemType,n=t.loadedAndCached,o=!(0,l.default)(n,r,!1);return s.default.createElement("div",{className:"et-tb-library__container"},s.default.createElement(A,{_ref:function(t){return e.container=t},className:"et-tb-library__frame"}),o&&s.default.createElement(b.default,null),s.default.createElement("div",{id:"et-cloud-app",className:"et-tb-library-container"}),this.renderProgressBar())}}])&&E(t.prototype,r),n&&E(t,n),Object.defineProperty(t,"prototype",{writable:!1}),v}(s.PureComponent);C(D,"propTypes",{context:f.default.string,animation:f.default.bool,onClose:f.default.func,isEditingAllowed:f.default.bool,unsupportedMenuItems:f.default.array});var k=D;t.default=k},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i,u,l,c,s,f,d,p,y,m=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=C(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),h=(M(r(1)),r(9)),b=r(3),v=M(r(11)),g=M(r(33)),O=M(r(12)),_=r(4),w=M(r(7)),T=M(r(30)),E=M(r(183)),P=M(r(81)),j=M(r(44)),S=M(r(647)),I=M(r(651));function M(e){return e&&e.__esModule?e:{default:e}}function C(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(C=function(e){return e?r:t})(e)}function A(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function D(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function R(e,t){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},R(e,t)}function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=N(e);if(t){var o=N(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return L(this,r)}}function L(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return B(e)}function B(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function N(e){return N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},N(e)}function U(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(652);var W=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&R(e,t)}(a,e);var t,r,n,o=x(a);function a(){var e;D(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return U(B(e=o.call.apply(o,[this].concat(r))),"state",{visualBuilder:null,tooltipOffsetHack:0}),U(B(e),"close",(function(){var t,r=e.props,n=r.close,o=r.reload,a=r.lastEdited,i=r.layoutDetails,u=r.disableReload,l=r.editLayout;n(),null===(t=(0,v.default)("#et-ai-app"))||void 0===t||t.remove(),o&&(u(),l({layoutId:a,templateId:i.templateId,layoutType:i.layoutType,isGlobalLayout:i.isGlobalLayout}))})),U(B(e),"reload",(function(){e.props.enableReload(),e.state.visualBuilder.call("unloadBuilder")})),U(B(e),"handleMouseStateChange",(function(t){if("mouseenter"===t){var r=(0,v.default)(e.node).find(".et-tb-branded-modal__header").eq(0),n=(0,v.default)(e.node).find(".et-tb-responsive-view-controls").eq(0),o=n.get(0)?window.getComputedStyle(n.get(0),":before").height:0,a=r.outerHeight()+parseInt(o)-10;e.setState({tooltipOffsetHack:a-(0,v.default)(e.node).find("#et-fb-app").scrollTop()})}else e.setState({tooltipOffsetHack:0})})),U(B(e),"handleOnVisualBuilderLoad",(function(t){t.on("exit",(function(){return t.call("unloadBuilder")})),t.on("close",e.close),t.on("reload",e.reload),t.on("mouseenter",(function(){return e.handleMouseStateChange("mouseenter")})),t.on("mouseleave",(function(){return e.handleMouseStateChange("mouseleave")})),t.on("save",e.handleOnVisualBuilderSave),e.setState({visualBuilder:t})})),U(B(e),"handleOnVisualBuilderError",(function(){e.close(),e.props.openPrompt({type:_.PROMPT_TYPE_UNKNOWN_ERROR})})),U(B(e),"handleOnVisualBuilderClose",(function(){var t=e.state.visualBuilder;(0,g.default)(t)?e.close():t.call("exit")})),U(B(e),"handleOnVisualBuilderSave",(function(){e.props.saveVisualBuilder()})),U(B(e),"getModalTitle",(function(){var t=e.props.layoutDetails;if((0,O.default)(t))return(0,w.default)("themeBuilder","Edit Template Layout");var r=""===r?(0,w.default)("themeBuilder","Unassigned"):t.templateTitleText;if(t.isGlobalLayout)switch(t.layoutType){case"header":r=(0,w.default)("themeBuilder","Global Header");break;case"body":r=(0,w.default)("themeBuilder","Global Body");break;case"footer":r=(0,w.default)("themeBuilder","Global Footer")}else switch(t.layoutType){case"header":r+=" ".concat((0,w.default)("generic","Header"));break;case"body":r+=" ".concat((0,w.default)("generic","Body"));break;case"footer":r+=" ".concat((0,w.default)("generic","Footer"))}return(0,w.default)("themeBuilder","Edit %1$s Layout",r)})),e}return t=a,(r=[{key:"render",value:function(){var e=this,t=this.props,r=t.isOpen,n=t.target;return r?m.default.createElement(T.default,null,m.default.createElement("div",{ref:function(t){return e.node=t},className:"et-tb-visual-builder"},m.default.createElement(I.default,{onBack:this.handleOnVisualBuilderClose}),m.default.createElement(E.default,{left:0,top:0,right:0,bottom:0,overlay:!0},m.default.createElement(P.default,{animation:!1,className:"et-tb-branded-modal--fullheight et-tb-branded-modal--visual-builder"},m.default.createElement(j.default,{title:this.getModalTitle(),onClose:this.handleOnVisualBuilderClose}),m.default.createElement(S.default,{target:n,onLoad:this.handleOnVisualBuilderLoad,onError:this.handleOnVisualBuilderError}))),m.default.createElement("style",{dangerouslySetInnerHTML:{__html:"\n .__react_component_tooltip {\n margin-top: ".concat(this.state.tooltipOffsetHack,"px !important;\n }\n ")}}))):null}}])&&k(t.prototype,r),n&&k(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(m.PureComponent);U(W,"propTypes",{}),U(W,"defaultProps",{}),U(W,"connections",{isOpen:(0,b.state)(o||(o=A(["isVisualBuilderOpen"]))),target:(0,b.state)(a||(a=A(["visualBuilder.target"]))),layoutDetails:(0,b.state)(i||(i=A(["layouts.currentlyEditingLayout"]))),close:(0,b.sequences)(u||(u=A(["closeCurrentModal"]))),openPrompt:(0,b.sequences)(l||(l=A(["prompts.openPrompt"]))),reload:(0,b.state)(c||(c=A(["reload"]))),lastEdited:(0,b.state)(s||(s=A(["lastEdited"]))),enableReload:(0,b.sequences)(f||(f=A(["enableReload"]))),disableReload:(0,b.sequences)(d||(d=A(["disableReload"]))),editLayout:(0,b.sequences)(p||(p=A(["layouts.editLayout"]))),saveVisualBuilder:(0,b.sequences)(y||(y=A(["visualBuilder.saveVisualBuilder"])))});var F=(0,h.connect)(W.connections,W);t.default=F},function(e,t,r){"use strict";(function(e,n){function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=d(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}n.default=e,r&&r.set(e,n);return n}(r(0)),i=f(r(1)),u=f(r(648)),l=f(r(8)),c=(r(173),f(r(71))),s=f(r(649));function f(e){return e&&e.__esModule?e:{default:e}}function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(d=function(e){return e?r:t})(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var o=g(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return b(this,r)}}function b(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return v(e)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(650);var _=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(f,t);var r,o,i,l=h(f);function f(){var t;p(this,f);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return O(v(t=l.call.apply(l,[this].concat(o))),"state",{loading:!0}),O(v(t),"visualBuilder",null),O(v(t),"$visualBuilder",null),O(v(t),"visualBuilderTimeout",null),O(v(t),"hideLoader",(function(){t.setState({loading:!1})})),O(v(t),"isInitialized",(function(){return null!==t.visualBuilder})),O(v(t),"load",(function(){u.default.debug=!1;var r=new u.default({container:t.container,url:t.props.target.url});return e(t.container).find("iframe").first().attr("id","et-fb-app-frame").addClass("et-fb-app-frame--theme-builder"),r})),O(v(t),"unload",(function(){t.isInitialized()&&(t.visualBuilder.destroy(),t.visualBuilder=null)})),O(v(t),"initialize",(function(e){t.visualBuilder=e,t.$visualBuilder=n(e.frame)})),t}return r=f,(o=[{key:"componentDidMount",value:function(){var e=this;n("body").addClass("et-db"),n(window).one("et_fb_init_app_after",this.hideLoader);var t=!1;this.load().then(this.initialize).then((function(){return t=!0})).then((function(){return e.props.onLoad(e.visualBuilder)})),this.visualBuilderTimeout=setTimeout((function(){t||(e.hideLoader(),e.props.onError())}),6e4)}},{key:"componentWillUnmount",value:function(){this.unload(),n("body").removeClass("et-db"),n(window).off("et_fb_init_app_after",this.hideLoader),clearTimeout(this.visualBuilderTimeout)}},{key:"render",value:function(){var e=this;return a.default.createElement("div",{className:"et-common-visual-builder"},a.default.createElement(s.default,{ref:function(t){return e.container=t}}),this.state.loading&&a.default.createElement(c.default,null))}}])&&y(r.prototype,o),i&&y(r,i),Object.defineProperty(r,"prototype",{writable:!1}),f}(a.PureComponent);O(_,"propTypes",{target:i.default.shape({url:i.default.string.isRequired}).isRequired,onLoad:i.default.func,onError:i.default.func}),O(_,"defaultProps",{onLoad:l.default,onError:l.default});var w=_;t.default=w}).call(this,r(11),r(11))},function(e,t,r){e.exports=function(){"use strict";function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(){return++f}function r(){var e;y.debug&&(e=console).log.apply(e,arguments)}function n(e){var t=document.createElement("a");return t.href=e,t.origin||t.protocol+"//"+t.hostname}var o=window.navigator.userAgent.indexOf("Edge")>-1;function a(e,t){return(e.origin===t||o)&&"object"===l(e.data)&&"postmate"in e.data&&e.data.type===c&&!!{"handshake-reply":1,call:1,emit:1,reply:1,request:1}[e.data.postmate]}function i(e,t){var r="function"==typeof e[t]?e[t]():e[t];return y.Promise.resolve(r)}var u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c="application/x-postmate-v1+json",s=Object.prototype.hasOwnProperty,f=0,d=function(){function n(t){var o=this;e(this,n),this.parent=t.parent,this.frame=t.frame,this.child=t.child,this.childOrigin=t.childOrigin,this.events={},r("Parent: Registering API"),r("Parent: Awaiting messages..."),this.listener=function(e){var t=((e||{}).data||{}).value||{},n=t.data,a=t.name;"emit"===e.data.postmate&&(r("Parent: Received event emission: "+a),a in o.events&&o.events[a].call(o,n))},this.parent.addEventListener("message",this.listener,!1),r("Parent: Awaiting event emissions from Child")}return u(n,[{key:"get",value:function(e){var r=this;return new y.Promise((function(n){var o=t(),a=function e(t){t.data.uid===o&&"reply"===t.data.postmate&&(r.parent.removeEventListener("message",e,!1),n(t.data.value))};r.parent.addEventListener("message",a,!1),r.child.postMessage({postmate:"request",type:c,property:e,uid:o},r.childOrigin)}))}},{key:"call",value:function(e,t){this.child.postMessage({postmate:"call",type:c,property:e,data:t},this.childOrigin)}},{key:"on",value:function(e,t){this.events[e]=t}},{key:"destroy",value:function(){r("Parent: Destroying Postmate instance"),window.removeEventListener("message",this.listener,!1),this.frame.parentNode.removeChild(this.frame)}}]),n}(),p=function(){function t(n){var o=this;e(this,t),this.model=n.model,this.parent=n.parent,this.parentOrigin=n.parentOrigin,this.child=n.child,r("Child: Registering API"),r("Child: Awaiting messages..."),this.child.addEventListener("message",(function(e){if(a(e,o.parentOrigin)){r("Child: Received request",e.data);var t=e.data,n=t.property,u=t.uid,l=t.data;if("call"===e.data.postmate)return void(n in o.model&&"function"==typeof o.model[n]&&o.model[n].call(o,l));i(o.model,n).then((function(t){return e.source.postMessage({property:n,postmate:"reply",type:c,uid:u,value:t},e.origin)}))}}))}return u(t,[{key:"emit",value:function(e,t){r('Child: Emitting Event "'+e+'"',t),this.parent.postMessage({postmate:"emit",type:c,value:{name:e,data:t}},this.parentOrigin)}}]),t}(),y=function(){function t(r){e(this,t);var n=r.container,o=void 0===n?void 0!==o?o:document.body:n,a=r.model,i=r.url;return this.parent=window,this.frame=document.createElement("iframe"),o.appendChild(this.frame),this.child=this.frame.contentWindow||this.frame.contentDocument.parentWindow,this.model=a||{},this.sendHandshake(i)}return u(t,[{key:"sendHandshake",value:function(e){var o=this,i=n(e),u=0,l=void 0;return new t.Promise((function(t,n){var s=function e(u){return!!a(u,i)&&("handshake-reply"===u.data.postmate?(clearInterval(l),r("Parent: Received handshake reply from Child"),o.parent.removeEventListener("message",e,!1),o.childOrigin=u.origin,r("Parent: Saving Child origin",o.childOrigin),t(new d(o))):(r("Parent: Invalid handshake reply"),n("Failed handshake")))};o.parent.addEventListener("message",s,!1);var f=function(){r("Parent: Sending handshake attempt "+ ++u,{childOrigin:i}),o.child.postMessage({postmate:"handshake",type:c,model:o.model},i),5===u&&clearInterval(l)},p=function(){f(),l=setInterval(f,500)};o.frame.attachEvent?o.frame.attachEvent("onload",p):o.frame.onload=p,r("Parent: Loading frame",{url:e}),o.frame.src=e}))}}]),t}();return y.debug=!1,y.Promise=function(){try{return window?window.Promise:Promise}catch(e){return null}}(),y.Model=function(){function t(r){return e(this,t),this.child=window,this.model=r,this.parent=this.child.parent,this.sendHandshakeReply()}return u(t,[{key:"sendHandshakeReply",value:function(){var e=this;return new y.Promise((function(t,n){var a=function a(i){if(i.data.postmate){if("handshake"===i.data.postmate){r("Child: Received handshake from Parent"),e.child.removeEventListener("message",a,!1),r("Child: Sending handshake reply to Parent"),i.source.postMessage({postmate:"handshake-reply",type:c},i.origin),e.parent!==i.source&&(e.parent=i.source),e.parentOrigin=o?"*":i.origin;var u=i.data.model;if(u){for(var l=Object.keys(u),f=0;f<l.length;f++)s.call(u,l[f])&&(e.model[l[f]]=u[l[f]]);r("Child: Inherited and extended model from Parent")}return r("Child: Saving Parent origin",e.parentOrigin),t(new p(e))}return n("Handshake Reply Failed")}};e.child.addEventListener("message",a,!1)}))}}]),t}(),y}()},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var l=i?Object.getOwnPropertyDescriptor(e,u):null;l&&(l.get||l.set)?Object.defineProperty(o,u,l):o[u]=e[u]}o.default=e,r&&r.set(e,o);return o}(r(0));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=p(e);if(t){var o=p(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return f(this,r)}}function f(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return d(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(i,e);var t,r,n,a=s(i);function i(){var e;u(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return y(d(e=a.call.apply(a,[this].concat(r))),"shouldComponentUpdate",(function(){return!1})),e}return t=i,(r=[{key:"render",value:function(){return o.default.createElement("div",{id:"et_pb_layout"},o.default.createElement("div",{id:"et-boc",className:"et-boc"},o.default.createElement("div",{className:"et-l"},o.default.createElement("div",{id:"et-fb-app"},o.default.createElement("div",{id:"et_pb_root",className:"et_pb_root--vb et-common-visual-builder__container",ref:this.props.forwardedRef})))))}}])&&l(t.prototype,r),n&&l(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),h=o.default.forwardRef((function(e,t){return o.default.createElement(m,i({},e,{forwardedRef:t}))}));t.default=h},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=s(r(1)),i=s(r(11)),u=s(r(5)),l=s(r(8)),c=r(92);function s(e){return e&&e.__esModule?e:{default:e}}function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=v(e);if(t){var o=v(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return h(this,r)}}function h(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return b(e)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(a,e);var t,r,n,o=m(a);function a(){var e;p(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return g(b(e=o.call.apply(o,[this].concat(r))),"state",{uuid:(0,c.v4)()}),g(b(e),"stateKey","etBrowserBack"),g(b(e),"handleOnBack",(function(t){(0,u.default)(t,["originalEvent","state",e.stateKey],"")!==e.state.uuid&&e.props.onBack()})),g(b(e),"pushHistoryState",(function(){var t=(0,c.v4)();history.pushState(g({},e.stateKey,t),""),e.setState({uuid:t})})),g(b(e),"componentDidMount",(function(){(0,i.default)(window).on("popstate",e.handleOnBack),e.pushHistoryState()})),g(b(e),"componentWillUnmount",(function(){(0,i.default)(window).off("popstate",e.handleOnBack)})),g(b(e),"render",(function(){return null})),e}return t=a,r&&d(t.prototype,r),n&&d(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(o.PureComponent);g(O,"propTypes",{onBack:a.default.func}),g(O,"defaultProps",{onBack:l.default});var _=O;t.default=_},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i,u,l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=y(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),c=(p(r(1)),r(3)),s=r(9),f=p(r(30)),d=p(r(654));function p(e){return e&&e.__esModule?e:{default:e}}function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(y=function(e){return e?r:t})(e)}function m(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=w(e);if(t){var o=w(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return O(this,r)}}function O(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _(e)}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function T(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(a,e);var t,r,n,o=g(a);function a(){var e;h(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return T(_(e=o.call.apply(o,[this].concat(r))),"undo",(function(){return e.props.undo()})),T(_(e),"redo",(function(){return e.props.redo()})),T(_(e),"close",(function(){return e.props.close()})),e}return t=a,(r=[{key:"render",value:function(){return this.props.historyOpen?l.default.createElement(f.default,null,l.default.createElement(d.default,{onUndo:this.undo,onRedo:this.redo,onClose:this.close})):null}}])&&b(t.prototype,r),n&&b(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(l.PureComponent);T(E,"propTypes",{}),T(E,"defaultProps",{}),T(E,"connections",{historyOpen:(0,c.state)(o||(o=m(["isHistoryOpen"]))),undo:(0,c.sequences)(a||(a=m(["history.undo"]))),redo:(0,c.sequences)(i||(i=m(["history.redo"]))),close:(0,c.sequences)(u||(u=m(["closeCurrentModal"])))});var P=(0,s.connect)(E.connections,E);t.default=P},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=b(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=h(r(1)),i=h(r(8)),u=r(4),l=h(r(13)),c=h(r(7)),s=h(r(18)),f=h(r(25)),d=h(r(57)),p=h(r(80)),y=h(r(655)),m=h(r(657));function h(e){return e&&e.__esModule?e:{default:e}}function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(b=function(e){return e?r:t})(e)}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=E(e);if(t){var o=E(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return w(this,r)}}function w(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return T(e)}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function P(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var j=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O(e,t)}(i,e);var t,r,n,a=_(i);function i(){var e;v(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return P(T(e=a.call.apply(a,[this].concat(r))),"renderActions",(function(){var t=e.props,r=t.onUndo,n=t.onRedo,a=t.onClose;return o.default.createElement(o.Fragment,null,o.default.createElement(s.default,{tip:(0,c.default)("generic","Undo"),className:"et-common-button--tertiary",onClick:r},o.default.createElement(f.default,{icon:"undo"})),o.default.createElement(s.default,{tip:(0,c.default)("generic","Redo"),className:"et-common-button--primary",onClick:n},o.default.createElement(f.default,{icon:"redo"})),o.default.createElement(s.default,{tip:(0,c.default)("generic","Save"),className:"et-common-button--secondary",onClick:a},o.default.createElement(f.default,{icon:"check"})))})),e}return t=i,(r=[{key:"render",value:function(){var e=this.props.onClose;return o.default.createElement(y.default,{animation:l.default.animation,title:(0,c.default)("generic","History"),actions:this.renderActions,onClose:e},o.default.createElement(p.default,{component:"History"},o.default.createElement(m.default,null)),o.default.createElement(d.default,{shortcuts:[{shortcut:u.HOTKEYS_CLOSE,action:e}]}))}}])&&g(t.prototype,r),n&&g(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.PureComponent);P(j,"propTypes",{onUndo:a.default.func,onRedo:a.default.func,onClose:a.default.func}),P(j,"defaultProps",{onUndo:i.default,onRedo:i.default,onClose:i.default});var S=j;t.default=S},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=b(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=h(r(1)),i=h(r(11)),u=h(r(14)),l=h(r(179)),c=h(r(55)),s=h(r(8)),f=r(4),d=r(173),p=h(r(81)),y=h(r(44)),m=h(r(83));function h(e){return e&&e.__esModule?e:{default:e}}function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(b=function(e){return e?r:t})(e)}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=E(e);if(t){var o=E(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return w(this,r)}}function w(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return T(e)}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function P(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(656);var j=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O(e,t)}(s,e);var t,r,n,a=_(s);function s(){var e;v(this,s);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return P(T(e=a.call.apply(a,[this].concat(r))),"state",{animated:!1,dragging:!1,dragFrom:{left:0,top:0,leftOffset:0,topOffset:0},left:0,top:0}),P(T(e),"animationReset",null),P(T(e),"recenter",(function(){if(e.nodeRef){var t=(0,i.default)(window),r=(0,i.default)(e.nodeRef);e.setState({left:Math.floor((t.width()-r.width())/2),top:Math.floor((t.height()-r.height())/2)})}})),P(T(e),"debouncedRecenter",(0,l.default)(e.recenter,250)),P(T(e),"startDragging",(function(t){if(!e.state.dragging){var r=(0,i.default)(t.target);r.is(".et-tb-draggable-modal__header")||(r=r.closest(".et-tb-draggable-modal__header")),e.setState({dragging:!0,dragFrom:{left:t.clientX,top:t.clientY,leftOffset:t.clientX-r.offset().left,topOffset:t.clientY-(r.offset().top-(0,i.default)(window).scrollTop())}})}})),P(T(e),"drag",(function(t){e.state.dragging&&e.setState({left:t.clientX-e.state.dragFrom.leftOffset,top:Math.max(t.clientY-e.state.dragFrom.topOffset,f.ADMIN_BAR_HEIGHT)})})),P(T(e),"stopDragging",(function(){e.state.dragging&&e.setState({dragging:!1})})),e}return t=s,(r=[{key:"componentDidMount",value:function(){var e=this;this.recenter(),this.animationReset=(0,d.makeCancellable)((0,d.delay)(100)),this.animationReset.promise.then((function(){e.setState({animated:!0})})),window.addEventListener("resize",this.debouncedRecenter),window.addEventListener("mousemove",this.drag),window.addEventListener("mouseup",this.stopDragging),window.addEventListener("blur",this.stopDragging)}},{key:"componentWillUnmount",value:function(){null!==this.animationReset&&this.animationReset.cancel(),window.removeEventListener("resize",this.debouncedRecenter),window.removeEventListener("mousemove",this.drag),window.removeEventListener("mouseup",this.stopDragging),window.removeEventListener("blur",this.stopDragging)}},{key:"render",value:function(){var e=this,t=this.props,r=t.animation,n=t.title,a=t.actions,i=t.onClose,l=t.className,s=t.children,f=this.state,d=f.animated,h=f.dragging,b=(f.width,f.left),v=f.top,g=a(),O="translate(".concat(b,"px, ").concat(v,"px)"),_={transform:O,WebkitTransform:O};return o.default.createElement("div",{ref:function(t){return e.nodeRef=t},className:(0,u.default)({"et-tb-draggable-modal":!0,"et-tb-draggable-modal--animated":d,"et-tb-draggable-modal--dragged":h}),style:_},o.default.createElement(p.default,{animation:r,className:l},o.default.createElement(y.default,{onMouseDown:this.startDragging,title:n,onClose:i,className:"et-tb-draggable-modal__header"}),o.default.createElement("div",{className:"et-tb-draggable-modal__content"},s),!(0,c.default)(g)&&o.default.createElement(m.default,null,g)))}}])&&g(t.prototype,r),n&&g(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(o.PureComponent);P(j,"propTypes",{animation:a.default.bool,title:a.default.string.isRequired,actions:a.default.func,onClose:a.default.func,className:a.default.string}),P(j,"defaultProps",{animation:!0,actions:s.default,onClose:s.default,className:""});var S=j;t.default=S},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=p(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),i=d(r(1)),u=r(3),l=r(9),c=d(r(11)),s=d(r(17)),f=d(r(658));function d(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=O(e);if(t){var o=O(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return v(this,r)}}function v(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return g(e)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}function _(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(372);var w,T,E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(i,e);var t,r,n,o=b(i);function i(){var e;y(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return _(g(e=o.call.apply(o,[this].concat(r))),"componentDidMount",(function(){(0,c.default)("body").first().addClass("et-tb-history-open")})),_(g(e),"componentWillUnmount",(function(){(0,c.default)("body").first().removeClass("et-tb-history-open")})),e}return t=i,(r=[{key:"render",value:function(){var e=this.props.points;return a.default.createElement("div",{className:"et-tb-history"},a.default.createElement("ul",{className:"et-tb-history__list"},(0,s.default)(e.slice().reverse(),(function(t,r){return a.default.createElement("li",{key:e.length-r-1},a.default.createElement(f.default,{index:e.length-r-1}))}))))}}])&&m(t.prototype,r),n&&m(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(a.PureComponent);_(E,"propTypes",{className:i.default.string}),_(E,"defaultProps",{className:""}),_(E,"connections",{points:(0,u.state)(o||(w=["history.points"],T||(T=w.slice(0)),o=Object.freeze(Object.defineProperties(w,{raw:{value:Object.freeze(T)}}))))});var P=(0,l.connect)(E.connections,E);t.default=P},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i,u,l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=b(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),c=h(r(1)),s=r(3),f=r(9),d=h(r(14)),p=h(r(23)),y=h(r(18)),m=h(r(25));function h(e){return e&&e.__esModule?e:{default:e}}function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(b=function(e){return e?r:t})(e)}function v(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _(e,t){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_(e,t)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=P(e);if(t){var o=P(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return T(this,r)}}function T(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return E(e)}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P(e){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},P(e)}function j(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(372);var S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}(a,e);var t,r,n,o=w(a);function a(){var e;g(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return j(E(e=o.call.apply(o,[this].concat(r))),"isCurrent",(function(){return e.props.index===e.props.currentPoint})),j(E(e),"restore",(function(){e.isCurrent()||e.props.restoreHistoryPoint({index:e.props.index})})),e}return t=a,(r=[{key:"render",value:function(){var e=this.props.point;return(0,p.default)(e)?null:l.default.createElement(y.default,{className:(0,d.default)({"et-tb-history-point":!0,"et-tb-history-point--active":this.isCurrent()}),onClick:this.restore},l.default.createElement(m.default,{icon:this.isCurrent()?"check":"undo"}),l.default.createElement("span",{className:"et-tb-history-point__label"},e.label),l.default.createElement("span",{className:"et-tb-history-point__time"},e.timeLabel))}}])&&O(t.prototype,r),n&&O(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(l.PureComponent);j(S,"propTypes",{className:c.default.string}),j(S,"defaultProps",{className:""}),j(S,"connections",{currentPoint:(0,s.state)(o||(o=v(["history.currentPoint"]))),point:(0,s.state)(a||(a=v(["history.points.",""])),(0,s.props)(i||(i=v(["index"])))),restoreHistoryPoint:(0,s.sequences)(u||(u=v(["history.restoreHistoryPoint"])))});var I=(0,f.connect)(S.connections,S);t.default=I},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=d(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),u=(f(r(1)),r(3)),l=r(9),c=f(r(660)),s=f(r(30));function f(e){return e&&e.__esModule?e:{default:e}}function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(d=function(e){return e?r:t})(e)}function p(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=O(e);if(t){var o=O(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return v(this,r)}}function v(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return g(e)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}function _(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(a,e);var t,r,n,o=b(a);function a(){var e;y(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return _(g(e=o.call.apply(o,[this].concat(r))),"close",(function(){return e.props.close()})),e}return t=a,(r=[{key:"render",value:function(){return this.props.portabilityOpen?i.default.createElement(s.default,null,i.default.createElement(c.default,{onClose:this.close})):null}}])&&m(t.prototype,r),n&&m(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(i.PureComponent);_(w,"propTypes",{}),_(w,"defaultProps",{}),_(w,"connections",{portabilityOpen:(0,u.state)(o||(o=p(["isPortabilityOpen"]))),close:(0,u.sequences)(a||(a=p(["closeCurrentModal"])))});var T=(0,l.connect)(w.connections,w);t.default=T},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i,u=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=E(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),l=T(r(1)),c=r(3),s=r(9),f=T(r(14)),d=T(r(8)),p=r(4),y=T(r(13)),m=T(r(7)),h=T(r(57)),b=T(r(80)),v=T(r(111)),g=T(r(44)),O=T(r(270)),_=T(r(373)),w=T(r(376));function T(e){return e&&e.__esModule?e:{default:e}}function E(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(E=function(e){return e?r:t})(e)}function P(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function I(e,t){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},I(e,t)}function M(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=D(e);if(t){var o=D(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return C(this,r)}}function C(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return A(e)}function A(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function D(e){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},D(e)}function k(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(666);var R=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&I(e,t)}(a,e);var t,r,n,o=M(a);function a(){var e;j(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return k(A(e=o.call.apply(o,[this].concat(r))),"state",{tab:"export"}),k(A(e),"setTab",(function(t){e.setState({tab:t})})),e}return t=a,(r=[{key:"render",value:function(){var e=this.props,t=e.state,r=e.templateId,n=e.loading,o=e.onClose,a=this.state.tab,i=p.PORTABILITY_STATE_DEFAULT===t&&"export"===a,l=p.PORTABILITY_STATE_DEFAULT===t&&"import"===a,c=i||l,s=p.PORTABILITY_STATE_EXPORT_TEMPLATE===t,d=p.PORTABILITY_STATE_IMPORT_LIBRARY_TEMPLATE===t,T=(0,m.default)("portability","Import & Export Templates");return s&&(T=(0,m.default)("portability","Export Templates")),d&&(T=(0,m.default)("portability","Import Templates")),u.default.createElement(v.default,{animation:y.default.animation,className:(0,f.default)({"et-tb-portability-modal":!0,"et-tb-portability-modal--with-tabs":c})},u.default.createElement(g.default,{title:T.replace(/&/,"&"),className:"et-tb-portability-modal__header",onClose:o}),u.default.createElement(b.default,{component:"Portability"},u.default.createElement("div",{className:(0,f.default)({"et-tb-portability-modal__tab":!0,"et-tb-portability-modal__tab--loading":n})},!n&&c&&u.default.createElement(O.default,{currentTab:this.state.tab,tabs:[{key:"export",title:(0,m.default)("portability","Export")},{key:"import",title:(0,m.default)("portability","Import")}],className:"et-tb-portability-modal__tabs-navigation",onChange:this.setTab}),i&&u.default.createElement(_.default,null),(l||d)&&u.default.createElement(w.default,{isTeamSharingAvailable:!1}),s&&u.default.createElement(_.default,{templateId:r}))),u.default.createElement(h.default,{shortcuts:[{shortcut:p.HOTKEYS_CLOSE,action:o}]}))}}])&&S(t.prototype,r),n&&S(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(u.PureComponent);k(R,"propTypes",{onClose:l.default.func}),k(R,"defaultProps",{onClose:d.default}),k(R,"connections",{state:(0,c.state)(o||(o=P(["portability.state"]))),templateId:(0,c.state)(a||(a=P(["portability.export.templateId"]))),loading:(0,c.state)(i||(i=P(["portability.loading"])))});var x=(0,s.connect)(R.connections,R);t.default=x},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=s(r(1)),i=s(r(14)),u=s(r(5)),l=s(r(8));r(665);var c=["defaultFile","label","className","onChange"];function s(e){return e&&e.__esModule?e:{default:e}}function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(this,arguments)}function p(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=O(e);if(t){var o=O(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return v(this,r)}}function v(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return g(e)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}function _(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(l,e);var t,r,n,a=b(l);function l(){var e;y(this,l);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return _(g(e=a.call.apply(a,[this].concat(r))),"state",{file:e.props.defaultFile,name:(0,u.default)(e.props.defaultFile,"name","")}),_(g(e),"handleOnFileChange",(function(t){var r=(0,u.default)(t,"target.files[0]",null),n=(0,u.default)(r,"name","");e.setState({file:r,name:n}),e.props.onChange(r,n)})),e}return t=l,(r=[{key:"render",value:function(){var e=this.props,t=(e.defaultFile,e.label),r=e.className,n=(e.onChange,p(e,c)),a=this.state.name;return o.default.createElement("div",{className:"et-common-input-file ".concat(r)},o.default.createElement("span",{className:(0,i.default)({"et-core-portability-import-placeholder":!0,"et-core-portability-import-placeholder--active":""!==a})},a||t),o.default.createElement("input",d({type:"file",onChange:this.handleOnFileChange},n)))}}])&&m(t.prototype,r),n&&m(t,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(o.PureComponent);_(w,"propTypes",{defaultFile:a.default.object,label:a.default.string,className:a.default.string,onChange:a.default.func}),_(w,"defaultProps",{defaultFile:null,label:"",className:"",onChange:l.default});var T=w;t.default=T},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(0)),o=a(r(668));function a(e){return e&&e.__esModule?e:{default:e}}r(670);var i=n.default.memo((function(){return n.default.createElement(o.default,{className:"et-common-spinner-viewport-overlay"},n.default.createElement("div",{className:"et-common-spinner-viewport-overlay__spinner"}))}));t.default=i},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=u(r(1)),i=u(r(11));function u(e){return e&&e.__esModule?e:{default:e}}function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=y(e);if(t){var o=y(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return p(this,r)}}function p(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(669);var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(u,e);var t,r,n,a=d(u);function u(){return c(this,u),a.apply(this,arguments)}return t=u,(r=[{key:"componentDidMount",value:function(){(0,i.default)("body").addClass("et-common-viewport-overlay-open")}},{key:"componentWillUnmount",value:function(){(0,i.default)("body").removeClass("et-common-viewport-overlay-open")}},{key:"render",value:function(){var e=this.props,t=e.className,r=e.children;return o.default.createElement("div",{className:"et-common-viewport-overlay ".concat(t)},r)}}])&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(o.PureComponent);m(h,"propTypes",{className:a.default.string}),m(h,"defaultProps",{className:""});var b=h;t.default=b},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i,u,l,c,s,f,d,p=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=A(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),y=r(3),m=r(9),h=C(r(11)),b=C(r(12)),v=C(r(55)),g=C(r(123)),O=r(4),_=C(r(13)),w=C(r(7)),T=C(r(57)),E=C(r(18)),P=C(r(672)),j=C(r(30)),S=C(r(675)),I=C(r(376)),M=C(r(373));function C(e){return e&&e.__esModule?e:{default:e}}function A(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(A=function(e){return e?r:t})(e)}function D(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function R(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?k(Object(r),!0).forEach((function(t){z(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function B(e,t){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},B(e,t)}function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=F(e);if(t){var o=F(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return U(this,r)}}function U(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return W(e)}function W(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F(e){return F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},F(e)}function z(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var H=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&B(e,t)}(a,e);var t,r,n,o=N(a);function a(){var e;x(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return z(W(e=o.call.apply(o,[this].concat(r))),"getPrompt",(function(){var t=(0,g.default)(e.props.prompts);return(0,v.default)(t)?t:R(R({},t),{},{key:e.props.prompts.length})})),z(W(e),"close",(function(){e.props.close()})),z(W(e),"defaultAction",(function(){switch(e.getPrompt().type){case O.PROMPT_TYPE_LOAD_DRAFT:e.discardDraft();break;case O.PROMPT_TYPE_ITEM_EXPORT_MODAL:e.props.close(),e.props.closeItemExportModal();break;default:e.close()}})),z(W(e),"discardDraft",(function(){e.close(),e.props.discardDraft()})),z(W(e),"loadDraft",(function(){e.close(),e.props.loadDraft()})),z(W(e),"resetThemeBuilder",(function(){e.close(),e.props.resetThemeBuilder()})),z(W(e),"closeVisualBuilder",(function(){e.close(),e.props.closeVisualBuilder()})),z(W(e),"deleteGlobalLayout",(function(){var t=e.getPrompt().payload;e.close(),e.props.deleteGlobalLayout(t)})),z(W(e),"applyEffects",(function(){e.props.prompts.length>0?(0,h.default)("body").addClass("et-common-prompt-open"):e.unapplyEffects()})),z(W(e),"unapplyEffects",(function(){(0,h.default)("body").removeClass("et-common-prompt-open")})),z(W(e),"componentDidMount",(function(){e.applyEffects()})),z(W(e),"componentDidUpdate",(function(){e.applyEffects()})),z(W(e),"componentWillUnmount",(function(){e.unapplyEffects()})),z(W(e),"closeWindow",(function(){window.close()})),z(W(e),"renderTitle",(function(){var t=e.getPrompt();if(!(0,b.default)(t.title))return t.title;switch(t.type){case O.PROMPT_TYPE_UNKNOWN_ERROR:return(0,w.default)("themeBuilder","Divi Theme Builder");case O.PROMPT_TYPE_LOAD_DRAFT:return(0,w.default)("themeBuilder","Backup Exists");case O.PROMPT_TYPE_THEME_BUILDER_RESET:return(0,w.default)("generic","Reset");case O.PROMPT_TYPE_VISUAL_BUILDER_UNSAVED_CHANGES:return(0,w.default)("themeBuilder","You Have Unsaved Changes");case O.PROMPT_TYPE_DELETE_GLOBAL_LAYOUT:case O.PROMPT_TYPE_DELETE_GLOBAL_LAYOUT_PROGRESS:return(0,w.default)("themeBuilder","Delete Global Layout");case O.PROMPT_TYPE_LIBRARY_ITEM_NOT_EXISTS:return(0,w.default)("themeBuilder","Library Item Error");case O.PROMPT_TYPE_ITEM_EXPORT_MODAL:return(0,w.default)("themeBuilder","Export Templates");case O.PROMPT_TYPE_IMPORT_LIBRARY_TEMPLATE:return(0,w.default)("themeBuilder","Import Templates")}return null})),z(W(e),"renderContent",(function(){var t=e.props.templateId,r=e.getPrompt();if(!(0,b.default)(r.content))return p.default.createElement("p",null,r.content);switch(r.type){case O.PROMPT_TYPE_UNKNOWN_ERROR:return p.default.createElement("p",null,(0,w.default)("generic","An unknown error has occurred. Please try again later."));case O.PROMPT_TYPE_LOAD_DRAFT:return p.default.createElement("p",null,(0,w.default)("themeBuilder","Backup Exists Content"));case O.PROMPT_TYPE_THEME_BUILDER_RESET:return p.default.createElement(p.Fragment,null,p.default.createElement("p",null,(0,w.default)("themeBuilder","This will reset all Theme Builder settings and delete all templates.")),p.default.createElement("p",null,(0,w.default)("generic","Note: this process cannot be undone.")));case O.PROMPT_TYPE_DELETE_GLOBAL_LAYOUT:return p.default.createElement(p.Fragment,null,p.default.createElement("p",null,(0,w.default)("themeBuilder","You are about to delete a global layout.")),p.default.createElement("p",null,(0,w.default)("themeBuilder","Note: this action may take several minutes depending on the number of templates using this layout.")));case O.PROMPT_TYPE_DELETE_GLOBAL_LAYOUT_PROGRESS:return p.default.createElement(S.default,null);case O.PROMPT_TYPE_LIBRARY_ITEM_NOT_EXISTS:return p.default.createElement("p",null,(0,w.default)("themeBuilder","Library item does not exist. Click close to close this browser window."));case O.PROMPT_TYPE_IMPORT_LIBRARY_TEMPLATE:return p.default.createElement(I.default,{isTeamSharingAvailable:!0});case O.PROMPT_TYPE_ITEM_EXPORT_MODAL:return p.default.createElement(M.default,{templateId:t})}return null})),z(W(e),"renderActions",(function(){switch(e.getPrompt().type){case O.PROMPT_TYPE_UNKNOWN_ERROR:return p.default.createElement(p.Fragment,null,p.default.createElement(E.default,{className:"et-common-button--primary",onClick:e.defaultAction},(0,w.default)("generic","Close")));case O.PROMPT_TYPE_LOAD_DRAFT:return p.default.createElement(p.Fragment,null,p.default.createElement(E.default,{className:"et-common-button--secondary",onClick:e.discardDraft},p.default.createElement("span",{dangerouslySetInnerHTML:{__html:(0,w.default)("themeBuilder","Don't Restore")}})),p.default.createElement(E.default,{className:"et-common-button--primary",onClick:e.loadDraft},(0,w.default)("themeBuilder","Restore")));case O.PROMPT_TYPE_VISUAL_BUILDER_UNSAVED_CHANGES:return p.default.createElement(p.Fragment,null,p.default.createElement(E.default,{className:"et-common-button--secondary",onClick:e.defaultAction},p.default.createElement("span",null,(0,w.default)("generic","Cancel"))),p.default.createElement(E.default,{className:"et-common-button--primary",onClick:e.closeVisualBuilder},(0,w.default)("generic","Continue")));case O.PROMPT_TYPE_THEME_BUILDER_RESET:return p.default.createElement(p.Fragment,null,p.default.createElement(E.default,{className:"et-common-button--secondary",onClick:e.defaultAction},p.default.createElement("span",null,(0,w.default)("generic","Cancel"))),p.default.createElement(E.default,{className:"et-common-button--primary",onClick:e.resetThemeBuilder},(0,w.default)("generic","Reset")));case O.PROMPT_TYPE_DELETE_GLOBAL_LAYOUT:return p.default.createElement(p.Fragment,null,p.default.createElement(E.default,{className:"et-common-button--secondary",onClick:e.defaultAction},p.default.createElement("span",null,(0,w.default)("generic","Cancel"))),p.default.createElement(E.default,{className:"et-common-button--primary",onClick:e.deleteGlobalLayout},(0,w.default)("generic","Delete")));case O.PROMPT_TYPE_LIBRARY_ITEM_NOT_EXISTS:return p.default.createElement(p.Fragment,null,p.default.createElement(E.default,{className:"et-common-button--primary",onClick:e.closeWindow},(0,w.default)("generic","Close")))}return null})),e}return t=a,(r=[{key:"render",value:function(){var e=this.getPrompt();if((0,v.default)(e))return null;var t={},r={};return e.requireAction||(t.onClose=this.defaultAction),e.type!==O.PROMPT_TYPE_IMPORT_LIBRARY_TEMPLATE&&e.type!==O.PROMPT_TYPE_ITEM_EXPORT_MODAL||(r.style={padding:0}),p.default.createElement(j.default,null,p.default.createElement(P.default,{animation:_.default.animation,modalKey:e.key},p.default.createElement(P.default.Header,t,this.renderTitle()),p.default.createElement(P.default.Content,r,this.renderContent()),p.default.createElement(P.default.Actions,null,this.renderActions())),!e.requireAction&&p.default.createElement(T.default,{shortcuts:[{shortcut:O.HOTKEYS_CLOSE,action:this.defaultAction}]}))}}])&&L(t.prototype,r),n&&L(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(p.PureComponent);z(H,"propTypes",{}),z(H,"defaultProps",{}),z(H,"connections",{prompts:(0,y.state)(o||(o=D(["prompts.prompts"]))),templateId:(0,y.state)(a||(a=D(["portability.export.templateId"]))),close:(0,y.sequences)(i||(i=D(["prompts.closePrompt"]))),loadDraft:(0,y.sequences)(u||(u=D(["loadDraft"]))),discardDraft:(0,y.sequences)(l||(l=D(["discardDraft"]))),resetThemeBuilder:(0,y.sequences)(c||(c=D(["resetThemeBuilder"]))),closeVisualBuilder:(0,y.sequences)(s||(s=D(["closeCurrentModal"]))),closeItemExportModal:(0,y.sequences)(f||(f=D(["portability.closeItemExportModal"]))),deleteGlobalLayout:(0,y.sequences)(d||(d=D(["templates.deleteGlobalLayout"])))});var Y=(0,m.connect)(H.connections,H);t.default=Y},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=m(r(36)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=y(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),i=m(r(1)),u=m(r(12)),l=m(r(14)),c=m(r(367));r(673);var s=m(r(176)),f=m(r(18)),d=m(r(273)),p=m(r(180));function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(y=function(e){return e?r:t})(e)}function m(e){return e&&e.__esModule?e:{default:e}}function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h.apply(this,arguments)}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,a=[],i=!0,u=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){u=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(u)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var g=a.default.forwardRef((function(e,t){var r=e.animation,n=e.modalKey,o=e.children,i=e.draggable,f=b((0,a.useState)({x:0,y:0}),2),d=f[0],y=f[1],m=(0,a.useRef)(),v={enabled:r};(0,u.default)(n)||(v.key=n);var g=function(){if(m.current){var e=window.top,t=m.current.getBoundingClientRect(),r=t.left,n=t.top;if(t.right>e.innerWidth&&(r=e.innerWidth-t.width),t.bottom>e.innerHeight&&(n=e.innerHeight-t.height),t.left<0&&(r=0),t.top<0&&(n=0),r!==t.left||n!==t.top){var o=r-t.left,a=n-t.top,i=m.current.style.transform.replace(/translate\((.*)px, (.*)px\)/,(function(e,t,r){var n=parseInt(t,10)+o,i=parseInt(r,10)+a;return y({x:n,y:i}),"translate(".concat(n,"px, ").concat(i,"px)")}));m.current.style.transform=i}}};(0,a.useEffect)((function(){var e=localStorage.getItem("".concat(n,"_position"));e&&y(JSON.parse(e));var t=m.current,r=new IntersectionObserver((function(e){e.forEach((function(e){e.isIntersecting||g()}))}),{root:null,rootMargin:"0px",threshold:0});t&&r.observe(t);var o=new ResizeObserver((function(){g()}));return t&&o.observe(t),function(){t&&(r.unobserve(t),o.unobserve(t))}}),[]);var O=function(e,t){var r={x:t.lastX,y:t.lastY};localStorage.setItem("".concat(n,"_position"),JSON.stringify(r)),y(r)},_=function(){return a.default.createElement("div",{className:"et-common-prompt__container",ref:m},o)},w=(0,l.default)({"et-common-prompt":!0,"et-common-prompt-draggable":i});return a.default.createElement("div",{className:w,ref:t},!i&&a.default.createElement("div",{className:"et-common-prompt__overlay"}),a.default.createElement(s.default,h({},v,{onRest:g}),(function(e){return a.default.createElement("div",{className:"et-common-prompt__modal",style:e},i&&a.default.createElement(c.default,{handle:".react-draggable > .et-common-prompt__header",bounds:"parent",position:d,onStop:O},_()),!i&&_())})),a.default.createElement(p.default,{lockId:"common-prompt"}))}));g.propTypes={animation:i.default.bool,modalKey:i.default.oneOfType([i.default.string,i.default.number]),draggable:i.default.bool},g.defaultProps={animation:!0,modalKey:"",draggable:!1},g.Header=a.default.memo((function(e){var t=e.children,r=e.render,n=e.onBack,i=e.onClose,u=e.className,c=void 0===u?"":u,s=(0,l.default)({"et-common-prompt__header":!0,"et-common-prompt__header-back":n})+" ".concat(c);return a.default.createElement("div",{className:s},(0,o.default)(n)&&a.default.createElement(f.default,{className:"et-common-button--round",onClick:n},a.default.createElement(d.default,{icon:"back",color:"#ffffff"})),a.default.createElement("span",null,t),(0,o.default)(r)&&r(),(0,o.default)(i)&&a.default.createElement("div",{className:"et-common-prompt__header-actions"},a.default.createElement(f.default,{className:"et-common-button--round",onClick:i,"data-testid":"ClosePrompt"},a.default.createElement(d.default,{icon:"close",color:"#ffffff"}))))})),g.Content=a.default.memo((function(e){var t=e.style,r=e.children;return a.default.createElement("div",{className:"et-common-prompt__body"},a.default.createElement("div",{className:"et-common-prompt__content",style:t},r))})),g.Content.propTypes={style:i.default.object},g.Content.defaultProps={style:{}},g.Actions=a.default.memo((function(e){var t=e.children;return a.default.createElement("div",{className:"et-common-prompt__footer"},t)}));var O=g;t.default=O},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),i=(s(r(1)),r(3)),u=r(9),l=s(r(72)),c=s(r(82));function s(e){return e&&e.__esModule?e:{default:e}}function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=b(e);if(t){var o=b(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return h(this,r)}}function h(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(676);var g,O,_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(i,e);var t,r,n,o=m(i);function i(){return d(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"render",value:function(){var e=this.props.progress;return a.default.createElement("div",{className:"et-tb-layout-clone-progress"},a.default.createElement(l.default,{progress:e}),100===e&&a.default.createElement(c.default,{className:"et-common-local-overlay--centered"},a.default.createElement("span",{className:"et-core-loader et-core-loader-success"})))}}])&&p(t.prototype,r),n&&p(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(a.PureComponent);v(_,"propTypes",{}),v(_,"defaultProps",{}),v(_,"connections",{progress:(0,i.state)(o||(g=["templates.deleteGlobalLayout.progress"],O||(O=g.slice(0)),o=Object.freeze(Object.defineProperties(g,{raw:{value:Object.freeze(O)}}))))});var w=(0,u.connect)(_.connections,_);t.default=w},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i,u,l,c=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=y(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),s=r(3),f=r(9),d=(o=r(33))&&o.__esModule?o:{default:o},p=r(4);function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(y=function(e){return e?r:t})(e)}function m(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=w(e);if(t){var o=w(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return O(this,r)}}function O(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _(e)}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function T(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(a,e);var t,r,n,o=g(a);function a(){var e;h(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return T(_(e=o.call.apply(o,[this].concat(r))),"autosave",null),T(_(e),"save",(function(){e.props.saveState===p.SAVE_STATE_IDLE&&e.disableAutosave(),e.props.save({draft:!1})})),T(_(e),"enableAutosave",(function(){e.disableAutosave(),e.autosave=setInterval((function(){e.props.unsavedDraftChanges&&e.props.save({draft:!0})}),12e4)})),T(_(e),"disableAutosave",(function(){clearInterval(e.autosave),e.autosave=null})),e}return t=a,(r=[{key:"componentDidMount",value:function(){window.addEventListener("beforeunload",this.disableAutosave),(0,d.default)(this.autosave)&&this.props.autosave&&this.enableAutosave()}},{key:"componentDidUpdate",value:function(){(0,d.default)(this.autosave)&&this.props.autosave&&this.enableAutosave()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("beforeunload",this.disableAutosave)}},{key:"render",value:function(){return null}}])&&b(t.prototype,r),n&&b(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(c.PureComponent);T(E,"propTypes",{}),T(E,"defaultProps",{}),T(E,"connections",{saveState:(0,s.state)(a||(a=m(["saveState"]))),autosave:(0,s.state)(i||(i=m(["autosave"]))),unsavedDraftChanges:(0,s.state)(u||(u=m(["unsavedDraftChanges"]))),save:(0,s.sequences)(l||(l=m(["save"])))});var P=(0,f.connect)(E.connections,E);t.default=P},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),u=r(3),l=r(9),c=(o=r(7))&&o.__esModule?o:{default:o};function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=b(e);if(t){var o=b(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return m(this,r)}}function m(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var g,O,_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(a,e);var t,r,n,o=y(a);function a(){var e;f(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return v(h(e=o.call.apply(o,[this].concat(r))),"showUnsavedChangesWarning",(function(t){if(!e.props.unsavedChanges)return!1;var r=(0,c.default)("themeBuilder","Unsaved Changes Warning");return t.returnValue=r,r})),e}return t=a,(r=[{key:"componentDidMount",value:function(){window.addEventListener("beforeunload",this.showUnsavedChangesWarning)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("beforeunload",this.showUnsavedChangesWarning)}},{key:"render",value:function(){return null}}])&&d(t.prototype,r),n&&d(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(i.PureComponent);v(_,"propTypes",{}),v(_,"defaultProps",{}),v(_,"connections",{unsavedChanges:(0,u.state)(a||(g=["unsavedChanges"],O||(O=g.slice(0)),a=Object.freeze(Object.defineProperties(g,{raw:{value:Object.freeze(O)}}))))});var w=(0,l.connect)(_.connections,_);t.default=w},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i,u,l,c,s,f,d,p=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=v(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),y=r(3),m=r(9),h=r(4),b=(o=r(57))&&o.__esModule?o:{default:o};function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(v=function(e){return e?r:t})(e)}function g(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function w(e,t){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},w(e,t)}function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=j(e);if(t){var o=j(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return E(this,r)}}function E(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return P(e)}function P(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}function S(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var I=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w(e,t)}(a,e);var t,r,n,o=T(a);function a(){var e;O(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return S(P(e=o.call.apply(o,[this].concat(r))),"interactive",(function(){return e.props.interactive&&(null===e.props.openModal||h.MODAL_TYPE_HISTORY===e.props.openModal)})),S(P(e),"undo",(function(){if(!e.interactive())return!1;e.props.undo()})),S(P(e),"redo",(function(){if(!e.interactive())return!1;e.props.redo()})),S(P(e),"save",(function(){if(!e.interactive())return!1;e.props.save()})),S(P(e),"copy",(function(){if(!e.interactive())return!1;var t=e.props,r=t.hovered,n=r.layoutId,o=r.layoutType;(0,t.setClipboard)({layoutId:n,layoutType:o})})),S(P(e),"paste",(function(){if(!e.interactive())return!1;var t=e.props,r=t.hovered,n=r.templateId,o=r.layoutType;(0,t.pasteLayout)({templateId:n,layoutType:o})})),e}return t=a,(r=[{key:"render",value:function(){return p.default.createElement(b.default,{shortcuts:[{shortcut:h.HOTKEYS_UNDO,action:this.undo},{shortcut:h.HOTKEYS_REDO,action:this.redo},{shortcut:h.HOTKEYS_SAVE,action:this.save},{shortcut:h.HOTKEYS_COPY,action:this.copy},{shortcut:h.HOTKEYS_PASTE,action:this.paste}]})}}])&&_(t.prototype,r),n&&_(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(p.PureComponent);S(I,"propTypes",{}),S(I,"defaultProps",{}),S(I,"connections",{interactive:(0,y.state)(a||(a=g(["interactive"]))),openModal:(0,y.state)(i||(i=g(["openModal"]))),undo:(0,y.sequences)(u||(u=g(["history.undo"]))),redo:(0,y.sequences)(l||(l=g(["history.redo"]))),save:(0,y.sequences)(c||(c=g(["save"]))),hovered:(0,y.state)(s||(s=g(["layouts.hovered"]))),setClipboard:(0,y.sequences)(f||(f=g(["clipboard.setClipboard"]))),pasteLayout:(0,y.sequences)(d||(d=g(["templates.pasteLayout"])))});var M=(0,m.connect)(I.connections,I);t.default=M},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i,u,l,c,s,f=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=g(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),d=(v(r(1)),r(3)),p=r(9),y=r(4),m=v(r(7)),h=v(r(18)),b=v(r(25));function v(e){return e&&e.__esModule?e:{default:e}}function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(g=function(e){return e?r:t})(e)}function O(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function T(e,t){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T(e,t)}function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=S(e);if(t){var o=S(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return P(this,r)}}function P(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return j(e)}function j(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}function I(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(681);var M=(I(o={},y.SAVE_STATE_LOADING,"loading"),I(o,y.SAVE_STATE_SUCCESS,"check"),I(o,y.SAVE_STATE_ERROR,"close"),o),C=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&T(e,t)}(a,e);var t,r,n,o=E(a);function a(){var e;_(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return I(j(e=o.call.apply(o,[this].concat(r))),"state",{label:(0,m.default)("generic","All Changes Saved"),fakeLoading:!1}),I(j(e),"fakeLoadingTimeout",null),I(j(e),"save",(function(t){t.preventDefault();var r=e.props,n=r.saveState,o=r.unsavedChanges,a=r.cloudItemId;e.state.fakeLoading||y.SAVE_STATE_LOADING===n||(e.fakeLoadingTimeout&&clearTimeout(e.fakeLoadingTimeout),o?(e.setState({fakeLoading:!1}),a?e.props.saveEditedItemToCloud():e.props.save({draft:!1})):e.setState({fakeLoading:y.SAVE_STATE_LOADING},(function(){e.fakeLoadingTimeout=setTimeout((function(){e.setState({fakeLoading:y.SAVE_STATE_SUCCESS},(function(){e.fakeLoadingTimeout=setTimeout((function(){e.setState({fakeLoading:!1})}),300)}))}),800)})))})),I(j(e),"getButtonIcon",(function(){var t=e.state.fakeLoading,r=e.props.saveState;return M[t||r]||""})),I(j(e),"showUnsavedChangesWarning",(function(t){if(y.SAVE_STATE_LOADING!==e.props.saveState)return!1;var r=(0,m.default)("themeBuilder","Unsaved Changes Warning");return t.returnValue=r,r})),I(j(e),"componentDidUpdate",(function(t){var r=e.props,n=r.saveState,o=r.unsavedChanges,a=!1;(n!==y.SAVE_STATE_LOADING&&t.saveState===y.SAVE_STATE_LOADING||n===y.SAVE_STATE_IDLE&&o&&!t.unsavedChanges)&&(a=!0),a&&e.setState({label:o?(0,m.default)("generic","Save Changes"):(0,m.default)("generic","All Changes Saved")})})),I(j(e),"componentDidMount",(function(){window.addEventListener("beforeunload",e.showUnsavedChangesWarning)})),I(j(e),"componentWillUnmount",(function(){e.fakeLoadingTimeout&&clearTimeout(e.fakeLoadingTimeout),window.removeEventListener("beforeunload",e.showUnsavedChangesWarning)})),e}return t=a,(r=[{key:"render",value:function(){var e=this.props,t=e.saveState,r=e.cloudItemId,n=e.saveProgress,o=this.state,a=o.label,i=o.fakeLoading,u=this.getButtonIcon(),l=i||t,c=!!i||t!==y.SAVE_STATE_IDLE,s=n&&100!==n?"progress":"";return f.default.createElement(h.default,{type:"button",className:"et-tb-admin-save-button et-tb-admin-save-button--".concat(l),onClick:this.save},f.default.createElement("span",{className:"et-tb-admin-save-button__label"},r&&(0,m.default)("themeBuilder","Save To Divi Cloud"),!r&&a),c&&f.default.createElement(f.default.Fragment,null,f.default.createElement(b.default,{icon:u,size:"14",className:"et-tb-admin-save-button__state et-tb-admin-save-button--".concat(s)}),""!==s&&"".concat(null!=n?n:1,"%")))}}])&&w(t.prototype,r),n&&w(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(f.PureComponent);I(C,"propTypes",{}),I(C,"defaultProps",{}),I(C,"connections",{saveState:(0,d.state)(a||(a=O(["saveState"]))),saveProgress:(0,d.state)(i||(i=O(["saveProgress"]))),unsavedChanges:(0,d.state)(u||(u=O(["unsavedChanges"]))),save:(0,d.sequences)(l||(l=O(["save"]))),saveEditedItemToCloud:(0,d.sequences)(c||(c=O(["librarySave.saveEditedItemToCloud"]))),cloudItemId:(0,d.state)(s||(s=O(["libraryItem.cloudItemId"])))});var A=(0,p.connect)(C.connections,C);t.default=A},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i,u,l,c,s,f,d,p,y,m,h=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=P(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),b=(E(r(1)),r(3)),v=r(9),g=E(r(7)),O=E(r(18)),_=E(r(25)),w=r(74),T=r(4);function E(e){return e&&e.__esModule?e:{default:e}}function P(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(P=function(e){return e?r:t})(e)}function j(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function S(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function I(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M(e,t){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},M(e,t)}function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=k(e);if(t){var o=k(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return A(this,r)}}function A(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return D(e)}function D(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}function R(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&M(e,t)}(a,e);var t,r,n,o=C(a);function a(){var e;I(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return R(D(e=o.call.apply(o,[this].concat(r))),"handleOnAdd",(function(){e.props.openLoadFromLibrary()})),R(D(e),"handleOnReset",(function(){e.props.isLibraryPresetEditorOpen?e.props.onResetPreset():e.props.openPrompt({type:T.PROMPT_TYPE_THEME_BUILDER_RESET})})),R(D(e),"handleOnOpenHistory",(function(){e.props.openHistory()})),R(D(e),"handleOnOpenPortability",(function(){e.props.resetPortabilityState(),e.props.openPortability()})),R(D(e),"handleOnSavePreset",(function(){e.props.openSavePresetModal()})),R(D(e),"getThemeBuilderTitle",(function(){var t=(0,g.default)("themeBuilder","Divi Theme Builder"),r=e.props,n=r.isLibraryPresetEditorOpen,o=r.isLibraryTemplateEditorOpen,a=r.itemTitle;return(n||o)&&""!==a&&(t=a),t})),R(D(e),"render",(function(){var t=e.props.isLibraryTemplateEditorOpen;return h.default.createElement("h1",{className:"et-tb-admin-container-header"},h.default.createElement("span",null,e.getThemeBuilderTitle()),!t&&h.default.createElement(O.default,{tip:(0,g.default)("themeBuilder","Add From Sets Library"),className:"et-common-button--round",onClick:e.handleOnAdd},h.default.createElement(_.default,{icon:"add",size:"14"})),!t&&h.default.createElement(O.default,{tip:(0,g.default)("themeBuilder","Save Theme Builder Set"),className:"et-common-button--round",onClick:e.handleOnSavePreset},h.default.createElement(_.default,{icon:"save",size:"14"})),!t&&h.default.createElement(O.default,{tip:(0,g.default)("themeBuilder","Reset All Templates"),className:"et-common-button--round",onClick:e.handleOnReset},h.default.createElement(_.default,{icon:"delete",size:"14"})),h.default.createElement(O.default,{tip:(0,g.default)("generic","History"),className:"et-common-button--round",onClick:e.handleOnOpenHistory},h.default.createElement(_.default,{icon:"history",size:"14"})),!t&&(0,w.isAllowedAction)(T.CAP_PORTABILITY)&&h.default.createElement(O.default,{tip:(0,g.default)("portability","Portability"),className:"et-common-button--round",onClick:e.handleOnOpenPortability},h.default.createElement(_.default,{icon:"portability",size:"14"})))})),e}return t=a,r&&S(t.prototype,r),n&&S(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(h.PureComponent);R(x,"propTypes",{}),R(x,"defaultProps",{}),R(x,"connections",{isLibraryPresetEditorOpen:(0,b.state)(o||(o=j(["isLibraryPresetEditorOpen"]))),isLibraryTemplateEditorOpen:(0,b.state)(a||(a=j(["isLibraryTemplateEditorOpen"]))),itemTitle:(0,b.state)(i||(i=j(["libraryItem.itemTitle"]))),importFromTBLibrary:(0,b.sequences)(u||(u=j(["templates.importLayoutFromTBLibraryInTemplate"]))),onResetPreset:(0,b.sequences)(l||(l=j(["libraryItem.resetPreset"]))),openHistory:(0,b.sequences)(c||(c=j(["history.openHistory"]))),openLoadFromLibrary:(0,b.sequences)(s||(s=j(["themeBuilderLibrary.openLoadFromLibrary"]))),openPortability:(0,b.sequences)(f||(f=j(["portability.openPortability"]))),resetPortabilityState:(0,b.sequences)(d||(d=j(["portability.resetPortabilityState"]))),openPrompt:(0,b.sequences)(p||(p=j(["prompts.openPrompt"]))),openSavePresetModal:(0,b.sequences)(y||(y=j(["librarySave.openSavePresetModal"]))),setThemeBuilderItemType:(0,b.sequences)(m||(m=j(["themeBuilderLibrary.setThemeBuilderItemType"])))});var L=(0,v.connect)(x.connections,x);t.default=L},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o,a,i,u=h(r(0)),l=r(3),c=r(9),s=r(4),f=h(r(57)),d=h(r(30)),p=h(r(684)),y=h(r(772)),m=h(r(7));function h(e){return e&&e.__esModule?e:{default:e}}function b(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var v={saveToLibraryOpen:(0,l.state)(n||(n=b(["isSaveToLibraryOpen"]))),isTemplateSaveAction:(0,l.state)(o||(o=b(["librarySave.isTemplateSaveAction"]))),isPresetSaveAction:(0,l.state)(a||(a=b(["librarySave.isPresetSaveAction"]))),close:(0,l.sequences)(i||(i=b(["closeCurrentModal"])))},g=(0,c.connect)(v,(function(e){return e.saveToLibraryOpen?u.default.createElement(d.default,null,e.isTemplateSaveAction&&u.default.createElement(p.default,{nameOptionInput:"template_name",modalTitle:(0,m.default)("themeBuilder","Save Theme Builder Template"),modalDescription:(0,m.default)("themeBuilder","Save this template to the Divi Library for later use")}),e.isPresetSaveAction&&u.default.createElement(y.default,{nameOptionInput:"set_name",modalTitle:(0,m.default)("themeBuilder","Save Theme Builder Set"),modalDescription:(0,m.default)("themeBuilder","Save this set of templates to the Divi Library for later use")}),u.default.createElement(f.default,{shortcuts:[{shortcut:s.HOTKEYS_CLOSE,action:function(){e.close()}}]})):null}));t.default=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o,a,i,u,l,c,s,f,d,p=P(r(5)),y=P(r(0)),m=r(3),h=r(9),b=P(r(14)),v=r(172),g=P(r(83)),O=P(r(7)),_=P(r(18)),w=P(r(377)),T=P(r(25)),E=r(4);function P(e){return e&&e.__esModule?e:{default:e}}function j(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var S={close:(0,m.sequences)(n||(n=j(["closeCurrentModal"]))),onSave:(0,m.sequences)(o||(o=j(["librarySave.onSave"]))),setCloudStatus:(0,m.sequences)(a||(a=j(["setCloudStatus"]))),updateCloudToken:(0,m.sequences)(i||(i=j(["updateCloudToken"]))),updateDomainToken:(0,m.sequences)(u||(u=j(["updateDomainToken"]))),categories:(0,m.state)(l||(l=j(["librarySave.templateCategories"]))),cloudStatus:(0,m.state)(c||(c=j(["cloudStatus"]))),saveState:(0,m.state)(s||(s=j(["librarySave.saveState"]))),tags:(0,m.state)(f||(f=j(["librarySave.templateTags"]))),domainToken:(0,m.state)(d||(d=j(["domainToken"])))},I=(0,h.connect)(S,(0,w.default)((function(e){var t,r,n,o=E.SAVE_STATE_IDLE!==e.saveState,a=""!==(0,p.default)(e,"cloudStatus.error",""),i=!o&&a,u=!o&&!a,l=(t={"et-common-button--primary":!a,"et-common-button--cancel":a," et-tb-save-template-button":!0},r="et-tb-save-template-button--".concat(e.saveState),n=!0,r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t);return i?y.default.createElement(g.default,null,y.default.createElement(_.default,{className:(0,b.default)(l),onClick:function(){(0,e.setCloudStatus)({cloudStatus:{}}),e.setStateCloud("off")}},i&&y.default.createElement("span",{className:"et-tb-save-preset-button__label"},(0,O.default)("themeBuilder","Cancel")),o&&y.default.createElement(T.default,{size:"14",icon:(0,v.getIconNameBySaveState)(e.saveState),className:"t-tb-save-template-button__icon"}))):y.default.createElement(g.default,null,y.default.createElement(_.default,{className:(0,b.default)(l),onClick:function(){e.validateFields()&&e.onClick()}},u&&y.default.createElement("span",{className:"et-tb-save-template-button__label"},""!==(0,p.default)(e,"cloudStatus.error","")?(0,O.default)("themeBuilder","Cancel"):"on"===e.cloud?(0,O.default)("themeBuilder","Save To Divi Cloud"):"off"===e.cloud?(0,O.default)("themeBuilder","Save To Divi Library"):void 0),o&&y.default.createElement(T.default,{size:"14",icon:(0,v.getIconNameBySaveState)(e.saveState),className:"t-tb-save-template-button__icon"})))})));t.default=I},function(e,t,r){var n=r(37),o=r(686);e.exports=function(e,t){var r=[];if(!e||!e.length)return r;var a=-1,i=[],u=e.length;for(t=n(t,3);++a<u;){var l=e[a];t(l,a,e)&&(r.push(l),i.push(a))}return o(e,i),r}},function(e,t,r){var n=r(249),o=r(64),a=Array.prototype.splice;e.exports=function(e,t){for(var r=e?t.length:0,i=r-1;r--;){var u=t[r];if(r==i||u!==l){var l=u;o(u)?a.call(e,u,1):n(e,u)}}return e}},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=f(r(8)),a=f(r(5)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),u=f(r(1)),l=f(r(14));r(688);var c=["className","value","options"];function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=O(e);if(t){var o=O(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return v(this,r)}}function v(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return g(e)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}function _(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(u,e);var t,r,n,o=b(u);function u(){var e;y(this,u);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return _(g(e=o.call.apply(o,[this].concat(r))),"onClick",(function(){var t=e.props,r=t.name,n=t.value;(0,t.onChange)(r,"on"===n?"off":"on")})),e}return t=u,r=[{key:"render",value:function(){var e=this.props,t=e.className,r=e.value,n=e.options,o=p(e,c),u="equal"===(0,a.default)(n,"type"),s=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){_(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({className:(0,l.default)({"et-common-toggle":!0,"et-common-toggle--equal":u,"et-common-toggle--on":"on"===r,"et-common-toggle--off":"on"!==r},t),onClick:this.onClick},o);return i.default.createElement("div",s,i.default.createElement("div",{className:"et-common-toggle__label et-common-toggle__label--on"},i.default.createElement("div",{className:"et-common-toggle__text"},n.on),i.default.createElement("div",{className:"et-common-toggle__handle"})),i.default.createElement("div",{className:"et-common-toggle__label et-common-toggle__label--off"},i.default.createElement("div",{className:"et-common-toggle__text"},n.off),i.default.createElement("div",{className:"et-common-toggle__handle"})))}}],r&&m(t.prototype,r),n&&m(t,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(i.PureComponent);_(w,"propTypes",{name:u.default.string,value:u.default.string,onChange:u.default.func,options:u.default.object}),_(w,"defaultProps",{value:"off",onChange:o.default,options:{on:"on",off:"off",type:"default"}});var T=w;t.default=T},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=b(r(16)),a=b(r(690)),i=b(r(29)),u=b(r(17)),l=b(r(12)),c=b(r(51)),s=b(r(5)),f=b(r(32)),d=b(r(253)),p=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=h(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),y=b(r(1)),m=r(691);function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(h=function(e){return e?r:t})(e)}function b(e){return e&&e.__esModule?e:{default:e}}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=E(e);if(t){var o=E(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return w(this,r)}}function w(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return T(e)}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function P(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(747);var j=188,S=13,I=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O(e,t)}(h,e);var t,r,n,y=_(h);function h(){var e;g(this,h);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return P(T(e=y.call.apply(y,[this].concat(r))),"getSuggestions",(function(){var t=e.props,r=t.selectedTags,n=t.allTags;if((0,l.default)(n))return[];var o=(0,u.default)(n,(function(e,t){if(!(0,c.default)(r,(0,i.default)(t)))return{id:t,text:e}}));return(0,d.default)(o)})),P(T(e),"getSelectedTags",(function(){var t=e.props,r=t.selectedTags,n=t.allTags,a=t.markedTags;return(0,l.default)(r)?[]:(0,u.default)(r,(function(e){var t=""!==(0,s.default)(n,[e])?(0,s.default)(n,[e]):e,r=!1;(0,l.default)(a)||(r=(0,c.default)(a,t));var i=r?"et-common-selected-tag-marked":"";return{id:(0,o.default)(e),text:t,className:i}}))})),P(T(e),"suggestionsFilter",(function(e,t){var r=(0,a.default)(e);return(0,f.default)(t,(function(e){return(0,c.default)((0,a.default)(e.text),r)}))})),P(T(e),"onDeleteTag",(function(t){e.props.onTagsChange(t,"remove",e.props.name)})),P(T(e),"onAddTag",(function(t){e.props.onTagsChange(t,"add",e.props.name)})),P(T(e),"renderSuggestion",(function(t,r){var n=e.props.markedTags,o=!1;(0,l.default)(n)||(o=(0,c.default)(n,t.text));var a=o?"et-common-tag-suggestion et-common-tag-marked":"et-common-tag-suggestion";return p.default.createElement("span",{className:a},t.text)})),P(T(e),"render",(function(){return p.default.createElement(m.WithContext,{tags:e.getSelectedTags(),suggestions:e.getSuggestions(),renderSuggestion:e.renderSuggestion,handleFilterSuggestions:e.suggestionsFilter,minQueryLength:0,handleDelete:e.onDeleteTag,handleAddition:e.onAddTag,autocomplete:!0,delimiters:e.props.delimiters,allowDragDrop:!1,autofocus:e.props.autofocus,placeholder:""})})),e}return t=h,r&&v(t.prototype,r),n&&v(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(p.Component);P(I,"propTypes",{delimiters:y.default.array,name:y.default.string,allTags:y.default.oneOfType([y.default.object,y.default.array]),selectedTags:y.default.array,onTagsChange:y.default.oneOfType([y.default.bool,y.default.func]),autofocus:y.default.bool,markedTags:y.default.array}),P(I,"defaultProps",{delimiters:[j,S],name:"TagsInput",allTags:{},selectedTags:[],onTagsChange:!1,autofocus:!1,markedTags:[],tagMark:""});var M=I;t.default=M},function(e,t,r){var n=r(16);e.exports=function(e){return n(e).toLowerCase()}},function(e,t,r){"use strict";var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=r(0),i=v(a),u=r(378),l=v(r(728)),c=v(r(42)),s=v(r(8)),f=v(r(359)),d=v(r(738)),p=v(r(1)),y=v(r(14)),m=v(r(741)),h=r(277),b=r(746);function v(e){return e&&e.__esModule?e:{default:e}}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var O=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));_.call(r),e.inline||console.warn("[Deprecation] The inline attribute is deprecated and will be removed in v7.x.x, please use inputFieldPosition instead.");var n=e.suggestions;return r.state={suggestions:n,query:"",isFocused:!1,selectedIndex:-1,selectionMode:!1},r.handleFocus=r.handleFocus.bind(r),r.handleBlur=r.handleBlur.bind(r),r.handleKeyDown=r.handleKeyDown.bind(r),r.handleChange=r.handleChange.bind(r),r.moveTag=r.moveTag.bind(r),r.handlePaste=r.handlePaste.bind(r),r.resetAndFocusInput=r.resetAndFocusInput.bind(r),r.handleSuggestionHover=r.handleSuggestionHover.bind(r),r.handleSuggestionClick=r.handleSuggestionClick.bind(r),r}return function(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)}(t,e),o(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.autofocus,r=e.readOnly;t&&!r&&this.resetAndFocusInput()}},{key:"componentDidUpdate",value:function(e){(0,c.default)(e.suggestions,this.props.suggestions)||this.updateSuggestions()}},{key:"filteredSuggestions",value:function(e,t){var r=this;if(this.props.handleFilterSuggestions)return this.props.handleFilterSuggestions(e,t);var n=t.filter((function(t){return 0===r.getQueryIndex(e,t)})),o=t.filter((function(t){return r.getQueryIndex(e,t)>0}));return n.concat(o)}},{key:"resetAndFocusInput",value:function(){this.setState({query:""}),this.textInput&&(this.textInput.value="",this.textInput.focus())}},{key:"handleDelete",value:function(e,t){this.props.handleDelete(e,t),this.props.resetInputOnDelete?this.resetAndFocusInput():this.textInput&&this.textInput.focus(),t.stopPropagation()}},{key:"handleTagClick",value:function(e,t){this.props.handleTagClick&&this.props.handleTagClick(e,t),this.props.resetInputOnDelete?this.resetAndFocusInput():this.textInput&&this.textInput.focus()}},{key:"handleChange",value:function(e){this.props.handleInputChange&&this.props.handleInputChange(e.target.value);var t=e.target.value.trim();this.setState({query:t},this.updateSuggestions)}},{key:"handleFocus",value:function(e){var t=e.target.value;this.props.handleInputFocus&&this.props.handleInputFocus(t),this.setState({isFocused:!0})}},{key:"handleBlur",value:function(e){var t=e.target.value;this.props.handleInputBlur&&(this.props.handleInputBlur(t),this.textInput&&(this.textInput.value="")),this.setState({isFocused:!1})}},{key:"handleKeyDown",value:function(e){var t=this.state,r=t.query,n=t.selectedIndex,o=t.suggestions,a=t.selectionMode;if(e.keyCode===b.KEYS.ESCAPE&&(e.preventDefault(),e.stopPropagation(),this.setState({selectedIndex:-1,selectionMode:!1,suggestions:[]})),-1!==this.props.delimiters.indexOf(e.keyCode)&&!e.shiftKey){e.keyCode===b.KEYS.TAB&&""===r||e.preventDefault();var i=a&&-1!==n?o[n]:g({id:r},this.props.labelField,r);""!==i&&this.addTag(i)}e.keyCode===b.KEYS.BACKSPACE&&""===r&&this.props.allowDeleteFromEmptyInput&&this.handleDelete(this.props.tags.length-1,e),e.keyCode===b.KEYS.UP_ARROW&&(e.preventDefault(),this.setState({selectedIndex:n<=0?o.length-1:n-1,selectionMode:!0})),e.keyCode===b.KEYS.DOWN_ARROW&&(e.preventDefault(),this.setState({selectedIndex:0===o.length?-1:(n+1)%o.length,selectionMode:!0}))}},{key:"handlePaste",value:function(e){var t=this;if(this.props.allowAdditionFromPaste){e.preventDefault();var r=e.clipboardData||window.clipboardData,n=r.getData("text"),o=this.props.maxLength,a=void 0===o?n.length:o,i=Math.min(a,n.length),u=r.getData("text").substr(0,i),l=(0,h.buildRegExpFromDelimiters)(this.props.delimiters),c=u.split(l);(0,f.default)(c).forEach((function(e){return t.addTag(g({id:e},t.props.labelField,e))}))}}},{key:"handleSuggestionClick",value:function(e){this.addTag(this.state.suggestions[e])}},{key:"handleSuggestionHover",value:function(e){this.setState({selectedIndex:e,selectionMode:!0})}},{key:"moveTag",value:function(e,t){var r=this.props.tags[e];this.props.handleDrag(r,e,t)}},{key:"render",value:function(){var e=this,t=this.getTagItems(),r=n({},b.DEFAULT_CLASSNAMES,this.props.classNames),o=this.state.query.trim(),a=this.state.selectedIndex,u=this.state.suggestions,l=this.props,c=l.placeholder,s=l.name,f=l.id,p=l.maxLength,m=l.inline,h=l.inputFieldPosition,v=m?h:b.INPUT_FIELD_POSITIONS.BOTTOM,g=this.props.readOnly?null:i.default.createElement("div",{className:r.tagInput},i.default.createElement("input",{ref:function(t){e.textInput=t},className:r.tagInputField,type:"text",placeholder:c,"aria-label":c,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handleChange,onKeyDown:this.handleKeyDown,onPaste:this.handlePaste,name:s,id:f,maxLength:p,value:this.props.inputValue}),i.default.createElement(d.default,{query:o,suggestions:u,labelField:this.props.labelField,selectedIndex:a,handleClick:this.handleSuggestionClick,handleHover:this.handleSuggestionHover,minQueryLength:this.props.minQueryLength,shouldRenderSuggestions:this.props.shouldRenderSuggestions,isFocused:this.state.isFocused,classNames:r,renderSuggestion:this.props.renderSuggestion}));return i.default.createElement("div",{className:(0,y.default)(r.tags,"react-tags-wrapper")},v===b.INPUT_FIELD_POSITIONS.TOP&&g,i.default.createElement("div",{className:r.selected},t,v===b.INPUT_FIELD_POSITIONS.INLINE&&g),v===b.INPUT_FIELD_POSITIONS.BOTTOM&&g)}}]),t}(a.Component);O.propTypes={placeholder:p.default.string,labelField:p.default.string,suggestions:p.default.arrayOf(p.default.shape({id:p.default.string.isRequired})),delimiters:p.default.arrayOf(p.default.number),autofocus:p.default.bool,inline:p.default.bool,inputFieldPosition:p.default.oneOf([b.INPUT_FIELD_POSITIONS.INLINE,b.INPUT_FIELD_POSITIONS.TOP,b.INPUT_FIELD_POSITIONS.BOTTOM]),handleDelete:p.default.func,handleAddition:p.default.func,handleDrag:p.default.func,handleFilterSuggestions:p.default.func,handleTagClick:p.default.func,allowDeleteFromEmptyInput:p.default.bool,allowAdditionFromPaste:p.default.bool,allowDragDrop:p.default.bool,resetInputOnDelete:p.default.bool,handleInputChange:p.default.func,handleInputFocus:p.default.func,handleInputBlur:p.default.func,minQueryLength:p.default.number,shouldRenderSuggestions:p.default.func,removeComponent:p.default.func,autocomplete:p.default.oneOfType([p.default.bool,p.default.number]),readOnly:p.default.bool,classNames:p.default.object,name:p.default.string,id:p.default.string,maxLength:p.default.number,inputValue:p.default.string,tags:p.default.arrayOf(p.default.shape({id:p.default.string.isRequired,className:p.default.string})),allowUnique:p.default.bool,renderSuggestion:p.default.func},O.defaultProps={placeholder:b.DEFAULT_PLACEHOLDER,labelField:b.DEFAULT_LABEL_FIELD,suggestions:[],delimiters:[b.KEYS.ENTER,b.KEYS.TAB],autofocus:!0,inline:!0,inputFieldPosition:b.INPUT_FIELD_POSITIONS.INLINE,handleDelete:s.default,handleAddition:s.default,allowDeleteFromEmptyInput:!0,allowAdditionFromPaste:!0,resetInputOnDelete:!0,autocomplete:!1,readOnly:!1,allowUnique:!0,allowDragDrop:!0,tags:[]};var _=function(){var e=this;this.getQueryIndex=function(t,r){return r[e.props.labelField].toLowerCase().indexOf(t.toLowerCase())},this.updateSuggestions=function(){var t=e.state,r=t.query,n=t.selectedIndex,o=e.filteredSuggestions(r,e.props.suggestions);e.setState({suggestions:o,selectedIndex:n>=o.length?o.length-1:n})},this.addTag=function(t){var r=e.props,n=r.tags,o=r.labelField,a=r.allowUnique;if(t.id&&t[o]){var i=n.map((function(e){return e.id.toLowerCase()}));if(!(a&&i.indexOf(t.id.toLowerCase())>=0)){if(e.props.autocomplete){var u=e.filteredSuggestions(t[o],e.props.suggestions);(1===e.props.autocomplete&&1===u.length||!0===e.props.autocomplete&&u.length)&&(t=u[0])}e.props.handleAddition(t),e.setState({query:"",selectionMode:!1,selectedIndex:-1}),e.resetAndFocusInput()}}},this.getTagItems=function(){var t=e.props,r=t.classNames,o=t.tags,a=t.labelField,u=t.removeComponent,l=t.readOnly,c=t.allowDragDrop,s=c?e.moveTag:null;return o.map((function(t,o){return i.default.createElement(m.default,{key:t.id+"-"+o,index:o,tag:t,labelField:a,onDelete:e.handleDelete.bind(e,o),moveTag:s,removeComponent:u,onTagClicked:e.handleTagClick.bind(e,o),readOnly:l,classNames:n({},b.DEFAULT_CLASSNAMES,r),allowDragDrop:c})}))}};e.exports={WithContext:(0,u.DragDropContext)(l.default)(O),WithOutContext:O,KEYS:b.KEYS}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(693);Object.defineProperty(t,"DragDropManager",{enumerable:!0,get:function(){return u(n).default}});var o=r(708);Object.defineProperty(t,"DragSource",{enumerable:!0,get:function(){return u(o).default}});var a=r(709);Object.defineProperty(t,"DropTarget",{enumerable:!0,get:function(){return u(a).default}});var i=r(710);function u(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"createTestBackend",{enumerable:!0,get:function(){return u(i).default}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=l(r(694)),a=l(r(697)),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(184)),u=l(r(703));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(this,e);var n=(0,o.default)(a.default);this.context=r,this.store=n,this.monitor=new u.default(n),this.registry=this.monitor.registry,this.backend=t(this),n.subscribe(this.handleRefCountChange.bind(this))}return n(e,[{key:"handleRefCountChange",value:function(){var e=this.store.getState().refCount>0;e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1)}},{key:"getContext",value:function(){return this.context}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.registry}},{key:"getActions",value:function(){var e=this,t=this.store.dispatch;return Object.keys(i).filter((function(e){return"function"==typeof i[e]})).reduce((function(r,n){var o,a=i[n];return r[n]=(o=a,function(){for(var r=arguments.length,n=Array(r),a=0;a<r;a++)n[a]=arguments[a];var i=o.apply(e,n);void 0!==i&&t(i)}),r}),{})}}]),e}();t.default=s},function(e,t,r){"use strict";t.__esModule=!0,t.ActionTypes=void 0,t.default=function e(t,r,a){var u;"function"==typeof r&&void 0===a&&(a=r,r=void 0);if(void 0!==a){if("function"!=typeof a)throw new Error("Expected the enhancer to be a function.");return a(e)(t,r)}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var l=t,c=r,s=[],f=s,d=!1;function p(){f===s&&(f=s.slice())}function y(){return c}function m(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return p(),f.push(e),function(){if(t){t=!1,p();var r=f.indexOf(e);f.splice(r,1)}}}function h(e){if(!(0,n.default)(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,c=l(c,e)}finally{d=!1}for(var t=s=f,r=0;r<t.length;r++){(0,t[r])()}return e}return h({type:i.INIT}),(u={dispatch:h,subscribe:m,getState:y,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");l=e,h({type:i.INIT})}})[o.default]=function(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e)throw new TypeError("Expected the observer to be an object.");function r(){e.next&&e.next(y())}return r(),{unsubscribe:t(r)}}})[o.default]=function(){return this},e},u};var n=a(r(43)),o=a(r(695));function a(e){return e&&e.__esModule?e:{default:e}}var i=t.ActionTypes={INIT:"@@redux/INIT"}},function(e,t,r){"use strict";r.r(t),function(e,n){var o,a=r(390);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:n;var i=Object(a.a)(o);t.default=i}.call(this,r(59),r(696)(e))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];return{dirtyHandlerIds:(0,i.default)(e.dirtyHandlerIds,t,e.dragOperation),dragOffset:(0,n.default)(e.dragOffset,t),refCount:(0,a.default)(e.refCount,t),dragOperation:(0,o.default)(e.dragOperation,t),stateId:(0,u.default)(e.stateId)}};var n=l(r(380)),o=l(r(698)),a=l(r(699)),i=l(r(382)),u=l(r(702));function l(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments[1];switch(t.type){case u.BEGIN_DRAG:return n({},e,{itemType:t.itemType,item:t.item,sourceId:t.sourceId,isSourcePublic:t.isSourcePublic,dropResult:null,didDrop:!1});case u.PUBLISH_DRAG_SOURCE:return n({},e,{isSourcePublic:!0});case u.HOVER:return n({},e,{targetIds:t.targetIds});case l.REMOVE_TARGET:return-1===e.targetIds.indexOf(t.targetId)?e:n({},e,{targetIds:(0,i.default)(e.targetIds,t.targetId)});case u.DROP:return n({},e,{dropResult:t.dropResult,didDrop:!0,targetIds:[]});case u.END_DRAG:return n({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}};var o,a=r(56),i=(o=a)&&o.__esModule?o:{default:o},u=r(184),l=r(185);var c={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments[1];switch(t.type){case n.ADD_SOURCE:case n.ADD_TARGET:return e+1;case n.REMOVE_SOURCE:case n.REMOVE_TARGET:return e-1;default:return e}};var n=r(185)},function(e,t,r){var n=r(228),o=r(50),a=r(701),i=r(79),u=o((function(e){return a(n(e,i))}));e.exports=u},function(e,t,r){var n=r(251),o=r(107),a=r(171);e.exports=function(e,t,r){var i=e.length;if(i<2)return i?a(e[0]):[];for(var u=-1,l=Array(i);++u<i;)for(var c=e[u],s=-1;++s<i;)s!=u&&(l[u]=n(l[u]||c,e[s],t,r));return a(o(l,1),t,r)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e+1}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=s(r(40)),a=s(r(10)),i=s(r(381)),u=s(r(704)),l=r(380),c=r(382);function s(e){return e&&e.__esModule?e:{default:e}}var f=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.registry=new u.default(t)}return n(e,[{key:"subscribeToStateChange",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.handlerIds;(0,o.default)("function"==typeof e,"listener must be a function."),(0,o.default)(void 0===n||(0,a.default)(n),"handlerIds, when specified, must be an array of strings.");var i=this.store.getState().stateId,u=function(){var r=t.store.getState(),o=r.stateId;try{o===i||o===i+1&&!(0,c.areDirty)(r.dirtyHandlerIds,n)||e()}finally{i=o}};return this.store.subscribe(u)}},{key:"subscribeToOffsetChange",value:function(e){var t=this;(0,o.default)("function"==typeof e,"listener must be a function.");var r=this.store.getState().dragOffset;return this.store.subscribe((function(){var n=t.store.getState().dragOffset;n!==r&&(r=n,e())}))}},{key:"canDragSource",value:function(e){var t=this.registry.getSource(e);return(0,o.default)(t,"Expected to find a valid source."),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){var t=this.registry.getTarget(e);if((0,o.default)(t,"Expected to find a valid target."),!this.isDragging()||this.didDrop())return!1;var r=this.registry.getTargetType(e),n=this.getItemType();return(0,i.default)(r,n)&&t.canDrop(this,e)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){var t=this.registry.getSource(e,!0);return(0,o.default)(t,"Expected to find a valid source."),!(!this.isDragging()||!this.isSourcePublic())&&(this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e))}},{key:"isOverTarget",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1},r=t.shallow;if(!this.isDragging())return!1;var n=this.registry.getTargetType(e),o=this.getItemType();if(!(0,i.default)(n,o))return!1;var a=this.getTargetIds();if(!a.length)return!1;var u=a.indexOf(e);return r?u===a.length-1:u>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return(0,l.getSourceClientOffset)(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return(0,l.getDifferenceFromInitialOffset)(this.store.getState().dragOffset)}}]),e}();t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=s(r(40)),i=s(r(10)),u=s(r(705)),l=r(185),c=s(r(707));function s(e){return e&&e.__esModule?e:{default:e}}var f="SOURCE",d="TARGET";function p(e,t){t&&(0,i.default)(e)?e.forEach((function(e){return p(e,!1)})):(0,a.default)("string"==typeof e||"symbol"===(void 0===e?"undefined":o(e)),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}function y(e){switch(e[0]){case"S":return f;case"T":return d;default:(0,a.default)(!1,"Cannot parse handler ID: "+e)}}var m=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.types={},this.handlers={},this.pinnedSourceId=null,this.pinnedSource=null}return n(e,[{key:"addSource",value:function(e,t){p(e),function(e){(0,a.default)("function"==typeof e.canDrag,"Expected canDrag to be a function."),(0,a.default)("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),(0,a.default)("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);var r=this.addHandler(f,e,t);return this.store.dispatch((0,l.addSource)(r)),r}},{key:"addTarget",value:function(e,t){p(e,!0),function(e){(0,a.default)("function"==typeof e.canDrop,"Expected canDrop to be a function."),(0,a.default)("function"==typeof e.hover,"Expected hover to be a function."),(0,a.default)("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);var r=this.addHandler(d,e,t);return this.store.dispatch((0,l.addTarget)(r)),r}},{key:"addHandler",value:function(e,t,r){var n=function(e){var t=(0,c.default)().toString();switch(e){case f:return"S"+t;case d:return"T"+t;default:(0,a.default)(!1,"Unknown role: "+e)}}(e);return this.types[n]=t,this.handlers[n]=r,n}},{key:"containsHandler",value:function(e){var t=this;return Object.keys(this.handlers).some((function(r){return t.handlers[r]===e}))}},{key:"getSource",value:function(e,t){return(0,a.default)(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.handlers[e]}},{key:"getTarget",value:function(e){return(0,a.default)(this.isTargetId(e),"Expected a valid target ID."),this.handlers[e]}},{key:"getSourceType",value:function(e){return(0,a.default)(this.isSourceId(e),"Expected a valid source ID."),this.types[e]}},{key:"getTargetType",value:function(e){return(0,a.default)(this.isTargetId(e),"Expected a valid target ID."),this.types[e]}},{key:"isSourceId",value:function(e){return y(e)===f}},{key:"isTargetId",value:function(e){return y(e)===d}},{key:"removeSource",value:function(e){var t=this;(0,a.default)(this.getSource(e),"Expected an existing source."),this.store.dispatch((0,l.removeSource)(e)),(0,u.default)((function(){delete t.handlers[e],delete t.types[e]}))}},{key:"removeTarget",value:function(e){var t=this;(0,a.default)(this.getTarget(e),"Expected an existing target."),this.store.dispatch((0,l.removeTarget)(e)),(0,u.default)((function(){delete t.handlers[e],delete t.types[e]}))}},{key:"pinSource",value:function(e){var t=this.getSource(e);(0,a.default)(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){(0,a.default)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}}]),e}();t.default=m},function(e,t,r){"use strict";var n=r(706),o=[],a=[],i=n.makeRequestCallFromTimer((function(){if(a.length)throw a.shift()}));function u(e){var t;(t=o.length?o.pop():new l).task=e,n(t)}function l(){this.task=null}e.exports=u,l.prototype.call=function(){try{this.task.call()}catch(e){u.onerror?u.onerror(e):(a.push(e),i())}finally{this.task=null,o[o.length]=this}}},function(e,t,r){"use strict";(function(t){function r(e){o.length||(n(),!0),o[o.length]=e}e.exports=r;var n,o=[],a=0;function i(){for(;a<o.length;){var e=a;if(a+=1,o[e].call(),a>1024){for(var t=0,r=o.length-a;t<r;t++)o[t]=o[t+a];o.length-=a,a=0}}o.length=0,a=0,!1}var u,l,c,s=void 0!==t?t:self,f=s.MutationObserver||s.WebKitMutationObserver;function d(e){return function(){var t=setTimeout(n,0),r=setInterval(n,50);function n(){clearTimeout(t),clearInterval(r),e()}}}"function"==typeof f?(u=1,l=new f(i),c=document.createTextNode(""),l.observe(c,{characterData:!0}),n=function(){u=-u,c.data=u}):n=d(i),r.requestFlush=n,r.makeRequestCallFromTimer=d}).call(this,r(59))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return n++};var n=0},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return n(e,[{key:"canDrag",value:function(){return!0}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}]),e}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return n(e,[{key:"canDrop",value:function(){return!0}},{key:"hover",value:function(){}},{key:"drop",value:function(){}}]),e}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();t.default=function(e){return new u(e)};var o,a=r(8),i=(o=a)&&o.__esModule?o:{default:o};var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.actions=t.getActions()}return n(e,[{key:"setup",value:function(){this.didCallSetup=!0}},{key:"teardown",value:function(){this.didCallTeardown=!0}},{key:"connectDragSource",value:function(){return i.default}},{key:"connectDragPreview",value:function(){return i.default}},{key:"connectDropTarget",value:function(){return i.default}},{key:"simulateBeginDrag",value:function(e,t){this.actions.beginDrag(e,t)}},{key:"simulatePublishDragSource",value:function(){this.actions.publishDragSource()}},{key:"simulateHover",value:function(e,t){this.actions.hover(e,t)}},{key:"simulateDrop",value:function(){this.actions.drop()}},{key:"simulateEndDrag",value:function(){this.actions.endDrag()}}]),e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o,a,i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),u=r(0),l=r(1),c=(a=l)&&a.__esModule?a:{default:a},s=r(379);var f=(o=n=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.backend=(0,s.unpackBackendForEs5Users)(e.backend),n.childContext=(0,s.createChildContext)(n.backend,{window:e&&e.window?e.window:r&&r.window?r.window:"undefined"!=typeof window?window:void 0}),n}return function(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)}(t,e),i(t,[{key:"componentWillReceiveProps",value:function(e){if(e.backend!==this.props.backend||e.window!==this.props.window)throw new Error("DragDropContextProvider backend and window props must not change.")}},{key:"getChildContext",value:function(){return this.childContext}},{key:"render",value:function(){return u.Children.only(this.props.children)}}]),t}(u.Component),n.propTypes={backend:c.default.oneOfType([c.default.func,c.default.object]).isRequired,children:c.default.element.isRequired,window:c.default.object},n.defaultProps={window:void 0},n.childContextTypes=s.CHILD_CONTEXT_TYPES,n.displayName="DragDropContextProvider",n.contextTypes={window:c.default.object},o);t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return y.default.apply(void 0,["DragLayer","collect[, options]"].concat(Array.prototype.slice.call(arguments))),(0,f.default)("function"==typeof e,'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-layer.html",e),(0,f.default)((0,s.default)(t),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-layer.html',t),function(r){var s,y,m=t.arePropsEqual,g=void 0===m?p.default:m,O=r.displayName||r.name||"Component",_=(y=s=function(t){function i(e,t){h(this,i);var r=b(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e));return r.handleChange=r.handleChange.bind(r),r.manager=t.dragDropManager,(0,f.default)("object"===o(r.manager),"Could not find the drag and drop manager in the context of %s. Make sure to wrap the top-level component of your app with DragDropContext. Read more: http://react-dnd.github.io/react-dnd/docs-troubleshooting.html#could-not-find-the-drag-and-drop-manager-in-the-context",O,O),r.state=r.getCurrentState(),r}return v(i,t),a(i,[{key:"getDecoratedComponentInstance",value:function(){return(0,f.default)(this.child,"In order to access an instance of the decorated component it can not be a stateless component."),this.child}},{key:"shouldComponentUpdate",value:function(e,t){return!g(e,this.props)||!(0,d.default)(t,this.state)}}]),a(i,[{key:"componentDidMount",value:function(){this.isCurrentlyMounted=!0;var e=this.manager.getMonitor();this.unsubscribeFromOffsetChange=e.subscribeToOffsetChange(this.handleChange),this.unsubscribeFromStateChange=e.subscribeToStateChange(this.handleChange),this.handleChange()}},{key:"componentWillUnmount",value:function(){this.isCurrentlyMounted=!1,this.unsubscribeFromOffsetChange(),this.unsubscribeFromStateChange()}},{key:"handleChange",value:function(){if(this.isCurrentlyMounted){var e=this.getCurrentState();(0,d.default)(e,this.state)||this.setState(e)}}},{key:"getCurrentState",value:function(){var t=this.manager.getMonitor();return e(t,this.props)}},{key:"render",value:function(){var e=this;return u.default.createElement(r,n({},this.props,this.state,{ref:function(t){e.child=t}}))}}]),i}(i.Component),s.DecoratedComponent=r,s.displayName="DragLayer("+O+")",s.contextTypes={dragDropManager:l.default.object.isRequired},y);return(0,c.default)(_,r)}};var i=r(0),u=m(i),l=m(r(1)),c=m(r(174)),s=m(r(43)),f=m(r(40)),d=m(r(274)),p=m(r(383)),y=m(r(186));function m(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(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 v(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)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){var d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};a.default.apply(void 0,["DragSource","type, spec, collect[, options]"].concat(Array.prototype.slice.call(arguments)));var p=e;"function"!=typeof e&&((0,n.default)((0,f.default)(e),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',e),p=function(){return e});(0,n.default)((0,o.default)(t),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',t);var y=(0,l.default)(t);return(0,n.default)("function"==typeof r,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',r),(0,n.default)((0,o.default)(d),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',r),function(e){return(0,i.default)({connectBackend:function(e,t){return e.connectDragSource(t)},containerDisplayName:"DragSource",createHandler:y,registerHandler:u.default,createMonitor:c.default,createConnector:s.default,DecoratedComponent:e,getType:p,collect:r,options:d})}};var n=d(r(40)),o=d(r(43)),a=d(r(186)),i=d(r(384)),u=d(r(718)),l=d(r(719)),c=d(r(720)),s=d(r(721)),f=d(r(387));function d(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(r(275));t.isDisposable=o.default;var a=n(r(715));t.Disposable=a.default;var i=n(r(716));t.CompositeDisposable=i.default;var u=n(r(717));t.SerialDisposable=u.default},function(e,t,r){"use strict";t.__esModule=!0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var o=function(){},a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.isDisposed=!1,this.action=t||o}return n(e,null,[{key:"empty",value:{dispose:o},enumerable:!0}]),e.prototype.dispose=function(){this.isDisposed||(this.action.call(null),this.isDisposed=!0)},e}();t.default=a,e.exports=t.default},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var o,a=r(275),i=(o=a)&&o.__esModule?o:{default:o},u=function(){function e(){for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];n(this,e),Array.isArray(r[0])&&1===r.length&&(r=r[0]);for(var a=0;a<r.length;a++)if(!i.default(r[a]))throw new Error("Expected a disposable");this.disposables=r,this.isDisposed=!1}return e.prototype.add=function(e){this.isDisposed?e.dispose():this.disposables.push(e)},e.prototype.remove=function(e){if(this.isDisposed)return!1;var t=this.disposables.indexOf(e);return-1!==t&&(this.disposables.splice(t,1),e.dispose(),!0)},e.prototype.dispose=function(){if(!this.isDisposed){for(var e=this.disposables.length,t=new Array(e),r=0;r<e;r++)t[r]=this.disposables[r];this.isDisposed=!0,this.disposables=[],this.length=0;for(r=0;r<e;r++)t[r].dispose()}},e}();t.default=u,e.exports=t.default},function(e,t,r){"use strict";t.__esModule=!0;var n,o=r(275),a=(n=o)&&n.__esModule?n:{default:n},i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.isDisposed=!1,this.current=null}return e.prototype.getDisposable=function(){return this.current},e.prototype.setDisposable=function(){var e=arguments.length<=0||void 0===arguments[0]?null:arguments[0];if(null!=e&&!a.default(e))throw new Error("Expected either an empty value or a valid disposable");var t=this.isDisposed,r=void 0;t||(r=this.current,this.current=e),r&&r.dispose(),t&&e&&e.dispose()},e.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=null,e&&e.dispose()}},e}();t.default=i,e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){var n=r.getRegistry(),o=n.addSource(e,t);return{handlerId:o,unregister:function(){n.removeSource(o)}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();t.default=function(e){Object.keys(e).forEach((function(t){(0,o.default)(i.indexOf(t)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',i.join(", "),t),(0,o.default)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html",t,t,e[t])})),u.forEach((function(t){(0,o.default)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html",t,t,e[t])}));var t=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.monitor=e,this.props=null,this.component=null}return n(t,[{key:"receiveProps",value:function(e){this.props=e}},{key:"receiveComponent",value:function(e){this.component=e}},{key:"canDrag",value:function(){return!e.canDrag||e.canDrag(this.props,this.monitor)}},{key:"isDragging",value:function(t,r){return e.isDragging?e.isDragging(this.props,this.monitor):r===t.getSourceId()}},{key:"beginDrag",value:function(){return e.beginDrag(this.props,this.monitor,this.component)}},{key:"endDrag",value:function(){e.endDrag&&e.endDrag(this.props,this.monitor,this.component)}}]),t}();return function(e){return new t(e)}};var o=a(r(40));a(r(43));function a(e){return e&&e.__esModule?e:{default:e}}var i=["canDrag","beginDrag","isDragging","endDrag"],u=["beginDrag"]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();t.default=function(e){return new c(e)};var o,a=r(40),i=(o=a)&&o.__esModule?o:{default:o};var u=!1,l=!1,c=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.internalMonitor=t.getMonitor()}return n(e,[{key:"receiveHandlerId",value:function(e){this.sourceId=e}},{key:"canDrag",value:function(){(0,i.default)(!u,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source-monitor.html");try{return u=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{u=!1}}},{key:"isDragging",value:function(){(0,i.default)(!l,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source-monitor.html");try{return l=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{l=!1}}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=void 0,r=void 0,a=void 0,i=void 0,u=void 0,l=void 0,c=void 0;function s(){i&&(i(),i=null),t&&r&&(i=e.connectDragSource(t,r,a))}function f(){c&&(c(),c=null),t&&u&&(c=e.connectDragPreview(t,u,l))}return{receiveHandlerId:function(e){e!==t&&(t=e,s(),f())},hooks:(0,n.default)({dragSource:function(e,t){e===r&&(0,o.default)(t,a)||(r=e,a=t,s())},dragPreview:function(e,t){e===u&&(0,o.default)(t,l)||(u=e,l=t,f())}})}};var n=a(r(385)),o=a(r(386));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=e.ref;if((0,a.default)("string"!=typeof r,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),!r)return(0,i.cloneElement)(e,{ref:t});return(0,i.cloneElement)(e,{ref:function(e){t(e),r&&r(e)}})};var n,o=r(40),a=(n=o)&&n.__esModule?n:{default:n},i=r(0)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){var d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};a.default.apply(void 0,["DropTarget","type, spec, collect[, options]"].concat(Array.prototype.slice.call(arguments)));var p=e;"function"!=typeof e&&((0,n.default)((0,f.default)(e,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',e),p=function(){return e});(0,n.default)((0,o.default)(t),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',t);var y=(0,l.default)(t);return(0,n.default)("function"==typeof r,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',r),(0,n.default)((0,o.default)(d),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',r),function(e){return(0,i.default)({connectBackend:function(e,t){return e.connectDropTarget(t)},containerDisplayName:"DropTarget",createHandler:y,registerHandler:u.default,createMonitor:c.default,createConnector:s.default,DecoratedComponent:e,getType:p,collect:r,options:d})}};var n=d(r(40)),o=d(r(43)),a=d(r(186)),i=d(r(384)),u=d(r(724)),l=d(r(725)),c=d(r(726)),s=d(r(727)),f=d(r(387));function d(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){var n=r.getRegistry(),o=n.addTarget(e,t);return{handlerId:o,unregister:function(){n.removeTarget(o)}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();t.default=function(e){Object.keys(e).forEach((function(t){(0,o.default)(i.indexOf(t)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',i.join(", "),t),(0,o.default)("function"==typeof e[t],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html",t,t,e[t])}));var t=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.monitor=e,this.props=null,this.component=null}return n(t,[{key:"receiveProps",value:function(e){this.props=e}},{key:"receiveMonitor",value:function(e){this.monitor=e}},{key:"receiveComponent",value:function(e){this.component=e}},{key:"canDrop",value:function(){return!e.canDrop||e.canDrop(this.props,this.monitor)}},{key:"hover",value:function(){e.hover&&e.hover(this.props,this.monitor,this.component)}},{key:"drop",value:function(){if(e.drop)return e.drop(this.props,this.monitor,this.component)}}]),t}();return function(e){return new t(e)}};var o=a(r(40));a(r(43));function a(e){return e&&e.__esModule?e:{default:e}}var i=["canDrop","hover","drop"]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();t.default=function(e){return new l(e)};var o,a=r(40),i=(o=a)&&o.__esModule?o:{default:o};var u=!1,l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.internalMonitor=t.getMonitor()}return n(e,[{key:"receiveHandlerId",value:function(e){this.targetId=e}},{key:"canDrop",value:function(){(0,i.default)(!u,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target-monitor.html");try{return u=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{u=!1}}},{key:"isOver",value:function(e){return this.internalMonitor.isOverTarget(this.targetId,e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=void 0,r=void 0,a=void 0,i=void 0;function u(){i&&(i(),i=null),t&&r&&(i=e.connectDropTarget(t,r,a))}return{receiveHandlerId:function(e){e!==t&&(t=e,u())},hooks:(0,n.default)({dropTarget:function(e,t){e===r&&(0,o.default)(t,a)||(r=e,a=t,u())}})}};var n=a(r(385)),o=a(r(386));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEmptyImage=t.NativeTypes=void 0,t.default=function(e){return new n.default(e)};var n=i(r(729)),o=i(r(737)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(276));function i(e){return e&&e.__esModule?e:{default:e}}t.NativeTypes=a,t.getEmptyImage=o.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=f(r(730)),a=f(r(731)),i=f(r(732)),u=r(388),l=r(734),c=r(736),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(276));function f(e){return e&&e.__esModule?e:{default:e}}function d(){var e=ET_Builder.Frames.top.document.querySelectorAll(".media-modal.wp-core-ui"),t=e.length?e[e.length-1]:null;return null!==t&&"object"==typeof t&&"none"!==t.parentElement.style.display}var p=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.context=t.getContext(),this.sourcePreviewNodes={},this.sourcePreviewNodeOptions={},this.sourceNodes={},this.sourceNodeOptions={},this.enterLeaveCounter=new i.default,this.dragStartSourceIds=[],this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.currentDragSourceNodeOffset=null,this.currentDragSourceNodeOffsetChanged=!1,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.getSourceClientOffset=this.getSourceClientOffset.bind(this),this.handleTopDragStart=this.handleTopDragStart.bind(this),this.handleTopDragStartCapture=this.handleTopDragStartCapture.bind(this),this.handleTopDragEndCapture=this.handleTopDragEndCapture.bind(this),this.handleTopDragEnter=this.handleTopDragEnter.bind(this),this.handleTopDragEnterCapture=this.handleTopDragEnterCapture.bind(this),this.handleTopDragLeaveCapture=this.handleTopDragLeaveCapture.bind(this),this.handleTopDragOver=this.handleTopDragOver.bind(this),this.handleTopDragOverCapture=this.handleTopDragOverCapture.bind(this),this.handleTopDrop=this.handleTopDrop.bind(this),this.handleTopDropCapture=this.handleTopDropCapture.bind(this),this.handleSelectStart=this.handleSelectStart.bind(this),this.endDragIfSourceWasRemovedFromDOM=this.endDragIfSourceWasRemovedFromDOM.bind(this),this.endDragNativeItem=this.endDragNativeItem.bind(this),this.asyncEndDragNativeItem=this.asyncEndDragNativeItem.bind(this),this.isNodeInDocument=this.isNodeInDocument.bind(this)}return n(e,[{key:"setup",value:function(){if(void 0!==this.window){if(this.window.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");this.window.__isReactDndBackendSetUp=!0,this.addEventListeners(this.window)}}},{key:"teardown",value:function(){void 0!==this.window&&(this.window.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.window),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&this.window.cancelAnimationFrame(this.asyncEndDragFrameId))}},{key:"addEventListeners",value:function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"connectDragPreview",value:function(e,t,r){var n=this;return this.sourcePreviewNodeOptions[e]=r,this.sourcePreviewNodes[e]=t,function(){delete n.sourcePreviewNodes[e],delete n.sourcePreviewNodeOptions[e]}}},{key:"connectDragSource",value:function(e,t,r){var n=this;this.sourceNodes[e]=t,this.sourceNodeOptions[e]=r;var o=function(t){return n.handleDragStart(t,e)},a=function(t){return n.handleSelectStart(t,e)};return t.setAttribute("draggable",!0),t.addEventListener("dragstart",o),t.addEventListener("selectstart",a),function(){delete n.sourceNodes[e],delete n.sourceNodeOptions[e],t.removeEventListener("dragstart",o),t.removeEventListener("selectstart",a),t.setAttribute("draggable",!1)}}},{key:"connectDropTarget",value:function(e,t){var r=this,n=function(t){return r.handleDragEnter(t,e)},o=function(t){return r.handleDragOver(t,e)},a=function(t){return r.handleDrop(t,e)};return t.addEventListener("dragenter",n),t.addEventListener("dragover",o),t.addEventListener("drop",a),function(){t.removeEventListener("dragenter",n),t.removeEventListener("dragover",o),t.removeEventListener("drop",a)}}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions[e];return(0,o.default)(t||{},{dropEffect:this.altKeyPressed?"copy":"move"})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourcePreviewNodeOptions[e];return(0,o.default)(t||{},{anchorX:.5,anchorY:.5,captureDraggingState:!1})}},{key:"getSourceClientOffset",value:function(e){return(0,l.getNodeClientOffset)(this.sourceNodes[e])}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(s).some((function(t){return s[t]===e}))}},{key:"beginDragNativeItem",value:function(e){this.clearCurrentDragSourceNode();var t=(0,c.createNativeDragSource)(e);this.currentNativeSource=new t,this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"asyncEndDragNativeItem",value:function(){this.asyncEndDragFrameId=this.window.requestAnimationFrame(this.endDragNativeItem)}},{key:"endDragNativeItem",value:function(){this.isDraggingNativeItem()&&(this.actions.endDrag(),this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)}},{key:"isNodeInDocument",value:function(e){return!(!ET_Builder.Frames.top.document.body.contains(e)&&!this.window)&&this.window.document.body.contains(e)}},{key:"endDragIfSourceWasRemovedFromDOM",value:function(){var e=this.currentDragSourceNode;this.isNodeInDocument(e)||this.clearCurrentDragSourceNode()&&this.actions.endDrag()}},{key:"setCurrentDragSourceNode",value:function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.currentDragSourceNodeOffset=(0,l.getNodeClientOffset)(e),this.currentDragSourceNodeOffsetChanged=!1;this.mouseMoveTimeoutTimer=setTimeout((function(){return t.mouseMoveTimeoutId=null,t.window.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}},{key:"clearCurrentDragSourceNode",value:function(){return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.currentDragSourceNodeOffset=null,this.currentDragSourceNodeOffsetChanged=!1,this.window.clearTimeout(this.mouseMoveTimeoutTimer),this.window.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0),this.mouseMoveTimeoutTimer=null,!0)}},{key:"checkIfCurrentDragSourceRectChanged",value:function(){var e=this.currentDragSourceNode;return!!e&&(!!this.currentDragSourceNodeOffsetChanged||(this.currentDragSourceNodeOffsetChanged=!(0,a.default)((0,l.getNodeClientOffset)(e),this.currentDragSourceNodeOffset),this.currentDragSourceNodeOffsetChanged))}},{key:"handleTopDragStartCapture",value:function(){this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]}},{key:"handleDragStart",value:function(e,t){this.dragStartSourceIds.unshift(t)}},{key:"handleTopDragStart",value:function(e){var t=this,r=this.dragStartSourceIds;this.dragStartSourceIds=null;var n=(0,l.getEventClientOffset)(e);this.monitor.isDragging()&&this.actions.endDrag(),this.actions.beginDrag(r,{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});var o=e.dataTransfer,a=(0,c.matchNativeItemType)(o);if(this.monitor.isDragging()){if("function"==typeof o.setDragImage){var i=this.monitor.getSourceId(),u=this.sourceNodes[i],s=this.sourcePreviewNodes[i]||u,f=this.getCurrentSourcePreviewNodeOptions(),d={anchorX:f.anchorX,anchorY:f.anchorY},p={offsetX:f.offsetX,offsetY:f.offsetY},y=(0,l.getDragPreviewOffset)(u,s,n,d,p);o.setDragImage(s,y.x,y.y)}try{o.setData("application/json",{})}catch(e){}this.setCurrentDragSourceNode(e.target),this.getCurrentSourcePreviewNodeOptions().captureDraggingState?this.actions.publishDragSource():setTimeout((function(){return t.actions.publishDragSource()}))}else if(a)this.beginDragNativeItem(a);else{if(!(o.types||e.target.hasAttribute&&e.target.hasAttribute("draggable")))return;e.preventDefault()}}},{key:"handleTopDragEndCapture",value:function(){this.clearCurrentDragSourceNode()&&this.actions.endDrag()}},{key:"handleTopDragEnterCapture",value:function(e){if(this.dragEnterTargetIds=[],this.enterLeaveCounter.enter(e.target)&&!this.monitor.isDragging()){var t=e.dataTransfer,r=(0,c.matchNativeItemType)(t);r&&this.beginDragNativeItem(r)}}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleTopDragEnter",value:function(e){var t=this,r=this.dragEnterTargetIds;(this.dragEnterTargetIds=[],this.monitor.isDragging())&&(this.altKeyPressed=e.altKey,(0,u.isFirefox)()||this.actions.hover(r,{clientOffset:(0,l.getEventClientOffset)(e)}),r.some((function(e){return t.monitor.canDropOnTarget(e)}))&&(e.preventDefault(),e.dataTransfer.dropEffect=this.getCurrentDropEffect()))}},{key:"handleTopDragOverCapture",value:function(){this.dragOverTargetIds=[]}},{key:"handleDragOver",value:function(e,t){this.dragOverTargetIds.unshift(t)}},{key:"handleTopDragOver",value:function(e){if(!d()){var t=this,r=this.dragOverTargetIds;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer.dropEffect="none");this.altKeyPressed=e.altKey,this.actions.hover(r,{clientOffset:(0,l.getEventClientOffset)(e)}),r.some((function(e){return t.monitor.canDropOnTarget(e)}))?(e.preventDefault(),e.dataTransfer.dropEffect=this.getCurrentDropEffect()):this.isDraggingNativeItem()?(e.preventDefault(),e.dataTransfer.dropEffect="none"):this.checkIfCurrentDragSourceRectChanged()&&(e.preventDefault(),e.dataTransfer.dropEffect="move")}}},{key:"handleTopDragLeaveCapture",value:function(e){this.isDraggingNativeItem()&&e.preventDefault(),this.enterLeaveCounter.leave(e.target)&&this.isDraggingNativeItem()&&this.endDragNativeItem()}},{key:"handleTopDropCapture",value:function(e){this.dropTargetIds=[],e.preventDefault(),this.isDraggingNativeItem()&&this.currentNativeSource.mutateItemByReadingDataTransfer(e.dataTransfer),this.enterLeaveCounter.reset()}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}},{key:"handleTopDrop",value:function(e){if(!d()){var t=this.dropTargetIds;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:(0,l.getEventClientOffset)(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.endDragIfSourceWasRemovedFromDOM()}}},{key:"handleSelectStart",value:function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))}},{key:"window",get:function(){return this.context&&this.context.window?this.context.window:"undefined"!=typeof window?window:void 0}}]),e}();t.default=p},function(e,t,r){var n=r(50),o=r(48),a=r(53),i=r(69),u=Object.prototype,l=u.hasOwnProperty,c=n((function(e,t){e=Object(e);var r=-1,n=t.length,c=n>2?t[2]:void 0;for(c&&a(t[0],t[1],c)&&(n=1);++r<n;)for(var s=t[r],f=i(s),d=-1,p=f.length;++d<p;){var y=f[d],m=e[y];(void 0===m||o(m,u[y])&&!l.call(e,y))&&(e[y]=s[y])}return e}));e.exports=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e===t)return!0;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var o=Object.prototype.hasOwnProperty,a=0;a<r.length;a+=1){if(!o.call(t,r[a])||e[r[a]]!==t[r[a]])return!1;var i=e[r[a]],u=t[r[a]];if(i!==u)return!1}return!0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=i(r(733)),a=i(r(56));function i(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.entered=[]}return n(e,[{key:"enter",value:function(e){var t=this.entered.length;return this.entered=(0,o.default)(this.entered.filter((function(t){return document.documentElement.contains(t)&&(!t.contains||t.contains(e))})),[e]),0===t&&this.entered.length>0}},{key:"leave",value:function(e){var t=this.entered.length;return this.entered=(0,a.default)(this.entered.filter((function(e){return document.documentElement.contains(e)})),e),t>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}]),e}();t.default=u},function(e,t,r){var n=r(107),o=r(50),a=r(171),i=r(79),u=o((function(e){return a(n(e,1,i,!0))}));e.exports=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNodeClientOffset=u,t.getEventClientOffset=function(e){return{x:e.clientX,y:e.clientY}},t.getDragPreviewOffset=function(e,t,r,n,a){var l=(_=t,"IMG"===_.nodeName&&((0,o.isFirefox)()||!document.documentElement.contains(_))),c=u(l?e:t),s={x:r.x-c.x,y:r.y-c.y},f=e.offsetWidth,d=e.offsetHeight,p=n.anchorX,y=n.anchorY,m=function(e,t,r,n){var a=e?t.width:r,i=e?t.height:n;(0,o.isSafari)()&&e&&(i/=window.devicePixelRatio,a/=window.devicePixelRatio);return{dragPreviewWidth:a,dragPreviewHeight:i}}(l,t,f,d),h=m.dragPreviewWidth,b=m.dragPreviewHeight,v=a.offsetX,g=a.offsetY,O=0===g||g;var _;return{x:0===v||v?v:new i.default([0,.5,1],[s.x,s.x/f*h,s.x+h-f]).interpolate(p),y:O?g:(w=new i.default([0,.5,1],[s.y,s.y/d*b,s.y+b-d]).interpolate(y),(0,o.isSafari)()&&l&&(w+=(window.devicePixelRatio-1)*b),w)};var w};var n,o=r(388),a=r(735),i=(n=a)&&n.__esModule?n:{default:n};function u(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return null;var r=t.getBoundingClientRect(),n=r.top;return{x:r.left,y:n}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var o=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=t.length,o=[],a=0;a<n;a++)o.push(a);o.sort((function(e,r){return t[e]<t[r]?-1:1}));for(var i=[],u=[],l=[],c=void 0,s=void 0,f=0;f<n-1;f++)c=t[f+1]-t[f],s=r[f+1]-r[f],u.push(c),i.push(s),l.push(s/c);for(var d=[l[0]],p=0;p<u.length-1;p++){var y=l[p],m=l[p+1];if(y*m<=0)d.push(0);else{c=u[p];var h=u[p+1],b=c+h;d.push(3*b/((b+h)/y+(b+c)/m))}}d.push(l[l.length-1]);for(var v=[],g=[],O=void 0,_=0;_<d.length-1;_++){O=l[_];var w=d[_],T=1/u[_],E=w+d[_+1]-O-O;v.push((O-w-E)*T),g.push(E*T*T)}this.xs=t,this.ys=r,this.c1s=d,this.c2s=v,this.c3s=g}return n(e,[{key:"interpolate",value:function(e){var t=this.xs,r=this.ys,n=this.c1s,o=this.c2s,a=this.c3s,i=t.length-1;if(e===t[i])return r[i];for(var u=0,l=a.length-1,c=void 0;u<=l;){var s=t[c=Math.floor(.5*(u+l))];if(s<e)u=c+1;else{if(!(s>e))return r[c];l=c-1}}var f=e-t[i=Math.max(0,l)],d=f*f;return r[i]+n[i]*f+o[i]*d+a[i]*f*d}}]),e}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();t.createNativeDragSource=function(e){var t=l[e],r=t.exposeProperty,n=t.matchesTypes,a=t.getData;return function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.item=(t={},(n={})[r]=n[r]||{},n[r].get=function(){return console.warn("Browser doesn't allow reading \""+r+'" until the drop event.'),null},function(e,t){for(var r in t){var n=t[r];n.configurable=n.enumerable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,r,n)}}(t,n),t)}return o(e,[{key:"mutateItemByReadingDataTransfer",value:function(e){delete this.item[r],this.item[r]=a(e,n)}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}]),e}()},t.matchNativeItemType=function(e){var t=Array.prototype.slice.call(e.types||[]);return Object.keys(l).filter((function(e){return l[e].matchesTypes.some((function(e){return t.indexOf(e)>-1}))}))[0]||null};var a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(276));function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e,t,r){var n=t.reduce((function(t,r){return t||e.getData(r)}),null);return null!=n?n:r}var l=(i(n={},a.FILE,{exposeProperty:"files",matchesTypes:["Files"],getData:function(e){return Array.prototype.slice.call(e.files)}}),i(n,a.URL,{exposeProperty:"urls",matchesTypes:["Url","text/uri-list"],getData:function(e,t){return u(e,t,"").split("\n")}}),i(n,a.TEXT,{exposeProperty:"text",matchesTypes:["Text","text/plain"],getData:function(e,t){return u(e,t,"")}}),n)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){n||((n=new Image).src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==");return n};var n=void 0},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r(0),a=c(o),i=c(r(1)),u=c(r(42)),l=c(r(739));function c(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(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}var d=function(e){function t(){var e,r,n;s(this,t);for(var o=arguments.length,i=Array(o),u=0;u<o;u++)i[u]=arguments[u];return r=n=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),n.markIt=function(e,t){var r=t.trim().replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&");return{__html:e[n.props.labelField].replace(RegExp(r,"gi"),(function(e){return"<mark>"+(0,l.default)(e)+"</mark>"}))}},n.shouldRenderSuggestions=function(e){var t=n.props,r=t.minQueryLength,o=t.isFocused;return e.length>=r&&o},n.renderSuggestion=function(e,t){var r=n.props.renderSuggestion;return"function"==typeof r?r(e,t):a.default.createElement("span",{dangerouslySetInnerHTML:n.markIt(e,t)})},f(n,r)}return function(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)}(t,e),n(t,[{key:"shouldComponentUpdate",value:function(e){var t=this.props,r=t.shouldRenderSuggestions||this.shouldRenderSuggestions;return t.isFocused!==e.isFocused||!(0,u.default)(t.suggestions,e.suggestions)||r(e.query)||r(e.query)!==r(t.query)}},{key:"componentDidUpdate",value:function(e){var t,r,n,o,a,i=this.props,u=i.selectedIndex,l=i.classNames;if(this.suggestionsContainer&&e.selectedIndex!==u){var c=this.suggestionsContainer.querySelector(l.activeSuggestion);c&&(t=c,r=this.suggestionsContainer,n=r.offsetHeight,o=t.offsetHeight,(a=t.offsetTop-r.scrollTop)+o>=n?r.scrollTop+=a-n+o:a<0&&(r.scrollTop+=a))}}},{key:"render",value:function(){var e=this,t=this.props,r=t.suggestions.map(function(e,r){return a.default.createElement("li",{key:r,onMouseDown:t.handleClick.bind(null,r),onTouchStart:t.handleClick.bind(null,r),onMouseOver:t.handleHover.bind(null,r),className:r===t.selectedIndex?t.classNames.activeSuggestion:""},this.renderSuggestion(e,t.query))}.bind(this)),n=t.shouldRenderSuggestions||this.shouldRenderSuggestions;return 0!==r.length&&n(t.query)?a.default.createElement("div",{ref:function(t){e.suggestionsContainer=t},className:this.props.classNames.suggestions},a.default.createElement("ul",null," ",r," ")):null}}]),t}(o.Component);d.propTypes={query:i.default.string.isRequired,selectedIndex:i.default.number.isRequired,suggestions:i.default.array.isRequired,handleClick:i.default.func.isRequired,handleHover:i.default.func.isRequired,minQueryLength:i.default.number,shouldRenderSuggestions:i.default.func,isFocused:i.default.bool.isRequired,classNames:i.default.object,labelField:i.default.string.isRequired,renderSuggestion:i.default.func},d.defaultProps={minQueryLength:2},t.default=d},function(e,t,r){var n=r(740),o=r(16),a=/[&<>"']/g,i=RegExp(a.source);e.exports=function(e){return(e=o(e))&&i.test(e)?e.replace(a,n):e}},function(e,t,r){var n=r(268)({"&":"&","<":"<",">":">",'"':""","'":"'"});e.exports=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=r(0),a=p(o),i=r(378),u=p(r(1)),l=p(r(742)),c=p(r(14)),s=r(743),f=r(277),d=p(r(745));function p(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(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}var h="tag",b=function(e){function t(){return y(this,t),m(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(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)}(t,e),n(t,[{key:"render",value:function(){var e=this.props,t=e.tag[e.labelField],r=e.connectDragSource,n=e.isDragging,o=e.connectDropTarget,i=e.readOnly,u=e.tag,l=e.classNames,s=u.className,p=void 0===s?"":s;return r(o(a.default.createElement("span",{className:(0,c.default)("tag-wrapper",l.tag,p),style:{opacity:n?0:1,cursor:(0,f.canDrag)(e)?"move":"auto"},onClick:e.onTagClicked,onKeyDown:e.onTagClicked,onTouchStart:e.onTagClicked},t,a.default.createElement(d.default,{tag:e.tag,className:l.remove,removeComponent:e.removeComponent,onClick:e.onDelete,readOnly:i}))))}}]),t}(o.Component);b.propTypes={labelField:u.default.string,onDelete:u.default.func.isRequired,tag:u.default.shape({id:u.default.string.isRequired,className:u.default.string}),moveTag:u.default.func,removeComponent:u.default.func,onTagClicked:u.default.func,classNames:u.default.object,readOnly:u.default.bool,connectDragSource:u.default.func.isRequired,isDragging:u.default.bool.isRequired,connectDropTarget:u.default.func.isRequired},b.defaultProps={labelField:"text",readOnly:!1},t.default=(0,l.default)((0,i.DragSource)(h,s.tagSource,s.dragSource),(0,i.DropTarget)(h,s.tagTarget,s.dropCollect))(b)},function(e,t,r){var n=r(324)();e.exports=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dropCollect=t.dragSource=t.tagTarget=t.tagSource=void 0;var n=r(46),o=r(277),a={beginDrag:function(e){return{id:e.tag.index,index:e.index}},canDrag:function(e){return(0,o.canDrag)(e)}},i={hover:function(e,t,r){var o=t.getItem().index,a=e.index;if(o!==a){var i=(0,n.findDOMNode)(r).getBoundingClientRect(),u=(i.right-i.left)/2,l=t.getClientOffset().x-i.left;o<a&&l<u||o>a&&l>u||(e.moveTag(o,a),t.getItem().index=a)}},canDrop:function(e){return(0,o.canDrop)(e)}};t.tagSource=a,t.tagTarget=i,t.dragSource=function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}},t.dropCollect=function(e){return{connectDropTarget:e.dropTarget()}}},function(e,t,r){var n=r(16),o=/[\\^$.*+?()[\]{}|]/g,a=RegExp(o.source);e.exports=function(e){return(e=n(e))&&a.test(e)?e.replace(o,"\\$&"):e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),o=a(r(1));function a(e){return e&&e.__esModule?e:{default:e}}var i=String.fromCharCode(215),u=function(e){var t=e.readOnly,r=e.removeComponent,o=e.onClick,a=e.className;if(t)return n.default.createElement("span",null);if(r){var u=r;return n.default.createElement(u,e)}return n.default.createElement("a",{onClick:o,className:a,onKeyDown:o},i)};u.propTypes={className:o.default.string,onClick:o.default.func.isRequired,readOnly:o.default.bool,removeComponent:o.default.func},t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.KEYS={ENTER:13,TAB:9,BACKSPACE:8,UP_ARROW:38,DOWN_ARROW:40,ESCAPE:27},t.DEFAULT_PLACEHOLDER="Add new tag",t.DEFAULT_LABEL_FIELD="text",t.DEFAULT_CLASSNAMES={tags:"ReactTags__tags",tagInput:"ReactTags__tagInput",tagInputField:"ReactTags__tagInputField",selected:"ReactTags__selected",tag:"ReactTags__tag",remove:"ReactTags__remove",suggestions:"ReactTags__suggestions",activeSuggestion:"ReactTags__activeSuggestion"},t.INPUT_FIELD_POSITIONS={INLINE:"inline",TOP:"top",BOTTOM:"bottom"}},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(r(0)),o=i(r(14)),a=i(r(749));function i(e){return e&&e.__esModule?e:{default:e}}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(750);var l=function(e){var t,r=e.link,i=e.title,l=e.context,c=e.colorScheme,s=e.description,f=e.buttonText;if("save-modal"===l&&"paid"===c)return null;r||f||s||(r="divi-cloud/?utm_source=Divi+Cloud&utm_medium=Divi+Library&utm_campaign=Native",f=(0,a.default)("library","nonLoggedIn$upsellCTAButtonText"),s=(0,a.default)("library","nonLoggedIn$upsellCTADescription"),"free"===c&&(r="members-area/checkout/?type=divi-cloud&utm_source=Divi+Cloud&utm_medium=Divi+Library&utm_campaign=Native",f=(0,a.default)("library","loggedIn$upsellCTAButtonText"),s=(0,a.default)("library","loggedIn$upsellCTADescription")));var d=(0,o.default)((u(t={"et-cloud-app__upsell":!0},"card-".concat(l),!0),u(t,"card-".concat(null!=c?c:"default"),!0),t));return n.default.createElement("div",{className:d},i&&n.default.createElement("h2",{className:"et-cloud-app__upsell-title"},i),n.default.createElement("p",{className:"et-cloud-app__upsell-description"},s),n.default.createElement("a",{href:"https://www.elegantthemes.com/"+r,target:"_blank"},f))};t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(5))&&n.__esModule?n:{default:n};var a=function(e,t){for(var r=(0,o.default)(e,t,""),n=arguments.length,a=new Array(n>2?n-2:0),i=2;i<n;i++)a[i-2]=arguments[i];if(a.length>0){var u=(0,o.default)(window,"wp.i18n.sprintf");return u?u.apply(void 0,[r].concat(a)):r.replace("%s",a[0])}return r};t.default=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return a.apply(void 0,[window.et_common_data.i18n,[e,t]].concat(n))}},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=c(r(8)),a=c(r(0)),i=c(r(1)),u=c(r(273)),l=c(r(18));function c(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m(e);if(t){var o=m(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return y(this,r)}}function y(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(752);var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(i,e);var t,r,n,o=p(i);function i(){return s(this,i),o.apply(this,arguments)}return t=i,(r=[{key:"render",value:function(){return a.default.createElement(l.default,{className:"et-core-help-button",ripple:!1,onClick:this.props.onClick},a.default.createElement(u.default,{icon:"help",color:"rgb(43, 135, 218)"}),this.props.helpText)}}])&&f(t.prototype,r),n&&f(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(a.default.PureComponent);h(b,"propTypes",{helpText:i.default.string.isRequired,onClick:i.default.func}),h(b,"defaultProps",{onClick:o.default});var v=b;t.default=v},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=p(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=d(r(11)),i=d(r(39)),u=d(r(12)),l=d(r(23)),c=d(r(170)),s=d(r(5)),f=d(r(110));function d(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var o=g(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return b(this,r)}}function b(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return v(e)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _="https://www.elegantthemes.com",w=null,T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(d,e);var t,r,n,o=h(d);function d(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),O(v(t=o.call(this,e)),"componentDidMount",(function(){t.serverFramePopUp=t.loadServerFrame(),window.addEventListener("message",t.sendMessage),w=setInterval((function(){(0,s.default)(v(t),"serverFramePopUp.closed")&&(clearInterval(w),t.props.onFrameClose&&t.props.onFrameClose())}),1e3)})),O(v(t),"componentWillUnmount",(function(){window.removeEventListener("message",t.sendMessage),clearInterval(w),w=null,t.serverFramePopUp&&t.serverFramePopUp.close()})),O(v(t),"loadServerFrame",(function(){var e=t.props,r=e.frameWidth,n=e.frameHeight,o=t.getFrameUrl(),a=window.top.outerWidth/2+window.top.screenX-r/2,i=window.top.outerHeight/2+window.top.screenY-n/2;return(0,l.default)(window.etServerFrameWindow)?window.open(o,"Elegantthemes","popup, width=".concat(r,", height=").concat(n,", left=").concat(a,", top=").concat(i,", toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no")):(window.etServerFrameWindow.location.href=o,window.etServerFrameWindow)})),O(v(t),"getGenerateDomainTokenUrl",(function(){var e=t.props,r=e.isCloud,n=e.domain,o=e.queryParams,i={domain:n,is_divi_cloud:r?1:0};return o&&(i=(0,f.default)(i,o)),i=a.default.param(i),"".concat(_,"/members-area/divi-cloud/token/?is_popup=1&").concat(i)})),O(v(t),"getFrameUrl",(function(){var e=t.props,r=e.domainToken,n=e.frameUrl;return!(0,i.default)(r)||(0,u.default)(r)?t.getGenerateDomainTokenUrl():n})),O(v(t),"onDomainTokenReceived",(function(e){if((0,i.default)(e)&&!(0,u.default)(e)){var r=t.props,n=r.api,o=r.setDomainTokenNonce;a.default.ajax({type:"POST",url:n,data:{action:"et_builder_ajax_save_domain_token",domain_token:e,nonce:o}})}})),O(v(t),"sendMessage",(function(e){if(_===(0,s.default)(e,"origin","")){var r=(0,s.default)(e,"data",{});if((0,c.default)(r,"domain_token_generated")){var n=(0,s.default)(r,"domain_token_generated");t.onDomainTokenReceived(n)}t.props.sendMessage(r)}})),O(v(t),"render",(function(){return null})),t}return t=d,r&&y(t.prototype,r),n&&y(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(o.PureComponent);t.default=T},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=g(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=v(r(1)),i=v(r(12)),u=v(r(110)),l=v(r(756)),c=v(r(17)),s=v(r(353)),f=v(r(257)),d=v(r(23)),p=v(r(39)),y=v(r(758)),m=v(r(51)),h=v(r(766)),b=v(r(352));function v(e){return e&&e.__esModule?e:{default:e}}function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(g=function(e){return e?r:t})(e)}function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},O.apply(this,arguments)}function _(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function w(e,t){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},w(e,t)}function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=j(e);if(t){var o=j(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return E(this,r)}}function E(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return P(e)}function P(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}r(767);var S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w(e,t)}(v,e);var t,r,n,a=T(v);function v(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),(t=a.call(this,e)).shouldComponentUpdate=h.default.shouldComponentUpdate.bind(P(t)),t._getDefaults=t._getDefaults.bind(P(t)),t._getValue=t._getValue.bind(P(t)),t._onChange=t._onChange.bind(P(t)),t}return t=v,(r=[{key:"_getDefaults",value:function(){var e=this.props.options,t=this.props.defaults;return(0,d.default)(t)?(0,c.default)((0,s.default)((0,f.default)(e)),(function(){return"off"})):t}},{key:"_getValue",value:function(){var e=this._getDefaults(),t=this.props.value,r=(0,d.default)(t)?e:(0,c.default)(t.split("|"),(function(e){return b.default.hasValue(e)?e:"off"}));return(0,f.default)(r)<(0,f.default)(e)&&(r=(0,u.default)(e,r)),r}},{key:"_onChange",value:function(e){var t=e.target.checked?"on":"off",r=e.target.getAttribute("data-index"),n=this._getValue();n[r]=t;var o=n.join("|");this.props._onChange(this.props.name,o)}},{key:"render",value:function(){var e=this,t=this._getValue(),r=this.props,n=r.options,a=r.name,u=r.shortcut_index,c=r.readonly,s=r.markedCategories,f=r.categoryMark,h={};c&&(h.readOnly=!0);var v="";return(0,i.default)(n)||(v=(0,l.default)(n).map((function(r,n){var l=(0,p.default)(r)?r:r.value,c=(0,p.default)(r)?r:r.label,v=u?"-".concat(u):"",g="et-fb-multiple-checkbox-".concat(a).concat(v,"-").concat(n),_=!(0,d.default)(t[n])&&b.default.isOn(t[n]),w=s&&!(0,i.default)(s)&&(0,m.default)(s,c)?f:"",T=(0,p.default)(r)?"":"-".concat((0,y.default)(r.className));return l||(T="-hidden"),o.default.createElement("p",{key:g,className:"et-fb-multiple-checkbox".concat(T)},o.default.createElement("label",{htmlFor:g},o.default.createElement("input",O({type:"checkbox",id:g,name:"et_fb_multiple_checkboxes[".concat(n,"]"),value:l,onChange:e._onChange,checked:_,"data-index":n},h))," ",w,c))}))),o.default.createElement("div",{className:"et-fb-multiple-checkboxes-wrap"},v)}}])&&_(t.prototype,r),n&&_(t,n),Object.defineProperty(t,"prototype",{writable:!1}),v}(o.Component);S.propTypes={options:a.default.oneOfType([a.default.array,a.default.object]),defaults:a.default.array,value:a.default.string,name:a.default.string,_onChange:a.default.func};var I=S;t.default=I},function(e,t,r){var n=r(52),o=r(70),a=r(66),i=r(28),u=r(39),l=r(757),c=r(226),s=r(146),f=r(163),d=r(119),p=n?n.iterator:void 0;e.exports=function(e){if(!e)return[];if(i(e))return u(e)?f(e):o(e);if(p&&e[p])return l(e[p]());var t=a(e);return("[object Map]"==t?c:"[object Set]"==t?s:d)(e)}},function(e,t){e.exports=function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}},function(e,t,r){var n=r(759)((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}));e.exports=n},function(e,t,r){var n=r(304),o=r(760),a=r(762),i=RegExp("['\u2019]","g");e.exports=function(e){return function(t){return n(a(o(t).replace(i,"")),e,"")}}},function(e,t,r){var n=r(761),o=r(16),a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,i=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=o(e))&&e.replace(a,n).replace(i,"")}},function(e,t,r){var n=r(268)({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"});e.exports=n},function(e,t,r){var n=r(763),o=r(764),a=r(16),i=r(765);e.exports=function(e,t,r){return e=a(e),void 0===(t=r?void 0:t)?o(e)?i(e):n(e):e.match(t)||[]}},function(e,t){var r=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(r)||[]}},function(e,t){var r=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return r.test(e)}},function(e,t){var r="\\u2700-\\u27bf",n="a-z\\xdf-\\xf6\\xf8-\\xff",o="A-Z\\xc0-\\xd6\\xd8-\\xde",a="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",i="["+a+"]",u="\\d+",l="[\\u2700-\\u27bf]",c="["+n+"]",s="[^\\ud800-\\udfff"+a+u+r+n+o+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",p="["+o+"]",y="(?:"+c+"|"+s+")",m="(?:"+p+"|"+s+")",h="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",b="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",v="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",g="[\\ufe0e\\ufe0f]?",O=g+v+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",f,d].join("|")+")"+g+v+")*"),_="(?:"+[l,f,d].join("|")+")"+O,w=RegExp([p+"?"+c+"+"+h+"(?="+[i,p,"$"].join("|")+")",m+"+"+b+"(?="+[i,p+y,"$"].join("|")+")",p+"?"+y+"+"+h,p+"+"+b,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",u,_].join("|"),"g");e.exports=function(e){return e.match(w)||[]}},function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty;function o(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function a(e,t){if(o(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(var i=0;i<r.length;i++)if(!n.call(t,r[i])||!o(e[r[i]],t[r[i]]))return!1;return!0}e.exports={shouldComponentUpdate:function(e,t){return!a(this.props,e)||!a(this.state,t)}}},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";(function(e){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=v(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),a=b(r(1)),i=b(r(14)),u=b(r(17)),l=b(r(16)),c=b(r(23)),s=b(r(10)),f=b(r(15)),d=b(r(51)),p=b(r(27)),y=b(r(5)),m=b(r(769)),h=b(r(770));function b(e){return e&&e.__esModule?e:{default:e}}function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(v=function(e){return e?r:t})(e)}function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},g.apply(this,arguments)}function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function w(e,t){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},w(e,t)}function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=j(e);if(t){var o=j(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return E(this,r)}}function E(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return P(e)}function P(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}function S(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(771);var I=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w(e,t)}(v,t);var r,n,a,b=T(v);function v(){var t;O(this,v);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return S(P(t=b.call.apply(b,[this].concat(n))),"getGroupForSelected",(function(){return e(t.node).find(":selected").parent().attr("label")})),S(P(t),"_onChange",(function(e){var r=t.props.name,n=t.getGroupForSelected(),o=t.props.overwrite_onchange,a=t.props.value_overwrite,i=e.target.value;n&&((0,y.default)(P(t),"props.parseGroupValue",!0)&&(i="".concat(n,"|").concat(i)),t.props.group_prop&&t.props._onChange(t.props.group_prop,n)),t.props._onChange(r,i),o&&(0,s.default)(o)&&a&&(0,f.default)(a)&&(0,u.default)(t.props.overwrite_onchange,(function(e){(0,c.default)(a[i])||t.props._onChange(e,a[i])}))})),t}return r=v,n=[{key:"componentDidMount",value:function(){this.props.group_prop&&this.props._onChange(this.props.group_prop,this.getGroupForSelected())}},{key:"_render_options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,u.default)(e,(function(e,r){var n=(0,y.default)(e,"name"),a=(0,y.default)(e,"id"),i=r;return""!==t&&(i="".concat(t,"-").concat(r)),o.default.createElement(m.default,{key:i,value:a,name:n})}))}},{key:"render",value:function(){var e,t=this,r=(0,l.default)(this.props.value)?this.props.value:this.props.default;!(0,d.default)((0,p.default)(this.props.options),r)&&(0,d.default)((0,p.default)(this.props.options),(0,l.default)(r))&&(r=(0,l.default)(r));var n={"et-core-control-select":!0,"et-fb-settings-option-select":!0};this.props.className&&(n[this.props.className]=!0),e=this.props.groups?(0,u.default)(this.props.options,(function(e,r){return"0"===r?t._render_options(e,r):o.default.createElement(h.default,{label:r,key:"option-group-".concat(r)},t._render_options(e,r))})):this._render_options(this.props.options);var a={};this.props.readonly&&(a.disabled=!0);var c=this.props.id;return c||(c="et-fb-".concat(this.props.name)),o.default.createElement("select",g({ref:function(e){return t.node=e},className:(0,i.default)(n),value:r,name:this.props.name,id:c,onChange:this._onChange},a),e)}}],n&&_(r.prototype,n),a&&_(r,a),Object.defineProperty(r,"prototype",{writable:!1}),v}(o.PureComponent);S(I,"propTypes",{name:a.default.string.isRequired});var M=I;t.default=M}).call(this,r(11))},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var l=i?Object.getOwnPropertyDescriptor(e,u):null;l&&(l.get||l.set)?Object.defineProperty(o,u,l):o[u]=e[u]}o.default=e,r&&r.set(e,o);return o}(r(0));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var o=f(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return s(this,r)}}function s(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(s,e);var t,r,n,a=c(s);function s(){return i(this,s),a.apply(this,arguments)}return t=s,(r=[{key:"render",value:function(){return o.default.createElement("option",{value:this.props.value},this.props.name)}}])&&u(t.prototype,r),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(o.PureComponent),p=d;t.default=p},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var l=i?Object.getOwnPropertyDescriptor(e,u):null;l&&(l.get||l.set)?Object.defineProperty(o,u,l):o[u]=e[u]}o.default=e,r&&r.set(e,o);return o}(r(0));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=f(e);if(t){var o=f(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return s(this,r)}}function s(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(s,e);var t,r,n,a=c(s);function s(){return i(this,s),a.apply(this,arguments)}return t=s,(r=[{key:"render",value:function(){return o.default.createElement("optgroup",{label:this.props.label},this.props.children)}}])&&u(t.prototype,r),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(o.PureComponent),p=d;t.default=p},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o,a,i,u,l,c,s,f,d,p,y,m=I(r(5)),h=I(r(0)),b=r(3),v=r(9),g=I(r(1)),O=r(172),_=I(r(83)),w=I(r(7)),T=I(r(18)),E=I(r(377)),P=I(r(25)),j=r(4),S=I(r(14));function I(e){return e&&e.__esModule?e:{default:e}}function M(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function C(e){function t(){e.validateFields()&&e.onClick()}var r,n,o,a=j.SAVE_STATE_IDLE!==e.saveState,i=""!==(0,m.default)(e,"cloudStatus.error",""),u=!a&&i,l=!a&&!i,c=(r={"et-common-button--primary":!i,"et-common-button--cancel":i,"et-tb-save-preset-button":!0},n="et-tb-save-presest-button--".concat(e.saveState),o=!0,n in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,r);return u?h.default.createElement(_.default,null,h.default.createElement(T.default,{className:(0,S.default)(c),onClick:t},u&&h.default.createElement("span",{className:"et-tb-save-preset-button__label"},(0,w.default)("themeBuilder","Cancel")),a&&h.default.createElement(P.default,{size:"14",icon:(0,O.getIconNameBySaveState)(e.saveState),className:"et-tb-save-preset-button__icon"}))):h.default.createElement(_.default,null,h.default.createElement(T.default,{className:(0,S.default)(c),onClick:t},l&&h.default.createElement("span",{className:"et-tb-save-preset-button__label"},"on"===e.cloud?(0,w.default)("themeBuilder","Save To Divi Cloud"):"off"===e.cloud?(0,w.default)("themeBuilder","Save To Divi Library"):void 0),a&&h.default.createElement(P.default,{size:"14",icon:(0,O.getIconNameBySaveState)(e.saveState),className:"et-tb-save-set-button__icon"})))}C.propTypes={close:g.default.func,onSave:g.default.func};var A={close:(0,b.sequences)(n||(n=M(["closeCurrentModal"]))),onSave:(0,b.sequences)(o||(o=M(["librarySave.onSave"]))),setCloudStatus:(0,b.sequences)(a||(a=M(["setCloudStatus"]))),updateCloudToken:(0,b.sequences)(i||(i=M(["updateCloudToken"]))),updateDomainToken:(0,b.sequences)(u||(u=M(["updateDomainToken"]))),categories:(0,b.state)(l||(l=M(["librarySave.templateCategories"]))),cloudStatus:(0,b.state)(c||(c=M(["cloudStatus"]))),isPresetSaveAction:(0,b.state)(s||(s=M(["librarySave.isPresetSaveAction"]))),saveState:(0,b.state)(f||(f=M(["librarySave.saveState"]))),tags:(0,b.state)(d||(d=M(["librarySave.templateTags"]))),templates:(0,b.state)(p||(p=M(["templates.templates"]))),settings:(0,b.state)(y||(y=M(["templates.settings"])))},D=(0,v.connect)(A,(0,E.default)(C));t.default=D},function(e,t,r){"use strict";(function(e){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i,u=y(r(39)),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=p(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),c=r(9),s=r(3),f=y(r(774)),d=y(r(775));function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}function y(e){return e&&e.__esModule?e:{default:e}}function m(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var h={isDefaultTemplateUseModalOpen:(0,s.state)(o||(o=m(["libraryUse.isDefaultTemplateUseModalOpen"]))),isGlobalLayoutsUseModalOpen:(0,s.state)(a||(a=m(["libraryUse.isGlobalLayoutsUseModalOpen"]))),beforeOnUseLibraryItem:(0,s.sequences)(i||(i=m(["libraryUse.beforeOnUseLibraryItem"])))},b=(0,c.connect)(h,(function(t){(0,l.useEffect)((function(){function r(e,r){var n=r.item,o=(0,u.default)(n);window.ETCloudApp&&(window.ETCloudApp.emitSignal({signal:"onDownloadProgress",data:{progress:200}}),window.ETCloudApp.emitSignal({signal:"finishDownload",data:{}})),t.beforeOnUseLibraryItem({itemId:n,isFile:o})}return e(window).on("et_cloud_use_item",r),function(){e(window).off("et_cloud_use_item",r)}}),[]);var r=t.isDefaultTemplateUseModalOpen,n=t.isGlobalLayoutsUseModalOpen;return l.default.createElement(l.Fragment,null,r&&l.default.createElement(f.default,null),n&&l.default.createElement(d.default,null))}));t.default=b}).call(this,r(11))},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i,u,l,c,s,f,d,p,y=A(r(12)),m=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=C(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),h=A(r(14)),b=r(9),v=r(3),g=A(r(83)),O=A(r(44)),_=A(r(18)),w=A(r(111)),T=A(r(91)),E=A(r(7)),P=A(r(82)),j=A(r(72)),S=A(r(71)),I=A(r(135)),M=r(4);function C(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(C=function(e){return e?r:t})(e)}function A(e){return e&&e.__esModule?e:{default:e}}function D(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var k={hasPresets:(0,v.state)(o||(o=D(["libraryUse.cloudItem.hasPresets"]))),loadDefaultTemplateAction:(0,v.state)(a||(a=D(["libraryUse.loadDefaultTemplateAction"]))),importPresetsToggle:(0,v.state)(i||(i=D(["libraryUse.cloudItem.importPresetsToggle"]))),importState:(0,v.state)(u||(u=D(["libraryUse.importState"]))),progress:(0,v.state)(l||(l=D(["portability.import.progress"]))),estimate:(0,v.state)(c||(c=D(["portability.import.estimate"]))),closeUseDefaultTemplateModal:(0,v.sequences)(s||(s=D(["libraryUse.closeUseDefaultTemplateModal"]))),setLoadDefaultTemplateAction:(0,v.sequences)(f||(f=D(["libraryUse.setLoadDefaultTemplateAction"]))),useDefaultTemplate:(0,v.sequences)(d||(d=D(["libraryUse.useDefaultTemplate"]))),setImportPresetsFlag:(0,v.sequences)(p||(p=D(["libraryUse.setImportPresetsFlag"])))},R=(0,b.connect)(k,(function(e){function t(t){var r=t.target.value;e.setLoadDefaultTemplateAction({action:r})}var r,n,o,a=function(t){var r="0"===t.target.value?"1":"0";e.setImportPresetsFlag({toggle:r})},i=e.cloudItem,u=e.hasPresets,l=e.progress,c=e.estimate,s=!(0,y.default)(i)&&u,f=M.IMPORT_STATE_LOADING===e.importState,d=0===l;return m.default.createElement(w.default,{animation:!0,className:(0,h.default)({"et-tb-library-use-default-template-modal":!0})},m.default.createElement(O.default,{title:"Load Template",className:"et-tb-use-default-template-modal__header",onClose:e.closeUseDefaultTemplateModal}),m.default.createElement("div",{className:"et-tb-portability"},m.default.createElement("div",{className:"et-tb-portability__scroll"},m.default.createElement(I.default,{label:(0,E.default)("themeBuilder","How do you want to load this Template?")},m.default.createElement(T.default,{checked:e.loadDefaultTemplateAction===M.LOAD_TEMPLATE_ACTION_OVERRIDE_DEFAULT,value:M.LOAD_TEMPLATE_ACTION_OVERRIDE_DEFAULT,onChange:t},(0,E.default)("themeBuilder","Override Existing Default Website Template")),m.default.createElement(T.default,{checked:e.loadDefaultTemplateAction===M.LOAD_TEMPLATE_ACTION_LOAD_AS_STATIC,value:M.LOAD_TEMPLATE_ACTION_LOAD_AS_STATIC,onChange:t},(0,E.default)("themeBuilder","Override Active Global Templates"))),s&&m.default.createElement(m.Fragment,null,m.default.createElement(I.default,{label:(0,E.default)("themeBuilder","Options")},m.default.createElement(T.default,{checked:"1"===e.importPresetsToggle,value:e.importPresetsToggle,onChange:a},(0,E.default)("themeBuilder","Import Presets"))))),!f&&m.default.createElement(g.default,null,m.default.createElement(_.default,{className:(0,h.default)((r={"et-common-button--primary":!0,"et-tb-use-default-template-button":!0},n="et-tb-use-default-template-button--".concat(e.saveState),o=!0,n in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,r)),onClick:function(){e.useDefaultTemplate()}},m.default.createElement("span",{className:"et-tb-default-template-button__label"},(0,E.default)("themeBuilder","Load Template")))),f&&d&&m.default.createElement(S.default,null),f&&!d&&m.default.createElement(P.default,{className:"et-common-local-overlay--centered"},m.default.createElement("div",{className:"et-tb-portability__progress-bar"},m.default.createElement(j.default,{progress:100*l,estimate:(0,E.default)("portability","Import estimated time remaining: %smin",c)})))))}));t.default=R},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i,u,l,c,s,f,d,p,y,m,h=k(r(12)),b=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=D(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),v=r(3),g=r(9),O=k(r(14)),_=k(r(83)),w=k(r(44)),T=k(r(18)),E=k(r(111)),P=k(r(91)),j=k(r(7)),S=k(r(82)),I=k(r(72)),M=k(r(71)),C=k(r(135)),A=r(4);function D(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(D=function(e){return e?r:t})(e)}function k(e){return e&&e.__esModule?e:{default:e}}function R(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var x={cloudItem:(0,v.state)(o||(o=R(["libraryUse.cloudItem.item"]))),hasGlobalLayouts:(0,v.state)(a||(a=R(["libraryUse.cloudItem.hasGlobalLayouts"]))),hasPresets:(0,v.state)(i||(i=R(["libraryUse.cloudItem.hasPresets"]))),importPresetsToggle:(0,v.state)(u||(u=R(["libraryUse.cloudItem.importPresetsToggle"]))),importState:(0,v.state)(l||(l=R(["libraryUse.importState"]))),loadDefaultTemplateAction:(0,v.state)(c||(c=R(["libraryUse.loadDefaultTemplateAction"]))),progress:(0,v.state)(s||(s=R(["portability.import.progress"]))),estimate:(0,v.state)(f||(f=R(["portability.import.estimate"]))),closeUseGlobalLayoutsModal:(0,v.sequences)(d||(d=R(["libraryUse.closeUseGlobalLayoutsModal"]))),setLoadDefaultTemplateAction:(0,v.sequences)(p||(p=R(["libraryUse.setLoadDefaultTemplateAction"]))),useGlobalLayouts:(0,v.sequences)(y||(y=R(["libraryUse.useGlobalLayouts"]))),setImportPresetsFlag:(0,v.sequences)(m||(m=R(["libraryUse.setImportPresetsFlag"])))},L=(0,g.connect)(x,(function(e){function t(t){var r=t.target.value;e.setLoadDefaultTemplateAction({action:r})}var r,n,o,a=function(t){var r="0"===t.target.value?"1":"0";e.setImportPresetsFlag({toggle:r})},i=e.cloudItem,u=e.hasGlobalLayouts,l=e.hasPresets,c=e.progress,s=e.estimate,f=!(0,h.default)(i),d=!f||f&&u,p=f&&l,y=A.IMPORT_STATE_LOADING===e.importState,m=0===c;return b.default.createElement(E.default,{animation:!0,className:(0,O.default)({"et-tb-library-use-global-layouts-modal":!0})},b.default.createElement(w.default,{title:"Load Template",className:"et-tb-use-global-layouts-modal__header",onClose:e.closeUseGlobalLayoutsModal}),b.default.createElement("div",{className:"et-tb-portability"},b.default.createElement("div",{className:"et-tb-portability__scroll"},d&&b.default.createElement(b.Fragment,null,b.default.createElement(C.default,{label:(0,j.default)("themeBuilder","How do you want to load this Template?")},b.default.createElement(P.default,{checked:e.loadDefaultTemplateAction===A.LOAD_TEMPLATE_ACTION_LOAD_WITH_GLOBAL_REFERENCES,value:A.LOAD_TEMPLATE_ACTION_LOAD_WITH_GLOBAL_REFERENCES,onChange:t},(0,j.default)("themeBuilder","Use With Global Templates From This Website")),b.default.createElement(P.default,{checked:e.loadDefaultTemplateAction===A.LOAD_TEMPLATE_ACTION_LOAD_AS_STATIC,value:A.LOAD_TEMPLATE_ACTION_LOAD_AS_STATIC,onChange:t},(0,j.default)("themeBuilder","Override Active Global Templates")))),p&&b.default.createElement(b.Fragment,null,b.default.createElement(C.default,{label:(0,j.default)("themeBuilder","Options")},b.default.createElement(P.default,{checked:1===parseInt(e.importPresetsToggle),value:e.importPresetsToggle,onChange:a},(0,j.default)("themeBuilder","Import Presets"))))),!y&&b.default.createElement(_.default,null,b.default.createElement(T.default,{className:(0,O.default)((r={"et-common-button--primary":!0,"et-tb-use-global-layouts-button":!0},n="et-tb-use-global-layouts-button--".concat(e.saveState),o=!0,n in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,r)),onClick:function(){e.useGlobalLayouts()}},b.default.createElement("span",{className:"et-tb-global-layouts-button__label"},(0,j.default)("themeBuilder","Load Template")))),y&&m&&b.default.createElement(M.default,null),y&&!m&&b.default.createElement(S.default,{className:"et-common-local-overlay--centered"},b.default.createElement("div",{className:"et-tb-portability__progress-bar"},b.default.createElement(I.default,{progress:100*c,estimate:(0,j.default)("portability","Import estimated time remaining: %smin",s)})))))}));t.default=L},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i,u=y(r(8)),l=r(0),c=r(3),s=r(9),f=y(r(1)),d=y(r(777)),p=y(r(30));function y(e){return e&&e.__esModule?e:{default:e}}function m(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=w(e);if(t){var o=w(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return O(this,r)}}function O(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _(e)}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function T(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(a,e);var t,r,n,o=g(a);function a(){var e;h(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return T(_(e=o.call.apply(o,[this].concat(r))),"onClick",(function(){e.props.onImportDiviBuilderTemplates()})),T(_(e),"onClose",(function(){return e.props.close()})),e}return t=a,(r=[{key:"render",value:function(){return this.props.isShowImportTemplatesModal?React.createElement(l.Fragment,null,React.createElement(p.default,null,React.createElement(d.default,{onClose:this.onClose}))):null}}])&&b(t.prototype,r),n&&b(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(l.PureComponent);E.propTypes={onClose:f.default.func,ImportDiviBuilderTemplates:f.default.func},E.defaultProps={onClose:u.default},E.connections={isShowImportTemplatesModal:(0,c.state)(o||(o=m(["libraryUse.isShowImportTemplatesModal"]))),close:(0,c.sequences)(a||(a=m(["libraryUse.closeImportTemplatesModal"]))),ImportDiviBuilderTemplates:(0,c.sequences)(i||(i=m(["libraryUse.ImportDiviBuilderTemplates"])))};var P=(0,s.connect)(E.connections,E);t.default=P},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=U(r(12)),a=r(9),i=r(3),u=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=N(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),l=U(r(8)),c=U(r(1)),s=r(4);r(778);var f,d,p,y,m,h,b,v,g,O,_,w,T,E=U(r(83)),P=U(r(44)),j=U(r(18)),S=U(r(111)),I=U(r(91)),M=U(r(14)),C=U(r(13)),A=U(r(80)),D=U(r(7)),k=U(r(135)),R=U(r(57)),x=U(r(82)),L=U(r(72)),B=U(r(71));function N(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(N=function(e){return e?r:t})(e)}function U(e){return e&&e.__esModule?e:{default:e}}function W(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function F(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function z(e,t){return z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},z(e,t)}function H(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=q(e);if(t){var o=q(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Y(this,r)}}function Y(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return V(e)}function V(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q(e){return q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},q(e)}function G(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var $=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&z(e,t)}(i,e);var t,r,n,a=H(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),G(V(t=a.call(this,e)),"onClick",(function(){var e=t.props,r=e.cloudItem,n=e.cloudItemHasDefaultTemplate,a=e.importState,i=e.itemId,u=t.state,l=u.isOverrideDefaultTemplate,c=u.isOverrideAssignments,s=u.isDownloadBackup,f=u.incomingLayoutDuplicateDecision,d="idle"===a?"":f,p={itemId:i,isOverrideDefaultTemplate:(0,o.default)(r)&&l||!(0,o.default)(r)&&n&&l,isOverrideAssignments:c,isDownloadBackup:s,incomingLayoutDuplicateDecision:d};t.props.onImportTemplatesClick(p)})),G(V(t),"onTemplateOptionSelect",(function(e){switch(e.target.name){case"override-default":t.setState({isOverrideDefaultTemplate:e.target.checked});break;case"override-assignments":t.setState({isOverrideAssignments:e.target.checked});break;case"download-backup":t.setState({isDownloadBackup:e.target.checked})}})),G(V(t),"onImportPresetsToggle",(function(e){var r="0"===e.target.value?"1":"0";t.props.setImportPresetsFlag({toggle:r})})),G(V(t),"handleOnIncomingLayoutDuplicateDecisionChange",(function(e){t.setState({incomingLayoutDuplicateDecision:e.target.value})})),G(V(t),"requireIncomingLayoutDuplicateDecision",(function(){return s.IMPORT_STATE_INCOMING_LAYOUT_DUPLICATE_DECISION===t.props.importState||!(0,o.default)(t.props.cloudItem)&&s.IMPORT_STATE_LOADING===t.props.importState&&!t.state.isOverrideDefaultTemplate||!(0,o.default)(t.props.cloudItem)&&s.IMPORT_STATE_LOADING===t.props.importState&&t.props.cloudItemHasGlobalLayouts&&!t.props.cloudItemHasDefaultTemplate})),G(V(t),"renderIncomingLayoutDuplicateDecisionContent",(function(){return u.default.createElement(u.Fragment,null,u.default.createElement("div",{className:"et-tb-portability__scroll"},u.default.createElement("p",null,(0,D.default)("themeBuilder","This import contains references to global layouts.")),u.default.createElement(k.default,null,u.default.createElement(I.default,{value:"relink",checked:"relink"===t.state.incomingLayoutDuplicateDecision,onChange:t.handleOnIncomingLayoutDuplicateDecisionChange,className:"et-tb-portability__import-decision"},u.default.createElement("span",{dangerouslySetInnerHTML:{__html:(0,D.default)("themeBuilder","Relink them to this website's global Header, Body, and/or Footer.")}})),u.default.createElement(I.default,{value:"duplicate",checked:"duplicate"===t.state.incomingLayoutDuplicateDecision,onChange:t.handleOnIncomingLayoutDuplicateDecisionChange,className:"et-tb-portability__import-decision"},u.default.createElement("span",{dangerouslySetInnerHTML:{__html:(0,D.default)("themeBuilder","Import them as static layouts from the website they were exported from.")}})))))})),G(V(t),"renderDefaultContent",(function(){var e=t.props,r=e.cloudItem,n=e.cloudItemHasDefaultTemplate,a=e.cloudItemHasPresets,i=e.importPresetsToggle,l=(e.importState,e.itemId,e.defaultPresetTemplate),c=t.state,s=c.isDownloadBackup,f=c.isOverrideAssignments,d=c.isOverrideDefaultTemplate,p=(0,o.default)(r),y=(0,o.default)(r)&&0!==l||!(0,o.default)(r)&&n;return u.default.createElement(u.Fragment,null,u.default.createElement("div",{className:"et-tb-import-templates-modal-options-wrap"},u.default.createElement("div",{className:"et-tb-import-templates-modal-option"},u.default.createElement(k.default,{label:(0,D.default)("themeBuilder","Options")},y&&u.default.createElement(I.default,{checked:d,value:"1",name:"override-default",onChange:t.onTemplateOptionSelect},(0,D.default)("themeBuilder","Override Existing Default Website Template")),p&&u.default.createElement(I.default,{checked:f,value:"1",name:"override-assignments",onChange:t.onTemplateOptionSelect},(0,D.default)("themeBuilder","Override Existing Assignments")),a&&u.default.createElement(I.default,{checked:"1"===i,value:i,name:"override-assignments",onChange:t.onImportPresetsToggle},(0,D.default)("portability","Import Presets")),u.default.createElement(I.default,{checked:s,value:"1",name:"download-backup",onChange:t.onTemplateOptionSelect},(0,D.default)("themeBuilder","Download Backup Before Importing"))))))})),G(V(t),"renderContent",(function(){return t.requireIncomingLayoutDuplicateDecision()?t.renderIncomingLayoutDuplicateDecisionContent():t.renderDefaultContent()})),t.state={isOverrideDefaultTemplate:!0,isOverrideAssignments:!0,isDownloadBackup:!1,incomingLayoutDuplicateDecision:"relink"},t}return t=i,(r=[{key:"render",value:function(){var e=this.props,t=e.onClose,r=e.progress,n=e.estimate,o=e.importState,a=G({"et-common-button--primary":!0},"et-tb-import-templates-button--".concat(o),!0),i=s.IMPORT_STATE_LOADING===o,l=0===r;return u.default.createElement(S.default,{animation:C.default.animation},u.default.createElement(P.default,{title:(0,D.default)("themeBuilder","Import Templates"),className:"et-tb-import-templates-modal__header",onClose:t}),u.default.createElement(A.default,{component:"Portability"},u.default.createElement("div",{className:"et-tb-portability"},u.default.createElement("div",{className:"et-tb-portability__scroll"},this.renderContent()),!i&&u.default.createElement(E.default,null,u.default.createElement(j.default,{className:(0,M.default)(a),onClick:this.onClick},u.default.createElement("span",{className:"et-tb-save-preset-button__label"},(0,D.default)("themeBuilder","Import Divi Builder Templates")))),i&&l&&u.default.createElement(B.default,null),i&&!l&&u.default.createElement(x.default,{className:"et-common-local-overlay--centered"},u.default.createElement("div",{className:"et-tb-portability__progress-bar"},u.default.createElement(L.default,{progress:100*r,estimate:(0,D.default)("portability","Import estimated time remaining: %smin",n)}))))),u.default.createElement(R.default,{shortcuts:[{shortcut:s.HOTKEYS_CLOSE,action:t}]}))}}])&&F(t.prototype,r),n&&F(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(u.PureComponent);$.propTypes={onClose:c.default.func},$.defaultProps={onClose:l.default,onImportTemplatesClick:l.default,handleOnIncomingLayoutDuplicateDecisionChange:l.default},$.connections={cloudItem:(0,i.state)(f||(f=W(["libraryUse.cloudItem.item"]))),cloudItemHasDefaultTemplate:(0,i.state)(d||(d=W(["libraryUse.cloudItem.hasDefaultTemplate"]))),cloudItemHasGlobalLayouts:(0,i.state)(p||(p=W(["libraryUse.cloudItem.hasGlobalLayouts"]))),cloudItemHasPresets:(0,i.state)(y||(y=W(["libraryUse.cloudItem.hasPresets"]))),defaultPresetTemplate:(0,i.state)(m||(m=W(["libraryUse.defaultPresetTemplate"]))),importPresetsToggle:(0,i.state)(h||(h=W(["libraryUse.cloudItem.importPresetsToggle"]))),importState:(0,i.state)(b||(b=W(["libraryUse.importState"]))),itemId:(0,i.state)(v||(v=W(["libraryUse.itemId"]))),state:(0,i.state)(g||(g=W(["portability.import.state"]))),progress:(0,i.state)(O||(O=W(["portability.import.progress"]))),estimate:(0,i.state)(_||(_=W(["portability.import.estimate"]))),onImportTemplatesClick:(0,i.sequences)(w||(w=W(["libraryUse.onImportTemplatesClick"]))),setImportPresetsFlag:(0,i.sequences)(T||(T=W(["libraryUse.setImportPresetsFlag"])))};var K=(0,a.connect)($.connections,$);t.default=K},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";(function(e){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i,u,l,c,s,f,d=O(r(8)),p=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=g(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),y=r(3),m=r(9),h=r(4),b=O(r(780)),v=O(r(782));function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(g=function(e){return e?r:t})(e)}function O(e){return e&&e.__esModule?e:{default:e}}function _(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function w(t){return(0,p.useEffect)((function(){function r(e){t.onTrashThemeBuilder()}return e(window).on("unload",r),t.onInitAction(),function(){e(window).off("unload",r)}}),[]),h.LIBRARY_ITEM_ACTION_PREVIEW===t.currentAction?p.default.createElement(b.default,null):t.cloudSave!==h.SAVE_STATE_IDLE?p.default.createElement(v.default,null):(!t.themeBuilderId&&t.itemId&&t.openPrompt({type:h.PROMPT_TYPE_LIBRARY_ITEM_NOT_EXISTS}),null)}w.defaults={confirm:d.default,cancelAction:d.default};var T={currentAction:(0,y.state)(o||(o=_(["libraryItem.currentAction"]))),themeBuilderId:(0,y.state)(a||(a=_(["libraryItem.themeBuilderId"]))),itemId:(0,y.state)(i||(i=_(["libraryItem.itemId"]))),cloudSave:(0,y.state)(u||(u=_(["librarySave.cloudSave"]))),onTrashThemeBuilder:(0,y.sequences)(l||(l=_(["libraryItem.trashThemeBuilder"]))),onInitAction:(0,y.sequences)(c||(c=_(["libraryItem.initAction"]))),onPreviewItem:(0,y.sequences)(s||(s=_(["libraryItem.previewItem"]))),openPrompt:(0,y.sequences)(f||(f=_(["prompts.openPrompt"])))},E=(0,m.connect)(T,w);t.default=E}).call(this,r(11))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o,a,i=m(r(0)),u=r(3),l=r(9),c=m(r(183)),s=m(r(81)),f=m(r(44)),d=m(r(30)),p=m(r(71)),y=r(4);function m(e){return e&&e.__esModule?e:{default:e}}function h(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}r(781);var b={item:(0,u.state)(n||(n=h(["libraryItem.item"]))),previewStatus:(0,u.state)(o||(o=h(["libraryItem.previewStatus"]))),onCloseTemplatePreview:(0,u.sequences)(a||(a=h(["libraryItem.closeTemplatePreview"])))},v=(0,l.connect)(b,(function(e){return i.default.createElement(d.default,null,i.default.createElement(c.default,{left:0,top:0,right:0,bottom:0,overlay:!0},i.default.createElement(s.default,{className:"et-tb-template-preview"},i.default.createElement(f.default,{title:e.item.name,onClose:e.onCloseTemplatePreview}),e.previewStatus===y.TEMPLATE_PREVIEW_STATUS_LOADING&&i.default.createElement(p.default,null),i.default.createElement("div",{className:"et-tb-template-preview-content"}))))}));t.default=v},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a,i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=h(t);if(r&&r.has(e))return r.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(0)),u=r(3),l=r(9),c=m(r(111)),s=m(r(81)),f=m(r(44)),d=m(r(72)),p=m(r(7)),y=r(4);function m(e){return e&&e.__esModule?e:{default:e}}function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(h=function(e){return e?r:t})(e)}function b(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,a=[],i=!0,u=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){u=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(u)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r(783);var O={cloudSave:(0,u.state)(o||(o=b(["librarySave.cloudSave"]))),progress:(0,u.state)(a||(a=b(["portability.export.progress"])))},_=(0,l.connect)(O,(function(e){var t=e.cloudSave,r=e.progress,n=v((0,i.useState)(1),2),o=n[0],a=n[1];return(0,i.useEffect)((function(){r&&t===y.SAVE_STATE_LOADING?a(100*r):t===y.SAVE_STATE_SUCCESS&&a(100)}),[t,r]),i.default.createElement(c.default,{animation:!0,className:"et-tb-save-progress-modal"},i.default.createElement(s.default,{animation:!0},i.default.createElement(f.default,{title:(0,p.default)("themeBuilder","Saving To Divi Cloud"),showCloseButton:!1}),i.default.createElement("div",{className:"et-tb-save-progress-modal-wrap"},i.default.createElement("div",{className:"et-tb-save-progress-modal-content"},i.default.createElement(d.default,{progress:o})))))}));t.default=_},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o,a,i=p(r(55)),u=p(r(0)),l=r(3),c=r(9),s=p(r(7)),f=p(r(18)),d=r(4);function p(e){return e&&e.__esModule?e:{default:e}}function y(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function m(e){var t=e.cloudItemId,r=e.itemId,n=e.currentAction;return(0,i.default)(t)&&((0,i.default)(r)||d.LIBRARY_ITEM_ACTION_EDIT!==n)?null:u.default.createElement(f.default,{type:"button",className:"et-tb-admin-return-button",onClick:function(){return window.close()}},u.default.createElement("span",{className:"et-tb-admin-return-button__label"},(0,s.default)("themeBuilder","Return To Theme Builder")))}r(785),m.connections={cloudItemId:(0,l.state)(n||(n=y(["libraryItem.cloudItemId"]))),itemId:(0,l.state)(o||(o=y(["libraryItem.itemId"]))),currentAction:(0,l.state)(a||(a=y(["libraryItem.currentAction"])))};var h=(0,c.connect)(m.connections,m);t.default=h},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";r.r(t)},function(e,t,r){"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}r.r(t);var o=r(0),a=o.useLayoutEffect,i=function(e,t){"function"!=typeof e?e.current=t:e(t)},u=function(e,t){var r=Object(o.useRef)();return Object(o.useCallback)((function(n){e.current=n,r.current&&i(r.current,null),r.current=t,t&&i(t,n)}),[t])},l={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},c=function(e){Object.keys(l).forEach((function(t){e.style.setProperty(t,l[t],"important")}))},s=null;var f=function(){},d=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],p=!!document.documentElement.currentStyle,y=function(e){var t,r,n=(t=e,r=o.useRef(t),a((function(){r.current=t})),r);Object(o.useLayoutEffect)((function(){var e=function(e){n.current(e)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[])},m=function(e,t){var r=e.cacheMeasurements,a=e.maxRows,i=e.minRows,l=e.onChange,m=void 0===l?f:l,h=e.onHeightChange,b=void 0===h?f:h,v=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]);var g=void 0!==v.value,O=Object(o.useRef)(null),_=u(O,t),w=Object(o.useRef)(0),T=Object(o.useRef)(),E=function(){var e=O.current,t=r&&T.current?T.current:function(e){var t=window.getComputedStyle(e);if(null===t)return null;var r,n=(r=t,d.reduce((function(e,t){return e[t]=r[t],e}),{})),o=n.boxSizing;return""===o?null:(p&&"border-box"===o&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px"),{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),borderSize:parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth)})}(e);if(t){T.current=t;var n=function(e,t,r,n){void 0===r&&(r=1),void 0===n&&(n=1/0),s||((s=document.createElement("textarea")).setAttribute("tabindex","-1"),s.setAttribute("aria-hidden","true"),c(s)),null===s.parentNode&&document.body.appendChild(s);var o=e.paddingSize,a=e.borderSize,i=e.sizingStyle,u=i.boxSizing;Object.keys(i).forEach((function(e){var t=e;s.style[t]=i[t]})),c(s),s.value=t;var l=function(e,t){var r=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?r+t.borderSize:r-t.paddingSize}(s,e);s.value="x";var f=s.scrollHeight-o,d=f*r;"border-box"===u&&(d=d+o+a),l=Math.max(d,l);var p=f*n;return"border-box"===u&&(p=p+o+a),[l=Math.min(p,l),f]}(t,e.value||e.placeholder||"x",i,a),o=n[0],u=n[1];w.current!==o&&(w.current=o,e.style.setProperty("height",o+"px","important"),b(o,{rowHeight:u}))}};return Object(o.useLayoutEffect)(E),y(E),Object(o.createElement)("textarea",n({},v,{onChange:function(e){g||E(),m(e)},ref:_}))},h=Object(o.forwardRef)(m);t.default=h}]));
|
|
//# sourceMappingURL=theme-builder.js.map |