403Webshell
Server IP : 85.158.181.41  /  Your IP : 216.73.217.12
Web Server : Apache
System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64
User : moncbefd ( 1024)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/moncbefd/www.moneta.at/GXModules/Gambio/StyleEdit/Build/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/moncbefd/www.moneta.at/GXModules/Gambio/StyleEdit/Build/js/app.981eabd8.js
(function(t){function e(e){for(var i,s,r=e[0],l=e[1],c=e[2],u=0,h=[];u<r.length;u++)s=r[u],o[s]&&h.push(o[s][0]),o[s]=0;for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(t[i]=l[i]);d&&d(e);while(h.length)h.shift()();return a.push.apply(a,c||[]),n()}function n(){for(var t,e=0;e<a.length;e++){for(var n=a[e],i=!0,r=1;r<n.length;r++){var l=n[r];0!==o[l]&&(i=!1)}i&&(a.splice(e--,1),t=s(s.s=n[0]))}return t}var i={},o={app:0},a=[];function s(e){if(i[e])return i[e].exports;var n=i[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,s),n.l=!0,n.exports}s.m=t,s.c=i,s.d=function(t,e,n){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},s.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)s.d(n,i,function(e){return t[e]}.bind(null,i));return n},s.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="";var r=window["webpackJsonp"]=window["webpackJsonp"]||[],l=r.push.bind(r);r.push=e,r=r.slice();for(var c=0;c<r.length;c++)e(r[c]);var d=l;a.push([0,"chunk-vendors"]),n()})({0:function(t,e,n){t.exports=n("56d7")},"0069":function(t,e,n){"use strict";var i=n("67bf"),o=n.n(i);o.a},"00dd":function(t,e,n){},"03b7":function(t,e,n){},"06ff":function(t,e,n){},"07b4":function(t,e,n){"use strict";var i=n("08ce"),o=n.n(i);o.a},"08ce":function(t,e,n){},"0f79":function(t,e,n){},"13a7":function(t,e,n){},1728:function(t,e,n){},"1b16":function(t,e,n){"use strict";var i=n("951e"),o=n.n(i);o.a},"1bd8":function(t,e,n){},"1bea":function(t,e,n){"use strict";var i=n("8995"),o=n.n(i);o.a},"1dbd":function(t,e,n){},"1ec7":function(t,e,n){"use strict";var i=n("8434"),o=n.n(i);o.a},"1ed0":function(t,e,n){},2252:function(t,e,n){"use strict";var i=n("76d7"),o=n.n(i);o.a},2359:function(t,e,n){"use strict";var i=n("06ff"),o=n.n(i);o.a},2455:function(t,e,n){"use strict";var i=n("1dbd"),o=n.n(i);o.a},"2a04":function(t,e,n){},"2a87":function(t,e,n){"use strict";var i=n("785e"),o=n.n(i);o.a},"2eea":function(t,e,n){},"2faf":function(t,e,n){"use strict";var i=n("f745"),o=n.n(i);o.a},"2fcc":function(t,e,n){},3537:function(t,e,n){},"3a62":function(t,e,n){"use strict";var i=n("8e0b"),o=n.n(i);o.a},"3b6f":function(t,e,n){},"40e0":function(t,e,n){},4369:function(t,e,n){"use strict";var i=n("3b6f"),o=n.n(i);o.a},"49f8":function(t,e,n){var i={"./de.json":"6ce2","./en.json":"edd4"};function o(t){var e=a(t);return n(e)}function a(t){var e=i[t];if(!(e+1)){var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}return e}o.keys=function(){return Object.keys(i)},o.resolve=a,t.exports=o,o.id="49f8"},"501d":function(t,e,n){},"532d":function(t,e,n){"use strict";var i=n("8b61"),o=n.n(i);o.a},"56d7":function(t,e,n){"use strict";n.r(e);n("cadf"),n("551c"),n("f751"),n("097d");var i=n("2b0e"),o=n("3730"),a=n.n(o),s=n("8f94"),r=n.n(s),l=n("5f5b"),c=n("a4a1"),d=n.n(c),u=(n("f6b9"),n("4917"),n("ac6a"),n("a925"));function h(){var t=n("49f8"),e={};return t.keys().forEach(function(n){var i=n.match(/([A-Za-z0-9-_]+)\./i);if(i&&i.length>1){var o=i[1];e[o]=t(n)}}),e}i["default"].use(u["a"]);var m,g=new u["a"]({locale:"de",fallbackLocale:"en",messages:h()}),v=n("2f62"),p=n("bc3a"),f=n.n(p),b=0,w=1,C=2,x=3,y=(n("386d"),new URLSearchParams(location.search));m=y.get("url")?y.get("url"):window.location.protocol+"//"+window.location.hostname;var k=m+"/GXModules/Gambio/StyleEdit/Api/api.php",$=y.get("language")||"de",S=function(t){return"".concat(k,"/styleedit/").concat($,"/theme/").concat(t)},_="".concat(k,"/styleedit/").concat($,"/theme"),T=function(t){return"".concat(k,"/styleedit/").concat($,"/theme/").concat(t)},O=function(t){return"".concat(k,"/styleedit/").concat($,"/theme/").concat(t)},L=function(t){return"".concat(k,"/styleedit/").concat($,"/theme/").concat(t,"/duplicate")},I="".concat(k,"/styleedit/").concat($,"/theme/upload"),M="".concat(k,"/styleedit/").concat($,"/settings"),E=function(t){return"".concat(k,"/styleedit/").concat($,"/theme/").concat(t)},z=function(t){return"".concat(k,"/styleedit/").concat($,"/theme/").concat(t,"/createpreview")},B=function(t){return"".concat(k,"/styleedit/").concat($,"/widget/").concat(t)},j=function(t,e,n){return"".concat(k,"/styleedit/").concat(n,"/widget/").concat(t,"/").concat(e)},D=function(t,e){return"".concat(k,"/styleedit/").concat($,"/content-zone/").concat(t,"/").concat(e)},V=function(t){return"".concat(k,"/styleedit/").concat($,"/custom-scss/").concat(t)},P=function(){return"".concat(k,"/styleedit/").concat($,"/jwt")},U=function(t){return"".concat(k,"/styleedit/").concat($,"/widget/Honeygrid/").concat(t)},R=("".concat(m,"/admin/admin.php?do=StyleEditProductSearch/byTerm&language=").concat($,"&term="),"".concat(m,"/admin/admin.php?do=StyleEditProductSearch/byIds&language=").concat($,"&ids=")),Z=("".concat(m,"/admin/admin.php?do=StyleEditCategorySearch/byTerm&language=").concat($,"&term="),function(t){return"".concat(k,"/styleedit/").concat($,"/configuration/").concat(t,"/styleedit3")}),A=function(t){return"".concat(k,"/styleedit/").concat($,"/configuration/").concat(t,"/styleedit3")},F=function(t){return"".concat(k,"/styleedit/").concat($,"/configuration/").concat(t)},H=function(t){return"".concat(k,"/styleedit/").concat($,"/theme/").concat(t,"/font")},W={headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}},G={namespaced:!0,state:{show:!1,themeUploadStatus:b,themes:[]},mutations:{toggle:function(t,e){t.show=e},setThemes:function(t,e){t.themes=e},setThemeUploadStatus:function(t,e){t.themeUploadStatus=e}},actions:{fetchThemes:function(){return f()(_)},activateTheme:function(t,e){return f.a.patch(T(e),{active:!0},W)},deleteTheme:function(t,e){return f.a.delete(O(e))},duplicateTheme:function(t,e){var n=e.theme,i=e.language,o=n.author;return f.a.post(L(n.id),{author:o,language:i},W)},downloadTheme:function(){alert("Downloading...")},uploadTheme:function(t,e){return f.a.put(I,e)}}},N=n("795b"),q=n.n(N),X=n("cebc"),J=n("768b"),K=n("2d1f"),Y=n.n(K),Q=n("a4bb"),tt=n.n(Q),et="editor/fetchThemeToEdit",nt="chooser/fetchThemes",it="chooser/activateTheme",ot="chooser/deleteTheme",at="chooser/duplicateTheme",st="chooser/downloadTheme",rt="chooser/uploadTheme",lt="editor/fetchWidgets",ct="editor/fetchAdditionalAvailableFonts",dt="editor/fetchContentZones",ut="editor/fetchCustomScss",ht={headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}},mt={headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},handleError:!1},gt={namespaced:!0,state:{shopURL:"",selectedTheme:!1,tempTheme:!1,expertMode:!1,customerID:1,themeConfig:{},iframeLoading:!0,editorView:"desktop",breadcrumb:{current:"",items:{}},madeChangesStatus:!1,saveBtnStatus:1,currentLanguage:"de",sourceThemeId:0},mutations:{initializeUrlParams:function(t){var e=new URLSearchParams(location.search);t.currentLanguage=e.get("language")||"de",e.get("url")?e.get("url"):(window.location.protocol,window.location.hostname)},saveThemeConfig:function(t,e){t.themeConfig=e},saveCurrentLanguage:function(t,e){t.currentLanguage=e},saveSourceTheme:function(t,e){t.sourceThemeId=e},saveSelectedThemeData:function(t,e){t.selectedTheme=e},saveSelectedEditorView:function(t,e){t.editorView=e},saveThemeTempFolder:function(t,e){t.tempTheme=e},toggleExpertMode:function(t,e){t.expertMode=e},saveCustomerID:function(t,e){t.customerID=e},saveShopURL:function(t,e){t.shopURL=e},toggleIframeLoading:function(t,e){t.iframeLoading=void 0!=e?e:!t.iframeLoading},saveThemeOption:function(t,e){if(e){var n=tt()(e)[0];if("variant"==e[n].type){var i=n+"/"+e[n].value.id,o=t.themeConfig;if(o)for(var a=Y()(o),s=0;s<a.length;s++){var r=Object(J["a"])(a[s],2),l=r[0],c=r[1];c.for&&c.for!=i&&delete t.themeConfig[l]}}}t.themeConfig=Object(X["a"])({},t.themeConfig,e)},currentBreadcrumb:function(t,e){t.breadcrumb.current=e},generateBreadcrumb:function(t,e){t.breadcrumb.items=Object(X["a"])({},t.breadcrumb.items,e);var n,i=tt()(t.breadcrumb.items),o=i.length;n=o<=2?i[0]:i[o-2],o<=1&&(n=i[0]),t.breadcrumb.current=n},updateLanguage:function(t,e){t.currentLanguage=e},reArrangeBreadcrumb:function(t,e){var n=e.action;if("clear"==n)t.breadcrumb.current="",t.breadcrumb.items={};else if("goBack"==n){t.breadcrumb.items=e.from;var i,o=tt()(t.breadcrumb.items),a=o.length;i=a<=2?o[0]:o[a-2],a<=1&&(i=o[0]),t.breadcrumb.current=i}},updateSelectedThemeColorPalette:function(t,e){t.selectedTheme.colorPalette[e.selector]=e.value},changeMadeChangesStatus:function(t,e){t.madeChangesStatus=e},changeSaveBtnStatus:function(t,e){t.saveBtnStatus=e},saveCustomScss:function(t,e){t.selectedTheme.config["styles"]=e}},getters:{breadcrumbItemsCounter:function(t){return tt()(t.breadcrumb.items).length},madeChangesStatus:function(t){return t.madeChangesStatus}},actions:{fetchWidgets:function(t){var e=t.state,n=e.selectedTheme.id;return f.a.get(B(n),ht)},fetchContentZones:function(t,e){var n=t.state,i=n.selectedTheme.id;return f.a.get(D(i,e),ht)},fetchAdditionalAvailableFonts:function(t,e){t.state;return f.a.get(H(e),ht)},fetchThemeToEdit:function(t,e){t.state;return e?f.a.get(S(e),ht):f.a.get(_,ht)},createPreviewTheme:function(t,e){t.state;return f.a.post(z(e),mt)},fetchThemes:function(){return f()(_)},updateExpertMode:function(t){var e=t.state,n=t.commit;return n("toggleExpertMode",!e.expertMode),f.a.patch(M,{expertMode:e.expertMode,customer_id:e.customerID},ht)},saveEditorChanges:function(t,e){var n=t.state,i=t.commit;return i("saveThemeOption",e),i("changeMadeChangesStatus",!0),f.a.patch(E(n.selectedTheme.id),{options:n.themeConfig},Object(X["a"])({},ht,{handleError:!0}))},saveTheme:function(t,e){var n=t.state,i=t.commit;t.dispatch;return i("changeMadeChangesStatus",!1),f.a.patch(E(n.sourceThemeId),{options:n.themeConfig},Object(X["a"])({requestConfig:ht},{handleError:!0})).then(function(t){return i("saveThemeConfig",{}),q.a.resolve(t)},function(t){return q.a.reject(t)})},fetchCustomScss:function(t,e){t.state,t.commit;return f.a.get(V(e),{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}})}}},vt={namespaced:!0,state:{token:window.jwtToken||null},mutations:{updateToken:function(t,e){t.token=e}},getters:{},actions:{produceAuthenticationToken:function(t){var e=t.commit,n=t.state;return n.token?new q.a(function(t,e){t(n.token)}):new q.a(function(t,i){var o=f.a.create(),a=o.get(P());a.then(function(i){var o=i.data;e("updateToken",o.token),t(n.token)}).catch(function(t){i(t)})})}}};i["default"].use(v["a"]);var pt,ft,bt,wt,Ct,xt,yt=new v["a"].Store({modules:{chooser:G,editor:gt,authentication:vt}}),kt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.$store.state.authentication.token&&t.showEditor?n("div",{attrs:{id:"app"}},[t.$store.state.editor.selectedTheme?n("theme-editor",{ref:"editor",attrs:{availableContentZones:t.contentZones,availableDragableWidgets:t.dragableWidgets,expertmode:t.$store.state.editor.expertMode,locales:this.$t("editor")},on:{"load-content-zones":t.loadContentZones,loadAvailableWidgets:t.getDragableWidget,saveEditorChanges:t.triggerSaveChanges,saveEditorViewPort:t.saveCurrentEditorView,"show-chooser":function(e){return t.toggleChooser(!0)},"toggle-expertmode":t.toggleExpertMode,"toggle-iframeLoading":t.toggleIframeLoading,toggleModal:t.toggleModal}}):t._e(),n("theme-chooser",{staticStyle:{"min-height":"100vh"},attrs:{locales:this.$t("chooser"),show:t.chooserVisible,"theme-upload-status":t.$store.state.chooser.themeUploadStatus,themes:t.$store.state.chooser.themes},on:{activate:function(e){return t.activateTheme(e)},delete:function(e){return t.deleteTheme(e)},download:function(e){return t.downloadTheme(e)},duplicate:function(e){return t.duplicateTheme({theme:e,language:t.$i18n.locale})},edit:function(e){return t.loadTheme(e)},hide:function(e){return t.toggleChooser(!1)},"reset-placeholder":function(e){return t.resetThemePlaceholder()},upload:function(e){return t.uploadTheme(e)},toggleModal:t.toggleModal}}),n("modal-component",{attrs:{locales:t.getModalLocales(),show:t.showModal,title:"Modal Title",confirmButtonVariant:t.modalConfirmBtnColor(),"show-cancel-button":t.showCancelButton(),"hide-close-button":t.hideCloseButton()},on:{cancel:function(e){return t.toggleModal(!1)},confirm:t.onModalConfirm}})],1):t._e()},$t=[],St=(n("7514"),n("96cf"),n("3b8d")),_t=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"style-edit-container"}},[n("div",{staticClass:"theme-editor-wrapper"},[n("div",{staticClass:"theme-editor-panel",class:{"active-overlay":t.editor.overlay.visible||t.editor.contentZoneOverlay.visible}},[n("div",{staticClass:"editor-panel-header"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-8"},[n("button",{staticClass:"btn btn-link hamburger-menu",attrs:{title:t.$store.state.editor.selectedTheme.title},on:{click:function(e){return t.$emit("show-chooser")}}},[n("custom-icon",{attrs:{icon:"hamburger"}}),t._v("\n\t\t\t\t\t\t\t\t"+t._s(t.$store.state.editor.selectedTheme.title)+"\n\t\t\t\t\t\t\t\t")],1)]),n("div",{staticClass:"col-4 text-right"},[n("button",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"btn btn-link home-button",attrs:{title:t.$t("editor.buttons.homeTooltip")},on:{click:function(e){return t.redirectIFrame(t.$store.state.editor.shopURL)}}},[n("custom-icon",{class:t.homeIcon,attrs:{icon:"home"}})],1),n("b-dropdown",{attrs:{right:"",variant:"link"}},[n("template",{slot:"button-content"},[n("custom-icon",{attrs:{icon:"more"}})],1),n("b-dropdown-item",{directives:[{name:"b-modal",rawName:"v-b-modal.customStyleModal",modifiers:{customStyleModal:!0}}]},[t._v(t._s(t.$t("editor.menu.editCss"))+"\n\t\t\t\t\t\t\t\t")]),n("b-dropdown-item",{staticStyle:{display:"none"},on:{click:function(t){}}},[t._v(t._s(t.$t("editor.menu.download"))+"\n\t\t\t\t\t\t\t\t")]),n("b-dropdown-item",{on:{click:function(e){return t.openImportSettingsModal()}}},[t._v(t._s(t.$t("editor.menu.importSettings"))+"\n\t\t\t\t\t\t\t\t")])],2)],1)]),n("SaveBeforeLeaveModal",{attrs:{made_changes:t.editor.made_changes}}),n("CustomScssModal",{attrs:{openModal:t.editor.custom_style.show},on:{handleIframe:t.handleIframe}}),n("import-settings-modal",{attrs:{show:t.showImportSettingsModal},on:{cancel:function(e){t.showImportSettingsModal=!1},handleIframe:t.handleIframe}})],1),n("div",{staticClass:"editor-panel-tabs"},[n("b-tabs",{staticClass:"editor-tabs",model:{value:t.editor.tabIndex,callback:function(e){t.$set(t.editor,"tabIndex",e)},expression:"editor.tabIndex"}},[n("b-tab",{attrs:{title:t.$t("editor.tabs.basics"),active:""}},[t.$store.state.editor.selectedTheme.config?n("perfect-scrollbar",{staticClass:"tabs-content-wrapper"},[n("Handler",{attrs:{data:t.$store.state.editor.selectedTheme.config.basics},on:{handleIframe:t.handleIframe,toggleModal:t.toggleModal,closeOverlay:t.closeAllOverlays}})],1):t._e()],1),n("b-tab",{attrs:{title:t.$t("editor.tabs.areas")}},[t.$store.state.editor.selectedTheme.config?n("perfect-scrollbar",{staticClass:"tabs-content-wrapper"},[n("Handler",{attrs:{data:t.$store.state.editor.selectedTheme.config.areas},on:{handleIframe:t.handleIframe,handleOverlay:t.handleOverlay,toggleModal:t.toggleModal}})],1):t._e()],1),n("b-tab",{attrs:{title:t.$t("editor.tabs.widgets")}},[t.$store.state.editor.selectedTheme.config?n("perfect-scrollbar",{staticClass:"tabs-content-wrapper"},[n("div",{staticClass:"widgets-head-message"},[t.existsContentZones?t._e():n("b-alert",{attrs:{show:"",variant:"warning"}},[t._v(t._s(t.$t("editor.widgets.noContentZones"))+"\n\t\t\t\t\t\t\t\t\t")]),t.editor.preview?n("b-alert",{attrs:{show:"",variant:"info"}},[t._v(t._s(t.locales.widgets.previewModeMessage)+"\n\t\t\t\t\t\t\t\t\t")]):t._e()],1),n("draggable",{staticClass:"available-widgets",attrs:{clone:t.cloneDog,group:{name:"widgets",pull:"clone",put:!1},list:t.dragableWidgets,disabled:!t.existsContentZones||t.editor.preview,sort:!1,setData:t.modifyDragItem},on:{change:t.log}},[t._l(t.dragableWidgets,function(e){return[n("div",{class:{"draggable-widget":!0,"no-content-zone":!t.existsContentZones||t.editor.preview}},[n("div",{staticClass:"widget-icon"},[n("img",{attrs:{alt:e.icon.name,src:t.$store.state.editor.shopURL+"/"+e.icon.file}})]),n("h4",{staticClass:"widget-label"},[t._v(t._s(e.title))])])]})],2)],1):t._e()],1)],1)],1),n("div",{staticClass:"editor-panel-footer"},[n("b-button",{staticClass:"btn-block",attrs:{variant:"primary",disabled:t.saveButtonStatus>1},on:{click:function(e){return t.save()}}},[t._v(t._s(t.saveBtnLabel())+"\n\t\t\t\t\t\t")]),n("b-button",{staticClass:"btn-block",attrs:{variant:"link"},on:{click:t.exitEditor}},[t._v(t._s(t.$t("editor.buttons.exit"))+"\n\t\t\t\t\t")]),n("div",{staticClass:"row",attrs:{id:"expertmode-preview-bar-container"}},[n("div",{staticClass:"col-6"},[n("ExpertModeBar",{attrs:{expertmode:t.expertmode,locales:t.locales},on:{"trigger-expertmode":function(e){return t.toggleExpertModeOpt()}}})],1),n("div",{staticClass:"col-6"},[n("PreviewChangesBar",{attrs:{preview:t.editor.preview,locales:t.locales},on:{"trigger-preview-changes":function(e){return t.togglePreviewChangesOpt()}}})],1)]),n("ResolutionBar",{attrs:{size:t.editor.size},on:{triggerWindowResize:t.handleEditorResize}})],1),t.editor.overlay.visible?n("DynamicOverlay",{attrs:{active:t.editor.overlay.visible,data:t.editor.overlay.data},on:{change:t.onOverlayChange,closeOverlay:function(e){t.editor.overlay.visible=!1},handleIframe:t.handleIframe,reSendBlockData:t.reSendDataToOverlay}}):t._e(),t.editor.contentZoneOverlay.visible?n("Overlay",{attrs:{active:t.editor.contentZoneOverlay.visible,data:t.editor.contentZoneOverlay.data,locales:t.locales},on:{closeOverlay:function(e){t.editor.contentZoneOverlay.visible=!1},toggleModal:t.toggleModal}}):t._e(),t.editor.contentZoneModal.visible?n("Popup",{attrs:{active:t.editor.contentZoneModal.visible,data:t.editor.contentZoneModal.data,locales:t.locales},on:{closeModal:function(e){t.editor.contentZoneModal.visible=!1},toggleModal:t.toggleModal}}):t._e()],1),n("div",{staticClass:"theme-editor-viewer"},[n("div",{attrs:{id:"editor"}},[n("div",{ref:"editor",staticClass:"editor-wrapper"},[t.$store.state.editor.iframeLoading&&!t.showThemeChooser?n("Loading"):t._e(),n("vueFrame",{ref:"shopIframe",staticClass:"shop-iframe",attrs:{contentZoneList:t.initContentZones,language:t.language,locales:t.locales,previewChanges:t.editor.preview,src:t.$store.state.editor.shopURL+"/?renew_cache=1",frameborder:"0",id:"shop-iframe-editor"},on:{goTo:t.goTo,handleIframe:t.handleIframe,handleOverlay:t.handleContentZoneOverlay,"load-content-zones":t.requestContentZones,mounted:t.handleContentZoneCreation,openOverlayForCategory:t.openOverlayForCategory,toggleModal:t.toggleModal,closeOverlay:t.closeAllOverlays,activeLoading:t.activeLoading,load:t.load}})],1)])])])])},Tt=[],Ot=n("bd86"),Lt=n("5d73"),It=n.n(Lt),Mt=(n("6b54"),n("f499")),Et=n.n(Mt),zt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("draggable",{staticClass:"draggable-area section-area",attrs:{element:"section",list:t.elements,group:"columns",setData:t.modifyDragItem},on:{change:t.log}},[n("div",{staticClass:"container"},[n("div",{staticClass:"row"},[t._l(t.elements,function(t,e){return[n(t.type,{tag:"component"})]})],2)])])},Bt=[],jt=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},Dt=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"widget-heading"},[n("h1",[t._v("Custom Heading here...")])])}],Vt={name:"HeadingWidget",extends:ze,props:{title:String},methods:{myTitle:function(t){alert(t)}}},Pt=Vt,Ut=n("2877"),Rt=Object(Ut["a"])(Pt,jt,Dt,!1,null,"4e8c8578",null),Zt=Rt.exports,At=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},Ft=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"widget-image"},[n("img",{staticClass:"img-responsive",attrs:{src:"//placehold.it/500x500?text=add your image here"}})])}],Ht={name:"ImageWidget"},Wt=Ht,Gt=Object(Ut["a"])(Wt,At,Ft,!1,null,"5423850c",null),Nt=Gt.exports,qt=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},Xt=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"widget-video"},[n("div",{staticClass:"form-group"},[n("input",{staticClass:"form-control",attrs:{type:"text",placeholder:"Paste video url (ex: youtube, vimeo)"}})])])}],Jt={name:"VideoWidget"},Kt=Jt,Yt=Object(Ut["a"])(Kt,qt,Xt,!1,null,"520e3211",null),Qt=Yt.exports,te=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},ee=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"widget-button"},[n("a",{staticClass:"btn btn-primary",attrs:{href:"#"}},[t._v("Button Label")]),t._v("\n  sadpisaiodhsauiodhauioshdosadsaupiohdu\n")])}],ne={name:"ButtonWidget"},ie=ne,oe=Object(Ut["a"])(ie,te,ee,!1,null,"35730a42",null),ae=oe.exports,se=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},re=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"widget-google-map"},[n("div",{staticClass:"form-group"},[n("textarea",{staticClass:"form-control",attrs:{placeholder:"Paste Google Map code"}})])])}],le={name:"GoogleMapWidget"},ce=le,de=Object(Ut["a"])(ce,se,re,!1,null,"e9bd0392",null),ue=de.exports,he=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},me=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"widget-product"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-3"},[n("img",{attrs:{src:"//placehold.it/300x250",alt:"Product Title"}})]),n("div",{staticClass:"col-9"},[n("h3",[t._v("Product Title")]),n("p",[t._v("\n        Lorem Ipsum is simply dummy text of the printing and typesetting\n        industry. Lorem Ipsum has been the industry's standard dummy text ever\n        since the 1500s, when an unknown printer took a galley of type and\n        scrambled it to make a type specimen book. It has survived not only\n        five centuries, but also the leap into electronic typesetting,\n        remaining essentially unchanged. It was popularised in the 1960s with\n        the release of Letraset sheets containing Lorem Ipsum passages, and\n        more recently with desktop publishing software like Aldus PageMaker\n        including versions of Lorem Ipsum.\n      ")]),n("a",{staticClass:"btn btn-primary",attrs:{href:""}},[t._v("Buy now")])])])])}],ge={name:"ProductWidget"},ve=ge,pe=Object(Ut["a"])(ve,he,me,!1,null,"d7d0bfc2",null),fe=pe.exports,be=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},we=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"widget-product"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-3"},[n("div",{staticClass:"card"},[n("img",{staticClass:"card-img-top",attrs:{src:"//placehold.it/300x250",alt:"Product Title"}}),n("div",{staticClass:"card-body"},[n("h3",[t._v("Product Title")]),n("a",{staticClass:"btn btn-primary",attrs:{href:""}},[t._v("Buy now")])])])]),n("div",{staticClass:"col-3"},[n("div",{staticClass:"card"},[n("img",{staticClass:"card-img-top",attrs:{src:"//placehold.it/300x250",alt:"Product Title"}}),n("div",{staticClass:"card-body"},[n("h3",[t._v("Product Title")]),n("a",{staticClass:"btn btn-primary",attrs:{href:""}},[t._v("Buy now")])])])]),n("div",{staticClass:"col-3"},[n("div",{staticClass:"card"},[n("img",{staticClass:"card-img-top",attrs:{src:"//placehold.it/300x250",alt:"Product Title"}}),n("div",{staticClass:"card-body"},[n("h3",[t._v("Product Title")]),n("a",{staticClass:"btn btn-primary",attrs:{href:""}},[t._v("Buy now")])])])]),n("div",{staticClass:"col-3"},[n("div",{staticClass:"card"},[n("img",{staticClass:"card-img-top",attrs:{src:"//placehold.it/300x250",alt:"Product Title"}}),n("div",{staticClass:"card-body"},[n("h3",[t._v("Product Title")]),n("a",{staticClass:"btn btn-primary",attrs:{href:""}},[t._v("Buy now")])])])])])])}],Ce={name:"ProductListWidget"},xe=Ce,ye=Object(Ut["a"])(xe,be,we,!1,null,"23086fef",null),ke=ye.exports,$e=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},Se=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"widget-product"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-4"},[n("div",{staticClass:"card"},[n("img",{staticClass:"card-img-top",attrs:{src:"//placehold.it/300x250",alt:"Product Title"}}),n("div",{staticClass:"card-body"},[n("h3",[t._v("Product Title")]),n("a",{staticClass:"btn btn-primary",attrs:{href:""}},[t._v("Buy now")])])])]),n("div",{staticClass:"col-4"},[n("div",{staticClass:"card"},[n("img",{staticClass:"card-img-top",attrs:{src:"//placehold.it/300x250",alt:"Product Title"}}),n("div",{staticClass:"card-body"},[n("h3",[t._v("Product Title")]),n("a",{staticClass:"btn btn-primary",attrs:{href:""}},[t._v("Buy now")])])])]),n("div",{staticClass:"col-4"},[n("div",{staticClass:"card"},[n("img",{staticClass:"card-img-top",attrs:{src:"//placehold.it/300x250",alt:"Product Title"}}),n("div",{staticClass:"card-body"},[n("h3",[t._v("Product Title")]),n("a",{staticClass:"btn btn-primary",attrs:{href:""}},[t._v("Buy now")])])])])])])}],_e={name:"ProductSliderWidget"},Te=_e,Oe=Object(Ut["a"])(Te,$e,Se,!1,null,"00acd6ee",null),Le=Oe.exports,Ie={name:"BasicWidget",components:{heading:Zt,imageUpload:Nt,videoWidget:Qt,buttonWidget:ae,googleMap:ue,product:fe,productList:ke,productSlider:Le},props:{configuration:Object},methods:{log:function(t){console.log(t)}},data:function(){return{children:[],elements:[]}}},Me=Ie,Ee=Object(Ut["a"])(Me,pt,ft,!1,null,"4776b493",null),ze=Ee.exports,Be=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("draggable",{staticClass:"draggable-area grid-column-draggable-area",class:"col-"+t.column_size,attrs:{element:"div",list:t.elements,handle:".column-name",group:"widgets",setData:t.modifyDragItem},on:{change:t.log}},[n("b-alert",{attrs:{show:t.dismissCountDown,dismissible:"",variant:"danger"},on:{dismissed:function(e){t.dismissCountDown=0},"dismiss-count-down":t.countDownChanged}},[t._v("\n    "+t._s(t.msg)+"\n  ")]),n("span",{staticClass:"column-name"},[n("font-awesome-icon",{staticClass:"drag-icon",attrs:{icon:"arrows-alt"}})],1),n("div",{staticClass:"column-actions-list"},[n("a",{staticClass:"column-action",attrs:{title:"Shrink column size"},on:{click:function(e){return t.removeColumnSize()}}},[n("font-awesome-icon",{attrs:{icon:"chevron-left"}})],1),n("a",{staticClass:"column-action",attrs:{title:"Expand column size"},on:{click:function(e){return t.addColumnSize()}}},[n("font-awesome-icon",{attrs:{icon:"chevron-right"}})],1)]),n("draggable",{staticClass:"widgets-container",attrs:{element:"div",list:t.elements,setData:t.modifyDragItem}},t._l(t.elements,function(e,i){return n("div",{staticClass:"widget"},[n("span",{staticClass:"widget-name"},[n("font-awesome-icon",{staticClass:"drag-icon",attrs:{icon:"arrows-alt"}}),t._v("\n        "+t._s(e.name))],1),n("div",{staticClass:"widget-actions-list"},[n("a",{staticClass:"widget-action",attrs:{href:""}},[n("font-awesome-icon",{attrs:{icon:"pencil-alt"}})],1),n("a",{staticClass:"widget-action remove-widget",attrs:{href:""}},[n("font-awesome-icon",{attrs:{icon:"times"}})],1)]),n(e.type,{tag:"component"})],1)}),0)],1)},je=[],De=(n("c5f6"),n("1980")),Ve=n.n(De),Pe={name:"gridColumn",extends:ze,props:{column_size:{type:Number,default:12}},components:{draggable:Ve.a},data:function(){return{msg:"",dismissSecs:10,dismissCountDown:0}},methods:{modifyDragItem:function(t){t.setData("text/html",null)},countDownChanged:function(t){this.dismissCountDown=t},showAlert:function(){this.dismissCountDown=this.dismissSecs},addColumnSize:function(){var t=this.column_size;12==t?(this.msg="You have reached maximum columns width!",this.showAlert()):this.column_size=t+1},removeColumnSize:function(){var t=this.column_size;1==t?(this.msg="You have reached minimum columns width!",this.showAlert()):this.column_size=t-1}}},Ue=Pe,Re=(n("bd5a"),Object(Ut["a"])(Ue,Be,je,!1,null,"25304040",null)),Ze=Re.exports,Ae={name:"gridSection",extends:ze,components:{draggable:Ve.a,gridColumn:Ze},methods:{modifyDragItem:function(t){t.setData("text/html",null)}}},Fe=Ae,He=(n("1bea"),Object(Ut["a"])(Fe,zt,Bt,!1,null,"2d3b6a31",null)),We=He.exports,Ge=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{key:t.data.key,staticClass:"editor-panel-overlay",class:t.active?"active-overlay":"",attrs:{id:"dynamic-overlay-container"}},[n("Header",{attrs:{title:t.data.title,id:"panel-header"},on:{resendMeData:t.reInitMyData,triggerCloseOverlay:function(e){return t.$emit("closeOverlay")}}},[n("template",{slot:"title"},[t._v(t._s(t.data.title))])],2),n("div",{staticClass:"overlay-body"},[n("perfect-scrollbar",{staticClass:"overflow-content-wrapper",attrs:{id:"scrollbar-container"}},[n("Handler",{key:t.data.key,attrs:{data:t.data},on:{handleOverlay:t.triggerChangeOverlay,handleIframe:t.handleIframe}})],1)],1)],1)},Ne=[],qe=n("e814"),Xe=n.n(qe),Je=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"overlay-header"},[n("nav",{attrs:{"aria-label":"breadcrumb"}},[n("ol",{staticClass:"breadcrumb",class:{"more-than-two":t.breadcrumbCount()>2}},[t.breadcrumbCount()>1?n("li",{staticClass:"breadcrumb-icon"},[n("button",{staticClass:"btn btn-link btn-sm",on:{click:function(e){return t.breadcrumbGoBack(t.$store.state.editor.breadcrumb.current)}}},[n("custom-icon",{attrs:{icon:"arrow-left"}})],1)]):n("li",{staticClass:"breadcrumb-icon"},[n("button",{staticClass:"btn btn-link btn-sm",on:{click:function(e){return t.closeOverlay()}}},[n("custom-icon",{attrs:{icon:"close"}})],1)]),t._l(t.$store.state.editor.breadcrumb.items,function(e,i,o){return n("li",{key:o,staticClass:"breadcrumb-item"},[t.breadcrumbCount()>2&&0!=o&&o!=t.breadcrumbCount()-1?[t._v("\n          …\n        ")]:[t._v("\n          "+t._s(e)+"\n        ")]],2)})],2)])])},Ke=[],Ye=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(t.name,{tag:"component",attrs:{color:t.color,customClass:t.customClass}})},Qe=[],tn=n("9b6c"),en=n.n(tn),nn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{class:t.customClass,attrs:{width:"12px",height:"12px",viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("g",{attrs:{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[n("g",{attrs:{transform:"translate(-6.000000, -6.000000)"}},[n("rect",{attrs:{x:"0",y:"0",width:"24",height:"24"}}),n("g",{attrs:{transform:"translate(6.000000, 6.000000)",fill:t.color}},[n("path",{attrs:{d:"M8.5,3 L0.5,3 C0.2,3 0,3.2 0,3.5 L0,11.5 C0,11.8 0.2,12 0.5,12 L8.5,12 C8.8,12 9,11.8 9,11.5 L9,3.5 C9,3.2 8.8,3 8.5,3 Z M7,9.75 C7,9.9 6.9,10 6.75,10 L2.25,10 C2.1,10 2,9.9 2,9.75 L2,5.25 C2,5.1 2.1,5 2.25,5 L6.75,5 C6.9,5 7,5.1 7,5.25 L7,9.75 Z","fill-rule":"nonzero"}}),n("path",{attrs:{d:"M11.5,0 L3.5,0 C3.2,0 3,0.2 3,0.5 L3,1.5 C3,1.8 3.2,2 3.5,2 L9.75,2 C9.9,2 10,2.1 10,2.25 L10,8.5 C10,8.8 10.2,9 10.5,9 L11.5,9 C11.8,9 12,8.8 12,8.5 L12,0.5 C12,0.2 11.8,0 11.5,0 Z"}})])])])])},on=[],an={props:{color:String,customClass:String}},sn=an,rn=Object(Ut["a"])(sn,nn,on,!1,null,null,null),ln=rn.exports,cn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{class:t.customClass,attrs:{width:"14px",height:"14px",viewBox:"0 0 14 14",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("g",{attrs:{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[n("g",{attrs:{transform:"translate(-5.000000, -5.000000)",fill:t.color}},[n("polygon",{attrs:{points:"19 6.4 17.6 5 12 10.6 6.4 5 5 6.4 10.6 12 5 17.6 6.4 19 12 13.4 17.6 19 19 17.6 13.4 12"}})])])])},dn=[],un={props:{color:String,customClass:String}},hn=un,mn=Object(Ut["a"])(hn,cn,dn,!1,null,null,null),gn=mn.exports,vn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{class:t.customClass,attrs:{width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("g",{attrs:{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[n("g",{attrs:{transform:"translate(-4.000000, -4.000000)"}},[n("circle",{attrs:{stroke:t.color,"stroke-width":"2",cx:"20",cy:"20",r:"15"}}),n("g",{attrs:{transform:"translate(11.000000, 13.000000)",fill:t.color}},[n("polygon",{attrs:{points:"5.6 10.6 1.4 6.4 0 7.8 5.6 13.4 17.6 1.4 16.2 0"}})]),n("rect",{attrs:{x:"0",y:"0",width:"40",height:"40"}})])])])},pn=[],fn={props:{color:String,customClass:String}},bn=fn,wn=Object(Ut["a"])(bn,vn,pn,!1,null,null,null),Cn=wn.exports,xn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{class:t.customClass,attrs:{width:"32px",height:"32px",viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("g",{attrs:{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[n("g",{attrs:{transform:"translate(-4.000000, -4.000000)"}},[n("circle",{attrs:{stroke:t.color,"stroke-width":"2",cx:"20",cy:"20",r:"15"}})])])])},yn=[],kn={props:{color:String,customClass:String}},$n=kn,Sn=Object(Ut["a"])($n,xn,yn,!1,null,null,null),_n=Sn.exports,Tn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{class:t.customClass,attrs:{width:"14px",height:"14px",viewBox:"0 0 14 14",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("g",{attrs:{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[n("g",{attrs:{transform:"translate(-5.000000, -5.000000)",fill:t.color}},[n("polygon",{attrs:{points:"11 5 11 11 5 11 5 13 11 13 11 19 13 19 13 13 19 13 19 11 13 11 13 5"}})])])])},On=[],Ln={props:{color:String,customClass:String}},In=Ln,Mn=Object(Ut["a"])(In,Tn,On,!1,null,null,null),En=Mn.exports,zn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{class:t.customClass,attrs:{width:"12px",height:"8px",viewBox:"0 0 12 8",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("g",{attrs:{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[n("g",{attrs:{transform:"translate(-6.000000, -8.000000)",fill:t.color}},[n("polygon",{attrs:{points:"16.6 8.59997559 12 13.1999756 7.4 8.59997559 6 9.99997559 12 15.9999756 18 9.99997559"}})])])])},Bn=[],jn={props:{color:String,customClass:String}},Dn=jn,Vn=Object(Ut["a"])(Dn,zn,Bn,!1,null,null,null),Pn=Vn.exports,Un=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{class:t.customClass,attrs:{width:"16px",height:"16px",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("g",{attrs:{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[n("g",{attrs:{transform:"translate(-4.000000, -4.000000)",fill:t.color}},[n("polygon",{attrs:{points:"20 11 7.8 11 13.4 5.4 12 4 4 12 12 20 13.4 18.6 7.8 13 20 13"}})])])])},Rn=[],Zn={props:{color:String,customClass:String}},An=Zn,Fn=Object(Ut["a"])(An,Un,Rn,!1,null,null,null),Hn=Fn.exports,Wn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{class:t.customClass,attrs:{width:"18px",height:"12px",viewBox:"0 0 18 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("g",{attrs:{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[n("g",{attrs:{transform:"translate(-3.000000, -6.000000)",fill:t.color}},[n("path",{attrs:{d:"M3,18 L21,18 L21,16 L3,16 L3,18 L3,18 Z M3,13 L21,13 L21,11 L3,11 L3,13 L3,13 Z M3,6 L3,8 L21,8 L21,6 L3,6 L3,6 Z"}})])])])},Gn=[],Nn={props:{color:String,customClass:String}},qn=Nn,Xn=Object(Ut["a"])(qn,Wn,Gn,!1,null,null,null),Jn=Xn.exports,Kn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{class:t.customClass,attrs:{width:"16px",height:"15px",viewBox:"0 0 16 15",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("g",{attrs:{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[n("g",{attrs:{transform:"translate(-4.000000, -4.000000)"}},[n("rect",{attrs:{x:"0",y:"0",width:"24",height:"24"}}),n("g",{attrs:{transform:"translate(4.000000, 4.000000)",fill:t.color}},[n("polygon",{attrs:{points:"6.4 14.5 6.4 9.55882353 9.6 9.55882353 9.6 14.5 13.6 14.5 13.6 7.91176471 16 7.91176471 8 0.5 0 7.91176471 2.4 7.91176471 2.4 14.5"}})])])])])},Yn=[],Qn={props:{color:String,customClass:String}},ti=Qn,ei=Object(Ut["a"])(ti,Kn,Yn,!1,null,null,null),ni=ei.exports,ii=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{class:t.customClass,attrs:{width:"4px",height:"16px",viewBox:"0 0 4 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("g",{attrs:{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[n("g",{attrs:{transform:"translate(-4.000000, -4.000000)",fill:t.color}},[n("path",{attrs:{d:"M6,8 C7.1,8 8,7.1 8,6 C8,4.9 7.1,4 6,4 C4.9,4 4,4.9 4,6 C4,7.1 4.9,8 6,8 L6,8 Z M6,10 C4.9,10 4,10.9 4,12 C4,13.1 4.9,14 6,14 C7.1,14 8,13.1 8,12 C8,10.9 7.1,10 6,10 L6,10 Z M6,16 C4.9,16 4,16.9 4,18 C4,19.1 4.9,20 6,20 C7.1,20 8,19.1 8,18 C8,16.9 7.1,16 6,16 L6,16 Z"}})])])])},oi=[],ai={props:{color:String,customClass:String}},si=ai,ri=Object(Ut["a"])(si,ii,oi,!1,null,null,null),li=ri.exports,ci=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{class:t.customClass,attrs:{width:"20px",height:"18px",viewBox:"0 0 20 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("g",{attrs:{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[n("g",{attrs:{transform:"translate(0.000000, 0.341716)",fill:t.color}},[n("path",{attrs:{d:"M17.7807487,10.5617647 L1.77807487,10.5617647 L1.77807487,1.76029412 L17.7807487,1.76029412 L17.7807487,10.5617647 Z M17.7807487,0 L1.77807487,0 C0.791243316,0 0,0.783330882 0,1.76029412 L0,12.3220588 C1.97405966e-16,13.2942424 0.796071234,14.0823529 1.77807487,14.0823529 L8.0013369,14.0823529 L6.22326203,16.7227941 L6.22326203,17.6029412 L13.3355615,17.6029412 L13.3355615,16.7227941 L11.5574866,14.0823529 L17.7807487,14.0823529 C18.7627523,14.0823529 19.5588235,13.2942424 19.5588235,12.3220588 L19.5588235,1.76029412 C19.5588235,0.783330882 18.7586898,0 17.7807487,0 L17.7807487,0 Z"}})])])])},di=[],ui={props:{color:String,customClass:String}},hi=ui,mi=Object(Ut["a"])(hi,ci,di,!1,null,null,null),gi=mi.exports,vi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{class:t.customClass,attrs:{width:"13px",height:"17px",viewBox:"0 0 13 17",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("g",{attrs:{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[n("g",{attrs:{transform:"translate(0.000000, 0.341716)",fill:t.color}},[n("path",{attrs:{d:"M11.3115938,12.7886933 L1.33077574,12.7886933 L1.33077574,2.01926736 L11.3115938,2.01926736 L11.3115938,12.7886933 Z M6.32118478,15.4810498 C5.76995942,15.4810498 5.32310297,15.0290214 5.32310297,14.4714161 C5.32310297,13.9138108 5.76995942,13.4617824 6.32118478,13.4617824 C6.87241014,13.4617824 7.31926659,13.9138108 7.31926659,14.4714161 C7.31926659,15.0290214 6.87241014,15.4810498 6.32118478,15.4810498 L6.32118478,15.4810498 Z M10.9788999,0 L1.66346968,0 C0.744760743,-5.69057939e-17 2.95491574e-16,0.753380659 0,1.6827228 L0,14.4714161 C-8.86474722e-16,14.9177019 0.175257909,15.345709 0.487218989,15.6612808 C0.799180068,15.9768525 1.22229009,16.1541389 1.66346968,16.1541389 L10.9788999,16.1541389 C11.4200795,16.1541389 11.8431895,15.9768525 12.1551506,15.6612808 C12.4671116,15.345709 12.6423696,14.9177019 12.6423696,14.4714161 L12.6423696,1.6827228 C12.6423696,0.753380659 11.8976088,5.69057939e-17 10.9788999,0 L10.9788999,0 Z"}})])])])},pi=[],fi={props:{color:String,customClass:String}},bi=fi,wi=Object(Ut["a"])(bi,vi,pi,!1,null,null,null),Ci=wi.exports,xi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{class:t.customClass,attrs:{width:"17px",height:"13px",viewBox:"0 0 17 13",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("g",{attrs:{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[n("g",{attrs:{transform:"translate(8.077069, 6.662901) rotate(-90.000000) translate(-8.077069, -6.662901) translate(1.755885, -1.414169)",fill:t.color}},[n("path",{attrs:{d:"M11.3115938,12.7886933 L1.33077574,12.7886933 L1.33077574,2.01926736 L11.3115938,2.01926736 L11.3115938,12.7886933 Z M6.32118478,15.4810498 C5.76995942,15.4810498 5.32310297,15.0290214 5.32310297,14.4714161 C5.32310297,13.9138108 5.76995942,13.4617824 6.32118478,13.4617824 C6.87241014,13.4617824 7.31926659,13.9138108 7.31926659,14.4714161 C7.31926659,15.0290214 6.87241014,15.4810498 6.32118478,15.4810498 L6.32118478,15.4810498 Z M10.9788999,0 L1.66346968,0 C0.744760743,-5.69057939e-17 2.95491574e-16,0.753380659 0,1.6827228 L0,14.4714161 C-8.86474722e-16,14.9177019 0.175257909,15.345709 0.487218989,15.6612808 C0.799180068,15.9768525 1.22229009,16.1541389 1.66346968,16.1541389 L10.9788999,16.1541389 C11.4200795,16.1541389 11.8431895,15.9768525 12.1551506,15.6612808 C12.4671116,15.345709 12.6423696,14.9177019 12.6423696,14.4714161 L12.6423696,1.6827228 C12.6423696,0.753380659 11.8976088,5.69057939e-17 10.9788999,0 L10.9788999,0 Z"}})])])])},yi=[],ki={props:{color:String,customClass:String}},$i=ki,Si=Object(Ut["a"])($i,xi,yi,!1,null,null,null),_i=Si.exports,Ti=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{class:t.customClass,attrs:{width:"9px",height:"15px",viewBox:"0 0 9 15",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("g",{attrs:{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[n("g",{attrs:{transform:"translate(0.000000, 0.341716)",fill:t.color}},[n("path",{attrs:{d:"M7.56998911,10.6355219 L1.37636166,10.6355219 L1.37636166,1.8768568 L7.56998911,1.8768568 L7.56998911,10.6355219 Z M4.47317538,13.1379976 C3.90306772,13.1379976 3.44090414,12.7178489 3.44090414,12.1995692 C3.44090414,11.6812895 3.90306772,11.2611408 4.47317538,11.2611408 C5.04328305,11.2611408 5.50544662,11.6812895 5.50544662,12.1995692 C5.50544662,12.7178489 5.04328305,13.1379976 4.47317538,13.1379976 L4.47317538,13.1379976 Z M7.22589869,0 L1.72045207,0 C0.770272629,1.38915309e-16 0,0.700247844 0,1.56404734 L0,12.1995692 C0,13.0633687 0.770272629,13.7636166 1.72045207,13.7636166 L7.22589869,13.7636166 C8.17607813,13.7636166 8.94635076,13.0633687 8.94635076,12.1995692 L8.94635076,1.56404734 C8.94635076,0.700247844 8.17607813,2.77830618e-16 7.22589869,2.77830618e-16 L7.22589869,0 Z"}})])])])},Oi=[],Li={props:{color:String,customClass:String}},Ii=Li,Mi=Object(Ut["a"])(Ii,Ti,Oi,!1,null,null,null),Ei=Mi.exports,zi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{class:t.customClass,attrs:{width:"14px",height:"14px",viewBox:"0 0 14 14",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("g",{attrs:{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[n("g",{attrs:{transform:"translate(-5.000000, -5.000000)",fill:t.color}},[n("polygon",{attrs:{points:"19 6.4 17.6 5 12 10.6 6.4 5 5 6.4 10.6 12 5 17.6 6.4 19 12 13.4 17.6 19 19 17.6 13.4 12"}})])])])},Bi=[],ji={props:{color:String,customClass:String}},Di=ji,Vi=Object(Ut["a"])(Di,zi,Bi,!1,null,null,null),Pi=Vi.exports,Ui=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{class:t.customClass,attrs:{width:"16px",height:"16px",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("g",{attrs:{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[n("g",{attrs:{transform:"translate(-4.000000, -4.000000)"}},[n("rect",{attrs:{x:"0",y:"0",width:"24",height:"24"}}),n("g",{attrs:{transform:"translate(4.000000, 4.000000)",fill:t.color}},[n("polygon",{attrs:{points:"3.46106667 11.4609778 0 7.99991111 3.46088889 4.53893333 3.46097778 7.204 7.20408889 7.204 7.20408889 3.46106667 4.53902222 3.46106667 8.00008889 0 11.4609778 3.46097778 8.79591111 3.46097778 8.79591111 7.204 12.5389333 7.204 12.5388444 4.53893333 16 8.00008889 12.5390222 11.4609778 12.5389333 8.79591111 8.79582222 8.79591111 8.79582222 12.5389333 11.4608889 12.5389333 7.99991111 16 4.53893333 12.5390222 7.204 12.5390222 7.204 8.79591111 3.46106667 8.79591111"}})])])])])},Ri=[],Zi={props:{color:String,customClass:String}},Ai=Zi,Fi=Object(Ut["a"])(Ai,Ui,Ri,!1,null,null,null),Hi=Fi.exports,Wi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{class:t.customClass,attrs:{width:"13px",height:"13px",viewBox:"0 0 13 13",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("g",{attrs:{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[n("g",{attrs:{transform:"translate(-6.000000, -6.000000)"}},[n("rect",{attrs:{x:"0",y:"0",width:"24",height:"24"}}),n("g",{attrs:{transform:"translate(6.000000, 6.000000)",fill:t.color,"fill-rule":"nonzero"}},[n("path",{attrs:{d:"M8.16770782,2 L11,4.83181858 L3.83068637,12 L1,9.16818142 L8.16770782,2 Z M12.7491329,1.47829683 L11.6332146,0.332196234 C11.2019507,-0.110732078 10.5016673,-0.110732078 10.0689381,0.332196234 L9,1.430046 L11.5022749,4 L12.7491329,2.71941812 C13.0836224,2.37585786 13.0836224,1.8218332 12.7491329,1.47829683 Z M0.00665321077,12.673314 C-0.0368574499,12.8662591 0.13994072,13.0391477 0.335783137,12.9922252 L3,12.3557385 L0.610491404,10 L0.00665321077,12.673314 Z"}})])])])])},Gi=[],Ni={props:{color:String,customClass:String}},qi=Ni,Xi=Object(Ut["a"])(qi,Wi,Gi,!1,null,null,null),Ji=Xi.exports,Ki=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{class:t.customClass,attrs:{xmlns:"http://www.w3.org/2000/svg",height:"18px",width:"16px",viewBox:"0 0 640 512"}},[n("path",{attrs:{fill:t.color,d:"M634 471L36 3.51A16 16 0 0 0 13.51 6l-10 12.49A16 16 0 0 0 6 41l598 467.49a16 16 0 0 0 22.49-2.49l10-12.49A16 16 0 0 0 634 471zM296.79 146.47l134.79 105.38C429.36 191.91 380.48 144 320 144a112.26 112.26 0 0 0-23.21 2.47zm46.42 219.07L208.42 260.16C210.65 320.09 259.53 368 320 368a113 113 0 0 0 23.21-2.46zM320 112c98.65 0 189.09 55 237.93 144a285.53 285.53 0 0 1-44 60.2l37.74 29.5a333.7 333.7 0 0 0 52.9-75.11 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64c-36.7 0-71.71 7-104.63 18.81l46.41 36.29c18.94-4.3 38.34-7.1 58.22-7.1zm0 288c-98.65 0-189.08-55-237.93-144a285.47 285.47 0 0 1 44.05-60.19l-37.74-29.5a333.6 333.6 0 0 0-52.89 75.1 32.35 32.35 0 0 0 0 29.19C89.72 376.41 197.08 448 320 448c36.7 0 71.71-7.05 104.63-18.81l-46.41-36.28C359.28 397.2 339.89 400 320 400z"}})])},Yi=[],Qi={props:{color:String,customClass:String}},to=Qi,eo=Object(Ut["a"])(to,Ki,Yi,!1,null,null,null),no=eo.exports,io={components:{Copy:ln,Close:gn,Active:Cn,Inactive:_n,Add:En,Expand:Pn,ArrowLeft:Hn,Hamburger:Jn,Home:ni,More:li,Desktop:gi,Portrait:Ci,Landscape:_i,Smartphone:Ei,Cross:Pi,Sort:Hi,Pencil:Ji,Eye:no},computed:{name:function(){return en()(this.icon)}},props:{icon:String,color:{type:String,default:"#ffffff"},customClass:{type:String,default:""}}},oo=io,ao=Object(Ut["a"])(oo,Ye,Qe,!1,null,null,null),so=ao.exports,ro={name:"Header",props:{title:String},components:{CustomIcon:so},methods:{breadcrumbCount:function(){return this.$store.getters["editor/breadcrumbItemsCounter"]},breadcrumbGoBack:function(t){for(var e=this.$store.state.editor.breadcrumb.items,n=tt()(e),i=n.length,o=0;o<i;o++)i-1==o&&(e[n[o]]=void 0);e=JSON.parse(Et()(e)),this.$store.commit("editor/reArrangeBreadcrumb",{action:"goBack",from:e}),this.$emit("resendMeData",t)},closeOverlay:function(){this.$store.commit("editor/reArrangeBreadcrumb",{action:"clear"}),this.$emit("triggerCloseOverlay")}},computed:Object(X["a"])({},Object(v["b"])(["breadcrumbItemsCounter"]))},lo=ro,co=(n("edb8"),Object(Ut["a"])(lo,Je,Ke,!1,null,"59e6ea2b",null)),uo=co.exports,ho=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.data.fieldsets?n("div",{staticClass:"fieldsets-block"},t._l(t.fieldsetsList,function(e){return n("Fieldset",{attrs:{data:e,locales:t.locales,usedFor:t.data.for,fieldsetCounter:t.data.fieldsets.length},on:{handleIframe:t.handleIframe,toggleModal:t.toggleModal,closeOverlay:t.closeOverlay}})}),1):t.data.categories?n("div",{staticClass:"menu-wrapper"},t._l(t.categoriesList,function(e){return n("Category",{key:e.id,attrs:{data:e,partialSelector:t.data.selector,title:e.title},on:{triggerOpenOverlay:function(n){return t.emitOverlayWithData(e)}}})}),1):t._e()])},mo=[],go=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fieldset",class:t.isOpen?"is-opened":"is-closed"},[n("div",{staticClass:"head",class:{"can-not-open":t.showCopyContentButton()||1==t.fieldsetCounter},on:{click:function(e){return t.toggle()}}},[n("h3",{staticClass:"title"},[t._v("\n      "+t._s(t.data.title)+"\n      "),t.isFromWidget()?t._e():n("b-button",{staticClass:"reset-fieldset",class:{"show-btn":1==t.fieldsetCounter},attrs:{size:"sm",variant:"danger"},on:{click:function(e){return e.stopPropagation(),t.resetFieldset()}}},[t._v("reset\n      ")])],1),t.showCopyContentButton()?n("b-button",{staticClass:"copy-to-other-language",attrs:{size:"sm",variant:"primary",title:"Copy to other languages"},on:{click:t.handleCopyContent}},[n("custom-icon",{attrs:{icon:"copy"}})],1):t._e(),!t.showCopyContentButton()&&t.fieldsetCounter>1?n("span",{staticClass:"toggler"},[n("custom-icon",{attrs:{icon:"Expand"}})],1):t._e()],1),n("div",{staticClass:"content"},t._l(t.fieldsetOptions,function(e,i){return n(e.type,{key:e.id,tag:"component",attrs:{id:e.id,label:e.label,language:t.language},on:{triggerSave:function(n){return t.saveToStore(n,e.id,e.type,e)}},model:{value:t.data.options[i],callback:function(e){t.$set(t.data.options,i,e)},expression:"data.options[index]"}})}),1)])},vo=[],po=n("7618"),fo=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"colorpicker",staticClass:"option-container option-color-picker"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-5"},[n("label",{staticClass:"label"},[t._v(t._s(t.label))])]),n("div",{staticClass:"col-7"},[n("div",{staticClass:"color-picker-input"},[n("b-form-input",{attrs:{placeholder:"Choose color"},on:{change:t.triggerSave,focus:t.togglePicker},model:{value:t.inputColor,callback:function(e){t.inputColor=e},expression:"inputColor"}}),t.showColorHint?n("span",{staticClass:"color-hint",on:{click:t.togglePicker}},[n("span",{staticClass:"current-color",style:"background-color: "+t.inputColor+";"})]):t._e(),t.showColorPicker?n("sketch-picker",{staticClass:"color-picker",attrs:{presetColors:t.presetColors},model:{value:t.colorPickerColor,callback:function(e){t.colorPickerColor=e},expression:"colorPickerColor"}}):t._e()],1)])])])},bo=[],wo=n("c345"),Co={name:"ColorPicker",props:{id:String,label:String,value:Object},components:{"sketch-picker":wo["Sketch"]},data:function(){return{showColorPicker:!1,showColorHint:!1,presetColors:[],inputTimeout:null}},mounted:function(){this.updateColorPalette()},computed:{inputColor:{get:function(){var t=this.id in this.$store.state.editor.themeConfig?this.$store.state.editor.themeConfig[this.id].value:this.value.value;return t&&"$"!==t.slice(0,1)||(this.showColorHint=!1),(t&&("#"===t.slice(0,1)||"rgba"===t.slice(0,4)||"transparent"===t)||this.checkColorName(t))&&(this.showColorHint=!0),this.updateColorPalette(),t},set:function(t){this.value.value=t}},colorPickerColor:{get:function(){var t=this.id in this.$store.state.editor.themeConfig?this.$store.state.editor.themeConfig[this.id].value:this.value.value;return t},set:function(t){this.value.value=this.getCorrectColorFormat(t),this.handleSaving()}}},methods:{checkColorName:function(t){var e=(new Option).style;return e.color=t,e.color==t},getCorrectColorFormat:function(t){var e=null;return e=0===t.a?"transparent":1===t.a?t.hex:"rgba("+t.rgba.r+", "+t.rgba.g+", "+t.rgba.b+", "+t.rgba.a+")",this.$store.state.editor.selectedTheme.colorPalette[this.id]!==e&&this.$store.state.editor.selectedTheme.colorPalette[this.id]&&(this.$store.commit("editor/updateSelectedThemeColorPalette",{selector:this.id,value:e}),this.updateColorPalette()),e},updateColorPalette:function(){var t=this;this.presetColors=[],Y()(this.$store.state.editor.selectedTheme.colorPalette).forEach(function(e){var n=Object(J["a"])(e,2),i=n[0],o=n[1];o&&i!==t.id&&t.presetColors.indexOf(o)<0&&t.presetColors.push(o)})},triggerSave:function(){this.$emit("input",this.value),this.$emit("triggerSave",this.value.value)},togglePicker:function(){this.showColorPicker?this.hidePicker():this.showPicker()},showPicker:function(){document.addEventListener("click",this.documentClick),this.showColorPicker=!0},hidePicker:function(){document.removeEventListener("click",this.documentClick),this.showColorPicker=!1},documentClick:function(t){var e=this.$refs.colorpicker,n=t.target;e&&e!==n&&!e.contains(n)&&this.hidePicker()},handleSaving:function(){var t=this;clearInterval(this.inputTimeout),this.inputTimeout=setTimeout(function(){return t.triggerSave()},500)}}},xo=Co,yo=(n("2a87"),Object(Ut["a"])(xo,fo,bo,!1,null,"077c76f4",null)),ko=yo.exports,$o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"option-container option-imageupload"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-5"},[n("label",{staticClass:"label"},[t._v(t._s(t.label))])]),n("div",{staticClass:"col-7"},[n("div",{staticClass:"row no-gutters"},[n("div",{staticClass:"col"},[n("button",{staticClass:"btn btn-outline-light btn-sm btn-block text-small",on:{click:t.openImageChooser}},[t._v("\n            "+t._s(t.getButtonText("select"))+"\n          ")]),n("button",{staticClass:"btn btn-outline-light btn-sm btn-block text-small",on:{click:t.clearImage}},[t._v("\n            "+t._s(t.getButtonText("delete"))+"\n          ")])]),n("div",{staticClass:"col-auto"},[n("div",{staticClass:"thumbnail-container"},[n("img",{attrs:{src:t.currentValue,alt:""},on:{click:t.openImageChooser}})])]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],attrs:{type:"hidden"},domProps:{value:t.currentValue},on:{input:function(e){e.target.composing||(t.currentValue=e.target.value)}}})])])]),n("b-modal",{ref:"image-upload-modal",staticClass:"image-upload-modal",attrs:{centered:"",size:"xl",title:t.getImageUploadTitle()}},[n("iframe",{staticClass:"filemanager-iframe",attrs:{src:t.fileManagerUrl,frameborder:"0",id:"filemanager-iframe"}})]),n("b-modal",{ref:"no-image-upload-modal",staticClass:"no-image-upload-modal",attrs:{centered:"",size:"xl",title:t.getImageUploadTitle(),"ok-only":!0,"hide-header-close":!0}},[t._v("\n    "+t._s(t.getNoFilemanagerText())+"\n  ")])],1)},So=[],_o=(n("a481"),{props:{id:String,label:String,value:Object,language:String},computed:{currentValue:{get:function(){var t=this.id in this.$store.state.editor.themeConfig?this.$store.state.editor.themeConfig[this.id].value:this.value.value;return Boolean(this.language)&&this.value.translatable?t[this.language]:t},set:function(t){Boolean(this.language)&&this.value.translatable?(this.value.value[this.language]=t,this.value.value=JSON.parse(Et()(this.value.value))):this.value.value=t,this.$emit("input",this.value),this.value.id&&this.$emit("triggerSave",this.value.value)}}},data:function(){return{fileManagerUrl:null,folder:null,shopBaseUrl:this.$store.state.editor.shopURL}},methods:{getNoFilemanagerText:function(){return this.$i18n.messages[this.$i18n.locale].editor.uninstalledFilemanager},getImageUploadTitle:function(){return this.$i18n.messages[this.$i18n.locale].editor.uploadImageModalTitle},openImageChooser:function(){var t=new URLSearchParams(location.search),e="1"!==t.get("noImageUpload");e?this.$refs["image-upload-modal"].show():this.$refs["no-image-upload-modal"].show()},clearImage:function(){this.currentValue="",this.triggerEmitIframe()},triggerEmitIframe:function(){if(Boolean(this.value.selector)){var t={selector:this.value.selector,holder:this.value.holder,value:this.currentValue};this.$emit("sendDataToIframe",t)}},getButtonText:function(t){return this.$t("editor").buttons[t]||""}},created:function(){var t="de"===this.$i18n.locale?this.$i18n.locale:this.$i18n.locale+"_"+this.$i18n.locale.toUpperCase();switch(this.label){case"Logo":this.folder="Logos";break;case"Picture":this.folder="Backgrounds";break;default:break}this.fileManagerUrl=[this.shopBaseUrl,"/ResponsiveFilemanager/filemanager/dialog.php?field_id=",this.id,"&crossdomain=1&sub_folder=images&lang=",t].join("")},mounted:function(){var t=this,e=function(e){var n=e.data,i=n.sender,o=n.url,a=n.field_id;"responsivefilemanager"===i&&a===t.id&&(t.$refs["image-upload-modal"].hide(),t.currentValue=o.replace(/([^:]\/)\/+/g,"$1"))};window.addEventListener("message",e)}}),To=_o,Oo=(n("8cff"),Object(Ut["a"])(To,$o,So,!1,null,"11acfb03",null)),Lo=Oo.exports,Io=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"option-container option-textbox"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-5"},[n("label",{staticClass:"label"},[t._v(t._s(t.label))])]),n("div",{staticClass:"col-7"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],staticClass:"form-control",attrs:{type:"text",id:t.id},domProps:{value:t.currentValue},on:{change:t.triggerSave,input:function(e){e.target.composing||(t.currentValue=e.target.value)}}})])])])},Mo=[],Eo=(n("6762"),{props:{id:String,label:String,language:String,value:Object},methods:{triggerSave:function(){this.$emit("input",this.value),this.$emit("triggerSave",this.value.value)},addInputAttributes:function(){if(this.value.attributes)for(var t=document.getElementById(this.id),e=["id"],n=Y()(this.value.attributes),i=0;i<n.length;i++){var o=Object(J["a"])(n[i],2),a=o[0],s=o[1];e.includes(a)||t.setAttribute(a,s)}}},mounted:function(){this.addInputAttributes(),this.value.value=this.id in this.$store.state.editor.themeConfig?this.$store.state.editor.themeConfig[this.id].value:this.value.value},computed:{currentValue:{get:function(){var t=this.value.value;return Boolean(this.language)&&this.value.translatable?t[this.language]:t},set:function(t){Boolean(this.language)&&this.value.translatable?(this.value.value[this.language]=t,this.value.value=JSON.parse(Et()(this.value.value))):this.value.value=t}}}}),zo=Eo,Bo=Object(Ut["a"])(zo,Io,Mo,!1,null,"0954d17c",null),jo=Bo.exports,Do=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"widget-text"},[n("div",{staticClass:"form-group"},[n("label",{staticClass:"label"},[t._v(t._s(t.value.label||""))]),n("content-manager-list",{attrs:{placeholder:t.value.attributes?t.value.attributes.placeholder:"",query:t.contentName,widgetType:"text"},on:{input:t.onInputChange,onSelectItem:t.onSelectItem}})],1),n("div",{staticClass:"form-group"},[n("ckeditor",{key:t.language,ref:"wysiwygeditor",attrs:{config:t.editorConfig,disabled:!t.value.useEditorContent,editor:t.editor},model:{value:t.contentValue,callback:function(e){t.contentValue=e},expression:"contentValue"}})],1)])},Vo=[],Po=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"option-container option-background"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("vue-autosuggest",{attrs:{disabled:t.disabled,"get-suggestion-value":t.getSuggestionValue,"input-props":{class:"form-control form-control-sm",placeholder:this.placeholder},suggestions:t.filteredOptions,id:"content-manager-list"},on:{selected:t.handleOnSelect,input:t.handleOnInputChange},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.suggestion;return n("div",{},[n("span",{staticClass:"my-suggestion-item"},[t._v("\n            "+t._s(i.item.contentGroupId?i.item.contentGroupId+" -":"")+" "+t._s(i.item.titles[t.getSelectedLanguage])+"\n          ")])])}}]),model:{value:t.queryTerm,callback:function(e){t.queryTerm=e},expression:"queryTerm"}})],1)])])},Uo=[],Ro=n("75fc"),Zo=n("2831"),Ao={name:"ContentManagerList",components:{VueAutosuggest:Zo["a"]},props:{widgetType:String,query:String,placeholder:String},data:function(){return{list:[],term:"",minLength:2}},methods:{getSuggestionValue:function(t){return t.item.contentGroupId?t.item.titles[this.getSelectedLanguage]:this.query},getCreateNewItemData:function(){var t=this,e=this.$store.state.editor.selectedTheme.languages,n={},i={};return e.forEach(function(e){var o=e.toUpperCase();n[o]="",i[o]=t.$t("editor.options.contentManagerList.new",e)}),{contentGroupId:0,texts:n,titles:i}},parseSelectedItem:function(t){var e=0===t.contentGroupId?null:t.contentGroupId,n={contentGroup:e,value:{}};for(var i in t.texts)n.value[i.toLowerCase()]=Object(X["a"])({value:t.texts[i]},n.value[i.toLowerCase()]);for(var o in t.titles)n.value[o.toLowerCase()]=Object(X["a"])({title:e?t.titles[o]:""},n.value[o.toLowerCase()]);return n},handleOnSelect:function(t){if(t){var e=t.item,n=Object(X["a"])({},e);this.$emit("onSelectItem",this.parseSelectedItem(n))}},handleOnInputChange:function(t){this.$emit("input",t)}},watch:{query:function(){this.term=this.query}},computed:{filteredOptions:function(){var t=this,e=this.list.filter(function(e){return e.titles[t.getSelectedLanguage].toLowerCase().indexOf(t.term.toLowerCase())>-1||e.contentGroupId.toString().indexOf(t.term)>-1});if(e.length){var n=e.filter(function(t){return 0===t.contentGroupId}).length>0;n||(e=[this.getCreateNewItemData()].concat(Object(Ro["a"])(e)))}return[{data:e}]},disabled:function(){return!this.list.length},getSelectedLanguage:function(){return this.$store.state.editor.currentLanguage.toUpperCase()},queryTerm:{get:function(){return this.term},set:function(t){this.term=t}}},mounted:function(){var t=Object(St["a"])(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,f.a.get(U(this.widgetType)).then(function(t){return t.data.infoElements||[]});case 2:this.list=t.sent;case 3:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}(),created:function(){this.term=this.query}},Fo=Ao,Ho=(n("5b9c"),Object(Ut["a"])(Fo,Po,Uo,!1,null,"5b31b1fa",null)),Wo=Ho.exports,Go=n("fb3d"),No=n.n(Go),qo={props:{id:String,label:String,language:String,value:Object},components:{ContentManagerList:Wo},computed:{contentGroup:{get:function(){return this.newValue.contentGroup},set:function(t){this.newValue.contentGroup=t,this.sendTimedOutInputEvent()}},contentValue:{get:function(){return this.currentValue.value},set:function(t){this.currentValue.value=t,this.sendTimedOutInputEvent()}},contentTitle:{get:function(){return this.currentValue.title},set:function(t){this.currentValue.title=t,this.sendTimedOutInputEvent()}},currentValue:{get:function(){var t=this.id in this.$store.state.editor.themeConfig?this.$store.state.editor.themeConfig[this.id].value:this.newValue.value;return Boolean(this.language)&&this.newValue.translatable?t[this.language]:t},set:function(t){Boolean(this.language)&&this.newValue.translatable?this.newValue.value[this.language]=t:this.newValue.value=t,this.sendTimedOutInputEvent()}},useEditorContent:{get:function(){return!!Boolean(this.contentGroup)&&this.newValue.useEditorContent},set:function(t){Boolean(this.contentGroup)?(this.newValue.useEditorContent=t,this.sendTimedOutInputEvent()):(this.newValue.useEditorContent=!1,this.sendTimedOutInputEvent(),this.keyz++)}},contentName:function(){return this.newValue.value.hasOwnProperty(this.language)?this.newValue.value[this.language].title:""}},mounted:function(){var t=this;setTimeout(function(){return t.$refs.wysiwygeditor.$forceUpdate()},10)},data:function(){return{keyz:1,timedOutInputEvent:null,editor:No.a,editorData:"<p>Content of the editor.</p>",editorConfig:{language:this.$store.state.editor.currentLanguage,toolbar:["heading","bold","italic","link","bulletedList","numberedList","blockQuote","undo","redo"]},newValue:{}}},methods:{sendTimedOutInputEvent:function(){var t=this;clearTimeout(this.timedOutInputEvent),this.timedOutInputEvent=setTimeout(function(){return t.$emit("input",t.newValue)},300)},onSelectItem:function(t){var e=t.contentGroup,n=t.value;this.newValue.contentGroup=e,e&&(this.newValue.value=n)},onInputChange:function(t){this.newValue.value[this.language].title=t,this.sendTimedOutInputEvent()}},created:function(){this.newValue=JSON.parse(Et()(this.value))}},Xo=qo,Jo=(n("70d1"),Object(Ut["a"])(Xo,Do,Vo,!1,null,"a66e9988",null)),Ko=Jo.exports,Yo=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"widget-code"},[n("div",{staticClass:"form-group"},[n("label",[t._v(t._s(t.value.label||""))]),n("content-manager-list",{attrs:{placeholder:t.value.attributes?t.value.attributes.placeholder:"",query:t.newValue.value[t.language].title,widgetType:"code"},on:{input:t.onInputChange,onSelectItem:t.onSelectItem}})],1),n("div",{staticClass:"form-group"},[n("codemirror",{key:t.language,ref:"codemirror",attrs:{disabled:!t.value.useEditorContent,options:t.cmOptions},on:{input:t.sendTimedOutInputEvent},model:{value:t.newValue.value[t.language].value,callback:function(e){t.$set(t.newValue.value[t.language],"value",e)},expression:"newValue.value[language].value"}})],1)])},Qo=[],ta=(n("d69f"),n("a7be"),n("b6fc"),{props:{id:String,label:String,language:String,value:Object},components:{ContentManagerList:Wo},computed:{searchTerm:{get:function(){return this.newValue.value[this.language].title},set:function(t){this.newValue.value[this.language].title=t}}},created:function(){this.newValue=JSON.parse(Et()(this.value))},mounted:function(){var t=this;setTimeout(function(){return t.$refs.codemirror.codemirror.refresh()},10)},data:function(){return{keyz:1,timedOutInputEvent:0,custom_sass_code:"",cmOptions:{tabSize:4,mode:"text/html",matchBrackets:!0,lineNumbers:!0,line:!0,highlightDifferences:!0,style:[["type",/^text\/(x-)?scss$/,"text/x-scss"],[null,null,"css"]],custom:[[null,null,"customMode"]],newValue:{}}}},methods:{sendTimedOutInputEvent:function(){var t=this;clearTimeout(this.timedOutInputEvent),this.timedOutInputEvent=setTimeout(function(){return t.$emit("input",t.newValue)},300)},onSelectItem:function(t){var e=t.contentGroup,n=t.value;this.newValue.contentGroup=e,e&&(this.newValue.value=n),this.$emit("input",this.newValue)},onInputChange:function(t){this.newValue.value[this.language].title=t,this.sendTimedOutInputEvent()}}}),ea=ta,na=(n("aadc"),Object(Ut["a"])(ea,Yo,Qo,!1,null,"64f6f528",null)),ia=na.exports,oa=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"option-container option-textbox"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-5"},[n("label",{staticClass:"label"},[t._v(t._s(t.label))])]),n("div",{staticClass:"col-7"},[n("div",{staticClass:"row no-gutters"},[n("div",{staticClass:"col-6"},[n("measure-unit",{staticClass:"form-control",attrs:{id:t.id+"-top","default-unit":t.currentUnitValue},on:{change:t.triggerSave},model:{value:t.value.value,callback:function(e){t.$set(t.value,"value",e)},expression:"value.value"}})],1),n("div",{staticClass:"col-6"},[n("unit-selector",{model:{value:t.currentUnitValue,callback:function(e){t.currentUnitValue=e},expression:"currentUnitValue"}})],1)])])])])},aa=[],sa=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"option-container option-unit"},[n("div",{staticClass:"row no-gutters"},t._l(t.units,function(e){return n("div",{staticClass:"col-4"},[n("div",{staticClass:"unit",class:{active:t.value==e},on:{click:function(n){return t.$emit("input",e)}}},[t._v("\n        "+t._s(e)+"\n      ")])])}),0)])},ra=[],la={props:{value:String},data:function(){return{units:["px","em","%"]}}},ca=la,da=(n("2359"),Object(Ut["a"])(ca,sa,ra,!1,null,"36bc82de",null)),ua=da.exports,ha=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("input",{ref:t.id,staticClass:"form-control",class:t.inputClass,attrs:{id:t.id,autocomplete:"off"},domProps:{value:t.currentValue},on:{keydown:t.keyHandler,change:t.update}})},ma=[],ga=n("59ad"),va=n.n(ga),pa={props:{id:String,value:String,inputClass:String,defaultUnit:String},data:function(){return{option:{value:this.value,unit:this.extractUnit(this.value)}}},methods:{extractUnit:function(t){return t?t.replace(/^[.-\d\s]+/gm,"").trim():this.defaultUnit},update:function(t){var e=this.extractUnit(t.target.value);/\S/.test(e)&&(this.option.unit=e),this.currentValue=t.target.value,this.$forceUpdate(),this.$emit("input",this.option.value),this.$emit("change",this.option.value)},keyHandler:function(t){","==t.key&&(0==t.currentTarget.value.replace(/[^.]/g,"").length&&(t.currentTarget.value+=".",this.currentValue=t.currentTarget.value),t.preventDefault()),("."==t.key||","==t.key)&&t.currentTarget.value.replace(/[^.]/g,"").length>0&&t.preventDefault()}},computed:{currentValue:{get:function(){var t=this.extractUnit(this.option.value);if(t==this.defaultUnit)return this.option.value?this.option.value.replace(t,""):"";var e=isNaN(va()(this.option.value))?"0px":this.option.value;return e},set:function(t){var e=this.currentUnit,n=this.extractUnit(t);0==n.length&&(n=e);var i=t.replace(",",".").replace(n,"");i.replace(/[^.]/g,"").length<2?this.option.value=isNaN(va()(i))?t:i+n:this.$forceUpdate()}},currentUnit:{get:function(){return this.option.unit},set:function(t){}}},watch:{value:{handler:function(t){this.option.value=t,this.option.unit=this.extractUnit(this.value)},immediate:!0}}},fa=pa,ba=Object(Ut["a"])(fa,ha,ma,!1,null,null,null),wa=ba.exports,Ca={props:{id:String,label:String,value:Object},components:{unitSelector:ua,measureUnit:wa},computed:{currentUnitValue:{get:function(){var t=this.extractUnit(this.value.value);return this.fixedUnits.indexOf(t)>-1?t:""},set:function(t){this.value.value=this.updateUnit(this.value.value,t),this.triggerSave()}},currentValue:{get:function(){return this.id in this.$store.state.editor.themeConfig?this.$store.state.editor.themeConfig[this.id].value:this.value.value},set:function(t){this.value.value=t}}},methods:{updateUnit:function(t,e){var n=isNaN(Xe()(t))?0:Xe()(t),i=n+e;return i},extractUnit:function(t){return t?t.replace(/^[.-\d\s]+/gm,"").trim():""},triggerSave:function(){this.$emit("input",this.value),this.$emit("triggerSave",this.value.value)},addInputAttributes:function(){if(this.attributes)for(var t=document.getElementById(this.id),e=["id"],n=Y()(this.attributes),i=0;i<n.length;i++){var o=Object(J["a"])(n[i],2),a=o[0],s=o[1];e.includes(a)||t.setAttribute(a,s)}}},mounted:function(){this.addInputAttributes()},data:function(){return{fixedUnits:["px","em","%"],unit:this.extractUnit(this.value.value)}}},xa=Ca,ya=Object(Ut["a"])(xa,oa,aa,!1,null,"ab966748",null),ka=ya.exports,$a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"option-container option-selectbox"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-5"},[n("label",{staticClass:"label"},[t._v(t._s(t.label))])]),n("div",{staticClass:"col-7"},[n("b-form-select",{ref:"dropdownSelect",staticClass:"dropdown-select",attrs:{options:t.value.options,id:t.id},model:{value:t.currentValue,callback:function(e){t.currentValue=e},expression:"currentValue"}})],1)])])},Sa=[],_a={props:{id:String,label:String,value:Object},components:{CustomIcon:so},computed:{currentValue:{get:function(){return this.id in this.$store.state.editor.themeConfig?this.$store.state.editor.themeConfig[this.id].value:this.value.value},set:function(t){this.value.value=t,this.$emit("input",this.value),this.$emit("triggerSave",t)}}}},Ta=_a,Oa=(n("bba3"),Object(Ut["a"])(Ta,$a,Sa,!1,null,"781b530d",null)),La=Oa.exports,Ia=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"option-container option-dropdown-select"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-5"},[n("label",{staticClass:"label"},[t._v(t._s(t.label))])]),n("div",{staticClass:"col-7"},[n("b-dropdown",{staticClass:"input-container",attrs:{split:"","split-variant":"outline"}},[n("template",{slot:"button-content"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.optionValue,expression:"optionValue"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.optionValue},on:{change:t.triggerSave,input:function(e){e.target.composing||(t.optionValue=e.target.value)}}})]),t._l(t.value.items,function(e){return n("b-dropdown-item",{key:e,attrs:{active:t.optionValue===e},on:{click:function(n){return t.setSelectedValue(e)}}},[t._v(t._s(e))])})],2)],1)])])},Ma=[],Ea={props:{id:String,label:String,value:Object},computed:{optionValue:{get:function(){var t=this.id in this.$store.state.editor.themeConfig?this.$store.state.editor.themeConfig[this.id].value:this.value.value;return t},set:function(t){this.value.value=t}}},methods:{triggerSave:function(){this.$emit("input",this.value),this.$emit("triggerSave",this.value.value)},setSelectedValue:function(t){this.optionValue=t,this.triggerSave()}}},za=Ea,Ba=(n("cab7"),Object(Ut["a"])(za,Ia,Ma,!1,null,"1b6e87ca",null)),ja=Ba.exports,Da=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"option-container option-checkbox"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[n("b-form-checkbox",{attrs:{switch:"","unchecked-value":t.unchecked,value:t.checked},model:{value:t.currentValue,callback:function(e){t.currentValue=e},expression:"currentValue"}},[n("span",{staticClass:"label"},[t._v(t._s(t.label))])])],1)])])},Va=[],Pa={props:{id:String,label:String,value:Object},data:function(){return{checked:!0,unchecked:!1}},mounted:function(){this.setCheckedValues()},computed:{currentValue:{get:function(){return this.value.value},set:function(t){this.value.value!==t&&(this.value.value=t,this.$emit("input",this.value),this.$emit("triggerSave",t))}}},methods:{setCheckedValues:function(){void 0!==this.value.values&&(this.checked=this.value.values.checked),void 0!==this.value.values&&(this.unchecked=this.value.values.unchecked)}}},Ua=Pa,Ra=Object(Ut["a"])(Ua,Da,Va,!1,null,"04413e94",null),Za=Ra.exports,Aa=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"option-container option-slider"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("label",{staticClass:"label"},[t._v(t._s(t.label))]),n("div",{staticClass:"row"},[n("div",{staticClass:"col-8"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],staticClass:"custom-range",attrs:{id:t.id,type:"range"},domProps:{value:t.currentValue},on:{change:function(e){return t.$emit("triggerSave",t.value.value)},__r:function(e){t.currentValue=e.target.value}}})]),n("div",{staticClass:"col-4"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],staticClass:"form-control",attrs:{type:"number",id:t.id+"-input"},domProps:{value:t.currentValue},on:{change:function(e){return t.$emit("triggerSave",t.value.value)},input:function(e){e.target.composing||(t.currentValue=e.target.value)}}})])])])])])},Fa=[],Ha={props:{id:String,label:String,value:Object},methods:{addInputAttributes:function(){if(this.value.attributes)for(var t=this.id,e=document.getElementById(t),n=document.getElementById(t+"-input"),i=["id"],o=Y()(this.value.attributes),a=0;a<o.length;a++){var s=Object(J["a"])(o[a],2),r=s[0],l=s[1];i.includes(r)||(e.setAttribute(r,l),n.setAttribute(r,l))}}},mounted:function(){this.addInputAttributes()},computed:{currentValue:{get:function(){return this.id in this.$store.state.editor.themeConfig?this.$store.state.editor.themeConfig[this.id].value:this.value.value},set:function(t){this.value.value=Xe()("0"+t,10)}}}},Wa=Ha,Ga=(n("c9e6"),Object(Ut["a"])(Wa,Aa,Fa,!1,null,"70519dfd",null)),Na=Ga.exports,qa=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"option-container option-variant"},t._l(t.value.options,function(e){return n("div",{staticClass:"variant",class:{"active-variant":e.id===t.currentValue.id},on:{click:function(n){t.currentValue=e}}},[n("span",{staticClass:"type"},[t._v(t._s(e.title))]),n("img",{attrs:{src:e.thumbnail,alt:""}})])}),0)},Xa=[],Ja={props:{id:String,value:Object},computed:{currentValue:{get:function(){return this.id in this.$store.state.editor.themeConfig?this.$store.state.editor.themeConfig[this.id].value:this.value.value},set:function(t){this.$emit("triggerSave",t),this.value.value=t}}}},Ka=Ja,Ya=(n("eb15"),Object(Ut["a"])(Ka,qa,Xa,!1,null,"3bad15ed",null)),Qa=Ya.exports,ts=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"option-container option-radio-image"},[n("div",{staticClass:"row no-gutters"},t._l(t.value.options,function(e){return n("div",{staticClass:"col-6"},[n("div",{staticClass:"radio-option",class:{"active-option":e.id===t.currentValue},on:{click:function(n){t.currentValue=e.id}}},[e.title?n("span",{staticClass:"type"},[t._v(t._s(e.title))]):t._e(),n("img",{attrs:{src:e.thumbnail,alt:""}})])])}),0)])},es=[],ns={props:{id:String,value:Object},computed:{currentValue:{get:function(){return this.id in this.$store.state.editor.themeConfig?this.$store.state.editor.themeConfig[this.id].value:this.value.value},set:function(t){this.value.value=t,this.$emit("input",this.value),this.$emit("triggerSave",t)}}}},is=ns,os=(n("1b16"),Object(Ut["a"])(is,ts,es,!1,null,"4d89c2d6",null)),as=os.exports,ss=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"option-container option-border"},[n("margin",{attrs:{id:t.id+"-margin",label:t.locales.width},model:{value:t.margin,callback:function(e){t.margin=e},expression:"margin"}}),n("selectbox",{attrs:{id:t.id+"-style",label:t.locales.type},model:{value:t.style,callback:function(e){t.style=e},expression:"style"}}),n("colorpicker",{attrs:{id:t.id+"-color",label:t.locales.color},model:{value:t.color,callback:function(e){t.color=e},expression:"color"}})],1)},rs=[],ls=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("padding",{attrs:{id:t.id,label:t.label},on:{triggerSave:function(e){return t.$emit("triggerSave",e)}},model:{value:t.computedValue,callback:function(e){t.computedValue=e},expression:"computedValue"}})},cs=[],ds=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"option-container option-toprightbottomleft"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("label",{staticClass:"label"},[t._v(t._s(t.label))]),n("div",{staticClass:"row no-gutters"},[n("div",{staticClass:"col-8"},[n("div",{staticClass:"row no-gutters"},[n("div",{staticClass:"col-3"},[n("label",{staticClass:"label under-label d-none"},[t._v(t._s(t.topUnit))]),n("measure-unit",{attrs:{id:t.id+"-top","input-class":"first-input","default-unit":t.currentUnitValue},on:{change:t.triggerSave},model:{value:t.value.items.top,callback:function(e){t.$set(t.value.items,"top",e)},expression:"value.items.top"}}),n("label",{staticClass:"label under-label",attrs:{for:t.id+"-top"}},[t._v(" Top")])],1),n("div",{staticClass:"col-3"},[n("label",{staticClass:"label under-label d-none"},[t._v(t._s(t.rightUnit))]),n("measure-unit",{attrs:{id:t.id+"-right","input-class":"middle-input","default-unit":t.currentUnitValue},on:{change:t.triggerSave},model:{value:t.value.items.right,callback:function(e){t.$set(t.value.items,"right",e)},expression:"value.items.right"}}),n("label",{staticClass:"label under-label",attrs:{for:t.id+"-right"}},[t._v("Right")])],1),n("div",{staticClass:"col-3"},[n("label",{staticClass:"label under-label d-none"},[t._v(t._s(t.bottomUnit))]),n("measure-unit",{attrs:{id:t.id+"-bottom","input-class":"middle-input","default-unit":t.currentUnitValue},on:{change:t.triggerSave},model:{value:t.value.items.bottom,callback:function(e){t.$set(t.value.items,"bottom",e)},expression:"value.items.bottom"}}),n("label",{staticClass:"label under-label",attrs:{for:t.id+"-bottom"}},[t._v("Bottom")])],1),n("div",{staticClass:"col-3"},[n("label",{staticClass:"label under-label d-none"},[t._v(t._s(t.leftUnit))]),n("measure-unit",{attrs:{id:t.id+"-left","input-class":"last-input","default-unit":t.currentUnitValue},on:{change:t.triggerSave},model:{value:t.value.items.left,callback:function(e){t.$set(t.value.items,"left",e)},expression:"value.items.left"}}),n("label",{staticClass:"label under-label",attrs:{for:t.id+"-left"}},[t._v("Left")])],1)])]),n("div",{staticClass:"col-4"},[n("unit-selector",{model:{value:t.currentUnitValue,callback:function(e){t.currentUnitValue=e},expression:"currentUnitValue"}})],1)])])])])},us=[],hs={props:{id:String,label:String,value:Object},components:{unitSelector:ua,measureUnit:wa},computed:{currentUnitValue:{get:function(){return this.topUnit==this.bottomUnit&&this.topUnit==this.leftUnit&&this.topUnit==this.rightUnit?this.topUnit:""},set:function(t){this.topUnit=t,this.bottomUnit=t,this.leftUnit=t,this.rightUnit=t,this.triggerSave()}},topUnit:{get:function(){return this.extractUnit(this.value.items.top)},set:function(t){this.value.items.top=this.updateUnit(this.value.items.top,t)}},bottomUnit:{get:function(){return this.extractUnit(this.value.items.bottom)},set:function(t){this.value.items.bottom=this.updateUnit(this.value.items.bottom,t)}},leftUnit:{get:function(){return this.extractUnit(this.value.items.left)},set:function(t){this.value.items.left=this.updateUnit(this.value.items.left,t)}},rightUnit:{get:function(){return this.extractUnit(this.value.items.right)},set:function(t){this.value.items.right=this.updateUnit(this.value.items.right,t)}}},methods:{extractUnit:function(t){var e=t.replace(/^[.-\d\s]+/gm,"").trim();return e},updateUnit:function(t,e){var n=isNaN(Xe()(t))?0:Xe()(t),i=n+e;return i},triggerSave:function(){this.$emit("input",this.value),this.$emit("triggerSave",this.value.items)}}},ms=hs,gs=(n("2252"),Object(Ut["a"])(ms,ds,us,!1,null,"1245e22d",null)),vs=gs.exports,ps={props:{id:String,label:String,value:Object},components:{padding:vs},computed:{computedValue:{get:function(){return this.value},set:function(t){this.$emit("input",t)}}}},fs=ps,bs=(n("9a77"),Object(Ut["a"])(fs,ls,cs,!1,null,"053dd54b",null)),ws=bs.exports,Cs={props:{id:String,label:String,chooseOptions:Object,value:Object},computed:{margin:{get:function(){var t={items:{top:this.value.items.top,right:this.value.items.right,bottom:this.value.items.bottom,left:this.value.items.left}};return t},set:function(t){this.value.items.top=t.items.top,this.value.items.right=t.items.right,this.value.items.bottom=t.items.bottom,this.value.items.left=t.items.left,this.$emit("input",this.value),this.$emit("triggerSave",this.value.items)}},style:{get:function(){return{value:this.value.items.style,options:["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial","inherit"]}},set:function(t){this.value.items.style=t.value,this.$emit("input",this.value),this.$emit("triggerSave",this.value.items)}},color:{get:function(){return{value:this.value.items.color}},set:function(t){this.value.items.color=t.value,this.$emit("input",this.value),this.$emit("triggerSave",this.value.items)}}},components:{margin:ws,colorpicker:ko,selectbox:La},data:function(){return{locales:this.$t("editor").options.border,borderStyle:["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial","inherit"]}}},xs=Cs,ys=(n("e072"),Object(Ut["a"])(xs,ss,rs,!1,null,"bdf2519e",null)),ks=ys.exports,$s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"option-container option-textbox"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-5"},[n("label",{staticClass:"label"},[t._v(t._s(t.label))])]),n("div",{staticClass:"col-7"},[n("input",{staticClass:"form-control",attrs:{type:"text",id:t.id},domProps:{value:t.currentValue},on:{change:function(e){t.currentValue=e.target.value}}})])])])},Ss=[],_s={props:{id:String,label:String,language:String,value:Object},computed:{currentValue:{get:function(){var t=this.id in this.$store.state.editor.themeConfig?this.$store.state.editor.themeConfig[this.id].value:this.value.value;return Boolean(this.language)&&this.value.translatable?t[this.language]:t},set:function(t){Boolean(this.language)&&this.value.translatable?(this.value.value[this.language]=t,this.value.value=JSON.parse(Et()(this.value.value))):this.value.value=t,this.$emit("input",this.value),this.$emit("triggerSave",this.value.value)}}},methods:{triggerSave:function(){},addInputAttributes:function(){if(this.value.attributes)for(var t=document.getElementById(this.id),e=["id"],n=Y()(this.value.attributes),i=0;i<n.length;i++){var o=Object(J["a"])(n[i],2),a=o[0],s=o[1];e.includes(a)||t.setAttribute(a,s)}}},mounted:function(){this.addInputAttributes()}},Ts=_s,Os=Object(Ut["a"])(Ts,$s,Ss,!1,null,"96b54eaa",null),Ls=Os.exports,Is=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"option-container option-imageupload"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-5"},[n("label",{staticClass:"label"},[t._v(t._s(t.label))])]),n("div",{staticClass:"col-7"},[n("div",{staticClass:"row no-gutters"},[n("div",{staticClass:"col"},[n("button",{staticClass:"btn btn-outline-light btn-sm btn-block text-small",on:{click:t.openImageChooser}},[t._v("\n            "+t._s(t.getButtonText("select"))+"\n          ")]),n("button",{staticClass:"btn btn-outline-light btn-sm btn-block text-small",on:{click:t.clearImage}},[t._v("\n            "+t._s(t.getButtonText("delete"))+"\n          ")])]),n("div",{staticClass:"col-auto"},[n("div",{staticClass:"thumbnail-container"},[n("img",{attrs:{src:t.shopBaseUrl+"/"+t.currentValue,alt:""},on:{click:t.openImageChooser}})])]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],attrs:{type:"hidden"},domProps:{value:t.currentValue},on:{input:function(e){e.target.composing||(t.currentValue=e.target.value)}}})])])]),n("b-modal",{ref:"image-upload-modal",staticClass:"image-upload-modal",attrs:{centered:"",size:"xl",title:t.getImageUploadTitle()}},[n("iframe",{staticClass:"filemanager-iframe",attrs:{id:"filemanager-iframe",src:t.fileManagerUrl,frameborder:"0"}})]),n("b-modal",{ref:"no-image-upload-modal",staticClass:"no-image-upload-modal",attrs:{centered:"",size:"xl",title:t.getImageUploadTitle(),"ok-only":!0,"hide-header-close":!0}},[t._v("\n    "+t._s(t.getNoFilemanagerText())+"\n  ")])],1)},Ms=[],Es={props:{id:String,label:String,value:Object,language:String},computed:{currentValue:{get:function(){var t=this.id in this.$store.state.editor.themeConfig?this.$store.state.editor.themeConfig[this.id].value:this.value.value;return Boolean(this.language)&&this.value.translatable?t[this.language]:t},set:function(t){var e=""!==t?new URL(t).pathname.substring(1):t;Boolean(this.language)&&this.value.translatable?(this.value.value[this.language]=e,this.value.value=JSON.parse(Et()(this.value.value))):this.value.value=e,this.value.value=this.value.value.replace(/^.*(images)/i,"$1"),this.$emit("input",this.value),this.$emit("triggerSave",this.value.value);var n=this.value.selector.substring(1,this.value.selector.length),i=document.getElementById("shop-iframe-editor");i.contentWindow.document.getElementById(n).src=this.value.value}}},data:function(){return{fileManagerUrl:null,shopBaseUrl:this.$store.state.editor.shopURL}},methods:{getNoFilemanagerText:function(){return this.$i18n.messages[this.$i18n.locale].editor.uninstalledFilemanager},getImageUploadTitle:function(){return this.$i18n.messages[this.$i18n.locale].editor.uploadImageModalTitle},openImageChooser:function(){var t=new URLSearchParams(location.search),e="1"!==t.get("noImageUpload");e?this.$refs["image-upload-modal"].show():this.$refs["no-image-upload-modal"].show()},clearImage:function(){this.currentValue="",this.triggerEmitIframe()},triggerEmitIframe:function(){if(this.value.selector){var t={selector:this.value.selector,holder:this.value.holder,value:this.currentValue};this.$emit("sendDataToIframe",t)}},getButtonText:function(t){return this.$t("editor").buttons[t]||""}},created:function(){var t="de"===this.$i18n.locale?this.$i18n.locale:this.$i18n.locale+"_"+this.$i18n.locale.toUpperCase();this.fileManagerUrl=[this.shopBaseUrl,"/ResponsiveFilemanager/filemanager/dialog.php?field_id=",this.id,"&crossdomain=1&sub_folder=images/logos&lang=",t].join("")},mounted:function(){var t=this,e=function(e){var n=e.data,i=n.sender,o=n.url,a=n.field_id;"responsivefilemanager"===i&&a===t.id&&(t.$refs["image-upload-modal"].hide(),t.currentValue=o.replace(/([^:]\/)\/+/g,"$1"))};window.addEventListener("message",e)}},zs=Es,Bs=(n("669b"),Object(Ut["a"])(zs,Is,Ms,!1,null,"29d14e32",null)),js=Bs.exports,Ds=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("label",[t._v(t._s(t.label))]),n("searchbox",{attrs:{id:t.id,label:t.label,"clear-after-select":t.clearAfterSelect},on:{triggerSave:function(e){return t.$emit("triggerSave",e)}},model:{value:t.computedValue,callback:function(e){t.computedValue=e},expression:"computedValue"}})],1)},Vs=[],Ps=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("div",{attrs:{id:"searchbox"}},[t.loading?n("Loading"):t._e(),n("vue-autosuggest",{attrs:{"get-suggestion-value":t.getSuggestionValue,inputProps:{class:"form-control form-control-sm",placeholder:t.value.attributes.placeholder},"render-suggestion":t.handleRenderSuggestion,sectionConfigs:{default:{limit:this.maxResults}},suggestions:t.filteredOptions,id:"autocomplete-list"},on:{input:t.handleInput,selected:t.handleOnSelect},model:{value:t.queryTerm,callback:function(e){t.queryTerm=e},expression:"queryTerm"}})],1)])])},Us=[],Rs=(n("7f7f"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"loading"},[n("div",{staticClass:"loading-dots-circle"},t._l(12,function(t){return n("div",{staticClass:"loading-dot",class:"loading-dot"+t})}),0)])}),Zs=[],As={name:"Loading"},Fs=As,Hs=(n("6257"),Object(Ut["a"])(Fs,Rs,Zs,!1,null,"876b4b5e",null)),Ws=Hs.exports,Gs={name:"SearchBox",components:{Loading:Ws,VueAutosuggest:Zo["a"]},props:{id:String,label:String,value:Object,maxResults:{type:Number,default:15},minLength:Number,renderSuggestion:Function,clearAfterSelect:{type:Boolean,default:!1}},data:function(){return{loading:!1,filteredOptions:[],query:"",setTimeoutId:null}},computed:{queryTerm:{get:function(){return this.query},set:function(t){this.query=t}}},methods:{handleInput:function(t){var e=this;clearTimeout(this.setTimeoutId),this.setTimeoutId=setTimeout(function(){return e.search(t)},300)},search:function(t){var e=this;if(!t.length||void 0!==this.minLength&&this.minLength<t.length)return!1;this.loading=!0,f.a.get("".concat(this.getParsedRequestUrl(t)),{handleError:!0}).then(function(t){e.loading=!1,200===t.status&&(e.filteredOptions=[{data:t.data}])}).catch(function(){return e.loading=!1})},handleOnSelect:function(t){if(!t)return!1;this.value.value=t.item,this.clearAfterSelect?(this.queryTerm="",document.getElementById("autocomplete-list").firstElementChild.focus()):this.queryTerm=this.handleRenderSuggestion(t),this.filteredOptions=[],this.triggerSave()},handleRenderSuggestion:function(t){return void 0!==this.renderSuggestion?this.renderSuggestion(t):"".concat(t.item.id," - ").concat(t.item.name)},getParsedRequestUrl:function(t){var e=new URLSearchParams(this.value.endpoint);return e.set("term",t),e.set("language",this.$store.state.editor.currentLanguage),unescape(e.toString())},triggerSave:function(){this.$emit("input",this.value),this.$emit("triggerSave",this.value.value)},getSuggestionValue:function(t){return this.handleRenderSuggestion(t)}},created:function(){this.value.value&&void 0!==this.value.value.name&&(this.query="".concat(this.value.value.id," - ").concat(this.value.value.name))}},Ns=Gs,qs=(n("a91d"),Object(Ut["a"])(Ns,Ps,Us,!1,null,"1a608c23",null)),Xs=qs.exports,Js={name:"ProductSearchBox",components:{searchbox:Xs},props:{id:String,label:String,value:Object,clearAfterSelect:{type:Boolean,default:!1}},computed:{computedValue:{get:function(){return this.value},set:function(t){this.$emit("input",t)}}}},Ks=Js,Ys=Object(Ut["a"])(Ks,Ds,Vs,!1,null,"580a9edb",null),Qs=Ys.exports,tr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("label",[t._v(t._s(t.label))]),n("searchbox",{attrs:{id:t.id,label:t.label},on:{triggerSave:function(e){return t.$emit("triggerSave",e)}},model:{value:t.computedValue,callback:function(e){t.computedValue=e},expression:"computedValue"}})],1)},er=[],nr={name:"CategorySearchBox",components:{searchbox:Xs},props:{id:String,label:String,value:Object},computed:{computedValue:{get:function(){return this.value},set:function(t){this.$emit("input",t)}}}},ir=nr,or=Object(Ut["a"])(ir,tr,er,!1,null,"32ae263e",null),ar=or.exports,sr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"option-container"},[n("draggable",{attrs:{group:"sortableOptions",handle:".move-option"},on:{start:function(e){t.dragging=!0},stop:function(e){t.dragging=!1},change:function(e){return t.$emit("change",e)}},model:{value:t.sortableOptions,callback:function(e){t.sortableOptions=e},expression:"sortableOptions"}},t._l(t.sortableOptions,function(e){return n("div",{staticClass:"row mb-2"},[n("div",{staticClass:"col-2"},[n("a",{staticClass:"action move move-option",attrs:{href:"javascript:;"}},[n("custom-icon",{attrs:{color:t.iconColor,icon:"sort"}})],1)]),n("div",{staticClass:"col-7"},[t._v("\n        "+t._s(e.label)+"\n      ")]),n("div",{staticClass:"col-3"},[n("b-form-checkbox",{attrs:{switch:"","unchecked-value":t.unchecked,value:t.checked},on:{input:t.handleInput},model:{value:e.value.status,callback:function(n){t.$set(e.value,"status",n)},expression:"option.value.status"}})],1)])}),0)],1)},rr=[],lr={name:"sortable-options.vue",components:{draggable:Ve.a,CustomIcon:so},props:{value:Array},computed:{sortableOptions:{get:function(){return this.value},set:function(t){this.$emit("input",t)}}},data:function(){return{dragging:!0,iconColor:"#959595",checked:!0,unchecked:!1}},methods:{handleInput:function(){this.$emit("input",this.sortableOptions)},setCheckedValues:function(){void 0!==this.value.values&&(this.checked=this.value.values.checked),void 0!==this.value.values&&(this.unchecked=this.value.values.unchecked)}},mounted:function(){this.setCheckedValues()}},cr=lr,dr=Object(Ut["a"])(cr,sr,rr,!1,null,null,null),ur=dr.exports,hr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"option-container option-background"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("label",{staticClass:"label"},[t._v(t._s(t.label))]),n("checkbox",{attrs:{id:t.id+"-hidden-xs",label:t.locales.hiddenXs},model:{value:t.hiddenXs,callback:function(e){t.hiddenXs=e},expression:"hiddenXs"}}),n("checkbox",{attrs:{id:t.id+"-hidden-sm",label:t.locales.hiddenSm},model:{value:t.hiddenSm,callback:function(e){t.hiddenSm=e},expression:"hiddenSm"}}),n("checkbox",{attrs:{id:t.id+"-hidden-md",label:t.locales.hiddenMd},model:{value:t.hiddenMd,callback:function(e){t.hiddenMd=e},expression:"hiddenMd"}}),n("checkbox",{attrs:{id:t.id+"-hidden-lg",label:t.locales.hiddenLg},model:{value:t.hiddenLg,callback:function(e){t.hiddenLg=e},expression:"hiddenLg"}})],1)])])},mr=[],gr={props:{id:String,label:String,value:Object},components:{checkbox:Za},data:function(){return{locales:this.$t("editor").options.responsive}},computed:{hiddenXs:{get:function(){return{value:this.value.items.hiddenXs}},set:function(t){this.value.items.hiddenXs=t.value,this.$emit("triggerSave",this.value.items)}},hiddenSm:{get:function(){return{value:this.value.items.hiddenSm}},set:function(t){this.value.items.hiddenSm=t.value,this.$emit("triggerSave",this.value.items)}},hiddenMd:{get:function(){return{value:this.value.items.hiddenMd}},set:function(t){this.value.items.hiddenMd=t.value,this.$emit("triggerSave",this.value.items)}},hiddenLg:{get:function(){return{value:this.value.items.hiddenLg}},set:function(t){this.value.items.hiddenLg=t.value,this.$emit("triggerSave",this.value.items)}}}},vr=gr,pr=(n("7997"),Object(Ut["a"])(vr,hr,mr,!1,null,"3b6130f3",null)),fr=pr.exports,br=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"option-container option-background"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[void 0!==t.enableCustomization.value?n("checkbox",{attrs:{id:t.id+"-enable-customization",label:t.locales.enableCustomization},model:{value:t.enableCustomization,callback:function(e){t.enableCustomization=e},expression:"enableCustomization"}}):t._e(),void 0===t.enableCustomization.value||!0===t.enableCustomization.value?n("div",[n("label",{staticClass:"label"},[t._v(t._s(t.label))]),n("colorpicker",{attrs:{id:t.id+"-color",label:t.locales.textColor},model:{value:t.color,callback:function(e){t.color=e},expression:"color"}}),n("selectbox",{attrs:{id:t.id+"-text-align",label:t.locales.textAlign},model:{value:t.textAlign,callback:function(e){t.textAlign=e},expression:"textAlign"}}),n("fontfamily",{attrs:{id:t.id+"-family",label:t.locales.fontFamily},model:{value:t.family,callback:function(e){t.family=e},expression:"family"}}),n("numberbox",{attrs:{id:t.id+"-size",label:t.locales.fontSize},model:{value:t.size,callback:function(e){t.size=e},expression:"size"}}),n("selectbox",{attrs:{id:t.id+"-style",label:t.locales.fontStyle},model:{value:t.style,callback:function(e){t.style=e},expression:"style"}}),n("checkbox",{attrs:{id:t.id+"-text-decoration-underline",label:t.locales.textDecorationUnderline},model:{value:t.textDecorationUnderline,callback:function(e){t.textDecorationUnderline=e},expression:"textDecorationUnderline"}}),n("checkbox",{attrs:{id:t.id+"-text-transform-uppercase",label:t.locales.textTransformUppercase},model:{value:t.textTransformUppercase,callback:function(e){t.textTransformUppercase=e},expression:"textTransformUppercase"}})],1):t._e()],1)])])},wr=[],Cr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"option-container option-dropdown-select-fontfamily"},[n("dropdownselect",{attrs:{id:t.id,label:t.label},on:{triggerSave:function(e){return t.$emit("triggerSave",e)}},model:{value:t.computedOption,callback:function(e){t.computedOption=e},expression:"computedOption"}})],1)},xr=[],yr={props:{id:String,label:String,value:Object},components:{dropdownselect:ja},computed:{computedOption:{get:function(){return void 0===this.value.items&&(this.value.items=this.$store.state.editor.selectedTheme.availableFonts||["Roboto","Open Sans","Lato","Slabo","Oswald","Source Sans Pro","Montserrat","Raleway"],void 0!==this.$store.state.editor.additionalFonts&&this.$store.state.editor.additionalFonts.length>=1&&(this.value.items=this.value.items.concat(this.$store.state.editor.additionalFonts))),this.value},set:function(t){this.value.value=t.value,this.$emit("input",this.value)}}}},kr=yr,$r=(n("7f87"),Object(Ut["a"])(kr,Cr,xr,!1,null,"23045e5c",null)),Sr=$r.exports,_r={props:{id:String,label:String,value:Object},computed:{enableCustomization:{get:function(){return{value:this.value.items.enableCustomization}},set:function(t){this.value.items.enableCustomization=t.value,this.$emit("input",this.value),this.$emit("triggerSave",this.value.items)}},color:{get:function(){return{value:this.value.items.color}},set:function(t){this.value.items.color=t.value,this.$emit("input",this.value),this.$emit("triggerSave",this.value.items)}},textAlign:{get:function(){return{value:this.value.items.textAlign,options:[{value:"left",text:"Left"},{value:"center",text:"Center"},{value:"right",text:"Right"},{value:"justify",text:"Justify"},{value:"initial",text:"Initial"},{value:"inherit",text:"Inherit"}]}},set:function(t){this.value.items.textAlign=t.value,this.$emit("input",this.value),this.$emit("triggerSave",this.value.items)}},family:{get:function(){return{value:this.value.items.family}},set:function(t){this.value.items.family=t.value,this.$emit("input",this.value),this.$emit("triggerSave",this.value.items)}},size:{get:function(){return{value:this.value.items.size}},set:function(t){this.value.items.size=t.value,this.$emit("input",this.value),this.$emit("triggerSave",this.value.items)}},style:{get:function(){return{value:this.value.items.style,options:["normal","italic","oblique","initial","inherit"]}},set:function(t){this.value.items.style=t.value,this.$emit("input",this.value),this.$emit("triggerSave",this.value.items)}},textDecorationUnderline:{get:function(){return{value:this.value.items.textDecorationUnderline}},set:function(t){this.value.items.textDecorationUnderline=t.value,this.$emit("input",this.value),this.$emit("triggerSave",this.value.items)}},textTransformUppercase:{get:function(){return{value:this.value.items.textTransformUppercase}},set:function(t){this.value.items.textTransformUppercase=t.value,this.$emit("input",this.value),this.$emit("triggerSave",this.value.items)}}},components:{colorpicker:ko,checkbox:Za,selectbox:La,fontfamily:Sr,numberbox:ka,radioimage:as},data:function(){return{locales:this.$t("editor").options.font}}},Tr=_r,Or=(n("f538"),Object(Ut["a"])(Tr,br,wr,!1,null,"27e254a4",null)),Lr=Or.exports,Ir=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"option-container option-background"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("label",{staticClass:"label",attrs:{title:"id: "+t.id}},[t._v(t._s(t.label))]),n("colorpicker",{attrs:{id:t.id+"-color",title:"id: "+t.id+"-color",label:t.locales.color},model:{value:t.color,callback:function(e){t.color=e},expression:"color"}}),n("background-image",{attrs:{id:t.id+"-image",label:t.locales.color},model:{value:t.image,callback:function(e){t.image=e},expression:"image"}}),n("background-gradient",{attrs:{id:t.id+"-gradient",label:t.locales.color},model:{value:t.gradient,callback:function(e){t.gradient=e},expression:"gradient"}})],1)])])},Mr=[],Er=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("checkbox",{attrs:{id:t.id+"-enabled",label:t.locales.insertImage,title:"id: "+t.id+"-enabled"},model:{value:t.enabled,callback:function(e){t.enabled=e},expression:"enabled"}}),t.enabled.value?[n("imageupload",{attrs:{id:t.id+"-url",title:"id: "+t.id+"-url",label:t.locales.image},model:{value:t.image,callback:function(e){t.image=e},expression:"image"}}),n("selectbox",{attrs:{id:t.id+"-position",title:"id: "+t.id+"-position",label:t.locales.position},model:{value:t.position,callback:function(e){t.position=e},expression:"position"}}),n("selectbox",{attrs:{id:t.id+"-attachment",title:"id: "+t.id+"-attachment",label:t.locales.attachment},model:{value:t.attachment,callback:function(e){t.attachment=e},expression:"attachment"}}),n("selectbox",{attrs:{id:t.id+"-repeat",title:"id: "+t.id+"-repeat",label:t.locales.repeat},model:{value:t.repeat,callback:function(e){t.repeat=e},expression:"repeat"}}),n("selectbox",{attrs:{id:t.id+"-size",title:"id: "+t.id+"-size",label:t.locales.size},model:{value:t.size,callback:function(e){t.size=e},expression:"size"}})]:t._e()],2)},zr=[],Br=(n("14b9"),{props:{id:String,label:String,value:Object},components:{imageupload:Lo,checkbox:Za,selectbox:La},data:function(){return{locales:this.$t("editor").options.backgroundImage}},computed:{enabled:{get:function(){return{value:this.value.items.enabled}},set:function(t){this.value.items.enabled=t.value,this.$emit("input",this.value),this.$emit("triggerSave",this.value.items)}},image:{get:function(){return{value:this.value.items.url,holder:"img"}},set:function(t){this.value.items.url=t.value,this.$emit("input",this.value),this.$emit("triggerSave",this.value.items)}},position:{get:function(){var t=this.value.items.position;return t||(t="left top"),{value:t,options:["left top","left center","left bottom","right top","right center","right bottom","center top","center center","center bottom"]}},set:function(t){this.value.items.position=t.value,this.$emit("input",this.value),this.$emit("triggerSave",this.value.items)}},repeat:{get:function(){var t=this.value.items.repeat;return t||(t="repeat"),{value:t,options:["repeat","repeat-x","repeat-y","no-repeat","space","round","initial","inherit"]}},set:function(t){this.value.items.repeat=t.value,this.$emit("input",this.value),this.$emit("triggerSave",this.value.items)}},size:{get:function(){var t=this.value.items.size;return t||(t="auto"),{value:t,options:["auto","length","percentage","cover","contain","initial","inherit"]}},set:function(t){this.value.items.size=t.value,this.$emit("input",this.value),this.$emit("triggerSave",this.value.items)}},attachment:{get:function(){var t=this.value.items.attachment;return t||(t="scroll"),{value:t,options:["scroll","fixed","local","initial","inherit"]}},set:function(t){this.value.items.attachment=t.value,this.$emit("input",this.value),this.$emit("triggerSave",this.value.items)}}}}),jr=Br,Dr=Object(Ut["a"])(jr,Er,zr,!1,null,"ad23f1d6",null),Vr=Dr.exports,Pr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("checkbox",{attrs:{id:t.id+"-enabled",label:t.locales.insertGradient,title:"id: "+t.id+"-enabled"},model:{value:t.enabled,callback:function(e){t.enabled=e},expression:"enabled"}}),t.enabled.value?[n("colorpicker",{attrs:{id:t.id+"-color1",label:t.locales.firstColor,title:"id: "+t.id+"-color1"},model:{value:t.color1,callback:function(e){t.color1=e},expression:"color1"}}),n("colorpicker",{attrs:{id:t.id+"-color2",label:t.locales.secondColor,title:"id: "+t.id+"-color2"},model:{value:t.color2,callback:function(e){t.color2=e},expression:"color2"}}),n("selectbox",{attrs:{id:t.id+"-type",label:t.locales.type,title:"id: "+t.id+"-type"},model:{value:t.gradientType,callback:function(e){t.gradientType=e},expression:"gradientType"}}),n("selectbox",{attrs:{id:t.id+"-angle",title:"id: "+t.id+"-angle",label:t.locales.angle},model:{value:t.angle,callback:function(e){t.angle=e},expression:"angle"}})]:t._e()],2)},Ur=[],Rr={props:{id:String,label:String,value:Object},components:{colorpicker:ko,checkbox:Za,selectbox:La},data:function(){return{locales:this.$t("editor").options.backgroundGradient}},computed:{enabled:{get:function(){return{value:this.value.items.enabled}},set:function(t){this.value.items.enabled=t.value,this.$emit("input",this.value),this.$emit("triggerSave",this.value.items)}},color1:{get:function(){return{value:this.value.items.color1}},set:function(t){this.value.items.color1=t.value,this.$emit("input",this.value),this.$emit("triggerSave",this.value.items)}},color2:{get:function(){return{value:this.value.items.color2}},set:function(t){this.value.items.color2=t.value,this.$emit("input",this.value),this.$emit("triggerSave",this.value.items)}},gradientType:{get:function(){var t=this.value.items.gradientType;return t||(t="linear"),{value:t,options:["linear","radial"]}},set:function(t){this.value.items.gradientType=t.value,this.$emit("input",this.value),this.$emit("triggerSave",this.value.items)}},angle:{get:function(){var t=this.value.items.angle;return t||(t="0deg"),{value:t,options:["0deg","45deg","90deg","135deg","180deg"]}},set:function(t){this.value.items.angle=t.value,this.$emit("input",this.value),this.$emit("triggerSave",this.value.items)}}}},Zr=Rr,Ar=Object(Ut["a"])(Zr,Pr,Ur,!1,null,"0dfb8e71",null),Fr=Ar.exports,Hr={props:{id:String,label:String,value:Object},components:{colorpicker:ko,backgroundImage:Vr,backgroundGradient:Fr},computed:{color:{get:function(){var t=this.$store.state.editor.themeConfig;return void 0!==t[this.id]?{value:t[this.id].items.color}:{value:this.value.items.color}},set:function(t){this.value.items.color=t.value,this.$emit("input",this.value),this.$emit("triggerSave",this.value.items)}},image:{get:function(){var t=this.$store.state.editor.themeConfig;return void 0!==t[this.id]?{items:t[this.id].items.image}:{items:this.value.items.image}},set:function(t){this.value.items.image=t.items,this.$emit("input",this.value),this.$emit("triggerSave",this.value.items)}},gradient:{get:function(){var t=this.$store.state.editor.themeConfig;return void 0!==t[this.id]?{items:t[this.id].items.gradient}:{items:this.value.items.gradient}},set:function(t){this.value.items.gradient=t.items,this.$emit("input",this.value),this.$emit("triggerSave",this.value.items)}}},data:function(){return{locales:this.$t("editor").options.background,backgroundPosition:["left top","left center","left bottom","right top","right center","right bottom","center top","center center","center bottom"],backgroundAttachment:["scroll","fixed","local","initial","inherit"],backgroundRepeat:["repeat","repeat-x","repeat-y","no-repeat","space","round","initial","inherit"],backgroundSize:["auto","length","percentage","cover","contain","initial","inherit"],backgroundGradientType:["linear","radial"],backgroundGradientAngle:["0deg","45deg","90deg","135deg","180deg"]}}},Wr=Hr,Gr=(n("2455"),Object(Ut["a"])(Wr,Ir,Mr,!1,null,"23287a40",null)),Nr=Gr.exports,qr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("selectbox",{attrs:{id:t.value.items.listType.id,label:t.value.items.listType.label},model:{value:t.listType,callback:function(e){t.listType=e},expression:"listType"}}),t.showCategorySearchBox()?n("div",[n("category-search-box",{attrs:{label:t.value.items.category.label},on:{triggerSave:t.triggerSave},model:{value:t.value.items.category,callback:function(e){t.$set(t.value.items,"category",e)},expression:"value.items.category"}})],1):t._e(),t.showProductSearchBox()?n("div",[n("product-search-box",{attrs:{label:t.value.items.products.label,"clear-after-select":!0},on:{triggerSave:t.triggerSaveProducts},model:{value:t.value.items.products,callback:function(e){t.$set(t.value.items,"products",e)},expression:"value.items.products"}}),n("product-listing",{attrs:{selectedProducts:t.selectedProducts},on:{change:t.onChangeProductList,itemDeleted:t.itemDeleted}})],1):t._e()],1)},Xr=[],Jr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"option-container"},[n("draggable",{attrs:{list:t.selectedProducts,group:"selectedProducts",handle:".move-product"},on:{start:function(e){t.dragging=!0},stop:function(e){t.dragging=!1},change:function(e){return t.$emit("change",e)}}},t._l(t.selectedProducts,function(e,i){return n("div",{key:e.id,staticClass:"row product-row mt-2 mb-2"},[n("div",{staticClass:"col-2"},[n("div",{staticClass:"product-image-container"},[n("img",{attrs:{src:e.image,alt:""}})])]),n("div",{staticClass:"col-7 p-0"},[e.active?t._e():n("custom-icon",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"ml-1 mr-2",attrs:{color:t.iconColor,icon:"eye",title:"product invisible"}}),t._v("\n        "+t._s(e.id+" - "+e.name)+"\n      ")],1),n("div",{staticClass:"col-3 text-right"},[n("a",{staticClass:"action move move-product mr-2",attrs:{href:"javascript:;"}},[n("custom-icon",{attrs:{color:t.iconColor,icon:"sort"}})],1),n("a",{staticClass:"action",attrs:{href:"javascript:;"},on:{click:function(e){return t.removeProduct(i)}}},[n("custom-icon",{attrs:{color:t.iconColor,icon:"close"}})],1)])])}),0)],1)},Kr=[],Yr={components:{draggable:Ve.a,CustomIcon:so},props:{selectedProducts:{required:!0,type:Array}},data:function(){return{dragging:!0,iconColor:"#959595"}},methods:{removeProduct:function(t){var e=this.selectedProducts.splice(t,1);this.$emit("itemDeleted",e[0]||[])},getProductImagePath:function(t){return this.$store.state.editor.shopURL+"/images/product_images/thumbnail_images/"+t}}},Qr=Yr,tl=(n("0069"),Object(Ut["a"])(Qr,Jr,Kr,!1,null,null,null)),el=tl.exports,nl={name:"productlist",components:{Selectbox:La,ProductListing:el,ProductSearchBox:Qs,CategorySearchBox:ar},props:{id:String,label:String,value:Object},data:function(){return{selectedProducts:[]}},computed:{listType:{get:function(){return this.value.items.listType},set:function(t){this.value.items.listType.value=t.value,this.triggerSave()}}},methods:{showCategorySearchBox:function(){return"category"===this.listType.value},showProductSearchBox:function(){return"own-list"===this.listType.value},triggerSaveProducts:function(t){this.getProductByIdInSelectedProductsList(t.id)||this.selectedProducts.push(t),this.value.items.products.value=this.getSelectedProductsIds(),this.triggerSave()},getProductByIdInSelectedProductsList:function(t){return this.selectedProducts.filter(function(e){return e.id===t})[0]||null},itemDeleted:function(t){this.getProductByIdInSelectedProductsList(t.id),this.value.items.products.value=this.getSelectedProductsIds(),this.triggerSave()},getSelectedProductsIds:function(){return this.selectedProducts.length?this.selectedProducts.reduce(function(t,e){return t.push(e.id),t},[]):[]},triggerSave:function(){this.$emit("input",this.value),this.$emit("triggerSave",this.value.items)},fillSelectedProductsList:function(){var t=this,e=new URLSearchParams(R);e.set("ids",this.value.items.products.value),f.a.get(unescape(e),{handleError:!0}).then(function(e){200===e.status&&(t.selectedProducts=e.data)})},updateProductsListOrder:function(){this.value.items.products.value=this.getSelectedProductsIds(),this.triggerSave()},onChangeProductList:function(){this.updateProductsListOrder()}},mounted:function(){this.value.items.products.value.length&&!this.selectedProducts.length&&this.fillSelectedProductsList()}},il=nl,ol=Object(Ut["a"])(il,qr,Xr,!1,null,"38bc3c60",null),al=ol.exports,sl=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("sortable-options",{model:{value:t.boxItems,callback:function(e){t.boxItems=e},expression:"boxItems"}})},rl=[],ll={name:"ordainedlist",components:{SortableOptions:ur},props:{id:String,label:String,value:Object},computed:{boxItems:{get:function(){return this.value.value},set:function(t){this.value.value=this.sortBoxItemOrder(t),this.$emit("input",this.value),this.$emit("triggerSave",this.value.value)}}},methods:{sortBoxItemOrder:function(t){return t.map(function(t,e){return t.value.position=e}),t}}},cl=ll,dl=Object(Ut["a"])(cl,sl,rl,!1,null,"00fc62ad",null),ul=dl.exports,hl={name:"Options",components:{colorpicker:ko,imageupload:Lo,textbox:jo,wysiwyg:Ko,sourcecode:ia,numberbox:ka,selectbox:La,dropdownselect:ja,checkbox:Za,slider:Na,variant:Qa,radioimage:as,margin:ws,responsive:fr,padding:vs,border:ks,font:Lr,fontfamily:Sr,background:Nr,url:Ls,gxLogo:js,productsearchbox:Qs,categorysearchbox:ar,productlist:al,sortableoptions:ur,ordainedlist:ul}},ml=hl,gl=Object(Ut["a"])(ml,bt,wt,!1,null,null,null),vl=gl.exports,pl={name:"Fieldset",extends:vl,props:{partialSelector:String,usedFor:String,fieldsetCounter:Number,data:Object,locales:Object},components:{CustomIcon:so},computed:{language:function(){return this.$store.state.editor.currentLanguage},fieldsetOptions:function(){return this.data.options.filter(function(t){return!t.hidden})}},data:function(){return{isOpen:!0}},mounted:function(){},methods:{handleIframe:function(t){this.$emit("handleIframe",t)},resetFieldset:function(t){for(var e=0;e<this.data.options.length;e++)"gx-logo"!=this.data.options[e].id&&this.saveToStore(this.data.options[e].default,this.data.options[e].id,this.data.options[e].type,this.data.options[e])},saveToStore:function(){var t=Object(St["a"])(regeneratorRuntime.mark(function t(e,n,i,o){var a,s=this;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(void 0===o.from)try{a={type:i,requiresReload:o.requiresReload||!1},this.usedFor&&(a.for=this.usedFor),void 0!==o.value?a.value=e:a.items=e,this.$store.dispatch("editor/saveEditorChanges",Object(Ot["a"])({},n,a)).then(function(t){var e=o.requiresReload?"reload":"compile";s.$emit("handleIframe",e)})}catch(r){console.log("Couldn't save your configuration!",r)}case 1:case"end":return t.stop()}},t,this)}));function e(e,n,i,o){return t.apply(this,arguments)}return e}(),toggle:function(){!this.showCopyContentButton()&&this.fieldsetCounter>1&&(this.isOpen=!this.isOpen)},showCopyContentButton:function(){var t=this.data.options,e=t.filter(function(t){return!0===t.translatable}).length>0;return e&&this.isFromWidget()},isFromWidget:function(){var t=this.data.options;return t.filter(function(t){return"widget"===t.from}).length>0},handleCopyContent:function(t){t.stopPropagation();var e={params:this.data,successCallback:this.copyContent,locales:this.locales.widgets.copyContentModal,confirmButtonVariant:"success"};this.$emit("toggleModal",!0,e)},copyContent:function(t){var e=this,n=this.$store.state.editor,i=n.currentLanguage,o=n.selectedTheme.languages,a=t.options.filter(function(t){return!0===t.translatable});a.map(function(t){o.forEach(function(n){if(n!==i){var o=e.getTranslatableValue(t,n),a=e.getTranslatableTitle(t,n),s=/^\s*$/.test(o),r=/^\s*$/.test(a);if(!t.value.hasOwnProperty(n)||s||r)if(e.optionIsObject(t,n))s&&(t.value[n].value=t.value[i].value),r&&(t.value[n].title=t.value[i].title);else{var l=JSON.parse(Et()(t.value));l[n]=t.value[i],t.value=JSON.parse(Et()(l))}}})})},getTranslatableValue:function(t,e){return this.optionIsObject(t,e)?t.value[e].hasOwnProperty("value")?t.value[e].value:"":t.value[e]},getTranslatableTitle:function(t,e){return this.optionIsObject(t,e)?t.value[e].hasOwnProperty("title")?t.value[e].title:"":t.value[e]},optionIsObject:function(t,e){return"object"===Object(po["a"])(t.value[e])}}},fl=pl,bl=(n("e268"),Object(Ut["a"])(fl,go,vo,!1,null,"855a6d26",null)),wl=bl.exports,Cl=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.data.basic&&t.isVisible||t.$store.state.editor.expertMode&&(void 0!==t.data.for&&t.isVisible||void 0==t.data.for)?n("div",{staticClass:"menu-item"},[n("a",{staticClass:"link",attrs:{"data-menu-item":t.data.id},on:{click:function(e){return t.openCategory()}}},[t._v("\n    "+t._s(t.title)+"\n    "),n("custom-icon",{attrs:{icon:"Expand"}})],1)]):t._e()},xl=[],yl=(n("28a5"),{components:{CustomIcon:so},props:{title:String,data:Object,usedFor:String,partialSelector:String},data:function(){return{isVisible:!0}},methods:{openCategory:function(){var t=this.data.id,e=this.data.title;this.$store.commit("editor/generateBreadcrumb",Object(Ot["a"])({},t,e)),this.$emit("triggerOpenOverlay")},findThemeJsonBlock:function(t,e){for(var n=0;n<t.length;n++){var i=void 0!==t[n].categories&&t[n].categories.length&&t[n].categories[0];if(null!==i&&i.fieldsets.length&&i.fieldsets[0].options.length&&"variant"===i.fieldsets[0].options[0].type&&i.fieldsets[0].options[0].id===e)return i.fieldsets[0].options[0].value.id}return null},showCategoryForVariant:function(){if(this.data.for){var t=this.data.for.split("/"),e=Object(J["a"])(t,2),n=e[0],i=e[1];if(n in this.$store.state.editor.themeConfig)this.$store.state.editor.themeConfig[n].value.id!=i&&(this.isVisible=!1);else{var o=this.findThemeJsonBlock(this.$store.state.editor.selectedTheme.config.areas.categories,n);o!=i&&(this.isVisible=!1)}}}},mounted:function(){this.showCategoryForVariant()}}),kl=yl,$l=(n("58a6"),Object(Ut["a"])(kl,Cl,xl,!1,null,"ec175f34",null)),Sl=$l.exports,_l={name:"Handler",props:{data:Object,locales:Object},components:{Fieldset:wl,Category:Sl},methods:{handleIframe:function(t){this.$emit("handleIframe",t)},emitOverlayWithData:function(t){this.$store.state.editor.expertMode?this.$emit("handleOverlay",t):this.$emit("handleOverlay",t.categories[0])},toggleModal:function(t,e){this.$emit("toggleModal",t,e)},closeOverlay:function(){this.$emit("closeOverlay")}},computed:{fieldsetsList:function(){return this.data.fieldsets.filter(function(t){return!t.hidden})},categoriesList:function(){return this.data.categories.filter(function(t){return!t.hidden})}}},Tl=_l,Ol=(n("8643"),Object(Ut["a"])(Tl,ho,mo,!1,null,"80eec750",null)),Ll=Ol.exports,Il={name:"DynamicOverlay",props:{active:Boolean,data:Object},components:{Header:uo,Handler:Ll},methods:{handleIframe:function(t){this.$emit("handleIframe",t)},reInitMyData:function(t){this.$emit("reSendBlockData",t)},triggerChangeOverlay:function(t){this.$emit("change",t)}},mounted:function(){var t=document.getElementById("scrollbar-container"),e=document.getElementById("panel-header")||0;e&&(e=e.clientHeight);var n=document.getElementById("language-switcher-container")||0;n&&(n=n.clientHeight);var i=document.getElementById("resolution-bar-container")||0;i&&(i=i.clientHeight);var o=document.getElementById("expertmode-preview-bar-container")||0;o&&(o=o.clientHeight);var a=Xe()(n+e+o+i)-11;t.style.height="calc(100vh - "+a+"px)"}},Ml=Il,El=(n("e4bf"),Object(Ut["a"])(Ml,Ge,Ne,!1,null,"5ac14d03",null)),zl=El.exports,Bl=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"editor-panel-overlay",class:t.active?"active-overlay":""},[!1!==t.computedData[0].showBreadcrumb?[n("header",{staticClass:"overlay-header",attrs:{id:"panel-header"}},[n("nav",{attrs:{"aria-label":"breadcrumb"}},[n("ol",{staticClass:"breadcrumb"},[t.breadcrumb.length>1?n("li",{staticClass:"breadcrumb-icon"},[n("button",{staticClass:"btn btn-link btn-sm",on:{click:function(e){return t.breadcrumbGoBack()}}},[n("custom-icon",{attrs:{icon:"arrow-left"}})],1)]):n("li",{staticClass:"breadcrumb-icon"},[n("button",{staticClass:"btn btn-link btn-sm",on:{click:function(e){return t.closeOverlay()}}},[n("custom-icon",{attrs:{icon:"close"}})],1)]),t._l(t.breadcrumb,function(e,i){return n("li",{key:i,staticClass:"breadcrumb-item"},[t.breadcrumb.length>2&&0!=i&&i!=t.breadcrumb.length-1?[t._v("\n              …\n            ")]:[t._v("\n              "+t._s(e.title)+"\n            ")]],2)})],2)])])]:[n("header",{staticClass:"overlay-header more-than-two",attrs:{id:"panel-header"}},[n("nav",{attrs:{"aria-label":"breadcrumb"}},[n("ol",{staticClass:"breadcrumb"},[n("li",{staticClass:"breadcrumb-icon"},[n("button",{staticClass:"btn btn-link btn-sm",on:{click:function(e){return t.closeOverlay()}}},[n("custom-icon",{attrs:{icon:"close"}})],1)]),n("li",{staticClass:"breadcrumb-item"},[[t._v("\n              "+t._s(t.breadcrumb[2].title)+"\n            ")]],2)])])])],n("main",{staticClass:"overlay-body"},[t.computedData[0].translatable?n("language-switcher",{attrs:{id:"language-switcher-container"}}):t._e(),n("perfect-scrollbar",{staticClass:"overflow-content-wrapper",attrs:{id:"overlay-scrollbar-container"}},[n("Handler",{key:t.computedData[0].key,attrs:{data:t.computedData[0],locales:t.locales},on:{toggleModal:t.toggleModal}})],1)],1)],2)},jl=[],Dl=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("nav",{staticClass:"lang-switcher"},[n("ul",{staticClass:"nav"},t._l(t.languages,function(e){return n("li",{staticClass:"nav-item"},[n("a",{staticClass:"nav-link",class:{active:t.currentLanguage===e},on:{click:function(n){t.currentLanguage=e}}},[n("img",{staticClass:"flag",attrs:{src:t.$store.state.editor.shopURL+"/images/flags/4x3/"+e+".svg",alt:e+" language"}})])])}),0)])},Vl=[],Pl={props:{value:String},computed:{languages:function(){return this.$store.state.editor.selectedTheme.languages},currentLanguage:{get:function(){return this.$store.state.editor.currentLanguage},set:function(t){this.$store.commit("editor/updateLanguage",t)}}}},Ul=Pl,Rl=(n("eac6"),Object(Ut["a"])(Ul,Dl,Vl,!1,null,"bbb80e36",null)),Zl=Rl.exports,Al={props:{active:Boolean,data:Array,locales:Object},components:{CustomIcon:so,LanguageSwitcher:Zl,Handler:Ll},data:function(){return{fakedata:[{title:"el 0",id:"element0",fieldsets:[]},{title:"el 1",id:"element1",fieldsets:[]}]}},computed:{computedData:{get:function(){return 0===this.data.length?this.fakedata:this.data},set:function(t){0===this.data.length?this.fakedata=t:(this.data=t,this.$emit("input",t))}},breadcrumb:{get:function(){return this.computedData.slice().reverse()},set:function(t){}}},methods:{breadcrumbGoBack:function(){this.computedData=this.computedData.splice(0,1)},closeOverlay:function(){this.$emit("closeOverlay")},toggleModal:function(t,e){this.$emit("toggleModal",t,e)}},mounted:function(){var t=document.getElementById("overlay-scrollbar-container"),e=document.getElementById("panel-header")||0;e&&(e=e.clientHeight);var n=document.getElementById("language-switcher-container")||0;n&&(n=n.clientHeight);var i=document.getElementById("resolution-bar-container")||0;i&&(i=i.clientHeight);var o=document.getElementById("expertmode-preview-bar-container")||0;o&&(o=o.clientHeight);var a=Xe()(n+e+o+i)-11;t.style.height="calc(100vh - "+a+"px)"}},Fl=Al,Hl=(n("2faf"),Object(Ut["a"])(Fl,Bl,jl,!1,null,"37a1c6d0",null)),Wl=Hl.exports,Gl=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-modal",{key:t.active,ref:"contentZoneModal",attrs:{noEnforceFocus:!0,visible:t.active,centered:"","no-fade":"",size:"lg","modal-class":"popup-modal"},on:{hidden:function(e){return t.$emit("closeModal")}}},[n("template",{slot:"modal-header"},[n("h3",{staticClass:"modal-title"},[t._v("\n    "+t._s(t.computedData[0].title)+"\n    ")]),n("b-button",{staticClass:"close",attrs:{size:"sm",variant:"link"},on:{click:function(e){return t.$emit("closeModal")}}},[n("custom-icon",{attrs:{icon:"close"}})],1)],1),n("perfect-scrollbar",{staticClass:"overflow-content-wrapper"},[n("language-switcher"),t.active?n("Handler",{key:t.computedData[0].key,attrs:{data:t.computedData[0],locales:t.locales},on:{toggleModal:t.toggleModal}}):t._e()],1),n("template",{slot:"modal-footer"})],2)},Nl=[],ql={props:{active:Boolean,data:Array,locales:Object},components:{CustomIcon:so,LanguageSwitcher:Zl,Handler:Ll},data:function(){return{fakedata:[{title:"el 0",id:"element0",fieldsets:[]},{title:"el 1",id:"element1",fieldsets:[]}]}},computed:{computedData:{get:function(){return 0===this.data.length?this.fakedata:this.data},set:function(t){0===this.data.length?this.fakedata=t:(this.data=t,this.$emit("input",t))}}},methods:{toggleModal:function(t,e){this.$emit("toggleModal",t,e)}}},Xl=ql,Jl=(n("880d"),Object(Ut["a"])(Xl,Gl,Nl,!1,null,"ed12c8f4",null)),Kl=Jl.exports,Yl=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.data.basic||t.$store.state.editor.expertMode?n("div",{staticClass:"menu-item"},[n("a",{attrs:{"data-menu-item":t.data.id},on:{click:function(e){return t.$emit("handleOverlay",t.data,!0)}}},[t._v("\n    "+t._s(t.data.title)+"\n  ")])]):t._e()},Ql=[],tc={props:{data:Object}},ec=tc,nc=(n("e555"),Object(Ut["a"])(ec,Yl,Ql,!1,null,"16bbc188",null)),ic=nc.exports,oc='@charset "UTF-8";\nbody .row-visibility-status {\n  position: absolute;\n  top: 0;\n  left: 0;\n  z-index: 10;\n  padding: 5px 10px;\n  font-size: 12px;\n  background: #5bc0de;\n  color: white;\n  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);\n}\nbody .row-visibility-status svg,\nbody .row-visibility-status div {\n  display: inline-block;\n  float: left;\n}\nbody .row-visibility-status svg {\n  position: relative;\n  bottom: -1px;\n  margin-right: 5px;\n}\nbody.style-edit-edit-mode-on {\n  padding-top: 0;\n}\nbody.style-edit-edit-mode-on #header {\n  height: 100% !important;\n  /*.navbar-cart {\n    margin: 10px 0 !important;\n  }*/\n}\nbody.style-edit-edit-mode-on #header .navbar-topbar {\n  height: 30px !important;\n  overflow: visible !important;\n}\nbody.style-edit-edit-mode-on #header #navbar-brand a {\n  height: 60px !important;\n  margin: 10px 0 !important;\n}\nbody.style-edit-edit-mode-on #header #navbar-brand a img {\n  max-height: 60px !important;\n}\nbody.style-edit-edit-mode-on #header #navbar-brand,\nbody.style-edit-edit-mode-on #header .custom-container {\n  height: 80px;\n}\nbody.style-edit-edit-mode-on #header .navbar-categories {\n  height: 40px !important;\n  overflow: visible !important;\n}\nbody.style-edit-edit-mode-on .editable-partial {\n  position: relative !important;\n  border: 5px solid #00abff !important;\n}\nbody.style-edit-edit-mode-on .editable-partial .edit-section-trigger {\n  position: absolute;\n  top: -5px;\n  right: 0;\n  z-index: 10;\n  font-weight: bold;\n  color: #00abff;\n}\nbody.style-edit-edit-mode-on .editable-partial .edit-section-trigger a {\n  display: inline-block;\n  width: 30px;\n  height: 30px;\n  margin-left: 10px;\n  line-height: 35px;\n  text-align: center;\n  background: #00abff;\n}\nbody.style-edit-edit-mode-on .editable-partial .edit-section-trigger a i {\n  color: white;\n}\nbody.style-edit-edit-mode-on .gx-content-zone {\n  position: relative;\n  padding-bottom: 100px;\n}\nbody.style-edit-edit-mode-on .gx-content-zone:after, body.style-edit-edit-mode-on .gx-content-zone:before {\n  content: " ";\n  display: table;\n  width: 100%;\n  overflow: hidden;\n}\nbody.style-edit-edit-mode-on .gx-content-zone .gx-content-zone-actions .add-section {\n  position: absolute;\n  bottom: 0;\n  left: 50%;\n  transform: translate(-50%, -25px);\n  width: 50px;\n  height: 50px;\n  line-height: 50px;\n  text-align: center;\n  font-size: 18px;\n  background: #ccc;\n  border-radius: 50px;\n  color: #3a3a3a;\n  transition: all 0.2s;\n}\nbody.style-edit-edit-mode-on .gx-content-zone .gx-content-zone-actions .add-section:hover {\n  background: #00abff;\n}\nbody.style-edit-edit-mode-on .gx-content-zone .gx-content-zone-row {\n  position: relative;\n  padding: 15px 0;\n  margin-bottom: 30px;\n  border: 2px dashed #ccc;\n}\nbody.style-edit-edit-mode-on .gx-content-zone .gx-content-zone-row .row-hidden-on-current-breakpoint .gx-content-zone-col {\n  opacity: 0.5;\n}\nbody.style-edit-edit-mode-on .gx-content-zone .gx-content-zone-row .gx-content-zone-row-actions {\n  opacity: 0;\n  position: absolute;\n  top: -24px;\n  right: -2px;\n}\nbody.style-edit-edit-mode-on .gx-content-zone .gx-content-zone-row .gx-content-zone-row-actions .content-zone-element-type {\n  position: relative;\n  right: 5px;\n  display: table-cell;\n  vertical-align: middle;\n  padding: 3px 5px;\n  line-height: 1;\n  color: #ccc;\n}\nbody.style-edit-edit-mode-on .gx-content-zone .gx-content-zone-row .gx-content-zone-row-actions .action {\n  display: table-cell;\n  vertical-align: middle;\n  padding: 3px 5px;\n  line-height: 1;\n  background: #ccc;\n  color: white;\n}\nbody.style-edit-edit-mode-on .gx-content-zone .gx-content-zone-row:hover {\n  border-style: solid;\n}\nbody.style-edit-edit-mode-on .gx-content-zone .gx-content-zone-row:hover .gx-content-zone-row-actions {\n  opacity: 1;\n}\nbody.style-edit-edit-mode-on .gx-content-zone .gx-content-zone-row .gx-content-zone-col {\n  position: relative;\n  padding: 15px 15px 65px;\n  border: 2px dashed #ccc;\n  transition: all 0.3s;\n}\nbody.style-edit-edit-mode-on .gx-content-zone .gx-content-zone-row .gx-content-zone-col.row-hidden-on-current-breakpoint {\n  opacity: 0.5;\n}\nbody.style-edit-edit-mode-on .gx-content-zone .gx-content-zone-row .gx-content-zone-col .col-actions {\n  opacity: 0;\n  position: absolute;\n  top: 0;\n  right: 0;\n}\nbody.style-edit-edit-mode-on .gx-content-zone .gx-content-zone-row .gx-content-zone-col .col-actions .content-zone-element-type {\n  position: relative;\n  right: 5px;\n  display: table-cell;\n  vertical-align: middle;\n  padding: 3px 5px;\n  line-height: 1;\n  color: #ccc;\n}\nbody.style-edit-edit-mode-on .gx-content-zone .gx-content-zone-row .gx-content-zone-col .col-actions .action {\n  display: table-cell;\n  vertical-align: middle;\n  padding: 3px 5px;\n  line-height: 1;\n  background: #ccc;\n  color: white;\n}\nbody.style-edit-edit-mode-on .gx-content-zone .gx-content-zone-row .gx-content-zone-col .gx-content-zone-col-draggable {\n  position: relative;\n  min-height: 100px;\n}\nbody.style-edit-edit-mode-on .gx-content-zone .gx-content-zone-row .gx-content-zone-col .place-widget-here {\n  position: absolute;\n  bottom: 0;\n  left: 50%;\n  transform: translate(-50%, -15px);\n  width: 50px;\n  height: 50px;\n  line-height: 50px;\n  text-align: center;\n  font-size: 18px;\n  border: 2px dashed #ccc;\n  border-radius: 50px;\n  color: #ccc;\n  cursor: pointer;\n  transition: all 0.1s;\n}\nbody.style-edit-edit-mode-on .gx-content-zone .gx-content-zone-row .gx-content-zone-col .place-widget-here .icon-on-hover {\n  display: none;\n}\nbody.style-edit-edit-mode-on .gx-content-zone .gx-content-zone-row .gx-content-zone-col .place-widget-here:hover {\n  border-color: #00abff;\n}\nbody.style-edit-edit-mode-on .gx-content-zone .gx-content-zone-row .gx-content-zone-col .place-widget-here:hover .icon-default {\n  display: none;\n}\nbody.style-edit-edit-mode-on .gx-content-zone .gx-content-zone-row .gx-content-zone-col .place-widget-here:hover .icon-on-hover {\n  display: inline-block;\n}\nbody.style-edit-edit-mode-on .gx-content-zone .gx-content-zone-row .gx-content-zone-col.no-widgets-here {\n  padding-bottom: 15px;\n}\nbody.style-edit-edit-mode-on .gx-content-zone .gx-content-zone-row .gx-content-zone-col.no-widgets-here .place-widget-here {\n  position: absolute;\n  top: 50%;\n  bottom: auto;\n  transform: translate(-50%, -50%);\n}\nbody.style-edit-edit-mode-on .gx-content-zone .gx-content-zone-row .gx-content-zone-col .widget {\n  position: relative;\n  margin-bottom: 15px;\n  padding: 30px 15px 15px;\n  border-left: 2px solid #ccc;\n}\nbody.style-edit-edit-mode-on .gx-content-zone .gx-content-zone-row .gx-content-zone-col .widget .widget-actions {\n  position: absolute;\n  top: 0;\n  left: 0;\n}\nbody.style-edit-edit-mode-on .gx-content-zone .gx-content-zone-row .gx-content-zone-col .widget .widget-actions .content-zone-element-type {\n  position: relative;\n  left: 5px;\n  display: table-cell;\n  vertical-align: middle;\n  padding: 3px 5px;\n  text-transform: capitalize;\n  line-height: 1;\n  color: #ccc;\n}\nbody.style-edit-edit-mode-on .gx-content-zone .gx-content-zone-row .gx-content-zone-col .widget .widget-actions .action {\n  display: table-cell;\n  vertical-align: middle;\n  padding: 3px 5px;\n  line-height: 1;\n  background: #ccc;\n  color: white;\n}\nbody.style-edit-edit-mode-on .gx-content-zone .gx-content-zone-row .gx-content-zone-col .widget:hover {\n  border-color: #c0006c;\n}\nbody.style-edit-edit-mode-on .gx-content-zone .gx-content-zone-row .gx-content-zone-col .widget:hover .widget-actions .content-zone-element-type {\n  color: #c0006c;\n}\nbody.style-edit-edit-mode-on .gx-content-zone .gx-content-zone-row .gx-content-zone-col .widget:hover .widget-actions .action {\n  background: #c0006c;\n}\nbody.style-edit-edit-mode-on .gx-content-zone .gx-content-zone-row .gx-content-zone-col:hover {\n  border-style: solid;\n  border-color: #00abff;\n}\nbody.style-edit-edit-mode-on .gx-content-zone .gx-content-zone-row .gx-content-zone-col:hover .col-actions {\n  opacity: 1;\n}\nbody.style-edit-edit-mode-on .gx-content-zone .gx-content-zone-row .gx-content-zone-col:hover .col-actions .content-zone-element-type {\n  color: #00abff;\n}\nbody.style-edit-edit-mode-on .gx-content-zone .gx-content-zone-row .gx-content-zone-col:hover .col-actions .action {\n  background: #00abff;\n}\nbody.style-edit-edit-mode-on .draggable-widget {\n  margin: 15px 0;\n  display: flex;\n  border: 2px solid #c0006c;\n  border-radius: 4px;\n  overflow: hidden;\n}\nbody.style-edit-edit-mode-on .draggable-widget:first-child {\n  margin-top: 0;\n}\nbody.style-edit-edit-mode-on .draggable-widget .widget-icon {\n  padding: 15px 30px;\n  background: #c0006c;\n}\nbody.style-edit-edit-mode-on .draggable-widget .widget-icon img {\n  max-width: 50px;\n}\nbody.style-edit-edit-mode-on .draggable-widget .widget-label {\n  padding: 15px 30px;\n}\nbody.style-edit-edit-mode-on .disabled-menu-box {\n  position: relative;\n  opacity: 0.7;\n  -webkit-filter: grayscale(100%);\n  filter: grayscale(100%);\n}\nbody.style-edit-edit-mode-on .disabled-menu-box:before {\n  content: "";\n  font-family: "Font Awesome 5 Free";\n  position: absolute;\n  top: 0;\n  left: -24px;\n  width: 24px;\n  height: 24px;\n  font-size: 14px;\n  text-align: center;\n  line-height: 24px;\n  background: #000;\n  color: #fff;\n}\nbody.style-edit-edit-mode-off .editable-partial .edit-section-trigger {\n  display: none;\n}\nbody.style-edit-edit-mode-off .gx-content-zone .gx-content-zone-actions {\n  display: none;\n}\nbody.style-edit-edit-mode-off .gx-content-zone .gx-content-zone-row .row-hidden-on-current-breakpoint .gx-content-zone-col {\n  opacity: 0.5;\n}\nbody.style-edit-edit-mode-off .gx-content-zone .gx-content-zone-row .row-visibility-status {\n  display: none;\n}\nbody.style-edit-edit-mode-off .gx-content-zone .gx-content-zone-row .gx-content-zone-row-actions {\n  display: none;\n}\nbody.style-edit-edit-mode-off .gx-content-zone .gx-content-zone-row .gx-content-zone-col.row-hidden-on-current-breakpoint {\n  opacity: 0.5;\n}\nbody.style-edit-edit-mode-off .gx-content-zone .gx-content-zone-row .gx-content-zone-col .col-actions {\n  display: none;\n}\nbody.style-edit-edit-mode-off .gx-content-zone .gx-content-zone-row .gx-content-zone-col .place-widget-here {\n  display: none;\n}\nbody.style-edit-edit-mode-off .gx-content-zone .gx-content-zone-row .gx-content-zone-col .widget .widget-actions {\n  display: none;\n}\nbody.style-edit-edit-mode-off .disabled-menu-box {\n  display: none;\n}\n\n/*# sourceMappingURL=style.css.map */\n',ac=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"gx-content-zone"},[n("div",{staticClass:"gx-content-zone-actions"},[n("a",{staticClass:"add-section",attrs:{href:"javascript:;"},on:{click:function(e){return t.addSection(t.contentZone.rows)}}},[n("custom-icon",{attrs:{icon:"add"}})],1)]),n("draggable",t._b({attrs:{list:t.contentZone.rows,setData:t.modifyDragItem,group:"rows",handle:".move-row"},on:{end:function(e){t.isDragging=!1},start:function(e){t.isDragging=!0}}},"draggable",t.getDraggableOptions(),!1),[n("transition-group",{attrs:{name:"flip-list",type:"transition"}},t._l(t.contentZone.rows,function(e,i){return n("div",{key:i,staticClass:"gx-content-zone-row row",attrs:{"content-zone-id":t.contentZone.id}},[n("div",{class:[{container:e.contentAlign.value},{"container-fluid":!e.contentAlign.value}]},[n("div",{staticClass:"gx-content-zone-row-actions"},[n("span",{staticClass:"content-zone-element-type"},[t._v(t._s(t.$t("editor.contentZone.row.title")))]),n("a",{staticClass:"action edit",attrs:{href:"javascript:;"},on:{click:function(n){return t.editRow(e)}}},[n("custom-icon",{attrs:{icon:"pencil"}})],1),n("a",{staticClass:"action move move-row",attrs:{href:"javascript:;"}},[n("custom-icon",{attrs:{icon:"sort"}})],1),n("a",{staticClass:"action delete",attrs:{href:"javascript:;"},on:{click:function(e){return t.handleDeleteRow(i)}}},[n("custom-icon",{attrs:{icon:"cross"}})],1)]),n("contentZoneRow",{attrs:{locales:t.locales,row:e},on:{closeOverlay:t.closeOverlay,columnDeleted:t.columnDeleted,goTo:t.goTo,handleOverlay:function(n,i){return t.handleOverlay(e,n,i)},toggleModal:t.toggleModal}})],1)])}),0)],1)],1)},sc=[],rc=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"row",class:[t.rowClass,{"row-hidden-on-current-breakpoint":t.rowHiddenLg&&"desktop"==t.initRowVisibility||t.rowHiddenMd&&"tablet-landscape"==t.initRowVisibility||t.rowHiddenSm&&"tablet-portrait"==t.initRowVisibility||t.rowHiddenXs&&"smartphone"==t.initRowVisibility}],attrs:{id:t.rowID}},[t.row.responsive.items.hiddenLg?n("div",{staticClass:"visible-lg row-visibility-status"},[n("i",{staticClass:"fa fa-eye"}),t._v(" Hidden on "),n("strong",[t._v("Large")]),t._v(" devices\n\t\t")]):t._e(),t.row.responsive.items.hiddenMd?n("div",{staticClass:"visible-md row-visibility-status"},[n("i",{staticClass:"fa fa-eye"}),t._v(" Hidden on "),n("strong",[t._v("Medium")]),t._v(" devices\n\t\t")]):t._e(),t.row.responsive.items.hiddenSm?n("div",{staticClass:"visible-sm row-visibility-status"},[n("i",{staticClass:"fa fa-eye"}),t._v(" Hidden on "),n("strong",[t._v("Small")]),t._v(" devices\n\t\t")]):t._e(),t.row.responsive.items.hiddenXs?n("div",{staticClass:"visible-xs row-visibility-status"},[n("i",{staticClass:"fa fa-eye"}),t._v(" Hidden on "),n("strong",[t._v("Extra small")]),t._v(" devices\n\t\t")]):t._e(),t._l(t.row.cols,function(e,i){return n("div",{key:i,class:t.getColClassByLayoutName(t.row.columnsLayout.value,i),style:t.columnStyle(e)},[n("div",{staticClass:"gx-content-zone-col",class:[{"row-hidden-on-current-breakpoint":e.responsive.items.hiddenLg&&"desktop"==t.initRowVisibility||e.responsive.items.hiddenMd&&"tablet-landscape"==t.initRowVisibility||e.responsive.items.hiddenSm&&"tablet-portrait"==t.initRowVisibility||e.responsive.items.hiddenXs&&"smartphone"==t.initRowVisibility},{"no-widgets-here":!e.widgets.length}]},[e.responsive.items.hiddenLg?n("div",{staticClass:"visible-lg row-visibility-status",attrs:{i:""}},[n("i",{staticClass:"fa fa-eye"}),t._v(" Hidden on "),n("strong",[t._v("Large")]),t._v(" devices\n\t\t\t\t")]):t._e(),e.responsive.items.hiddenMd?n("div",{staticClass:"visible-md row-visibility-status"},[n("i",{staticClass:"fa fa-eye"}),t._v(" Hidden on "),n("strong",[t._v("Medium")]),t._v(" devices\n\t\t\t\t")]):t._e(),e.responsive.items.hiddenSm?n("div",{staticClass:"visible-sm row-visibility-status"},[n("i",{staticClass:"fa fa-eye"}),t._v(" Hidden on "),n("strong",[t._v("Small")]),t._v(" devices\n\t\t\t\t")]):t._e(),e.responsive.items.hiddenXs?n("div",{staticClass:"visible-xs row-visibility-status"},[n("i",{staticClass:"fa fa-eye"}),t._v(" Hidden on\n\t\t\t\t\t"),n("strong",[t._v("Extra small")]),t._v(" devices\n\t\t\t\t")]):t._e(),n("div",{staticClass:"col-actions"},[n("span",{staticClass:"content-zone-element-type"},[t._v(t._s(t.title()))]),n("a",{staticClass:"action edit",attrs:{href:"javascript:;"},on:{click:function(n){return t.editColumn(e)}}},[n("custom-icon",{attrs:{icon:"pencil"}})],1),n("a",{staticClass:"action delete",attrs:{href:"javascript:;"},on:{click:function(e){return t.handleDeleteColumn(t.row,i)}}},[n("custom-icon",{attrs:{icon:"cross"}})],1)]),n("contentZoneCol",{attrs:{col:e},on:{goTo:t.goTo,closeOverlay:t.closeOverlay,handleOverlay:function(n,i){return t.handleOverlay(e,n,i)}}})],1)])})],2)},lc=[],cc=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("draggable",t._b({staticClass:"gx-content-zone-col-draggable",attrs:{list:t.col.widgets,group:"widgets",handle:".move-widget",setData:t.modifyDragItem},on:{start:function(e){t.isDragging=!0},end:function(e){t.isDragging=!1},add:t.handleAdd}},"draggable",t.getDraggableOptions(),!1),t._l(t.col.widgets,function(e,i){return n("div",{staticClass:"widget widget-container"},[n("div",{staticClass:"widget-actions"},[n("a",{staticClass:"action edit",attrs:{href:"javascript:;"},on:{click:function(n){return t.editWidget(e)}}},[n("custom-icon",{attrs:{icon:"pencil"}})],1),n("a",{staticClass:"action duplicate",attrs:{href:"javascript:;"},on:{click:function(n){return t.duplicateWidget(t.col,e,i)}}},[n("custom-icon",{attrs:{icon:"copy"}})],1),n("a",{staticClass:"action move move-widget",attrs:{href:"javascript:;"}},[n("custom-icon",{attrs:{icon:"sort"}})],1),n("a",{staticClass:"action delete",attrs:{href:"javascript:;"},on:{click:function(e){return t.deleteWidget(t.col,i)}}},[n("custom-icon",{attrs:{icon:"cross"}})],1),n("span",{staticClass:"content-zone-element-type"},[t._v(t._s(e.title))])]),n("transition-group",{attrs:{type:"transition",name:"flip-list"}},[n("contentZoneWidget",{key:e.id,attrs:{widget:e}})],1)],1)}),0),n("div",{staticClass:"place-widget-here",on:{click:t.gotToWidget}},[n("custom-icon",{attrs:{icon:"add",color:"#ccc","custom-class":"icon-default"}}),n("custom-icon",{attrs:{icon:"add",color:"#00abff","custom-class":"icon-on-hover"}})],1)],1)},dc=[],uc=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"widget-content",domProps:{innerHTML:t._s(t.widgetContent.html)}})},hc=[],mc={headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}},gc={name:"contentZoneWidget",props:{widget:Object},computed:{language:function(){return this.$store.state.editor.currentLanguage}},data:function(){return{widgetContent:{html:"",styleNode:{}},timedOutHtmlLoad:0}},mounted:function(){var t=this.$el.ownerDocument.createElement("style");t.type="text/css",t.appendChild(this.$el.ownerDocument.createTextNode("")),this.styleNode=t.childNodes[0],this.$el.ownerDocument.head.appendChild(t),this.sendTimedOutInputEvent()},methods:{loadWidgetHTML:function(){var t=Object(St["a"])(regeneratorRuntime.mark(function t(){var e,n,i,o,a,s;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return e=this.$store.state.editor.selectedTheme.id,n="",i="",t.prev=3,t.next=6,f.a.post(j(e,this.widget.type,this.language||""),this.widget,mc);case 6:o=t.sent,a=o.data,n=a.html.replace(/<style[\w\W]+?<\/style>/gm,""),s=Object(Ro["a"])(a.html.matchAll(/<style\b[^>]*>([\w\W]+?)<\/style>/g)),s.forEach(function(t,e){i+=t[1]}),t.next=17;break;case 13:t.prev=13,t.t0=t["catch"](3),n=void 0!==t.t0.response&&void 0!==t.t0.response.data&&void 0!==t.t0.response.data.message?t.t0.response.data.message:t.t0,i="";case 17:this.styleNode.textContent=i,this.widgetContent.html=n;case 19:case"end":return t.stop()}},t,this,[[3,13]])}));function e(){return t.apply(this,arguments)}return e}(),sendTimedOutInputEvent:function(){var t=this;clearTimeout(this.timedOutHtmlLoad),this.timedOutHtmlLoad=setTimeout(function(){return t.loadWidgetHTML()},1e3)}},watch:{widget:{handler:function(){this.sendTimedOutInputEvent()},deep:!0},language:function(){this.sendTimedOutInputEvent()}}},vc=gc,pc=Object(Ut["a"])(vc,uc,hc,!1,null,"be35f7c4",null),fc=pc.exports,bc={name:"contentZoneCol",props:{col:Object},components:{CustomIcon:so,draggable:Ve.a,contentZoneWidget:fc},data:function(){return{isDragging:!1}},methods:{modifyDragItem:function(t){t.setData("text/html",null)},gotToWidget:function(){this.$emit("goTo","widgetTab")},editWidget:function(t){var e={title:t.title,key:t.id,location:t.displayConfig,fieldsets:t.fieldsets,translatable:!0,showBreadcrumb:!1};this.$emit("handleOverlay",[e])},duplicateWidget:function(t,e,n){var i=JSON.parse(Et()(e));i.fieldsets.forEach(function(t){t.options.forEach(function(t){"text"===t.id&&t.hasOwnProperty("contentGroup")&&(t.contentGroup=null),"id"===t.id&&(t.value+="-"+Math.random().toString(36).substr(2,5))})}),this.$emit("closeOverlay"),t.widgets.splice(n++,0,i)},deleteWidget:function(t,e){t.widgets.splice(e,1),this.handleOverlay({},!1)},handleOverlay:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.$emit("handleOverlay",[t],e)},getDraggableOptions:function(){return{animation:150}},handleAdd:function(t){this.editWidget(this.col.widgets[t.newIndex])}}},wc=bc,Cc=(n("991d"),Object(Ut["a"])(wc,cc,dc,!1,null,"57b1265c",null)),xc=Cc.exports,yc={methods:{buildContentZone:function(t){return{id:t,type:"content-zone",rows:[this.buildRow()]}},buildRow:function(){var t=new URLSearchParams(location.search),e=t.get("url");return{columnsLayout:{id:"radioimage-"+Math.random().toString(36).substr(2,9),type:"radioimage",from:"contentzone",options:[{id:"fullwidth",thumbnail:e+"/GXModules/Gambio/ContentZones/Images/100.png"},{id:"fifty-fifty",thumbnail:e+"/GXModules/Gambio/ContentZones/Images/50-50.png"},{id:"thirty-three-sixty-six",thumbnail:e+"/GXModules/Gambio/ContentZones/Images/33-66.png"},{id:"sixty-six-thirty-three",thumbnail:e+"/GXModules/Gambio/ContentZones/Images/66-33.png"},{id:"twenty-five-seventy-five",thumbnail:e+"/GXModules/Gambio/ContentZones/Images/25-75.png"},{id:"seventy-five-twenty-five",thumbnail:e+"/GXModules/Gambio/ContentZones/Images/75-25.png"},{id:"three-thirty-three",thumbnail:e+"/GXModules/Gambio/ContentZones/Images/33-33-33.png"},{id:"four-twenty-five",thumbnail:e+"/GXModules/Gambio/ContentZones/Images/25-25-25-25.png"}],default:"fifty-fifty",value:"fullwidth"},contentAlign:{id:"checkbox-"+Math.random().toString(36).substr(2,9),type:"checkbox",label:this.$t("editor.contentZone.row.options.contentAlign"),value:!1},responsive:{id:"responsive-"+Math.random().toString(36).substr(2,9),type:"responsive",from:!0,items:{hiddenXs:!1,hiddenSm:!1,hiddenMd:!1,hiddenLg:!1}},background:{id:"background-"+Math.random().toString(36).substr(2,9),type:"background",label:this.$t("editor.contentZone.row.options.background"),items:{color:"rgba(255, 255, 255, 0)",image:{color:"rgba(255, 255, 255, 0)",enabled:!1,url:"https://www.gambio-shop.de/shop1/images/slider_images/responsive-slider-v3.jpg",position:"right center",attachment:"fixed",repeat:"no-repeat",size:"cover"},gradient:{enabled:!1,color1:"#ffffff",color2:"#000000",gradientType:"radial",angle:"90deg"}}},border:{id:"border-"+Math.random().toString(36).substr(2,9),type:"border",label:this.$t("editor.contentZone.row.options.border"),items:{top:"0px",right:"0px",bottom:"0px",left:"0px",style:"none",color:"red"}},class:{id:"textbox-"+Math.random().toString(36).substr(2,9),type:"textbox",label:this.$t("editor.contentZone.row.options.class"),value:"textbox-"+Math.random().toString(36).substr(2,9)},id:{id:"textbox-"+Math.random().toString(36).substr(2,9),type:"textbox",label:this.$t("editor.contentZone.row.options.id"),value:"textbox-"+Math.random().toString(36).substr(2,9)},cols:[this.buildColumn()]}},buildColumn:function(){return{widgets:[],background:{id:"background-"+Math.random().toString(36).substr(2,9),type:"background",label:this.$t("editor.contentZone.column.options.background"),items:{color:"rgba(255, 255, 255, 0)",image:{color:"rgba(255, 255, 255, 0)",enabled:!1,url:"https://www.gambio-shop.de/shop1/images/slider_images/responsive-slider-v3.jpg",position:"right center",attachment:"fixed",repeat:"no-repeat",size:"cover"},gradient:{enabled:!1,color1:"#ff0000",color2:"#0000ff",gradientType:"radial",angle:"90deg"}}},border:{id:"border-"+Math.random().toString(36).substr(2,9),type:"border",label:this.$t("editor.contentZone.column.options.border"),items:{top:"0px",right:"0px",bottom:"0px",left:"0px",style:"none",color:"red"}},responsive:{id:"responsive-"+Math.random().toString(36).substr(2,9),type:"responsive",items:{hiddenXs:!1,hiddenSm:!1,hiddenMd:!1,hiddenLg:!1}},class:{id:"class-"+Math.random().toString(36).substr(2,9),type:"textbox",label:this.$t("editor.contentZone.column.options.class"),value:""},id:{id:"textbox-"+Math.random().toString(36).substr(2,9),type:"textbox",label:this.$t("editor.contentZone.column.options.id"),value:"column-id-"+Math.random().toString(36).substr(2,9)}}}}},kc={name:"contentZoneRow",props:{row:Object,locales:Object},components:{CustomIcon:so,contentZoneCol:xc},mixins:[yc],data:function(){return{editorViewPort:this.$store.state.editor.editorView,rowID:this.row.id.value,rowClass:this.row.class.value,rowHiddenXs:this.row.responsive.items.hiddenXs,rowHiddenSm:this.row.responsive.items.hiddenSm,rowHiddenMd:this.row.responsive.items.hiddenMd,rowHiddenLg:this.row.responsive.items.hiddenLg,showDeleteModal:!1,showChangedGridModal:!1,currentRowToDelete:null,columnIndexToDelete:null,oldGridValue:null,newGridValue:null}},methods:{title:function(){return this.$t("editor.contentZone.column.title")},closeOverlay:function(){this.$emit("closeOverlay")},goTo:function(t){this.$emit("goTo",t)},columnStyle:function(t){var e={borderTopWidth:t.border.items.top,borderRightWidth:t.border.items.right,borderBottomWidth:t.border.items.bottom,borderLeftWidth:t.border.items.left,borderStyle:t.border.items.style,borderColor:t.border.items.color};return 1==t.background.items.image.enabled?(e.backgroundImage="url("+t.background.items.image.url+")",e.backgroundPosition=t.background.items.image.position,e.backgroundAttachment=t.background.items.image.attachment,e.backgroundRepeat=t.background.items.image.repeat,e.backgroundSize=t.background.items.image.size,e.backgroundColor=t.background.items.color):1==t.background.items.gradient.enabled?"linear"==t.background.items.gradient.gradientType?e.backgroundImage="linear-gradient("+t.background.items.gradient.angle+", "+t.background.items.gradient.color1+", "+t.background.items.gradient.color2+")":e.backgroundImage="radial-gradient("+t.background.items.gradient.color1+", "+t.background.items.gradient.color2+")":e.backgroundColor=t.background.items.color,e},createDataObject:function(t){return t.type="contentZoneColumn",{title:this.$t("editor.contentZone.column.title"),fieldsets:[{title:this.$t("editor.contentZone.column.fieldsets.responsive"),options:[t.responsive]},{title:this.$t("editor.contentZone.column.fieldsets.background"),options:[t.background]},{title:this.$t("editor.contentZone.column.fieldsets.border"),options:[t.border]},{title:this.$t("editor.contentZone.column.fieldsets.general"),options:[t.id,t.class]}]}},editColumn:function(t){this.$emit("handleOverlay",[this.createDataObject(t)],!0)},deleteColumn:function(t,e){switch(t.cols.splice(e,1),t.cols.length){case 1:this.row.columnsLayout.value="fullwidth";break;case 2:this.row.columnsLayout.value="fifty-fifty";break;case 3:this.row.columnsLayout.value="three-thirty-three";break}this.$emit("columnDeleted",t)},handleDeleteColumn:function(t,e){var n=this,i=t.cols[e].widgets.length;if(i){var o={params:{row:t,col:e},successCallback:function(t){n.deleteColumn(t.row,t.col)},cancelCallback:this.toggleChangedGridModal,locales:this.locales.deleteModal};return this.$emit("toggleModal",!0,o),!1}this.deleteColumn(t,e)},onChangedGridModalConfirm:function(){this.changeColumnsLayout(this.newGridValue,null),this.resetChangeGridVariables()},onChangedGridModalCancel:function(){this.oldGridValue&&(this.currentRowToDelete.columnsLayout.value=this.oldGridValue)},handleOverlay:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];e.push(this.createDataObject(t)),this.$emit("handleOverlay",e,n)},columnHasWidget:function(t){return t.widgets.length>0},changeColumnsLayout:function(t,e){var n,i=this,o=this.row.cols;switch(t){case"fifty-fifty":case"thirty-three-sixty-six":case"sixty-six-thirty-three":case"twenty-five-seventy-five":case"seventy-five-twenty-five":n=2;break;case"three-thirty-three":n=3;break;case"four-twenty-five":n=4;break;default:n=1;break}if(o.length!==n)if(o.length>n){var a=o.length-n;if(e){var s=this.row.cols.slice(-1*a),r=s.find(function(t){return i.columnHasWidget(t)});if(void 0!==r){this.currentRowToDelete=this.row,this.oldGridValue=e,this.newGridValue=t;var l={params:{},successCallback:this.onChangedGridModalConfirm,cancelCallback:this.onChangedGridModalCancel,locales:this.locales.deleteModal};return this.$emit("toggleModal",!0,l),!1}}this.row.cols.splice(n,a)}else for(var c=n-o.length,d=1;d<=c;d++)this.row.cols.push(this.buildColumn())},getColumnsLayoutByName:function(t){switch(t){case"fifty-fifty":return["col-md-6","col-md-6"];case"thirty-three-sixty-six":return["col-md-4","col-md-8"];case"sixty-six-thirty-three":return["col-md-8","col-md-4"];case"twenty-five-seventy-five":return["col-md-3","col-md-9"];case"seventy-five-twenty-five":return["col-md-9","col-md-3"];case"three-thirty-three":return["col-md-4","col-md-4","col-md-4","col-md-4"];case"four-twenty-five":return["col-md-3","col-md-3","col-md-3","col-md-3"];case"fullwidth":default:return["col-md-12"]}},resetChangeGridVariables:function(){this.oldGridValue=null,this.newGridValue=null},createColumn:function(){return{widgets:[]}},getColClassByLayoutName:function(t,e){var n=this.getColumnsLayoutByName(t),i=n[e]||n[0],o=[this.row.cols[e].class.value],a=[i].concat(o).reduce(function(t,e){return t.indexOf(e)<0&&t.push(e),t},[]);return a.join(" ")}},computed:{initRowVisibility:function(){return this.$store.state.editor.editorView},columnsLayout:function(){return this.row.columnsLayout.value},rowResponsive:function(){return this.row.responsive.items},watchRowClass:function(){return this.row.class.value},watchRowID:function(){return this.row.id.value}},watch:{watchRowID:{handler:function(t,e){this.rowID=t},immediate:!0},watchRowClass:{handler:function(t,e){this.rowClass=t},immediate:!0},columnsLayout:{handler:function(t,e){this.changeColumnsLayout(t,e)},immediate:!0},rowResponsive:{handler:function(t,e){1==t.hiddenXs?this.rowHiddenXs="hidden-xs":this.rowHiddenXs="",1==t.hiddenSm?this.rowHiddenSm="hidden-sm":this.rowHiddenSm="",1==t.hiddenMd?this.rowHiddenMd="hidden-md":this.rowHiddenMd="",1==t.hiddenLg?this.rowHiddenLg="hidden-lg":this.rowHiddenLg=""},immediate:!0,deep:!0}}},$c=kc,Sc=Object(Ut["a"])($c,rc,lc,!1,null,"39879b5b",null),_c=Sc.exports,Tc={name:"contentZone",props:{contentZone:Object,locales:Object},created:function(){this.$emit("mounted")},mixins:[yc],components:{draggable:Ve.a,CustomIcon:so,contentZoneRow:_c},data:function(){return{isDragging:!1,showDeleteModal:!1,deleteRowIndex:null}},methods:{title:function(){return this.$t("editor.contentZone.row.title")},closeOverlay:function(){this.$emit("closeOverlay")},modifyDragItem:function(t){t.setData("text/html",null)},goTo:function(t){this.$emit("goTo",t)},columnDeleted:function(t){if(0==t.cols.length){var e=this.contentZone.rows.indexOf(t);this.contentZone.rows.splice(e,1)}this.$emit("handleOverlay",[],!1)},addSection:function(t){this.$emit("handleOverlay",[],!1),t.push(this.buildRow())},createDataObject:function(t){return t.type="contentZoneRow",{key:Math.random(),title:this.$t("editor.contentZone.row.title"),fieldsets:[{title:this.$t("editor.contentZone.row.fieldsets.grid"),options:[t.columnsLayout]},{title:this.$t("editor.contentZone.row.fieldsets.alignment"),options:[t.contentAlign]},{title:this.$t("editor.contentZone.row.fieldsets.responsive"),options:[t.responsive]},{title:this.$t("editor.contentZone.row.fieldsets.general"),options:[t.id,t.class]}]}},setFromProperty:function(t){var e=this;return t.forEach(function(t){void 0!==t.fieldsets?t.fieldsets.forEach(function(t){t.options.forEach(function(t){t.from="widget"})}):void 0!==t.categories&&e.setFromProperty(t.categories)}),t},editRow:function(t){this.$emit("handleOverlay",this.setFromProperty([this.createDataObject(t)]),!0)},handleDeleteRow:function(t){var e=this,n=this.contentZone.rows[t].cols.reduce(function(t,e){return e.widgets.length?t+1:t},0);if(n){var i={params:{row:t},successCallback:function(t){e.deleteRow(t.row)},locales:this.locales.deleteModal};return this.$emit("toggleModal",!0,i),!1}this.deleteRow(t)},deleteRow:function(t){this.contentZone.rows.splice(t,1),this.$emit("handleOverlay",[],!1)},toggleModal:function(t,e){this.$emit("toggleModal",t,e)},handleOverlay:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];e.push(this.createDataObject(t)),this.$emit("handleOverlay",this.setFromProperty(e),n)},getDraggableOptions:function(){return{animation:300}}}},Oc=Tc,Lc=(n("1ec7"),Object(Ut["a"])(Oc,ac,sc,!1,null,"66a596a9",null)),Ic=Lc.exports,Mc={methods:{setThemeIdCookie:function(){this.clearCookRemovalTimeout();var t=this.$store.state.editor.selectedTheme.id,e=new Date;e.setSeconds(e.getSeconds()+10),document.cookie=this.getCookieString(t,e)},clearCookRemovalTimeout:function(){void 0!=window.cookieRemovalTimeout&&clearTimeout(window.cookieRemovalTimeout)},scheduleThemeIdCookieRemoval:function(){var t=this;this.clearCookRemovalTimeout(),window.cookieRemovalTimeout=setTimeout(function(){return t.removeThemeIdCookie()},2e3)},removeThemeIdCookie:function(){var t=new Date;t.setSeconds(t.getSeconds()-1e3);var e=this.getCookieString(0,t);document.cookie=e},getCookieString:function(t,e){return"STYLE_EDIT_PREVIEW_THEME=".concat(t,";expires=").concat(e,"; path=/")}}},Ec={name:"vueFrame",mixins:[Mc],props:{contentZoneList:Array,locales:Object,previewChanges:Boolean},render:function(t){return this.setThemeIdCookie(),t("iframe",{on:{load:this.triggerLoadFile}})},watch:{previewChanges:function(){this.togglePreviewChanges()}},methods:{togglePreviewChanges:function(){var t=this.$el.contentWindow||this.$el.contentDocument,e=t.document?t.document:t;this.previewChanges?(e.body.classList.add("style-edit-edit-mode-off"),e.body.classList.remove("style-edit-edit-mode-on")):(e.body.classList.add("style-edit-edit-mode-on"),e.body.classList.remove("style-edit-edit-mode-off"))},triggerLoadFile:function(){var t=this,e=this.$el.contentWindow||this.$el.contentDocument,n=e.document?e.document:e;e.addEventListener("beforeunload",function(){t.setThemeIdCookie(),t.$emit("activeLoading")});try{this.addStyleToiframe(n),this.iniPageSelectors(n),this.findContentZones(n),this.togglePreviewChanges()}finally{this.$emit("load"),this.scheduleThemeIdCookieRemoval()}},addStyleToiframe:function(t){var e=t.head||t.getElementsByTagName("head")[0],n=t.createElement("style");e.appendChild(n),n.type="text/css",n.styleSheet?n.styleSheet.cssText=oc:n.appendChild(t.createTextNode(oc))},initOverlayOpen:function(t){this.$emit("openOverlayForCategory",t)},iniPageSelectors:function(t){var e=this,n=this.$store.state.editor.selectedTheme,i=null;if(n&&n.config&&n.config.areas&&n.config.areas.categories&&(i=n.config.areas.categories),i)for(var o=function(n){var o=i[n].id,a=i[n].selector,s=i[n].title,r=t.querySelector(a);if(r){r.classList.add("editable-partial");var l=t.createElement("div");l.classList.add("edit-section-trigger"),l.innerHTML=s+'<a href="javascript:;"><i class="fa fa-pencil"></i></a>',r.appendChild(l),l.onclick=function(){this.initOverlayOpen(o)}.bind(e)}},a=0;a<i.length;a++)o(a)},findContentZones:function(t){for(var e=[],n=t.querySelectorAll(".gx-content-zone"),i=0;i<n.length;i++){var o=n[i].getAttribute("data-gx-content-zone");o&&e.push(o)}this.$emit("load-content-zones",e)},renderChildren:function(){var t=this;this.applications=[];var e=this.$el.contentWindow||this.$el.contentDocument,n=e.document?e.document:e;this.contentZoneList.length&&this.contentZoneList.forEach(function(e,o){var a=n.getElementById(e.id);if(a){var s=t,r=i["default"].extend(Ic),l=new r({i18n:g,store:yt,propsData:{locales:t.locales.contentZone,contentZone:e},mounted:function(){this.$on("handleOverlay",function(t,e){return s.$emit("handleOverlay",t,e)}),this.$on("goTo",function(t){return s.$emit("goTo",t)}),this.$on("toggleModal",function(t,e){return s.$emit("toggleModal",t,e)}),this.$on("handleIframe",function(t){return s.$emit("handleIframe",t)}),this.$on("closeOverlay",function(){return s.$emit("closeOverlay")})}});l.$mount(a)}})}}},zc=Ec,Bc=Object(Ut["a"])(zc,Ct,xt,!1,null,null,null),jc=Bc.exports,Dc=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-modal",{ref:"modal",attrs:{id:"confirmStyleChanges",title:"Save changes",size:"lg","no-fade":""},on:{ok:t.saveChanges},model:{value:t.made_changes,callback:function(e){t.made_changes=e},expression:"made_changes"}},[n("p",{staticStyle:{margin:"0"}},[t._v("\n    Do you want to save your changes before moving to another page?\n  ")]),n("p",{staticStyle:{margin:"0"}},[n("small",[t._v("Be aware you will loose all the changes you did!")])]),n("div",{staticClass:"container",attrs:{slot:"modal-footer"},slot:"modal-footer"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-6"},[n("b-button",{staticClass:"btn-block",attrs:{size:"md",variant:"link"},on:{click:t.dontSaveChanges}},[t._v("Continue without saving changes")])],1),n("div",{staticClass:"col-6"},[n("b-button",{staticClass:"btn-block",attrs:{size:"md",variant:"primary"},on:{click:t.saveChanges}},[t._v("Save")])],1)])])])},Vc=[],Pc={name:"SaveBeforeLeaveModal",props:{made_changes:Boolean},methods:{dontSaveChanges:function(){this.editor.changes_status=!1,this.editor.made_changes=!1,alert("going to front-end page")},saveChanges:function(){alert("Saving Changes..."),alert("going to front-end page"),this.editor.changes_status=!1,this.editor.made_changes=!1}}},Uc=Pc,Rc=Object(Ut["a"])(Uc,Dc,Vc,!1,null,null,null),Zc=Rc.exports,Ac=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-modal",{ref:"modal",attrs:{centered:"",id:"customStyleModal",size:"lg",title:t.$t("editor.customStylesheetsTitle")},on:{ok:t.handleSassCompile,show:t.reInitCodemirror}},[n("template",{slot:"modal-header-close"},[n("custom-icon",{attrs:{icon:"close"}})],1),n("form",{on:{submit:function(e){return e.stopPropagation(),e.preventDefault(),t.handleSassCompile(e)}}},[n("codemirror",{ref:"codemirror",attrs:{options:t.cmOptions},model:{value:t.custom_sass_code,callback:function(e){t.custom_sass_code=e},expression:"custom_sass_code"}})],1),n("div",{staticClass:"container",attrs:{slot:"modal-footer"},slot:"modal-footer"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-4"}),n("div",{staticClass:"col-8"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-6"},[n("b-button",{staticClass:"btn-block",attrs:{size:"md",variant:"link"},on:{click:function(e){return t.$refs["modal"].hide()}}},[t._v("\n              "+t._s(t.$t("editor.customScssModal.cancel"))+"\n            ")])],1),n("div",{staticClass:"col-6"},[n("b-button",{staticClass:"btn-block",attrs:{size:"md",variant:"primary"},on:{click:t.handleSassCompile}},[t._v("\n              "+t._s(t.$t("editor.customScssModal.confirm"))+"\n            ")])],1)])])])])],2)},Fc=[],Hc={created:function(){var t=new URLSearchParams(location.search);"1"===t.get("expertMode")&&this.setExpertMode(!0),t.get("customer_id")&&this.saveCurrentCustomerID(t.get("customer_id")),this.saveCurrentShopURL(m)},methods:{triggerSaveCurrentLanguage:function(t){this.$store.commit("editor/saveCurrentLanguage",t)},saveCurrentEditorView:function(t){this.$store.commit("editor/saveSelectedEditorView",t)},setExpertMode:function(t){this.$store.commit("editor/toggleExpertMode",t)},saveCurrentShopURL:function(t){this.$store.commit("editor/saveShopURL",t)},saveCurrentCustomerID:function(t){this.$store.commit("editor/saveCustomerID",t)},toggleIframeLoading:function(t){this.$store.commit("editor/toggleIframeLoading",t)},saveTempFolderData:function(t){this.$store.commit("editor/saveThemeTempFolder",t)},toggleExpertMode:function(){var t=Object(St["a"])(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$store.dispatch("editor/updateExpertMode");case 2:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}(),triggerSaveChanges:function(t){var e=this;this.$store.commit("editor/changeMadeChangesStatus",!0),this.$store.commit("editor/changeSaveBtnStatus",2),this.$store.dispatch("editor/saveTheme").then(function(n){e.$emit("saveThemeFinished",n.status),e.$store.commit("editor/changeSaveBtnStatus",3),e.deleteTheme(e.$store.state.editor.selectedTheme.id).then(function(){return e.$store.dispatch("editor/createPreviewTheme",e.$store.state.editor.sourceThemeId).then(function(){void 0!==t&&t()})})},function(t){return e.$store.commit("editor/changeSaveBtnStatus",1)})},alertInvalidThemeIdAndShowChooser:function(t){var e=this,n={params:{},successCallback:function(){return e.toggleChooser(!0)},showCancelButton:!1,locales:this.$t("chooser").invalidThemeModal};this.$emit("toggleModal",!0,n)},selectPreviewThemeFor:function(t){var e=this;this.$store.dispatch(et,t+"_preview").then(function(n){var i=n.data;try{e.$store.commit("editor/saveSelectedThemeData",i,t),e.$store.commit("editor/saveThemeConfig",{}),e.$store.commit("editor/saveSourceTheme",t)}finally{e.toggleChooser(!1)}})},reloadPreviewTheme:function(){var t=this,e=this.$store.state.editor.selectedTheme.id;this.$store.dispatch(et,e).then(function(n){var i=n.data;try{t.$store.commit("editor/saveSelectedThemeData",i,e)}finally{t.toggleChooser(!1)}})},decideWhatTodoWithExistentPreviewFor:function(t){var e=this,n={params:{themeId:t},successCallback:function(t){var n=t.themeId;e.deleteTheme(n+"_preview").then(function(){e.loadTheme(n)})},cancelCallback:function(){e.selectPreviewThemeFor(t)},confirmButtonVariant:"danger",hideCloseButton:!0,locales:this.$t("chooser").previewModal};this.$emit("toggleModal",!0,n)},existPreviewFor:function(t){for(var e=t+"_preview",n=0;n<this.$store.state.chooser.themes.length;n++)if(this.$store.state.chooser.themes[n].id===e)return!0;return!1},createPreviewTheme:function(t){var e=this;this.$store.dispatch("editor/createPreviewTheme",t).then(function(n){var i=n.data;i.id&&e.selectPreviewThemeFor(t)},function(n){var i=n.response;i&&(404==i.status&&e.alertInvalidThemeIdAndShowChooser(t),500==i.status&&100==i.data.code&&e.decideWhatTodoWithExistentPreviewFor(t),403===i.status&&e.show403Modal(i))}).catch(function(t){t.response&&404==t.response.status&&e.$bvToast.toast("HTTP ".concat(t.response.status," - ").concat(t.response.data.message||t.response.statusText),{title:"An error has occurred",autoHideDelay:5e3,appendToast:!0,variant:"danger"})})},loadTheme:function(){var t=Object(St["a"])(regeneratorRuntime.mark(function t(e){var n,i,o=this;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return this.existPreviewFor(e)?this.deleteTheme(e+"_preview").then(function(){o.loadTheme(e)}):this.createPreviewTheme(e),t.prev=1,t.next=4,this.$store.dispatch(ct,e);case 4:n=t.sent,i=n.data,i.length&&(this.$store.state.editor.additionalFonts=i),t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](1),console.log("failed to load widgets",t.t0);case 12:case"end":return t.stop()}},t,this,[[1,9]])}));function e(e){return t.apply(this,arguments)}return e}(),loadAvailableWidgets:function(){var t=Object(St["a"])(regeneratorRuntime.mark(function t(){var e,n;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.$store.dispatch(lt);case 3:return e=t.sent,n=e.data,t.abrupt("return",n);case 8:t.prev=8,t.t0=t["catch"](0),console.log("failed to load widgets",t.t0);case 11:case"end":return t.stop()}},t,this,[[0,8]])}));function e(){return t.apply(this,arguments)}return e}(),requestContentZones:function(){var t=Object(St["a"])(regeneratorRuntime.mark(function t(e){var n,i;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.$store.dispatch(dt,e);case 3:return n=t.sent,i=n.data,t.abrupt("return",i);case 8:t.prev=8,t.t0=t["catch"](0),console.log("failed to load content zones",t.t0);case 11:case"end":return t.stop()}},t,this,[[0,8]])}));function e(e){return t.apply(this,arguments)}return e}(),loadCustomScss:function(){var t=Object(St["a"])(regeneratorRuntime.mark(function t(e){var n,i;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.$store.dispatch(ut,e);case 3:return n=t.sent,i=n.data,t.abrupt("return",i);case 8:t.prev=8,t.t0=t["catch"](0),console.log("failed to fetch custom scss",t.t0);case 11:case"end":return t.stop()}},t,this,[[0,8]])}));function e(e){return t.apply(this,arguments)}return e}(),show403Modal:function(t){var e={params:{error:t},successCallback:function(){var t=window.location,e=t.protocol,n=t.hostname;location.href="".concat(e,"//").concat(n)},showCancelButton:!1,locales:this.$t("editor").forbiddenModal};this.$emit("toggleModal",!0,e)}}},Wc=(n("7b00"),n("1b63"),{name:"CustomScssModal",mixins:[Hc],components:{CustomIcon:so},props:{openModal:Boolean},data:function(){return{custom_sass_code:"",cmOptions:{tabSize:4,mode:"sass",matchBrackets:!0,theme:"duotone-light",lineNumbers:!0,line:!0}}},computed:{codemirror:function(){return this.$refs.codemirror.codemirror}},methods:{reInitCodemirror:function(){var t=this;this.custom_sass_code="",this.$nextTick(Object(St["a"])(regeneratorRuntime.mark(function e(){var n,i;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.$store.state.editor.selectedTheme.config||null,i=n.styles,i){e.next=5;break}return e.next=4,t.getContent();case 4:i=e.sent;case 5:void 0!==i.options&&i.options.map(function(e){return t.custom_sass_code+="".concat(e.value.trim(),"\n")}),setTimeout(function(){return t.codemirror.refresh()},10);case 7:case"end":return e.stop()}},e)})))},handleSassCompile:function(){var t=this;this.$nextTick(Object(St["a"])(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("editor/saveEditorChanges",Object(Ot["a"])({},"custom-scss-css-style",{type:"code-editor",group:"custom",value:t.custom_sass_code}));case 2:t.$refs.modal.hide(),t.$emit("handleIframe","compile");case 4:case"end":return e.stop()}},e)})))},getContent:function(){var t=Object(St["a"])(regeneratorRuntime.mark(function t(){var e;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return e=this.$store.state.editor.selectedTheme.id,t.next=3,this.loadCustomScss(e);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}()}}),Gc=Wc,Nc=Object(Ut["a"])(Gc,Ac,Fc,!1,null,null,null),qc=Nc.exports,Xc=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-modal",{ref:"importSettingsModal",attrs:{"no-close-on-backdrop":!0,visible:t.show,centered:"",id:"importSettingsModal","no-fade":"",size:"lg"},on:{hidden:function(e){return t.$emit("cancel")}}},[n("template",{slot:"modal-title"},[n("span",[t._v(t._s(t.$t("editor.importModal.title")))])]),t.loading?t._e():n("template",{slot:"modal-header-close"},[n("custom-icon",{attrs:{icon:"close"}})],1),n("div",{staticClass:"form-group row"},[n("label",{staticClass:"col-form-label col-md-2"},[t._v(t._s(t.$t("editor.importModal.label"))+":")]),n("div",{staticClass:"col-md-10"},[n("b-form-select",{ref:"dropdownSelect",staticClass:"dropdown-select",class:{"has-error":t.hasError},attrs:{id:"template-list"},model:{value:t.selectedOption,callback:function(e){t.selectedOption=e},expression:"selectedOption"}},t._l(t.options,function(e,i){return n("optgroup",{key:i,attrs:{label:e.name}},[t._l(e.items,function(i,o){return e.items.length?n("option",{key:o,domProps:{value:i}},[t._v("\n                        "+t._s(t.getOptionItemInnerText(i))+"\n                    ")]):t._e()}),e.items.length?t._e():n("option",{key:"none",attrs:{disabled:""}},[t._v("--")])],2)}),0),t.hasError?n("div",{staticClass:"help-block text-danger"},[t._v("\n                "+t._s(t.$t("editor.importModal.required.templateList"))+"\n            ")]):t._e()],1)]),n("div",{attrs:{slot:"modal-footer"},slot:"modal-footer"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-6"},[n("b-button",{staticClass:"btn-block",attrs:{disabled:t.loading,size:"md",variant:"default"},domProps:{innerHTML:t._s(t.$t("editor.importModal.cancel"))},on:{click:function(e){return t.$emit("cancel")}}})],1),n("div",{staticClass:"col-md-6"},[n("b-button",{staticClass:"btn-block",attrs:{disabled:t.loading,size:"md",variant:"success"},domProps:{innerHTML:t._s(t.$t("editor.importModal.confirm"))},on:{click:t.handleImportSettings}})],1)])])],2)},Jc=[],Kc={name:"CustomBodyModal",components:{CustomIcon:so},mixins:[Hc],props:{show:Boolean},data:function(){return{options:{template:{name:this.$t("editor.importModal.options.template"),items:[]},theme:{name:this.$t("editor.importModal.options.theme"),items:[]}},selectedOption:null,loading:!1,hasError:!1}},watch:{show:function(){this.show&&(this.getTemplatesList(),this.getThemesList()),this.show||this.resetFields()},selectedOption:function(){this.hasError=!1}},methods:{getTemplatesList:function(){var t=this,e=this.$store.state.editor.selectedTheme.id;f.a.get(Z(e),{handleError:!0}).then(function(e){var n=e.data;200===e.status&&n.length&&n.map(function(e){t.options[e.type.toLowerCase()].items.push({id:e.path,value:e.path,name:e.name,style:e.style||"",status:e.isActive||!1,type:e.type.toLowerCase()})})})},getThemesList:function(){var t=this,e=this.$store.state.chooser.themes,n=this.$store.state.editor.sourceThemeId,i=!1;e.forEach(function(e){i=e.id==n,i||e.preview||t.options["theme"].items.push({id:e.id,value:e.id,name:e.title,style:e.style||"",status:i,type:"theme"})})},handleImportSettings:function(){var t=Object(St["a"])(regeneratorRuntime.mark(function t(){var e,n,i=this;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(this.hasError=!1,this.selectedOption){t.next=4;break}return this.hasError=!0,t.abrupt("return");case 4:return this.loading=!0,t.prev=5,t.next=8,this.getTemplateThemeSettings(this.selectedOption);case 8:e=t.sent,n=this.parseThemeSettings(e.data),this.$store.dispatch("editor/saveEditorChanges",n).then(function(t){i.loading=!1,i.resetFields(),i.$emit("cancel"),i.$emit("handleIframe","reload"),i.reloadPreviewTheme()}),t.next=18;break;case 13:t.prev=13,t.t0=t["catch"](5),this.loading=!1,this.resetFields(),this.$emit("cancel");case 18:case"end":return t.stop()}},t,this,[[5,13]])}));function e(){return t.apply(this,arguments)}return e}(),getTemplateThemeSettings:function(t){var e=t.id;return"template"===t.type?f.a.post(A(e),{path:t.value},{handleError:!0}):f.a.get(F(e),{handleError:!0})},parseThemeSettings:function(t){var e={};return t.length&&t.reduce(function(t,e){return t[e.name]=Object(X["a"])({},e),delete t[e.name].name,t},e),e},resetFields:function(){var t=this;this.hasError=!1,this.selectedOption=null,tt()(this.options).forEach(function(e){return t.options[e].items=[]})},getOptionItemInnerText:function(t){var e=t.style?"".concat(t.name,": ").concat(t.style):t.name;return"".concat(e," (").concat(t.status?this.$t("common.active"):this.$t("common.inactive"),")")}}},Yc=Kc,Qc=(n("fa2f"),Object(Ut["a"])(Yc,Xc,Jc,!1,null,"f1781a14",null)),td=Qc.exports,ed=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"expert-preview-bar-option",class:t.expertmode?"option-on":""},[n("b-form-checkbox",{attrs:{switch:""},on:{change:function(e){return t.$emit("trigger-expertmode")}},model:{value:t.expertmode,callback:function(e){t.expertmode=e},expression:"expertmode"}},[t._v("\n    "+t._s(t.locales.expertModeTitle)+"\n  ")])],1)},nd=[],id={name:"ExpertModeBar",props:{expertmode:Boolean,locales:Object}},od=id,ad=(n("ad15"),Object(Ut["a"])(od,ed,nd,!1,null,"40627727",null)),sd=ad.exports,rd=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"expert-preview-bar-option",class:t.preview?"option-on":""},[n("b-form-checkbox",{attrs:{switch:"",disabled:"desktop"!=t.$store.state.editor.editorView},on:{change:function(e){return t.$emit("trigger-preview-changes")}},model:{value:t.preview,callback:function(e){t.preview=e},expression:"preview"}},[t._v("\n    "+t._s(t.locales.previewModeTitle)+"\n  ")])],1)},ld=[],cd={name:"PreviewChangesBar",props:{preview:Boolean,locales:Object}},dd=cd,ud=(n("3a62"),Object(Ut["a"])(dd,rd,ld,!1,null,"62fc31ca",null)),hd=ud.exports,md=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"editor-responsive-resolution",attrs:{id:"resolution-bar-container"}},[n("ul",{staticClass:"responsive-buttons"},[n("li",{staticClass:"responsive-option",class:{"active-preview":"desktop"==t.$store.state.editor.editorView}},[n("b-button",{staticClass:"responsive-button",attrs:{variant:"link",title:"Desktop",size:"sm"},on:{click:function(e){return t.changeView(e,"desktop")}}},[n("custom-icon",{attrs:{icon:"desktop"}})],1)],1),n("li",{staticClass:"responsive-option",class:{"active-preview":"tablet-landscape"==t.$store.state.editor.editorView}},[n("b-button",{staticClass:"responsive-button",attrs:{variant:"link",title:"Tablet Landscape",size:"sm"},on:{click:function(e){return t.changeView(e,"tablet-landscape")}}},[n("custom-icon",{attrs:{icon:"landscape"}})],1)],1),n("li",{staticClass:"responsive-option",class:{"active-preview":"tablet-portrait"==t.$store.state.editor.editorView}},[n("b-button",{staticClass:"responsive-button",attrs:{variant:"link",title:"Tablet Portrait",size:"sm"},on:{click:function(e){return t.changeView(e,"tablet-portrait")}}},[n("custom-icon",{attrs:{icon:"portrait"}})],1)],1),n("li",{staticClass:"responsive-option",class:{"active-preview":"smartphone"==t.$store.state.editor.editorView}},[n("b-button",{staticClass:"responsive-button",attrs:{variant:"link",title:"Smartphone",size:"sm"},on:{click:function(e){return t.changeView(e,"smartphone")}}},[n("custom-icon",{attrs:{icon:"smartphone"}})],1)],1)]),n("div",{staticClass:"editor-size"},[n("span",[t._v(t._s(t.size.width))]),n("span",{staticClass:"x"},[t._v("x")]),n("span",[t._v(t._s(t.size.height))]),n("strong",[t._v("px")])])])},gd=[],vd={name:"ResolutionBar",components:{CustomIcon:so},props:{size:Object},methods:{changeView:function(t,e){var n=document.getElementById("editor");n.classList.add("preview-mode-on"),n.classList.remove("desktop","tablet-portrait","tablet-landscape","smartphone"),n.classList.add(e),this.$emit("triggerWindowResize",t,e)}}},pd=vd,fd=(n("532d"),Object(Ut["a"])(pd,md,gd,!1,null,"42a6eb98",null)),bd=fd.exports,wd={props:{expertmode:Boolean,availableDragableWidgets:Array,availableContentZones:Array,locales:Object},mixins:[Mc],components:{ImportSettingsModal:td,SaveBeforeLeaveModal:Zc,CustomScssModal:qc,ExpertModeBar:sd,PreviewChangesBar:hd,vueFrame:jc,ResolutionBar:bd,gridSection:We,draggable:Ve.a,CustomIcon:so,Fieldset:wl,DynamicOverlay:zl,Overlay:Wl,Popup:Kl,Handler:Ll,Block:ic,Loading:Ws},computed:{dragableWidgets:function(){if(this.availableDragableWidgets&&0!=this.availableDragableWidgets.length)return this.availableDragableWidgets},initContentZones:function(){return this.availableContentZones},codemirror:function(){return this.$refs.codemirror.codemirror},themeConfig:function(){return this.$store.state.editor.selectedTheme.config.basics.fieldsets[0]},existsContentZones:function(){return this.containsContentZones},saveButtonStatus:function(){return 3===this.$store.state.editor.saveBtnStatus&&this.resetButtonStatus(),this.$store.state.editor.saveBtnStatus}},data:function(){return{language:"de",contentZoneCreationCount:0,editor:{preview:!1,tabIndex:0,size:{width:"",height:""},custom_style:{show:!1},made_changes:!1,changes_status:!1,overlay:{visible:!1,data:{}},contentZoneOverlay:{visible:!1,data:[]},contentZoneModal:{visible:!1,data:[]}},showThemeChooser:!1,selectedPage:null,containsContentZones:!1,homeIcon:"",homeIconAnimation:"animated wobble three",showModal:!1,modalData:null,showImportSettingsModal:!1}},methods:{redirectIFrame:function(t){var e=this.$refs.shopIframe.$el;e.src=t},modifyDragItem:function(t){t.setData("text/html",null)},saveBtnLabel:function(){var t;switch(this.saveButtonStatus){case 2:t=this.$t("editor.buttons.saving");break;case 3:t=this.$t("editor.buttons.saved"),this.$store.commit("editor/changeMadeChangesStatus",!1);break;default:t=this.$t("editor.buttons.save")}return t},goTo:function(t){"widgetTab"==t&&(this.closeAllOverlays(),this.editor.tabIndex=2)},cloneDog:function(t){var e=JSON.parse(Et()(t)),n=this.findId(e);return n&&(n.value=t.id+Math.random().toString(36).substr(2,9),e.type=t.id),e},findId:function(t){var e=null;return t.fieldsets.forEach(function(t){t.options.forEach(function(t){"id"===t.id&&(e=t)})}),e},log:function(t){window.console.log(t)},load:function(){this.$emit("loadAvailableWidgets"),this.$emit("toggle-iframeLoading",!1)},activeLoading:function(){this.$emit("toggle-iframeLoading",!0)},updateContentZones:function(){this.$refs.shopIframe.renderChildren()},requestContentZones:function(t){this.containsContentZones=!!t.length,t.length>0&&this.$emit("load-content-zones",t)},onOverlayChange:function(t){this.editor.overlay.data=t,this.editor.overlay.visible=!0},closeAllOverlays:function(){this.editor.overlay.visible&&(this.editor.overlay.visible=!1,this.editor.overlay.data={},this.$store.commit("editor/reArrangeBreadcrumb",{action:"clear"})),this.editor.contentZoneOverlay.visible&&(this.editor.contentZoneOverlay.visible=!1,this.editor.contentZoneOverlay.data=[])},handleContentZoneCreation:function(){this.contentZoneCreationCount++,this.contentZoneCreationCount>=this.initContentZones.length&&(this.contentZoneCreationCount=0,this.$refs.shopIframe.renderChildren())},handleOverlay:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.editor.overlay.visible=e,this.editor.overlay.data=t},handleContentZoneOverlay:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t.length&&t[0].location||null;"modal"!==n?(this.editor.contentZoneOverlay.visible=e,this.editor.contentZoneOverlay.data=t):(this.editor.contentZoneModal.visible=e,this.editor.contentZoneModal.data=t),this.editor.overlay.visible=!1,this.editor.overlay.data={},this.$store.commit("editor/reArrangeBreadcrumb",{action:"clear"})},findThemeJsonBlock:function(t,e){for(var n,i=t,o=i.length,a=0;a<o;a++){var s=i[a]["id"];s==e?n=i[a]:i[a].categories&&this.findThemeJsonBlock(i[a].categories,e)}n&&this.addDataToOverlay(n)},reSendDataToOverlay:function(t){this.findThemeJsonBlock(this.$store.state.editor.selectedTheme.config.areas.categories,t)},addDataToOverlay:function(t){this.editor.overlay.data=t},togglePreviewChangesOpt:function(){this.editor.preview=!this.editor.preview,this.closeAllOverlays()},toggleExpertModeOpt:function(){if(this.$emit("toggle-expertmode"),this.editor.overlay.visible)if(this.editor.overlay.data.basic){var t=this.$store.state.editor.breadcrumb.current;this.$store.commit("editor/reArrangeBreadcrumb",{action:"clear"}),this.editor.overlay.data={};var e=document.querySelectorAll('[data-menu-item="'+t+'"]');if(e.length){var n=!0,i=!1,o=void 0;try{for(var a,s=It()(e);!(n=(a=s.next()).done);n=!0){var r=a.value;r.click()}}catch(l){i=!0,o=l}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}}}else this.editor.overlay.visible=!1,this.editor.overlay.data={},this.$store.commit("editor/reArrangeBreadcrumb",{action:"clear"})},openOverlayForCategory:function(t){this.$store.commit("editor/reArrangeBreadcrumb",{action:"clear"}),this.editor.overlay.data={};var e=document.querySelectorAll('[data-menu-item="'+t+'"]');if(e.length){var n=!0,i=!1,o=void 0;try{for(var a,s=It()(e);!(n=(a=s.next()).done);n=!0){var r=a.value;r.click()}}catch(l){i=!0,o=l}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}}},save:function(){var t=this;this.initContentZones.forEach(function(t){this.$store.commit("editor/saveThemeOption",Object(Ot["a"])({},t.id,t))}.bind(this)),this.$emit("saveEditorChanges",function(){return t.reloadIframe()})},handleEditorResize:function(t,e){var n=document.getElementById("editor"),i=n.querySelectorAll(".editor-wrapper"),o=i[0].clientHeight,a=i[0].clientWidth;this.editor.size.height=o,this.editor.size.width=a,e&&("desktop"!=e&&(this.editor.preview=!0),this.$emit("saveEditorViewPort",e))},exitEditor:function(){if(this.editor.changes_status)this.editor.made_changes=!0;else{this.editor.made_changes=!1;var t=new URLSearchParams(location.search),e=t.get("url")||!1;!1!==e&&(window.location.href=e)}},toggleModal:function(t,e){this.$emit("toggleModal",t,e)},handleIframe:function(t){"compile"===t?this.reloadCssFile():"reload"===t&&this.reloadIframe()},reloadCssFile:function(){var t=this,e=this.$refs.shopIframe.$el;if(e){var n=e.contentWindow.document.head.getElementsByTagName("LINK"),i=[].slice.call(n).filter(function(t){return"stylesheet"===t.rel&&t.href.indexOf("dynamic_theme_style")>=0});if(i.length){var o=i[0],a=(new Date).getTime(),s=new URLSearchParams(o.href);s.has("timestamp")?s.set("timestamp",a):s.append("timestamp",a);var r=e.contentWindow.document.createElement("link");return r.type="text/css",r.rel="stylesheet",r.href=unescape(s.toString()),this.setThemeIdCookie(),r.addEventListener("load",function(){t.removeStyleLoading(i)}),r.addEventListener("error",function(){t.removeStyleLoading(i)}),this.$emit("toggle-iframeLoading",!0),e.contentWindow.document.head.append(r),!0}this.reloadIframe()}},removeStyleLoading:function(t){this.$emit("toggle-iframeLoading",!1),t.forEach(function(t){return t.remove()}),this.scheduleThemeIdCookieRemoval()},reloadIframe:function(){this.$emit("toggle-iframeLoading",!0);var t=this.$refs.shopIframe.$el;t.src=t.contentDocument.location.href},openImportSettingsModal:function(){this.showImportSettingsModal=!0},resetButtonStatus:function(){var t=this;setTimeout(function(){return t.$store.commit("editor/changeSaveBtnStatus",1)},2e3)}},created:function(){window.addEventListener("resize",this.handleEditorResize)},destroyed:function(){window.removeEventListener("resize",this.handleResize)},mounted:function(){var t=this;this.containsContentZones=this.availableContentZones.length<=0,this.handleEditorResize();var e=this.$refs.shopIframe.$el;e.addEventListener("load",function(e){var n;try{n=new URL(e.target.contentWindow.location.href)}catch(o){t.homeIcon=t.homeIconAnimation,t.closeAllOverlays()}if(n){var i=new URL(t.$store.state.editor.shopURL);n.hostname===i.hostname?t.homeIcon="":(t.homeIcon=t.homeIconAnimation,t.closeAllOverlays())}})}},Cd=wd,xd=(n("58d3"),Object(Ut["a"])(Cd,_t,Tt,!1,null,null,null)),yd=xd.exports,kd=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],attrs:{id:"wrapper"}},[n("div",{staticClass:"container"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[!0===t.showCloseIcon()?n("b-button",{attrs:{id:"close",variant:"link"},on:{click:t.handleCloseAction}},[n("custom-icon",{attrs:{icon:"close"}}),t._v("\n                    "+t._s(t.locales.close)+"\n                ")],1):t._e()],1)]),n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[n("h1",{attrs:{id:"title"}},[t._v(t._s(t.locales.heading))])])]),n("div",{staticClass:"row no-gutters"},[t._l(t.themes,function(e){return 0==(e.preview||!1)?n("theme-item",{key:e.id,attrs:{active:e.active,author:e.author,editable:e.editable,id:e.id,locales:t.locales.item,removable:e.removable,thumbnail:e.thumbnail,title:e.title},on:{activate:function(n){return t.$emit("activate",e.id)},delete:function(n){return t.deleteThemeAction(e.id)},download:function(n){return t.$emit("download",e.id)},duplicate:function(n){return t.$emit("duplicate",e)},edit:function(n){return t.openThemeToEdit(e.id)}}}):t._e()}),n("theme-placeholder",{attrs:{locales:t.locales.placeholder,"upload-status":t.themeUploadStatus},on:{reset:function(e){return t.$emit("reset-placeholder")},upload:function(e){return t.$emit("upload",e)}}})],2)])])},$d=[],Sd=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"col-sm-4"},[n("div",{staticClass:"item",class:{active:t.active,"invalid-theme":!t.editable}},[n("img",{staticClass:"thumbnail",attrs:{src:t.thumbnail,alt:t.title+" - "+t.author}}),t.editable?t._e():n("div",{staticClass:"invalid-theme-label"},[t._v("\n      "+t._s(t.locales.invalidTheme)+"\n    ")]),n("div",{staticClass:"meta"},[n("h3",{staticClass:"name"},[t._v("\n        "+t._s(t.title)+"\n        "),n("span",{staticClass:"author"},[t._v(t._s(t.author))])]),n("item-dropdown",{attrs:{active:t.active,removable:t.removable,locales:t.locales.dropdown},on:{activate:function(e){return t.toggleActivateModal(!0)},edit:function(e){return t.$emit("edit")},delete:function(e){return t.toggleDeleteModal(!0)},duplicate:function(e){return t.$emit("duplicate")},download:function(e){return t.$emit("download")}}})],1)]),n("item-activate-modal",{attrs:{show:t.showActivateModal,title:t.title,locales:t.locales.activateModal},on:{confirm:function(e){return t.onActivateModalConfirm()},cancel:function(e){return t.toggleActivateModal(!1)}}}),n("item-delete-modal",{attrs:{show:t.showDeleteModal,title:t.title,locales:t.locales.deleteModal},on:{confirm:function(e){return t.onDeleteModalConfirm()},cancel:function(e){return t.toggleDeleteModal(!1)}}})],1)},_d=[],Td=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-dropdown",{attrs:{size:"sm",split:"",right:"",text:t.active?t.locales.edit:t.locales.activate,variant:"primary"},on:{click:function(e){t.active?t.$emit("edit"):t.$emit("activate")}}},[t.active?t._e():n("b-dropdown-item",{on:{click:function(e){return t.$emit("edit")}}},[t._v(t._s(t.locales.edit))]),n("b-dropdown-item",{on:{click:function(e){return t.$emit("duplicate")}}},[t._v(t._s(t.locales.duplicate))]),n("b-dropdown-item",{staticStyle:{display:"none"},on:{click:function(e){return t.$emit("download")}}},[t._v(t._s(t.locales.download))]),t.removable?n("b-dropdown-item",{on:{click:function(e){return t.$emit("delete")}}},[t._v(t._s(t.locales.delete))]):t._e()],1)},Od=[],Ld={props:{active:Boolean,removable:Boolean,locales:Object}},Id=Ld,Md=Object(Ut["a"])(Id,Td,Od,!1,null,null,null),Ed=Md.exports,zd=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-modal",{attrs:{visible:t.show,size:"lg",centered:"","no-fade":""},on:{ok:function(e){return t.$emit("confirm")},hidden:function(e){return t.$emit("cancel")}}},[n("template",{slot:"modal-title"},[n("span",{domProps:{innerHTML:t._s(t.modalTitle)}})]),n("p",{staticClass:"no-margin"},[t._v(t._s(t.locales.firstLine))]),n("p",{staticClass:"no-margin"},[n("small",[t._v(t._s(t.locales.secondLine))])]),n("div",{staticClass:"container",attrs:{slot:"modal-footer"},slot:"modal-footer"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-6"},[n("b-button",{staticClass:"btn-block",attrs:{size:"md",variant:"link"},on:{click:function(e){return t.$emit("cancel")}}},[t._v(t._s(t.locales.cancel))])],1),n("div",{staticClass:"col-6"},[n("b-button",{staticClass:"btn-block",attrs:{size:"md",variant:"primary"},on:{click:function(e){return t.$emit("confirm")}}},[t._v(t._s(t.locales.confirm))])],1)])])],2)},Bd=[],jd={props:{title:String,show:Boolean,locales:Object},computed:{modalTitle:function(){return this.locales.title.replace("{title}",this.title)}}},Dd=jd,Vd=(n("6f00"),Object(Ut["a"])(Dd,zd,Bd,!1,null,null,null)),Pd=Vd.exports,Ud=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-modal",{attrs:{visible:t.show,size:"lg",centered:"","no-fade":""},on:{ok:function(e){return t.$emit("confirm")},hidden:function(e){return t.$emit("cancel")}}},[n("template",{slot:"modal-title"},[n("span",{domProps:{innerHTML:t._s(t.modalTitle)}})]),n("p",{staticClass:"no-margin"},[t._v(t._s(t.locales.firstLine))]),n("p",{staticClass:"no-margin"},[n("small",[t._v(t._s(t.locales.secondLine))])]),n("div",{staticClass:"container",attrs:{slot:"modal-footer"},slot:"modal-footer"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-6"},[n("b-button",{staticClass:"btn-block",attrs:{size:"md",variant:"link"},on:{click:function(e){return t.$emit("cancel")}}},[t._v(t._s(t.locales.cancel))])],1),n("div",{staticClass:"col-6"},[n("b-button",{staticClass:"btn-block",attrs:{size:"md",variant:"danger"},on:{click:function(e){return t.$emit("confirm")}}},[t._v(t._s(t.locales.confirm))])],1)])])],2)},Rd=[],Zd={props:{title:String,show:Boolean,locales:Object},computed:{modalTitle:function(){return this.locales.title.replace("{title}",this.title)}}},Ad=Zd,Fd=(n("6302"),Object(Ut["a"])(Ad,Ud,Rd,!1,null,null,null)),Hd=Fd.exports,Wd={components:{ItemDropdown:Ed,CustomIcon:so,ItemActivateModal:Pd,ItemDeleteModal:Hd},props:{id:String,title:String,author:String,thumbnail:String,active:Boolean,editable:Boolean,removable:Boolean,locales:Object},data:function(){return{showActivateModal:!1,showDeleteModal:!1}},methods:{toggleActivateModal:function(t){this.showActivateModal=t},toggleDeleteModal:function(t){this.showDeleteModal=t},onActivateModalConfirm:function(){this.$emit("activate",this.id),this.toggleActivateModal(!1)},onDeleteModalConfirm:function(){this.$emit("delete",this.id),this.toggleDeleteModal(!1)}}},Gd=Wd,Nd=(n("07b4"),Object(Ut["a"])(Gd,Sd,_d,!1,null,null,null)),qd=Nd.exports,Xd=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"col-sm-4"},[n("div",{staticClass:"add-new-theme"},[n("div",{staticClass:"new-theme-placeholder",class:t.placeholderClass},[t.isSaving?t._e():n("form",{attrs:{enctype:"multipart/form-data",novalidate:""}},[n("input",{staticClass:"theme-upload-input",attrs:{type:"file",id:"upload-theme",name:"file",disabled:t.isSaving,accept:"application/zip"},on:{change:function(e){return t.onFileChange(e)}}})]),n("a",{staticClass:"plus-icon",attrs:{href:t.appStoreUrl,target:"_blank"}},[n("custom-icon",{attrs:{icon:"add"}})],1),n("a",{staticClass:"themes-store-link",attrs:{href:t.appStoreUrl,target:"_blank"}},[t._v("\n        "+t._s(t.locales.appStore)+"\n        "),n("br"),t._v("\n        "+t._s(t.locales.or)+"\n        "),n("label",{attrs:{for:"upload-theme"}},[t._v(t._s(t.locales.upload))])])])])])},Jd=[],Kd={components:{CustomIcon:so},props:{uploadStatus:Number,locales:Object},computed:{placeholderClass:function(){return{"upload-uploading":this.isSaving,"upload-failed":this.isFailed,"upload-success":this.isSuccess}},appStoreUrl:function(){var t=new URLSearchParams(location.search),e=t.get("url")||!1;return!1===e?"//gambio.de":("/"!==e.substr(-1)&&(e+="/"),e+"admin/admin.php?do=AppStore")},isInitial:function(){return this.uploadStatus===b},isSaving:function(){return this.uploadStatus===w},isSuccess:function(){return this.uploadStatus===C},isFailed:function(){return this.uploadStatus===x}},methods:{onFileChange:function(t){var e=t.target,n=e.name,i=e.files;if(i.length){var o=new FormData,a=Object(J["a"])(i,1),s=a[0];o.append(n,s,s.name),this.$emit("upload",o)}}}},Yd=Kd,Qd=(n("bb8c"),Object(Ut["a"])(Yd,Xd,Jd,!1,null,"2cc8cc2a",null)),tu=Qd.exports,eu={components:{ThemeItem:qd,ThemePlaceholder:tu,CustomIcon:so},props:{show:Boolean,themeUploadStatus:Number,themes:Array,locales:Object},data:function(){return{needRedirection:!1}},created:function(){this.$emit("fetch")},methods:{handleCloseAction:function(){if(this.needRedirection){var t=this.$store.state.chooser.themes.filter(function(t){return t.active||!1});if(t.length){t=t.shift();var e=new URLSearchParams(location.search);e.set("editing",t.id),window.location.href="?"+unescape(e.toString())}else this.$emit("hide")}else this.$emit("hide")},deleteThemeAction:function(t){var e=this.$store.state.editor.sourceThemeId;e===t&&(this.$store.commit("editor/changeMadeChangesStatus",!1),this.needRedirection=!0),this.$emit("delete",t)},showCloseIcon:function(){var t=new URLSearchParams(location.search);return"1"!==t.get("welcome")},openThemeToEdit:function(t){var e=new URLSearchParams(location.search);e.set("editing",t),e.delete("welcome");var n="?"+unescape(e.toString());window.location.href=n}}},nu=eu,iu=(n("4369"),Object(Ut["a"])(nu,kd,$d,!1,null,"f3d5d0ec",null)),ou=iu.exports,au=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-modal",{ref:"editorModal",attrs:{visible:t.show,"hide-header-close":t.closeButtonVisible,centered:"","no-fade":"",size:"lg"},on:{hidden:function(e){return t.$emit("cancel")}}},[n("template",{slot:"modal-title"},[n("span",{domProps:{innerHTML:t._s(t.modalTitle)}})]),n("template",{slot:"modal-header-close"},[n("custom-icon",{attrs:{icon:"close"}})],1),n("p",{staticClass:"no-margin",domProps:{innerHTML:t._s(t.modalFirstLine)}}),n("p",{staticClass:"no-margin"},[n("small",{domProps:{innerHTML:t._s(t.modalSecondLine)}})]),n("div",{attrs:{slot:"modal-footer"},slot:"modal-footer"},[n("div",{staticClass:"row"},[t.cancelButtonShown?n("div",{staticClass:"col-md-6"},[n("b-button",{staticClass:"btn-block",attrs:{size:"md",variant:t.cancelButtonColorModal},domProps:{innerHTML:t._s(t.cancelButtonText)},on:{click:function(e){return t.$emit("cancel")}}})],1):t._e(),n("div",{class:t.getButtonCss()},[n("b-button",{staticClass:"btn-block",attrs:{size:"md",variant:t.confirmBtnColorModal},domProps:{innerHTML:t._s(t.confirmButtonText)},on:{click:function(e){return t.$emit("confirm")}}})],1)])])],2)},su=[],ru={components:{CustomIcon:so},props:{title:String,show:Boolean,locales:Object,confirmButtonVariant:String,cancelButtonColor:String,showCancelButton:Boolean,hideCloseButton:Boolean},computed:{modalTitle:function(){return this.locales?this.locales.title.replace("{title}",this.title):this.title},modalFirstLine:function(){return this.locales?this.locales.firstLine:""},modalSecondLine:function(){return this.locales?this.locales.secondLine:""},cancelButtonText:function(){return this.locales?this.locales.cancel:""},confirmButtonText:function(){return this.locales?this.locales.confirm:""},confirmBtnColorModal:function(){return this.confirmButtonVariant||"danger"},cancelButtonColorModal:function(){return this.cancelButtonColor||"link"},cancelButtonShown:function(){return this.showCancelButton},closeButtonVisible:function(){return this.hideCloseButton}},methods:{getButtonCss:function(){return this.cancelButtonShown?"col-md-6":"col-md-12"}}},lu=ru,cu=(n("cd77"),Object(Ut["a"])(lu,au,su,!1,null,null,null)),du=cu.exports,uu="chooser/toggle",hu="chooser/setThemes",mu="chooser/setThemeUploadStatus",gu={created:function(){var t=new URLSearchParams(location.search);"1"===t.get("welcome")&&this.toggleChooser(!0)},methods:{toggleChooser:function(t){this.$store.state.editor.selectedTheme?this.$store.commit(uu,t):this.$store.commit(uu,!0)},fetchThemes:function(){var t=Object(St["a"])(regeneratorRuntime.mark(function t(){var e,n;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$store.dispatch(nt);case 2:e=t.sent,n=e.data,this.$store.commit(hu,n);case 5:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}(),activateTheme:function(){var t=Object(St["a"])(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$store.dispatch(it,e);case 2:return t.next=4,this.fetchThemes();case 4:case"end":return t.stop()}},t,this)}));function e(e){return t.apply(this,arguments)}return e}(),deleteTheme:function(){var t=Object(St["a"])(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$store.dispatch(ot,e);case 2:return t.next=4,this.fetchThemes();case 4:case"end":return t.stop()}},t,this)}));function e(e){return t.apply(this,arguments)}return e}(),duplicateTheme:function(){var t=Object(St["a"])(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$store.dispatch(at,e);case 2:return t.next=4,this.fetchThemes();case 4:case"end":return t.stop()}},t,this)}));function e(e){return t.apply(this,arguments)}return e}(),downloadTheme:function(t){this.$store.dispatch(st,t)},uploadTheme:function(){var t=Object(St["a"])(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return this.$store.commit(mu,w),t.prev=1,t.next=4,this.$store.dispatch(rt,e);case 4:this.$store.commit(mu,C),this.fetchThemes(),t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](1),this.$store.commit(mu,x);case 11:case"end":return t.stop()}},t,this,[[1,8]])}));function e(e){return t.apply(this,arguments)}return e}(),resetThemePlaceholder:function(){this.$store.commit(mu,b)}}},vu={data:function(){return{modalData:null,showModal:!1}},methods:{onModalConfirm:function(){this.modalData&&this.modalData.successCallback(this.modalData.params),this.modalData=null,this.showModal=!1},toggleModal:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!t&&this.modalData&&void 0!==this.modalData.cancelCallback&&this.modalData.cancelCallback(),this.modalData=e,this.showModal=t},getModalLocales:function(){return this.modalData&&this.modalData.locales?this.modalData.locales:null},modalConfirmBtnColor:function(){return this.modalData&&this.modalData.confirmButtonVariant?this.modalData.confirmButtonVariant:""},showCancelButton:function(){return!this.modalData||void 0===this.modalData.showCancelButton||this.modalData.showCancelButton},hideCloseButton:function(){if(this.modalData&&void 0!==this.modalData.hideCloseButton)return this.modalData.hideCloseButton}}},pu={components:{ThemeEditor:yd,ThemeChooser:ou,ModalComponent:du},mixins:[gu,Hc,Mc,yc,vu],data:function(){return{dragableWidgets:[],contentZones:[],showEditor:!0}},computed:{chooserVisible:function(){var t=this.$store.state.chooser.show||!1===this.$store.state.editor.themeConfig;return t},changesMade:function(){return this.$store.state.editor.madeChangesStatus}},watch:{changesMade:function(){this.showDataWarning()}},methods:{removeCookie:function(){for(var t=this,e=document.querySelectorAll("iframe"),n=0;n<e.length;n++)e[n].parentNode.removeChild(e[n]);this.showEditor=!1,this.removeThemeIdCookie(),setTimeout(function(){return t.showEditor=!0},1e3)},onBeforeUnload:function(t){t.preventDefault(),t.returnValue=""},onUnload:function(){this.deleteTheme(this.$store.state.editor.selectedTheme.id)},getDragableWidget:function(){var t=Object(St["a"])(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.loadAvailableWidgets();case 2:this.dragableWidgets=t.sent;case 3:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}(),showDataWarning:function(){this.$store.state.editor.madeChangesStatus?window.addEventListener("beforeunload",this.onBeforeUnload):window.removeEventListener("beforeunload",this.onBeforeUnload)},loadContentZones:function(){var t=Object(St["a"])(regeneratorRuntime.mark(function t(e){var n,i,o,a=this;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(e.length){t.next=2;break}return t.abrupt("return",null);case 2:for(n=this.contentZones.length-1;n>=0;n--)i=e.indexOf(this.contentZones[n].id),i>-1&&e.splice(i,1);if(!e.length){t.next=8;break}return t.next=6,this.requestContentZones(e.join(","));case 6:o=t.sent,o.forEach(function(t){a.idExistsInContentZoneList(t.id)||a.contentZones.push(t)});case 8:e.forEach(function(t){var e=a.idExistsInContentZoneList(t);e||a.contentZones.push(a.buildContentZone(t))}),this.$refs.editor.updateContentZones();case 10:case"end":return t.stop()}},t,this)}));function e(e){return t.apply(this,arguments)}return e}(),idExistsInContentZoneList:function(t){return this.contentZones.find(function(e){return e.id===t})},triggerLanguageSaveToStore:function(t){this.triggerSaveCurrentLanguage(t)},handleSaveThemeFinished:function(t){200===t&&(this.contentZones=[])}},created:function(){var t=this,e=new URLSearchParams(location.search);this.$i18n.locale=e.get("language")||this.$i18n.locale,this.fetchThemes().then(function(){e.get("editing")&&t.loadTheme(e.get("editing"))}),window.addEventListener("unload",this.onUnload),window.addEventListener("beforeunload",this.removeCookie),this.triggerLanguageSaveToStore(this.$i18n.locale),this.$on("toggleModal",this.toggleModal),this.$on("saveThemeFinished",this.handleSaveThemeFinished)}},fu=pu,bu=(n("5c0b"),Object(Ut["a"])(fu,kt,$t,!1,null,null,null)),wu=bu.exports,Cu={created:function(){var t=this;f.a.interceptors.response.use(function(t){return t},function(e){var n=e.response&&!(e.config&&!1===(e.config.handleError||!1));return n&&t.$bvToast.toast("HTTP ".concat(e.response.status," - ").concat(e.response.data.message||e.response.statusText),{title:"An error has occurred",autoHideDelay:5e3,appendToast:!0,variant:"danger"}),q.a.reject(e)}),f.a.interceptors.request.use(function(e){return t.$store.dispatch("authentication/produceAuthenticationToken").then(function(n){e.headers["X-Auth-Token"]="Bearer ".concat(n);var i=t.$store.state.editor.selectedTheme.id;return i&&(e.headers["X-Theme-Id"]=i),q.a.resolve(e)}).catch(function(e){t.$bvToast.toast("HTTP ".concat(e.response.status," - ").concat(e.response.data.message||e.response.statusText),{title:"An error happend while requesting a token ",autoHideDelay:5e3,appendToast:!0,variant:"danger"})})},function(t){return q.a.reject(t)})}};i["default"].use(a.a),i["default"].use(l["a"]),i["default"].use(r.a),i["default"].use(d.a),i["default"].config.productionTip=!1,new i["default"]({i18n:g,store:yt,render:function(t){return t(wu)},mixins:[Cu]}).$mount("#app")},"58a6":function(t,e,n){"use strict";var i=n("1ed0"),o=n.n(i);o.a},"58d3":function(t,e,n){"use strict";var i=n("1728"),o=n.n(i);o.a},"5b9c":function(t,e,n){"use strict";var i=n("03b7"),o=n.n(i);o.a},"5c0b":function(t,e,n){"use strict";var i=n("5e27"),o=n.n(i);o.a},"5e27":function(t,e,n){},6257:function(t,e,n){"use strict";var i=n("c9f8"),o=n.n(i);o.a},6302:function(t,e,n){"use strict";var i=n("80ee"),o=n.n(i);o.a},"65dc":function(t,e,n){},"669b":function(t,e,n){"use strict";var i=n("8e3e"),o=n.n(i);o.a},"67bf":function(t,e,n){},"6ce2":function(t){t.exports={common:{new:"Neu",active:"Aktiv",inactive:"Inaktiv"},chooser:{heading:"Meine Themes",item:{invalidTheme:"Theme nicht kompatibel mit StyleEdit 4",dropdown:{activate:"Aktivieren",edit:"Bearbeiten",download:"Downloaden",duplicate:"Duplizieren",delete:"Löschen"},activateModal:{title:"<strong><b>{title}</b></strong> aktivieren",firstLine:"Möchten Sie wirklich dieses Theme aktivieren?",secondLine:"Das Theme wird für alle Besucher sichtbar werden.",confirm:"Aktivieren",cancel:"Abbrechen"},deleteModal:{title:"<strong><u>{title}</u></strong> löschen",firstLine:"Sind Sie sicher, dass Sie das Theme löschen möchten?",secondLine:"Das Theme wird nicht mehr verfügbar sein.",confirm:"Löschen",cancel:"Abbrechen"}},placeholder:{appStore:"Mehr Themes im App-Store",or:"oder",upload:"hochladen"},close:"Schließen",previewModal:{title:"Ungespeicherte Änderungen entdeckt",firstLine:"Sollen die ungespeicherten Änderungen aus der letzten Bearbeitung wiederhergestellt oder verworfen werden?",secondLine:"",confirm:"Verwerfen",cancel:"Wiederherstellen"},invalidThemeModal:{title:"Ungültiges Theme",firstLine:"Ungültige Theme ID! Wähle ein neues Theme!",secondLine:"",confirm:"Schließen"}},editor:{openOverview:"Meine Themes",menu:{editCss:"SCSS/CSS bearbeiten",download:"Downloaden",importSettings:"Einstellungen importieren"},tabs:{basics:"Grundlagen",areas:"Bereiche",widgets:"Widgets"},buttons:{save:"Speichern",saving:"Wird gespeichert...",saved:"Gespeichert",exit:"Beenden",expertMode:"Expertenmodus",homeTooltip:"Zurück zur Shop-Startseite",select:"Wählen",delete:"Löschen"},contentZone:{deleteModal:{title:"Content Zone",firstLine:"Durch diese Änderung wird eine befüllte Spalte gelöscht. Sind Sie sicher, dass Sie diese Änderung durchführen möchten?",secondLine:"",confirm:"Löschen",cancel:"Abbrechen"},column:{title:"Spalte",fieldsets:{responsive:"Responsive",background:"Hintergrund",border:"Rahmen",general:"ID & Klasse"},options:{background:"Hintergrund",responsive:"Responsive",border:"Rahmen",class:"Klasse",id:"ID"}},row:{title:"Sektion",fieldsets:{grid:"Aufteilung",alignment:"Inhalt",responsive:"Responsive",general:"ID & Klasse"},options:{contentAlign:"Inhalt zentrieren (.container)",background:"Hintergrund",responsive:"Mobile sichtbar",border:"Rahmen",class:"Klasse",id:"ID"}}},widgets:{noContentZones:"Diese Seite enthält keine Content-Zones",previewModeMessage:"Um Widgets per Drag&Drop zu aktivieren, müssen Sie den Vorschaumodus deaktivieren.",copyContentModal:{title:"Content Zone",firstLine:"Der Inhalt wird in alle verfügbaren Sprachen kopiert. Wollen Sie fortfahren?",secondLine:"",confirm:"Bestätigen",cancel:"Abbrechen"}},forbiddenModal:{title:"Nicht autorisiert",firstLine:"Sie müssen angemeldet sein, um StyleEdit verwenden zu können.",secondLine:"",confirm:"Schließen",cancel:""},options:{backgroundImage:{insertImage:"Bild einfügen",image:"Bild",position:"Position",attachment:"Verankerung",repeat:"Wiederholung",size:"Größe"},backgroundGradient:{insertGradient:"Farbverlauf einfügen",firstColor:"1 Farbe",secondColor:"2 Farbe",type:"Typ",angle:"Winkel"},background:{color:"Farbe"},border:{width:"Breite",type:"Typ",color:"Farbe"},font:{enableCustomization:"Schrift individuell anpassen",textColor:"Text Farbe",textAlign:"Text Ausrichtung",fontFamily:"Schriftart",fontSize:"Schriftgröße",fontStyle:"Schriftstil",textDecorationUnderline:"Text unterstrichen",textTransformUppercase:"Text in Großbuchstaben"},responsive:{hiddenXs:"Auf Mobile verstecken",hiddenSm:"Auf Tablet Portrait verstecken",hiddenMd:"Auf Tablet Landscape verstecken",hiddenLg:"Auf Desktop verstecken"},contentManagerList:{new:"Neu"}},importModal:{title:"Einstellungen importieren",confirm:"Einführen",cancel:"Abbrechen",label:"Vorlagenliste",required:{templateList:"Bitte wählen Sie eine Vorlage/Theme aus."},options:{template:"Vorlage",theme:"Theme"}},customScssModal:{confirm:"Speichern",cancel:"Abbrechen"},uninstalledFilemanager:"Um diese Funktion nutzen zu können, muss der Responsive FileManager installiert sein.",uploadImageModalTitle:"Bild hochladen",expertModeTitle:"Expertenmodus",previewModeTitle:"Vorschau",customStylesheetsTitle:"Eigene Stylesheets"}}},"6f00":function(t,e,n){"use strict";var i=n("2fcc"),o=n.n(i);o.a},"70d1":function(t,e,n){"use strict";var i=n("cb0f"),o=n.n(i);o.a},"714d":function(t,e,n){},"76d7":function(t,e,n){},"785e":function(t,e,n){},7997:function(t,e,n){"use strict";var i=n("b32a"),o=n.n(i);o.a},"7f87":function(t,e,n){"use strict";var i=n("714d"),o=n.n(i);o.a},"80ee":function(t,e,n){},"840b":function(t,e,n){},8434:function(t,e,n){},8441:function(t,e,n){},8643:function(t,e,n){"use strict";var i=n("1bd8"),o=n.n(i);o.a},8787:function(t,e,n){},"880d":function(t,e,n){"use strict";var i=n("2a04"),o=n.n(i);o.a},8995:function(t,e,n){},"8b61":function(t,e,n){},"8cff":function(t,e,n){"use strict";var i=n("e23c"),o=n.n(i);o.a},"8e0b":function(t,e,n){},"8e3e":function(t,e,n){},"8ffd":function(t,e,n){},"951e":function(t,e,n){},"991d":function(t,e,n){"use strict";var i=n("00dd"),o=n.n(i);o.a},"9a77":function(t,e,n){"use strict";var i=n("501d"),o=n.n(i);o.a},a91d:function(t,e,n){"use strict";var i=n("b125"),o=n.n(i);o.a},aadc:function(t,e,n){"use strict";var i=n("13a7"),o=n.n(i);o.a},ad15:function(t,e,n){"use strict";var i=n("0f79"),o=n.n(i);o.a},af89:function(t,e,n){},b125:function(t,e,n){},b32a:function(t,e,n){},b41c:function(t,e,n){},bb8c:function(t,e,n){"use strict";var i=n("fb91"),o=n.n(i);o.a},bba3:function(t,e,n){"use strict";var i=n("65dc"),o=n.n(i);o.a},bd5a:function(t,e,n){"use strict";var i=n("fb3b"),o=n.n(i);o.a},c9e6:function(t,e,n){"use strict";var i=n("fa88"),o=n.n(i);o.a},c9f8:function(t,e,n){},cab7:function(t,e,n){"use strict";var i=n("8441"),o=n.n(i);o.a},cb0f:function(t,e,n){},cd77:function(t,e,n){"use strict";var i=n("b41c"),o=n.n(i);o.a},e072:function(t,e,n){"use strict";var i=n("40e0"),o=n.n(i);o.a},e23c:function(t,e,n){},e268:function(t,e,n){"use strict";var i=n("af89"),o=n.n(i);o.a},e4bf:function(t,e,n){"use strict";var i=n("8ffd"),o=n.n(i);o.a},e555:function(t,e,n){"use strict";var i=n("840b"),o=n.n(i);o.a},e5f0:function(t,e,n){},eac6:function(t,e,n){"use strict";var i=n("e5f0"),o=n.n(i);o.a},eb15:function(t,e,n){"use strict";var i=n("2eea"),o=n.n(i);o.a},edb8:function(t,e,n){"use strict";var i=n("3537"),o=n.n(i);o.a},edd4:function(t){t.exports={common:{new:"New",active:"Active",inactive:"Inactive"},chooser:{heading:"My themes",item:{invalidTheme:"Theme not compatible with StyleEdit 4",dropdown:{activate:"Activate",edit:"Edit",download:"Download",duplicate:"Duplicate",delete:"Delete"},activateModal:{title:"Activate <strong><b>{title}</b></strong>",firstLine:"Are you sure you want to active this theme?",secondLine:"This theme will be active to all the user.",confirm:"Activate",cancel:"Cancel"},deleteModal:{title:"Delete <strong><u>{title}</u></strong> theme",firstLine:"Are you sure you want to delete this theme?",secondLine:"This theme will not be available anymore.",confirm:"Delete",cancel:"Cancel"}},placeholder:{appStore:"More themes in the App Store",or:"or",upload:"upload"},close:"Close",previewModal:{title:"Unsaved changes detected",firstLine:"Do you want to restore or discard the unsaved changes from the last session?",secondLine:"",confirm:"discard",cancel:"restore"},invalidThemeModal:{title:"Invalid Theme",firstLine:"Invalid Theme ID! Select a new Theme!",secondLine:"",confirm:"Close"}},editor:{openOverview:"My themes",menu:{editCss:"Edit SCSS/CSS",download:"Download",importSettings:"Import settings"},tabs:{basics:"Basics",areas:"Areas",widgets:"Widgets"},buttons:{save:"Save",saving:"Saving...",saved:"Saved!",exit:"Exit",expertMode:"Expert mode",homeTooltip:"Back to the Shop Startpage",select:"Select",delete:"Delete"},contentZone:{deleteModal:{title:"Content Zone",firstLine:"This change deletes a filled column. Are you sure you want do this?",secondLine:"",confirm:"Delete",cancel:"Cancel"},column:{title:"Column",fieldsets:{responsive:"Responsive",background:"Background",border:"Border",general:"ID & Class"},options:{background:"Background",responsive:"Responsive",border:"Border",class:"Class",id:"id"}},row:{title:"Section",fieldsets:{grid:"The Grid",alignment:"Alignment",responsive:"Responsive",general:"ID & Class"},options:{contentAlign:"Align center",background:"Background (label)",responsive:"Visible on Mobile",border:"Border",class:"Class",id:"id"}}},widgets:{noContentZones:"This page does not contain any content zones",previewModeMessage:"To enable widgets drag&drop you have to disable preview mode.",copyContentModal:{title:"Content Zone",firstLine:"The content will be copied to all available languages. Do you want to continue?",secondLine:"",confirm:"Confirm",cancel:"Cancel"}},forbiddenModal:{title:"Unauthorized",firstLine:"You must be logged in to use the StyleEdit.",secondLine:"",confirm:"Close",cancel:""},options:{backgroundImage:{insertImage:"Insert Image",image:"Image",position:"Position",attachment:"Attachment",repeat:"Repeat",size:"Size"},backgroundGradient:{insertGradient:"Insert Gradient",firstColor:"1nd Color",secondColor:"2nd Color",type:"Type",angle:"Angle"},background:{color:"Color"},border:{width:"Width",type:"Type",color:"Color"},font:{enableCustomization:"Customize font",textColor:"Text Color",textAlign:"Text Align",fontFamily:"Font Family",fontSize:"Font Size",fontStyle:"Font Style",textDecorationUnderline:"Text Decoration Underline",textTransformUppercase:"Text Transform Uppercase"},responsive:{hiddenXs:"Hide on mobile",hiddenSm:"Hide on tablet portrait",hiddenMd:"Hide on tablet landscape",hiddenLg:"Hide on desktop"},contentManagerList:{new:"New"}},importModal:{title:"Import settings",confirm:"Import",cancel:"Cancel",label:"Template list",required:{templateList:"Please select a template/theme."},options:{template:"Template",theme:"Theme"}},customScssModal:{confirm:"Save",cancel:"Cancel"},uninstalledFilemanager:"To be able to use this function, the Responsive FileManager must be installed.",uploadImageModalTitle:"Image upload",expertModeTitle:"Expertmode",previewModeTitle:"Preview",customStylesheetsTitle:"Custom Stylesheets"}}},ef71:function(t,e,n){},f538:function(t,e,n){"use strict";var i=n("ef71"),o=n.n(i);o.a},f745:function(t,e,n){},fa2f:function(t,e,n){"use strict";var i=n("8787"),o=n.n(i);o.a},fa88:function(t,e,n){},fb3b:function(t,e,n){},fb91:function(t,e,n){}});
//# sourceMappingURL=app.981eabd8.js.map

Youez - 2016 - github.com/yon3zu
LinuXploit