import{d as fe,O as ge,f as be,r as b,n as te,ax as h,s as xe,cz as ye,a1 as Ce,h as d,c as k,e as l,w as i,a as r,t as c,u as t,N as a,i as U,F as oe,G as ne,I as v,y as le,z as ae,A as ie,B as f,J as he,a8 as we,cF as y,a4 as ke,U as Ve,a2 as Oe,E as Ee,cG as Te,cH as Be,cI as Re,ap as ze,ai as De,W as Ie,cE as Ne,X as qe,cD as Se,Y as Pe,$ as Ue,p as Le,g as $e,_ as Ae}from"./index-4dcc0234.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css */import"./el-form-item-4ed993c7.js";/* empty css *//* empty css *//* empty css */import{_ as Je}from"./index.vue_vue_type_script_setup_true_lang-9285296e.js";/* empty css */import{_ as je}from"./edit-addon-list-39325540.js";import{_ as Me}from"./edit-graphic-nav-a00e292e.js";import{_ as Fe}from"./edit-horz-blank-87b9aada.js";import{_ as We}from"./edit-hot-area-2386dd61.js";import{_ as Ge}from"./edit-image-ads-7aeef870.js";import{_ as He}from"./edit-member-info-805e17a0.js";import{_ as Xe}from"./edit-notice-ae9012a7.js";import{_ as Ye}from"./edit-page-f90c7f78.js";import{_ as Qe}from"./edit-rubik-cube-68f5a15a.js";import{_ as Ze}from"./edit-text-d5bc94b1.js";import{i as Ke,e as et,a as tt}from"./diy-aa30030c.js";import{u as ot}from"./diy-06b37a1b.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./sys-8ead7f22.js";import"./sortable.esm-be94e56d.js";import"./range-72f9cbd3.js";import"./index-742b412a.js";import"./index.vue_vue_type_style_index_0_lang-5c6c00d9.js";import"./attachment-c69dd9fd.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index.vue_vue_type_script_setup_true_lang-a631d3b2.js";/* empty css *//* empty css */const nt=z=>(Le("data-v-f06f671a"),z=z(),$e(),z),lt={class:"main-container flex-1"},at={class:"pl-[5px]"},it={class:"text-white ml-[10px] flex items-center"},st={class:"mr-[5px]"},rt=nt(()=>r("div",{class:"flex-1"},null,-1)),pt={class:"full-container flex flex-row flex-1 bg-page"},dt={class:"component-list w-[290px]"},mt={class:"flex flex-row flex-wrap"},ut=["title","onClick"],ct={class:"block text-base truncate"},_t={class:"preview-wrap flex-1 relative mt-[20px]"},vt={class:"diy-view-wrap w-[375px] shadow-lg mx-auto"},ft={class:"text-base block text-center truncate cursor-pointer h-[64px] leading-[84px]"},gt={class:"preview-block relative"},bt={class:"quick-action absolute text-center -right-[70px] top-[20px] w-[42px] rounded shadow-md"},xt=["src"],yt={class:"preview-iframe w-[375px] pt-[20px] px-[20px]"},Ct={class:"font-bold text-xl mb-[40px]"},ht={class:"mb-[20px] flex flex-col"},wt={class:"mb-[10px]"},kt={class:"edit-attribute-wrap w-[400px]"},Vt={class:"card-header flex justify-between items-center"},Ot={class:"title flex-1"},Et={key:0,class:"tab-wrap flex rounded-[50px] bg-gray-100 text-[14px]"},Tt={class:"edit-component-wrap"},Bt={class:"edit-attr-item-wrap"},Rt={class:"mb-[10px]"},zt={class:"text-sm text-gray-400"},Dt={key:1,class:"edit-attr-item-wrap"},It={class:"mb-[10px]"},Nt={class:"text-sm text-gray-400"},qt=fe({__name:"edit",setup(z){const e=ot(),m=ge(),D=be();m.query.id=m.query.id||0,m.query.name=m.query.name||"",m.query.url=m.query.url||"",m.query.type=m.query.type||"",m.query.template=m.query.template||"",m.query.title=m.query.title||"",m.query.back=m.query.back||"/website/diy/list";const I=b(""),V=b(""),L=b(""),N=b(!1),q=b(!1),W=b(0),G=b(0),$=m.query.back,O=b([]),H=te([]),A=b(""),X=b(H),se=p=>{},E=te({id:e.id,name:e.name,title:e.global.title,value:JSON.stringify({global:h(e.global),value:h(e.value)})}),J=b(!0),re=()=>{J.value?D.push($):we.confirm(a("leavePageTitleTips"),a("leavePageContentTips"),{confirmButtonText:a("confirm"),cancelButtonText:a("cancel"),type:"warning",autofocus:!1}).then(()=>{D.push($)}).catch(()=>{})},pe=Object.assign({"./components/edit-addon-list.vue":je,"./components/edit-graphic-nav.vue":Me,"./components/edit-horz-blank.vue":Fe,"./components/edit-hot-area.vue":We,"./components/edit-image-ads.vue":Ge,"./components/edit-member-info.vue":He,"./components/edit-notice.vue":Xe,"./components/edit-page.vue":Ye,"./components/edit-rubik-cube.vue":Qe,"./components/edit-text.vue":Ze}),j={};for(const[p,o]of Object.entries(pe)){const s=p.replace(/^\.\/(.*)\.\w+$/,"$1").split("/")[1];j[s]=o.default}xe(()=>e,(p,o)=>{const _={id:p.id,name:p.name,title:p.global.title,value:JSON.stringify({global:h(p.global),value:h(p.value)})};e.postMessage(),J.value=JSON.stringify(_)==JSON.stringify(E)},{deep:!0}),Ke({id:m.query.id,name:m.query.name,url:m.query.url,type:m.query.type,template:m.query.template,title:m.query.title}).then(async p=>{const o=p.data;if(e.init(),e.id=o.id||0,e.name=o.name,e.type=o.type,e.typeName=o.type_name,e.templateName=o.template,e.isDefault=o.is_default,e.pageMode=o.mode,o.value){const _=JSON.parse(o.value);e.global=_.global,_.value.length&&(e.value=_.value)}else e.global.title=o.title;E.id=e.id,E.name=e.name,E.title=e.global.title,E.value=JSON.stringify({global:h(e.global),value:h(e.value)}),O.value=o.component;for(const _ in O.value){H.push(_);for(const s in O.value[_].list){const u=ye(O.value[_].list[s]);u.id=e.generateRandom(),u.componentName=s,u.componentTitle=u.title,Object.assign(u,u.value),delete u.name,delete u.title,delete u.value,delete u.type,delete u.icon,e.components.push(u)}}if(o.addon_list){const _=Object.assign({"/src/app/views/diy/components/edit-addon-list.vue":()=>y(()=>import("./edit-addon-list-39325540.js").then(s=>s._),["./edit-addon-list-39325540.js","./index-4dcc0234.js","./index-fe6b5500.css","./el-tooltip-4ed993c7.js","./index.vue_vue_type_script_setup_true_lang-9285296e.js","./el-icon-593dfdc2.css","./diy-06b37a1b.js","./sys-8ead7f22.js","./sortable.esm-be94e56d.js","./range-72f9cbd3.js","./el-loading-3e34cd81.css","./el-overlay-16555a66.css","./el-table-column-345618ba.css","./el-checkbox-e3bd3d96.css","./el-tag-c7c1203f.css","./el-popper-eb70a20a.css","./el-scrollbar-3dec2e64.css","./el-image-5875057d.css","./el-image-viewer-fff43739.css","./el-form-d10bb01f.css","./el-button-c10d780e.css"],import.meta.url),"/src/app/views/diy/components/edit-graphic-nav.vue":()=>y(()=>import("./edit-graphic-nav-a00e292e.js").then(s=>s._),["./edit-graphic-nav-a00e292e.js","./index-4dcc0234.js","./index-fe6b5500.css","./el-tooltip-4ed993c7.js","./index.vue_vue_type_script_setup_true_lang-9285296e.js","./el-icon-593dfdc2.css","./index-742b412a.js","./index.vue_vue_type_style_index_0_lang-5c6c00d9.js","./attachment-c69dd9fd.js","./el-form-item-4ed993c7.js","./sys-8ead7f22.js","./attachment-1d0c4822.css","./el-loading-3e34cd81.css","./el-image-viewer-fff43739.css","./el-overlay-16555a66.css","./el-form-d10bb01f.css","./el-input-c9789fc1.css","./el-tag-c7c1203f.css","./el-option-a5edd981.css","./el-select-5775f10f.css","./el-scrollbar-3dec2e64.css","./el-popper-eb70a20a.css","./el-pagination-e1392652.css","./el-checkbox-e3bd3d96.css","./el-empty-80d6f4dc.css","./el-image-5875057d.css","./el-col-6b49831e.css","./el-progress-e199f971.css","./el-button-c10d780e.css","./el-dropdown-item-fcde02f4.css","./el-popover-9f471fc1.css","./index-7223a68e.css","./index-fbf980fe.css","./index.vue_vue_type_script_setup_true_lang-a631d3b2.js","./diy-aa30030c.js","./sortable.esm-be94e56d.js","./diy-06b37a1b.js","./range-72f9cbd3.js","./edit-graphic-nav-11da1de5.css","./el-color-picker-346329a4.css","./el-slider-9827b981.css","./el-input-number-74c955e5.css","./el-radio-22df3dfd.css"],import.meta.url),"/src/app/views/diy/components/edit-horz-blank.vue":()=>y(()=>import("./edit-horz-blank-87b9aada.js").then(s=>s._),["./edit-horz-blank-87b9aada.js","./index-4dcc0234.js","./index-fe6b5500.css","./el-form-item-4ed993c7.js","./el-tooltip-4ed993c7.js","./diy-06b37a1b.js","./edit-horz-blank-7fdc44bc.css","./el-form-d10bb01f.css","./el-slider-9827b981.css","./el-input-number-74c955e5.css","./el-input-c9789fc1.css","./el-popper-eb70a20a.css"],import.meta.url),"/src/app/views/diy/components/edit-hot-area.vue":()=>y(()=>import("./edit-hot-area-2386dd61.js").then(s=>s._),["./edit-hot-area-2386dd61.js","./index-4dcc0234.js","./index-fe6b5500.css","./el-form-item-4ed993c7.js","./index.vue_vue_type_script_setup_true_lang-9285296e.js","./el-icon-593dfdc2.css","./index.vue_vue_type_script_setup_true_lang-a631d3b2.js","./diy-aa30030c.js","./el-overlay-16555a66.css","./el-button-c10d780e.css","./el-scrollbar-3dec2e64.css","./el-input-c9789fc1.css","./index-742b412a.js","./index.vue_vue_type_style_index_0_lang-5c6c00d9.js","./attachment-c69dd9fd.js","./el-tooltip-4ed993c7.js","./sys-8ead7f22.js","./attachment-1d0c4822.css","./el-loading-3e34cd81.css","./el-image-viewer-fff43739.css","./el-form-d10bb01f.css","./el-tag-c7c1203f.css","./el-option-a5edd981.css","./el-select-5775f10f.css","./el-popper-eb70a20a.css","./el-pagination-e1392652.css","./el-checkbox-e3bd3d96.css","./el-empty-80d6f4dc.css","./el-image-5875057d.css","./el-col-6b49831e.css","./el-progress-e199f971.css","./el-dropdown-item-fcde02f4.css","./el-popover-9f471fc1.css","./index-7223a68e.css","./index-fbf980fe.css","./diy-06b37a1b.js","./edit-hot-area-73d8d88a.css"],import.meta.url),"/src/app/views/diy/components/edit-image-ads.vue":()=>y(()=>import("./edit-image-ads-7aeef870.js").then(s=>s._),["./edit-image-ads-7aeef870.js","./index-4dcc0234.js","./index-fe6b5500.css","./index.vue_vue_type_script_setup_true_lang-a631d3b2.js","./el-form-item-4ed993c7.js","./diy-aa30030c.js","./el-overlay-16555a66.css","./el-button-c10d780e.css","./el-scrollbar-3dec2e64.css","./el-input-c9789fc1.css","./el-icon-593dfdc2.css","./index.vue_vue_type_script_setup_true_lang-9285296e.js","./index-742b412a.js","./index.vue_vue_type_style_index_0_lang-5c6c00d9.js","./attachment-c69dd9fd.js","./el-tooltip-4ed993c7.js","./sys-8ead7f22.js","./attachment-1d0c4822.css","./el-loading-3e34cd81.css","./el-image-viewer-fff43739.css","./el-form-d10bb01f.css","./el-tag-c7c1203f.css","./el-option-a5edd981.css","./el-select-5775f10f.css","./el-popper-eb70a20a.css","./el-pagination-e1392652.css","./el-checkbox-e3bd3d96.css","./el-empty-80d6f4dc.css","./el-image-5875057d.css","./el-col-6b49831e.css","./el-progress-e199f971.css","./el-dropdown-item-fcde02f4.css","./el-popover-9f471fc1.css","./index-7223a68e.css","./index-fbf980fe.css","./sortable.esm-be94e56d.js","./diy-06b37a1b.js","./range-72f9cbd3.js","./edit-image-ads-641c3d32.css"],import.meta.url),"/src/app/views/diy/components/edit-member-info.vue":()=>y(()=>import("./edit-member-info-805e17a0.js").then(s=>s._),["./edit-member-info-805e17a0.js","./index-4dcc0234.js","./index-fe6b5500.css","./el-form-item-4ed993c7.js","./index-742b412a.js","./index.vue_vue_type_style_index_0_lang-5c6c00d9.js","./attachment-c69dd9fd.js","./el-tooltip-4ed993c7.js","./index.vue_vue_type_script_setup_true_lang-9285296e.js","./el-icon-593dfdc2.css","./sys-8ead7f22.js","./attachment-1d0c4822.css","./el-loading-3e34cd81.css","./el-image-viewer-fff43739.css","./el-overlay-16555a66.css","./el-form-d10bb01f.css","./el-input-c9789fc1.css","./el-tag-c7c1203f.css","./el-option-a5edd981.css","./el-select-5775f10f.css","./el-scrollbar-3dec2e64.css","./el-popper-eb70a20a.css","./el-pagination-e1392652.css","./el-checkbox-e3bd3d96.css","./el-empty-80d6f4dc.css","./el-image-5875057d.css","./el-col-6b49831e.css","./el-progress-e199f971.css","./el-button-c10d780e.css","./el-dropdown-item-fcde02f4.css","./el-popover-9f471fc1.css","./index-7223a68e.css","./index-fbf980fe.css","./diy-06b37a1b.js","./el-color-picker-346329a4.css"],import.meta.url),"/src/app/views/diy/components/edit-notice.vue":()=>y(()=>import("./edit-notice-ae9012a7.js").then(s=>s._),["./edit-notice-ae9012a7.js","./index-4dcc0234.js","./index-fe6b5500.css","./el-tooltip-4ed993c7.js","./index.vue_vue_type_script_setup_true_lang-a631d3b2.js","./el-form-item-4ed993c7.js","./diy-aa30030c.js","./el-overlay-16555a66.css","./el-button-c10d780e.css","./el-scrollbar-3dec2e64.css","./el-input-c9789fc1.css","./el-icon-593dfdc2.css","./index-742b412a.js","./index.vue_vue_type_style_index_0_lang-5c6c00d9.js","./attachment-c69dd9fd.js","./index.vue_vue_type_script_setup_true_lang-9285296e.js","./sys-8ead7f22.js","./attachment-1d0c4822.css","./el-loading-3e34cd81.css","./el-image-viewer-fff43739.css","./el-form-d10bb01f.css","./el-tag-c7c1203f.css","./el-option-a5edd981.css","./el-select-5775f10f.css","./el-popper-eb70a20a.css","./el-pagination-e1392652.css","./el-checkbox-e3bd3d96.css","./el-empty-80d6f4dc.css","./el-image-5875057d.css","./el-col-6b49831e.css","./el-progress-e199f971.css","./el-dropdown-item-fcde02f4.css","./el-popover-9f471fc1.css","./index-7223a68e.css","./index-fbf980fe.css","./diy-06b37a1b.js","./edit-notice-7bad7832.css","./el-color-picker-346329a4.css","./el-slider-9827b981.css","./el-input-number-74c955e5.css","./el-radio-22df3dfd.css"],import.meta.url),"/src/app/views/diy/components/edit-page.vue":()=>y(()=>import("./edit-page-f90c7f78.js").then(s=>s._),["./edit-page-f90c7f78.js","./index-4dcc0234.js","./index-fe6b5500.css","./el-tooltip-4ed993c7.js","./index-742b412a.js","./index.vue_vue_type_style_index_0_lang-5c6c00d9.js","./attachment-c69dd9fd.js","./el-form-item-4ed993c7.js","./index.vue_vue_type_script_setup_true_lang-9285296e.js","./el-icon-593dfdc2.css","./sys-8ead7f22.js","./attachment-1d0c4822.css","./el-loading-3e34cd81.css","./el-image-viewer-fff43739.css","./el-overlay-16555a66.css","./el-form-d10bb01f.css","./el-input-c9789fc1.css","./el-tag-c7c1203f.css","./el-option-a5edd981.css","./el-select-5775f10f.css","./el-scrollbar-3dec2e64.css","./el-popper-eb70a20a.css","./el-pagination-e1392652.css","./el-checkbox-e3bd3d96.css","./el-empty-80d6f4dc.css","./el-image-5875057d.css","./el-col-6b49831e.css","./el-progress-e199f971.css","./el-button-c10d780e.css","./el-dropdown-item-fcde02f4.css","./el-popover-9f471fc1.css","./index-7223a68e.css","./index-fbf980fe.css","./diy-06b37a1b.js","./el-slider-9827b981.css","./el-input-number-74c955e5.css","./el-color-picker-346329a4.css","./el-switch-b454e5d4.css"],import.meta.url),"/src/app/views/diy/components/edit-rubik-cube.vue":()=>y(()=>import("./edit-rubik-cube-68f5a15a.js").then(s=>s._),["./edit-rubik-cube-68f5a15a.js","./index-4dcc0234.js","./index-fe6b5500.css","./el-tooltip-4ed993c7.js","./index.vue_vue_type_script_setup_true_lang-a631d3b2.js","./el-form-item-4ed993c7.js","./diy-aa30030c.js","./el-overlay-16555a66.css","./el-button-c10d780e.css","./el-scrollbar-3dec2e64.css","./el-input-c9789fc1.css","./el-icon-593dfdc2.css","./index-742b412a.js","./index.vue_vue_type_style_index_0_lang-5c6c00d9.js","./attachment-c69dd9fd.js","./index.vue_vue_type_script_setup_true_lang-9285296e.js","./sys-8ead7f22.js","./attachment-1d0c4822.css","./el-loading-3e34cd81.css","./el-image-viewer-fff43739.css","./el-form-d10bb01f.css","./el-tag-c7c1203f.css","./el-option-a5edd981.css","./el-select-5775f10f.css","./el-popper-eb70a20a.css","./el-pagination-e1392652.css","./el-checkbox-e3bd3d96.css","./el-empty-80d6f4dc.css","./el-image-5875057d.css","./el-col-6b49831e.css","./el-progress-e199f971.css","./el-dropdown-item-fcde02f4.css","./el-popover-9f471fc1.css","./index-7223a68e.css","./index-fbf980fe.css","./diy-06b37a1b.js","./edit-rubik-cube-0d3d7369.css","./el-slider-9827b981.css","./el-input-number-74c955e5.css"],import.meta.url),"/src/app/views/diy/components/edit-text.vue":()=>y(()=>import("./edit-text-d5bc94b1.js").then(s=>s._),["./edit-text-d5bc94b1.js","./index-4dcc0234.js","./index-fe6b5500.css","./el-tooltip-4ed993c7.js","./index.vue_vue_type_script_setup_true_lang-a631d3b2.js","./el-form-item-4ed993c7.js","./diy-aa30030c.js","./el-overlay-16555a66.css","./el-button-c10d780e.css","./el-scrollbar-3dec2e64.css","./el-input-c9789fc1.css","./el-icon-593dfdc2.css","./diy-06b37a1b.js","./edit-horz-blank-7fdc44bc.css","./el-switch-b454e5d4.css","./el-color-picker-346329a4.css","./el-slider-9827b981.css","./el-input-number-74c955e5.css","./el-popper-eb70a20a.css","./el-radio-22df3dfd.css","./el-form-d10bb01f.css"],import.meta.url)});for(let s=0;s{try{const o=JSON.parse(p.data);if(!o.type)return;switch(o.type){case"appOnLaunch":case"appOnReady":q.value=!1,N.value=!0;let _=new Date().getTime();G.value=_-W.value;break;case"init":e.load=!0,e.postMessage();break;case"change":e.changeCurrentIndex(o.index,o.component);break;case"data":e.changeCurrentIndex(o.index,o.component),e.global=o.global,e.value=o.value;break}}catch(o){console.log("后台接受数据错误",o)}},!1);const de=()=>{if(V.value.trim().length==0){ke({type:"warning",message:`${a("wapDomainPlaceholder")}`});return}I.value=V.value+"/wap",Y(),Ve.set({key:"wap_domain",data:I.value}),N.value=!0,q.value=!1},Y=()=>{L.value=`${I.value}${A.value}?mode=decorate`,W.value=new Date().getTime(),me(),setTimeout(()=>{G.value==0&&ue()},1e3*2)},me=()=>{const p=JSON.stringify({type:"appOnReady",message:"加载完成"});window.previewIframe&&window.previewIframe.contentWindow.postMessage(p,"*")},ue=()=>{q.value=!0,N.value=!1,L.value=""},T=b(!1),Q=p=>{if(!e.verify()||T.value)return;T.value=!0;let o={id:e.id,name:e.name,title:e.global.title,type:e.type,template:e.templateName,is_default:e.isDefault,is_change:J.value?0:1,value:JSON.stringify({global:h(e.global),value:h(e.value)})};(e.id?et:tt)(o).then(s=>{T.value=!1,s.code==1&&(e.id?T.value=!1:D.push($),p&&p(s.data.id))}).catch(()=>{T.value=!1})},ce=()=>{Q(p=>{p=e.id||p;const o=D.resolve({path:"/site/preview/wap",query:{page:A.value+"?id="+p}});window.open(o.href)})};return(p,o)=>{const _=Ce("ArrowLeft"),s=Oe,u=Ee,M=Te,C=Je,B=Be,F=Re,R=ze,w=De,_e=Ie,S=Ne,g=qe,x=Se,Z=Pe,ve=Ue;return d(),k("div",lt,[l(M,{class:"flex items-center h-[60px] bg-primary px-[20px]"},{default:i(()=>[r("div",{class:"text-white cursor-pointer flex items-center",onClick:re},[l(s,{size:"14"},{default:i(()=>[l(_)]),_:1}),r("span",at,c(t(a)("back")),1)]),r("div",it,[r("span",st," | "+c(t(a)("decorating"))+":"+c(t(e).typeName),1)]),rt,l(u,{onClick:o[0]||(o[0]=n=>ce())},{default:i(()=>[U(c(t(a)("preview")),1)]),_:1}),l(u,{onClick:o[1]||(o[1]=n=>Q())},{default:i(()=>[U(c(t(a)("save")),1)]),_:1})]),_:1}),r("div",pt,[r("div",dt,[l(R,{class:"px-[10px]"},{default:i(()=>[l(F,{modelValue:X.value,"onUpdate:modelValue":o[2]||(o[2]=n=>X.value=n),onChange:se},{default:i(()=>[(d(!0),k(oe,null,ne(O.value,(n,K)=>(d(),v(B,{key:K,title:n.title,name:K},{default:i(()=>[r("ul",mt,[(d(!0),k(oe,null,ne(n.list,(P,ee)=>(d(),k("li",{key:ee,class:"w-2/6 text-center cursor-pointer h-[75px]",title:P.title,onClick:St=>t(e).addComponent(ee,P)},[l(C,{name:P.icon,size:"23px"},null,8,["name"]),r("span",ct,c(P.title),1)],8,ut))),128))])]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])]),_:1})]),r("div",_t,[l(R,null,{default:i(()=>[l(u,{class:"page-btn absolute right-[20px]",onClick:o[3]||(o[3]=n=>t(e).changeCurrentIndex(-99))},{default:i(()=>[U(c(t(a)("pageSet")),1)]),_:1}),r("div",vt,[r("div",{class:"preview-head bg-no-repeat bg-center bg-cover",onClick:o[4]||(o[4]=n=>t(e).changeCurrentIndex(-99))},[r("span",ft,c(t(e).global.title),1)]),r("div",gt,[r("ul",bt,[l(w,{effect:"light",content:t(a)("moveUpComponent"),placement:"right"},{default:i(()=>[l(C,{name:"iconfont-iconjiantoushang",size:"20px",class:"block cursor-pointer leading-[40px]",onClick:t(e).moveUpComponent},null,8,["onClick"])]),_:1},8,["content"]),l(w,{effect:"light",content:t(a)("moveDownComponent"),placement:"right"},{default:i(()=>[l(C,{name:"iconfont-iconjiantouxia",size:"20px",class:"block cursor-pointer leading-[40px]",onClick:t(e).moveDownComponent},null,8,["onClick"])]),_:1},8,["content"]),l(w,{effect:"light",content:t(a)("copyComponent"),placement:"right"},{default:i(()=>[l(C,{name:"iconfont-iconcopy-line",size:"20px",class:"block cursor-pointer leading-[40px]",onClick:t(e).copyComponent},null,8,["onClick"])]),_:1},8,["content"]),l(w,{effect:"light",content:t(a)("delComponent"),placement:"right"},{default:i(()=>[l(C,{name:"iconfont-icondelete-line",size:"20px",class:"block cursor-pointer leading-[40px]",onClick:t(e).delComponent},null,8,["onClick"])]),_:1},8,["content"]),l(w,{effect:"light",content:t(a)("resetComponent"),placement:"right"},{default:i(()=>[l(C,{name:"iconfont-iconloader-line",size:"20px",class:"block cursor-pointer leading-[40px]",onClick:t(e).resetComponent},null,8,["onClick"])]),_:1},8,["content"])]),le(r("iframe",{id:"previewIframe",src:L.value,frameborder:"0",class:"preview-iframe w-[375px]"},null,8,xt),[[ae,N.value]]),le(r("div",yt,[r("div",Ct,c(t(a)("developTitle")),1),r("div",ht,[r("text",wt,c(t(a)("wapDomain")),1),l(_e,{modelValue:V.value,"onUpdate:modelValue":o[5]||(o[5]=n=>V.value=n),placeholder:t(a)("wapDomainPlaceholder"),clearable:""},null,8,["modelValue","placeholder"])]),l(u,{type:"primary",onClick:de},{default:i(()=>[U(c(t(a)("confirm")),1)]),_:1})],512),[[ae,q.value]])])])]),_:1})]),r("div",kt,[l(R,null,{default:i(()=>[l(ve,{class:"box-card",shadow:"never"},{header:i(()=>[r("div",Vt,[r("span",Ot,c(t(e).currentIndex==-99?t(a)("pageSet"):t(e).editComponent.componentTitle),1),t(e).currentComponent?(d(),k("div",Et,[r("span",{class:ie(["cursor-pointer rounded-[50px] py-[5px] px-[15px]",{"bg-primary text-white":t(e).editTab=="content"}]),onClick:o[6]||(o[6]=n=>t(e).editTab="content")},c(t(a)("tabEditContent")),3),r("span",{class:ie(["cursor-pointer rounded-[50px] py-[5px] px-[15px]",{"bg-primary text-white":t(e).editTab=="style"}]),onClick:o[7]||(o[7]=n=>t(e).editTab="style")},c(t(a)("tabEditStyle")),3)])):f("",!0)])]),default:i(()=>[r("div",Tt,[t(e).currentComponent?(d(),v(he(j[t(e).currentComponent]),{key:0,value:t(e).value[t(e).currentIndex]},{style:i(()=>[r("div",Bt,[r("h3",Rt,c(t(a)("componentStyleTitle")),1),l(Z,{"label-width":"80px",class:"px-[10px]"},{default:i(()=>[t(e).editComponent.ignore.indexOf("pageBgColor")==-1?(d(),v(g,{key:0,label:t(a)("bottomBgColor"),class:"display-block"},{default:i(()=>[l(S,{modelValue:t(e).editComponent.pageBgColor,"onUpdate:modelValue":o[8]||(o[8]=n=>t(e).editComponent.pageBgColor=n),"show-alpha":"",predefine:t(e).predefineColors},null,8,["modelValue","predefine"]),r("div",zt,c(t(a)("bottomBgTips")),1)]),_:1},8,["label"])):f("",!0),t(e).editComponent.ignore.indexOf("componentBgColor")==-1?(d(),v(g,{key:1,label:t(a)("componentBgColor")},{default:i(()=>[l(S,{modelValue:t(e).editComponent.componentBgColor,"onUpdate:modelValue":o[9]||(o[9]=n=>t(e).editComponent.componentBgColor=n),"show-alpha":"",predefine:t(e).predefineColors},null,8,["modelValue","predefine"])]),_:1},8,["label"])):f("",!0),t(e).editComponent.ignore.indexOf("marginTop")==-1?(d(),v(g,{key:2,label:t(a)("marginTop")},{default:i(()=>[l(x,{modelValue:t(e).editComponent.margin.top,"onUpdate:modelValue":o[10]||(o[10]=n=>t(e).editComponent.margin.top=n),"show-input":"",size:"small",min:0,class:"ml-[10px] horz-blank-slider"},null,8,["modelValue"])]),_:1},8,["label"])):f("",!0),t(e).editComponent.ignore.indexOf("marginBottom")==-1?(d(),v(g,{key:3,label:t(a)("marginBottom")},{default:i(()=>[l(x,{modelValue:t(e).editComponent.margin.bottom,"onUpdate:modelValue":o[11]||(o[11]=n=>t(e).editComponent.margin.bottom=n),"show-input":"",size:"small",class:"ml-[10px] horz-blank-slider"},null,8,["modelValue"])]),_:1},8,["label"])):f("",!0),t(e).editComponent.ignore.indexOf("marginBoth")==-1?(d(),v(g,{key:4,label:t(a)("marginBoth")},{default:i(()=>[l(x,{modelValue:t(e).editComponent.margin.both,"onUpdate:modelValue":o[12]||(o[12]=n=>t(e).editComponent.margin.both=n),"show-input":"",size:"small",class:"ml-[10px] horz-blank-slider"},null,8,["modelValue"])]),_:1},8,["label"])):f("",!0),t(e).editComponent.ignore.indexOf("topRounded")==-1?(d(),v(g,{key:5,label:t(a)("topRounded")},{default:i(()=>[l(x,{modelValue:t(e).editComponent.topRounded,"onUpdate:modelValue":o[13]||(o[13]=n=>t(e).editComponent.topRounded=n),"show-input":"",size:"small",class:"ml-[10px] horz-blank-slider",max:50},null,8,["modelValue"])]),_:1},8,["label"])):f("",!0),t(e).editComponent.ignore.indexOf("bottomRounded")==-1?(d(),v(g,{key:6,label:t(a)("bottomRounded")},{default:i(()=>[l(x,{modelValue:t(e).editComponent.bottomRounded,"onUpdate:modelValue":o[14]||(o[14]=n=>t(e).editComponent.bottomRounded=n),"show-input":"",size:"small",class:"ml-[10px] horz-blank-slider",max:50},null,8,["modelValue"])]),_:1},8,["label"])):f("",!0)]),_:1})])]),_:1},8,["value"])):(d(),k("div",Dt,[r("h3",It,c(t(a)("componentStyleTitle")),1),l(Z,{"label-width":"80px",class:"px-[10px]"},{default:i(()=>[t(e).editComponent.ignore.indexOf("pageBgColor")==-1?(d(),v(g,{key:0,label:t(a)("bottomBgColor"),class:"display-block"},{default:i(()=>[l(S,{modelValue:t(e).editComponent.pageBgColor,"onUpdate:modelValue":o[15]||(o[15]=n=>t(e).editComponent.pageBgColor=n),"show-alpha":"",predefine:t(e).predefineColors},null,8,["modelValue","predefine"]),r("div",Nt,c(t(a)("bottomBgTips")),1)]),_:1},8,["label"])):f("",!0),t(e).editComponent.ignore.indexOf("componentBgColor")==-1?(d(),v(g,{key:1,label:t(a)("componentBgColor")},{default:i(()=>[l(S,{modelValue:t(e).editComponent.componentBgColor,"onUpdate:modelValue":o[16]||(o[16]=n=>t(e).editComponent.componentBgColor=n),"show-alpha":"",predefine:t(e).predefineColors},null,8,["modelValue","predefine"])]),_:1},8,["label"])):f("",!0),t(e).editComponent.ignore.indexOf("marginTop")==-1?(d(),v(g,{key:2,label:t(a)("marginTop")},{default:i(()=>[l(x,{modelValue:t(e).editComponent.margin.top,"onUpdate:modelValue":o[17]||(o[17]=n=>t(e).editComponent.margin.top=n),"show-input":"",size:"small",min:0,class:"ml-[10px] horz-blank-slider"},null,8,["modelValue"])]),_:1},8,["label"])):f("",!0),t(e).editComponent.ignore.indexOf("marginBottom")==-1?(d(),v(g,{key:3,label:t(a)("marginBottom")},{default:i(()=>[l(x,{modelValue:t(e).editComponent.margin.bottom,"onUpdate:modelValue":o[18]||(o[18]=n=>t(e).editComponent.margin.bottom=n),"show-input":"",size:"small",class:"ml-[10px] horz-blank-slider"},null,8,["modelValue"])]),_:1},8,["label"])):f("",!0),t(e).editComponent.ignore.indexOf("marginBoth")==-1?(d(),v(g,{key:4,label:t(a)("marginBoth")},{default:i(()=>[l(x,{modelValue:t(e).editComponent.margin.both,"onUpdate:modelValue":o[19]||(o[19]=n=>t(e).editComponent.margin.both=n),"show-input":"",size:"small",class:"ml-[10px] horz-blank-slider"},null,8,["modelValue"])]),_:1},8,["label"])):f("",!0),t(e).editComponent.ignore.indexOf("topRounded")==-1?(d(),v(g,{key:5,label:t(a)("topRounded")},{default:i(()=>[l(x,{modelValue:t(e).editComponent.topRounded,"onUpdate:modelValue":o[20]||(o[20]=n=>t(e).editComponent.topRounded=n),"show-input":"",size:"small",class:"ml-[10px] horz-blank-slider",max:50},null,8,["modelValue"])]),_:1},8,["label"])):f("",!0),t(e).editComponent.ignore.indexOf("bottomRounded")==-1?(d(),v(g,{key:6,label:t(a)("bottomRounded")},{default:i(()=>[l(x,{modelValue:t(e).editComponent.bottomRounded,"onUpdate:modelValue":o[21]||(o[21]=n=>t(e).editComponent.bottomRounded=n),"show-input":"",size:"small",class:"ml-[10px] horz-blank-slider",max:50},null,8,["modelValue"])]),_:1},8,["label"])):f("",!0)]),_:1})]))])]),_:1})]),_:1})])])])}}});const No=Ae(qt,[["__scopeId","data-v-f06f671a"]]);export{No as default};