GIF94;
| Path : /var/www/wordpress/wp-content/plugins/oxygen/builder/dist/js/ |
| Current File : /var/www/wordpress/wp-content/plugins/oxygen/builder/dist/js/manage-templates.195fc8b9.js |
(()=>{"use strict";var e={5502:(e,t,a)=>{function s(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)}a.d(t,{S:()=>s})},89028:(e,t,a)=>{a.d(t,{ij:()=>v,gR:()=>b,l9:()=>g});a(27361),a(31381),a(85450);var s=a(45974),o=a(30902),n=(a(9950),a(69137),a(23128),a(65118)),l=(a(65669),a(84274),a(86687),a(12721)),i=a(31737),r=a(31549),c=a(75031),d=a(32521);const p=d.G0([c.NM,d.IX(c.NM)]),u=d.dt({controlSectionShapeHash:d.Z_,propertiesData:d.dt({propertiesData:d._4})}),m=d.dt({path:d.Z_,data:d._4}),h=d.r$({element:p,controlSectionPropertiesData:u,oxy:m});a(98949),a(47354);new l.hF;async function _(e){const{secure:t,permission:a}=await(0,i.fn)();return e&&!window.safari?"event":t?null===a||"denied"===a.state?"localstorage":"clipboard":"localstorage"}async function g(e){try{await navigator.clipboard.writeText(e),console.debug("Writing to clipboard")}catch(t){(0,i._G)(e),console.debug("Fallback: Writing to clipboard")}(0,r.r)("breakdance_clipboard",e)}async function b(e){const t=e?.clipboardData?.getData("text"),a=await _(e);return console.debug(`Reading clipboard from ${a}`),"event"===a?t:"localstorage"===a?(0,r.z)("breakdance_clipboard"):await navigator.clipboard.readText()}async function v(e){const t=await b(e);if(!t)return null;const a=(0,n.Z)(t,h);return(0,o.pipe)(a,(0,s.fold)((()=>null),(e=>e??null)))}},31737:(e,t,a)=>{async function s(){try{return await navigator.permissions.query({name:"clipboard-read",allowWithoutGesture:!1})}catch(e){return null}}async function o(){const e=await s();return{secure:window.isSecureContext,permission:e}}function n(e){const t=document.createElement("textarea");let a;t.value=e,t.style.top="0",t.style.left="0",t.style.position="fixed",t.classList.add("breakdance-offscreen-input"),document.body.appendChild(t),t.focus(),t.select();try{a=document.execCommand("copy")}catch(s){a=!1}return document.body.removeChild(t),a}a.d(t,{_G:()=>n,fn:()=>o})},1073:(e,t,a)=>{a.d(t,{T:()=>p});var s=a(98851),o=(a(75031),a(30902)),n=a(45974),l=a(51168),i=a(31044),r=a(32521),c=a(65669),d=a(69137);async function p(){return(0,o.pipe)(await(0,s.D)({friendlyName:"Saving global settings to WordPress",action:"breakdance_save_global_settings",dataToPost:{globalSettings:(0,c.J)(i.cr.globalSettings)},decoder:r._4}),(0,n.fold)((e=>((0,l.UE)(e),!1)),(()=>(d.n.ignore((()=>i.cr.markCurrentGlobalSettingsAsUntouched())),!0))))}},36055:(e,t,a)=>{a.d(t,{H$:()=>i,TZ:()=>l,__:()=>o,gB:()=>r,vM:()=>n});const s=window.wp.i18n;function o(e,t="breakdance"){return s.__(e,t)}function n(e,t,a,o,n="breakdance"){return s._nx(e,t,a,o,n)}function l(e,t){return s.__(e,"breakdance")}function i(e,t,a,o="breakdance"){return s._x(e,t,o)}const r=s.sprintf},37982:(e,t,a)=>{a.d(t,{Fr:()=>b,y8:()=>h});a(21516);var s=a(98851),o=a(3735),n=a(48973),l=a(51168),i=a(31044),r=a(65669),c=a(32521),d=a(95690),p=a(69137),u=a(39664),m=a(36055);function h(e){return/^-?[.]+[_a-zA-Z]+[_a-zA-Z0-9-]*$/.test(e)}function _(e){try{document.createDocumentFragment().querySelector(e)}catch{return!1}return!0}function g(e){if("class"===e.type){if(!h(e.name))return void u.Z.log.message((0,m.gB)((0,m.TZ)("%s is not a valid CSS class name.","%s: CSS selector name"),e.name))}else if(!_(e.name))return void u.Z.log.message((0,m.gB)((0,m.TZ)("%s is not a valid CSS selector.","%s: CSS selector name"),e.name));i.cr.cssSelectors.find((t=>t.name===e.name))?u.Z.log.message((0,m.gB)((0,m.TZ)("%s is already present.","%s: CSS selector name"),e.name)):p.n.transaction((()=>i.cr.setSelectors([...i.cr.cssSelectors,e])),"Add Selector")}function b(e){g(e),(0,d.O_)("selectors")||v()}async function v(){return(0,o.zG)(await(0,s.D)({friendlyName:(0,m.__)("Saving selectors to WordPress"),action:"breakdance_save_selectors",dataToPost:{selectors:(0,r.J)(i.cr.cssSelectors)},decoder:c._4}),(0,n.g_)((e=>((0,l.UE)(e),!1)),(()=>(p.n.ignore((()=>i.cr.markCurrentSelectorsAsUntouched())),!0))))}},37156:(e,t,a)=>{a.d(t,{CD:()=>l,Ms:()=>n,i7:()=>o});a(85450);var s=a(22218);a(86042);function o(e){return e?.position===s.eV.AFTER}function n(e){const t=e?.position===s.eV.BEFORE;return t||l(e)}function l(e){return!!e?.fromBreakpoint&&e?.position===s.eV.CURRENT}},24111:(e,t,a)=>{function s(e){return"class"===e.type?`.${e.name}`:e.name}a.d(t,{I:()=>s})},41836:(e,t,a)=>{a.d(t,{Ds:()=>m});var s=a(98851),o=a(3735),n=a(48973),l=a(51168),i=a(31044),r=a(65669),c=a(32521),d=a(95690),p=a(69137);a(17582);function u(e){p.n.transaction((()=>{const t=i.cr.variables;let a=t.length;for(let o=t.length-1;o>=0;o--)if(t[o].collection===e.collection){a=o+1;break}const s=[...t.slice(0,a),e,...t.slice(a)];i.cr.setVariables(s)}),"Add Variable")}function m(e){u(e),(0,d.O_)("variables")||h()}async function h(){return(0,o.zG)(await(0,s.D)({friendlyName:"Saving variables to WordPress",action:"breakdance_save_variables",dataToPost:{variables:(0,r.J)({variables:i.cr.variables,collections:i.cr.variablesCollections})},decoder:c._4}),(0,n.g_)((e=>((0,l.UE)(e),!1)),(()=>(p.n.ignore((()=>i.cr.markCurrentVariablesAsUntouched())),!0))))}},57241:(e,t,a)=>{var s=a(20144),o=a(85450),n=a(49026),l=a(31096),i=function(){var e=this,t=e._self._c;e._self._setupProxy;return t(l.Z,{staticClass:"breakdance-admin-wp"},[t("Notifications"),t("div",{staticClass:"manage-templates-app"},[e.isBlockPostType?[t("ManageGlobalBlocks")]:[t("ManageTemplates",{attrs:{postType:e.postType}})]],2)],1)},r=[],c=a(70655),d=a(38085),p=a(58495),u=a(37179),m=a(30144),h=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[e.isLoadingData?t("Loading"):e._e(),t("div",{staticClass:"manage-templates"},[t("div",{staticClass:"manage-templates__header"},[t("h1",{staticClass:"manage-templates__title"},[e._v(" "+e._s(e.showTrash?e.sprintf(e._xdoc("Deleted %s","Templates","%s: Template type name (plural)"),e.templateNamePlural):e.templateNamePlural)+" ")]),e.showTrash?e._e():[e.postType===e.breakdanceHeaderPostType||e.postType===e.breakdanceFooterPostType||"breakdance_popup"===e.postType?t(u.Z,{staticClass:"breakdance-wp-admin-templating-button",attrs:{elevation:"0",outlined:""},on:{click:function(t){e.modalData={type:"add",data:e.blankTemplateWithValidSettings}}}},[e.postType===e.breakdanceHeaderPostType?t("span",[e._v(e._s(e.__("Add Header")))]):e._e(),e.postType===e.breakdanceFooterPostType?t("span",[e._v(e._s(e.__("Add Footer")))]):e._e(),"breakdance_popup"===e.postType?t("span",[e._v(e._s(e.__("Add Popup")))]):e._e()]):e._e(),e.postType===e.breakdanceTemplatePostType?t("AddTemplateDropdown",{attrs:{templateName:e.templateName,isWooCommerceActive:e.isWooCommerceActive,templates:e.templatesByStatus},on:{input:e.saveTemplate,blankModal:function(t){return e.handleTemplateCardModal("add",e.blankTemplateWithValidSettings)},modalWithSettings:function(t){return e.handleTemplateCardModal("add",t)}}}):e._e()]],2),this.templatesByStatus.length>0||this.filteredTemplatesBySearch.length>0||e.trashLength>0||e.showTrash?t("div",{staticClass:"manage-templates__actions"},[e.showTrash?e._e():t("div",{staticClass:"manage-templates__search"},[t("SearchInput",{attrs:{placeholder:e.searchInputPlaceholder},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1),t("div",{staticClass:"manage-templates__secondary-actions"},[e.showTrash&&this.templatesByStatus.length?t(u.Z,{staticClass:"mr-4",attrs:{text:"",loading:e.emptyingTrash},on:{click:e.emptyTrash}},[t("Icon",{staticClass:"mr-2",attrs:{icon:"TrashIcon",size:"16"}}),e._v(" "+e._s(e.__("Empty Trash"))+" ")],1):e._e(),e.trashLength||e.showTrash?t(u.Z,{attrs:{text:""},on:{click:function(t){e.showTrash=!e.showTrash}}},[e.showTrash?[t("Icon",{staticClass:"mr-2",attrs:{icon:"ArrowLeftLongIcon",size:"16"}}),e._v(" "+e._s(e.__("Back"))+" ")]:[t("Icon",{staticClass:"mr-2",attrs:{icon:"TrashIcon",size:"16"}}),e._v(" "+e._s(e.sprintf(e.__("Trash (%d)"),e.trashLength))+" ")]],2):e._e()],1)]):e._e()]),t("EmptyState",{attrs:{value:e.emptyStateData}}),e.filteredTemplatesBySearch.length>0?t(m.Z,{staticClass:"manage-templates__table breakdance-table",class:e.newTemplateAdded?"added":""},[t("thead",[t("tr",[t("th",{attrs:{width:"35%"}},[e._v(e._s(e.__("Template")))]),t("th",{attrs:{width:"25%"}},[e._v(e._s(e.__("Applies to")))]),t("th",{attrs:{width:"15%"}},[e._v(e._s(e.__("Conditions")))]),"breakdance_popup"===e.postType?t("th",{attrs:{width:"15%"}},[e._v(" "+e._s(e.__("Triggers"))+" ")]):e._e(),"breakdance_popup"!==e.postType?t("th",{attrs:{width:"15%"}},[e._v(" "+e._s(e.__("Priority"))+" ")]):e._e(),t("th",{attrs:{width:"10%"}},[e._v(e._s(e.__("Active")))])])]),t("transition-group",{attrs:{tag:"tbody",name:"fade",mode:"in-out"}},e._l(e.filteredTemplatesBySearch,(function(a){return t("TemplateRow",{key:a.id,class:e.newTemplateAdded?"":"animation-disabled",attrs:{value:e.getTemplateWithValidSettings(a),templateTypeCategories:e.templatesManagementData.templateTypeCategories,templateParents:e.templateParentsWithoutTrashed},on:{input:e.handleTemplateCardModal,update:e.updateTemplate,duplicate:e.duplicateTemplate,trash:e.trashTemplate,delete:e.deleteTemplate,restore:e.restoreTemplate}})})),1)],1):e._e(),e.modalData?t("EditTemplateModal",{attrs:{value:e.modalData.data,templatesManagementData:e.templatesManagementData,postType:e.postType,templateParents:e.templateParentsWithoutTrashed,templates:e.templatesByStatus,mode:e.modalData.type,skipWarning:e.skipWarning,hasPermissionToManageFallbacks:e.hasPermissionToManageFallbacks},on:{input:function(t){return e.saveTemplate(t)},close:function(t){e.modalData=!1},skipWarning:function(t){e.skipWarning=t}}}):e._e()],1)},_=[],g=a(30902),b=a(48262),v=a(45974),y=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("tr",[t("td",[t("div",{staticClass:"manage-templates__title-row"},["trash"===e.mode?t("span",{staticClass:"manage-templates__title-link"},[e._v(" "+e._s(e.value.title)+" "),t("span",{staticClass:"manage-templates__title-id"},[e._v("#"+e._s(e.value.id))])]):t("a",{staticClass:"manage-templates__title-link",attrs:{target:"_top",href:e.value.editInBreakdanceLink}},[e._v(" "+e._s(e.value.title)+" "),t("span",{staticClass:"manage-templates__title-id"},[e._v("#"+e._s(e.value.id))])])]),t("div",{staticClass:"manage-templates__row-actions"},["publish"===e.mode?t("a",{staticClass:"manage-templates__btn-action",attrs:{href:e.value.editInBreakdanceLink,target:"_top",title:e.sprintf(e._xdoc("Edit in %s","Template","%s: Plugin name"),e.$bdox("plugin_name"))}},[e._v(" "+e._s(e.sprintf(e._xdoc("Edit in %s","Template","%s: Plugin name"),e.$bdox("plugin_name")))+" ")]):e._e(),"publish"===e.mode?t("button",{staticClass:"manage-templates__btn-action",attrs:{title:e.__("Settings")},on:{click:e.openEditTemplateModal}},[e._v(" "+e._s(e.__("Settings"))+" ")]):e._e(),"trash"===e.mode?t("button",{staticClass:"manage-templates__btn-action",attrs:{title:e.__("Restore")},on:{click:e.restoreTemplate}},[e._v(" "+e._s(e.__("Restore"))+" ")]):e._e(),"publish"===e.mode?t("button",{staticClass:"manage-templates__btn-action",attrs:{title:e.__("Duplicate")},on:{click:e.duplicateTemplate}},[e._v(" "+e._s(e.__("Duplicate"))+" ")]):e._e(),t("button",{staticClass:"manage-templates__btn-action is-danger",attrs:{title:"publish"===e.mode?e.__("Trash"):e.__("Delete permanently")},on:{click:e.deleteTemplate}},[e._v(" "+e._s("publish"===e.mode?e.__("Trash"):e.__("Delete permanently"))+" ")])])]),t("td",{staticClass:"manage-template__applies-to"},[e.matchingQuickAddTemplate?[t("span",{staticClass:"d-block"},[e._v(e._s(e.matchingQuickAddTemplate.name))]),t("ElementBadge",{staticClass:"template-row-element-badge",attrs:{value:{backgroundColor:e.matchingQuickAddTemplate.backgroundColor,textColor:e.matchingQuickAddTemplate.textColor,label:e.matchingQuickAddTemplate.category}}})]:e.appliesToLabel?[e._v(e._s(e.appliesToLabel))]:e._e()],2),t("td",[e.value.settings.ruleGroups&&e.value.settings.ruleGroups.length?[t("ConditionsPreviewTooltip",{attrs:{value:e.value.settings.ruleGroups}})]:e._e()],2),"breakdance_popup"===e.value.postType?t("td",{staticClass:"manage-template__td_text"},[e._v(" "+e._s(e.triggerLabels(e.value.settings.triggers))+" ")]):e._e(),"breakdance_popup"!==e.value.postType?t("td",{staticClass:"manage-template__td_text"},[void 0!==e.value.settings.priority?[e._v(" "+e._s(e.value.settings.priority)+" ")]:e._e()],2):e._e(),t("td",{staticClass:"manage-template__td_text"},[[t("ToggleInput",{attrs:{value:!e.value.settings.disabled},on:{input:e.updateDisabled}})]],2)])},k=[],f=a(43432),T=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[[t(f.Z,{staticClass:"condition-preview-tooltip-element",attrs:{bottom:"",transition:"0"},scopedSlots:e._u([{key:"activator",fn:function({on:a,attrs:s}){return[t("span",e._g(e._b({},"span",s,!1),a),[t("Icon",{attrs:{icon:"CodeBranchIcon",size:"18"}})],1)]}}])},[t("span",[t("div",{staticClass:"condition-preview-tooltip-contanier"},[e._l(e.value,(function(a,s){return[t("div",{staticClass:"condition-preview-tooltip"},[s>0?t("span",{staticClass:"condition-preview-or-separator"},[t("span",[e._v(e._s(e.__("OR")))])]):e._e(),e._l(a,(function(e,a){return t("ConditionPreviewRule",{key:a,attrs:{rule:e,index:a}})}))],2)]}))],2)])])]],2)},w=[],C=a(23128),B=a(89680),P=a(85283);let Z=class extends s.ZP{edit(e){this.$emit("input",(0,C.Z)(e))}};(0,c.gn)([(0,d.fI)()],Z.prototype,"value",void 0),Z=(0,c.gn)([(0,d.wA)({components:{ConditionPreviewRule:B.Z,Icon:P.Z}})],Z);const S=Z,x=S;var I=a(1001),D=(0,I.Z)(x,T,w,!1,null,null,null);const A=D.exports;var M=a(67132),L=a(46368),$=a(36055);const G=[{name:(0,$.__)("Single Product","breakdance"),category:"Woo",textColor:"var(--brandWooCommerce)",backgroundColor:"var(--brandWooCommerceBackground)",settings:{type:"product",ruleGroups:[],priority:20}},{name:(0,$.__)("Shop Page & All Product Archives","breakdance"),category:"Woo",textColor:"var(--brandWooCommerce)",backgroundColor:"var(--brandWooCommerceBackground)",settings:{type:"all-product-archives",ruleGroups:[],priority:10}},{name:(0,$.__)("Specific Product Archive","breakdance"),category:"Woo",textColor:"var(--brandWooCommerce)",backgroundColor:"var(--brandWooCommerceBackground)",settings:{type:"specific-product-archive",ruleGroups:[[{ruleSlug:"product-is-taxonomy",operand:"is",value:[]}]],priority:20},openDialog:!0},{name:(0,$.__)("Single Post","breakdance"),category:"Blog",textColor:"var(--brandWordPress)",backgroundColor:"var(--brandWordPressBackground)",settings:{type:"post",ruleGroups:[],priority:20}},{name:(0,$.__)("Post Archive","breakdance"),category:"Blog",textColor:"var(--brandWordPress)",backgroundColor:"var(--brandWordPressBackground)",settings:{type:"post-archives",ruleGroups:[],priority:10}},{name:(0,$.__)("404 Not Found","breakdance"),category:"Other",textColor:L.Z.green800_light,backgroundColor:L.Z.green100_light,settings:{type:"404",ruleGroups:[]}},{name:(0,$.__)("Search Results","breakdance"),textColor:L.Z.green800_light,backgroundColor:L.Z.green100_light,category:"Other",settings:{type:"search",ruleGroups:[]}}];var W=a(26687),N=a(72252);let E=class extends s.ZP{constructor(){super(...arguments),this.deleteInProgress=!1,this.restoreInProgress=!1}openEditTemplateModal(){"trash"!==this.mode&&this.$emit("input","edit",this.value)}get mode(){return this.value.status}get appliesToLabel(){const e=this.value.settings.type;let t="";return this.templateTypeCategories.some((a=>{const s=a.types.find((t=>t.slug===e));return!!s&&(t=s.label,!0)})),t}async deleteTemplate(){this.deleteInProgress=!0;const e=await(0,M.jZ)(this.value.title,this.value.id,this.value.status);e&&this.$emit("publish"===this.value.status?"trash":"delete",e),this.deleteInProgress=!1}async restoreTemplate(){this.restoreInProgress=!0;const e=await(0,M.ZU)(this.value.title,this.value.id);e&&this.$emit("restore",e),this.restoreInProgress=!1}duplicateTemplate(){const e=(0,C.Z)(this.value);e.title=(0,$.gB)((0,$.H$)('Copy of "%s"',"Template","%s: Original template title"),e.title),e.settings.disabled=!0,this.$emit("duplicate",e)}get matchingQuickAddTemplate(){if("oxygen"!==window.Breakdance.builderMode)return G.find((e=>e.settings.type===this.value.settings.type))}triggerLabels(e){return e.map((e=>e.slug)).join(", ")}updateDisabled(e){const t=(0,C.Z)(this.value);t.settings.disabled=!e,this.$emit("update",t)}};(0,c.gn)([(0,d.fI)()],E.prototype,"value",void 0),(0,c.gn)([(0,d.fI)()],E.prototype,"templateTypeCategories",void 0),(0,c.gn)([(0,d.fI)()],E.prototype,"templateParents",void 0),E=(0,c.gn)([(0,d.wA)({components:{ToggleInput:N.Z,Icon:P.Z,ConditionsPreviewTooltip:A,ElementBadge:W.Z}})],E);const F=E,O=F;var U=(0,I.Z)(O,y,k,!1,null,null,null);const V=U.exports;var R=a(73385),j=a(70248),q=a(61908),H=a(11193),z=function(){var e=this,t=e._self._c;e._self._setupProxy;return"breakdance"===e.builderMode?t("div",[t("Dropdown",{attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function({on:a}){return[t(u.Z,e._g({staticClass:"breakdance-wp-admin-templating-button",attrs:{elevation:"0",outlined:"",loading:e.quickAddInProgress}},a),[e._v(" "+e._s(e.__("Add Template"))+" ")])]}}],null,!1,829709620),model:{value:e.open,callback:function(t){e.open=t},expression:"open"}},[t(R.Z,[t(j.Z,{attrs:{dense:"",width:"350"}},[e._l(e.quickAddTemplates,(function(a){return t(q.Z,{key:a.name,on:{click:function(t){return e.quickAdd(a)}}},[t(H.V9,{staticClass:"quick-add-item"},[e._v(" "+e._s(a.name)+" "),t("ElementBadge",{attrs:{value:{backgroundColor:a.backgroundColor,textColor:a.textColor,label:a.category}}})],1)],1)})),t(q.Z,{staticClass:"add-custom-template-wrapper"},[t(H.V9,{staticClass:"add-custom-template-wrapper-title"},[t(u.Z,{staticClass:"breakdance-wp-admin-templating-button",attrs:{outlined:""},on:{click:function(t){return e.$emit("blankModal")}}},[e._v(e._s(e.__("Add Custom Template")))])],1)],1)],2)],1)],1)],1):t("div",[t(u.Z,{staticClass:"breakdance-wp-admin-templating-button",attrs:{elevation:"0",outlined:""},on:{click:function(t){return e.$emit("blankModal")}}},[e._v(" "+e._s(e.__("Add Template"))+" ")])],1)},X=[],K=a(15133),Q=a(39664),Y=a(47187),J=a(20918);let ee=class extends s.ZP{constructor(){super(...arguments),this.open=!1,this.quickAddInProgress=!1}get quickAddTemplates(){return this.isWooCommerceActive?G:G.filter((e=>"woocommerce"!==e.category.toLowerCase()))}async quickAdd(e){const t={id:-1,title:e.name,editInBreakdanceLink:"",postType:(0,J.dG)(),settings:e.settings,status:"publish"};(0,Y.aA)(this.templates,e.settings,"template")&&(e.openDialog?this.$emit("modalWithSettings",t):(this.quickAddInProgress=!0,(0,g.pipe)(await(0,M.Qu)(t),(0,v.fold)((()=>{Q.Z.log.message((0,$.gB)((0,$.TZ)("The new %s couldn't be saved","%s: Template type name"),this.templateName))}),(e=>{this.$emit("input",e)}))),this.quickAddInProgress=!1))}get builderMode(){return window.Breakdance.builderMode}};(0,c.gn)([(0,d.fI)()],ee.prototype,"templateName",void 0),(0,c.gn)([(0,d.fI)()],ee.prototype,"isWooCommerceActive",void 0),(0,c.gn)([(0,d.fI)()],ee.prototype,"templates",void 0),ee=(0,c.gn)([(0,d.wA)({components:{Dropdown:K.Z,ElementBadge:W.Z}})],ee);const te=ee,ae=te;var se=(0,I.Z)(ae,z,X,!1,null,null,null);const oe=se.exports;var ne=a(31044),le=a(19930),ie=a(11529),re=a(38562),ce=function(){var e=this,t=e._self._c;e._self._setupProxy;return 0===e.value.itemsByStatus||0===e.value.filteredItemsBySearch?t("div",{staticClass:"manage-templates__empty"},["Header"==e.value.templateName?t("svg",{staticClass:"manage-templates__empty-state-icon",attrs:{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"}},[t("path",{attrs:{d:"M92.708 3.125H7.292a4.167 4.167 0 0 0-4.167 4.167v85.416a4.167 4.167 0 0 0 4.167 4.167h85.416a4.167 4.167 0 0 0 4.167-4.167V7.292a4.167 4.167 0 0 0-4.167-4.167ZM3.125 34.375h93.75",stroke:"currentColor","stroke-width":"6.25","stroke-linecap":"round","stroke-linejoin":"round"}})]):e._e(),"Footer"==e.value.templateName?t("svg",{staticClass:"manage-templates__empty-state-icon",attrs:{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"}},[t("path",{attrs:{d:"M92.708 3.125H7.292a4.167 4.167 0 0 0-4.167 4.167v85.416a4.167 4.167 0 0 0 4.167 4.167h85.416a4.167 4.167 0 0 0 4.167-4.167V7.292a4.167 4.167 0 0 0-4.167-4.167ZM96.875 65.625H3.125",stroke:"currentColor","stroke-width":"6.25","stroke-linecap":"round","stroke-linejoin":"round"}})]):e._e(),"Template"==e.value.templateName||"Unsupported template"==e.value.templateName||"Global Block"==e.value.templateName?t("svg",{staticClass:"manage-templates__empty-state-icon",attrs:{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"}},[t("path",{attrs:{d:"M92.708 3.125H7.292a4.167 4.167 0 0 0-4.167 4.167v85.416a4.167 4.167 0 0 0 4.167 4.167h85.416a4.167 4.167 0 0 0 4.167-4.167V7.292a4.167 4.167 0 0 0-4.167-4.167ZM50 3.125v93.75M50 34.375h46.875M96.875 65.625H50M50 50H3.125",stroke:"currentColor","stroke-width":"6.25","stroke-linecap":"round","stroke-linejoin":"round"}})]):0===e.value.itemsByStatus?t("div",[t("h4",[e.value.showTrash?[e._v(" "+e._s(e.sprintf(e._doc("You have no deleted %s.","%s: template type name (plural)"),e.value.templateNamePlural.toLowerCase()))+" ")]:[e._v(" "+e._s(e.sprintf(e._doc("You have no published %s.","%s: template type name (plural)"),e.value.templateNamePlural.toLowerCase()))+" ")]],2)]):0===e.value.filteredItemsBySearch?t("div",[t("h4",[e._v(" "+e._s(e.sprintf(e._xdoc("No %s found.","Templates","%s: Template type name (plural)"),e.value.templateNamePlural.toLowerCase()))+" ")])]):e._e()]):e._e()},de=[],pe=a(82436);let ue=class extends s.ZP{get isBreakdanceDevelopmentEnvironment(){return(0,pe.y)()}};(0,c.gn)([(0,d.fI)()],ue.prototype,"value",void 0),ue=(0,c.gn)([(0,d.wA)({})],ue);const me=ue,he=me;var _e=(0,I.Z)(he,ce,de,!1,null,null,null);const ge=_e.exports;var be=a(16734),ve=a(90878);let ye=class extends s.ZP{constructor(){super(...arguments),this.modalData=!1,this.skipWarning=!1,this.templates=[],this.templatesManagementData={conditions:[],dynamicFields:[],templateTypeCategories:[],popupTriggers:null},this.isWooCommerceActive=!1,this.search="",this.showTrash=!1,this.newTemplateAdded=!1,this.hasPermissionToManageFallbacks=!1,this.emptyingTrash=!1,this.isLoadingData=!1,this.broadcastChannel=null}onTemplateAdded(){setTimeout((()=>this.newTemplateAdded=!1),1e3)}get breakdanceHeaderPostType(){return(0,J.d0)()}get breakdanceFooterPostType(){return(0,J.Yq)()}get breakdanceTemplatePostType(){return(0,J.dG)()}get templatesForUi(){return this.hasPermissionToManageFallbacks?this.templatesByStatus:this.templatesByStatus.filter((e=>!e.settings?.fallback))}get filteredTemplatesBySearch(){return this.search?this.templatesForUi.filter((e=>e.title.toLowerCase().includes(this.search.toLowerCase())||e.settings?.type?.includes(this.search.toLowerCase()))):this.templatesForUi}get templatesByStatus(){return this.templates.filter((e=>this.showTrash?"trash"===e.status:"publish"===e.status))}get blankTemplateWithValidSettings(){return{id:-1,title:"",postType:this.postType,editInBreakdanceLink:"",settings:{},status:"publish"}}get trashLength(){return this.templates.filter((e=>"trash"===e.status)).length}async duplicateTemplate(e){(0,g.pipe)(await(0,M.UB)(e),(0,v.fold)((()=>{Q.Z.log.message((0,$.gB)((0,$.TZ)('Duplicating template "%s" failed',"%s: Template ID"),e.id))}),(e=>{this.saveTemplate(e)})))}async updateTemplate(e){(0,g.pipe)(await(0,M.Qu)(e),(0,v.fold)((()=>{Q.Z.log.message((0,$.gB)((0,$.TZ)('Update for template "%s" failed',"%s: Template ID"),e.id))}),(e=>{this.templates=(0,Y.u7)(e,this.templates)})))}saveTemplate(e){this.templates=(0,Y.u7)(e,this.templates),this.newTemplateAdded=!0}deleteTemplate(e){this.templates=(0,Y.Xc)(e,this.templates)}trashTemplate(e){this.templates=(0,Y.Uu)(e,this.templates,"trash")}restoreTemplate(e){this.templates=(0,Y.Uu)(e,this.templates,"publish")}async emptyTrash(){this.emptyingTrash=!0,await(0,M.Dq)(this.postType)&&(this.templates=(0,Y.zU)(this.templates),this.showTrash=!1),this.emptyingTrash=!1}get templateParentsWithoutTrashed(){return this.templates.filter((e=>"trash"!==e.status)).map((e=>({text:e.title,value:e.id})))}get templateName(){return this.postType===(0,J.dG)()?(0,$.__)("Template"):this.postType===(0,J.Yq)()?(0,$.__)("Footer"):this.postType===(0,J.d0)()?(0,$.__)("Header"):"breakdance_popup"===this.postType?(0,$.__)("Popup"):(0,$.__)("Unsupported template")}get templateNamePlural(){return this.postType===(0,J.dG)()?(0,$.__)("Templates"):this.postType===(0,J.Yq)()?(0,$.__)("Footers"):this.postType===(0,J.d0)()?(0,$.__)("Headers"):"breakdance_popup"===this.postType?(0,$.__)("Popups"):(0,$.__)("Unsupported templates")}get emptyStateData(){return{itemsByStatus:this.templatesByStatus.length,filteredItemsBySearch:this.filteredTemplatesBySearch.length,templateName:this.templateName,templateNamePlural:this.templateNamePlural,showTrash:this.showTrash}}get searchInputPlaceholder(){const e=this.templateNamePlural.toLowerCase();return(0,$.gB)((0,$.TZ)("Search for %s","%s: Template type name (plural)"),e)}beforeMount(){this.broadcastChannel=(0,ve.a)()}async mounted(){be.uq.register("b r e a k d a n c e",(()=>{this.hasPermissionToManageFallbacks=!this.hasPermissionToManageFallbacks})),this.isLoadingData=!0,(0,g.pipe)(await(0,M.rf)(this.postType),(0,v.fold)((()=>{Q.Z.log.message((0,$.__)("Couldn't load templates data"))}),(e=>{this.templates=e.templates,this.templatesManagementData=e.templatesManagementData,this.isWooCommerceActive=e.isWooCommerceActive,ne.PK.setDynamicFields(e.templatesManagementData.dynamicFields),ne.PK.setConditions(e.templatesManagementData.conditions),ne.PK.setEnvironment(e.environment)}))),this.isLoadingData=!1}beforeDestroy(){be.uq.unbind("b r e a k d a n c e"),this.broadcastChannel&&this.broadcastChannel.close()}getTemplateWithValidSettings(e){return{...e,settings:(0,g.pipe)(e.settings,b.V4.decode,(0,v.fold)((()=>fe),(e=>e)))}}handleTemplateCardModal(e,t){this.modalData={type:e,data:t}}};(0,c.gn)([(0,d.fI)()],ye.prototype,"postType",void 0),(0,c.gn)([(0,d.RL)("newTemplateAdded")],ye.prototype,"onTemplateAdded",null),ye=(0,c.gn)([(0,d.wA)({components:{Icon:P.Z,SearchInput:re.Z,Loading:ie.Z,Notifications:p.Z,EditTemplateModal:le.Z,AddTemplateDropdown:oe,TemplateRow:V,EmptyState:ge}})],ye);const ke=ye,fe={type:"none",ruleGroups:[]},Te=ke;var we=(0,I.Z)(Te,h,_,!1,null,null,null);const Ce=we.exports;var Be=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[e.isLoadingData?t("Loading"):e._e(),t("div",{staticClass:"manage-templates"},[t("div",{staticClass:"manage-templates__header"},[t("h1",{staticClass:"manage-templates__title"},[e._v(" "+e._s(e.showTrash?e.sprintf(e._xdoc("Deleted %s","Global Blocks","%s: Global blocks label"),e.$bdox("global_blocks")):e.$bdox("global_blocks"))+" ")]),e.showTrash?e._e():[t(u.Z,{staticClass:"breakdance-wp-admin-templating-button",attrs:{elevation:"0",outlined:""},on:{click:function(t){e.modalData={type:"add",data:e.blankGlobalBlock}}}},[e._v(" "+e._s(e.sprintf(e._xdoc("Add %s","Global Block","%s: Global block label"),e.$bdox("global_block")))+" ")])]],2),this.globalBlocksByStatus.length>0||this.filteredBlocksBySearch.length>0||e.trashLength>0||e.showTrash?t("div",{staticClass:"manage-templates__actions"},[t("div",{staticClass:"manage-templates__search"},[t("SearchInput",{attrs:{placeholder:e.__("Search blocks")},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1),e.trashLength||e.showTrash?t("div",{staticClass:"manage-templates__secondary-actions"},[e.showTrash&&this.globalBlocksByStatus.length?t(u.Z,{attrs:{text:"",loading:e.emptyingTrash},on:{click:e.emptyTrash}},[t("Icon",{staticClass:"mr-2",attrs:{icon:"TrashIcon",size:"16"}}),e._v(" "+e._s(e.__("Empty Trash"))+" ")],1):e._e(),e.trashLength||e.showTrash?t(u.Z,{staticClass:"mr-2",attrs:{text:""},on:{click:function(t){e.showTrash=!e.showTrash}}},[e.showTrash?[t("Icon",{staticClass:"mr-2",attrs:{icon:"ArrowLeftLongIcon",size:"16"}}),e._v(" "+e._s(e.__("Back"))+" ")]:[t("Icon",{staticClass:"mr-2",attrs:{icon:"TrashIcon",size:"16"}}),e._v(" "+e._s(e.sprintf(e.__("Trash (%d)"),e.trashLength))+" ")]],2):e._e()],1):e._e()]):e._e()]),t("EmptyState",{attrs:{value:e.emptyStateData}}),e.filteredBlocksBySearch.length>0?t(m.Z,{staticClass:"manage-templates__table breakdance-table",class:e.newBlockAdded?"added":""},[t("thead",[t("tr",[t("th",[e._v(e._s(e.__("Template")))]),t("th",[e._v(e._s(e.__("Shortcode")))])])]),t("transition-group",{attrs:{tag:"tbody",name:"fade",mode:"out-in"}},e._l(e.filteredBlocksBySearch,(function(a){return t("BlockRow",{key:a.id,class:e.newBlockAdded?"":"animation-disabled",attrs:{value:a},on:{input:function(t){e.modalData={type:"edit",data:t}},trash:e.trashBlock,delete:e.deleteBlock,restore:e.restoreBlock,save:e.saveBlockToWordPress}})})),1)],1):e._e(),e.modalData?t("EditGlobalBlockModal",{attrs:{value:e.modalData.data,mode:e.modalData.type,globalBlocks:e.globalBlocksByStatus},on:{input:function(t){return e.saveBlock(t)},close:function(t){e.modalData=!1}}}):e._e()],1)},Pe=[],Ze=a(90703),Se=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("tr",[t("td",[t("a",{staticClass:"manage-templates__title-link",attrs:{target:"_top",href:e.value.editInBreakdanceLink}},[e._v(" "+e._s(e.value.label)+" "),t("span",{staticClass:"manage-templates__title-id"},[e._v("#"+e._s(e.value.id))])]),t("div",{staticClass:"manage-templates__row-actions"},["publish"===e.mode?t("a",{staticClass:"manage-templates__btn-action",attrs:{href:e.value.editInBreakdanceLink,target:"_top",title:e.sprintf(e._doc("Edit in %s","%s: Plugin name"),e.$bdox("plugin_name"))}},[e._v(" "+e._s(e.sprintf(e._doc("Edit in %s","%s: Plugin name"),e.$bdox("plugin_name")))+" ")]):e._e(),"publish"===e.mode?t("button",{staticClass:"manage-templates__btn-action",on:{click:e.openEditBlockModal}},[e._v(" "+e._s(e.__("Settings"))+" ")]):e._e(),"publish"===e.mode?t("button",{staticClass:"manage-templates__btn-action",on:{click:e.duplicateBlock}},[e._v(" "+e._s(e.__("Duplicate"))+" ")]):e._e(),"trash"===e.mode?t("button",{staticClass:"manage-templates__btn-action",attrs:{title:e.__("Restore")},on:{click:e.restoreBlock}},[e._v(" "+e._s(e.__("Restore"))+" ")]):e._e(),t("button",{staticClass:"manage-templates__btn-action is-danger",attrs:{title:"publish"===e.mode?e.__("Trash"):e.__("Delete permanently")},on:{click:e.deleteBlock}},[e._v(" "+e._s("publish"===e.mode?e.__("Trash"):e.__("Delete permanently"))+" ")])])]),t("td",["breakdance"===e.builderMode?[t("input",{staticClass:"block-shortcode",attrs:{type:"text"},domProps:{value:`[breakdance_block blockId=${e.value.id}]`},on:{click:e.highlightValue}})]:e._e(),"oxygen"===e.builderMode?[t("input",{staticClass:"block-shortcode",attrs:{type:"text"},domProps:{value:`[oxygen_component blockId=${e.value.id}]`},on:{click:e.highlightValue}})]:e._e()],2)])},xe=[];let Ie=class extends s.ZP{constructor(){super(...arguments),this.deleteInProgress=!1,this.restoreInProgress=!1}openEditBlockModal(){this.$emit("input",this.value)}duplicateBlock(){const e=(0,C.Z)(this.value);e.id=-1,e.label=(0,$.gB)((0,$.H$)('Copy of "%s"',"Global Block","%s: Original block label"),e.label),this.$emit("save",e)}get builderMode(){return window.Breakdance.builderMode}async deleteBlock(){this.deleteInProgress=!0;const e=await(0,M.jZ)(this.value.label,this.value.id,this.value.status);e&&this.$emit("publish"===this.value.status?"trash":"delete",e),this.deleteInProgress=!1}async restoreBlock(){this.restoreInProgress=!0;const e=await(0,M.ZU)(this.value.label,this.value.id);e&&this.$emit("restore",e),this.restoreInProgress=!1}get mode(){return this.value.status}highlightValue(e){const t=()=>e.target.select();setTimeout((()=>{t()}),100)}};(0,c.gn)([(0,d.fI)()],Ie.prototype,"value",void 0),Ie=(0,c.gn)([(0,d.wA)({components:{Icon:P.Z}})],Ie);const De=Ie,Ae=De;var Me=(0,I.Z)(Ae,Se,xe,!1,null,null,null);const Le=Me.exports;var $e=a(87615);let Ge=class extends s.ZP{constructor(){super(...arguments),this.modalData=!1,this.globalBlocks=[],this.showTrash=!1,this.newBlockAdded=!1,this.emptyingTrash=!1,this.isLoadingData=!1,this.search="",this.broadcastChannel=null}onBlockAdded(){setTimeout((()=>this.newBlockAdded=!1),1e3)}get blankGlobalBlock(){return{label:"",id:-1,tree:!1,editInBreakdanceLink:"",status:"publish"}}async saveBlockToWordPress(e){(0,g.pipe)(await(0,$e.v_)(e),(0,v.fold)((()=>{Q.Z.log.message((0,$.gB)((0,$.__)("%s was not saved"),this.$bdox("global_block")))}),(e=>{this.saveBlock(e)})))}saveBlock(e){this.globalBlocks=(0,Y.u7)(e,this.globalBlocks),this.newBlockAdded=!0,this.search=""}deleteBlock(e){this.globalBlocks=(0,Y.Xc)(e,this.globalBlocks)}trashBlock(e){this.globalBlocks=(0,Y.Uu)(e,this.globalBlocks,"trash")}restoreBlock(e){this.globalBlocks=(0,Y.Uu)(e,this.globalBlocks,"publish")}async emptyTrash(){this.emptyingTrash=!0,await(0,M.Dq)((0,J.$M)())&&(this.globalBlocks=(0,Y.zU)(this.globalBlocks),this.showTrash=!1),this.emptyingTrash=!1}get emptyStateData(){return{itemsByStatus:this.globalBlocksByStatus.length,filteredItemsBySearch:this.filteredBlocksBySearch.length,templateName:this.$bdox("global_block"),templateNamePlural:this.$bdox("global_blocks"),showTrash:this.showTrash}}get filteredBlocksBySearch(){return this.globalBlocksByStatus.filter((e=>e.label.toLowerCase().includes(this.search.toLowerCase())))}get globalBlocksByStatus(){return this.globalBlocks.filter((e=>this.showTrash?"trash"===e.status:"publish"===e.status))}get trashLength(){return this.globalBlocks.filter((e=>"trash"===e.status)).length}beforeMount(){this.broadcastChannel=(0,ve.a)()}async mounted(){this.isLoadingData=!0,(0,g.pipe)(await(0,M.kt)(),(0,v.fold)((()=>{Q.Z.log.message((0,$.__)("Couldn't load blocks data"))}),(e=>{this.globalBlocks=e}))),this.isLoadingData=!1}beforeDestroy(){this.broadcastChannel&&this.broadcastChannel.close()}};(0,c.gn)([(0,d.RL)("newBlockAdded")],Ge.prototype,"onBlockAdded",null),Ge=(0,c.gn)([(0,d.wA)({components:{Icon:P.Z,SearchInput:re.Z,Loading:ie.Z,BlockRow:Le,EditGlobalBlockModal:Ze.Z,EmptyState:ge}})],Ge);const We=Ge,Ne=We;var Ee=(0,I.Z)(Ne,Be,Pe,!1,null,null,null);const Fe=Ee.exports;let Oe=class extends s.ZP{constructor(){super(...arguments),this.addingTemplate=!1}mounted(){(0,be.B6)(document),ne.PK.setSubscriptionMode(window.Breakdance.subscriptionMode)}get isBlockPostType(){return this.postType===(0,J.$M)()||"breakdance_acf_block"===this.postType}};(0,c.gn)([(0,d.fI)()],Oe.prototype,"postType",void 0),Oe=(0,c.gn)([(0,d.wA)({components:{ManageGlobalBlocks:Fe,ManageTemplates:Ce,Notifications:p.Z}})],Oe);const Ue=Oe,Ve=Ue;var Re=(0,I.Z)(Ve,i,r,!1,null,null,null);const je=Re.exports;var qe=a(74604),He=a(18082),ze=a(15855);s.ZP.directive("permission",qe.Z),s.ZP.config.productionTip=!1;const Xe=new URLSearchParams(window.parent.location.search).get("page");s.ZP.use(He.k,{getTranslations:He.F}),s.ZP.mixin(ze.L),new s.ZP({store:o["default"],vuetify:n.Z,render:e=>e(je,{props:{postType:Xe}})}).$mount("#manage-templates-wrapper")},67132:(e,t,a)=>{a.d(t,{Dq:()=>b,Qu:()=>p,UB:()=>u,ZU:()=>g,jZ:()=>_,kt:()=>h,rf:()=>m});var s=a(98851),o=a(48262),n=a(32521),l=a(9665),i=a(30902),r=a(45974),c=a(39664),d=a(65669);async function p(e){return await(0,s.D)({action:"breakdance_manage_templates_save",dataToPost:{id:e.id,title:e.title,postType:e.postType,settings:(0,d.J)(e.settings)},decoder:o.t0,resultKey:"data",friendlyName:"Save template"})}async function u(e){return await(0,s.D)({action:"breakdance_manage_templates_duplicate",dataToPost:{originalId:e.id,title:e.title,postType:e.postType,settings:(0,d.J)(e.settings)},decoder:o.t0,resultKey:"data",friendlyName:"Duplicate template"})}async function m(e){return await(0,s.D)({action:"breakdance_manage_templates_load_data",dataToPost:{post_type:e},decoder:o.YL,resultKey:"data",friendlyName:"Get templates data"})}async function h(){return await(0,s.D)({action:"breakdance_manage_global_blocks",decoder:l.GF,resultKey:"data",friendlyName:"Get global blocks data"})}async function _(e,t,a){if(confirm(`${"publish"===a?"Moving to trash":"Permanently deleting"} "${e}". Are you sure?`))return(0,i.pipe)(await(0,s.D)({action:"breakdance_manage_templates_delete",dataToPost:{id:t,trashOrDelete:"trash"===a?"delete":"trash"},decoder:n.i0("success"),resultKey:"data",friendlyName:`Deleting "${e}"`}),(0,r.fold)((()=>{c.Z.log.message(`Failed to delete "${e}"`)}),(()=>t)))}async function g(e,t){if(confirm(`Restoring "${e}". Are you sure?`))return(0,i.pipe)(await(0,s.D)({action:"breakdance_manage_templates_restore",dataToPost:{id:t},decoder:n.i0("success"),resultKey:"data",friendlyName:`Restoring ${e}`}),(0,r.fold)((()=>{c.Z.log.message(`Failed to restore "${e}"`)}),(()=>t)))}async function b(e){return!!confirm("Delete all trash permanently?")&&(0,i.pipe)(await(0,s.D)({action:"breakdance_manage_templates_empty_trash",dataToPost:{postType:e},decoder:n.i0("success"),resultKey:"data",friendlyName:`Emptying trash for ${e}`}),(0,r.fold)((()=>!1),(()=>!0)))}},47187:(e,t,a)=>{a.d(t,{Uu:()=>r,Xc:()=>i,aA:()=>d,u7:()=>l,zU:()=>c});var s=a(23128),o=a(18446),n=a.n(o);function l(e,t){const a=t.findIndex((t=>t.id===e.id)),o=(0,s.Z)(t);return-1!==a?o[a]=(0,s.Z)(e):o.unshift((0,s.Z)(e)),o}function i(e,t){const a=t.findIndex((t=>"id"in t&&t.id===e)),o=(0,s.Z)(t);return-1!==a&&o.splice(a,1),o}function r(e,t,a){const o=t.findIndex((t=>"id"in t&&t.id===e)),n=(0,s.Z)(t);return-1!==o&&(n[o].status=a),n}function c(e){return(0,s.Z)(e).filter((e=>"trash"!==e.status))}function d(e,t,a){const s=e.find((e=>n()(e.settings,t)));return!s||confirm(`You already have a ${a} with the same settings called "${s.title}". Continue anyway?`)}},48262:(e,t,a)=>{a.d(t,{V4:()=>d,YL:()=>b,t0:()=>h});var s=a(99697),o=a(47902),n=a(32521),l=a(88683),i=a(20918);const r=n.jV([n.dt({slug:n.Z_,label:n.Z_}),n.r$({defaultPriority:n.pk})]),c=(n.IX(n.dt({text:n.Z_,value:n.pk})),n.IX(n.dt({label:n.Z_,types:n.IX(r)}))),d=n.r$({parentId:n.pk,type:n.Z_,ruleGroups:n.IX(s.ZQ),triggers:s.Gc,priority:n.pk,disabled:n.O7,fallback:n.O7,onlyShowOnce:n.O7,avoidMultiple:n.O7,limitPageLoad:n.G0([n.pk,n.lB]),limitSession:n.G0([n.pk,n.lB]),limitForever:n.G0([n.pk,n.lB])}),p=n.G0([n.i0(i.AZ),n.i0(i.lM),n.i0(i.kl),n.i0(i.Nn),n.i0(i.WZ),n.i0(i.$v),n.i0(i.hF),n.i0(i.Zr),n.i0("breakdance_popup"),n.i0("breakdance_acf_block")]),u=n.dt({id:n.pk,title:n.Z_,editInBreakdanceLink:n.Z_,postType:p,status:n.G0([n.i0("publish"),n.i0("trash"),n.S1])}),m=n.jV([u,n.dt({settings:n.G0([d,n.lB])})]),h=n.jV([u,n.dt({settings:d})]),_=n.dt({text:n.Z_,value:n.Z_,proOnly:n.G0([n.S1,n.O7])}),g=n.dt({conditions:n.IX(s.dV),dynamicFields:n.IX(o.pG),templateTypeCategories:c,popupTriggers:n.G0([n.lB,n.IX(_)])}),b=n.dt({templates:n.IX(m),templatesManagementData:g,isWooCommerceActive:n.O7,environment:l.Pt})}},t={};function a(s){var o=t[s];if(void 0!==o)return o.exports;var n=t[s]={id:s,loaded:!1,exports:{}};return e[s].call(n.exports,n,n.exports,a),n.loaded=!0,n.exports}a.m=e,(()=>{var e=[];a.O=(t,s,o,n)=>{if(!s){var l=1/0;for(d=0;d<e.length;d++){for(var[s,o,n]=e[d],i=!0,r=0;r<s.length;r++)(!1&n||l>=n)&&Object.keys(a.O).every((e=>a.O[e](s[r])))?s.splice(r--,1):(i=!1,n<l&&(l=n));if(i){e.splice(d--,1);var c=o();void 0!==c&&(t=c)}}return t}n=n||0;for(var d=e.length;d>0&&e[d-1][2]>n;d--)e[d]=e[d-1];e[d]=[s,o,n]}})(),(()=>{a.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;return a.d(t,{a:t}),t}})(),(()=>{a.d=(e,t)=>{for(var s in t)a.o(t,s)&&!a.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})}})(),(()=>{a.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()})(),(()=>{a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{a.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e)})(),(()=>{a.j=93})(),(()=>{var e={93:0};a.O.j=t=>0===e[t];var t=(t,s)=>{var o,n,[l,i,r]=s,c=0;if(l.some((t=>0!==e[t]))){for(o in i)a.o(i,o)&&(a.m[o]=i[o]);if(r)var d=r(a)}for(t&&t(s);c<l.length;c++)n=l[c],a.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return a.O(d)},s=globalThis["webpackChunkbuilder"]=globalThis["webpackChunkbuilder"]||[];s.forEach(t.bind(null,0)),s.push=t.bind(null,s.push.bind(s))})();var s=a.O(void 0,[998,64],(()=>a(57241)));s=a.O(s)})();
//# sourceMappingURL=manage-templates.195fc8b9.js.map