1import{M as me,b as G,i as Fe,p as v,m as L,O as r,P as m,Q as s,ae as ye,az as he,u as e,A as _e,$ as P,ad as K,a0 as re,a8 as H,a9 as $,n as se,a7 as _,H as Me,x as ze,r as j,C as Pe,c as de,at as Ne,aA as Ue,aB as Oe,Z as N,a4 as E,Y as F,ar as z,a5 as B,aa as C,aw as He,av as Ge,w as ie,I as je}from"./BMyvSl9s.js";import{i as Y,j as ve,U as ue,k as fe,l as be,C as Ae,m as ge,n as We,o as Ke,p as qe,q as ce,r as pe,s as Ye,t as Je,v as Qe,w as Ze,x as Xe,y as et,z as De,_ as U,u as ke,E as le,f as q,A as Se,B as tt,D as ot,F as at,G as xe,H as we,g as Ie,I as nt}from"./Dol-UM8g.js";import{E as $e}from"./BmPTcy-w.js";import{E as lt}from"./CFPRmFip.js";import{E as rt,a as st}from"./BuVJy497.js";/* empty css */import{S as dt}from"./GsUT-XYB.js";import{p as it}from"./CRrxamU8.js";import{d as W}from"./wXhWW5a2.js";import{s as ut}from"./B2j4BCd7.js";import"./DzSKdshJ.js";import"./Du_lkNy5.js";import"./CIngZSMr.js";import"./BA0KvYpk.js";import"./BosuxZz1.js";const Ce=Y({modelValue:{type:[String,Number,Boolean],default:void 0},size:ve,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),ct=Y({...Ce,border:Boolean}),Re={[ue]:i=>me(i)||fe(i)||be(i),[Ae]:i=>me(i)||fe(i)||be(i)},Be=Symbol("radioGroupKey"),Te=(i,d)=>{const n=G(),u=Fe(Be,void 0),a=v(()=>!!u),D=v(()=>ge(i.value)?i.label:i.value),g=v({get(){return a.value?u.modelValue:i.modelValue},set(c){a.value?u.changeEvent(c):d&&d(ue,c),n.value.checked=i.modelValue===D.value}}),w=We(v(()=>u==null?void 0:u.size)),p=Ke(v(()=>u==null?void 0:u.disabled)),k=G(!1),y=v(()=>p.value||a.value&&g.value!==D.value?-1:0);return qe({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},v(()=>a.value&&ge(i.value))),{radioRef:n,isGroup:a,radioGroup:u,focus:k,size:w,disabled:p,tabIndex:y,modelValue:g,actualValue:D}},pt=L({name:"ElRadio"}),mt=L({...pt,props:ct,emits:Re,setup(i,{emit:d}){const n=i,u=ce("radio"),{radioRef:a,radioGroup:D,focus:g,size:w,disabled:p,modelValue:k,actualValue:y}=Te(n,d);function c(){se(()=>d("change",k.value))}return(f,t)=>{var o;return r(),m("label",{class:P([e(u).b(),e(u).is("disabled",e(p)),e(u).is("focus",e(g)),e(u).is("bordered",f.border),e(u).is("checked",e(k)===e(y)),e(u).m(e(w))])},[s("span",{class:P([e(u).e("input"),e(u).is("disabled",e(p)),e(u).is("checked",e(k)===e(y))])},[ye(s("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":S=>_e(k)?k.value=S:null,class:P(e(u).e("original")),value:e(y),name:f.name||((o=e(D))==null?void 0:o.name),disabled:e(p),checked:e(k)===e(y),type:"radio",onFocus:S=>g.value=!0,onBlur:S=>g.value=!1,onChange:c,onClick:K(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[he,e(k)]]),s("span",{class:P(e(u).e("inner"))},null,2)],2),s("span",{class:P(e(u).e("label")),onKeydown:K(()=>{},["stop"])},[re(f.$slots,"default",{},()=>[H($(f.label),1)])],42,["onKeydown"])],2)}}});var ft=pe(mt,[["__file","radio.vue"]]);const bt=Y({...Ce}),gt=L({name:"ElRadioButton"}),yt=L({...gt,props:bt,setup(i){const d=i,n=ce("radio"),{radioRef:u,focus:a,size:D,disabled:g,modelValue:w,radioGroup:p,actualValue:k}=Te(d),y=v(()=>({backgroundColor:(p==null?void 0:p.fill)||"",borderColor:(p==null?void 0:p.fill)||"",boxShadow:p!=null&&p.fill?`-1px 0 0 0 ${p.fill}`:"",color:(p==null?void 0:p.textColor)||""}));return(c,f)=>{var t;return r(),m("label",{class:P([e(n).b("button"),e(n).is("active",e(w)===e(k)),e(n).is("disabled",e(g)),e(n).is("focus",e(a)),e(n).bm("button",e(D))])},[ye(s("input",{ref_key:"radioRef",ref:u,"onUpdate:modelValue":o=>_e(w)?w.value=o:null,class:P(e(n).be("button","original-radio")),value:e(k),type:"radio",name:c.name||((t=e(p))==null?void 0:t.name),disabled:e(g),onFocus:o=>a.value=!0,onBlur:o=>a.value=!1,onClick:K(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[he,e(w)]]),s("span",{class:P(e(n).be("button","inner")),style:_(e(w)===e(k)?e(y):{}),onKeydown:K(()=>{},["stop"])},[re(c.$slots,"default",{},()=>[H($(c.label),1)])],46,["onKeydown"])],2)}}});var Ve=pe(yt,[["__file","radio-button.vue"]]);const ht=Y({id:{type:String,default:void 0},size:ve,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},...Ye(["ariaLabel"])}),_t=Re,vt=L({name:"ElRadioGroup"}),Dt=L({...vt,props:ht,emits:_t,setup(i,{emit:d}){const n=i,u=ce("radio"),a=Je(),D=G(),{formItem:g}=Qe(),{inputId:w,isLabeledByFormItem:p}=Ze(n,{formItemContext:g}),k=c=>{d(ue,c),se(()=>d("change",c))};Me(()=>{const c=D.value.querySelectorAll("[type=radio]"),f=c[0];!Array.from(c).some(t=>t.checked)&&f&&(f.tabIndex=0)});const y=v(()=>n.name||a.value);return ze(Be,j({...Pe(n),changeEvent:k,name:y})),de(()=>n.modelValue,()=>{n.validateEvent&&(g==null||g.validate("change").catch(c=>Xe()))}),(c,f)=>(r(),m("div",{id:e(w),ref_key:"radioGroupRef",ref:D,class:P(e(u).b("group")),role:"radiogroup","aria-label":e(p)?void 0:c.ariaLabel||"radio-group","aria-labelledby":e(p)?e(g).labelId:void 0},[re(c.$slots,"default")],10,["id","aria-label","aria-labelledby"]))}});var Le=pe(Dt,[["__file","radio-group.vue"]]);const kt=et(ft,{RadioButton:Ve,RadioGroup:Le}),St=De(Le);De(Ve);const xt=["src"],wt=["src"],It=L({__name:"Swiperc",props:{moduleData:{type:Object,default:{}}},setup(i){const d=i,n=j({modules:[Ne,Ue,Oe],autoplay:{delay:5e3,disableOnInteraction:!1,pauseOnMouseEnter:!0},slidesPerView:1,loop:!0,spaceBetween:0,speed:1e3,navigation:{clickable:!0,nextEl:".component_swiper_next",prevEl:".component_swiper_prev"},centeredSlides:!1,pagination:{el:".swiper-pagination",clickable:!0,type:"bullets"}});de(()=>d.moduleData.data.form.carouselsettings,a=>{a===2?n.autoplay={delay:d.moduleData.data.form.second||5e3,disableOnInteraction:!1,pauseOnMouseEnter:!0}:n.autoplay={delay:0,disableOnInteraction:!1,pauseOnMouseEnter:!0}},{immediate:!0});const u=a=>{a.link&&window.open(a.link,"_blank")};return(a,D)=>{const g=He,w=Ge;return r(),m(F,null,[N(w,{lazy:!0,modules:n.modules,autoplay:n.autoplay,slidesPerView:n.slidesPerView,loop:n.loop,spaceBetween:n.spaceBetween,speed:n.speed,navigation:n.navigation,centeredSlides:n.centeredSlides,pagination:n.pagination},{default:E(()=>[(r(!0),m(F,null,z(d.moduleData.data.picmodules,p=>(r(),B(g,{key:p,onClick:k=>u(p),class:P(p.link?"cur":"")},{default:E(()=>
1[p.url&&p.type=="img"?(r(),m("img",{key:0,src:p.url,style:{width:"100%",height:"100%"},alt:""},null,8,xt)):C("",!0),p.url&&p.type=="video"?(r(),m("video",{key:1,src:p.url,style:{width:"100%",height:"100%"},autoplay:"",loop:""},null,8,wt)):C("",!0)]),_:2},1032,["onClick","class"]))),128))]),_:1},8,["modules","autoplay","slidesPerView","loop","spaceBetween","speed","navigation","centeredSlides","pagination"]),D[0]||(D[0]=s("div",{class:"swiper-button-prev component_swiper_prev"},null,-1)),D[1]||(D[1]=s("div",{class:"swiper-button-next component_swiper_next"},null,-1))],64)}}}),$t=U(It,[["__scopeId","data-v-b0ca1c83"]]),Ct=["innerHTML"],Rt=L({__name:"RichText",props:{moduleData:{type:Object,default:{}}},setup(i){const d=i,n=v(()=>{const a=d.moduleData.data.form;return u(a)}),u=a=>{const D=a.backgroundImage?`url(${a.backgroundImage})`:"",g=a.bgType===1&&a.backgroundColor||"",w=a.bgType===2&&a.linear&&a.linear.length>0?`linear-gradient(${a.region||"to right"}, ${a.linear.map(p=>`${p.color} ${p.percentage||"0"}%`)})`:"";return a.bgType===1?`${g}`.trim():a.bgType===2?`${w}`.trim():D};return(a,D)=>(r(),m("div",{style:_({marginBottom:d.moduleData.data.form.marginBottom+"px",marginLeft:d.moduleData.data.form.marginLeft+"px",marginRight:d.moduleData.data.form.marginRight+"px",marginTop:d.moduleData.data.form.marginTop+"px",width:d.moduleData.data.form.width?d.moduleData.data.form.width+"px":"",background:e(n),boxSizing:"border-box"})},[s("div",{innerHTML:d.moduleData.data.form.editorContent},null,8,Ct)],4))}}),Bt=U(Rt,[["__scopeId","data-v-88029794"]]),Tt=["href"],Vt=["src"],Lt=L({__name:"Img",props:{moduleData:{type:Object,default:{}}},setup(i){const d=i;return(n,u)=>(r(),m("div",null,[s("a",{href:d.moduleData.data.form.link?d.moduleData.data.form.link:"#",style:{display:"block"}},[s("img",{src:d.moduleData.data.form.url,alt:"",style:_({width:d.moduleData.data.form.width?d.moduleData.data.form.width+"px":"100%",height:d.moduleData.data.form.height?d.moduleData.data.form.height+"px":"100%",display:"block",margin:"0 auto"})},null,12,Vt)],8,Tt)]))}}),Et={class:"form-edit"},Ft=["innerHTML"],Mt=["innerHTML"],zt={class:"el-upload__tip"},Pt={class:"textSet"},Nt=L({__name:"Form",props:{moduleData:{type:Object,default:{}},pageId:{type:Number||String,default:""}},setup(i){const{t:d}=ke(),n=i,u=G(null),a=j({});n.moduleData.data.form;const D=v(()=>{const l=n.moduleData.data.form;return g(l)}),g=(l,h=!1)=>{const I=l.backgroundImage?`url(${l.backgroundImage})`:"",M=l.bgType===1&&l.backgroundColor||"",O=l.bgType===2&&l.linear&&l.linear.length>0?`linear-gradient(${l.region||"to right"}, ${l.linear.map(A=>`${A.color} ${A.percentage||"0"}%`)})`:"";return l.bgType===1?`${M}`.trim():l.bgType===2?`${O}`.trim():I},w=v(()=>{const l=n.moduleData.data.form.submitBtn;return g(l,!0)}),p=v(()=>{const l=n.moduleData.data.form.submitBtn;return{fontSize:l.fontSize||"",fontFamily:l.fontFamily||"poppins-medium",color:l.fontColor||"",background:w.value,width:l.width?`${l.width}px`:"100%",height:l.height?`${l.height}px`:"100%",borderRadius:l.borderRadius?`${l.borderRadius}px`:"",borderColor:l.borderColor||""}}),k=G(""),y=()=>{n.moduleData.data.form.itemComponent.forEach(h=>{h.type==="text"||h.type==="textarea"?a[h.label]="":h.type==="radio"?a[h.label]=null:h.type==="checkbox"?a[h.label]=[]:h.type==="select"?a[h.label]=null:h.type==="fileUpload"&&(a[h.label]=[],k.value=h.label)})};y();const c=()=>{let l=n.moduleData.data.form.itemComponent;const h={};return l.forEach(I=>{I.isRequire&&(h[I.label]=[{required:!0,message:`${I.label}为å¿
å¡«`,trigger:["blur","change"]}])}),h},f=l=>{const I=["image/jpeg","image/jpg","image/png","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"].includes(l.type);return I||le({showClose:!0,message:d("account.myPersonal.uploadImage.typeError"),type:"error"}),I},t=G([]),o=async l=>{const h=new FormData;h.append("file",l.file);const I=await q({url:"/upload",opts:h,method:"post",contentType:"multipart/form-data"});I&&I.code==200&&t.value.push({name:l.file.name,url:I.data.url,uid:l.file.uid})},S=(l,h)=>{const I=t.value.findIndex(M=>M.uid===l.uid);t.value.splice(I,1)},b=async()=>{u.value&&await u.value.validate(async(l,h)=>
1{if(l){t.value.length&&(a[k.value]=t.value.map(O=>O.url));let I={componentFormRecordInfoList:[{componentFormRecordInfoList:[a],formId:n.moduleData.data.form.id}],id:n.pageId};(await q({url:"/componentInfo/componentInfoSubmit",opts:I,method:"post"})).code==200&&(le({message:d("public-text.messageSuccessText"),type:"success"}),y(),t.value=[])}})},T=v(()=>{const l=n.moduleData.data.form.inputStyle;return g(l)}),R=v(()=>{const l=n.moduleData.data.form.inputStyle;return{fontSize:l.fontSize||"",fontFamily:l.fontFamily||"poppins-medium",color:l.fontColor||"",width:l.width?`${l.width}px`:"100%",boxSizing:"box-sizing"}});return ie(()=>{const l=n.moduleData.data.form.inputStyle,h=n.moduleData.data.form.labelStyle,I=l.borderColor||"#dcdfe6",M=T.value,O=l.borderRadius?`${l.borderRadius}px`:"",A=l.width?`${l.width}px`:"100%",J=l.height?`${l.height}px`:"100%",Q=l.fontColor||"",Z=h.fontColor||"",X=h.fontSize||"",ee=h.fontFamily||"poppins-medium",te=h.fontWeight==1?"bold":"normal",oe=h.fontStyle==1?"italic":"normal",ae=h.textDecoration==1?"underline":"none";document.documentElement.style.setProperty("--inputBorder-color",I),document.documentElement.style.setProperty("--inputBackground-color",M),document.documentElement.style.setProperty("--inputBorderRadius",O),document.documentElement.style.setProperty("--inputkWidth",A),document.documentElement.style.setProperty("--inputkHeight",J),document.documentElement.style.setProperty("--inputkPlaceholderColor",Q),document.documentElement.style.setProperty("--zlabelColor",Z),document.documentElement.style.setProperty("--zlabelFontSize",X),document.documentElement.style.setProperty("--zlabelFamily",ee),document.documentElement.style.setProperty("--zlabelFontWeight",te),document.documentElement.style.setProperty("--zlabelFontStyle",oe),document.documentElement.style.setProperty("--zlabelTextDecoration",ae)}),(l,h)=>{const I=Se,M=kt,O=St,A=tt,J=ot,Q=rt,Z=st,X=je("upload-filled"),ee=at,te=lt,oe=xe,ae=$e,Ee=we;return r(),m("div",Et,[N(Ee,{style:_({background:e(D)}),model:e(a),ref_key:"ruleFormRef",ref:u,"label-width":"auto",rules:c()},{default:E(()=>[s("div",{innerHTML:n.moduleData.data.form.title},null,8,Ft),s("div",{innerHTML:n.moduleData.data.form.subTitle},null,8,Mt),(r(!0),m(F,null,z(n.moduleData.data.form.itemComponent,(x,Io)=>(r(),m("div",null,[x.type!="hiddenText"?(r(),B(oe,{key:0,label:x.label,prop:x.label},{default:E(()=>[x.type=="text"?(r(),B(I,{key:0,modelValue:e(a)[x.label],"onUpdate:modelValue":V=>e(a)[x.label]=V,placeholder:x.placeholder,"input-style":e(R),class:"innputborder"},null,8,["modelValue","onUpdate:modelValue","placeholder","input-style"])):C("",!0),x.type=="textarea"?(r(),B(I,{key:1,modelValue:e(a)[x.label],"onUpdate:modelValue":V=>e(a)[x.label]=V,placeholder:x.placeholder,"input-style":e(R),class:"innputborder"},null,8,["modelValue","onUpdate:modelValue","placeholder","input-style"])):C("",!0),x.type=="radio"?(r(),B(O,{key:2,modelValue:e(a)[x.label],"onUpdate:modelValue":V=>e(a)[x.label]=V,placeholder:x.placeholder},{default:E(()=>[(r(!0),m(F,null,z(x.options,(V,ne)=>(r(),B(M,{value:V.label},{default:E(()=>[H($(V.label),1)]),_:2},1032,["value"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"])):C("",!0),x.type=="checkbox"?(r(),B(J,{key:3,modelValue:e(a)[x.label],"onUpdate:modelValue":V=>e(a)[x.label]=V,placeholder:x.placeholder},{default:E(()=>[(r(!0),m(F,null,z(x.options,(V,ne)=>(r(),B(A,{value:V.label},{default:E(()=>[H($(V.label),1)]),_:2},1032,["value"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"])):C("",!0),x.type=="select"?(r(),B(Z,{key:4,modelValue:e(a)[x.label],"onUpdate:modelValue":V=>e(a)[x.label]=V,placeholder:x.placeholder,"input-style":e(R),class:"innputborder"},{default:E(()=>[(r(!0),m(F,null,z(x.options,(V,ne)=>(r(),B(Q,{key:ne,label:V.label,value:V.label},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","input-style"])):C("",!0),x.type=="fileUpload"?(r(),B(te,{key:5,"file-list":e(a)[x.label],"onUpdate:fileList":V=>e(a)[x.label]=V,class:"innputborder",drag:"",action:"#",multiple:"","before-upload":f,"http-request":o,"on-remove":S},{tip:E(()=>[s("div",zt,$(x.placeholder),1)]),default:E(()=>[N(ee,{class:"el-icon--upload"},{default:E(()=>[N(X)]),_:1}),h[0]||(h[0]=s("div",{class:"el-upload__text"},[H(" Click or drag file to this area to "),s("em",null,"upload")],-1))]),_:2},1032,["file-list","onUpdate:fileList"])):C("",!0)]),_:2},1032,["label","prop"])):C("",!0)]))),256)),s("div",Pt,[N(ae,{onClick:b,style:_(e(p))},{default:E(()=>[H($(n.moduleData.data.form.submitBtn.text),1)]),_:1},8,["style"])])]),_:1},8,["style","model","rules"])])}}}),Ut=U(Nt,[["__scopeId","data-v-d878132c"]]),Ot={key:0},Ht=["innerHTML"],Gt=["innerHTML"],jt=["innerHTML"],At={key:1},Wt=L({__name:"Subscribe",props:{moduleData:{type:Object,default:{}},pageId:{type:Number||String,default:""}},setup(i){const{t:d}
1=ke(),n=i,u=G(),a=j({email:""}),D=j({email:[{required:!0,message:d("prize.form.email.empty"),trigger:"blur"},{type:"email",message:d("prize.form.email.invalid"),trigger:"blur"}]}),g=(t,o=!1)=>{const S=t.backgroundImage?`url(${t.backgroundImage})`:"",b=t.bgType===1&&t.backgroundColor||"",T=t.bgType===2&&t.linear&&t.linear.length>0?`linear-gradient(${t.region||"to right"}, ${t.linear.map(R=>`${R.color} ${R.percentage||"0"}%`)})`:"";return t.bgType===1?`${b}`.trim():t.bgType===2?`${T}`.trim():S},w=v(()=>{const t=n.moduleData.data.form;return g(t)}),p=v(()=>{const t=n.moduleData.data.form.submitBtn;return g(t,!0)}),k=v(()=>{const t=n.moduleData.data.form.inputInfo;return g(t)}),y=v(()=>{const t=n.moduleData.data.form.inputInfo;return{fontSize:t.fontSize||"",fontFamily:t.fontFamily||"poppins-medium",color:t.fontColor||"",width:t.width?`${t.width}px`:"100%",boxSizing:"content-box"}});ie(()=>{const t=n.moduleData.data.form.inputInfo,o=t.borderColor||"#dcdfe6",S=k.value,b=t.borderRadius?`${t.borderRadius}px`:"",T=t.width?`${t.width}px`:"100%",R=t.height?`${t.height}px`:"100%";document.documentElement.style.setProperty("--subinputBorder-color",o),document.documentElement.style.setProperty("--subinputBackground-color",S),document.documentElement.style.setProperty("--subinputBorderRadius",b),document.documentElement.style.setProperty("--subinputkWidth",T),document.documentElement.style.setProperty("--subinputkHeight",R)});const c=v(()=>{const t=n.moduleData.data.form.submitBtn;return{fontSize:t.fontSize||"",fontFamily:t.fontFamily||"poppins-medium",color:t.fontColor||"",background:p.value,width:t.width?`${t.width}px`:"100%",height:t.height?`${t.height}px`:"100%",borderRadius:t.borderRadius?`${t.borderRadius}px`:"",borderColor:t.borderColor||""}}),f=async t=>{t&&await t.validate(async(o,S)=>{if(o){let b={subscribeRecordRequestList:[{email:a.email,subscribeId:n.moduleData.data.form.id}],id:n.pageId};(await q({url:"/componentInfo/componentInfoSubmit",opts:b,method:"post"})).code==200&&le({message:d("public-text.messageSuccessText"),type:"success"})}})};return(t,o)=>{const S=Se,b=xe,T=$e,R=we;return r(),m("div",{style:_({background:e(w)})},[N(R,{ref_key:"ruleFormRef",ref:u,model:e(a),rules:e(D)},{default:E(()=>[(r(!0),m(F,null,z(n.moduleData.data.form.items,(l,h)=>(r(),m("div",null,[s("div",null,[l.type==="text"?(r(),m("div",Ot,[s("p",{class:"textSet",innerHTML:n.moduleData.data.form.title},null,8,Ht),s("p",{class:"textSet",innerHTML:n.moduleData.data.form.subTitle},null,8,Gt),s("p",{class:"textSet",innerHTML:n.moduleData.data.form.describe},null,8,jt)])):C("",!0),l.type==="input"?(r(),m("div",At,[N(b,{prop:"email"},{default:E(()=>[N(S,{modelValue:e(a).email,"onUpdate:modelValue":o[0]||(o[0]=I=>e(a).email=I),placeholder:n.moduleData.data.form.inputInfo.text,"input-style":e(y),class:"innputborder"},null,8,["modelValue","placeholder","input-style"])]),_:1}),N(T,{style:_(e(c)),onClick:o[1]||(o[1]=I=>f(e(u)))},{default:E(()=>[H($(n.moduleData.data.form.submitBtn.text),1)]),_:1}
1,8,["style"])])):C("",!0)])]))),256))]),_:1},8,["model","rules"])],4)}}}),Kt=U(Wt,[["__scopeId","data-v-12799373"]]),qt={key:0,class:"seckill"},Yt=L({__name:"Seckill",props:{moduleData:{type:Array,default:[]}},setup(i){const d=i;return(n,u)=>{var a;return(a=d.moduleData)!=null&&a.length?(r(),m("div",qt,[(r(!0),m(F,null,z(d.moduleData,(D,g)=>(r(),B(dt,{key:g,seckillData:D,class:"seckill_item"},null,8,["seckillData"]))),128))])):C("",!0)}}}),Jt=U(Yt,[["__scopeId","data-v-55abfeac"]]),Qt={class:"prize"},Zt=L({__name:"LotteryDraw",props:{moduleData:{type:Array,default:[]}},setup(i){const d=i;return(n,u)=>(r(),m("div",Qt,[(r(!0),m(F,null,z(d.moduleData,(a,D)=>(r(),B(it,{key:D,prizeData:a,index:D},null,8,["prizeData","index"]))),128))]))}}),Xt=U(Zt,[["__scopeId","data-v-5a6afeef"]]),eo=L({__name:"PlaceholderDiv",props:{moduleData:{type:Object,default:{}}},setup(i){const d=i;return(n,u)=>(r(),m("div",{style:_({height:d.moduleData.data.form.height+"px"})},null,4))}}),to={class:"countdown_item_content"},oo=L({__name:"CountDown",props:{moduleData:{type:Object,default:{}}},setup(i){const d=i,n=j({countdownData:[],stime:W().format("YYYY-MM-DD"),etime:"",status:""}),u=v(()=>{const t=d.moduleData.data.form;let o=[{value:"00",text:t.day||"day",type:"day"},{value:"00",text:t.hour||"hour",type:"hour"},{value:"00",text:t.minute||"minute",type:"minute"}];return t.format!==1?o=o.filter(S=>S.type!=="second"):o.push({value:"00",text:t.second||"second",type:"second"}),o}),a=()=>{const t=d.moduleData.data.form,o=t.endTime?W(t.endTime):null,S=W();if(!o){n.status="no_end_time";return}const b=o.diff(S);if(b<=0){n.status="ended";return}const T=Math.floor(b/(1e3*60*60*24)),R=Math.floor(b%(1e3*60*60*24)/(1e3*60*60)),l=Math.floor(b%(1e3*60*60)/(1e3*60)),h=Math.floor(b%(1e3*60)/1e3),I=u.value.map(M=>{switch(M.type){case"day":return{...M,value:String(T).padStart(2,"0")};case"hour":return{...M,value:String(R).padStart(2,"0")};case"minute":return{...M,value:String(l).padStart(2,"0")};case"second":return{...M,value:String(h).padStart(2,"0")};default:return M}});n.countdownData=I},D=()=>{const t=ut(()=>{a();const o=d.moduleData.data.form.endTime?W(d.moduleData.data.form.endTime):null;o&&o.diff(W())<=0&&clearInterval(t)},1e3)};de(()=>d.moduleData.data.form.endTime,(t,o)=>{t&&D()},{immediate:!0}),ie(()=>{const t=u.value;t.length>0?n.countdownData=t:console.warn("Countdown data is empty!")});const g=(t,o=!1)=>{const S=t!=null&&t.backgroundImage?`url(${t.backgroundImage})`:"",b=(t==null?void 0:t.bgType)===1&&t.backgroundColor||"",T=(t==null?void 0:t.bgType)===2&&t.linear&&t.linear.length>0?`linear-gradient(${t.region||"to right"}, ${t.linear.map(R=>`${R.color} ${R.percentage||"0"}%`).join(", ")})`:"";return t.bgType===1?b.trim():t.bgType===2?T.trim():S.trim()},w=v(()=>g(d.moduleData.data.form)),p=v(()=>g(d.moduleData.data.form.countDownStyle)),k=v(()=>{const t=d.moduleData.data.form.countDownStyle.borderRadius;return t?`${t}px`:"0px"}),y=t=>({fontSize:t.fontSize||"",fontFamily:t.fontFamily||"poppins-medium",color:t.fontColor||"",fontWeight:t.fontWeight===1?700:"",fontStyle:t.fontStyle===1?"italic":"",textDecoration:t.textDecoration===1?"underline":""}),c=v(()=>{const t=d.moduleData.data.form.countdownFontStyle,o=d.moduleData.data.form.countDownStyle;return{background:p.value,borderRadius:k.value,width:`${o.width}px`,height:`${o.height}px`,...y(t)}}),f=v(()=>y(d.moduleData.data.form.hourMinuteSecondFontStyle));return(t,o)=>(r(),m("div",{class:"countdown",style:_({background:e(w)})},[(r(!0),m(F,null,z(e(n).countdownData,(S,b)=>(r(),m("div",{class:"countdown_item",key:b},[s("div",to,[s("div",{class:"countdown_item_content_value",style:_(e(c))},$(S.value),5),s("div",{class:"countdown_item_content_text",style:_(e(f))},$(S.text),5)]),b<e(n).countdownData.length-1?(r(),m("div",{key:0,class:"countdown_item_line",style:_({height:i.moduleData.data.form.countDownStyle.height+"px"})},[s("div",{class:"countdown_item_line_circle",style:_({background:e(p)})},null,4),s("div",{class:"countdown_item_line_circle",style:_({background:e(p)})},null,4)],4)):C("",!0)]))),128))],4))}}),ao=U(oo,[["__scopeId","data-v-6fac82ce"]]),no={class:"product-box1-img"},lo=["src"],ro={class:"product-box1-info"},so={class:"product-box1-info-mslist"},io=["src"],uo={class:"product-box1-info-content"},co={class:"product-box1-info-content-price"},po={class:"product-box2-img"},mo=["src"],fo={class:"product-box2-info"},bo={class:"product-box2-info-mslist"},go=["src"],yo={class:"product-box2-info-content"},ho={class:"product-box2-info-content-price"},_o=["src"],vo={class:"product-box-info"},Do={class:"product-box-info-content"},ko={class:"product-box-info-content-price"},So=L({__name:"ProductCard",props:{moduleData:{type:Object,default:{}}},setup(i){const{regionInfo:d,isMedia:n}=Ie(),u=i,a=v(()=>{const o=u.moduleData.data.form.layout;return o===1?"repeat(1, 1fr)":o===2?"repeat(2, 1fr)":o===3?"repeat(3, 1fr)":"repeat(4, 1fr)"}),D=(o,S=!1)=>{const b=o!=null&&o.backgroundImage?`url(${o.backgroundImage})`:"",T=(o==null?void 0:o.bgType)===1&&o.backgroundColor||"",R=(o==null?void 0:o.bgType)===2&&o.linear&&o.linear.length>0?`linear-gradient(${o.region||"to right"}, ${o.linear.map(l=>`${l.color} ${l.percentage||"0"}%`)})`:"";return o.bgType===1?`${T}`.trim():o.bgType===2?`${R}`.trim():b},g=v(()=>{const o=u.moduleData.data.form.submitBtn;return{fontSize:o.fontSize||"",fontFamily:o.fontFamily||"",color:o.fontColor||"",background:w.value,width:o.width?`${o.width}px`:"127px",height:o.height?`${o.height}px`:"",lineHeight:o.height?`${o.height}px`:"",borderRadius:o.borderRadius?`${o.borderRadius}px`:"",borderColor:o.borderColor||""}}),w=v(()=>{const o=u.moduleData.data.form.submitBtn;return D(o,!0)}),p=o=>({fontSize:o.fontSize||"",fontFamily:o.fontFamily||"",color:o.fontColor||"",fontWeight:o.fontWeight===1?700:"",fontStyle:o.fontStyle===1?"italic":"",textDecoration:o.textDecoration===1?"underline":""}),k=v(()=>p(u.moduleData.data.form.titleStyle)),y=v(()=>p(u.moduleData.data.form.descStyle)),c=v(()=>p(u.moduleData.data.form.productList[u.moduleData.childIndex].descListStyle)),f=v(()=>p(u.moduleData.data.form.priceStyle)),t=v(()=>p(u.moduleData.data.form.underlinedpriceStyle));return(o,S)=>(r(),m("div",{class:"product",style:_({gridTemplateColumns:e(a),backgroundColor:i.moduleData.data.form.backgroundColor})},[i.moduleData.data.form.isDesc&&!e(n)?(r(!0),m(F,{key:0},z(i.moduleData.data.form.productList,(b,T)=>(r(),m("div",{class:"product-box1 hoverItem",key:T,style:_({backgroundColor:i.moduleData.data.form.productBackgroun
1dColor,borderColor:i.moduleData.data.form.productBorderColor})},[s("div",no,[s("img",{src:b.img,alt:""},null,8,lo)]),s("div",ro,[s("p",{class:"product-box1-info-title",style:_(e(k))},$(b.title),5),s("p",{class:"product-box1-info-desc",style:_(e(y))},$(b.desc),5),s("div",so,[(r(!0),m(F,null,z(b.descList,(R,l)=>(r(),m("div",{key:l},[s("img",{src:R.img,alt:""},null,8,io),s("p",{style:_(e(c))},$(R.desc),5)]))),128))]),S[0]||(S[0]=s("div",{class:"line"},null,-1)),s("div",uo,[s("div",co,[s("span",{class:"product-box1-info-content-price-normal",style:_(e(f))},$(b.price),5),s("span",{class:"product-box1-info-content-price-undeline",style:_(e(t))},$(b.underlinedPrice),5)]),s("div",{class:"product-box1-info-content-btn",style:_(e(g))},$(i.moduleData.data.form.submitBtn.text),5)])])],4))),128)):i.moduleData.data.form.isDesc&&e(n)?(r(!0),m(F,{key:1},z(i.moduleData.data.form.productList,(b,T)=>(r(),m("div",{class:"product-box2 hoverItem",key:T,style:_({backgroundColor:i.moduleData.data.form.productBackgroundColor,borderColor:i.moduleData.data.form.productBorderColor})},[s("div",po,[s("img",{src:b.img,alt:""},null,8,mo)]),s("div",fo,[s("p",{class:"product-box2-info-title",style:_(e(k))},$(b.title),5),s("p",{class:"product-box2-info-desc",style:_(e(y))},$(b.desc),5),s("div",bo,[(r(!0),m(F,null,z(b.descList,(R,l)=>(r(),m("div",{key:l},[s("img",{src:R.img,alt:""},null,8,go),s("p",{style:_(e(c))},$(R.desc),5)]))),128))]),S[1]||(S[1]=s("div",{class:"line"},null,-1)),s("div",yo,[s("div",ho,[s("span",{class:"product-box2-info-content-price-normal",style:_(e(f))},$(b.price),5),s("span",{class:"product-box2-info-content-price-undeline",style:_(e(t))},$(b.underlinedPrice),5)]),s("div",{class:"product-box2-info-content-btn",style:_(e(g))},$(i.moduleData.data.form.submitBtn.text),5)])])],4))),128)):(r(!0),m(F,{key:2},z(i.moduleData.data.form.productList,(b,T)=>(r(),m("div",{class:"product-box hoverItem",key:T,style:_({backgroundColor:i.moduleData.data.form.productBackgroundColor,borderColor:i.moduleData.data.form.productBorderColor})},[s("img",{src:b.img,alt:""},null,8,_o),s("div",vo,[s("p",{class:"product-box-info-title",style:_(e(k))},$(b.title),5),s("p",{class:"product-box2-info-desc",style:_(e(y))},$(b.desc),5),S[2]||(S[2]=s("div",{class:"line"},null,-1)),s("div",Do,[s("div",ko,[s("span",{class:"product-box-info-content-price-normal",style:_(e(f))},$(b.price),5),s("span",{class:"product-box-info-content-price-undeline",style:_(e(t))},$(b.underlinedPrice),5)]),s("div",{class:"product-box-info-content-btn",style:_(e(g))},$(i.moduleData.data.form.submitBtn.text),5)])])],4))),128))],4))}}),xo=U(So,[["__scopeId","data-v-ff2483b1"]]),wo=L({__name:"[id]",setup(i){const{regionInfo:d,isMedia:n}=Ie(),u=nt(),a=j({pcData:{modules:[]},h5Data:{modules:[]},flashSaleVoList:[],marketingPrizeDrawVoList:[],componentFormRelationList:[],componentSubscribeRelations:[],pageId:""}),D=async()=>{await se();const y=await q({url:"/componentInfo/selectByPageUrl",opts:{pageUrL:u.params.id}});if(y){const{data:c}=y;c.status==0&&(a.pcData=c.computerContentStr?JSON.parse(c.computerContentStr):"",a.h5Data=c.clientContentStr?JSON.parse(c.clientContentStr):"",a.flashSaleVoList=c.flashSaleVoList?c.flashSaleVoList:[],a.marketingPrizeDrawVoList=c.marketingPrizeDrawVoList?c.marketingPrizeDrawVoList:[],a.componentFormRelationList=c.componentFormRelationList?c.componentFormRelationList:[],a.componentSubscribeRelations=c.componentSubscribeRelations?c.componentSubscribeRelations:[],a.pageId=c.id,a.pcData.modules&&a.pcData.modules.forEach(f=>{switch(f.modeName){case"SeckillModule":g(f);break;case"LotteryDrawModule":w(f);break;case"formModule":p(f);break;case"SubscribeModule":k(f);break}}),a.h5Data.modules&&a.h5Data.modules.forEach(f=>{switch(f.modeName){case"SeckillModule":g(f);break;case"LotteryDrawModule":w(f);break;case"formModule":p(f);break;case"SubscribeModule":k(f);break}}))}},g=y=>{const c=a.flashSaleVoList.findIndex(f=>f.id===y.data.form.activiteId);c!==-1&&(a.flashSaleVoList[c].templateId=y.data.form.templateId)},w=y=>{const c=a.marketingPrizeDrawVoList.findIndex(f=>f.id===y.data.form.activiteId);c!==-1&&(a.marketingPrizeDrawVoList[c].template=y.data.form.templateId==="template1"?1:2)},p=y=>
1{const c=a.componentFormRelationList.findIndex(f=>f.formName===y.data.form.name);c!==-1&&(y.data.form.id=a.componentFormRelationList[c].id)},k=y=>{const c=a.componentSubscribeRelations.findIndex(f=>f.subscribeTitle===y.data.form.name);c!==-1&&(y.data.form.id=a.componentSubscribeRelations[c].id)};return u.params.id&&D(),(y,c)=>{var f,t;return r(),m("div",null,[(e(n)?(f=e(a).h5Data.modules)!=null&&f.length:(t=e(a).pcData.modules)!=null&&t.length)?(r(!0),m(F,{key:0},z(e(n)?e(a).h5Data.modules:e(a).pcData.modules,(o,S)=>(r(),m("div",{class:P(o.modeName!="CarouselModule"&&o.modeName!="LotteryDrawModule"&&o.modeName!="SeckillModule"?"activityPage":"")},[o.modeName=="CarouselModule"?(r(),B($t,{key:0,moduleData:o},null,8,["moduleData"])):C("",!0),o.modeName=="richTextModule"?(r(),B(Bt,{key:1,moduleData:o},null,8,["moduleData"])):C("",!0),o.modeName=="pictureModule"?(r(),B(Lt,{key:2,moduleData:o},null,8,["moduleData"])):C("",!0),o.modeName=="PlaceholderDivModule"?(r(),B(eo,{key:3,moduleData:o},null,8,["moduleData"])):C("",!0),o.modeName=="formModule"?(r(),B(Ut,{key:4,moduleData:o,pageId:e(a).pageId},null,8,["moduleData","pageId"])):C("",!0),o.modeName=="SubscribeModule"?(r(),B(Kt,{key:5,moduleData:o,pageId:e(a).pageId},null,8,["moduleData","pageId"])):C("",!0),o.modeName=="SeckillModule"&&e(a).flashSaleVoList.length?(r(),B(Jt,{key:6,moduleData:e(a).flashSaleVoList},null,8,["moduleData"])):C("",!0),o.modeName=="LotteryDrawModule"&&e(a).marketingPrizeDrawVoList.length?(r(),B(Xt,{key:7,moduleData:e(a).marketingPrizeDrawVoList},null,8,["moduleData"])):C("",!0),o.modeName=="CountDownModule"?(r(),B(ao,{key:8,moduleData:o},null,8,["moduleData"])):C("",!0),o.modeName=="ProductCardModule"?(r(),B(xo,{key:9,moduleData:o},null,8,["moduleData"])):C("",!0)],2))),256)):C("",!0)])}}}),Ho=U(wo,[["__scopeId","data-v-e09daa0a"]]);export{Ho as default};
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.