1import{n as e}from"./61b66786.8BhlS34s.js";import{Ad as t,An as n,Cn as r,En as i,Fd as a,Ln as o,Pd as s,Rl as c,Rn as l,Sd as u,Sn as d,Tn as f,_n as p,an as m,ap as h,bn as g,cc as _,cr as v,dn as y,dp as ee,fn as te,fp as ne,gn as re,hn as ie,in as ae,kd as oe,kn as se,lc as ce,mn as le,on as ue,op as b,pn as de,sc as fe,sr as pe,uc as me,un as x,vn as he,wn as ge,xd as S,xn as _e,yn as ve,zl as ye}from"./027ffcfc.eLkoaQ3Q.js";import{J as be,f as C,r as w}from"./ce65bdc9.BVjkH_eL.js";import{F as xe,H as Se,I as Ce,L as we,M as Te,P as Ee,R as De,_ as Oe,y as ke,z as Ae}from"./15330c0f.BoXUDCbg.js";import{n as je,t as Me}from"./5ef32845.CXT5upP2.js";import{mapGetters as T,mapMutations as E,mapState as D}from"https://js-c.etc4.com/dxb/js/vuex.DhHkobAa.js";import{Fragment as O,createBlock as k,createCommentVNode as A,createElementBlock as j,createElementVNode as M,createTextVNode as N,createVNode as P,normalizeStyle as Ne,openBlock as F,renderList as I,resolveComponent as L,resolveDirective as Pe,toDisplayString as R,withCtx as z,withDirectives as Fe}from"https://js-c.etc4.com/dxb/js/vue.CQKD6T8K.js";import{mapFields as Ie}from"https://js-c.etc4.com/dxb/js/vuex-map-fields.BoHiwyfx.js";
1function Le(e,t,n,r,i,a){let o=L(`Switch`),s=L(`AttrPanel`),c=L(`Input`),l=L(`Option`),u=L(`Select`),d=L(`ColorPicker`),f=L(`InputNumber`),p=L(`DxbIcon`),m=L(`AttrToggleIcon`),h=L(`Tooltip`),g=L(`AttrGreyBox`),_=L(`Slider`),v=L(`DxbLabelItem`);return F(),j(`div`,V,[P(s,{title:`å¯¼èªæ¨¡å`},{titleBar:z(()=>[P(o,{modelValue:a.modalNavigation_isUsed,"onUpdate:modelValue":t[0]||=e=>a.modalNavigation_isUsed=e},null,8,[`modelValue`])]),_:1}),a.modalNavigation_isUsed?(F(),j(O,{key:0},[P(c,{modelValue:a.modalNavigation_title,"onUpdate:modelValue":t[1]||=e=>a.modalNavigation_title=e,placeholder:`è¾å
¥å¯¼èªåç§°`,autofocus:``},null,8,[`modelValue`]),P(s,{title:`æå设置`},{default:z(()=>[P(u,{modelValue:a.contentStyle_fontFamily,"onUpdate:modelValue":t[2]||=e=>a.contentStyle_fontFamily=e,size:`large`},{default:z(()=>[(F(!0),j(O,null,I(i.fontList,e=>(F(),k(l,{key:e.id,value:e.value},{default:z(()=>[N(R(e.value),1)]),_:2},1032,[`value`]))),128))]),_:1},8,[`modelValue`]),M(`div`,H,[M(`div`,U,[P(d,{modelValue:a.contentStyle_color,"onUpdate:modelValue":t[3]||=e=>a.contentStyle_color=e,transfer:``,class:`DxbColorPicker`,size:`large`},null,8,[`modelValue`])]),P(f,{modelValue:a.contentStyle_fontSize,"onUpdate:modelValue":t[4]||=e=>a.contentStyle_fontSize=e,size:`large`},null,8,[`modelValue`])]),P(g,{style:{padding:`8px 20px`},class:`flex-row-between`},{default:z(()=>[P(h,{content:`å ç²`,placement:`bottom`,transfer:``},{default:z(()=>[P(m,{"model-value":a.contentStyle_fontStyle_bool===700,onClick:t[5]||=e=>a.contentStyle_fontWeight_bool=a.contentStyle_fontWeight_bool===400?700:400},{default:z(()=>[P(p,{name:`iconjiacu`})]),_:1},8,[`model-value`])]),_:1}),P(h,{content:`æä½`,placement:`bottom`,transfer:``},{default:z(()=>[P(m,{"model-value":a.contentStyle_fontStyle_bool===`italic`,onClick:t[6]||=e=>a.contentStyle_fontStyle_bool=a.contentStyle_fontStyle_bool===`italic`?`normal`:`italic`},{default:z(()=>[P(p,{name:`iconitalic`})]),_:1},8,[`model-value`])]),_:1}),P(h,{content:`ä¸å线`,placement:`bottom`,transfer:``},{default:z(()=>[P(m,{"model-value":a.contentStyle_textDecoration_bool===`underline`,onClick:t[7]||=e=>a.contentStyle_textDecoration_bool=a.contentStyle_textDecoration_bool===`underline`?`none`:`underline`},{default:z(()=>[P(p,{name:`iconUnderline`})]),_:1},8,[`model-value`])]),_:1}),P(h,{content:`å é¤çº¿`,placement:`bottom`,transfer:``},{default:z(()=>[P(m,{"model-value":a.contentStyle_textDecoration_bool===`line-through`,onClick:t[8]||=e=>a.contentStyle_textDecoration_bool=a.contentStyle_textDecoration_bool===`line-through`?`none`:`line-through`},{default:z(()=>[P(p,{name:`icon-zhonghuaxian`,size:`23`})]),_:1},8,[`model-value`])]),_:1})]),_:1}),P(g,{style:{padding:`8px 20px`},class:`flex-row-between`},{default:z(()=>[P(h,{content:`左对é½`,placement:`bottom`,transfer:``},{default:z(()=>[P(m,{"model-value":a.contentStyle_textAlign===`left`,onClick:t[9]||=e=>a.contentStyle_textAlign=a.contentStyle_textAlign===`left`?`unset`:`left`},{default:z(()=>[P(p,{name:`iconjuzuoduiqi`})]),_:1},8,[`model-value`])]),_:1}),P(h,{content:`å±
ä¸å¯¹é½`,placement:`bottom`,transfer:``},{default:z(()=>[P(m,{"model-value":a.contentStyle_textAlign===`center`,onClick:t[10]||=e=>a.contentStyle_textAlign=a.contentStyle_textAlign===`center`?`unset`:`center`},{default:z(()=>[P(p,{name:`iconjuzhongduiqi`})]),_:1},8,[`model-value`])]),_:1}),P(h,{content:`å³å¯¹é½`,placement:`bottom`,transfer:``},{default:z(()=>[P(m,{"model-value":a.contentStyle_textAlign===`right`,onClick:t[11]||=e=>a.contentStyle_textAlign=a.contentStyle_textAlign===`right`?`unset`:`right`},{default:z(()=>[P(p,{name:`iconjuyouduiqi`})]),_:1},8,[`model-value`])]),_:1}),P(h,{content:`两端对é½`,placement:`bottom`,transfer:``},{default:z(()=>[P(m,{"model-value":a.contentStyle_textAlign===`justify`,onClick:t[12]||=e=>a.contentStyle_textAlign=a.contentStyle_textAlign===`justify`?`unset`:`justify`},{default:z(()=>[P(p,{name:`iconliangduanduiqi`})]),_:1},8,[`model-value`])]),_:1})]),_:1})]),_:1}),P(s,{title:`è¾¹è·è®¾ç½®`},{default:z(()=>[P(v,{label:`å¤è¾¹è·`,"min-width":`55`},{default:z(()=>[M(`div`,W,[P(_,{modelValue:a.titleStyle_margin,"onUpdate:modelValue":t[13]||=e=>a.titleStyle_margin=e,style:{width:`80px`},class:`mr-2.5`,max:100},null,8,[`modelValue`]),P(f,{modelValue:a.titleStyle_margin,"onUpdate:modelValue":t[14]||=e=>a.titleStyle_margin=e,size:`small`,min:0,max:100},null,8,[`modelValue`])])]),_:1}),P(v,{label:`å
è¾¹è·`,"min-width":`55`},{default:z(()=>[M(`div`,G,[P(_,{modelValue:a.titleStyle_padding,"onUpdate:modelValue":t[15]||=e=>a.titleStyle_padding=e,style:{width:`80px`},class:`mr-2.5`,max:100},null,8,[`modelValue`]),P(f,{modelValue:a.titleStyle_padding,"onUpdate:modelValue":t[16]||=e=>a.titleStyle_padding=e,size:`small`,min:0,max:100},null,8,[`modelValue`])])]),_:1})]),_:1}),P(s,{title:`䏿¡çº¿è®¾ç½®`},{default:z(()=>[P(u,{modelValue:a.contentStyle_borderBottomStyle,"onUpdate:modelValue":t[17]||=e=>a.contentStyle_borderBottomStyle=e,size:`large`},{default:z(()=>[(F(!0),j(O,null,I(i.borderList,(e,t)=>(F(),k(l,{key:t,value:e.code},{default:z(()=>[N(R(e.name),1)]),_:2},1032,[`value`]))),128))]),_:1},8,[`modelValue`]),a.contentStyle_borderBottomStyle===`none`?A(``,!0):(F(),j(O,{key:0},[M(`div`,K,[P(_,{modelValue:a.contentStyle_borderBottomWidth,"onUpdate:modelValue":t[18]||=e=>a.contentStyle_borderBottomWidth=e,style:{width:`calc(100% - 100px)`},class:`mr-2.5`,max:100},null,8,[`modelValue`]),P(f,{modelValue:a.contentStyle_borderBottomWidth,"onUpdate:modelValue":t[19]||=e=>a.contentStyle_borderBottomWidth=e,size:`small`,min:0,max:100},null,8,[`modelValue`])]),P(d,{modelValue:a.contentStyle_borderBottomColor,"onUpdate:modelValue":t[20]||=e=>a.contentStyle_borderBottomColor=e,transfer:``,class:`DxbColorPicker`,size:`large`},null,8,[`modelValue`])],64))]),_:1})],64)):A(``,!0)])}var B,V,H,U,W,G,K,q;function J(){return(J=e((()=>{i(),v(),ge(),_e(),g(),u(),B={name:`AttrNavigation`,components:{AttrToggleIcon:r,AttrGreyBox:f,AttrPanel:pe},data(){return{fontList:d,borderList:[{name:`æ `,code:`none`},{name:`å®çº¿`,code:`solid`},{name:`è线`,code:`dashed`},{name:`ç¹çº¿`,code:`dotted`}]}},computed:{...D(`renovationDetailRobot_Alibaba`,[`EditorData`,`nodes`,`activeModal`]),navigation:{get(){return this.EditorData.navigation},set(e){this.SET_EDITOR_PROPERTY({property:{"EditorData.navigation":Object.assign({},this.navigation,e)}})}},modalNavigation:{get(){return this.activeModal.modalNavigation},set(e){this.SET_EDITOR_PROPERTY({property:{"activeModal.modalNavigation":Object.assign({},this.modalNavigation,e)}})}},modalNavigation_isUsed:{get(){return this.modalNavigation.isUsed},set(e){this.modalNavigation={isUsed:e}}},modalNavigation_title:{get(){return this.modalNavigation.title},set(e){this.modalNavigation={title:e}}},titleStyle:{get(){return this.navigation.titleStyle},set(e){this.navigation={titleStyle:Object.assign({},this.titleStyle,e)}}},contentStyle:{get(){return this.navigation.contentStyle},set(e){this.navigation={contentStyle:Object.assign({},this.contentStyle,e)}}},contentStyle_fontFamily:{get(){return this.contentStyle.fontFamily},set(e){this.contentStyle={fontFamily:e}}},contentStyle_backgroundColor:{get(){return this.contentStyle.backgroundColor||`#fff`},set(e){this.contentStyle={backgroundColor:e}}},contentStyle_color:{get(){return this.contentStyle.color||`#000`},set(e){this.contentStyle={color:e}}},contentStyle_fontSize:{get(){return Number.parseInt(this.contentStyle.fontSize||`20px`)},set(e){this.contentStyle={fontSize:`${e}px`}}},titleStyle_margin:{get(){return Number.parseInt(this.titleStyle.marginTop||0)},set(e){this.titleStyle={marginTop:`${e}px`,marginBottom:`${e}px`}}},titleStyle_padding:{get(){return Number.parseInt(this.titleStyle.paddingTop||0)},set(e){this.titleStyle={paddingTop:`${e}px`,paddingBottom:`${e}px`}}},contentStyle_fontStyle_bool:{get(){return this.contentStyle.fontStyle},set(e){this.contentStyle={fontStyle:e}}},contentStyle_fontWeight_bool:{get(){return this.contentStyle.fontWeight||400},set(e){this.contentStyle={fontWeight:e}}},contentStyle_borderBottomStyle:{get(){return this.contentStyle.borderBottomStyle||`solid`},set(e){this.contentStyle={borderBottomStyle:e||`solid`}}},contentStyle_borderBottomWidth:{get(){return Number.parseInt(this.contentStyle.borderBottomWidth)||1},set(e){this.contentStyle={borderBottomWidth:`${e}px`}}},contentStyle_borderBottomColor:{get(){return this.contentStyle.borderBottomColor||`#000`},set(e){this.contentStyle={borderBottomColor:e}}},contentStyle_textDecoration_bool:{get(){return this.contentStyle.textDecoration||`none`},set(e){this.contentStyle={textDecoration:e}}},contentStyle_textAlign:{get(){return this.contentStyle.textAlign||`left`},set(e){this.contentStyle={textAlign:e}}}},methods:{...E(`renovationDetailRobot_Alibaba`,[`SET_EDITOR_PROPERTY`])}},V={class:`Attr_Navigation`},H={class:`flex-row-margin`},U={style:{width:`50%`}},W={class:`flex-center`},G={class:`flex-center`},K={class:`flex-center`},q=S(B,[[`render`,Le],[`__scopeId`,`data-v-032da0b1`]])})))()}function Re(e,t,n,r,i,a){let o=L(`Input`),s=L(`DxbIcon`),c=L(`Button`),l=L(`Badge`),u=L(`Col`),d=L(`StatusSpan`),f=L(`DxbLinkBtn`),p=L(`Tooltip`),m=L(`Icon`),h=L(`DropdownItem`),g=L(`DropdownMenu`),_=L(`Dropdown`),v=L(`Row`),y=Pe(`img`);return F(),k(v,{"class-name":`xui-header-container flex-center`,style:Ne({height:`${e.headerHeight}px`})},{default:z(()=>[P(u,{span:`8`},{default:z(()=>[M(`div`,X,[M(`a`,{class:`editor-logo`,href:i.baseUrl},[Fe(M(`img`,{src:e.$config.blackLogo}
1,null,8,Q),[[y]])],8,Z),e.isEditModule?A(``,!0):(F(),k(o,{key:0,modelValue:e.templateName,"onUpdate:modelValue":t[0]||=t=>e.templateName=t,class:`ml20`,style:{width:`150px`},size:`small`,placeholder:`è¾å
¥æ¨¡æ¿åç§°`},null,8,[`modelValue`])),P(l,{text:`new`},{default:z(()=>[P(c,{onClick:e.handleAllImageProcess},{default:z(()=>[P(s,{size:`14`,name:`iconmagic-full`}),t[14]||=N(` å
¨å±å¾çå¤ç `,-1)]),_:1},8,[`onClick`])]),_:1}),[`designerAddTemplate`,`designerEditTemplate`,`newTemplate`,`addTemplate`].includes(e.RouterData.editType)?(F(),j(`div`,$,[P(c,{onClick:a.show},{default:z(()=>[...t[15]||=[N(` éé线ä¸è¯¦æ
`,-1)]]),_:1},8,[`onClick`])])):A(``,!0)])]),_:1}),P(u,{span:`8`},{default:z(()=>[M(`div`,ze,[P(d,{label:`详æå符æ°`,num:5e4,compute:e.nodesDetailCharCount+e.nodesNavDetailCharCount},{default:z(()=>[...t[16]||=[N(` 5ä¸ `,-1)]]),_:1},8,[`compute`]),P(d,{label:`å¾çæ°é`,num:30,compute:a.nodesDetailImageCount},null,8,[`compute`]),e.isEditModule?A(``,!0):(F(),k(d,{key:0,label:`å¯¼èªæ°é`,num:8,compute:e.nodesDetailNavCount},null,8,[`compute`])),e.nodesHasChineseChars.flat(1/0).length?(F(),k(p,{key:1,transfer:``,theme:`light`},{content:z(()=>[M(`div`,null,[(F(!0),j(O,null,I(e.nodesHasChineseChars,(t,n)=>(F(),j(O,{key:`${n}`},[t.length?(F(),j(`div`,Be,[M(`div`,Ve,[M(`span`,null,R(`模å-${n+1}: `),1),M(`div`,He,[(F(!0),j(O,null,I(t,(t,r)=>(F(),k(f,{key:`${r}`,onClick:t=>e.SELECT_ACTIVE_MODAL_OF_INDEX(n)},{default:z(()=>[N(R(t),1)]),_:2},1032,[`onClick`]))),128))])])])):A(``,!0)],64))),128))])]),default:z(()=>[P(d,{label:`䏿æ°é`,num:0,compute:e.nodesHasChineseChars.flat(1/0).length},null,8,[`compute`])]),_:1})):A(``,!0)])]),_:1}),P(u,{span:`8`},{default:z(()=>[M(`div`,Ue,[P(c,{class:`large_btn`,onClick:t[1]||=e=>a.backModal()},{default:z(()=>[...t[17]||=[N(` è¿å `,-1)]]),_:1}),e.isAdmin?A(``,!0):(F(),k(c,{key:0,class:`large_btn`,onClick:t[2]||=t=>e.openGeneralInformation(e.storeId)},{default:z(()=>[...t[18]||=[N(` éç¨ä¿¡æ¯ `,-1)]]),_:1})),e.isAdmin&&e.RouterData.editType===`designerAddTemplate`?(F(),k(c,{key:1,class:`large_btn`,type:`primary`,onClick:a.uploadToOfficialTemplate},{default:z(()=>[...t[19]||=[N(` ä¸ä¼ 模æ¿ä¸å¿ `,-1)]]),_:1},8,[`onClick`])):A(``,!0),e.isAdmin&&e.RouterData.editType===`designerEditTemplate`?(F(),k(c,{key:2,class:`large_btn`,type:`primary`,onClick:a.saveToTemplateDesigner},{default:z(()=>[...t[20]||=[N(` ä¿åæ¨¡æ¿ `,-1)]]),_:1},8,[`onClick`])):A(``,!0),e.isAdmin&&e.RouterData.editType===`designerEditModule`?(F(),k(c,{key:3,class:`large_btn`,type:`primary`,onClick:a.saveToDesignerModule},{default:z(()=>[...t[21]||=[N(` ä¿å模å `,-1)]]),_:1},8,[`onClick`])):A(``,!0),[`newTemplate`,`addTemplate`].includes(e.RouterData.editType)?(F(),k(c,{key:4,class:`large_btn`,type:`primary`,onClick:t[3]||=t=>a.saveToTemplateDiy(e.RouterData.editType)},{default:z(()=>[...t[22]||=[N(` ä¿åæ¨¡æ¿ `,-1)]]),_:1})):A(``,!0),e.RouterData.editType===`editTemplate`?(F(),k(_,{key:5,style:{"margin-left":`20px`},transfer:``},{list:z(()=>[P(g,null,{default:z(()=>[P(h,{onClick:t[4]||=e=>a.editToTemplateDiy(0)},{default:z(()=>[...t[24]||=[N(` ä¿åä¿®æ¹ `,-1)]]),_:1}),P(h,{onClick:t[5]||=e=>a.editToTemplateDiy(1)},{default:z(()=>[...t[25]||=[N(` å¦åæ¨¡æ¿ `,-1)]]),_:1})]),_:1})]),default:z(()=>[P(c,{class:`large_btn`,type:`primary`},{default:z(()=>[t[23]||=N(` ä¿åæ¨¡æ¿ `,-1),P(m,{type:`ios-arrow-down`})]),_:1})]),_:1})):A(``,!0),e.RouterData.editType===`userEditModuleOfDesignerModule`?(F(),k(c,{key:6,class:`large_btn`,type:`primary`,onClick:a.saveToUserModule},{default:z(()=>[...t[26]||=[N(` ä¿å模å `,-1)]]),_:1},8,[`onClick`])):A(``,!0),e.RouterData.editType===`userEditModuleOfUserModule`?(F(),k(_,{key:7,style:{"margin-left":`20px`},transfer:``},{list:z(()=>[P(g,null,{default:z(()=>[P(h,{onClick:t[6]||=e=>a.editToModuleDiy(0)},{default:z(()=>[...t[28]||=[N(` ä¿åä¿®æ¹ `,-1)]]),_:1}),P(h,{onClick:t[7]||=e=>a.editToModuleDiy(1)},{default:z(()=>[...t[29]||=[N(` å¦å模å `,-1)]]),_:1})]),_:1})]),default:z(()=>[P(c,{class:`large_btn`,type:`primary`},{default:z(()=>[t[27]||=N(` ä¿å模å `,-1),P(m,{type:`ios-arrow-down`})]),_:1})]),_:1})):A(``,!0),e.RouterData.editType===`editGoods`?(F(),j(O,{key:8},[e.isModal?(F(),k(c,{key:0,class:`large_btn`,type:`primary`,onClick:t[8]||=e=>a.updateGoodsDetail(!1)},{default:z(()=>[...t[30]||=[N(` ä¿å详æ
`,-1)]]),_:1})):(F(),k(_,{key:1,style:{"margin-left":`20px`},transfer:``},{list:z(()=>[P(g,null,{default:z(()=>
1[P(h,{onClick:t[10]||=e=>a.updateGoodsDetail(!1)},{default:z(()=>[...t[32]||=[N(` ä¿å详æ
`,-1)]]),_:1}),P(h,{onClick:t[11]||=e=>a.updateGoodsDetail(!0)},{default:z(()=>[...t[33]||=[N(` åå¸è¯¦æ
`,-1)]]),_:1})]),_:1})]),default:z(()=>[P(c,{class:`large_btn`,type:`primary`,onClick:t[9]||=e=>a.updateGoodsDetail(!1)},{default:z(()=>[t[31]||=N(` ä¿å详æ
`,-1),P(m,{type:`ios-arrow-down`})]),_:1})]),_:1}))],64)):A(``,!0),P(c,{class:`large_btn`,type:`primary`,onClick:t[12]||=t=>e.showPreviewModal(e.nodes)},{default:z(()=>[...t[34]||=[N(` é¢è§ `,-1)]]),_:1}),e.tester?(F(),j(`div`,We,[t[37]||=M(`p`,{class:`tipText`},` å
é¨ä½¿ç¨ `,-1),M(`div`,Ge,[P(c,{size:`small`,onClick:t[13]||=t=>e.handleImport()},{default:z(()=>[...t[35]||=[N(` 导å
¥ `,-1)]]),_:1}),P(c,{size:`small`,onClick:e.handleExport},{default:z(()=>[...t[36]||=[N(` å¯¼åº `,-1)]]),_:1},8,[`onClick`])])])):A(``,!0)])]),_:1})]),_:1},8,[`style`])}var Y,X,Z,Q,$,ze,Be,Ve,He,Ue,We,Ge,Ke;function qe(){return(qe=e((()=>{re(),le(),ee(),o(),Oe(),de(),y(),je(),se(),ve(),ce(),m(),c(),s(),t(),be(),h(),ae(),u(),Y={name:`EditorHeader`,components:{StatusSpan:ue},mixins:[Me,he,n,ye,ie,p],data(){return{baseUrl:`/`}},computed:{...T(`user_store`,[`isAdmin`]),...Ie(`renovationDetailRobot_Alibaba`,[`EditorData.templateName`,`EditorData`,`activeModal`,`nodes`,`RouterData.isModal`,`RouterData.goodsType`]),...D(`renovationDetailRobot_Alibaba`,[`headerHeight`,`storeId`,`RouterData`,`templateDefaultCover`]),...T(`renovationDetailRobot_Alibaba`,[`nodesDetailCharCount`,`nodesDetailImageUrls`,`nodesDetailNavCount`,`nodesHasChineseChars`,`nodesNavDetailCharCount`,`isDesignerTemplate`,`isUserGoods`,`isUserTemplate`,`isEditModule`]),nodesDetailImageCount(){return this.nodesDetailImageUrls.length}},async created(){},mounted(){this.checkStoreId()},methods:{...E(`renovationDetailRobot_Alibaba`,[`SELECT_ACTIVE_MODAL_OF_INDEX`,`SELECT_ACTIVE_MODAL`,`ADD_NEW_MODAL`]),checkStoreId(){this.isAdmin||this.storeId||(b.warning({duration:2,content:`没æåºéºä¿¡æ¯ï¼`}),this.timer=setTimeout(()=>{this.back()},2e3))},back(){window.onbeforeunload=null,this.isModal?this.$emit(`closeModal`):window.close()},backModal(){this.$Modal.warning({title:`æç¤º`,content:`å³å°ç¦»å¼å½å页é¢, æ¨æåçç¼è¾å°ä¸ä¼è¢«ä¿åï¼ç¡®è®¤ç¦»å¼?`,closable:!0,onOk:()=>{window.onbeforeunload=null,this.isModal?this.$emit(`closeModal`):window.close()}})},backAwait(e=`åå¤ç¦»å¼å½å页é¢`,t=`warning`,n=1){this.$Message[t]({content:e,duration:n}),this.timer=setTimeout(()=>{window.onbeforeunload=null,this.isModal?this.$emit(`closeModal`):window.close()},n*1e3)},checkTemplate(){return this.nodesDetailCharCount>45e3?(b.warning({content:`详æ
å符æ°è¶
åºåå¸ä¸éï¼å¹¶ä¸ä¼å½±åå°å¥ç¨åçå®é
å符æ°ï¼è¯·é
æ
æ§å¶å符æ°å¨4.5ä¸ä¹å
ï¼`,duration:5}),!1):this.nodesDetailImageCount>30?(b.warning({content:`详æ
å¾çæ°è¶
åºåå¸ä¸éï¼è¯·å é¤è¶
åºé¨åï¼`,duration:5}),!1):this.nodesDetailNavCount>8?(b.warning({content:`详æ
å¯¼èªæ°è¶
åºåå¸ä¸éï¼è¯·å é¤è¶
åºé¨åï¼`,duration:5}),!1):this.nodesHasChineseChars.flat(1/0).length>0?(b.warning({content:`详æ
ä¸åºç°ä¸æï¼è¯·æ¸
çä¸ææ°æ®ï¼`,duration:5}),!1):!0},uploadToOfficialTemplate(){if(!this.isAdmin){b.warning(`æ¨çè´¦å·æ²¡ææéä¸ä¼ 宿¹æ¨¡æ¿ï¼è¯·è系管çåï¼`);return}if(!this.checkTemplate())return;let{templateName:e,templateCover:t,templateTrade:n}=this.EditorData;this.$DxbModal.confirm({width:550,render:x,headTitle:`ä¸ä¼ 模æ¿`,footerShow:!1,props:{props:{name:e,cover:t,trade:n}},onOk:e=>{this.EditorData=Object.assign(C(this.EditorData),e),Se({templateContent:JSON.stringify({EditorData:this.EditorData,nodes:this.nodes}),templateName:e.templateName,thumbnailImg:e.templateCover,tradeId:w.last(e.templateTrade).value}).then(()=>{b.info(`模æ¿ä¸ä¼ 宿ï¼`),this.$Modal.confirm({title:`æ¯å¦çä¸ç»§ç»ç¼è¾ï¼`,content:`ç»§ç»ç¼è¾ï¼ä¹åçæ¨¡æ¿ä¸ä¼è¢«æ¸
空ï¼å¯å次ä¸ä¼ 为æ°ç模æ¿ï¼`,okText:`çä¸`,cancelText:`离å¼`,onCancel:()=>{this.back()}})})}})}
1,saveToTemplateDesigner(){if(!this.isAdmin){b.warning(`æ¨çè´¦å·æ²¡ææéä¿®æ¹å®æ¹æ¨¡æ¿ï¼è¯·è系管çåï¼`);return}if(!this.checkTemplate())return;let{templateName:e,templateCover:t,templateTrade:n,id:r}=this.EditorData;this.$DxbModal.confirm({width:550,render:x,headTitle:`ä¿®æ¹æ¨¡æ¿`,footerShow:!1,props:{props:{name:e,cover:t,trade:n}},onOk:e=>{this.EditorData=Object.assign(C(this.EditorData),e),Ae({id:r,templateContent:JSON.stringify({EditorData:this.EditorData,nodes:this.nodes}),templateName:e.templateName,thumbnailImg:e.templateCover,tradeId:w.last(e.templateTrade).value}).then(()=>{b.info(`模æ¿ä¿®æ¹å·²ä¿åï¼`),this.$Modal.confirm({title:`æ¯å¦çä¸ç»§ç»ç¼è¾ï¼`,okText:`çä¸`,cancelText:`离å¼`,onCancel:()=>{this.back()}})})}})},saveToDesignerModule(){let{modalType:e,modalName:t,modalCover:n=``,modalId:r,id:i}=this.activeModal;this.$DxbModal.confirm({width:550,render:te,headTitle:`ä¿å模å`,footerShow:!1,props:{props:{type:e,name:t,url:n}},onOk:e=>{this.activeModal=Object.assign(C(this.activeModal),e),Ee({id:i,moduleContent:JSON.stringify(this.activeModal),moduleName:e.modalName,thumbnailImg:e.modalCover,classificationId:w.last(e.modalType).value}).then(e=>{this.backAwait(`模åå·²ä¿åï¼ï¼åå¤ç¦»å¼å½å页é¢`,`info`)})}})},saveToUserModule(){if(!this.checkTemplate())return;let{modalName:e,modalCover:t=``,modalId:n,id:r}=this.activeModal;we({id:r,moduleContent:JSON.stringify(this.activeModal),moduleName:e,thumbnailImg:t}).then(e=>{this.backAwait(`模åå·²ä¿åï¼ï¼åå¤ç¦»å¼å½å页é¢`,`info`)})},async handleGenCover(e,t){this.handleInitProgress(),this.handleUpdateProgress(`æ£å¨çæè¯¦æ
å°é¢ï¼`);try{let n=document.getElementById(`previewDom`),r=await oe(n,.3,{dataType:`blob`});e=(await a({file:r,diyFileName:t})).url}catch{e=this.templateDefaultCover}return this.handleDestroyProgress(),Promise.resolve(e)},async saveToTemplateDiy(e){if(!this.checkTemplate())return;let{templateName:t,templateCover:n,id:r}=this.EditorData;n=await this.handleGenCover(n,`详æ
æºå¨äººæ¨¡æ¿å°é¢-${t}`),De({id:e===`newTemplate`?-1:r,templateContent:JSON.stringify({EditorData:this.EditorData,nodes:this.nodes}),templateName:t,thumbnailImg:n||this.templateDefaultCover}).then(()=>{b.info(`模æ¿å·²ä¿åï¼`),this.$Modal.confirm({title:`æ¯å¦çä¸ç»§ç»ç¼è¾ï¼`,content:`ç»§ç»ç¼è¾ï¼ä¹åçæ¨¡æ¿ä¸ä¼è¢«æ¸
空ï¼å¯å次ä¸ä¼ 为æ°ç模æ¿ï¼`,okText:`çä¸`,cancelText:`离å¼`,onCancel:()=>{this.back()}})})},async editToTemplateDiy(e){if(!this.checkTemplate())return;let{templateName:t,templateCover:n,id:r}=this.EditorData;n=await this.handleGenCover(n,`详æ
æºå¨äººæ¨¡æ¿å°é¢-${t}`),Ce({id:r,templateContent:JSON.stringify({EditorData:this.EditorData,nodes:this.nodes}),templateName:t,thumbnailImg:n,saveType:e}).then(()=>{this.backAwait(`模æ¿å·²ä¿åï¼`,`info`)})},async editToModuleDiy(e){if(!this.checkTemplate())return;let{modalName:t,modalCover:n=``,modalId:r,id:i}=this.activeModal;n=await this.handleGenCover(n,`详æ
æºå¨äººæ¨¡åå°é¢-${t}`),xe({id:i,saveType:e,moduleContent:JSON.stringify(this.activeModal),moduleName:t,thumbnailImg:n}).then(e=>{this.backAwait(`模åå·²ä¿åï¼ï¼åå¤ç¦»å¼å½å页é¢`,`info`)})},updateGoodsDetail(e=!1){let{goodsId:t}=this.RouterData,{nodes:n,detail:r}=this.generateDetail(this.nodes,this.EditorData);e?ke({goodsId:t,html:r,json:JSON.stringify({EditorData:this.EditorData,nodes:n}),applyType:this.goodsType}).then(()=>{this.backAwait(`åå¸ä¸,请å°åå¸å表æ¥çå叿¥å¿ï¼`,`info`,1)}):Te({goodsId:t,html:r,json:JSON.stringify({EditorData:this.EditorData,nodes:n}),applyType:this.goodsType}).then(()=>{this.backAwait(`åå详æ
å·²ä¿åï¼`,`info`,1)})},generateDetail(e,t){let n=``,{navDetail:r}=t.navigation,i=C(e).map((e,t)=>{let{isUsed:i,title:a}=e.modalNavigation,{modalDetail:o}=e,s=``;return s=me(o,this.flagData),e.modalDetail=s,n+=i&&a?_({html:r,genDetail:!1,navName:a,dxbDetail:s}):s,e});return n=fe(n),{nodes:i,detail:n}},show(){l().then(e=>{ne(e,e=>{this.ADD_NEW_MODAL({setting:{modalDetail:e},autoId:!0})})})}}},X={class:`xui-header-container__left flex-row-margin`},Z=[`href`],Q=[`src`],$={key:1,class:`onlineDetail2Module`},ze={class:`xui-header-container__center flex-row-center flex-margin-l`},Be={key:0},Ve={class:`flex-row-margin-small`,style:{"align-items":`flex-start`}}
1,He={class:`flex-row-margin-small wrap`},Ue={class:`xui-header-container__right flex-row-margin`},We={key:9,class:`flex-col`},Ge={class:`flex-row-margin-small`},Ke=S(Y,[[`render`,Re],[`__scopeId`,`data-v-df22812c`]])})))()}export{J as i,qe as n,q as r,Ke as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.