Edit file File name : container-converter.min.js Content :/*! elementor - v3.24.0 - 15-10-2024 */ (()=>{var e={88852:(e,t,r)=>{"use strict";var n=r(38003).__,o=r(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.ConvertAll=void 0;var u=o(r(9833)),i=o(r(78983)),a=o(r(42081)),l=o(r(58724)),c=o(r(71173)),s=o(r(74910));function _createSuper(e){var t=function _isNativeReflectConstruct(){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 _createSuperInternal(){var r,n=(0,s.default)(e);if(t){var o=(0,s.default)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return(0,c.default)(this,r)}}var f=function(e){(0,l.default)(ConvertAll,e);var t=_createSuper(ConvertAll);function ConvertAll(){return(0,i.default)(this,ConvertAll),t.apply(this,arguments)}return(0,a.default)(ConvertAll,[{key:"getHistory",value:function getHistory(){return{type:n("Converted to Containers","elementor"),title:n("All Content","elementor")}}},{key:"apply",value:function apply(){var e=elementor.getPreviewContainer().children;(0,u.default)(e).forEach((function(e){$e.run("container-converter/convert",{container:e})}))}}]),ConvertAll}($e.modules.editor.document.CommandHistoryBase);t.ConvertAll=f},91354:(e,t,r)=>{"use strict";var n=r(38003).__,o=r(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.Convert=void 0;var u=o(r(78983)),i=o(r(42081)),a=o(r(58724)),l=o(r(71173)),c=o(r(74910)),s=o(r(91341));function _createSuper(e){var t=function _isNativeReflectConstruct(){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 _createSuperInternal(){var r,n=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return(0,l.default)(this,r)}}var f=function(e){(0,a.default)(Convert,e);var t=_createSuper(Convert);function Convert(){return(0,u.default)(this,Convert),t.apply(this,arguments)}return(0,i.default)(Convert,[{key:"getHistory",value:function getHistory(){return{type:n("Converted to Container","elementor"),title:n("Section","elementor")}}},{key:"validateArgs",value:function validateArgs(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.requireContainer(e)}},{key:"apply",value:function apply(e){this.constructor.convert(e)}}],[{key:"convert",value:function convert(e){var t=e.container,r=e.rootContainer,n=void 0===r?t.parent:r,o=t.view,u=t.type,i=n===t.parent?o._index+1:o._index;if(s.default.canConvertToContainer(u)){var a=t.model.toJSON(),l=s.default.getLegacyControlsMapping(a),c=t.settings.toJSON({remove:"default"});c=s.default.migrate(c,l),c=s.default.normalizeSettings(a,c);var f=$e.run("document/elements/create",{model:{elType:"container",settings:c},container:n,options:{at:i,edit:!1}});t.children.forEach((function(e){$e.run("container-converter/convert",{container:e,rootContainer:f})}))}else $e.run("document/elements/create",{model:{elType:t.model.get("elType"),widgetType:t.model.get("widgetType"),settings:t.settings.toJSON({remove:"default"})},container:n,options:{at:i,edit:!1}})}}]),Convert}($e.modules.editor.document.CommandHistoryBase);t.Convert=f},89470:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Convert",{enumerable:!0,get:function get(){return n.Convert}}),Object.defineProperty(t,"ConvertAll",{enumerable:!0,get:function get(){return o.ConvertAll}});var n=r(91354),o=r(88852)},77417:(e,t,r)=>{"use strict";var n=r(38003).__,o=r(73203),u=r(7501);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(r(78983)),a=o(r(42081)),l=o(r(58724)),c=o(r(71173)),s=o(r(74910)),f=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!=typeof e)return{default:e};var r=_getRequireWildcardCache(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,r&&r.set(e,n);return n}(r(89470));function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?r:t})(e)}function _createSuper(e){var t=function _isNativeReflectConstruct(){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 _createSuperInternal(){var r,n=(0,s.default)(e);if(t){var o=(0,s.default)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return(0,c.default)(this,r)}}var p=function(e){(0,l.default)(_default,e);var t=_createSuper(_default);function _default(){var e;return(0,i.default)(this,_default),(e=t.call(this)).bindEvents(),e}return(0,a.default)(_default,[{key:"bindEvents",value:function bindEvents(){elementor.channels.editor.on("elementorContainerConverter:convert",(function(e){var t=e.container,r=e.el.querySelector(".elementor-button"),o="e-loading";r.classList.add(o),setTimeout((function(){"document"===t.type?$e.run("container-converter/convert-all"):$e.run("container-converter/convert",{container:t}),r.classList.remove(o),r.setAttribute("disabled",!0),elementor.notifications.showToast({message:n("Your changes have been updated.","elementor")})}))}))}},{key:"getNamespace",value:function getNamespace(){return"container-converter"}},{key:"defaultCommands",value:function defaultCommands(){return this.importCommands(f)}}]),_default}($e.modules.ComponentBase);t.default=p},62721:(e,t,r)=>{"use strict";var n=r(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(93231)),u=r(69886);function ownKeys(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 _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){(0,o.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var i=function map(){return _objectSpread(_objectSpread(_objectSpread({},(0,u.responsive)("_inline_size",(function(e){var t=e.deviceValue,r=e.breakpoint;return[(0,u.getDeviceKey)("width",r),{size:t,unit:"%"}]}))),(0,u.responsive)("content_position",(function(e){var t=e.deviceValue,r=e.breakpoint;return[(0,u.getDeviceKey)("flex_justify_content",r),{top:"flex-start",bottom:"flex-end"}[t]||t]}))),(0,u.responsive)("space_between_widgets",(function(e){var t=e.deviceValue,r=e.breakpoint;return[(0,u.getDeviceKey)("flex_gap",r),{size:t,column:""+t,row:""+t,unit:"px"}]})))};t.default=i},99685:(e,t,r)=>{"use strict";var n=r(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(93231)),u=r(69886);function ownKeys(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 _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){(0,o.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var i=function map(e){var t=e.isInner,r=e.settings,n=void 0===r?{}:r,o=t?"width":"boxed_width";return _objectSpread(_objectSpread(_objectSpread({},"boxed"===n.layout?(0,u.responsive)("content_width",o):{content_width:null}),"min-height"===n.height&&(0,u.responsive)("custom_height","min_height")),{},{layout:function layout(e){var t=e.value;return["content_width",{boxed:"boxed",full_width:"full"}[t]||t]},height:function height(e){var t=e.value,r=e.settings;switch(t){case"full":t={size:100,unit:"vh"};break;case"min-height":t=r.custom_height||{size:400,unit:"px"};break;default:return!1}return["min_height",t]},gap:function gap(e){var t=e.value,r=e.settings,n={no:0,narrow:5,extended:15,wide:20,wider:30};return["flex_gap",t="custom"===t?r.gap_columns_custom:{size:n[t],column:""+n[t],row:""+n[t],unit:"px"}]},gap_columns_custom:null,column_position:function column_position(e){var t=e.value;return["flex_align_items",{top:"flex-start",middle:"center",bottom:"flex-end"}[t]||t]}})};t.default=i},69886:(e,t,r)=>{"use strict";var n=r(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.getDeviceKey=getDeviceKey,t.responsive=function responsive(e,t){var r=[""].concat((0,o.default)(Object.keys(elementorFrontend.config.responsive.activeBreakpoints)));return Object.fromEntries(r.map((function(r){var n=getDeviceKey(e,r);if("string"==typeof t){var o=getDeviceKey(t,r);return[n,function(e){var t=e.settings;return[o,t[n]]}]}return[n,function(o){var u=o.settings,i=o.value;return t({key:e,deviceKey:n,value:i,deviceValue:u[n],settings:u,breakpoint:r})}]})))};var o=n(r(9833));function getDeviceKey(e,t){return[e,t].filter((function(e){return!!e})).join("_")}},91341:(e,t,r)=>{"use strict";var n=r(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(40131)),u=n(r(78983)),i=n(r(42081)),a=n(r(93231)),l=n(r(99685)),c=n(r(62721));function ownKeys(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 _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){(0,a.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var s=function(){function Migrator(){(0,u.default)(this,Migrator)}return(0,i.default)(Migrator,null,[{key:"migrate",value:function migrate(e,t){return Object.fromEntries(Object.entries(_objectSpread({},e)).map((function(r){var n=(0,o.default)(r,2),u=n[0],i=n[1],a=t[u];return null===a?null:"string"==typeof a?[a,i]:"function"==typeof a?a({key:u,value:i,settings:e}):[u,i]})).filter(Boolean))}},{key:"canConvertToContainer",value:function canConvertToContainer(e){return Object.keys(this.config).includes(e)}},{key:"getLegacyControlsMapping",value:function getLegacyControlsMapping(e){var t=this.config[e.elType];if(!t)return{};var r=t.legacyControlsMapping;return"function"==typeof r?r(e):r}},{key:"normalizeSettings",value:function normalizeSettings(e,t){var r=this.config[e.elType];return r.normalizeSettings?r.normalizeSettings(t,e):t}}]),Migrator}();t.default=s,(0,a.default)(s,"config",{section:{legacyControlsMapping:l.default,normalizeSettings:function normalizeSettings(e,t){var r=t.isInner;return _objectSpread(_objectSpread({},e),{},{flex_direction:"row",flex_align_items:e.flex_align_items||"stretch",flex_gap:e.flex_gap||{size:10,column:"10",row:"10",unit:"px"}},r?{content_width:"full"}:{})}},column:{legacyControlsMapping:c.default,normalizeSettings:function normalizeSettings(e){return _objectSpread(_objectSpread({},e),{},{content_width:"full"})}}})},38003:e=>{"use strict";e.exports=wp.i18n},98106:e=>{e.exports=function _arrayLikeToArray(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},e.exports.__esModule=!0,e.exports.default=e.exports},17358:e=>{e.exports=function _arrayWithHoles(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},34102:(e,t,r)=>{var n=r(98106);e.exports=function _arrayWithoutHoles(e){if(Array.isArray(e))return n(e)},e.exports.__esModule=!0,e.exports.default=e.exports},77266:e=>{e.exports=function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},78983:e=>{e.exports=function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},42081:(e,t,r)=>{var n=r(74040);function _defineProperties(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,n(o.key),o)}}e.exports=function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},93231:(e,t,r)=>{var n=r(74040);e.exports=function _defineProperty(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},74910:e=>{function _getPrototypeOf(t){return e.exports=_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,_getPrototypeOf(t)}e.exports=_getPrototypeOf,e.exports.__esModule=!0,e.exports.default=e.exports},58724:(e,t,r)=>{var n=r(96196);e.exports=function _inherits(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)},e.exports.__esModule=!0,e.exports.default=e.exports},73203:e=>{e.exports=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},68:e=>{e.exports=function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},40608:e=>{e.exports=function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,u,i,a=[],l=!0,c=!1;try{if(u=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=u.call(r)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return a}},e.exports.__esModule=!0,e.exports.default=e.exports},56894:e=>{e.exports=function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},91282:e=>{e.exports=function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},71173:(e,t,r)=>{var n=r(7501).default,o=r(77266);e.exports=function _possibleConstructorReturn(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)},e.exports.__esModule=!0,e.exports.default=e.exports},96196:e=>{function _setPrototypeOf(t,r){return e.exports=_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,_setPrototypeOf(t,r)}e.exports=_setPrototypeOf,e.exports.__esModule=!0,e.exports.default=e.exports},40131:(e,t,r)=>{var n=r(17358),o=r(40608),u=r(35068),i=r(56894);e.exports=function _slicedToArray(e,t){return n(e)||o(e,t)||u(e,t)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},9833:(e,t,r)=>{var n=r(34102),o=r(68),u=r(35068),i=r(91282);e.exports=function _toConsumableArray(e){return n(e)||o(e)||u(e)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},56027:(e,t,r)=>{var n=r(7501).default;e.exports=function toPrimitive(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},74040:(e,t,r)=>{var n=r(7501).default,o=r(56027);e.exports=function toPropertyKey(e){var t=o(e,"string");return"symbol"==n(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},7501:e=>{function _typeof(t){return e.exports=_typeof="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.exports.__esModule=!0,e.exports.default=e.exports,_typeof(t)}e.exports=_typeof,e.exports.__esModule=!0,e.exports.default=e.exports},35068:(e,t,r)=>{var n=r(98106);e.exports=function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return n(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)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}},t={};function __webpack_require__(r){var n=t[r];if(void 0!==n)return n.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,__webpack_require__),o.exports}(()=>{"use strict";var e=__webpack_require__(73203),t=e(__webpack_require__(78983)),r=e(__webpack_require__(42081)),n=e(__webpack_require__(58724)),o=e(__webpack_require__(71173)),u=e(__webpack_require__(74910)),i=e(__webpack_require__(77417));function _createSuper(e){var t=function _isNativeReflectConstruct(){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 _createSuperInternal(){var r,n=(0,u.default)(e);if(t){var i=(0,u.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,o.default)(this,r)}}new(function(e){(0,n.default)(Module,e);var o=_createSuper(Module);function Module(){return(0,t.default)(this,Module),o.apply(this,arguments)}return(0,r.default)(Module,[{key:"onInit",value:function onInit(){$e.components.register(new i.default)}}]),Module}(elementorModules.editor.utils.Module))})()})(); Save