File manager - Edit - /home/premiey/www/wp-content/plugins/ameliabooking/extensions/divi_amelia/scripts/builder-bundle.min.js
Back
!function(e){var t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},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(o.s=11)}([function(e,t){e.exports=React},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,o){o(12),e.exports=o(13)},function(e,t,o){"use strict"},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(14),r=o.n(n),i=o(15),s=o(25);r()(window).on("et_builder_api_ready",function(e,t){t.registerModules(i.a),t.registerModalFields(s.a)})},function(e,t){e.exports=jQuery},function(e,t,o){"use strict";var n=o(16),r=o(17),i=o(18),s=o(19),a=o(20),c=o(21),u=o(22),l=o(23),p=o(24);t.a=[n.a,r.a,i.a,s.a,a.a,c.a,u.a,l.a,p.a]},function(e,t,o){"use strict";var n=o(0),r=o.n(n),i=o(1);o.n(i);function s(e){return(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})(e)}function a(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u=function(e){function t(e){var o,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,o=!(r=(t.__proto__||Object.getPrototypeOf(t)).call(this,e))||"object"!==s(r)&&"function"!==typeof r?c(n):r,Object.defineProperty(c(o),"mounted",{configurable:!0,enumerable:!0,writable:!0,value:!1}),Object.defineProperty(c(o),"shortcode",{configurable:!0,enumerable:!0,writable:!0,value:"[ameliastepbooking]"}),o.state={shortcode:o.shortcode},o}var o,i,u;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,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n["Component"]),o=t,(i=[{key:"checkValues",value:function(e){return void 0!==e?isNaN(e)?e.includes("id:")?e.split("id: ")[1].slice(0,-1):"0":e:"0"}},{key:"createShortCode",value:function(){var e="[ameliastepbooking",t=this.props.trigger,o=this.props.trigger_type,n=this.props.type;if(void 0!==n&&"0"!==n&&(e+=" show="+n),void 0!==t&&""!==t&&(e+=" trigger="+this.props.trigger),t&&o&&(e+=" trigger_type="+o),"on"===this.props.booking_params){var r=this.checkValues(this.props.categories),i=this.checkValues(this.props.services),s=this.checkValues(this.props.employees),a=this.checkValues(this.props.locations),c=this.checkValues(this.props.packages);"0"!==i?e+=" service="+i:"0"!==r&&(e+=" category="+r),"0"!==s&&(e+=" employee="+s),"0"!==a&&(e+=" location="+a),"0"!==c&&(e+=" package="+c)}return e+="]"}},{key:"componentDidMount",value:function(){this.mounted=!0,this.mounted&&(this.shortcode=this.createShortCode(),this.setState({shortcode:this.shortcode}))}},{key:"componentDidUpdate",value:function(e,t,o){this.mounted&&(this.shortcode=this.createShortCode(),t.shortcode!==this.shortcode&&this.setState({shortcode:this.shortcode}))}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"render",value:function(){return r.a.createElement("h1",null,this.shortcode)}}])&&a(o.prototype,i),u&&a(o,u),t}();Object.defineProperty(u,"slug",{configurable:!0,enumerable:!0,writable:!0,value:"divi_step_booking"}),t.a=u},function(e,t,o){"use strict";var n=o(0),r=o.n(n),i=o(2);o.n(i);function s(e){return(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})(e)}function a(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u=function(e){function t(e){var o,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,o=!(r=(t.__proto__||Object.getPrototypeOf(t)).call(this,e))||"object"!==s(r)&&"function"!==typeof r?c(n):r,Object.defineProperty(c(o),"mounted",{configurable:!0,enumerable:!0,writable:!0,value:!1}),Object.defineProperty(c(o),"shortcode",{configurable:!0,enumerable:!0,writable:!0,value:"[ameliacatalogbooking]"}),o.state={shortcode:o.shortcode},o}var o,i,u;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,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n["Component"]),o=t,(i=[{key:"checkValues",value:function(e){return void 0!==e?isNaN(e)?e.includes("id:")?e.split("id: ")[1].slice(0,-1):"0":e:"0"}},{key:"createShortCode",value:function(){var e="[ameliacatalogbooking",t=this.props.trigger,o=this.props.trigger_type,n=this.props.type;void 0!==n&&"0"!==n&&(e+=" show="+n),void 0!==t&&""!==t&&(e+=" trigger="+this.props.trigger),t&&o&&(e+=" trigger_type="+o);var r=this.props.catalog;if("0"!==r){var i=this.checkValues(this.props.categories),s=this.checkValues(this.props.services),a=this.checkValues(this.props.packages);"0"!==s&&"service"===r?e+=" service="+s:"0"!==i&&"category"===r&&(e+=" category="+i),"0"!==a&&"package"===r&&(e+=" package="+a)}if("on"===this.props.booking_params){var c=this.checkValues(this.props.employees),u=this.checkValues(this.props.locations);"0"!==c&&(e+=" employee="+c),"0"!==u&&(e+=" location="+u)}return e+="]"}},{key:"componentDidMount",value:function(){this.mounted=!0,this.mounted&&(this.shortcode=this.createShortCode(),this.setState({shortcode:this.shortcode}))}},{key:"componentDidUpdate",value:function(e,t,o){this.mounted&&(this.shortcode=this.createShortCode(),t.shortcode!==this.shortcode&&this.setState({shortcode:this.shortcode}))}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"render",value:function(){return r.a.createElement("h1",null,this.shortcode)}}])&&a(o.prototype,i),u&&a(o,u),t}();Object.defineProperty(u,"slug",{configurable:!0,enumerable:!0,writable:!0,value:"divi_catalog_booking"}),t.a=u},function(e,t,o){"use strict";var n=o(0),r=o.n(n),i=o(3);o.n(i);function s(e){return(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})(e)}function a(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u=function(e){function t(e){var o,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,o=!(r=(t.__proto__||Object.getPrototypeOf(t)).call(this,e))||"object"!==s(r)&&"function"!==typeof r?c(n):r,Object.defineProperty(c(o),"mounted",{configurable:!0,enumerable:!0,writable:!0,value:!1}),Object.defineProperty(c(o),"shortcode",{configurable:!0,enumerable:!0,writable:!0,value:"[ameliabooking]"}),o.state={shortcode:o.shortcode},o}var o,i,u;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,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n["Component"]),o=t,(i=[{key:"checkValues",value:function(e){return void 0!==e?isNaN(e)?e.includes("id:")?e.split("id: ")[1].slice(0,-1):"0":e:"0"}},{key:"createShortCode",value:function(){var e="[ameliabooking",t=this.props.trigger,o=this.props.type;if(void 0!==o&&"0"!==o&&(e+=" show="+o),void 0!==t&&""!==t&&(e+=" trigger="+this.props.trigger),"on"===this.props.booking_params){var n=this.checkValues(this.props.categories),r=this.checkValues(this.props.services),i=this.checkValues(this.props.employees),s=this.checkValues(this.props.locations);"0"!==r?e+=" service="+r:"0"!==n&&(e+=" category="+n),"0"!==i&&(e+=" employee="+i),"0"!==s&&(e+=" location="+s)}return e+="]"}},{key:"componentDidMount",value:function(){this.mounted=!0,this.mounted&&(this.shortcode=this.createShortCode(),this.setState({shortcode:this.shortcode}))}},{key:"componentDidUpdate",value:function(e,t,o){this.mounted&&(this.shortcode=this.createShortCode(),t.shortcode!==this.shortcode&&this.setState({shortcode:this.shortcode}))}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"render",value:function(){return r.a.createElement("h1",null,this.shortcode)}}])&&a(o.prototype,i),u&&a(o,u),t}();Object.defineProperty(u,"slug",{configurable:!0,enumerable:!0,writable:!0,value:"divi_booking"}),t.a=u},function(e,t,o){"use strict";var n=o(0),r=o.n(n),i=o(4);o.n(i);function s(e){return(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})(e)}function a(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u=function(e){function t(e){var o,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,o=!(r=(t.__proto__||Object.getPrototypeOf(t)).call(this,e))||"object"!==s(r)&&"function"!==typeof r?c(n):r,Object.defineProperty(c(o),"mounted",{configurable:!0,enumerable:!0,writable:!0,value:!1}),Object.defineProperty(c(o),"shortcode",{configurable:!0,enumerable:!0,writable:!0,value:"[ameliasearch]"}),o.state={shortcode:o.shortcode},o}var o,i,u;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,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n["Component"]),o=t,(i=[{key:"createShortCode",value:function(){var e="[ameliasearch",t=this.props.trigger;if(void 0!==t&&""!==t&&(e+=" trigger="+this.props.trigger),"on"===this.props.booking_params){var o=this.props.type;void 0!==o&&"0"!==o&&(e+=" show="+o),e+=" today=1"}return e+="]"}},{key:"componentDidMount",value:function(){this.mounted=!0,this.mounted&&(this.shortcode=this.createShortCode(),this.setState({shortcode:this.shortcode}))}},{key:"componentDidUpdate",value:function(e,t,o){this.mounted&&(this.shortcode=this.createShortCode(),t.shortcode!==this.shortcode&&this.setState({shortcode:this.shortcode}))}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"render",value:function(){return r.a.createElement("h1",null,this.shortcode)}}])&&a(o.prototype,i),u&&a(o,u),t}();Object.defineProperty(u,"slug",{configurable:!0,enumerable:!0,writable:!0,value:"divi_search"}),t.a=u},function(e,t,o){"use strict";var n=o(0),r=o.n(n),i=o(5);o.n(i);function s(e){return(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})(e)}function a(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u=function(e){function t(e){var o,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,o=!(r=(t.__proto__||Object.getPrototypeOf(t)).call(this,e))||"object"!==s(r)&&"function"!==typeof r?c(n):r,Object.defineProperty(c(o),"mounted",{configurable:!0,enumerable:!0,writable:!0,value:!1}),Object.defineProperty(c(o),"shortcode",{configurable:!0,enumerable:!0,writable:!0,value:"[ameliacatalog]"}),o.state={shortcode:o.shortcode},o}var o,i,u;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,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n["Component"]),o=t,(i=[{key:"checkValues",value:function(e){return void 0!==e?isNaN(e)?e.includes("id:")?e.split("id: ")[1].slice(0,-1):"0":e:"0"}},{key:"createShortCode",value:function(){var e="[ameliacatalog",t=this.props.trigger,o=this.props.type;void 0!==o&&"0"!==o&&(e+=" show="+o),void 0!==t&&""!==t&&(e+=" trigger="+this.props.trigger);var n=this.props.catalog;if("0"!==n){var r=this.checkValues(this.props.categories),i=this.checkValues(this.props.services),s=this.checkValues(this.props.packages);"0"!==i&&"service"===n?e+=" service="+i:"0"!==r&&"category"===n&&(e+=" category="+r),"0"!==s&&"package"===n&&(e+=" package="+s)}if("on"===this.props.booking_params){var a=this.checkValues(this.props.employees),c=this.checkValues(this.props.locations);"0"!==a&&(e+=" employee="+a),"0"!==c&&(e+=" location="+c)}return e+="]"}},{key:"componentDidMount",value:function(){this.mounted=!0,this.mounted&&(this.shortcode=this.createShortCode(),this.setState({shortcode:this.shortcode}))}},{key:"componentDidUpdate",value:function(e,t,o){this.mounted&&(this.shortcode=this.createShortCode(),t.shortcode!==this.shortcode&&this.setState({shortcode:this.shortcode}))}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"render",value:function(){return r.a.createElement("h1",null,this.shortcode)}}])&&a(o.prototype,i),u&&a(o,u),t}();Object.defineProperty(u,"slug",{configurable:!0,enumerable:!0,writable:!0,value:"divi_catalog"}),t.a=u},function(e,t,o){"use strict";var n=o(0),r=o.n(n),i=o(6);o.n(i);function s(e){return(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})(e)}function a(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u=function(e){function t(e){var o,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,o=!(r=(t.__proto__||Object.getPrototypeOf(t)).call(this,e))||"object"!==s(r)&&"function"!==typeof r?c(n):r,Object.defineProperty(c(o),"mounted",{configurable:!0,enumerable:!0,writable:!0,value:!1}),Object.defineProperty(c(o),"shortcode",{configurable:!0,enumerable:!0,writable:!0,value:"[ameliaevents]"}),o.state={shortcode:o.shortcode},o}var o,i,u;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,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n["Component"]),o=t,(i=[{key:"checkValues",value:function(e){if(void 0!==e){var t=/id: \d+\)/.exec(e);return isNaN(e)?t&&t.length?t[0].substring(4,t[0].length-1):"0":e}return"0"}},{key:"createShortCode",value:function(){var e="[ameliaevents",t=this.props.trigger,o=this.props.type;if(void 0!==o&&"0"!==o&&(e+=" type="+o),void 0!==t&&""!==t&&(e+=" trigger="+this.props.trigger),"on"===this.props.booking_params){var n=this.checkValues(this.props.events);void 0!==n&&"0"!==n&&(e+=" event="+n);var r=this.props.tags;void 0!==r&&"0"!==r&&(e+=" tag='"+r+"'"),"on"===this.props.recurring&&(e+=" recurring=1")}return e+="]"}},{key:"componentDidMount",value:function(){this.mounted=!0,this.mounted&&(this.shortcode=this.createShortCode(),this.setState({shortcode:this.shortcode}))}},{key:"componentDidUpdate",value:function(e,t,o){this.mounted&&(this.shortcode=this.createShortCode(),t.shortcode!==this.shortcode&&this.setState({shortcode:this.shortcode}))}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"render",value:function(){return r.a.createElement("h1",null,this.shortcode)}}])&&a(o.prototype,i),u&&a(o,u),t}();Object.defineProperty(u,"slug",{configurable:!0,enumerable:!0,writable:!0,value:"divi_events"}),t.a=u},function(e,t,o){"use strict";var n=o(0),r=o.n(n),i=o(7);o.n(i);function s(e){return(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})(e)}function a(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u=function(e){function t(e){var o,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,o=!(r=(t.__proto__||Object.getPrototypeOf(t)).call(this,e))||"object"!==s(r)&&"function"!==typeof r?c(n):r,Object.defineProperty(c(o),"mounted",{configurable:!0,enumerable:!0,writable:!0,value:!1}),Object.defineProperty(c(o),"shortcode",{configurable:!0,enumerable:!0,writable:!0,value:"[ameliaeventslistbooking]"}),o.state={shortcode:o.shortcode},o}var o,i,u;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,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n["Component"]),o=t,(i=[{key:"checkValues",value:function(e){if(void 0!==e){var t=/id: \d+\)/.exec(e);return isNaN(e)?t&&t.length?t[0].substring(4,t[0].length-1):"0":e}return"0"}},{key:"createShortCode",value:function(){var e="[ameliaeventslistbooking",t=this.props.trigger;if(void 0!==t&&""!==t&&(e+=" trigger="+this.props.trigger),"on"===this.props.booking_params){var o=this.checkValues(this.props.events);void 0!==o&&"0"!==o&&(e+=" event="+o);var n=this.props.tags;void 0!==n&&"0"!==n&&(e+=" tag='"+n+"'"),"on"===this.props.recurring&&(e+=" recurring=1")}return e+="]"}},{key:"componentDidMount",value:function(){this.mounted=!0,this.mounted&&(this.shortcode=this.createShortCode(),this.setState({shortcode:this.shortcode}))}},{key:"componentDidUpdate",value:function(e,t,o){this.mounted&&(this.shortcode=this.createShortCode(),t.shortcode!==this.shortcode&&this.setState({shortcode:this.shortcode}))}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"render",value:function(){return r.a.createElement("h1",null,this.shortcode)}}])&&a(o.prototype,i),u&&a(o,u),t}();Object.defineProperty(u,"slug",{configurable:!0,enumerable:!0,writable:!0,value:"divi_events_list_booking"}),t.a=u},function(e,t,o){"use strict";var n=o(0),r=o.n(n),i=o(8);o.n(i);function s(e){return(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})(e)}function a(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u=function(e){function t(e){var o,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,o=!(r=(t.__proto__||Object.getPrototypeOf(t)).call(this,e))||"object"!==s(r)&&"function"!==typeof r?c(n):r,Object.defineProperty(c(o),"mounted",{configurable:!0,enumerable:!0,writable:!0,value:!1}),Object.defineProperty(c(o),"shortcode",{configurable:!0,enumerable:!0,writable:!0,value:"[ameliacustomerpanel]"}),o.state={shortcode:o.shortcode},o}var o,i,u;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,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n["Component"]),o=t,(i=[{key:"createShortCode",value:function(){var e="[ameliacustomerpanel",t=this.props.trigger,o=this.props.appointments,n=this.props.events;return void 0!==t&&""!==t&&(e+=" trigger="+this.props.trigger),"on"===o&&(e+=" appointments=1"),"on"===n&&(e+=" events=1"),e+="]"}},{key:"componentDidMount",value:function(){this.mounted=!0,this.mounted&&(this.shortcode=this.createShortCode(),this.setState({shortcode:this.shortcode}))}},{key:"componentDidUpdate",value:function(e,t,o){this.mounted&&(this.shortcode=this.createShortCode(),t.shortcode!==this.shortcode&&this.setState({shortcode:this.shortcode}))}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"render",value:function(){return r.a.createElement("h1",null,this.shortcode)}}])&&a(o.prototype,i),u&&a(o,u),t}();Object.defineProperty(u,"slug",{configurable:!0,enumerable:!0,writable:!0,value:"divi_customer"}),t.a=u},function(e,t,o){"use strict";var n=o(0),r=o.n(n),i=o(9);o.n(i);function s(e){return(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})(e)}function a(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u=function(e){function t(e){var o,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,o=!(r=(t.__proto__||Object.getPrototypeOf(t)).call(this,e))||"object"!==s(r)&&"function"!==typeof r?c(n):r,Object.defineProperty(c(o),"mounted",{configurable:!0,enumerable:!0,writable:!0,value:!1}),Object.defineProperty(c(o),"shortcode",{configurable:!0,enumerable:!0,writable:!0,value:"[ameliaemployeepanel]"}),o.state={shortcode:o.shortcode},o}var o,i,u;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,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n["Component"]),o=t,(i=[{key:"createShortCode",value:function(){var e="[ameliaemployeepanel",t=this.props.trigger,o=this.props.appointments,n=this.props.events,r=this.props.profile;return void 0!==t&&""!==t&&(e+=" trigger="+this.props.trigger),"on"===o&&(e+=" appointments=1"),"on"===n&&(e+=" events=1"),"on"===r&&(e+=" profile-hidden=1"),e+="]"}},{key:"componentDidMount",value:function(){this.mounted=!0,this.mounted&&(this.shortcode=this.createShortCode(),this.setState({shortcode:this.shortcode}))}},{key:"componentDidUpdate",value:function(e,t,o){this.mounted&&(this.shortcode=this.createShortCode(),t.shortcode!==this.shortcode&&this.setState({shortcode:this.shortcode}))}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"render",value:function(){return r.a.createElement("h1",null,this.shortcode)}}])&&a(o.prototype,i),u&&a(o,u),t}();Object.defineProperty(u,"slug",{configurable:!0,enumerable:!0,writable:!0,value:"divi_employee"}),t.a=u},function(e,t,o){"use strict";var n=o(26);t.a=[n.a]},function(e,t,o){"use strict";var n=o(0),r=o.n(n),i=o(10);o.n(i);function s(e){return(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})(e)}function a(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u=function(e){function t(e){var o,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,r=(t.__proto__||Object.getPrototypeOf(t)).call(this,e),o=!r||"object"!==s(r)&&"function"!==typeof r?c(n):r,Object.defineProperty(c(o),"mount",{configurable:!0,enumerable:!0,writable:!0,value:!1}),Object.defineProperty(c(o),"_onChange",{configurable:!0,enumerable:!0,writable:!0,value:function(e){o.props._onChange(o.props.name,e.target.value)}}),o.mount&&(o.state={}),o}var o,i,u;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,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n["Component"]),o=t,(i=[{key:"componentDidMount",value:function(){var e=this;this.mount=!0,"categories"===this.props.name||"services"===this.props.name?fetch(window.wpAmeliaPluginAjaxURL+"/entities&types[]=categories").then(function(e){return e.json()}).then(function(t){var o=[];t.data.categories.forEach(function(e){o=o.concat(e.serviceList)}),e.mount&&e.setState({categories:t.data.categories,services:o})}):"employees"===this.props.name?fetch(window.wpAmeliaPluginAjaxURL+"/entities&types[]=employees").then(function(e){return e.json()}).then(function(t){e.mount&&e.setState({employees:t.data.employees})}):"locations"===this.props.name?fetch(window.wpAmeliaPluginAjaxURL+"/entities&types[]=locations").then(function(e){return e.json()}).then(function(t){e.mount&&e.setState({locations:t.data.locations})}):"type"===this.props.name&&this.mount&&this.setState({type:[{id:1,name:"Services"},{id:2,name:"Packages"}]})}},{key:"componentWillUnmount",value:function(){this.mount=!1}},{key:"render",value:function(){return r.a.createElement("div",null,this.state&&this.state[this.props.name]?r.a.createElement("select",{id:"myex-input-".concat(this.props.name),name:this.props.name,value:this.props.value,className:"et-fb-settings-option-select et-fb-settings-option-select-advanced et-fb-main-setting",onChange:this._onChange},r.a.createElement("option",{value:0,key:0,className:"select-option-item et-fb-selected-item"},window.wpAmeliaLabels["show_all"+("type"!==this.props.name?"_"+this.props.name:"")]),this.state[this.props.name].map(function(e){return r.a.createElement("option",{key:e.id,value:e.id,className:"select-option-item et-fb-selected-item"},e.name?e.name:e.firstName+" "+e.lastName)})):r.a.createElement("img",{src:window.wpAmeliaPath+"public/img/spinner.svg",alt:"no_img"}))}}])&&a(o.prototype,i),u&&a(o,u),t}();Object.defineProperty(u,"slug",{configurable:!0,enumerable:!0,writable:!0,value:"divi_input"}),t.a=u}]);
| ver. 1.4 |
Github
|
.
| PHP 5.4.45 | Generation time: 0 |
proxy
|
phpinfo
|
Settings