import{r as e,u as t,H as o,G as l,t as r,l as a,o as n,a1 as i,as as s,s as u,at as d,au as c,av as p,aw as g,ad as m,d as f,a0 as h,I as v,am as b,ax as x,h as y,i as w,a as _,c as C,w as k,b as S,n as R,e as B,S as D,U as E,T,A as I,p as W,D as A,g as F,ay as $,j as z,q as N,E as O,ak as U,ai as P,aa as H,P as j,F as M,az as G,aA as X,aB as Y,a5 as L,M as V,J as q,N as J,R as Z,ag as K,aj as Q,B as ee,O as te,aC as oe,aD as le,aE as re,ab as ae,a2 as ne,aF as ie,aG as se,aH as ue}from"./index-65a0752a.js";import{_ as de}from"./u-icon.086befcc.js";import{_ as ce}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as pe}from"./u-avatar.0b633ead.js";import{_ as ge}from"./u-popup.861e9cb5.js";import{_ as me}from"./u-parse.2a5ce958.js";import{_ as fe}from"./tabbar.2bf8dc03.js";import{m as he}from"./manifest.b04774ad.js";function ve(f={}){const h=e(!0),v=t(),b=e(0),x=e(0),y=e(f.name||""),w=e(""),_=o({pageMode:"diy",title:"",global:{},value:[]}),C=l((()=>"decorate"==v.mode?v:_)),k=e(!1);let S="";return{getLoading:()=>h.value,pullDownRefreshCount:b,data:C.value,isShowTopTabbar:k,pageStyle:()=>{var e="";return C.value.global.pageStartBgColor&&(C.value.global.pageStartBgColor&&C.value.global.pageEndBgColor?e+=`background:linear-gradient(${C.value.global.pageGradientAngle},${C.value.global.pageStartBgColor},${C.value.global.pageEndBgColor});`:e+="background-color:"+C.value.global.pageStartBgColor+";"),e+="min-height:calc(100vh - 50px);",C.value.global.bgUrl&&(e+=`background-image:url('${r(C.value.global.bgUrl)}');`),C.value.global.bgHeightScale&&(e+=`background-size: 100% ${C.value.global.bgHeightScale}%;`),e},onLoad:()=>{a((e=>{v.mode=e.mode||"","decorate"==v.mode&&(h.value=!1),x.value=e.id||"",""==y.value&&(y.value=e.name||""),w.value=e.template||"",v.siteId=e.site_id||"",v.siteId&&uni.setStorageSync("sourceSiteId",v.siteId)}))},onShow:(e=null)=>{n((()=>{let t=i();S=t[t.length-1]?t[t.length-1].route:"";let o=[];uni.getStorageSync("diyPageBlank")&&(o=uni.getStorageSync("diyPageBlank")),!o.length||o.length&&-1==o.indexOf(S)?v.topFixedStatus="home":o.length&&-1!=o.indexOf(S)&&(v.topFixedStatus="diy"),"decorate"==v.mode?v.init():s({id:x.value,name:y.value,template:w.value,site_id:v.siteId}).then((t=>{let o=t.data;if(o.value){_.pageMode=o.mode,_.title=o.title;let e=JSON.parse(o.value);_.global=e.global,_.value=e.value,_.value.forEach(((e,t)=>{e.pageStyle="",e.pageStartBgColor&&(e.pageStartBgColor&&e.pageEndBgColor?e.pageStyle+=`background:linear-gradient(${e.pageGradientAngle},${e.pageStartBgColor},${e.pageEndBgColor});`:e.pageStyle+="background-color:"+e.pageStartBgColor+";"),e.margin&&(e.margin.top>0&&(e.pageStyle+="padding-top:"+2*e.margin.top+"rpx;"),e.pageStyle+="padding-bottom:"+2*e.margin.bottom+"rpx;",e.pageStyle+="padding-right:"+2*e.margin.both+"rpx;",e.pageStyle+="padding-left:"+2*e.margin.both+"rpx;")})),k.value=_.value.some((e=>e&&e.position&&"top_fixed"==e.position)),u({title:_.title})}h.value=!1,e&&e(o)}))}))},onHide:(e=null)=>{d((()=>{let t=[];uni.getStorageSync("diyPageBlank")&&(t=uni.getStorageSync("diyPageBlank")),t.length&&(t=Array.from(new Set(t)),t.forEach(((e,t,o)=>{e==S&&o.splice(t,1)}))),"diy"==v.topFixedStatus&&t.push(S),uni.setStorageSync("diyPageBlank",t),e&&e()}))},onUnload:()=>{c((()=>{}))},onPullDownRefresh:()=>{p((()=>{b.value++,g()}))},onPageScroll:()=>{m((e=>{e.scrollTop>0&&(v.scrollTop=e.scrollTop)}))}}}const be=ce(f({__name:"index",props:["component","index","pullDownRefreshCount"],setup(o){const a=o,n=t(),i=l((()=>"decorate"==n.mode?n.value[a.index]:a.component)),s=l((()=>{var e="";return e+="position:relative;",i.value.componentStartBgColor&&(i.value.componentStartBgColor&&i.value.componentEndBgColor?e+=`background:linear-gradient(${i.value.componentGradientAngle},${i.value.componentStartBgColor},${i.value.componentEndBgColor});`:e+="background-color:"+i.value.componentStartBgColor+";"),i.value.componentBgUrl&&(e+=`background-image:url('${r(i.value.componentBgUrl)}');`,e+="background-size: cover;background-repeat: no-repeat;"),i.value.topRounded&&(e+="border-top-left-radius:"+2*i.value.topRounded+"rpx;"),i.value.topRounded&&(e+="border-top-right-radius:"+2*i.value.topRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*i.value.bottomRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*i.value.bottomRounded+"rpx;"),e})),u=l((()=>{var e="";return i.value.componentBgUrl&&(e+="position:absolute;top:0;width:100%;",e+=`background: rgba(0,0,0,${i.value.componentBgAlpha/10});`,e+=`height:${G.value}px;`,i.value.topRounded&&(e+="border-top-left-radius:"+2*i.value.topRounded+"rpx;"),i.value.topRounded&&(e+="border-top-right-radius:"+2*i.value.topRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*i.value.bottomRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*i.value.bottomRounded+"rpx;")),e})),d=l((()=>{let e={width:""},t=100/i.value.rowCount,o=parseInt(i.value.list.length/(2*i.value.rowCount))*i.value.rowCount+i.value.list.length%(2*i.value.rowCount),l=4*i.value.margin.both;return e.width=`calc(${t*o}vw - ${l}rpx)`,e})),c=e=>{let t={width:""},o=100/i.value.rowCount,l=4*i.value.margin.both/i.value.rowCount;if(parseInt(i.value.list.length/(2*i.value.rowCount))>=e+1)t.width=`calc(${o*i.value.rowCount}vw - ${l*i.value.rowCount}rpx)`;else{let e=i.value.list.length%(2*i.value.rowCount);e>i.value.rowCount?t.width=`calc(${o*i.value.rowCount}vw - ${l*i.value.rowCount}rpx)`:t.width=`calc(${o*e}vw - ${l*e}rpx)`}return t},p=e=>{let t={width:""};if(parseInt(i.value.list.length/(2*i.value.rowCount))>=e+1)t.width=100/i.value.rowCount+"%";else{let e=i.value.list.length%(2*i.value.rowCount);e>i.value.rowCount?t.width=100/i.value.rowCount+"%":t.width=100/e+"%"}return t};h((()=>a.pullDownRefreshCount),((e,t)=>{}));const g=e(0),m=e=>{g.value=e.detail.current},f=(e,t)=>{let o=i.value.pageCount*i.value.rowCount,l=!0;return l=e>=[(t-1)*o]&&e<[t*o],l},j=e("");v((()=>{X(),"decorate"==n.mode&&h((()=>i.value),((e,t)=>{e&&"GraphicNav"==e.componentName&&X()}))}));const M=$(),G=e(0),X=()=>{b((()=>{(()=>{if("horizontal"==i.value.layout&&"pageSlide"==i.value.showStyle){var e=0;x().in(M).select(".graphic-nav-item").boundingClientRect((t=>{let o=1;2==i.value.pageCount&&(o=i.value.list.length/i.value.rowCount>1?2:1),e=t.height*o,j.value=2*e+"rpx"})).exec()}})();x().in(M).select(".diy-graphic-nav").boundingClientRect((e=>{G.value=e.height})).exec()}))};return(e,t)=>{const o=z,l=N,a=O,g=y(w("u-icon"),de),h=U,v=P,b=H;return _(),C(o,{style:R(B(s))},{default:k((()=>[S(o,{style:R(B(u))},null,8,["style"]),S(o,{class:"diy-graphic-nav relative"},{default:k((()=>["vertical"==B(i).layout?(_(),C(o,{key:0,class:"graphic-nav"},{default:k((()=>[(_(!0),D(E,null,T(B(i).list,((e,t)=>(_(),C(o,{class:"graphic-nav-item",key:e.id},{default:k((()=>[S(o,{onClick:t=>B(n).toRedirect(e.link),class:I(["flex items-center justify-between py-3 px-4",0==t?"border-t-0":"border-t"])},{default:k((()=>["text"!=B(i).mode?(_(),C(o,{key:0,class:"graphic-img relative flex items-center w-10 h-10 mr-[20rpx]",style:R({width:2*B(i).imageSize+"rpx",height:2*B(i).imageSize+"rpx"})},{default:k((()=>[e.imageUrl?(_(),C(l,{key:0,src:B(r)(e.imageUrl),mode:"aspectFill",style:R({maxWidth:2*B(i).imageSize+"rpx",maxHeight:2*B(i).imageSize+"rpx",borderRadius:2*B(i).aroundRadius+"rpx"})},null,8,["src","style"])):(_(),C(l,{key:1,src:B(r)("static/resource/images/diy/figure.png"),mode:"aspectFill",style:R({maxWidth:2*B(i).imageSize+"rpx",maxHeight:2*B(i).imageSize+"rpx",borderRadius:2*B(i).aroundRadius+"rpx"})},null,8,["src","style"])),e.label.control?(_(),C(a,{key:2,class:"tag absolute -top-[10rpx] -right-[24rpx] text-white rounded-[24rpx] rounded-bl-none transform scale-80 py-1 px-2 text-xs",style:R({color:e.label.textColor,backgroundImage:"linear-gradient("+e.label.bgColorStart+","+e.label.bgColorEnd+")"})},{default:k((()=>[W(A(e.label.text),1)])),_:2},1032,["style"])):F("v-if",!0)])),_:2},1032,["style"])):F("v-if",!0),"img"!=B(i).mode?(_(),C(a,{key:1,class:"graphic-text w-full truncate leading-normal",style:R({fontSize:2*B(i).font.size+"rpx",fontWeight:B(i).font.weight,color:B(i).font.color})},{default:k((()=>[W(A(e.title),1)])),_:2},1032,["style"])):F("v-if",!0),S(g,{name:"arrow-right",color:"#999999",size:"12"})])),_:2},1032,["onClick","class"])])),_:2},1024)))),128))])),_:1})):"horizontal"==B(i).layout&&"pageSlide"==B(i).showStyle?(_(),C(v,{key:1,class:"graphic-nav box-border relative",circular:"","indicator-dots":!1,style:R({height:j.value}),onChange:m},{default:k((()=>[(_(!0),D(E,null,T(Math.ceil(B(i).list.length/(B(i).pageCount*B(i).rowCount)),((e,t)=>(_(),C(h,{class:"graphic-nav-wrap flex flex-wrap"},{default:k((()=>[(_(!0),D(E,null,T(B(i).list,((t,s)=>(_(),D(E,null,[f(s,e)?(_(),C(o,{class:I([B(i).mode]),key:t.id,style:R({width:100/B(i).rowCount+"%"})},{default:k((()=>[S(o,{onClick:e=>B(n).toRedirect(t.link),class:"graphic-nav-item flex flex-col items-center box-border py-2"},{default:k((()=>["text"!=B(i).mode?(_(),C(o,{key:0,class:"graphic-img relative flex items-center justify-center w-10 h-10",style:R({width:2*B(i).imageSize+"rpx",height:2*B(i).imageSize+"rpx"})},{default:k((()=>[t.imageUrl?(_(),C(l,{key:0,src:B(r)(t.imageUrl),mode:"aspectFill",style:R({maxWidth:2*B(i).imageSize+"rpx",maxHeight:2*B(i).imageSize+"rpx",borderRadius:2*B(i).aroundRadius+"rpx"})},null,8,["src","style"])):(_(),C(l,{key:1,src:B(r)("static/resource/images/diy/figure.png"),mode:"aspectFill",style:R({maxWidth:2*B(i).imageSize+"rpx",maxHeight:2*B(i).imageSize+"rpx",borderRadius:2*B(i).aroundRadius+"rpx"})},null,8,["src","style"])),t.label.control?(_(),C(a,{key:2,class:"tag absolute -top-[10rpx] -right-[24rpx] text-white rounded-[24rpx] rounded-bl-none transform scale-80 py-1 px-2 text-xs",style:R({color:t.label.textColor,backgroundImage:"linear-gradient("+t.label.bgColorStart+","+t.label.bgColorEnd+")"})},{default:k((()=>[W(A(t.label.text),1)])),_:2},1032,["style"])):F("v-if",!0)])),_:2},1032,["style"])):F("v-if",!0),"img"!=B(i).mode?(_(),C(a,{key:1,class:I(["graphic-text w-full text-center truncate leading-normal",{"pt-[16rpx]":"text"!=B(i).mode}]),style:R({fontSize:2*B(i).font.size+"rpx",fontWeight:B(i).font.weight,color:B(i).font.color})},{default:k((()=>[W(A(t.title),1)])),_:2},1032,["class","style"])):F("v-if",!0)])),_:2},1032,["onClick"])])),_:2},1032,["class","style"])):F("v-if",!0)],64)))),256))])),_:2},1024)))),256))])),_:1},8,["style"])):"horizontal"==B(i).layout&&2==B(i).pageCount&&"singleSlide"==B(i).showStyle?(_(),C(b,{key:2,"scroll-x":"singleSlide"==B(i).showStyle,class:I([["graphic-nav","graphic-nav-"+B(i).showStyle],"py-[10rpx]"])},{default:k((()=>[S(o,{style:R(B(d)),class:"flex"},{default:k((()=>[(_(!0),D(E,null,T(Math.ceil(B(i).list.length/(B(i).pageCount*B(i).rowCount)),((e,t)=>(_(),C(o,{class:"graphic-nav-wrap flex flex-wrap",style:R(c(t))},{default:k((()=>[(_(!0),D(E,null,T(B(i).list,((s,u)=>(_(),D(E,null,[f(u,e)?(_(),C(o,{key:0,onClick:e=>B(n).toRedirect(s.link),style:R(p(t)),class:"graphic-nav-item flex flex-col items-center box-border py-2"},{default:k((()=>["text"!=B(i).mode?(_(),C(o,{key:0,class:"graphic-img relative flex items-center justify-center w-10 h-10",style:R({width:2*B(i).imageSize+"rpx",height:2*B(i).imageSize+"rpx"})},{default:k((()=>[s.imageUrl?(_(),C(l,{key:0,src:B(r)(s.imageUrl),mode:"aspectFill",style:R({maxWidth:2*B(i).imageSize+"rpx",maxHeight:2*B(i).imageSize+"rpx",borderRadius:2*B(i).aroundRadius+"rpx"})},null,8,["src","style"])):(_(),C(l,{key:1,src:B(r)("static/resource/images/diy/figure.png"),mode:"aspectFill",style:R({maxWidth:2*B(i).imageSize+"rpx",maxHeight:2*B(i).imageSize+"rpx",borderRadius:2*B(i).aroundRadius+"rpx"})},null,8,["src","style"])),s.label.control?(_(),C(a,{key:2,class:I(["tag absolute -top-[10rpx] -right-[24rpx] text-white rounded-[24rpx] rounded-bl-none transform scale-80 py-1 px-2 text-xs"]),style:R({color:s.label.textColor,backgroundImage:"linear-gradient("+s.label.bgColorStart+","+s.label.bgColorEnd+")"})},{default:k((()=>[W(A(s.label.text),1)])),_:2},1032,["style"])):F("v-if",!0)])),_:2},1032,["style"])):F("v-if",!0),"img"!=B(i).mode?(_(),C(a,{key:1,class:I(["graphic-text w-full text-center truncate leading-normal",{"pt-[16rpx]":"text"!=B(i).mode}]),style:R({fontSize:2*B(i).font.size+"rpx",fontWeight:B(i).font.weight,color:B(i).font.color})},{default:k((()=>[W(A(s.title),1)])),_:2},1032,["class","style"])):F("v-if",!0)])),_:2},1032,["onClick","style"])):F("v-if",!0)],64)))),256))])),_:2},1032,["style"])))),256))])),_:1},8,["style"])])),_:1},8,["scroll-x","class"])):(_(),C(b,{key:3,"scroll-x":"singleSlide"==B(i).showStyle,class:I([["graphic-nav","graphic-nav-"+B(i).showStyle],"py-[10rpx]"])},{default:k((()=>[(_(!0),D(E,null,T(B(i).list,((e,t)=>(_(),C(o,{class:I(["graphic-nav-item",{"flex-shrink-0":"singleSlide"==B(i).showStyle}]),key:e.id,style:R({width:100/B(i).rowCount+"%"})},{default:k((()=>[S(o,{onClick:t=>B(n).toRedirect(e.link),class:"flex flex-col items-center box-border py-2"},{default:k((()=>["text"!=B(i).mode?(_(),C(o,{key:0,class:"graphic-img relative flex items-center justify-center w-10 h-10",style:R({width:2*B(i).imageSize+"rpx",height:2*B(i).imageSize+"rpx"})},{default:k((()=>[e.imageUrl?(_(),C(l,{key:0,src:B(r)(e.imageUrl),mode:"aspectFill",style:R({maxWidth:2*B(i).imageSize+"rpx",maxHeight:2*B(i).imageSize+"rpx",borderRadius:2*B(i).aroundRadius+"rpx"})},null,8,["src","style"])):(_(),C(l,{key:1,src:B(r)("static/resource/images/diy/figure.png"),mode:"aspectFill",style:R({maxWidth:2*B(i).imageSize+"rpx",maxHeight:2*B(i).imageSize+"rpx",borderRadius:2*B(i).aroundRadius+"rpx"})},null,8,["src","style"])),e.label.control?(_(),C(a,{key:2,class:I(["tag absolute -top-[10rpx] -right-[24rpx] text-white rounded-[24rpx] rounded-bl-none transform scale-80 py-1 px-2 text-xs"]),style:R({color:e.label.textColor,backgroundImage:"linear-gradient("+e.label.bgColorStart+","+e.label.bgColorEnd+")"})},{default:k((()=>[W(A(e.label.text),1)])),_:2},1032,["style"])):F("v-if",!0)])),_:2},1032,["style"])):F("v-if",!0),"img"!=B(i).mode?(_(),C(a,{key:1,class:I(["graphic-text w-full text-center truncate leading-normal",{"pt-[16rpx]":"text"!=B(i).mode}]),style:R({fontSize:2*B(i).font.size+"rpx",fontWeight:B(i).font.weight,color:B(i).font.color})},{default:k((()=>[W(A(e.title),1)])),_:2},1032,["class","style"])):F("v-if",!0)])),_:2},1032,["onClick"])])),_:2},1032,["class","style"])))),128))])),_:1},8,["scroll-x","class"]))])),_:1})])),_:1},8,["style"])}}}),[["__scopeId","data-v-b07f330a"]]),xe=f({__name:"index",props:["component","index","pullDownRefreshCount"],setup(e){const o=e,r=t(),a=l((()=>"decorate"==r.mode?r.value[o.index]:o.component)),n=l((()=>{var e="";return e+="height:"+2*a.value.height+"rpx;",a.value.componentStartBgColor&&(a.value.componentStartBgColor&&a.value.componentEndBgColor?e+=`background:linear-gradient(${a.value.componentGradientAngle},${a.value.componentStartBgColor},${a.value.componentEndBgColor});`:e+="background-color:"+a.value.componentStartBgColor+";"),a.value.topRounded&&(e+="border-top-left-radius:"+2*a.value.topRounded+"rpx;"),a.value.topRounded&&(e+="border-top-right-radius:"+2*a.value.topRounded+"rpx;"),a.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*a.value.bottomRounded+"rpx;"),a.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*a.value.bottomRounded+"rpx;"),e}));return h((()=>o.pullDownRefreshCount),((e,t)=>{})),(e,t)=>{const o=z;return _(),C(o,{style:R(B(n))},null,8,["style"])}}}),ye=f({__name:"index",props:["component","index","pullDownRefreshCount"],setup(e){const o=e,r=t(),a=l((()=>"decorate"==r.mode?r.value[o.index]:o.component)),n=l((()=>{var e="";return e+="border-top:"+2*a.value.borderWidth+"rpx "+a.value.borderStyle+" "+a.value.borderColor+";"}));return h((()=>o.pullDownRefreshCount),((e,t)=>{})),(e,t)=>{const o=z;return _(),C(o,{class:"horz-line-wrap"},{default:k((()=>["decorate"==B(r).mode?(_(),C(o,{key:0,class:"h-[30rpx]"})):F("v-if",!0),S(o,{style:R(B(n))},null,8,["style"]),"decorate"==B(r).mode?(_(),C(o,{key:1,class:"h-[30rpx]"})):F("v-if",!0)])),_:1})}}}),we=f({__name:"index",props:["component","index","pullDownRefreshCount"],setup(e){const o=e,a=t(),n=l((()=>"decorate"==a.mode?a.value[o.index]:o.component)),i=l((()=>{var e="";return n.value.componentStartBgColor&&(n.value.componentStartBgColor&&n.value.componentEndBgColor?e+=`background:linear-gradient(${n.value.componentGradientAngle},${n.value.componentStartBgColor},${n.value.componentEndBgColor});`:e+="background-color:"+n.value.componentStartBgColor+";"),e})),s=l((()=>{var e="";return e+="height:"+n.value.imgHeight+";",n.value.topRounded&&(e+="border-top-left-radius:"+2*n.value.topRounded+"rpx;"),n.value.topRounded&&(e+="border-top-right-radius:"+2*n.value.topRounded+"rpx;"),n.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*n.value.bottomRounded+"rpx;"),n.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*n.value.bottomRounded+"rpx;"),e}));v((()=>{u(),h((()=>n.value),((e,t)=>{e&&"HotArea"==e.componentName&&u()}))}));const u=()=>{"decorate"==a.mode&&""==n.value.imageUrl&&(n.value.imgWidth=690,n.value.imgHeight=330)};return h((()=>o.pullDownRefreshCount),((e,t)=>{})),(e,t)=>{const o=N,l=z;return _(),C(l,{style:R(B(i))},{default:k((()=>[S(l,{class:"simple-graph-wrap overflow-hidden relative leading-0"},{default:k((()=>[B(n).imageUrl?(_(),C(o,{key:0,style:R(B(s)),src:B(r)(B(n).imageUrl),mode:"widthFix","show-menu-by-longpress":!0,class:"w-full"},null,8,["style","src"])):(_(),C(o,{key:1,style:R(B(s)),src:B(r)("static/resource/images/diy/figure.png"),mode:"widthFix","show-menu-by-longpress":!0,class:"w-full"},null,8,["style","src"])),"decorate"!=B(a).mode?(_(),D(E,{key:2},[F(" 热区功能 "),(_(!0),D(E,null,T(B(n).heatMapData,((e,t)=>(_(),C(l,{onClick:t=>B(a).toRedirect(e.link),class:"absolute",key:t,style:R({width:e.width+"%",height:e.height+"%",left:e.left+"%",top:e.top+"%"})},null,8,["onClick","style"])))),128))],64)):F("v-if",!0)])),_:1})])),_:1},8,["style"])}}}),_e=ce(f({__name:"index",props:["component","index","pullDownRefreshCount"],setup(o){const a=o,n=t(),i=l((()=>"decorate"==n.mode?n.value[a.index]:a.component)),s=l((()=>{var e="";return e+="position:relative;",i.value.componentStartBgColor&&(i.value.componentStartBgColor&&i.value.componentEndBgColor?e+=`background:linear-gradient(${i.value.componentGradientAngle},${i.value.componentStartBgColor},${i.value.componentEndBgColor});`:e+="background-color:"+i.value.componentStartBgColor+";"),i.value.componentBgUrl&&(e+=`background-image:url('${r(i.value.componentBgUrl)}');`,e+="background-size: cover;background-repeat: no-repeat;"),e})),u=l((()=>{var e="";return i.value.topRounded&&(e+="border-top-left-radius:"+2*i.value.topRounded+"rpx;"),i.value.topRounded&&(e+="border-top-right-radius:"+2*i.value.topRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*i.value.bottomRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*i.value.bottomRounded+"rpx;"),e})),d=l((()=>{var e="";return i.value.componentBgUrl&&(e+="position:absolute;top:0;width:100%;",e+=`background: rgba(0,0,0,${i.value.componentBgAlpha/10});`,e+=`height:${f.value}px;`,i.value.topRounded&&(e+="border-top-left-radius:"+2*i.value.topRounded+"rpx;"),i.value.topRounded&&(e+="border-top-right-radius:"+2*i.value.topRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*i.value.bottomRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*i.value.bottomRounded+"rpx;")),e}));h((()=>a.pullDownRefreshCount),((e,t)=>{}));const c=l((()=>2*i.value.imageHeight+"rpx")),p=e(0),g=e=>{p.value=e.detail.current};v((()=>{y(),"decorate"==n.mode&&h((()=>i.value),((e,t)=>{e&&"ImageAds"==e.componentName&&y()}))}));const m=$(),f=e(0),y=()=>{"decorate"==n.mode&&i.value.list.forEach((e=>{""==e.imageUrl&&(e.imgWidth=690,e.imgHeight=330)})),b((()=>{x().in(m).select(".diy-image-ads").boundingClientRect((e=>{f.value=e.height})).exec()}))};let w=e(!0);return w.value=!0,(e,t)=>{const o=z,l=N,a=U,p=P;return _(),C(o,{style:R(B(s))},{default:k((()=>[S(o,{style:R(B(d))},null,8,["style"]),S(o,{class:"diy-image-ads"},{default:k((()=>[1==B(i).list.length?(_(),C(o,{key:0,class:"leading-0 overflow-hidden",style:R(B(u))},{default:k((()=>[S(o,{onClick:t[0]||(t[0]=e=>B(n).toRedirect(B(i).list[0].link))},{default:k((()=>[B(i).list[0].imageUrl?(_(),C(l,{key:0,src:B(r)(B(i).list[0].imageUrl),style:R({height:B(c)}),mode:"heightFix",class:"!w-full","show-menu-by-longpress":!0},null,8,["src","style"])):(_(),C(l,{key:1,src:B(r)("static/resource/images/diy/figure.png"),style:R({height:B(c)}),mode:"heightFix",class:"!w-full","show-menu-by-longpress":!0},null,8,["src","style"]))])),_:1})])),_:1},8,["style"])):(_(),C(o,{key:1,class:"relative"},{default:k((()=>[S(p,{class:I(["swiper",{"swiper-left":"left"==B(i).indicatorAlign,"swiper-right":"right"==B(i).indicatorAlign}]),style:R({height:B(c)}),autoplay:"true",circular:"true","indicator-dots":B(w),"indicator-color":B(i).indicatorColor,"indicator-active-color":B(i).indicatorActiveColor,onChange:g},{default:k((()=>[(_(!0),D(E,null,T(B(i).list,(e=>(_(),C(a,{class:"swiper-item",key:e.id,style:R(B(u))},{default:k((()=>[S(o,{onClick:t=>B(n).toRedirect(e.link)},{default:k((()=>[S(o,{class:"item",style:R({height:B(c)})},{default:k((()=>[e.imageUrl?(_(),C(l,{key:0,src:B(r)(e.imageUrl),mode:"scaleToFill",class:"w-full h-full","show-menu-by-longpress":!0},null,8,["src"])):(_(),C(l,{key:1,src:B(r)("static/resource/images/diy/figure.png"),mode:"scaleToFill",class:"w-full h-full","show-menu-by-longpress":!0},null,8,["src"]))])),_:2},1032,["style"])])),_:2},1032,["onClick"])])),_:2},1032,["style"])))),128))])),_:1},8,["style","indicator-dots","indicator-color","indicator-active-color","class"])])),_:1}))])),_:1})])),_:1},8,["style"])}}}),[["__scopeId","data-v-8905836d"]]),Ce=f({__name:"index",props:["component","index","pullDownRefreshCount","global"],setup(o){const a=o,n=j(),i=t(),s=l((()=>"decorate"==i.mode?i.value[a.index]:a.component)),u=l((()=>{var e="";return s.value.componentStartBgColor&&(s.value.componentStartBgColor&&s.value.componentEndBgColor?e+=`background:linear-gradient(${s.value.componentGradientAngle},${s.value.componentStartBgColor},${s.value.componentEndBgColor});`:e+="background-color:"+s.value.componentStartBgColor+";"),s.value.bgUrl&&(e+="background-image:url("+r(s.value.bgUrl)+");",e+="background-size: 100%;",e+="background-repeat: no-repeat;"),s.value.topRounded&&(e+="border-top-left-radius:"+2*s.value.topRounded+"rpx;"),s.value.topRounded&&(e+="border-top-right-radius:"+2*s.value.topRounded+"rpx;"),s.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*s.value.bottomRounded+"rpx;"),s.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*s.value.bottomRounded+"rpx;"),e}));h((()=>a.pullDownRefreshCount),((e,t)=>{}));const d=M(),{query:c}=G(location.href);c.code&&X()&&Y({code:c.code}).then((e=>{d.getMemberInfo()}));const p=l((()=>"decorate"==i.mode?{headimg:"",nickname:"昵称",balance:0,point:0,money:0,member_no:"NIU0000021"}:d.info)),g=l((()=>{if(p.value){let e=parseFloat(p.value.balance)+parseFloat(p.value.money);return L(e.toString())}return 0})),m=()=>{n.login.is_username||n.login.is_mobile||n.login.is_bind_mobile?J().setLoginBack({url:"/app/pages/member/index"}):n.login.is_auth_register?X()&&J().getAuthCode("snsapi_userinfo"):Z({title:"商家未开启注册方式",icon:"none"})};e(!1);const f=()=>{X()?J().getAuthCode("snsapi_userinfo"):V({url:"/app/pages/member/personal"})};return l((()=>"")),(e,t)=>{const o=y(w("u-avatar"),pe),l=z,a=O;return _(),C(l,{style:R(B(u))},{default:k((()=>[S(l,{class:"pt-[34rpx] member-info"},{default:k((()=>[B(p)?(_(),C(l,{key:0,class:"flex ml-[32rpx] mr-[52rpx] items-center relative"},{default:k((()=>[F(" 唤起获取微信 "),S(o,{src:B(r)(B(p).headimg),size:"55",leftIcon:"none","default-url":B(r)("static/resource/images/default_headimg.png"),onClick:f},null,8,["src","default-url"]),S(l,{class:"ml-[22rpx]"},{default:k((()=>[S(l,{class:"text-[#222222] flex pr-[50rpx] flex-wrap items-center"},{default:k((()=>[S(l,{class:"text-[#222222] truncate max-w-[320rpx] font-bold text-lg mr-[16rpx]",style:R({color:B(s).textColor})},{default:k((()=>[W(A(B(p).nickname),1)])),_:1},8,["style"])])),_:1}),S(l,{class:"text-[#696B70] text-[24rpx] mt-[10rpx]",style:R({color:B(s).textColor})},{default:k((()=>[W("UID:"+A(B(p).member_no),1)])),_:1},8,["style"])])),_:1}),S(l,{class:"set-icon flex items-center absolute right-0 top-2"},{default:k((()=>[S(l,{onClick:t[0]||(t[0]=e=>B(V)({url:"/app/pages/setting/index"}))},{default:k((()=>[S(a,{class:"nc-iconfont nc-icon-shezhiV6xx-1 text-[40rpx] ml-[10rpx]",style:R({color:B(s).textColor})},null,8,["style"])])),_:1})])),_:1})])),_:1})):(_(),C(l,{key:1,class:"flex ml-[32rpx] mr-[52rpx] items-center relative",onClick:m},{default:k((()=>[S(o,{src:"",size:"55","default-url":B(r)("static/resource/images/default_headimg.png")},null,8,["default-url"]),S(l,{class:"ml-[22rpx]"},{default:k((()=>[S(l,{class:"text-[#222222] font-bold text-lg",style:R({color:B(s).textColor})},{default:k((()=>[W(A(B(q)("login"))+"/"+A(B(q)("register")),1)])),_:1},8,["style"])])),_:1}),S(l,{class:"set-icon flex items-center absolute right-0 top-2"},{default:k((()=>[S(l,{onClick:t[1]||(t[1]=e=>B(V)({url:"/app/pages/setting/index"}))},{default:k((()=>[S(a,{class:"nc-iconfont nc-icon-shezhiV6xx-1 text-[40rpx] ml-[10rpx]",style:R({color:B(s).textColor})},null,8,["style"])])),_:1})])),_:1})])),_:1})),S(l,{class:"flex m-[30rpx] mb-0 py-[30rpx] items-center"},{default:k((()=>[S(l,{class:"flex-1 text-center"},{default:k((()=>[S(l,{class:"font-bold"},{default:k((()=>[S(l,{onClick:t[2]||(t[2]=e=>B(V)({url:B(p)?"/app/pages/member/balance":""})),style:R({color:B(s).textColor})},{default:k((()=>[W(A(B(g)),1)])),_:1},8,["style"])])),_:1}),S(l,{class:"text-sm mt-[10rpx]"},{default:k((()=>[S(l,{onClick:t[3]||(t[3]=e=>B(V)({url:B(p)?"/app/pages/member/balance":""})),style:R({color:B(s).textColor})},{default:k((()=>[W(A(B(q)("balance")),1)])),_:1},8,["style"])])),_:1})])),_:1}),S(l,{class:"border-solid border-white border-l border-b-0 border-t-0 border-r-0 h-[60rpx]"}),S(l,{class:"flex-1 text-center"},{default:k((()=>[S(l,{class:"font-bold"},{default:k((()=>[S(l,{onClick:t[4]||(t[4]=e=>B(V)({url:B(p)?"/app/pages/member/point":""})),style:R({color:B(s).textColor})},{default:k((()=>{var e;return[W(A(parseInt(null==(e=B(p))?void 0:e.point)||0),1)]})),_:1},8,["style"])])),_:1}),S(l,{class:"text-sm mt-[10rpx]"},{default:k((()=>[S(l,{onClick:t[5]||(t[5]=e=>B(V)({url:B(p)?"/app/pages/member/point":""})),style:R({color:B(s).textColor})},{default:k((()=>[W(A(B(q)("point")),1)])),_:1},8,["style"])])),_:1})])),_:1})])),_:1})])),_:1})])),_:1},8,["style"])}}}),ke=ce(f({__name:"index",props:["component","index","pullDownRefreshCount"],setup(o){const a=o,n=t(),i=M(),s=l((()=>"decorate"==n.mode?n.value[a.index]:a.component)),u=l((()=>{var e="";return s.value.topRounded&&(e+="border-top-left-radius:"+2*s.value.topRounded+"rpx;"),s.value.topRounded&&(e+="border-top-right-radius:"+2*s.value.topRounded+"rpx;"),s.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*s.value.bottomRounded+"rpx;"),s.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*s.value.bottomRounded+"rpx;"),e}));h((()=>a.pullDownRefreshCount),((e,t)=>{}));let d=e([]),c=e(0),p=e(0),g=e(-1),m=e([]);const f=l((()=>"decorate"==n.mode?(c.value=0,m.value=[{title:"商品包邮"}],p.value=1,d.value=[{}],{member_level_name:"会员等级",growth:5}):(i.info&&v(),i.info))),v=()=>{K().then((e=>{d.value=e.data;let t=!1;f.value&&d.value&&d.value.length&&d.value.forEach(((e,o)=>{e.level_id==f.value.member_level&&(p.value=o+1,e.level_benefits&&Object.values(e.level_benefits).forEach((e=>{e.content&&m.value.push(e.content)}))),e.growth>f.value.growth&&!t&&(g.value=o,t=!0)})),f.value.member_level?(-1==g.value&&(g.value=d.value.length-1),d.value[g.value]&&d.value[g.value].growth&&(c.value=d.value[g.value].growth-f.value.growth)):(f.value.member_level_name=d.value[0].level_name,c.value=d.value[0].growth,g.value=0,p.value=1)}))};let b=()=>{let e=100;return d.value[g.value]&&d.value[g.value].growth&&(e=f.value.growth?f.value.growth/d.value[g.value].growth*100:0),e};const x=e=>{if("decorate"==n.mode)return!1;V({url:e})};return(e,t)=>{const o=N,l=O,a=z,n=Q;return B(f)&&B(d)&&B(d).length?(_(),C(a,{key:0,style:R(B(u)),class:"overflow-hidden"},{default:k((()=>["style-1"==B(s).style?(_(),C(a,{key:0,class:"rounded-t-[16rpx] flex items-center justify-between style-bg-1 py-[20rpx] px-[30rpx]"},{default:k((()=>[S(a,{class:"flex items-end"},{default:k((()=>[S(o,{src:B(r)("static/resource/images/diy/member/VIP_02.png"),mode:"aspectFit",class:"w-[50rpx] h-[36rpx]"},null,8,["src"]),S(l,{class:"text-[28rpx] text-[#FFDAA8] ml-[10rpx] font-bold max-w-[440rpx] truncate"},{default:k((()=>[W(A(B(f).member_level_name),1)])),_:1})])),_:1}),S(a,{class:"flex items-center justify-center rounded-[30rpx] box-border style-btn w-[120rpx] h-[50rpx]",onClick:t[0]||(t[0]=e=>x("/app/pages/member/level"))},{default:k((()=>[S(l,{class:"text-[24rpx] text-[#333]"},{default:k((()=>[W(A(B(f).member_level?B(c)>0?"去升级":"去查看":"去解锁"),1)])),_:1}),S(l,{class:"iconfont iconxiayibu1 ml-[2rpx] !text-[20rpx] text-[#333]"})])),_:1})])),_:1})):F("v-if",!0),"style-2"==B(s).style?(_(),C(a,{key:1,class:"rounded-[16rpx] flex items-center justify-between style-bg-2 p-[30rpx]"},{default:k((()=>[S(a,{class:"flex flex-col"},{default:k((()=>[S(a,{class:"flex items-center"},{default:k((()=>[S(o,{src:B(r)("static/resource/images/diy/member/VIP_01.png"),mode:"aspectFit",class:"w-[74rpx] h-[30rpx]"},null,8,["src"]),S(l,{class:"text-[32rpx] text-[#FFE3B1] leading-[normal] ml-[14rpx] font-bold max-w-[420rpx] truncate"},{default:k((()=>[W(A(B(f).member_level_name),1)])),_:1})])),_:1}),B(m)&&B(m).length?(_(),C(l,{key:0,class:"text-[#fff] text-[24rpx] mt-[10rpx] leading-[32rpx]"},{default:k((()=>[W(A(B(f).member_level_name)+"购物享"+A(B(m)[0].title),1)])),_:1})):F("v-if",!0)])),_:1}),S(a,{class:"flex items-center justify-center rounded-[30rpx] box-border style-btn w-[120rpx] h-[50rpx]",onClick:t[1]||(t[1]=e=>x("/app/pages/member/level"))},{default:k((()=>[S(l,{class:"text-[24rpx] text-[#333]"},{default:k((()=>[W(A(B(f).member_level?B(c)>0?"去升级":"去查看":"去解锁"),1)])),_:1}),S(l,{class:"iconfont iconxiayibu1 ml-[2rpx] !text-[20rpx] text-[#333]"})])),_:1})])),_:1})):F("v-if",!0),"style-3"==B(s).style?(_(),C(a,{key:2,class:"rounded-[16rpx] style-bg-3 p-[30rpx]"},{default:k((()=>[S(a,{class:"flex items-center justify-between style-border-3 mb-[22rpx] pb-[22rpx]"},{default:k((()=>[S(a,{class:"flex flex-col flex-1"},{default:k((()=>[S(a,{class:"flex items-center justify-between"},{default:k((()=>[S(a,{class:"flex items-center"},{default:k((()=>[S(a,{class:"flex justify-end leading-[30rpx] box-border text-[#fff] pr-[10rpx] text-[26rpx] w-[120rpx] h-[30rpx] bg-contain bg-no-repeat",style:R({backgroundImage:"url("+B(r)("static/resource/images/diy/member/VIP.png")+")"})},{default:k((()=>[W(" VIP."+A(B(p)),1)])),_:1},8,["style"]),S(l,{class:"text-[#733F02] ml-[8rpx] text-[30rpx] font-bold max-w-[380rpx] truncate"},{default:k((()=>[W(A(B(f).member_level_name),1)])),_:1})])),_:1}),S(a,{class:"flex items-center",onClick:t[2]||(t[2]=e=>x("/app/pages/member/level"))},{default:k((()=>[S(a,{class:"flex items-center"},{default:k((()=>[S(o,{src:B(r)("static/resource/images/diy/member/rule.png"),mode:"aspectFit",class:"w-[20rpx] h-[20rpx]"},null,8,["src"]),S(l,{class:"text-[18rpx] text-[#733F02] ml-[6rpx]"},{default:k((()=>[W("规则")])),_:1})])),_:1}),S(a,{class:"ml-[10rpx] text-[#733F02] !text-[26rpx] nc-iconfont nc-icon-youV6xx"})])),_:1})])),_:1}),S(l,{class:"text-[28rpx] text-[#794200] mt-[16rpx]"},{default:k((()=>[W("购物或邀请好友可以提升等级")])),_:1})])),_:1})])),_:1}),S(a,{class:"flex items-center justify-between"},{default:k((()=>[S(a,{class:"flex flex-col flex-1"},{default:k((()=>[S(a,{class:"overflow-hidden rounded-[20rpx]"},{default:k((()=>[S(n,{percent:B(b)(),activeColor:"#fff",backgroundColor:"rgba(255,5,5,.1)","stroke-width":"6"},null,8,["percent"])])),_:1}),B(c)>0?(_(),C(l,{key:0,class:"text-[24rpx] text-[#794200] mt-[16rpx]"},{default:k((()=>[W("还差"+A(B(c))+"成长值即可升级为"+A(B(d)[B(g)].level_name),1)])),_:1})):(_(),C(l,{key:1,class:"text-[24rpx] text-[#794200] mt-[16rpx]"},{default:k((()=>[W("恭喜您升级为最高等级")])),_:1}))])),_:1}),S(a,{class:"flex items-center rounded-[30rpx] bg-[rgb(245,230,185)] p-[16rpx] ml-[40rpx]",onClick:t[3]||(t[3]=e=>x("/app/pages/member/level"))},{default:k((()=>[S(l,{class:"text-[28rpx] text-[#733F02]"},{default:k((()=>[W(A(B(f).member_level?B(c)>0?"做任务":"点击查看":"去解锁"),1)])),_:1}),S(o,{src:B(r)("static/resource/images/diy/member/vector.png"),mode:"aspectFit",class:"ml-[8rpx] w-[12rpx] h-[18rpx]"},null,8,["src"])])),_:1})])),_:1})])),_:1})):F("v-if",!0)])),_:1},8,["style"])):F("v-if",!0)}}}),[["__scopeId","data-v-691caa26"]]),Se=ce(f({__name:"index",props:["component","index","pullDownRefreshCount"],setup(o){const a=o,n=t(),i=e(!1),s=e(""),u=l((()=>"decorate"==n.mode?n.value[a.index]:a.component)),d=l((()=>{var e="";return e+="position:relative;",u.value.componentStartBgColor&&(u.value.componentStartBgColor&&u.value.componentEndBgColor?e+=`background:linear-gradient(${u.value.componentGradientAngle},${u.value.componentStartBgColor},${u.value.componentEndBgColor});`:e+="background-color:"+u.value.componentStartBgColor+";"),u.value.componentBgUrl&&(e+=`background-image:url('${r(u.value.componentBgUrl)}');`,e+="background-size: cover;background-repeat: no-repeat;"),u.value.topRounded&&(e+="border-top-left-radius:"+2*u.value.topRounded+"rpx;"),u.value.topRounded&&(e+="border-top-right-radius:"+2*u.value.topRounded+"rpx;"),u.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*u.value.bottomRounded+"rpx;"),u.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*u.value.bottomRounded+"rpx;"),e})),c=l((()=>{var e="";return u.value.componentBgUrl&&(e+="position:absolute;top:0;width:100%;",e+=`background: rgba(0,0,0,${u.value.componentBgAlpha/10});`,e+=`height:${X.value}px;`,u.value.topRounded&&(e+="border-top-left-radius:"+2*u.value.topRounded+"rpx;"),u.value.topRounded&&(e+="border-top-right-radius:"+2*u.value.topRounded+"rpx;"),u.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*u.value.bottomRounded+"rpx;"),u.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*u.value.bottomRounded+"rpx;")),e}));h((()=>a.pullDownRefreshCount),((e,t)=>{}));const p=e(0),g=e(0),m=e(""),f=e(0),j=e(800),M=()=>{"horizontal"==u.value.scrollWay&&setTimeout((()=>{b((()=>{let e=window.document.getElementById("horizontal-body-"+u.value.id),t=window.document.getElementById("marquee-one");e&&t&&(p.value=e.offsetWidth,g.value=t.offsetWidth,f.value=Math.ceil(14*g.value),p.value>g.value-30?m.value="animation: none;":m.value=`\n animation-duration: ${f.value}ms;\n animation-delay: ${j.value}ms;`)}))}))};v((()=>{M(),Y(),"decorate"==n.mode&&h((()=>u.value),((e,t)=>{e&&"Notice"==e.componentName&&(M(),Y())}))}));const G=$(),X=e(0),Y=()=>{b((()=>{x().in(G).select(".diy-notice").boundingClientRect((e=>{X.value=e.height})).exec()}))},L=e=>{if("decorate"==n.mode)return!1;"popup"==u.value.showType?(i.value=!0,s.value=e.text):n.toRedirect(e.link)};return(e,t)=>{const o=z,l=N,a=O,n=U,f=P,h=H,v=te,b=y(w("u-popup"),ge);return _(),C(o,{style:R(B(d))},{default:k((()=>[S(o,{style:R(B(c))},null,8,["style"]),S(o,{class:"diy-notice relative overflow-hidden"},{default:k((()=>[S(o,{class:"flex items-center pl-[28rpx] p-[22rpx]"},{default:k((()=>["img"==B(u).noticeType?(_(),D(E,{key:0},["system"==B(u).imgType?(_(),D(E,{key:0},["style_1"==B(u).systemUrl?(_(),C(l,{key:0,src:B(r)(`static/resource/images/diy/notice/${B(u).systemUrl}.png`),class:"h-[40rpx] max-w-[130rpx] mr-[20rpx] flex-shrink-0",mode:"heightFix"},null,8,["src"])):"style_2"==B(u).systemUrl?(_(),C(l,{key:1,src:B(r)(`static/resource/images/diy/notice/${B(u).systemUrl}.png`),class:"w-[200rpx] mr-[20rpx] h-[30rpx] flex-shrink-0",mode:"heightFix"},null,8,["src"])):F("v-if",!0)],64)):"diy"==B(u).imgType?(_(),C(l,{key:1,src:B(r)(B(u).imageUrl||""),class:"w-[200rpx] h-[30rpx] mr-[20rpx] flex-shrink-0",mode:"heightFix"},null,8,["src"])):F("v-if",!0)],64)):F("v-if",!0),"text"==B(u).noticeType&&B(u).noticeTitle?(_(),C(o,{key:1,class:"max-w-[128rpx] px-[12rpx] text-[26rpx] h-[40rpx] leading-[40rpx] text-[var(--primary-color)] bg-[var(--primary-color-light)] truncate rounded-[8rpx] mr-[20rpx] flex-shrink-0"},{default:k((()=>[W(A(B(u).noticeTitle),1)])),_:1})):F("v-if",!0),S(o,{class:I(["flex-1 flex overflow-hidden horizontal-body",{"items-center":"upDown"==B(u).scrollWay}]),id:"horizontal-body-"+B(u).id},{default:k((()=>[F(" 横向滚动 "),"horizontal"==B(u).scrollWay?(_(),C(o,{key:0,class:"horizontal-wrap",style:R(m.value)},{default:k((()=>[S(o,{class:"marquee marquee-one",id:"marquee-one"},{default:k((()=>[(_(!0),D(E,null,T(B(u).list,((e,t)=>(_(),C(o,{class:I(["item flex-shrink-0 !leading-[40rpx] h-[40rpx]",{"ml-[80rpx]":t}]),key:t,onClick:t=>L(e),style:R({color:B(u).textColor,fontSize:2*B(u).fontSize+"rpx",fontWeight:B(u).fontWeight})},{default:k((()=>[W(A(e.text),1)])),_:2},1032,["class","onClick","style"])))),128))])),_:1}),p.value[(_(!0),D(E,null,T(B(u).list,((e,t)=>(_(),C(o,{class:I(["item flex-shrink-0 !leading-[40rpx] h-[40rpx]",{"ml-[80rpx]":t}]),key:t,onClick:t=>L(e),style:R({color:B(u).textColor,fontSize:2*B(u).fontSize+"rpx",fontWeight:B(u).fontWeight})},{default:k((()=>[W(A(e.text),1)])),_:2},1032,["class","onClick","style"])))),128))])),_:1})):F("v-if",!0)])),_:1},8,["style"])):F("v-if",!0),F(" 上下滚动 "),"upDown"==B(u).scrollWay?(_(),D(E,{key:1},[S(f,{vertical:!0,duration:500,autoplay:"true",circular:"true",class:"flex-1"},{default:k((()=>[(_(!0),D(E,null,T(B(u).list,((e,o)=>(_(),C(n,{key:o,onTouchmove:t[0]||(t[0]=ee((()=>{}),["prevent","stop"]))},{default:k((()=>[S(a,{onClick:t=>L(e),class:"beyond-hiding using-hidden",style:R({color:B(u).textColor,fontSize:2*B(u).fontSize+"rpx",fontWeight:B(u).fontWeight})},{default:k((()=>[W(A(e.text),1)])),_:2},1032,["onClick","style"])])),_:2},1024)))),128))])),_:1}),S(a,{class:"nc-iconfont nc-icon-youV6xx text-[26rpx] -ml-[8rpx] pl-[30rpx]",style:R({color:"#999",fontWeight:B(u).fontWeight})},null,8,["style"])],64)):F("v-if",!0)])),_:1},8,["id","class"])])),_:1}),S(b,{show:i.value,onClose:t[4]||(t[4]=e=>i.value=!1),mode:"center",round:"var(--rounded-big)",safeAreaInsetBottom:!1},{default:k((()=>[S(o,{onTouchmove:t[3]||(t[3]=ee((()=>{}),["prevent","stop"]))},{default:k((()=>[S(o,{class:"pt-[30rpx] pb-[24rpx] text-sm leading-none border-0 border-solid border-b-[2rpx] border-[#eee] flex items-center justify-between"},{default:k((()=>[S(a,{class:"ml-[30rpx] text-[#333] text-[30rpx] font-500"},{default:k((()=>[W("公告")])),_:1}),S(a,{class:"mr-[20rpx] nc-iconfont nc-icon-guanbiV6xx text-[35rpx]",onClick:t[1]||(t[1]=e=>i.value=!1)})])),_:1}),S(h,{"scroll-y":"true",class:"px-[30rpx] py-[30rpx] w-[580rpx] box-border h-[480rpx] text-[26rpx] text-[#333]"},{default:k((()=>[W(A(s.value),1)])),_:1}),S(v,{onClick:t[2]||(t[2]=e=>i.value=!1),class:"!mx-[80rpx] !mb-[60rpx] !w-auto !h-[70rpx] text-[26rpx] leading-[70rpx] rounded-full text-white !bg-[#ff4500] !text-[#fff]"},{default:k((()=>[W("我知道了")])),_:1})])),_:1})])),_:1},8,["show"])])),_:1})])),_:1},8,["style"])}}}),[["__scopeId","data-v-c1fab474"]]),Re=ce(f({__name:"index",props:["component","index","pullDownRefreshCount"],setup(o){const a=o,n=t(),i=l((()=>"decorate"==n.mode?n.value[a.index]:a.component)),s=e=>le(e)+1,u=l((()=>{var e="";return e+="position:relative;",i.value.componentStartBgColor&&(i.value.componentStartBgColor&&i.value.componentEndBgColor?e+=`background:linear-gradient(${i.value.componentGradientAngle},${i.value.componentStartBgColor},${i.value.componentEndBgColor});`:e+="background-color:"+i.value.componentStartBgColor+";"),i.value.componentBgUrl&&(e+=`background-image:url('${r(i.value.componentBgUrl)}');`,e+="background-size: cover;background-repeat: no-repeat;"),i.value.topRounded&&(e+="border-top-left-radius:"+2*i.value.topRounded+"rpx;"),i.value.topRounded&&(e+="border-top-right-radius:"+2*i.value.topRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*i.value.bottomRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*i.value.bottomRounded+"rpx;"),e})),d=l((()=>{var e="";return i.value.componentBgUrl&&(e+="position:absolute;top:0;width:100%;",e+=`background: rgba(0,0,0,${i.value.componentBgAlpha/10});`,e+=`height:${p.value}px;`,i.value.topRounded&&(e+="border-top-left-radius:"+2*i.value.topRounded+"rpx;"),i.value.topRounded&&(e+="border-top-right-radius:"+2*i.value.topRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*i.value.bottomRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*i.value.bottomRounded+"rpx;")),e}));h((()=>a.pullDownRefreshCount),((e,t)=>{})),v((()=>{g(),"decorate"==n.mode?h((()=>i.value),((e,t)=>{e&&"RubikCube"==e.componentName&&g()})):h((()=>i.value),((e,t)=>{g()}))}));const c=$(),p=e(0),g=()=>{"decorate"==n.mode&&i.value.list.forEach((e=>{""==e.imageUrl&&(e.imgWidth=690,e.imgHeight=330)})),m(),b((()=>{x().in(c).select(".rubik-cube").boundingClientRect((e=>{p.value=e.height})).exec()}))},m=()=>{var e={"row1-of2":{ratio:2,width:"calc((100% - "+s(2*i.value.imageGap)+"px) / 2)"},"row1-of3":{ratio:3,width:"calc((100% - "+s(4*i.value.imageGap)+"px) / 3)"},"row1-of4":{ratio:4,width:"calc((100% - "+s(6*i.value.imageGap)+"px) / 4)"}};i.value.list.forEach(((e,t)=>{e.pageItemStyle=((e,t)=>{var o="";return"right"==i.value.elementAngle||{"row1-lt-of2-rt":[["border-top-right-radius","border-bottom-right-radius"],["border-top-left-radius","border-bottom-left-radius","border-bottom-right-radius"],["border-top-left-radius","border-bottom-left-radius","border-top-right-radius"]],"row1-lt-of1-tp-of2-bm":[["border-top-right-radius","border-bottom-right-radius"],["border-top-left-radius","border-bottom-left-radius","border-bottom-right-radius"],["border-radius"],["border-top-left-radius","border-bottom-left-radius","border-top-right-radius"]],"row1-tp-of2-bm":[["border-bottom-left-radius","border-bottom-right-radius"],["border-top-left-radius","border-bottom-right-radius","border-top-right-radius"],["border-top-left-radius","border-bottom-left-radius","border-top-right-radius"]],"row2-lt-of2-rt":[["border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius"],["border-top-left-radius","border-bottom-right-radius","border-bottom-left-radius"],["border-top-left-radius","border-bottom-right-radius","border-top-right-radius"],["border-top-left-radius","border-bottom-left-radius","border-top-right-radius"]],"row1-of4":[["border-top-right-radius","border-bottom-right-radius"],["border-radius"],["border-radius"],["border-top-left-radius","border-bottom-left-radius"]],"row1-of3":[["border-top-right-radius","border-bottom-right-radius"],["border-radius"],["border-top-left-radius","border-bottom-left-radius"]],"row1-of2":[["border-top-right-radius","border-bottom-right-radius"],["border-top-left-radius","border-bottom-left-radius"]]}[e][t].forEach(((e,t)=>{o+="border-top-left-radius:"+2*i.value.topElementRounded+"rpx;",o+="border-top-right-radius:"+2*i.value.topElementRounded+"rpx;",o+="border-bottom-left-radius:"+2*i.value.bottomElementRounded+"rpx;",o+="border-bottom-right-radius:"+2*i.value.bottomElementRounded+"rpx;"})),o})(i.value.mode,t)})),e[i.value.mode]?f(e[i.value.mode]):"row2-lt-of2-rt"==i.value.mode?y():"row1-lt-of2-rt"==i.value.mode?w():"row1-tp-of2-bm"==i.value.mode?W():"row1-lt-of1-tp-of2-bm"==i.value.mode&&A()},f=e=>{oe({success:t=>{let o=0;i.value.list.forEach(((l,r)=>{var a=l.imgHeight/l.imgWidth;let n=t.windowWidth-s(2*i.value.margin.both);i.value.imageGap>0&&(n-=s(e.ratio*i.value.imageGap*2)),l.imgWidth=n/e.ratio,l.imgHeight=l.imgWidth*a,(0==o||o{t.widthStyle=e.width,t.imgHeight=o}))}})},y=()=>{oe({success:e=>{let t=0,o=0;i.value.list.forEach(((l,r)=>{var a=l.imgHeight/l.imgWidth;l.imgWidth=e.windowWidth,l.imgWidth-=s(4*i.value.margin.both),i.value.imageGap>0&&(l.imgWidth-=s(2*i.value.imageGap)),l.imgWidth=l.imgWidth/2,l.imgHeight=l.imgWidth*a,r<=1?(0==t||t1&&(0==o||o{e.imgWidth="calc((100% - "+s(2*i.value.imageGap)+"px) / 2)",e.widthStyle=e.imgWidth,l<=1?e.imgHeight=t:l>1&&(e.imgHeight=o)}))}})},w=()=>{let e=0;i.value.list[1].imgWidth,i.value.list[2].imgWidth,oe({success:t=>{i.value.list.forEach(((o,l)=>{if(0==l){var r=o.imgHeight/o.imgWidth;o.imgWidth=t.windowWidth-s(4*i.value.margin.both)-s(2*i.value.imageGap),o.imgWidth=o.imgWidth/2,o.imgHeight=o.imgWidth*r,e=(o.imgHeight-s(2*i.value.imageGap))/2,o.imgWidth+="px"}else o.imgWidth=i.value.list[0].imgWidth,o.imgHeight=e}))}})},W=()=>{var e=0;oe({success:t=>{i.value.list.forEach(((o,l)=>{var r=o.imgHeight/o.imgWidth;0==l?o.imgWidth=t.windowWidth-s(4*i.value.margin.both):l>0&&(o.imgWidth=t.windowWidth-s(4*i.value.margin.both)-s(2*i.value.imageGap),o.imgWidth=o.imgWidth/2),o.imgHeight=o.imgWidth*r,l>0&&(0==e||e{t.imgWidth+="px",t.widthStyle=t.imgWidth,o>0&&(t.imgHeight=e)}))}})},A=()=>{oe({success:e=>{i.value.list.forEach(((t,o)=>{if(0==o){var l=t.imgHeight/t.imgWidth;t.imgWidth=e.windowWidth-s(4*i.value.margin.both)-s(2*i.value.imageGap),t.imgWidth=t.imgWidth/2,t.imgHeight=t.imgWidth*l}else 1==o?(t.imgWidth=i.value.list[0].imgWidth,t.imgHeight=(i.value.list[0].imgHeight-s(2*i.value.imageGap))/2):o>1&&(t.imgWidth=(i.value.list[0].imgWidth-s(2*i.value.imageGap))/2,t.imgHeight=i.value.list[1].imgHeight)})),i.value.list.forEach(((e,t)=>{e.imgWidth+="px"}))}})};return(e,t)=>{const o=z,l=N;return _(),C(o,{style:R(B(u))},{default:k((()=>[S(o,{style:R(B(d))},null,8,["style"]),S(o,{class:I(["rubik-cube relative",B(n).mode])},{default:k((()=>[F(" 1左2右 "),"row1-lt-of2-rt"==B(i).mode?(_(),D(E,{key:0},[S(o,{class:"template-left"},{default:k((()=>[S(o,{onClick:t[0]||(t[0]=e=>B(n).toRedirect(B(i).list[0].link)),class:I(["item",B(i).mode]),style:R({marginRight:2*B(i).imageGap+"rpx",width:B(i).list[0].imgWidth,height:B(i).list[0].imgHeight+"px"})},{default:k((()=>[B(i).list[0].imageUrl?(_(),C(l,{key:0,src:B(r)(B(i).list[0].imageUrl),mode:"scaleToFill",style:R(B(i).list[0].pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])):(_(),C(l,{key:1,src:B(r)("static/resource/images/diy/figure.png"),mode:"scaleToFill",style:R(B(i).list[0].pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"]))])),_:1},8,["class","style"])])),_:1}),S(o,{class:"template-right"},{default:k((()=>[(_(!0),D(E,null,T(B(i).list,((e,t)=>(_(),D(E,{key:t},[t>0?(_(),C(o,{key:0,onClick:t=>B(n).toRedirect(e.link),class:I(["item",B(i).mode]),style:R({marginBottom:2*B(i).imageGap+"rpx",width:e.imgWidth,height:e.imgHeight+"px"})},{default:k((()=>[e.imageUrl?(_(),C(l,{key:0,src:B(r)(e.imageUrl),mode:"scaleToFill",style:R(e.pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])):(_(),C(l,{key:1,src:B(r)("static/resource/images/diy/figure.png"),mode:"scaleToFill",style:R(e.pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"]))])),_:2},1032,["onClick","class","style"])):F("v-if",!0)],64)))),128))])),_:1})],64)):"row1-lt-of1-tp-of2-bm"==B(i).mode?(_(),D(E,{key:1},[F(" 1左3右 "),S(o,{class:"template-left"},{default:k((()=>[S(o,{onClick:t[1]||(t[1]=e=>B(n).toRedirect(B(i).list[0].link)),class:I(["item",B(i).mode]),style:R({marginRight:2*B(i).imageGap+"rpx",width:B(i).list[0].imgWidth,height:B(i).list[0].imgHeight+"px"})},{default:k((()=>[B(i).list[0].imageUrl?(_(),C(l,{key:0,src:B(r)(B(i).list[0].imageUrl),mode:"scaleToFill",style:R(B(i).list[0].pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])):(_(),C(l,{key:1,src:B(r)("static/resource/images/diy/figure.png"),mode:"scaleToFill",style:R(B(i).list[0].pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"]))])),_:1},8,["class","style"])])),_:1}),S(o,{class:"template-right"},{default:k((()=>[S(o,{onClick:t[2]||(t[2]=e=>B(n).toRedirect(B(i).list[1].link)),class:I(["item",B(i).mode]),style:R({marginBottom:2*B(i).imageGap+"rpx",width:B(i).list[1].imgWidth,height:B(i).list[1].imgHeight+"px"})},{default:k((()=>[B(i).list[1].imageUrl?(_(),C(l,{key:0,src:B(r)(B(i).list[1].imageUrl),mode:"scaleToFill",style:R(B(i).list[1].pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])):(_(),C(l,{key:1,src:B(r)("static/resource/images/diy/figure.png"),mode:"scaleToFill",style:R(B(i).list[1].pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"]))])),_:1},8,["class","style"]),S(o,{class:"template-bottom"},{default:k((()=>[(_(!0),D(E,null,T(B(i).list,((e,t)=>(_(),D(E,{key:t},[t>1?(_(),C(o,{key:0,onClick:t=>B(n).toRedirect(e.link),class:I(["item",B(i).mode]),style:R({marginRight:2*B(i).imageGap+"rpx",width:e.imgWidth,height:e.imgHeight+"px"})},{default:k((()=>[e.imageUrl?(_(),C(l,{key:0,src:B(r)(e.imageUrl),mode:"scaleToFill",style:R(e.pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])):(_(),C(l,{key:1,src:B(r)("static/resource/images/diy/figure.png"),mode:"scaleToFill",style:R(e.pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"]))])),_:2},1032,["onClick","class","style"])):F("v-if",!0)],64)))),128))])),_:1})])),_:1})],64)):(_(!0),D(E,{key:2},T(B(i).list,((e,t)=>(_(),C(o,{class:I(["item",B(i).mode]),key:t,onClick:t=>B(n).toRedirect(e.link),style:R({marginRight:2*B(i).imageGap+"rpx",marginBottom:2*B(i).imageGap+"rpx",width:e.widthStyle,height:e.imgHeight+"px"})},{default:k((()=>[e.imageUrl?(_(),C(l,{key:0,src:B(r)(e.imageUrl),mode:"scaleToFill",style:R(e.pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])):(_(),C(l,{key:1,src:B(r)("static/resource/images/diy/figure.png"),mode:"scaleToFill",style:R(e.pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"]))])),_:2},1032,["class","onClick","style"])))),128))])),_:1},8,["class"])])),_:1},8,["style"])}}}),[["__scopeId","data-v-a6275c36"]]),Be=f({__name:"index",props:["component","index","pullDownRefreshCount"],setup(o){const a=o,n=t(),i=l((()=>"decorate"==n.mode?n.value[a.index]:a.component)),s=l((()=>{var e="";return e+="position:relative;",i.value.componentStartBgColor&&(i.value.componentStartBgColor&&i.value.componentEndBgColor?e+=`background:linear-gradient(${i.value.componentGradientAngle},${i.value.componentStartBgColor},${i.value.componentEndBgColor});`:e+="background-color:"+i.value.componentStartBgColor+";"),i.value.componentBgUrl&&(e+=`background-image:url('${r(i.value.componentBgUrl)}');`,e+="background-size: cover;background-repeat: no-repeat;"),i.value.topRounded&&(e+="border-top-left-radius:"+2*i.value.topRounded+"rpx;"),i.value.topRounded&&(e+="border-top-right-radius:"+2*i.value.topRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*i.value.bottomRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*i.value.bottomRounded+"rpx;"),e})),u=l((()=>{var e="";return i.value.componentBgUrl&&(e+="position:absolute;top:0;width:100%;",e+=`background: rgba(0,0,0,${i.value.componentBgAlpha/10});`,e+=`height:${c.value}px;`,i.value.topRounded&&(e+="border-top-left-radius:"+2*i.value.topRounded+"rpx;"),i.value.topRounded&&(e+="border-top-right-radius:"+2*i.value.topRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*i.value.bottomRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*i.value.bottomRounded+"rpx;")),e}));h((()=>a.pullDownRefreshCount),((e,t)=>{})),v((()=>{p(),"decorate"==n.mode&&h((()=>i.value),((e,t)=>{e&&"Text"==e.componentName&&p()}))}));const d=$(),c=e(0),p=()=>{b((()=>{x().in(d).select(".diy-text").boundingClientRect((e=>{c.value=e.height})).exec()}))};return(e,t)=>{const o=z,l=O;return _(),C(o,{style:R(B(s))},{default:k((()=>[S(o,{style:R(B(u))},null,8,["style"]),S(o,{class:"diy-text relative"},{default:k((()=>["style-1"==B(i).style?(_(),C(o,{key:0,class:"px-[var(--pad-sidebar-m)]"},{default:k((()=>[S(o,{onClick:t[0]||(t[0]=e=>B(n).toRedirect(B(i).link))},{default:k((()=>[S(o,{class:"leading-[1]",style:R({fontSize:2*B(i).fontSize+"rpx",color:B(i).textColor,fontWeight:"normal"==B(i).fontWeight?500:B(i).fontWeight,textAlign:B(i).textAlign})},{default:k((()=>[W(A(B(i).text),1)])),_:1},8,["style"])])),_:1})])),_:1})):F("v-if",!0),"style-2"==B(i).style?(_(),C(o,{key:1,class:"px-[20rpx] flex items-center"},{default:k((()=>[S(o,{onClick:t[1]||(t[1]=e=>B(n).toRedirect(B(i).link))},{default:k((()=>[S(o,{class:"max-w-[200rpx] truncate leading-[1]",style:R({fontSize:2*B(i).fontSize+"rpx",color:B(i).textColor,fontWeight:"normal"==B(i).fontWeight?500:B(i).fontWeight})},{default:k((()=>[W(A(B(i).text),1)])),_:1},8,["style"])])),_:1}),B(i).subTitle.text?(_(),C(l,{key:0,style:R({background:B(i).subTitle.color}),class:"mx-[10rpx] w-[2rpx] h-[24rpx] opacity-70"},null,8,["style"])):F("v-if",!0),S(l,{class:"max-w-[300rpx] truncate",style:R({color:B(i).subTitle.color,fontSize:2*B(i).subTitle.fontSize+"rpx"})},{default:k((()=>[W(A(B(i).subTitle.text),1)])),_:1},8,["style"]),B(i).more.isShow?(_(),C(o,{key:1,class:"ml-auto text-right",style:R({color:B(i).more.color})},{default:k((()=>[S(o,{onClick:t[2]||(t[2]=e=>B(n).toRedirect(B(i).more.link)),class:"flex items-center"},{default:k((()=>[S(l,{class:"max-w-[200rpx] truncate text-[26rpx]"},{default:k((()=>[W(A(B(i).more.text),1)])),_:1}),S(l,{class:"nc-iconfont nc-icon-youV6xx text-[24rpx]",style:R({color:B(i).more.color})},null,8,["style"])])),_:1})])),_:1},8,["style"])):F("v-if",!0)])),_:1})):F("v-if",!0)])),_:1})])),_:1},8,["style"])}}}),De=f({__name:"index",props:["component","index","pullDownRefreshCount"],setup(o){const a=o,n=t(),i=l((()=>"decorate"==n.mode?n.value[a.index]:a.component)),s=l((()=>{var e="";return e+="position:relative;",i.value.componentStartBgColor&&(i.value.componentStartBgColor&&i.value.componentEndBgColor?e+=`background:linear-gradient(${i.value.componentGradientAngle},${i.value.componentStartBgColor},${i.value.componentEndBgColor});`:e+="background-color:"+i.value.componentStartBgColor+";"),i.value.componentBgUrl&&(e+=`background-image:url('${r(i.value.componentBgUrl)}');`,e+="background-size: cover;background-repeat: no-repeat;"),i.value.topRounded&&(e+="border-top-left-radius:"+2*i.value.topRounded+"rpx;"),i.value.topRounded&&(e+="border-top-right-radius:"+2*i.value.topRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*i.value.bottomRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*i.value.bottomRounded+"rpx;"),e})),u=l((()=>{var e="";return i.value.componentBgUrl&&(e+="position:absolute;top:0;width:100%;",e+=`background: rgba(0,0,0,${i.value.componentBgAlpha/10});`,e+=`height:${c.value}px;`,i.value.topRounded&&(e+="border-top-left-radius:"+2*i.value.topRounded+"rpx;"),i.value.topRounded&&(e+="border-top-right-radius:"+2*i.value.topRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*i.value.bottomRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*i.value.bottomRounded+"rpx;")),e}));h((()=>a.pullDownRefreshCount),((e,t)=>{})),v((()=>{p(),"decorate"==n.mode&&h((()=>i.value),((e,t)=>{e&&"RichText"==e.componentName&&p()}))}));const d=$(),c=e(0),p=()=>{b((()=>{x().in(d).select(".diy-rich-text").boundingClientRect((e=>{c.value=e.height})).exec()}))};return(e,t)=>{const o=z,l=y(w("u-parse"),me),r=O;return _(),C(o,{style:R(B(s))},{default:k((()=>[S(o,{style:R(B(u))},null,8,["style"]),S(o,{class:"diy-rich-text relative"},{default:k((()=>[B(i).html&&"


"!=B(i).html?(_(),C(o,{key:0},{default:k((()=>[S(l,{content:B(i).html,tagStyle:{img:"vertical-align: top;"}},null,8,["content"])])),_:1})):(_(),D(E,{key:1},[S(o,null,{default:k((()=>[W("点此编辑『富文本』内容 ——>")])),_:1}),S(o,null,{default:k((()=>[S(r,null,{default:k((()=>[W("你可以对文字进行")])),_:1}),S(r,null,{default:k((()=>[W("、")])),_:1}),S(r,{class:"font-bold"},{default:k((()=>[W("加粗")])),_:1}),S(r,null,{default:k((()=>[W("、")])),_:1}),S(r,{class:"italic"},{default:k((()=>[W("斜体")])),_:1}),S(r,null,{default:k((()=>[W("、")])),_:1}),S(r,{class:"underline"},{default:k((()=>[W("下划线")])),_:1}),S(r,null,{default:k((()=>[W("、")])),_:1}),S(r,{class:"line-through"},{default:k((()=>[W("删除线")])),_:1}),S(r,null,{default:k((()=>[W("、文字")])),_:1}),S(r,{style:{color:"rgb(0, 176, 240)"}},{default:k((()=>[W("颜色")])),_:1}),S(r,null,{default:k((()=>[W("、")])),_:1}),S(r,{style:{"background-color":"rgb(255, 192, 0)",color:"rgb(255, 255, 255)"}},{default:k((()=>[W("背景色")])),_:1}),S(r,null,{default:k((()=>[W("、以及字号")])),_:1}),S(r,{class:"text-lg"},{default:k((()=>[W("大")])),_:1}),S(r,{class:"text-sm"},{default:k((()=>[W("小")])),_:1}),S(r,{class:"pl-[10rpx]"},{default:k((()=>[W("等简单排版操作。")])),_:1})])),_:1}),S(o,null,{default:k((()=>[W("也可在这里插入图片、并对图片加上超级链接,方便用户点击。")])),_:1})],64))])),_:1})])),_:1},8,["style"])}}}),Ee=ce(f({__name:"index",props:["component","index","pullDownRefreshCount"],setup(o){const a=o,n=t(),i=l((()=>"decorate"==n.mode?n.value[a.index]:a.component)),s=l((()=>{var e="";return e+="position:relative;",i.value.componentStartBgColor&&(i.value.componentStartBgColor&&i.value.componentEndBgColor?e+=`background:linear-gradient(${i.value.componentGradientAngle},${i.value.componentStartBgColor},${i.value.componentEndBgColor});`:e+="background-color:"+i.value.componentStartBgColor+";"),i.value.componentBgUrl&&(e+=`background-image:url('${r(i.value.componentBgUrl)}');`,e+="background-size: cover;background-repeat: no-repeat;"),i.value.topRounded&&(e+="border-top-left-radius:"+2*i.value.topRounded+"rpx;"),i.value.topRounded&&(e+="border-top-right-radius:"+2*i.value.topRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*i.value.bottomRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*i.value.bottomRounded+"rpx;"),e})),u=l((()=>{var e="";return i.value.componentBgUrl&&(e+="position:absolute;top:0;width:100%;",e+=`background: rgba(0,0,0,${i.value.componentBgAlpha/10});`,e+=`height:${m.value}px;`,i.value.topRounded&&(e+="border-top-left-radius:"+2*i.value.topRounded+"rpx;"),i.value.topRounded&&(e+="border-top-right-radius:"+2*i.value.topRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*i.value.bottomRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*i.value.bottomRounded+"rpx;")),e})),d=e(""),c=e(""),p=e=>{var t="";return t+=`background:linear-gradient(90deg,${e.startColor},${e.endColor});`};h((()=>a.pullDownRefreshCount),((e,t)=>{})),v((()=>{f(),"decorate"==n.mode&&h((()=>i.value),((e,t)=>{e&&"ActiveCube"==e.componentName&&f()}))}));const g=$(),m=e(0),f=()=>{b((()=>{x().in(g).select(".diy-active-cube").boundingClientRect((e=>{m.value=e.height})).exec(),"style-3"==i.value.blockStyle.value&&(d.value="margin-right:14rpx;"),"style-4"==i.value.blockStyle.value&&(c.value="margin-right:14rpx;")}))};return(e,t)=>{const o=z,l=O,a=N,g=y(w("u-icon"),de),m=H;return _(),C(o,{style:R(B(s))},{default:k((()=>[S(o,{style:R(B(u))},null,8,["style"]),S(o,{class:"diy-active-cube relative"},{default:k((()=>[S(o,{class:"active-cube-wrap p-[20rpx] pb-[24rpx]"},{default:k((()=>["style-1"==B(i).titleStyle.value?(_(),C(o,{key:0,class:"flex items-center"},{default:k((()=>[S(o,{class:"mr-[10rpx] font-500 text-[30rpx]",style:R({color:B(i).titleColor}),onClick:t[0]||(t[0]=e=>B(n).toRedirect(B(i).textLink))},{default:k((()=>[W(A(B(i).text),1)])),_:1},8,["style"]),B(i).subTitle.text?(_(),C(o,{key:0,onClick:t[1]||(t[1]=e=>B(n).toRedirect(B(i).subTitle.link)),class:"text-center text-[22rpx] rounded-[40rpx] rounded-tl-[10rpx] py-[6rpx] px-[14rpx]",style:R({color:B(i).subTitle.textColor,background:"linear-gradient(90deg, "+B(i).subTitle.startColor+", "+B(i).subTitle.endColor+")"})},{default:k((()=>[W(A(B(i).subTitle.text),1)])),_:1},8,["style"])):F("v-if",!0)])),_:1})):F("v-if",!0),"style-2"==B(i).titleStyle.value?(_(),C(o,{key:1,class:"flex items-center"},{default:k((()=>[S(o,{class:"mr-[10rpx] font-500 text-[30rpx]",style:R({color:B(i).titleColor}),onClick:t[2]||(t[2]=e=>B(n).toRedirect(B(i).textLink))},{default:k((()=>[W(A(B(i).text),1)])),_:1},8,["style"]),B(i).subTitle.text?(_(),C(o,{key:0,onClick:t[3]||(t[3]=e=>B(n).toRedirect(B(i).subTitle.link)),class:"text-center text-[22rpx] rounded-[6rpx] py-[6rpx] px-[14rpx]",style:R({color:B(i).subTitle.textColor,background:"linear-gradient(90deg, "+B(i).subTitle.startColor+", "+B(i).subTitle.endColor+")"})},{default:k((()=>[W(A(B(i).subTitle.text),1)])),_:1},8,["style"])):F("v-if",!0)])),_:1})):F("v-if",!0),"style-3"==B(i).titleStyle.value?(_(),C(o,{key:2,class:"flex items-center"},{default:k((()=>[S(o,{class:"mr-[10rpx] font-500 text-[30rpx]",onClick:t[4]||(t[4]=e=>B(n).toRedirect(B(i).textLink)),style:R({color:B(i).titleColor})},{default:k((()=>[W(A(B(i).text),1)])),_:1},8,["style"]),S(o,{class:"relative h-[36rpx]",onClick:t[5]||(t[5]=e=>B(n).toRedirect(B(i).subTitle.link))},{default:k((()=>[B(i).subTitle.text?(_(),C(o,{key:0,class:"text-center text-[22rpx] leading-[22rpx] py-[6rpx] pl-[16rpx] pr-[36rpx]",style:R({color:B(i).subTitle.textColor,"background-image":"url("+B(r)("static/resource/images/diy/active_cube/bg_2.png")+")","background-size":"cover","background-repeat":"no-repeat"})},{default:k((()=>[W(A(B(i).subTitle.text),1)])),_:1},8,["style"])):F("v-if",!0)])),_:1})])),_:1})):F("v-if",!0),"style-4"==B(i).titleStyle.value?(_(),C(o,{key:3,class:"flex items-center justify-between"},{default:k((()=>[S(o,{class:"font-500 text-[30rpx]",onClick:t[6]||(t[6]=e=>B(n).toRedirect(B(i).textLink)),style:R({color:B(i).titleColor})},{default:k((()=>[W(A(B(i).text),1)])),_:1},8,["style"]),B(i).subTitle.text?(_(),C(o,{key:0,onClick:t[7]||(t[7]=e=>B(n).toRedirect(B(i).subTitle.link)),class:"text-[22rpx] rounded-[40rpx] pl-[16rpx] pr-[8rpx] h-[42rpx] flex-center",style:R({color:B(i).subTitle.textColor,background:"linear-gradient(90deg, "+B(i).subTitle.startColor+", "+B(i).subTitle.endColor+")"})},{default:k((()=>[S(l,null,{default:k((()=>[W(A(B(i).subTitle.text),1)])),_:1}),S(l,{class:"nc-iconfont nc-icon-youV6xx !text-[26rpx]"})])),_:1},8,["style"])):F("v-if",!0)])),_:1})):F("v-if",!0),S(o,{class:"bd flex flex-wrap justify-between"},{default:k((()=>[(_(!0),D(E,null,T(B(i).list,(e=>(_(),D(E,{key:e.id},["style-1"==B(i).blockStyle.value?(_(),C(o,{key:0,onClick:t=>B(n).toRedirect(e.link),class:"item flex justify-between px-[20rpx] py-[30rpx] bg-white mt-[20rpx] rounded-[var(--rounded-mid)]",style:R({backgroundColor:B(i).elementBgColor})},{default:k((()=>[S(o,{class:"flex-1 flex items-baseline flex-col"},{default:k((()=>[S(o,{class:"text-[28rpx] pb-[10rpx] text-[#333]",style:R({fontWeight:B(i).blockStyle.fontWeight})},{default:k((()=>[W(A(e.title.text),1)])),_:2},1032,["style"]),S(o,{class:"text-[22rpx] text-[#999] pb-[30rpx]"},{default:k((()=>[W(A(e.subTitle.text),1)])),_:2},1024),e.moreTitle.text?(_(),C(o,{key:0,class:"link relative text-[22rpx] leading-[40rpx] flex items-center text-white rounded-r-[20rpx] h-[40rpx] pl-[26rpx] pr-[10rpx]",style:R(p(e.moreTitle))},{default:k((()=>[S(l,{class:"mr-[8rpx]"},{default:k((()=>[W(A(e.moreTitle.text),1)])),_:2},1024),S(l,{class:"iconfont iconjiantou-you-cuxiantiao-fill !text-[20rpx] text-[#fff]"}),S(a,{class:"absolute left-0 top-0 bottom-0 !w-[28rpx]",src:B(r)("static/resource/images/diy/active_cube/block_style1_1.png"),mode:"scaleToFill"},null,8,["src"])])),_:2},1032,["style"])):F("v-if",!0)])),_:2},1024),e.imageUrl?(_(),C(o,{key:0,class:"img-box ml-[10rpx] w-[130rpx]"},{default:k((()=>[S(a,{src:B(r)(e.imageUrl),mode:"aspectFit"},null,8,["src"])])),_:2},1024)):(_(),C(o,{key:1,class:"img-box ml-[10rpx] flex items-center justify-center w-[130rpx] bg-[#f3f4f6]"},{default:k((()=>[S(g,{name:"photo",color:"#999",size:"50"})])),_:1}))])),_:2},1032,["onClick","style"])):F("v-if",!0),"style-2"==B(i).blockStyle.value?(_(),C(o,{key:1,onClick:t=>B(n).toRedirect(e.link),class:"item flex justify-between p-[20rpx] bg-white mt-[20rpx] rounded-[var(--rounded-mid)]",style:R({backgroundColor:B(i).elementBgColor})},{default:k((()=>[S(o,{class:"flex-1 flex items-baseline flex-col"},{default:k((()=>[S(o,{class:"text-[26rpx] pb-[20rpx]",style:R({fontWeight:B(i).blockStyle.fontWeight})},{default:k((()=>[W(A(e.title.text),1)])),_:2},1032,["style"]),S(o,{class:"text-[22rpx] text-gray-500 pb-[20rpx]"},{default:k((()=>[W(A(e.subTitle.text),1)])),_:2},1024),e.moreTitle.text?(_(),C(o,{key:0,class:"link relative text-[22rpx] leading-[40rpx] flex items-center text-white rounded-[20rpx] h-[40rpx] pl-[20rpx] pr-[10rpx]",style:R(p(e.moreTitle))},{default:k((()=>[S(l,{class:"mr-[8rpx]"},{default:k((()=>[W(A(e.moreTitle.text),1)])),_:2},1024),S(l,{class:"iconfont iconjiantou-you-cuxiantiao-fill !text-[20rpx] text-[#fff]"})])),_:2},1032,["style"])):F("v-if",!0)])),_:2},1024),e.imageUrl?(_(),C(o,{key:0,class:"img-box ml-[10rpx] w-[130rpx]"},{default:k((()=>[S(a,{src:B(r)(e.imageUrl),mode:"aspectFit"},null,8,["src"])])),_:2},1024)):(_(),C(o,{key:1,class:"img-box ml-[10rpx] flex items-center justify-center w-[130rpx] bg-[#f3f4f6]"},{default:k((()=>[S(g,{name:"photo",color:"#999",size:"50"})])),_:1}))])),_:2},1032,["onClick","style"])):F("v-if",!0)],64)))),128))])),_:1}),"style-3"==B(i).blockStyle.value?(_(),C(m,{key:4,"scroll-x":!0,class:"whitespace-nowrap",id:"warpStyle3-"+B(i).id},{default:k((()=>[(_(!0),D(E,null,T(B(i).list,((e,t)=>(_(),C(o,{key:e.id,class:"inline-flex"},{default:k((()=>[S(o,{id:"item"+t+B(i).id,onClick:t=>B(n).toRedirect(e.link),class:I(["flex flex-col items-center justify-between p-[10rpx] bg-white mt-[20rpx] w-[157rpx] h-[200rpx] rounded-[var(--rounded-mid)] box-border",{"!mr-[0rpx]":t+1===B(i).list.length}]),style:R(d.value)},{default:k((()=>[e.imageUrl?(_(),C(o,{key:0,class:"w-[141rpx] h-[141rpx] rounded-[var(--rounded-small)] overflow-hidden"},{default:k((()=>[S(a,{class:"w-[141rpx] h-[141rpx]",src:B(r)(e.imageUrl),mode:"aspectFit"},null,8,["src"])])),_:2},1024)):(_(),C(o,{key:1,class:"w-[141rpx] h-[141rpx] relative flex-shrink-0"},{default:k((()=>[S(o,{class:"absolute left-0 top-0 flex items-center justify-center w-[141rpx] h-[141rpx] bg-[#f3f4f6]"},{default:k((()=>[S(g,{name:"photo",color:"#999",size:"50"})])),_:1})])),_:1})),S(o,{class:"mt-[10rpx] mb-[2rpx] text-[26rpx]",style:R({color:e.title.textColor,fontWeight:B(i).blockStyle.fontWeight})},{default:k((()=>[W(A(e.title.text),1)])),_:2},1032,["style"])])),_:2},1032,["id","onClick","style","class"])])),_:2},1024)))),128))])),_:1},8,["id"])):F("v-if",!0),"style-4"==B(i).blockStyle.value?(_(),C(m,{key:5,"scroll-x":"true",class:"whitespace-nowrap",id:"warpStyle4-"+B(i).id},{default:k((()=>[(_(!0),D(E,null,T(B(i).list,((e,t)=>(_(),C(o,{key:e.id,class:"inline-flex"},{default:k((()=>[S(o,{id:"item"+t+B(i).id,onClick:t=>B(n).toRedirect(e.link),class:I(["flex flex-col items-center justify-between p-[4rpx] bg-[#F93D02] mt-[20rpx] rounded-[var(--rounded-mid)] box-border",{"!mr-[0rpx]":t+1===B(i).list.length}]),style:R("background :linear-gradient("+e.listFrame.startColor+","+e.listFrame.endColor+");"+c.value)},{default:k((()=>[S(o,{class:"w-[149rpx] h-[149rpx] box-border px-[18rpx] pt-[16rpx] pb-[6rpx] bg-[#fff] flex flex-col items-center rounded-[var(--rounded-small)]"},{default:k((()=>[e.imageUrl?(_(),C(o,{key:0,class:"w-[112rpx] h-[102rpx]"},{default:k((()=>[S(a,{class:"w-[112rpx] h-[102rpx]",src:B(r)(e.imageUrl),mode:"aspectFit"},null,8,["src"])])),_:2},1024)):(_(),C(o,{key:1,class:"w-[112rpx] h-[102rpx] relative flex-shrink-0"},{default:k((()=>[S(o,{class:"absolute left-0 top-0 flex items-center justify-center w-[112rpx] h-[102rpx] bg-[#f3f4f6]"},{default:k((()=>[S(g,{name:"photo",color:"#999",size:"50"})])),_:1})])),_:1})),S(o,{class:"relative -mt-[10rpx] text-[20rpx] bg-[#F3DAC5] text-[#ED6E00] rounded-[16rpx] px-[12rpx] h-[34rpx] flex-center",style:R({color:e.subTitle.textColor,background:"linear-gradient(to right,"+e.subTitle.startColor+","+e.subTitle.endColor+")"})},{default:k((()=>[W(A(e.subTitle.text),1)])),_:2},1032,["style"])])),_:2},1024),S(o,{class:"mt-[10rpx] mb-[8rpx] text-[26rpx] text-[#fff]",style:R({fontWeight:"bold"==B(i).blockStyle.fontWeight?B(i).blockStyle.fontWeight:"500"})},{default:k((()=>[W(A(e.title.text),1)])),_:2},1032,["style"])])),_:2},1032,["id","onClick","class","style"])])),_:2},1024)))),128))])),_:1},8,["id"])):F("v-if",!0)])),_:1})])),_:1})])),_:1},8,["style"])}}}),[["__scopeId","data-v-914893d1"]]),Te=ce(f({__name:"index",props:["component","index","pullDownRefreshCount"],setup(e){const o=e,a=t(),n=l((()=>"decorate"==a.mode?a.value[o.index]:o.component)),i=l((()=>{var e="";return n.value.componentStartBgColor&&(n.value.componentStartBgColor&&n.value.componentEndBgColor?e+=`background:linear-gradient(${n.value.componentGradientAngle},${n.value.componentStartBgColor},${n.value.componentEndBgColor});`:e+="background-color:"+n.value.componentStartBgColor+";"),n.value.topRounded&&(e+="border-top-left-radius:"+2*n.value.topRounded+"rpx;"),n.value.topRounded&&(e+="border-top-right-radius:"+2*n.value.topRounded+"rpx;"),n.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*n.value.bottomRounded+"rpx;"),n.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*n.value.bottomRounded+"rpx;"),e})),s=l((()=>{var e="";return e+="width:"+2*n.value.imageSize+"rpx;",e+="height:"+2*n.value.imageSize+"rpx;",e+="border-radius:"+2*n.value.aroundRadius+"rpx;"})),u=l((()=>{let e="";return n.value.offset&&("lowerRight"==n.value.bottomPosition||"lowerLeft"==n.value.bottomPosition?e+="padding-bottom:"+2*n.value.offset+"rpx;":"upperRight"!=n.value.bottomPosition&&"upperLeft"!=n.value.bottomPosition||(e+="padding-top:"+2*n.value.offset+"rpx;")),e}));return h((()=>o.pullDownRefreshCount),((e,t)=>{})),(e,t)=>{const o=N,l=z;return _(),C(l,{style:R(B(i))},{default:k((()=>[S(l,{class:I(["float-btn flex flex-col z-1000 items-center px-[24rpx] fixed",B(n).bottomPosition,"decorate"==B(a).mode?"float-btn-border":""]),style:R(B(u))},{default:k((()=>[(_(!0),D(E,null,T(B(n).list,((e,t)=>(_(),C(l,{key:t,onClick:t=>B(a).toRedirect(e.link),class:I({"flex items-center justify-center":!0,"mb-[20rpx]":B(n).list.length!=t+1}),style:R(B(s))},{default:k((()=>[e&&e.imageUrl?(_(),C(o,{key:0,style:R(B(s)),src:B(r)(e.imageUrl),mode:"aspectFit"},null,8,["style","src"])):(_(),C(o,{key:1,src:B(r)("static/resource/images/diy/figure.png"),mode:"aspectFit",style:R(B(s))},null,8,["src","style"]))])),_:2},1032,["onClick","class","style"])))),128))])),_:1},8,["class","style"])])),_:1},8,["style"])}}}),[["__scopeId","data-v-62e903a9"]]),Ie=ce(f({__name:"index",props:["component","index","pullDownRefreshCount","global","scrollBool"],setup(a){const n=a,i=$(),d=t(),c=l((()=>"decorate"==d.mode?d.value[n.index]:n.component)),p=l((()=>{var e="";return c.value.componentStartBgColor&&(c.value.componentStartBgColor&&c.value.componentEndBgColor?e+=`background:linear-gradient(${c.value.componentGradientAngle},${c.value.componentStartBgColor},${c.value.componentEndBgColor});`:e+="background-color:"+c.value.componentStartBgColor+";"),c.value.topRounded&&(e+="border-top-left-radius:"+2*c.value.topRounded+"rpx;"),c.value.topRounded&&(e+="border-top-right-radius:"+2*c.value.topRounded+"rpx;"),c.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*c.value.bottomRounded+"rpx;"),c.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*c.value.bottomRounded+"rpx;"),e}));h((()=>n.pullDownRefreshCount),((e,t)=>{}));const g=e(""),m=e(!1),f=l((()=>{if("decorate"==d.mode)return"";var e="";if(n.global.topStatusBar.isShow&&"style-4"==n.global.topStatusBar.style&&(e+="top:"+d.topTabarHeight+"px;"),"fixed"==c.value.positionWay&&(-1!=n.scrollBool&&(e+="position: fixed;z-index: 10;left: 0;right: 0;"),m.value=!1,1==n.scrollBool)){let t=(c.value.fixedBgColor||"").split(","),o=c.value.fixedBgColor?parseInt(t[t.length-1]):0;c.value.fixedBgColor&&0!=o?(m.value=!1,e+="background-color:"+c.value.fixedBgColor+";"):m.value=!0}return e})),j=e=>{let t="";return e?(t=c.value.tab.selectColor,"fixed"==c.value.positionWay&&1==n.scrollBool&&(t=c.value.tab.fixedSelectColor)):(t=c.value.tab.noColor,"fixed"==c.value.positionWay&&1==n.scrollBool&&(t=c.value.tab.fixedNoColor)),t},M=l((()=>{let e=!0;for(let t=0;t{var e="";let t=n.global.pageStartBgColor?n.global.pageStartBgColor:"rgba(255,255,255,1)";if(t.indexOf("(")>-1){let o=t.split("(")[1].split(")")[0].split(",");1==c.value.bgGradient&&(e+=`background: linear-gradient(rgba(${o[0]}, ${o[1]}, ${o[2]}, 0) 65%, rgba(${o[0]}, ${o[1]}, ${o[2]}, 0.6) 70%, rgba(${o[0]}, ${o[1]}, ${o[2]}, 0.85) 80%, rgba(${o[0]}, ${o[1]}, ${o[2]}, 0.95) 90%, rgb(${o[0]}, ${o[1]}, ${o[2]}, 1) 100%);`)}else e+=`background: (${t});`;return e})),X=l((()=>"style-2"==c.value.swiper.swiperStyle)),Y=l((()=>2*c.value.swiper.imageHeight+"rpx")),L=e(0),V=e=>{L.value=e.detail.current},q=l((()=>{var e="";return c.value.swiper.topRounded&&(e+="border-top-left-radius:"+2*c.value.swiper.topRounded+"rpx;"),c.value.swiper.topRounded&&(e+="border-top-right-radius:"+2*c.value.swiper.topRounded+"rpx;"),c.value.swiper.bottomRounded&&(e+="border-bottom-left-radius:"+2*c.value.swiper.bottomRounded+"rpx;"),c.value.swiper.bottomRounded&&(e+="border-bottom-right-radius:"+2*c.value.swiper.bottomRounded+"rpx;"),e})),J=e(-1),Z=e(""),K=(e,t)=>{if("decorate"==d.mode)return!1;Z.value=e.source,J.value=t,"home"==e.source?d.topFixedStatus="home":"diy_page"==e.source&&(d.topFixedStatus="diy",ae(e.diy_id))},Q=e(!1);let te={};const oe=e("");v((()=>{le(),"decorate"==d.mode&&h((()=>c.value),((e,t)=>{e&&"CarouselSearch"==e.componentName&&le()}))}));const le=()=>{b((()=>{setTimeout((()=>{x().in(i).select(".fixed-wrap").boundingClientRect((e=>{g.value=(e.height||0)+"px"})).exec()}))})),K({source:"home"},-1),c.value.swiper.list.forEach((e=>{""==e.imageUrl&&(e.imgWidth=690,e.imgHeight=330)}))},re=o({pageMode:"diy",title:"",global:{},value:[]}),ae=e=>{if(!e)return re.pageMode="diy",re.title="",re.global={},void(re.value=[]);s({id:e}).then((e=>{if(e.data.value){let t=e.data;re.pageMode=t.mode,re.title=t.title;let o=JSON.parse(t.value);re.global=o.global,re.global.topStatusBar.isShow=!1,re.global.bottomTabBarSwitch=!1,re.value=o.value,re.value.forEach(((e,t)=>{e.pageStyle="",e.pageStartBgColor&&(e.pageStartBgColor&&e.pageEndBgColor?e.pageStyle+=`background:linear-gradient(${e.pageGradientAngle},${e.pageStartBgColor},${e.pageEndBgColor});`:e.pageStyle+="background-color:"+e.pageStartBgColor+";"),e.margin&&(e.margin.top>0&&(e.pageStyle+="padding-top:"+2*e.margin.top+"rpx;"),e.pageStyle+="padding-bottom:"+2*e.margin.bottom+"rpx;",e.pageStyle+="padding-right:"+2*e.margin.both+"rpx;",e.pageStyle+="padding-left:"+2*e.margin.both+"rpx;")})),u({title:re.title})}}))};let ne=e(!0);ne.value=!0;let ie=uni.getStorageSync("componentsScrollValGroup");if(ie&&"object"==typeof ie)ie.CarouselSearch=20,uni.setStorageSync("componentsScrollValGroup",ie);else{let e={CarouselSearch:20};uni.setStorageSync("componentsScrollValGroup",e)}return(e,t)=>{const o=N,l=z,a=O,i=U,s=P,u=H,h=y(w("u-popup"),ge);return _(),C(l,{style:R(B(p)),class:"goods-carousel-search-wrap"},{default:k((()=>[S(l,{class:"relative pb-[20rpx]"},{default:k((()=>[S(l,{class:I(["bg-img",{"!-bottom-[200rpx]":1==B(c).bgGradient}])},{default:k((()=>[B(c).swiper.list&&B(c).swiper.list[L.value].imageUrl?(_(),C(o,{key:0,src:B(r)(B(c).swiper.list[L.value].imageUrl),mode:"scaleToFill",class:"w-full h-full","show-menu-by-longpress":!0},null,8,["src"])):(_(),C(l,{key:1,class:"w-full h-full bg-[#ccc]"})),S(l,{class:"bg-img-box",style:R(B(G))},null,8,["style"])])),_:1},8,["class"]),S(l,{class:"fixed-wrap",style:R(B(f))},{default:k((()=>[S(l,{class:"diy-search-wrap relative z-10",onClick:t[1]||(t[1]=ee((e=>B(d).toRedirect(B(c).search.link)),["stop"])),style:R(oe.value)},{default:k((()=>[B(c).search.logo?(_(),C(l,{key:0,class:"img-wrap"},{default:k((()=>[S(o,{src:B(r)(B(c).search.logo),mode:"aspectFit"},null,8,["src"])])),_:1})):F("v-if",!0),S(l,{class:"search-content",onClick:t[0]||(t[0]=ee((e=>B(d).toRedirect(B(c).search.link)),["stop"]))},{default:k((()=>[S(a,{class:"input-content text-[#fff] text-[24rpx] leading-[68rpx]"},{default:k((()=>[W(A(B(M)?B(c).search.text:""),1)])),_:1}),S(a,{class:"nc-iconfont nc-icon-sousuo-duanV6xx1 text-[28rpx] text-[#fff]"}),B(M)?F("v-if",!0):(_(),C(s,{key:0,class:"swiper-wrap",interval:1e3*B(c).search.hotWord.interval,autoplay:"true",vertical:"true",circular:"true"},{default:k((()=>[(_(!0),D(E,null,T(B(c).search.hotWord.list,(e=>(_(),C(i,{class:"swiper-item",key:e.id},{default:k((()=>[S(l,{class:"leading-[64rpx] text-[24rpx]"},{default:k((()=>[W(A(e.text),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1},8,["interval"]))])),_:1})])),_:1},8,["style"]),B(c).tab.control?(_(),C(l,{key:0,class:"tab-list-wrap relative z-10"},{default:k((()=>[S(u,{"scroll-x":"true",class:"scroll-wrap","scroll-into-view":"a"+J.value},{default:k((()=>[S(l,{onClick:t[2]||(t[2]=e=>K({source:"home"},-1)),class:I(["scroll-item",[{active:-1==J.value}]])},{default:k((()=>[S(l,{class:"name",style:R({color:j(-1==J.value)})},{default:k((()=>[W("首页")])),_:1},8,["style"]),-1==J.value?(_(),C(l,{key:0,class:"line",style:R({"background-color":j(-1==J.value)})},null,8,["style"])):F("v-if",!0)])),_:1},8,["class"]),(_(!0),D(E,null,T(B(c).tab.list,((e,t)=>(_(),C(l,{class:I(["scroll-item",[{active:t==J.value}]]),onClick:o=>K(e,t),id:"a"+t,key:t},{default:k((()=>[S(l,{class:"name",style:R({color:j(t==J.value)})},{default:k((()=>[W(A(e.text),1)])),_:2},1032,["style"]),t==J.value?(_(),C(l,{key:0,class:"line",style:R({"background-color":j(t==J.value)})},null,8,["style"])):F("v-if",!0)])),_:2},1032,["class","onClick","id"])))),128))])),_:1},8,["scroll-into-view"]),B(c).tab.list.length?(_(),C(l,{key:0,class:"absolute tab-btn nc-iconfont nc-icon-yingyongliebiaoV6xx",onClick:t[3]||(t[3]=e=>Q.value=!0)})):F("v-if",!0)])),_:1})):F("v-if",!0),m.value?(_(),C(l,{key:1,class:"bg-img"},{default:k((()=>[B(c).swiper.list&&B(c).swiper.list[L.value].imageUrl?(_(),C(o,{key:0,src:B(r)(B(c).swiper.list[L.value].imageUrl),mode:"scaleToFill",class:"w-full h-full","show-menu-by-longpress":!0},null,8,["src"])):(_(),C(l,{key:1,class:"w-full h-full bg-[#ccc]"}))])),_:1})):F("v-if",!0)])),_:1},8,["style"]),F(" 解决fixed定位后导航栏塌陷的问题 "),"decorate"!=B(d).mode?(_(),D(E,{key:0},["fixed"==B(c).positionWay&&-1!=n.scrollBool?(_(),C(l,{key:0,class:"u-navbar-placeholder",style:R({width:"100%",paddingTop:g.value})},null,8,["style"])):F("v-if",!0)],64)):F("v-if",!0),F(" 轮播图 "),S(l,{class:I(["relative",{"mx-[20rpx]":B(X)}])},{default:k((()=>[B(c).swiper.control?(_(),C(s,{key:0,class:I(["swiper",{"swiper-left":"left"==B(c).swiper.indicatorAlign,"swiper-right":"right"==B(c).swiper.indicatorAlign,"ns-indicator-dots":"style-2"==B(c).swiper.indicatorStyle}]),style:R({height:B(Y)}),autoplay:"true",circular:"true",onChange:V,"previous-margin":B(X)?0:"26rpx","next-margin":B(X)?0:"26rpx",interval:1e3*B(c).swiper.interval,"indicator-dots":B(ne),"indicator-color":B(c).swiper.indicatorColor,"indicator-active-color":B(c).swiper.indicatorActiveColor},{default:k((()=>[(_(!0),D(E,null,T(B(c).swiper.list,((e,t)=>(_(),C(i,{class:"swiper-item",key:e.id,style:R(B(q))},{default:k((()=>[S(l,{onClick:t=>B(d).toRedirect(e.link)},{default:k((()=>[S(l,{class:"item",style:R({height:B(Y)})},{default:k((()=>[e.imageUrl?(_(),C(o,{key:0,src:B(r)(e.imageUrl),mode:"scaleToFill",style:R(B(q)),class:I(["w-full h-full",{"swiper-animation":L.value!=t}]),"show-menu-by-longpress":!0},null,8,["src","style","class"])):(_(),C(o,{key:1,src:B(r)("static/resource/images/diy/figure.png"),style:R(B(q)),mode:"scaleToFill",class:I(["w-full h-full",{"swiper-animation":L.value!=t}]),"show-menu-by-longpress":!0},null,8,["src","style","class"]))])),_:2},1032,["style"])])),_:2},1032,["onClick"])])),_:2},1032,["style"])))),128))])),_:1},8,["style","class","previous-margin","next-margin","interval","indicator-dots","indicator-color","indicator-active-color"])):F("v-if",!0)])),_:1},8,["class"]),F(" 分类展开 "),S(h,{safeAreaInsetTop:!0,show:Q.value,mode:"top",onClose:t[5]||(t[5]=e=>Q.value=!1)},{default:k((()=>[S(l,{class:"text-sm px-[30rpx] pt-3",style:R({"padding-top":B(te).top+"px"})},{default:k((()=>[W("全部分类")])),_:1},8,["style"]),S(l,{class:"flex flex-wrap pl-[30rpx] pt-[30rpx]"},{default:k((()=>[S(l,{onClick:t[4]||(t[4]=e=>K({source:"home"},-1)),class:I(["px-[26rpx] border-[2rpx] border-solid border-transparent h-[60rpx] mr-[30rpx] mb-[30rpx] flex items-center justify-center bg-[#F4F4F4] rounded-[8rpx] text-xs",{"tab-select-popup":-1==J.value}])},{default:k((()=>[W(" 首页 ")])),_:1},8,["class"]),(_(!0),D(E,null,T(B(c).tab.list,((e,t)=>(_(),C(a,{onClick:o=>K(e,t),key:t,class:I(["px-[26rpx] border-[2rpx] border-solid border-transparent h-[60rpx] mr-[30rpx] mb-[30rpx] flex items-center justify-center bg-[#F4F4F4] rounded-[8rpx] text-xs",{"tab-select-popup":t==J.value}])},{default:k((()=>[W(A(e.text),1)])),_:2},1032,["onClick","class"])))),128))])),_:1})])),_:1},8,["show"])])),_:1}),F(" 展示微页面数据 "),"diy_page"==Z.value?(_(),C(l,{key:0,class:"child-diy-template-wrap bg-index"},{default:k((()=>[S(_l,{data:re},null,8,["data"])])),_:1})):F("v-if",!0)])),_:1},8,["style"])}}}),[["__scopeId","data-v-3fbe9cd4"]]);const We="object"==typeof global&&global&&global.Object===Object&&global;var Ae="object"==typeof self&&self&&self.Object===Object&&self;const Fe=(We||Ae||Function("return this")()).Symbol;var $e=Object.prototype,ze=$e.hasOwnProperty,Ne=$e.toString,Oe=Fe?Fe.toStringTag:void 0;var Ue=Object.prototype.toString;var Pe="[object Null]",He="[object Undefined]",je=Fe?Fe.toStringTag:void 0;function Me(e){return null==e?void 0===e?He:Pe:je&&je in Object(e)?function(e){var t=ze.call(e,Oe),o=e[Oe];try{e[Oe]=void 0;var l=!0}catch(a){}var r=Ne.call(e);return l&&(t?e[Oe]=o:delete e[Oe]),r}(e):function(e){return Ue.call(e)}(e)}var Ge="[object Symbol]";var Xe=/\s/;var Ye=/^\s+/;function Le(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&Xe.test(e.charAt(t)););return t}(e)+1).replace(Ye,""):e}function Ve(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var qe=NaN,Je=/^[-+]0x[0-9a-f]+$/i,Ze=/^0b[01]+$/i,Ke=/^0o[0-7]+$/i,Qe=parseInt;function et(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&Me(e)==Ge}(e))return qe;if(Ve(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ve(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Le(e);var o=Ze.test(e);return o||Ke.test(e)?Qe(e.slice(2),o?2:8):Je.test(e)?qe:+e}var tt=1/0,ot=17976931348623157e292;function lt(e){return e?(e=et(e))===tt||e===-tt?(e<0?-1:1)*ot:e==e?e:0:0===e?e:0}var rt="[object AsyncFunction]",at="[object Function]",nt="[object GeneratorFunction]",it="[object Proxy]";var st=9007199254740991,ut=/^(?:0|[1-9]\d*)$/;var dt=9007199254740991;function ct(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=dt}(e.length)&&!function(e){if(!Ve(e))return!1;var t=Me(e);return t==at||t==nt||t==rt||t==it}(e)}function pt(e,t,o){if(!Ve(o))return!1;var l=typeof t;return!!("number"==l?ct(o)&&function(e,t){var o=typeof e;return!!(t=null==t?st:t)&&("number"==o||"symbol"!=o&&ut.test(e))&&e>-1&&e%1==0&&en.data)),c=l((()=>{if(n.data&&n.data.topStatusBar)return n.data.topStatusBar})),p=l((()=>{let e="";return n.isBack&&w.value?(e+="padding-left: 30rpx;","style-1"==c.value.style&&(e+="padding-right:80rpx;")):("style-1"==c.value.style&&(e+="padding-right: 30rpx;"),e+="padding-left: 30rpx;"),e})),g=l((()=>{let e="";return e+="font-size: 28rpx;",e+=`color: ${m.value};`,"style-1"==c.value.style&&(e+=`text-align: ${c.value.textAlign};`),e})),m=l((()=>{let e="";return e=1==n.scrollBool?c.value.rollTextColor:c.value.textColor,e})),f=l((()=>{let e="";return e=1==n.scrollBool?c.value.rollBgColor:c.value.bgColor,e}));let y=uni.getStorageSync("componentsScrollValGroup");if(y)y.TopTabbar=0,uni.setStorageSync("componentsScrollValGroup",y);else{let e={TopTabbar:0};uni.setStorageSync("componentsScrollValGroup",e)}let w=e(!1),D=i();const E=()=>{"function"==typeof n.customBack?n.customBack():ne()},T=l((()=>`calc(100vw - ${s.right}px + ${s.width}px + 10px)`));let U=e(0);const P=$(),H=ae();let j=e("定位中..."),M=uni.getStorageSync("mapConfig");const G=()=>{if(L("latng")){j.value="定位中...";let t=H.location;var e=L("latng").split(",");t.latitude=e[0],t.longitude=e[1],H.setLocation(t)}j.value="定位中...",uni.getStorageSync("addressByLatlng")&&(j.value=uni.getStorageSync("addressByLatlng").formatted_addresses.recommend),1==M.is_open&&ie()&&ie().is_expired&&se({fail:e=>{j.value="定位中..."}})};h((()=>H.location),((e,t)=>{e.latitude&&e.longitude?X():j.value="定位中..."}),{deep:!0});const X=()=>{let e={latlng:""};e.latlng=H.location.latitude+","+H.location.longitude,ue(e).then((e=>{e.data&&Object.keys(e.data).length?(j.value=e.data.formatted_addresses.recommend,uni.setStorageSync("addressByLatlng",e.data)):j.value="定位中..."}))},Y=()=>{let e=location.origin+location.pathname;window.location.href="https://apis.map.qq.com/tools/locpicker?search=1&type=0&backurl="+encodeURIComponent(e)+"&key="+he.h5.sdkConfigs.maps.qqmap.key+"&referer=myapp"},L=e=>{for(var t=window.location.search.substring(1).split("&"),o=0;o{b((()=>{x().in(P).select(".ns-navbar-wrap .u-navbar .content-wrap").boundingClientRect((e=>{U.value=e?e.height:0,u.topTabarHeight=U.value})).exec()})),D.length>1&&(w.value=!0),c.value&&"style-4"==c.value.style&&G()}));return a({refresh:()=>{c.value&&"style-4"==c.value.style&&G()}}),(e,t)=>{const l=z,a=N,i=O;return"decorate"!=B(u).mode&&B(c)?(_(),C(l,{key:0,class:I(["ns-navbar-wrap",B(c).style])},{default:k((()=>[S(l,{class:I(["u-navbar",{fixed:-1!=n.scrollBool,absolute:-1==n.scrollBool}]),style:R({backgroundColor:B(f)})},{default:k((()=>[S(l,{class:"navbar-inner",style:R({width:"100%",height:B(U)+"px"})},{default:k((()=>["style-1"==B(c).style?(_(),C(l,{key:0,class:I(["content-wrap",[B(c).textAlign]]),style:R(B(p))},{default:k((()=>[o.isBack&&B(w)?(_(),C(l,{key:0,class:"back-wrap -ml-[16rpx] text-[27px] nc-iconfont nc-icon-zuoV6xx",style:R({color:B(m)}),onClick:E},null,8,["style"])):F("v-if",!0),S(l,{class:"title-wrap",style:R(B(g))},{default:k((()=>[W(A(B(d).title),1)])),_:1},8,["style"])])),_:1},8,["class","style"])):F("v-if",!0),"style-2"==B(c).style?(_(),C(l,{key:1,class:"content-wrap",style:R(B(p)),onClick:t[0]||(t[0]=e=>B(u).toRedirect(B(c).link))},{default:k((()=>[o.isBack&&B(w)?(_(),C(l,{key:0,class:"back-wrap -ml-[16rpx] text-[27px] nc-iconfont nc-icon-zuoV6xx",style:R({color:B(m)}),onClick:E},null,8,["style"])):F("v-if",!0),S(l,{class:"title-wrap",style:R({color:B(c).textColor})},{default:k((()=>[S(l,null,{default:k((()=>[S(a,{src:B(r)(B(c).imgUrl),mode:"heightFix"},null,8,["src"])])),_:1}),S(l,{style:R({color:B(c).textColor})},{default:k((()=>[W(A(B(d).title),1)])),_:1},8,["style"])])),_:1},8,["style"])])),_:1},8,["style"])):F("v-if",!0),"style-3"==B(c).style?(_(),C(l,{key:2,style:R(B(p)),class:"content-wrap"},{default:k((()=>[o.isBack&&B(w)?(_(),C(l,{key:0,class:"back-wrap -ml-[16rpx] text-[27px] nc-iconfont nc-icon-zuoV6xx",style:R({color:B(m)}),onClick:E},null,8,["style"])):F("v-if",!0),S(l,{class:"title-wrap",onClick:t[1]||(t[1]=e=>B(u).toRedirect(B(c).link))},{default:k((()=>[S(a,{src:B(r)(B(c).imgUrl),mode:"heightFix"},null,8,["src"])])),_:1}),S(l,{class:"search",onClick:t[2]||(t[2]=e=>B(u).toRedirect(B(c).link)),style:R({height:B(s).height-2+"px",lineHeight:B(s).height-2+"px"})},{default:k((()=>[S(i,{class:"nc-iconfont nc-icon-sousuoV6xx absolute left-[20rpx]"}),S(i,{class:"text-[28rpx]"},{default:k((()=>[W(A(B(c).inputPlaceholder),1)])),_:1})])),_:1},8,["style"]),S(l,{style:R({width:B(T)})},null,8,["style"])])),_:1},8,["style"])):F("v-if",!0),"style-4"==B(c).style?(_(),C(l,{key:3,style:R(B(p)),class:"content-wrap"},{default:k((()=>[o.isBack&&B(w)?(_(),C(l,{key:0,class:"back-wrap -ml-[16rpx] text-[27px] nc-iconfont nc-icon-zuoV6xx",style:R({color:B(m)}),onClick:E},null,8,["style"])):F("v-if",!0),S(i,{class:"nc-iconfont nc-icon-dizhiguanliV6xx text-[28rpx]",style:R({color:B(c).textColor})},null,8,["style"]),S(l,{class:"title-wrap",onClick:t[3]||(t[3]=e=>Y()),style:R({color:B(c).textColor})},{default:k((()=>[W(A(B(j)),1)])),_:1},8,["style"]),S(i,{class:"nc-iconfont nc-icon-youV6xx text-[26rpx]",onClick:t[4]||(t[4]=e=>Y()),style:R({color:B(c).textColor})},null,8,["style"])])),_:1},8,["style"])):F("v-if",!0)])),_:1},8,["style"])])),_:1},8,["class","style"]),F(" 解决fixed定位后导航栏塌陷的问题 "),S(l,{class:"u-navbar-placeholder",style:R({width:"100%",paddingTop:B(U)+"px"})},null,8,["style"])])),_:1},8,["class"])):F("v-if",!0)}}}),[["__scopeId","data-v-b2cdc346"]]); /**! * Sortable 1.15.0 * @author RubaXa * @author owenm * @license MIT */ function xt(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,l)}return o}function yt(e){for(var t=1;t=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(l=0;l=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}function St(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var Rt=St(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Bt=St(/Edge/i),Dt=St(/firefox/i),Et=St(/safari/i)&&!St(/chrome/i)&&!St(/android/i),Tt=St(/iP(ad|od|hone)/i),It=St(/chrome/i)&&St(/android/i),Wt={capture:!1,passive:!1};function At(e,t,o){e.addEventListener(t,o,!Rt&&Wt)}function Ft(e,t,o){e.removeEventListener(t,o,!Rt&&Wt)}function $t(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(o){return!1}return!1}}function zt(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Nt(e,t,o,l){if(e){o=o||document;do{if(null!=t&&(">"===t[0]?e.parentNode===o&&$t(e,t):$t(e,t))||l&&e===o)return e;if(e===o)break}while(e=zt(e))}return null}var Ot,Ut=/\s+/g;function Pt(e,t,o){if(e&&t)if(e.classList)e.classList[o?"add":"remove"](t);else{var l=(" "+e.className+" ").replace(Ut," ").replace(" "+t+" "," ");e.className=(l+(o?" "+t:"")).replace(Ut," ")}}function Ht(e,t,o){var l=e&&e.style;if(l){if(void 0===o)return document.defaultView&&document.defaultView.getComputedStyle?o=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(o=e.currentStyle),void 0===t?o:o[t];t in l||-1!==t.indexOf("webkit")||(t="-webkit-"+t),l[t]=o+("string"==typeof o?"":"px")}}function jt(e,t){var o="";if("string"==typeof e)o=e;else do{var l=Ht(e,"transform");l&&"none"!==l&&(o=l+" "+o)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(o)}function Mt(e,t,o){if(e){var l=e.getElementsByTagName(t),r=0,a=l.length;if(o)for(;r=a:r<=a))return l;if(l===Gt())break;l=Zt(l,!1)}return!1}function Lt(e,t,o,l){for(var r=0,a=0,n=e.children;a2&&void 0!==arguments[2]?arguments[2]:{},l=o.evt,r=kt(o,io);no.pluginEvent.bind(tl)(e,t,yt({dragEl:co,parentEl:po,ghostEl:go,rootEl:mo,nextEl:fo,lastDownEl:ho,cloneEl:vo,cloneHidden:bo,dragStarted:Io,putSortable:ko,activeSortable:tl.active,originalEvent:l,oldIndex:xo,oldDraggableIndex:wo,newIndex:yo,newDraggableIndex:_o,hideGhostForTarget:Zo,unhideGhostForTarget:Ko,cloneNowHidden:function(){bo=!0},cloneNowShown:function(){bo=!1},dispatchSortableEvent:function(e){uo({sortable:t,name:e,originalEvent:l})}},r))};function uo(e){!function(e){var t=e.sortable,o=e.rootEl,l=e.name,r=e.targetEl,a=e.cloneEl,n=e.toEl,i=e.fromEl,s=e.oldIndex,u=e.newIndex,d=e.oldDraggableIndex,c=e.newDraggableIndex,p=e.originalEvent,g=e.putSortable,m=e.extraEventProperties;if(t=t||o&&o[oo]){var f,h=t.options,v="on"+l.charAt(0).toUpperCase()+l.substr(1);!window.CustomEvent||Rt||Bt?(f=document.createEvent("Event")).initEvent(l,!0,!0):f=new CustomEvent(l,{bubbles:!0,cancelable:!0}),f.to=n||o,f.from=i||o,f.item=r||o,f.clone=a,f.oldIndex=s,f.newIndex=u,f.oldDraggableIndex=d,f.newDraggableIndex=c,f.originalEvent=p,f.pullMode=g?g.lastPutMode:void 0;var b=yt(yt({},m),no.getEventProperties(l,t));for(var x in b)f[x]=b[x];o&&o.dispatchEvent(f),h[v]&&h[v].call(t,f)}}(yt({putSortable:ko,cloneEl:vo,targetEl:co,rootEl:mo,oldIndex:xo,oldDraggableIndex:wo,newIndex:yo,newDraggableIndex:_o},e))}var co,po,go,mo,fo,ho,vo,bo,xo,yo,wo,_o,Co,ko,So,Ro,Bo,Do,Eo,To,Io,Wo,Ao,Fo,$o,zo=!1,No=!1,Oo=[],Uo=!1,Po=!1,Ho=[],jo=!1,Mo=[],Go="undefined"!=typeof document,Xo=Tt,Yo=Bt||Rt?"cssFloat":"float",Lo=Go&&!It&&!Tt&&"draggable"in document.createElement("div"),Vo=function(){if(Go){if(Rt)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),qo=function(e,t){var o=Ht(e),l=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),r=Lt(e,0,t),a=Lt(e,1,t),n=r&&Ht(r),i=a&&Ht(a),s=n&&parseInt(n.marginLeft)+parseInt(n.marginRight)+Xt(r).width,u=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+Xt(a).width;if("flex"===o.display)return"column"===o.flexDirection||"column-reverse"===o.flexDirection?"vertical":"horizontal";if("grid"===o.display)return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&n.float&&"none"!==n.float){var d="left"===n.float?"left":"right";return!a||"both"!==i.clear&&i.clear!==d?"horizontal":"vertical"}return r&&("block"===n.display||"flex"===n.display||"table"===n.display||"grid"===n.display||s>=l&&"none"===o[Yo]||a&&"none"===o[Yo]&&s+u>l)?"vertical":"horizontal"},Jo=function(e){function t(e,o){return function(l,r,a,n){var i=l.options.group.name&&r.options.group.name&&l.options.group.name===r.options.group.name;if(null==e&&(o||i))return!0;if(null==e||!1===e)return!1;if(o&&"clone"===e)return e;if("function"==typeof e)return t(e(l,r,a,n),o)(l,r,a,n);var s=(o?l:r).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var o={},l=e.group;l&&"object"==wt(l)||(l={name:l}),o.name=l.name,o.checkPull=t(l.pull,!0),o.checkPut=t(l.put),o.revertClone=l.revertClone,e.group=o},Zo=function(){!Vo&&go&&Ht(go,"display","none")},Ko=function(){!Vo&&go&&Ht(go,"display","")};Go&&!It&&document.addEventListener("click",(function(e){if(No)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),No=!1,!1}),!0);var Qo=function(e){if(co){e=e.touches?e.touches[0]:e;var t=(r=e.clientX,a=e.clientY,Oo.some((function(e){var t=e[oo].options.emptyInsertThreshold;if(t&&!Vt(e)){var o=Xt(e),l=r>=o.left-t&&r<=o.right+t,i=a>=o.top-t&&a<=o.bottom+t;return l&&i?n=e:void 0}})),n);if(t){var o={};for(var l in e)e.hasOwnProperty(l)&&(o[l]=e[l]);o.target=o.rootEl=t,o.preventDefault=void 0,o.stopPropagation=void 0,t[oo]._onDragOver(o)}}var r,a,n},el=function(e){co&&co.parentNode[oo]._isOutsideThisEl(e.target)};function tl(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Ct({},t),e[oo]=this;var o={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return qo(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==tl.supportPointer&&"PointerEvent"in window&&!Et,emptyInsertThreshold:5};for(var l in no.initializePlugins(this,e,o),o)!(l in t)&&(t[l]=o[l]);for(var r in Jo(t),this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!t.forceFallback&&Lo,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?At(e,"pointerdown",this._onTapStart):(At(e,"mousedown",this._onTapStart),At(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(At(e,"dragover",this),At(e,"dragenter",this)),Oo.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Ct(this,lo())}function ol(e,t,o,l,r,a,n,i){var s,u,d=e[oo],c=d.options.onMove;return!window.CustomEvent||Rt||Bt?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=o,s.draggedRect=l,s.related=r||t,s.relatedRect=a||Xt(t),s.willInsertAfter=i,s.originalEvent=n,e.dispatchEvent(s),c&&(u=c.call(d,s,n)),u}function ll(e){e.draggable=!1}function rl(){jo=!1}function al(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,o=t.length,l=0;o--;)l+=t.charCodeAt(o);return l.toString(36)}function nl(e){return setTimeout(e,0)}function il(e){return clearTimeout(e)}tl.prototype={constructor:tl,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Wo=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,co):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,o=this.el,l=this.options,r=l.preventOnFilter,a=e.type,n=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,i=(n||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||i,u=l.filter;if(function(e){Mo.length=0;var t=e.getElementsByTagName("input"),o=t.length;for(;o--;){var l=t[o];l.checked&&Mo.push(l)}}(o),!co&&!(/mousedown|pointerdown/.test(a)&&0!==e.button||l.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!Et||!i||"SELECT"!==i.tagName.toUpperCase())&&!((i=Nt(i,l.draggable,o,!1))&&i.animated||ho===i)){if(xo=qt(i),wo=qt(i,l.draggable),"function"==typeof u){if(u.call(this,e,i,this))return uo({sortable:t,rootEl:s,name:"filter",targetEl:i,toEl:o,fromEl:o}),so("filter",t,{evt:e}),void(r&&e.cancelable&&e.preventDefault())}else if(u&&(u=u.split(",").some((function(l){if(l=Nt(s,l.trim(),o,!1))return uo({sortable:t,rootEl:l,name:"filter",targetEl:i,fromEl:o,toEl:o}),so("filter",t,{evt:e}),!0}))))return void(r&&e.cancelable&&e.preventDefault());l.handle&&!Nt(s,l.handle,o,!1)||this._prepareDragStart(e,n,i)}}},_prepareDragStart:function(e,t,o){var l,r=this,a=r.el,n=r.options,i=a.ownerDocument;if(o&&!co&&o.parentNode===a){var s=Xt(o);if(mo=a,po=(co=o).parentNode,fo=co.nextSibling,ho=o,Co=n.group,tl.dragged=co,So={target:co,clientX:(t||e).clientX,clientY:(t||e).clientY},Eo=So.clientX-s.left,To=So.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,co.style["will-change"]="all",l=function(){so("delayEnded",r,{evt:e}),tl.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!Dt&&r.nativeDraggable&&(co.draggable=!0),r._triggerDragStart(e,t),uo({sortable:r,name:"choose",originalEvent:e}),Pt(co,n.chosenClass,!0))},n.ignore.split(",").forEach((function(e){Mt(co,e.trim(),ll)})),At(i,"dragover",Qo),At(i,"mousemove",Qo),At(i,"touchmove",Qo),At(i,"mouseup",r._onDrop),At(i,"touchend",r._onDrop),At(i,"touchcancel",r._onDrop),Dt&&this.nativeDraggable&&(this.options.touchStartThreshold=4,co.draggable=!0),so("delayStart",this,{evt:e}),!n.delay||n.delayOnTouchOnly&&!t||this.nativeDraggable&&(Bt||Rt))l();else{if(tl.eventCanceled)return void this._onDrop();At(i,"mouseup",r._disableDelayedDrag),At(i,"touchend",r._disableDelayedDrag),At(i,"touchcancel",r._disableDelayedDrag),At(i,"mousemove",r._delayedDragTouchMoveHandler),At(i,"touchmove",r._delayedDragTouchMoveHandler),n.supportPointer&&At(i,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(l,n.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){co&&ll(co),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Ft(e,"mouseup",this._disableDelayedDrag),Ft(e,"touchend",this._disableDelayedDrag),Ft(e,"touchcancel",this._disableDelayedDrag),Ft(e,"mousemove",this._delayedDragTouchMoveHandler),Ft(e,"touchmove",this._delayedDragTouchMoveHandler),Ft(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?At(document,"pointermove",this._onTouchMove):At(document,t?"touchmove":"mousemove",this._onTouchMove):(At(co,"dragend",this),At(mo,"dragstart",this._onDragStart));try{document.selection?nl((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(o){}},_dragStarted:function(e,t){if(zo=!1,mo&&co){so("dragStarted",this,{evt:t}),this.nativeDraggable&&At(document,"dragover",el);var o=this.options;!e&&Pt(co,o.dragClass,!1),Pt(co,o.ghostClass,!0),tl.active=this,e&&this._appendGhost(),uo({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Ro){this._lastX=Ro.clientX,this._lastY=Ro.clientY,Zo();for(var e=document.elementFromPoint(Ro.clientX,Ro.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Ro.clientX,Ro.clientY))!==t;)t=e;if(co.parentNode[oo]._isOutsideThisEl(e),t)do{if(t[oo]){if(t[oo]._onDragOver({clientX:Ro.clientX,clientY:Ro.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Ko()}},_onTouchMove:function(e){if(So){var t=this.options,o=t.fallbackTolerance,l=t.fallbackOffset,r=e.touches?e.touches[0]:e,a=go&&jt(go,!0),n=go&&a&&a.a,i=go&&a&&a.d,s=Xo&&$o&&Jt($o),u=(r.clientX-So.clientX+l.x)/(n||1)+(s?s[0]-Ho[0]:0)/(n||1),d=(r.clientY-So.clientY+l.y)/(i||1)+(s?s[1]-Ho[1]:0)/(i||1);if(!tl.active&&!zo){if(o&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))l.right+r||e.clientX<=l.right&&e.clientY>l.bottom&&e.clientX>=l.left:e.clientX>l.right&&e.clientY>l.top||e.clientX<=l.right&&e.clientY>l.bottom+r}(e,r,this)&&!f.animated){if(f===co)return I(!1);if(f&&a===e.target&&(n=f),n&&(o=Xt(n)),!1!==ol(mo,a,co,t,n,o,e,!!n))return T(),f&&f.nextSibling?a.insertBefore(co,f.nextSibling):a.appendChild(co),po=a,W(),I(!0)}else if(f&&function(e,t,o){var l=Xt(Lt(o.el,0,o.options,!0)),r=10;return t?e.clientXd+u*a/2:sc-Fo)return-Ao}else if(s>d+u*(1-r)/2&&sc-u*a/2))return s>d+u/2?1:-1;return 0}(e,n,o,r,w?1:i.swapThreshold,null==i.invertedSwapThreshold?i.swapThreshold:i.invertedSwapThreshold,Po,Wo===n),0!==v){var S=qt(co);do{S-=v,x=po.children[S]}while(x&&("none"===Ht(x,"display")||x===go))}if(0===v||x===n)return I(!1);Wo=n,Ao=v;var R=n.nextElementSibling,B=!1,D=ol(mo,a,co,t,n,o,e,B=1===v);if(!1!==D)return 1!==D&&-1!==D||(B=1===D),jo=!0,setTimeout(rl,30),T(),B&&!R?a.appendChild(co):n.parentNode.insertBefore(co,B?R:n),C&&eo(C,0,k-C.scrollTop),po=co.parentNode,void 0===b||Po||(Fo=Math.abs(b-Xt(n)[_])),W(),I(!0)}if(a.contains(co))return I(!1)}return!1}function E(i,s){so(i,g,yt({evt:e,isOwner:d,axis:r?"vertical":"horizontal",revert:l,dragRect:t,targetRect:o,canSort:c,fromSortable:p,target:n,completed:I,onMove:function(o,l){return ol(mo,a,co,t,o,Xt(o),e,l)},changed:W},s))}function T(){E("dragOverAnimationCapture"),g.captureAnimationState(),g!==p&&p.captureAnimationState()}function I(t){return E("dragOverCompleted",{insertion:t}),t&&(d?u._hideClone():u._showClone(g),g!==p&&(Pt(co,ko?ko.options.ghostClass:u.options.ghostClass,!1),Pt(co,i.ghostClass,!0)),ko!==g&&g!==tl.active?ko=g:g===tl.active&&ko&&(ko=null),p===g&&(g._ignoreWhileAnimating=n),g.animateAll((function(){E("dragOverAnimationComplete"),g._ignoreWhileAnimating=null})),g!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(n===co&&!co.animated||n===a&&!n.animated)&&(Wo=null),i.dragoverBubble||e.rootEl||n===document||(co.parentNode[oo]._isOutsideThisEl(e.target),!t&&Qo(e)),!i.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function W(){yo=qt(co),_o=qt(co,i.draggable),uo({sortable:g,name:"change",toEl:a,newIndex:yo,newDraggableIndex:_o,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){Ft(document,"mousemove",this._onTouchMove),Ft(document,"touchmove",this._onTouchMove),Ft(document,"pointermove",this._onTouchMove),Ft(document,"dragover",Qo),Ft(document,"mousemove",Qo),Ft(document,"touchmove",Qo)},_offUpEvents:function(){var e=this.el.ownerDocument;Ft(e,"mouseup",this._onDrop),Ft(e,"touchend",this._onDrop),Ft(e,"pointerup",this._onDrop),Ft(e,"touchcancel",this._onDrop),Ft(document,"selectstart",this)},_onDrop:function(e){var t=this.el,o=this.options;yo=qt(co),_o=qt(co,o.draggable),so("drop",this,{evt:e}),po=co&&co.parentNode,yo=qt(co),_o=qt(co,o.draggable),tl.eventCanceled||(zo=!1,Po=!1,Uo=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),il(this.cloneId),il(this._dragStartId),this.nativeDraggable&&(Ft(document,"drop",this),Ft(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Et&&Ht(document.body,"user-select",""),Ht(co,"transform",""),e&&(Io&&(e.cancelable&&e.preventDefault(),!o.dropBubble&&e.stopPropagation()),go&&go.parentNode&&go.parentNode.removeChild(go),(mo===po||ko&&"clone"!==ko.lastPutMode)&&vo&&vo.parentNode&&vo.parentNode.removeChild(vo),co&&(this.nativeDraggable&&Ft(co,"dragend",this),ll(co),co.style["will-change"]="",Io&&!zo&&Pt(co,ko?ko.options.ghostClass:this.options.ghostClass,!1),Pt(co,this.options.chosenClass,!1),uo({sortable:this,name:"unchoose",toEl:po,newIndex:null,newDraggableIndex:null,originalEvent:e}),mo!==po?(yo>=0&&(uo({rootEl:po,name:"add",toEl:po,fromEl:mo,originalEvent:e}),uo({sortable:this,name:"remove",toEl:po,originalEvent:e}),uo({rootEl:po,name:"sort",toEl:po,fromEl:mo,originalEvent:e}),uo({sortable:this,name:"sort",toEl:po,originalEvent:e})),ko&&ko.save()):yo!==xo&&yo>=0&&(uo({sortable:this,name:"update",toEl:po,originalEvent:e}),uo({sortable:this,name:"sort",toEl:po,originalEvent:e})),tl.active&&(null!=yo&&-1!==yo||(yo=xo,_o=wo),uo({sortable:this,name:"end",toEl:po,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){so("nulling",this),mo=co=po=go=fo=vo=ho=bo=So=Ro=Io=yo=_o=xo=wo=Wo=Ao=ko=Co=tl.dragged=tl.ghost=tl.clone=tl.active=null,Mo.forEach((function(e){e.checked=!0})),Mo.length=Bo=Do=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":co&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],o=this.el.children,l=0,r=o.length,a=this.options;l"decorate"==i.mode?i:o.data)),c=e(!1);return n((()=>{c.value=!1})),d((()=>{c.value=!0})),{scrollV:e().value,data:u.value,componentsScrollBool:a.value,placeholderEvent:()=>{},refresh:()=>{b((()=>{var e;null==(e=o.getFormRef().topTabbarRef)||e.refresh()}))},isShowPlaceHolder:(e,t)=>{if("decorate"==i.mode){let o=document.getElementById("componentList");if(o&&o.children.length&&o.children[e]){let l=o.children[e].offsetHeight,r=0;if(t.margin.top<0&&(r=2*t.margin.top*-1,r>l))return!1}return!0}return!1},getComponentClass:(e,t)=>{let o={relative:!0,selected:i.currentIndex==e,decorate:"decorate"==i.mode};return o["top-fixed-"+i.topFixedStatus]=!0,t.position&&-1!=s.value.indexOf(t.position)?o["ignore-draggable-element"]=!0:o["draggable-element"]=!0,o},onPageScroll:()=>{m((e=>{if(r&&!c.value)for(let t in r)e.scrollTop<=0?a.value[t]=-1:e.scrollTop>r[t]?a.value[t]=1:a.value[t]=2}))},onMounted:()=>{v((()=>{if("decorate"==i.mode){var e=document.getElementById("componentList");const t=tl.create(e,{draggable:".draggable-element",animation:200,onEnd:e=>{let o=i.value[e.oldIndex];i.value.splice(e.oldIndex,1),i.value.splice(e.newIndex,0,o),b((()=>{t.sort(vt(i.value.length).map((e=>e.toString()))),i.postMessage(e.newIndex,i.value[e.newIndex])}))}})}b((()=>{setTimeout((()=>{if(u.value.global&&u.value.global.topStatusBar&&"style-4"==u.value.global.topStatusBar.style&&se(),r=uni.getStorageSync("componentsScrollValGroup"),r)for(let e in r)a.value[e]=-1}),500)}))}))}}}({...a,getFormRef:()=>({topTabbarRef:i.value})}),c=e(u.data);return u.onMounted(),u.onPageScroll(),r({refresh:u.refresh}),(e,t)=>{const o=z,l=y(w("diy-graphic-nav"),be),r=y(w("diy-horz-blank"),xe),n=y(w("diy-horz-line"),ye),d=y(w("diy-hot-area"),we),p=y(w("diy-image-ads"),_e),g=y(w("diy-member-info"),Ce),m=y(w("diy-member-level"),ke),f=y(w("diy-notice"),Se),h=y(w("diy-rubik-cube"),Re),v=y(w("diy-text"),Be),b=y(w("diy-rich-text"),De),x=y(w("diy-active-cube"),Ee),W=y(w("diy-float-btn"),Te),A=y(w("diy-carousel-search"),Ie),$=y(w("tabbar"),fe);return _(),C(o,{class:"diy-group",id:"componentList"},{default:k((()=>[c.value.global&&Object.keys(c.value.global).length&&c.value.global.topStatusBar&&c.value.global.topStatusBar.isShow?(_(),C(bt,{key:0,scrollBool:B(u).componentsScrollBool.TopTabbar,ref_key:"topTabbarRef",ref:i,data:c.value.global},null,8,["scrollBool","data"])):F("v-if",!0),(_(!0),D(E,null,T(c.value.value,((e,t)=>(_(),C(o,{key:e.id,onClick:o=>B(s).changeCurrentIndex(t,e),class:I(B(u).getComponentClass(t,e)),style:R(e.pageStyle)},{default:k((()=>[S(o,{class:"relative",style:R({marginTop:e.margin.top<0?2*e.margin.top+"rpx":"0"})},{default:k((()=>[F(" 装修模式下,设置负上边距后超出的内容,禁止选中设置 "),B(u).isShowPlaceHolder(t,e)?(_(),C(o,{key:0,class:"absolute w-full z-1",style:R({height:2*e.margin.top*-1+"rpx"}),onClick:ee(B(u).placeholderEvent,["stop"])},null,8,["style","onClick"])):F("v-if",!0),"GraphicNav"==e.componentName?(_(),C(l,{key:1,component:e,global:c.value.global,index:t,pullDownRefreshCount:a.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):F("v-if",!0),"HorzBlank"==e.componentName?(_(),C(r,{key:2,component:e,global:c.value.global,index:t,pullDownRefreshCount:a.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):F("v-if",!0),"HorzLine"==e.componentName?(_(),C(n,{key:3,component:e,global:c.value.global,index:t,pullDownRefreshCount:a.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):F("v-if",!0),"HotArea"==e.componentName?(_(),C(d,{key:4,component:e,global:c.value.global,index:t,pullDownRefreshCount:a.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):F("v-if",!0),"ImageAds"==e.componentName?(_(),C(p,{key:5,component:e,global:c.value.global,index:t,pullDownRefreshCount:a.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):F("v-if",!0),"MemberInfo"==e.componentName?(_(),C(g,{key:6,component:e,global:c.value.global,index:t,pullDownRefreshCount:a.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):F("v-if",!0),"MemberLevel"==e.componentName?(_(),C(m,{key:7,component:e,global:c.value.global,index:t,pullDownRefreshCount:a.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):F("v-if",!0),"Notice"==e.componentName?(_(),C(f,{key:8,component:e,global:c.value.global,index:t,pullDownRefreshCount:a.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):F("v-if",!0),"RubikCube"==e.componentName?(_(),C(h,{key:9,component:e,global:c.value.global,index:t,pullDownRefreshCount:a.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):F("v-if",!0),"Text"==e.componentName?(_(),C(v,{key:10,component:e,global:c.value.global,index:t,pullDownRefreshCount:a.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):F("v-if",!0),"RichText"==e.componentName?(_(),C(b,{key:11,component:e,global:c.value.global,index:t,pullDownRefreshCount:a.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):F("v-if",!0),"ActiveCube"==e.componentName?(_(),C(x,{key:12,component:e,global:c.value.global,index:t,pullDownRefreshCount:a.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):F("v-if",!0),"FloatBtn"==e.componentName?(_(),C(W,{key:13,component:e,global:c.value.global,index:t,pullDownRefreshCount:a.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):F("v-if",!0),"CarouselSearch"==e.componentName?(_(),C(A,{key:14,scrollBool:B(u).componentsScrollBool.CarouselSearch,component:e,global:c.value.global,index:t,pullDownRefreshCount:a.pullDownRefreshCount},null,8,["scrollBool","component","global","index","pullDownRefreshCount"])):F("v-if",!0)])),_:2},1032,["style"])])),_:2},1032,["onClick","class","style"])))),128)),""==B(s).mode&&c.value.global.bottomTabBarSwitch?(_(),D(E,{key:1},[S(o,{class:"pt-[20rpx]"}),S($)],64)):F("v-if",!0)])),_:1})}}}),[["__scopeId","data-v-d00b0b65"]]),Cl=f({__name:"index",props:["data","pullDownRefreshCount"],setup(e){const t=e;return(e,o)=>{const l=z;return _(),C(l,null,{default:k((()=>[W(" 固定模板示例,我也可以装修 "),F(" 自定义模板渲染 "),S(_l,{data:t.data,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["data","pullDownRefreshCount"])])),_:1})}}}),kl=ce(f({__name:"index",props:["data","pullDownRefreshCount"],setup(e){const t=e;return(e,o)=>{const l=y(w("fixed-demo-index"),Cl),r=z;return _(),C(r,{class:"fixed-group"},{default:k((()=>["demo-index"==t.data.global.component?(_(),C(l,{key:0,data:t.data,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["data","pullDownRefreshCount"])):F("v-if",!0)])),_:1})}}}),[["__scopeId","data-v-a731614a"]]);export{_l as d,kl as f,ve as u};