import{aE as e,aF as t,aG as o,aH as l,aI as r,aJ as a,r as n,u as i,J as s,H as u,R as d,s as c,o as p,Z as m,aK as g,U as f,ak as v,al as h,ag as x,d as b,K as y,ar as w,am as _,aL as k,j as C,k as S,b as R,c as T,w as B,e as E,n as F,f as I,W as D,X as W,ae as A,A as $,y as z,z as O,i as N,aM as U,aN as P,l as H,Q as M,D as j,aD as G,aB as X,ao as L,a as Y,aO as V,aP as q,I as J,G as K,aQ as Q,p as Z,t as ee,aR as te,aa as oe,F as le,C as re,B as ae,aC as ne,L as ie,E as se,aS as ue,aT as de,P as ce}from"./index-83368bfa.js";import{_ as pe}from"./u-icon.592effc8.js";import{_ as me}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as ge}from"./u--image.daf935cf.js";import{c as fe}from"./article.ba44b8c1.js";import{_ as ve}from"./u-avatar.7dfc7af2.js";import{_ as he}from"./u-popup.2862f6be.js";import{_ as xe}from"./u-parse.a3771a31.js";import{u as be,_ as ye}from"./top-tabbar.bd8adece.js";import{_ as we}from"./tabbar.b1f7f4a7.js";var _e="[object Symbol]";var ke=/\s/;var Ce=/^\s+/;function Se(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&ke.test(e.charAt(t)););return t}(e)+1).replace(Ce,""):e}var Re=NaN,Te=/^[-+]0x[0-9a-f]+$/i,Be=/^0b[01]+$/i,Ee=/^0o[0-7]+$/i,Fe=parseInt;function Ie(l){if("number"==typeof l)return l;if(function(o){return"symbol"==typeof o||e(o)&&t(o)==_e}(l))return Re;if(o(l)){var r="function"==typeof l.valueOf?l.valueOf():l;l=o(r)?r+"":r}if("string"!=typeof l)return 0===l?l:+l;l=Se(l);var a=Be.test(l);return a||Ee.test(l)?Fe(l.slice(2),a?2:8):Te.test(l)?Re:+l}var De=1/0,We=17976931348623157e292;function Ae(e){return e?(e=Ie(e))===De||e===-De?(e<0?-1:1)*We:e==e?e:0:0===e?e:0}var $e=Math.ceil,ze=Math.max;var Oe,Ne=function(e,t,n){return n&&"number"!=typeof n&&function(e,t,n){if(!o(n))return!1;var i=typeof t;return!!("number"==i?l(n)&&r(t,n.length):"string"==i&&t in n)&&a(n[t],e)}(e,t,n)&&(t=n=void 0),e=Ae(e),void 0===t?(t=e,e=0):t=Ae(t),function(e,t,o,l){for(var r=-1,a=ze($e((t-e)/(o||1)),0),n=Array(a);a--;)n[l?a:++r]=e,e+=o;return n}(e,t,n=void 0===n?e"decorate"==o.mode?o:w)),k=n(!1);return{getLoading:()=>t.value,data:_.value,isShowTopTabbar:k,pageStyle:()=>{var e="";return _.value.global.pageStartBgColor&&(_.value.global.pageStartBgColor&&_.value.global.pageEndBgColor?e+=`background:linear-gradient(${_.value.global.pageGradientAngle},${_.value.global.pageStartBgColor},${_.value.global.pageEndBgColor});`:e+="background-color:"+_.value.global.pageStartBgColor+";"),_.value.global.bottomTabBarSwitch?e+="min-height:calc(100vh - 50px);":e+="min-height:calc(100vh);",_.value.global.bgUrl&&(e+=`background-image:url('${d(_.value.global.bgUrl)}');`),_.value.global.bgHeightScale&&(e+=`background-size: 100% ${_.value.global.bgHeightScale}%;`),e},onLoad:()=>{c((e=>{o.mode=e.mode||"","decorate"==o.mode&&(t.value=!1),l.value=e.id||"",""==r.value&&(r.value=e.name||""),a.value=e.template||"",o.siteId=e.site_id||""}))},onShow:(e=null)=>{p((()=>{let n=m();b.value=n[n.length-1]?n[n.length-1].route:"";let i=[];uni.getStorageSync("diyPageBlank")&&(i=uni.getStorageSync("diyPageBlank")),!i.length||i.length&&-1==i.indexOf(b.value)?o.topFixedStatus="home":i.length&&-1!=i.indexOf(b.value)&&(o.topFixedStatus="diy"),"decorate"==o.mode?o.init():g({id:l.value,name:r.value,template:a.value,site_id:o.siteId}).then((o=>{if(Object.assign(y,o.data),y.value){w.pageMode=y.mode,w.title=y.title;let e=JSON.parse(y.value);w.global=e.global,w.value=e.value,w.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=w.value.some((e=>e&&e.position&&"top_fixed"==e.position)),f({title:w.title})}t.value=!1,e&&e(y)}))}))},onHide:(e=null)=>{v((()=>{let t=[];uni.getStorageSync("diyPageBlank")&&(t=uni.getStorageSync("diyPageBlank")),t.length&&(t=Array.from(new Set(t)),t.forEach(((e,t,o)=>{e==b.value&&o.splice(t,1)}))),"diy"==o.topFixedStatus&&t.push(b.value),uni.setStorageSync("diyPageBlank",t),e&&e()}))},onUnload:()=>{h((()=>{}))},onPageScroll:()=>{x((e=>{e.scrollTop>0&&(o.scrollTop=e.scrollTop)}))}}}const He=me(b({__name:"index",props:["component","index"],setup(e){const t=e,o=i(),l=u((()=>"decorate"==o.mode?o.value[t.index]:t.component)),r=u((()=>l.value.list.length>l.value.pageCount*l.value.rowCount)),a=u((()=>{var e="";return e+="position:relative;",l.value.componentStartBgColor&&(l.value.componentStartBgColor&&l.value.componentEndBgColor?e+=`background:linear-gradient(${l.value.componentGradientAngle},${l.value.componentStartBgColor},${l.value.componentEndBgColor});`:e+="background-color:"+l.value.componentStartBgColor+";"),l.value.componentBgUrl&&(e+=`background-image:url('${d(l.value.componentBgUrl)}');`,e+="background-size: cover;background-repeat: no-repeat;"),l.value.topRounded&&(e+="border-top-left-radius:"+2*l.value.topRounded+"rpx;"),l.value.topRounded&&(e+="border-top-right-radius:"+2*l.value.topRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*l.value.bottomRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*l.value.bottomRounded+"rpx;"),e})),s=u((()=>{var e="";return l.value.componentBgUrl&&(e+="position:absolute;top:0;width:100%;",e+=`background: rgba(0,0,0,${l.value.componentBgAlpha/10});`,e+=`height:${x.value}px;`,l.value.topRounded&&(e+="border-top-left-radius:"+2*l.value.topRounded+"rpx;"),l.value.topRounded&&(e+="border-top-right-radius:"+2*l.value.topRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*l.value.bottomRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*l.value.bottomRounded+"rpx;")),e})),c=e=>{let t={width:""};return t.width=100/l.value.rowCount+"%",t},p=n(0),m=e=>{p.value=e.detail.current},g=(e,t)=>{let o=l.value.pageCount*l.value.rowCount,r=!0;return r=e>=[(t-1)*o]&&e<[t*o],r},f="graphic_nav_horizontal_page_slide_swiperheight_"+t.index+"_"+l.value.list.length,v=n(uni.getStorageSync(f)||"");y((()=>{b(),"decorate"==o.mode&&w((()=>l.value),((e,t)=>{e&&"GraphicNav"==e.componentName&&b()}))}));const h=P(),x=n(0),b=()=>{_((()=>{(()=>{if("horizontal"==l.value.layout&&"pageSlide"==l.value.showStyle){var e=0;k().in(h).select(".graphic-nav-item").boundingClientRect((t=>{let o=1;2==l.value.pageCount&&(o=l.value.list.length/l.value.rowCount>1?2:1),e=t.height*o,v.value=e+"px",uni.setStorageSync(f,v.value)})).exec()}})();k().in(h).select(".diy-graphic-nav").boundingClientRect((e=>{x.value=e.height})).exec()}))},Y=()=>{let e=1;return 2==l.value.pageCount&&(e=l.value.list.length>l.value.rowCount?2:1),e},V=(e,t)=>{let o=e+1;if(2==l.value.pageCount){let e=Math.ceil(l.value.list.length/l.value.rowCount);for(let r=1;r<=e;r++){if(1==t&&r%2!=0&&o>(r-1)*l.value.rowCount&&o<=r*l.value.rowCount)return!0;if(2==t&&r%2==0&&o>(r-1)*l.value.rowCount&&o<=r*l.value.rowCount)return!0}}return!1};return(e,t)=>{const n=H,i=M,u=j,f=C(S("u-icon"),pe),h=G,x=X,b=L;return R(),T(n,{style:F(I(a))},{default:B((()=>[E(n,{style:F(I(s))},null,8,["style"]),E(n,{class:"diy-graphic-nav relative"},{default:B((()=>["vertical"==I(l).layout?(R(),T(n,{key:0,class:"graphic-nav"},{default:B((()=>[(R(!0),D(W,null,A(I(l).list,((e,t)=>(R(),T(n,{class:"graphic-nav-item",key:e.id},{default:B((()=>[E(n,{onClick:t=>I(o).toRedirect(e.link),class:$(["flex items-center justify-between py-3 px-4",0==t?"border-t-0":"border-t"])},{default:B((()=>["text"!=I(l).mode?(R(),T(n,{key:0,class:"graphic-img relative flex items-center w-10 h-10 mr-[20rpx]",style:F({width:2*I(l).imageSize+"rpx",height:2*I(l).imageSize+"rpx"})},{default:B((()=>[e.imageUrl?(R(),T(i,{key:0,src:I(d)(e.imageUrl),mode:"aspectFill",style:F({maxWidth:2*I(l).imageSize+"rpx",maxHeight:2*I(l).imageSize+"rpx",borderRadius:2*I(l).aroundRadius+"rpx"})},null,8,["src","style"])):(R(),T(i,{key:1,src:I(d)("static/resource/images/diy/figure.png"),mode:"aspectFill",style:F({maxWidth:2*I(l).imageSize+"rpx",maxHeight:2*I(l).imageSize+"rpx",borderRadius:2*I(l).aroundRadius+"rpx"})},null,8,["src","style"])),e.label.control?(R(),T(u,{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:F({color:e.label.textColor,backgroundImage:"linear-gradient("+e.label.bgColorStart+","+e.label.bgColorEnd+")"})},{default:B((()=>[z(O(e.label.text),1)])),_:2},1032,["style"])):N("v-if",!0)])),_:2},1032,["style"])):N("v-if",!0),"img"!=I(l).mode?(R(),T(u,{key:1,class:"graphic-text w-full truncate leading-normal",style:F({fontSize:2*I(l).font.size+"rpx",fontWeight:I(l).font.weight,color:I(l).font.color})},{default:B((()=>[z(O(e.title),1)])),_:2},1032,["style"])):N("v-if",!0),E(f,{name:"arrow-right",color:"#999999",size:"12"})])),_:2},1032,["onClick","class"])])),_:2},1024)))),128))])),_:1})):"horizontal"==I(l).layout&&"pageSlide"==I(l).showStyle?(R(),T(n,{key:1,class:"pt-[10rpx]"},{default:B((()=>[E(x,{class:"graphic-nav swiper relative",style:F({height:v.value,width:"95%",margin:"0 auto",opacity:v.value?1:0}),circular:"",onChange:m},{default:B((()=>[(R(!0),D(W,null,A(Math.ceil(I(l).list.length/(I(l).pageCount*I(l).rowCount)),((e,t)=>(R(),T(h,{class:"graphic-nav-wrap flex flex-wrap"},{default:B((()=>[(R(!0),D(W,null,A(I(l).list,((t,r)=>(R(),D(W,null,[g(r,e)?(R(),T(n,{class:$([I(l).mode]),key:t.id,style:F({width:100/I(l).rowCount+"%"})},{default:B((()=>[E(n,{onClick:e=>I(o).toRedirect(t.link),class:"graphic-nav-item flex flex-col items-center py-2"},{default:B((()=>["text"!=I(l).mode?(R(),T(n,{key:0,class:"graphic-img relative flex items-center justify-center w-10 h-10",style:F({width:2*I(l).imageSize+"rpx",height:2*I(l).imageSize+"rpx"})},{default:B((()=>[t.imageUrl?(R(),T(i,{key:0,src:I(d)(t.imageUrl),mode:"aspectFill",style:F({maxWidth:2*I(l).imageSize+"rpx",maxHeight:2*I(l).imageSize+"rpx",borderRadius:2*I(l).aroundRadius+"rpx"})},null,8,["src","style"])):(R(),T(i,{key:1,src:I(d)("static/resource/images/diy/figure.png"),mode:"aspectFill",style:F({maxWidth:2*I(l).imageSize+"rpx",maxHeight:2*I(l).imageSize+"rpx",borderRadius:2*I(l).aroundRadius+"rpx"})},null,8,["src","style"])),t.label.control?(R(),T(u,{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:F({color:t.label.textColor,backgroundImage:"linear-gradient("+t.label.bgColorStart+","+t.label.bgColorEnd+")"})},{default:B((()=>[z(O(t.label.text),1)])),_:2},1032,["style"])):N("v-if",!0)])),_:2},1032,["style"])):N("v-if",!0),"img"!=I(l).mode?(R(),T(u,{key:1,class:$(["graphic-text w-full text-center truncate leading-normal",{"pt-[16rpx]":"text"!=I(l).mode}]),style:F({fontSize:2*I(l).font.size+"rpx",fontWeight:I(l).font.weight,color:I(l).font.color})},{default:B((()=>[z(O(t.title),1)])),_:2},1032,["class","style"])):N("v-if",!0)])),_:2},1032,["onClick"])])),_:2},1032,["class","style"])):N("v-if",!0)],64)))),256))])),_:2},1024)))),256))])),_:1},8,["style"]),I(r)&&v.value?(R(),T(n,{key:0,class:"graphic-nav-indicator-dot"},{default:B((()=>[U("div",{class:$(["dots-wrap",[I(l).swiper.indicatorAlign]])},[(R(!0),D(W,null,A(Math.ceil(I(l).list.length/(I(l).pageCount*I(l).rowCount)),((e,t)=>(R(),D("div",{class:$(["dot",t==p.value?"dot-active":"",I(l).swiper.indicatorStyle]),style:F({background:t==p.value?I(l).swiper.indicatorActiveColor:I(l).swiper.indicatorColor})},null,6)))),256))],2)])),_:1})):N("v-if",!0)])),_:1})):"horizontal"==I(l).layout&&2==I(l).pageCount&&"singleSlide"==I(l).showStyle?(R(),T(n,{key:2,style:{width:"98%",margin:"0 auto"},class:$([["graphic-nav multiple-lines","graphic-nav-"+I(l).showStyle],"py-[10rpx]"])},{default:B((()=>[(R(!0),D(W,null,A(Y(),((e,t)=>(R(),T(b,{class:"graphic-nav-wrap whitespace-nowrap","scroll-x":"singleSlide"==I(l).showStyle},{default:B((()=>[(R(!0),D(W,null,A(I(l).list,((t,r)=>(R(),D(W,null,[V(r,e)?(R(),T(n,{key:0,onClick:e=>I(o).toRedirect(t.link),style:F(c()),class:"graphic-nav-item inline-flex flex-col items-center box-border py-2"},{default:B((()=>["text"!=I(l).mode?(R(),T(n,{key:0,class:"graphic-img relative flex items-center justify-center w-10 h-10",style:F({width:2*I(l).imageSize+"rpx",height:2*I(l).imageSize+"rpx"})},{default:B((()=>[t.imageUrl?(R(),T(i,{key:0,src:I(d)(t.imageUrl),mode:"aspectFill",style:F({maxWidth:2*I(l).imageSize+"rpx",maxHeight:2*I(l).imageSize+"rpx",borderRadius:2*I(l).aroundRadius+"rpx"})},null,8,["src","style"])):(R(),T(i,{key:1,src:I(d)("static/resource/images/diy/figure.png"),mode:"aspectFill",style:F({maxWidth:2*I(l).imageSize+"rpx",maxHeight:2*I(l).imageSize+"rpx",borderRadius:2*I(l).aroundRadius+"rpx"})},null,8,["src","style"])),t.label.control?(R(),T(u,{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:F({color:t.label.textColor,backgroundImage:"linear-gradient("+t.label.bgColorStart+","+t.label.bgColorEnd+")"})},{default:B((()=>[z(O(t.label.text),1)])),_:2},1032,["style"])):N("v-if",!0)])),_:2},1032,["style"])):N("v-if",!0),"img"!=I(l).mode?(R(),T(u,{key:1,class:$(["graphic-text w-full text-center truncate leading-normal",{"pt-[16rpx]":"text"!=I(l).mode}]),style:F({fontSize:2*I(l).font.size+"rpx",fontWeight:I(l).font.weight,color:I(l).font.color})},{default:B((()=>[z(O(t.title),1)])),_:2},1032,["class","style"])):N("v-if",!0)])),_:2},1032,["onClick","style"])):N("v-if",!0)],64)))),256))])),_:2},1032,["scroll-x"])))),256))])),_:1},8,["class"])):(R(),T(b,{key:3,"scroll-x":"singleSlide"==I(l).showStyle,class:$([["graphic-nav","graphic-nav-"+I(l).showStyle],"py-[10rpx]"])},{default:B((()=>[(R(!0),D(W,null,A(I(l).list,((e,t)=>(R(),T(n,{class:$(["graphic-nav-item",{"flex-shrink-0":"singleSlide"==I(l).showStyle}]),key:e.id,style:F({width:100/I(l).rowCount+"%"})},{default:B((()=>[E(n,{onClick:t=>I(o).toRedirect(e.link),class:"flex flex-col items-center box-border py-2"},{default:B((()=>["text"!=I(l).mode?(R(),T(n,{key:0,class:"graphic-img relative flex items-center justify-center w-10 h-10",style:F({width:2*I(l).imageSize+"rpx",height:2*I(l).imageSize+"rpx"})},{default:B((()=>[e.imageUrl?(R(),T(i,{key:0,src:I(d)(e.imageUrl),mode:"aspectFill",style:F({maxWidth:2*I(l).imageSize+"rpx",maxHeight:2*I(l).imageSize+"rpx",borderRadius:2*I(l).aroundRadius+"rpx"})},null,8,["src","style"])):(R(),T(i,{key:1,src:I(d)("static/resource/images/diy/figure.png"),mode:"aspectFill",style:F({maxWidth:2*I(l).imageSize+"rpx",maxHeight:2*I(l).imageSize+"rpx",borderRadius:2*I(l).aroundRadius+"rpx"})},null,8,["src","style"])),e.label.control?(R(),T(u,{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:F({color:e.label.textColor,backgroundImage:"linear-gradient("+e.label.bgColorStart+","+e.label.bgColorEnd+")"})},{default:B((()=>[z(O(e.label.text),1)])),_:2},1032,["style"])):N("v-if",!0)])),_:2},1032,["style"])):N("v-if",!0),"img"!=I(l).mode?(R(),T(u,{key:1,class:$(["graphic-text w-full text-center truncate leading-normal",{"pt-[16rpx]":"text"!=I(l).mode}]),style:F({fontSize:2*I(l).font.size+"rpx",fontWeight:I(l).font.weight,color:I(l).font.color})},{default:B((()=>[z(O(e.title),1)])),_:2},1032,["class","style"])):N("v-if",!0)])),_:2},1032,["onClick"])])),_:2},1032,["class","style"])))),128))])),_:1},8,["scroll-x","class"]))])),_:1})])),_:1},8,["style"])}}}),[["__scopeId","data-v-c4be3615"]]),Me=b({__name:"index",props:["component","index"],setup(e){const t=e,o=i(),l=u((()=>"decorate"==o.mode?o.value[t.index]:t.component)),r=u((()=>{var e="";return e+="height:"+2*l.value.height+"rpx;",l.value.componentStartBgColor&&(l.value.componentStartBgColor&&l.value.componentEndBgColor?e+=`background:linear-gradient(${l.value.componentGradientAngle},${l.value.componentStartBgColor},${l.value.componentEndBgColor});`:e+="background-color:"+l.value.componentStartBgColor+";"),l.value.topRounded&&(e+="border-top-left-radius:"+2*l.value.topRounded+"rpx;"),l.value.topRounded&&(e+="border-top-right-radius:"+2*l.value.topRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*l.value.bottomRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*l.value.bottomRounded+"rpx;"),e}));return(e,t)=>{const o=H;return R(),T(o,{style:F(I(r))},null,8,["style"])}}}),je=b({__name:"index",props:["component","index"],setup(e){const t=e,o=i(),l=n([]),r=u((()=>"decorate"==o.mode?o.value[t.index]:t.component)),a=u((()=>{var e="";return e+="position:relative;",r.value.componentStartBgColor&&(r.value.componentStartBgColor&&r.value.componentEndBgColor?e+=`background:linear-gradient(${r.value.componentGradientAngle},${r.value.componentStartBgColor},${r.value.componentEndBgColor});`:e+="background-color:"+r.value.componentStartBgColor+";"),r.value.componentBgUrl&&(e+=`background-image:url('${d(r.value.componentBgUrl)}');`,e+="background-size: cover;background-repeat: no-repeat;"),r.value.topRounded&&(e+="border-top-left-radius:"+2*r.value.topRounded+"rpx;"),r.value.topRounded&&(e+="border-top-right-radius:"+2*r.value.topRounded+"rpx;"),r.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*r.value.bottomRounded+"rpx;"),r.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*r.value.bottomRounded+"rpx;"),e})),s=u((()=>{var e="";return r.value.componentBgUrl&&(e+="position:absolute;top:0;width:100%;",e+=`background: rgba(0,0,0,${r.value.componentBgAlpha/10});`,e+=`height:${m.value}px;`,r.value.topRounded&&(e+="border-top-left-radius:"+2*r.value.topRounded+"rpx;"),r.value.topRounded&&(e+="border-top-right-radius:"+2*r.value.topRounded+"rpx;"),r.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*r.value.bottomRounded+"rpx;"),r.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*r.value.bottomRounded+"rpx;")),e})),c=u((()=>{var e="";return r.value.elementBgColor&&(e+="background-color:"+r.value.elementBgColor+";"),r.value.topElementRounded&&(e+="border-top-left-radius:"+2*r.value.topElementRounded+"rpx;"),r.value.topElementRounded&&(e+="border-top-right-radius:"+2*r.value.topElementRounded+"rpx;"),r.value.bottomElementRounded&&(e+="border-bottom-left-radius:"+2*r.value.bottomElementRounded+"rpx;"),r.value.bottomElementRounded&&(e+="border-bottom-right-radius:"+2*r.value.bottomElementRounded+"rpx;"),e}));y((()=>{if(g(),"decorate"==o.mode){let e={image:"",summary:"文章摘要",title:"文章标题",create_time:"2023-03-28 09:00:00"};l.value.push(e),l.value.push(e),w((()=>r.value),((e,t)=>{e&&"Active"==e.componentName&&g()}))}else(()=>{let e={};"diy"==r.value.sources?e.ids=r.value.articleIds:e.limit=r.value.count,fe(e).then((e=>{l.value=e.data}))})()}));const p=P(),m=n(0),g=()=>{_((()=>{k().in(p).select(".diy-active").boundingClientRect((e=>{m.value=e.height})).exec()}))};return(e,t)=>{const o=H,n=C(S("u-icon"),pe),i=C(S("u--image"),ge),u=j;return R(),T(o,{style:F(I(a))},{default:B((()=>[E(o,{style:F(I(s))},null,8,["style"]),E(o,{class:"diy-active relative"},{default:B((()=>[(R(!0),D(W,null,A(l.value,((e,t)=>(R(),T(o,{key:e.id,class:"item flex align-center px-[var(--pad-sidebar-m)] py-[var(--pad-top-m)]",onClick:t=>{return o=e.id,void Y({url:"/addon/cms/pages/detail",param:{id:o}});var o},style:F(I(c))},{default:B((()=>[E(o,{class:"w-[260rpx] h-[210rpx] rounded-[var(--goods-rounded-big)] overflow-hidden"},{default:B((()=>[e.image?(R(),T(i,{key:0,width:"260rpx",height:"210rpx",radius:"var(--goods-rounded-big)",src:I(d)(e.image),model:"aspectFill"},{error:B((()=>[E(n,{name:"photo",color:"var(--text-color-light9)",size:"50"})])),_:2},1032,["radius","src"])):N("v-if",!0)])),_:2},1024),E(o,{class:"flex-1 flex flex-col justify-between ml-[20rpx] py-[4rpx]"},{default:B((()=>[E(o,{class:"text-[28rpx] leading-[36rpx] text-[#333] multi-hidden",style:F({color:I(r).textColor})},{default:B((()=>[z(O(e.title),1)])),_:2},1032,["style"]),E(o,{class:"text-[24rpx] truncate mb-[auto] mt-[14rpx] text-[#999]"},{default:B((()=>[z(O(e.summary),1)])),_:2},1024),E(o,{class:"text-[22rpx] text-[#999] flex items-center mt-[10rpx]"},{default:B((()=>[E(u,{class:"nc-iconfont nc-icon-a-shijianV6xx-36 mr-[6rpx] font-500 -mb-[4rpx] !text-[20rpx]"}),E(u,null,{default:B((()=>[z(O(e.create_time),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1032,["onClick","style"])))),128))])),_:1})])),_:1},8,["style"])}}}),Ge=b({__name:"index",props:["component","index"],setup(e){const t=e,o=i(),l=u((()=>"decorate"==o.mode?o.value[t.index]:t.component)),r=u((()=>{var e="";return e+="border-top:"+2*l.value.borderWidth+"rpx "+l.value.borderStyle+" "+l.value.borderColor+";"}));return(e,t)=>{const l=H;return R(),T(l,{class:"horz-line-wrap"},{default:B((()=>["decorate"==I(o).mode?(R(),T(l,{key:0,class:"h-[30rpx]"})):N("v-if",!0),E(l,{style:F(I(r))},null,8,["style"]),"decorate"==I(o).mode?(R(),T(l,{key:1,class:"h-[30rpx]"})):N("v-if",!0)])),_:1})}}}),Xe=b({__name:"index",props:["component","index"],setup(e){const t=e,o=i(),l=u((()=>"decorate"==o.mode?o.value[t.index]:t.component)),r=u((()=>{var e="";return l.value.componentStartBgColor&&(l.value.componentStartBgColor&&l.value.componentEndBgColor?e+=`background:linear-gradient(${l.value.componentGradientAngle},${l.value.componentStartBgColor},${l.value.componentEndBgColor});`:e+="background-color:"+l.value.componentStartBgColor+";"),e})),a=u((()=>{var e="";return e+="height:"+l.value.imgHeight+";",l.value.topRounded&&(e+="border-top-left-radius:"+2*l.value.topRounded+"rpx;"),l.value.topRounded&&(e+="border-top-right-radius:"+2*l.value.topRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*l.value.bottomRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*l.value.bottomRounded+"rpx;"),e}));y((()=>{n(),w((()=>l.value),((e,t)=>{e&&"HotArea"==e.componentName&&n()}))}));const n=()=>{"decorate"==o.mode&&""==l.value.imageUrl&&(l.value.imgWidth=690,l.value.imgHeight=330)};return(e,t)=>{const n=M,i=H;return R(),T(i,{style:F(I(r))},{default:B((()=>[E(i,{class:"simple-graph-wrap overflow-hidden relative leading-0"},{default:B((()=>[I(l).imageUrl?(R(),T(n,{key:0,style:F(I(a)),src:I(d)(I(l).imageUrl),mode:"widthFix","show-menu-by-longpress":!0,class:"w-full"},null,8,["style","src"])):(R(),T(n,{key:1,style:F(I(a)),src:I(d)("static/resource/images/diy/figure.png"),mode:"widthFix","show-menu-by-longpress":!0,class:"w-full"},null,8,["style","src"])),"decorate"!=I(o).mode?(R(),D(W,{key:2},[N(" 热区功能 "),(R(!0),D(W,null,A(I(l).heatMapData,((e,t)=>(R(),T(i,{onClick:t=>I(o).toRedirect(e.link),class:"absolute",key:t,style:F({width:e.width+"%",height:e.height+"%",left:e.left+"%",top:e.top+"%"})},null,8,["onClick","style"])))),128))],64)):N("v-if",!0)])),_:1})])),_:1},8,["style"])}}}),Le=b({__name:"index",props:["component","index"],setup(e){const t=e,o=V(),l=i(),r=u((()=>"decorate"==l.mode?l.value[t.index]:t.component)),a=()=>{let e="";return r.value.isSameScreen&&0==t.index&&(e="ios"===o.platform?"margin-top: -55px;":"margin-top: -44.5px;"),e},s=u((()=>{var e="";return e+="position:relative;",r.value.componentStartBgColor&&(r.value.componentStartBgColor&&r.value.componentEndBgColor?e+=`background:linear-gradient(${r.value.componentGradientAngle},${r.value.componentStartBgColor},${r.value.componentEndBgColor});`:e+="background-color:"+r.value.componentStartBgColor+";"),r.value.componentBgUrl&&(e+=`background-image:url('${d(r.value.componentBgUrl)}');`,e+="background-size: cover;background-repeat: no-repeat;"),e})),c=u((()=>{var e="";return r.value.topRounded&&(e+="border-top-left-radius:"+2*r.value.topRounded+"rpx;"),r.value.topRounded&&(e+="border-top-right-radius:"+2*r.value.topRounded+"rpx;"),r.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*r.value.bottomRounded+"rpx;"),r.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*r.value.bottomRounded+"rpx;"),e})),p=u((()=>2*r.value.imageHeight+"rpx")),m=n(0),g=e=>{m.value=e.detail.current};y((()=>{f(),"decorate"==l.mode&&w((()=>r.value),((e,t)=>{e&&"ImageAds"==e.componentName&&f()}))})),q((()=>{uni.removeStorageSync("imageAdsSameScreen")}));const f=()=>{"decorate"==l.mode?r.value.list.forEach((e=>{""==e.imageUrl&&(e.imgWidth=690,e.imgHeight=330)})):uni.removeStorageSync("imageAdsSameScreen")};return(e,t)=>{const o=M,n=H,i=G,u=X;return R(),T(n,{style:F(I(s))},{default:B((()=>[E(n,{class:"diy-image-ads",style:F(a())},{default:B((()=>[1==I(r).list.length?(R(),T(n,{key:0,class:"leading-0 overflow-hidden",style:F(I(c))},{default:B((()=>[E(n,{onClick:t[0]||(t[0]=e=>I(l).toRedirect(I(r).list[0].link))},{default:B((()=>[I(r).list[0].imageUrl?(R(),T(o,{key:0,src:I(d)(I(r).list[0].imageUrl),style:F({height:I(p)}),mode:"heightFix",class:"!w-full","show-menu-by-longpress":!0},null,8,["src","style"])):(R(),T(o,{key:1,src:I(d)("static/resource/images/diy/figure.png"),style:F({height:I(p)}),mode:"heightFix",class:"!w-full","show-menu-by-longpress":!0},null,8,["src","style"]))])),_:1})])),_:1},8,["style"])):(R(),T(u,{key:1,class:"swiper",style:F({height:I(p)}),autoplay:"true",circular:"true",onChange:g},{default:B((()=>[(R(!0),D(W,null,A(I(r).list,(e=>(R(),T(i,{class:"swiper-item",key:e.id,style:F(I(c))},{default:B((()=>[E(n,{onClick:t=>I(l).toRedirect(e.link)},{default:B((()=>[E(n,{class:"item",style:F({height:I(p)})},{default:B((()=>[e.imageUrl?(R(),T(o,{key:0,src:I(d)(e.imageUrl),mode:"scaleToFill",class:"w-full h-full","show-menu-by-longpress":!0},null,8,["src"])):(R(),T(o,{key:1,src:I(d)("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"]))])),_:1},8,["style"])])),_:1},8,["style"])}}}),Ye=b({__name:"index",props:["component","index","global"],setup(e){const t=e,o=J(),l=i(),r=u((()=>"decorate"==l.mode?l.value[t.index]:t.component)),a=u((()=>{var e="";return r.value.componentStartBgColor&&(r.value.componentStartBgColor&&r.value.componentEndBgColor?e+=`background:linear-gradient(${r.value.componentGradientAngle},${r.value.componentStartBgColor},${r.value.componentEndBgColor});`:e+="background-color:"+r.value.componentStartBgColor+";"),r.value.bgUrl&&(e+="background-image:url("+d(r.value.bgUrl)+");",e+="background-size: 100%;",e+="background-repeat: no-repeat;"),r.value.topRounded&&(e+="border-top-left-radius:"+2*r.value.topRounded+"rpx;"),r.value.topRounded&&(e+="border-top-right-radius:"+2*r.value.topRounded+"rpx;"),r.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*r.value.bottomRounded+"rpx;"),r.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*r.value.bottomRounded+"rpx;"),e})),s=K(),{query:c}=Q(location.href);c.code&&Z()&&ee()&&te({code:c.code}).then((e=>{s.getMemberInfo()}));const p=u((()=>"decorate"==l.mode?{headimg:"",nickname:"昵称",balance:0,point:0,money:0,member_no:"NIU0000021"}:s.info)),m=u((()=>{if(p.value){let e=parseFloat(p.value.balance)+parseFloat(p.value.money);return oe(e.toString())}return 0})),g=()=>{let e=!o.login.is_username&&!o.login.is_mobile&&!o.login.is_bind_mobile,t=!o.login.is_auth_register;Z()?e&&t?re({title:"商家未开启登录注册",icon:"none"}):o.login.is_username||o.login.is_mobile||o.login.is_bind_mobile?ae().setLoginBack({url:"/app/pages/member/index"}):e&&o.login.is_auth_register&&o.login.is_force_access_user_info?ae().getAuthCode({scopes:"snsapi_userinfo"}):e&&o.login.is_auth_register&&!o.login.is_force_access_user_info&&ae().getAuthCode({scopes:"snsapi_base"}):e?re({title:"商家未开启登录注册",icon:"none"}):(o.login.is_username||o.login.is_mobile||o.login.is_bind_mobile)&&ae().setLoginBack({url:"/app/pages/member/index"})};n(!1);const f=()=>{Z()?ae().getAuthCode({scopes:"snsapi_userinfo"}):Y({url:"/app/pages/member/personal"})};return u((()=>"")),(e,t)=>{const o=C(S("u-avatar"),ve),l=H,n=j;return R(),T(l,{style:F(I(a))},{default:B((()=>[E(l,{class:"pt-[34rpx] member-info"},{default:B((()=>[I(p)?(R(),T(l,{key:0,class:"flex ml-[32rpx] mr-[52rpx] items-center relative"},{default:B((()=>[N(" 唤起获取微信 "),E(o,{src:I(d)(I(p).headimg),size:"55",leftIcon:"none","default-url":I(d)("static/resource/images/default_headimg.png"),onClick:f},null,8,["src","default-url"]),E(l,{class:"ml-[22rpx]"},{default:B((()=>[E(l,{class:"text-[#222222] flex pr-[50rpx] flex-wrap items-center"},{default:B((()=>[E(l,{class:"text-[#222222] truncate max-w-[320rpx] font-bold text-lg mr-[16rpx]",style:F({color:I(r).textColor})},{default:B((()=>[z(O(I(p).nickname),1)])),_:1},8,["style"])])),_:1}),E(l,{class:"text-[#696B70] text-[24rpx] mt-[10rpx]",style:F({color:I(r).textColor})},{default:B((()=>[z("UID:"+O(I(p).member_no),1)])),_:1},8,["style"])])),_:1}),E(l,{class:"set-icon flex items-center absolute right-0 top-2"},{default:B((()=>[E(l,{onClick:t[0]||(t[0]=e=>I(Y)({url:"/app/pages/setting/index"}))},{default:B((()=>[E(n,{class:"nc-iconfont nc-icon-shezhiV6xx-1 text-[40rpx] ml-[10rpx]",style:F({color:I(r).textColor})},null,8,["style"])])),_:1})])),_:1})])),_:1})):(R(),T(l,{key:1,class:"flex ml-[32rpx] mr-[52rpx] items-center relative"},{default:B((()=>[E(o,{src:I(d)("static/resource/images/default_headimg.png"),size:"55",onClick:g},null,8,["src"]),E(l,{class:"ml-[22rpx]",onClick:g},{default:B((()=>[E(l,{class:"text-[#222222] font-bold text-lg",style:F({color:I(r).textColor})},{default:B((()=>[z(O(I(le)("login"))+"/"+O(I(le)("register")),1)])),_:1},8,["style"])])),_:1}),E(l,{class:"set-icon flex items-center absolute right-0 top-2",onClick:t[1]||(t[1]=e=>I(Y)({url:"/app/pages/setting/index"}))},{default:B((()=>[E(l,null,{default:B((()=>[E(n,{class:"nc-iconfont nc-icon-shezhiV6xx-1 text-[40rpx] ml-[10rpx]",style:F({color:I(r).textColor})},null,8,["style"])])),_:1})])),_:1})])),_:1})),E(l,{class:"flex m-[30rpx] mb-0 py-[30rpx] items-center"},{default:B((()=>[E(l,{class:"flex-1 text-center"},{default:B((()=>[E(l,{class:"font-bold"},{default:B((()=>[E(l,{onClick:t[2]||(t[2]=e=>I(Y)({url:I(p)?"/app/pages/member/balance":""})),style:F({color:I(r).textColor})},{default:B((()=>[z(O(I(m)),1)])),_:1},8,["style"])])),_:1}),E(l,{class:"text-sm mt-[10rpx]"},{default:B((()=>[E(l,{onClick:t[3]||(t[3]=e=>I(Y)({url:I(p)?"/app/pages/member/balance":""})),style:F({color:I(r).textColor})},{default:B((()=>[z(O(I(le)("balance")),1)])),_:1},8,["style"])])),_:1})])),_:1}),E(l,{class:"border-solid border-white border-l border-b-0 border-t-0 border-r-0 h-[60rpx]"}),E(l,{class:"flex-1 text-center"},{default:B((()=>[E(l,{class:"font-bold"},{default:B((()=>[E(l,{onClick:t[4]||(t[4]=e=>I(Y)({url:I(p)?"/app/pages/member/point":""})),style:F({color:I(r).textColor})},{default:B((()=>{var e;return[z(O(parseInt(null==(e=I(p))?void 0:e.point)||0),1)]})),_:1},8,["style"])])),_:1}),E(l,{class:"text-sm mt-[10rpx]"},{default:B((()=>[E(l,{onClick:t[5]||(t[5]=e=>I(Y)({url:I(p)?"/app/pages/member/point":""})),style:F({color:I(r).textColor})},{default:B((()=>[z(O(I(le)("point")),1)])),_:1},8,["style"])])),_:1})])),_:1})])),_:1})])),_:1})])),_:1},8,["style"])}}}),Ve=me(b({__name:"index",props:["component","index"],setup(e){const t=e,o=i(),l=K(),r=u((()=>"decorate"==o.mode?o.value[t.index]:t.component)),a=u((()=>{var e="";return r.value.topRounded&&(e+="border-top-left-radius:"+2*r.value.topRounded+"rpx;"),r.value.topRounded&&(e+="border-top-right-radius:"+2*r.value.topRounded+"rpx;"),r.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*r.value.bottomRounded+"rpx;"),r.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*r.value.bottomRounded+"rpx;"),e})),s=n(0),c=n(0),p=n(-1),m=n([]);n(uni.getStorageSync("wap_member_info"));const g=u((()=>"decorate"==o.mode?(s.value=0,m.value=[{title:"商品包邮"}],c.value=1,{member_level_name:"会员等级",growth:5}):l.info||{})),f=u((()=>"decorate"==o.mode?[{}]:(v(l.levelList),l.levelList))),v=e=>{if(!e||!e.length)return!1;let t=!1;g.value&&g.value.member_level&&e&&e.length&&e.forEach(((e,o)=>{e.level_id==g.value.member_level&&(c.value=o+1,e.level_benefits&&Object.values(e.level_benefits).forEach((e=>{e.content&&m.value.push(e.content)}))),e.growth>g.value.growth&&e.level_id!=g.value.member_level&&!t&&(p.value=o,t=!0)})),g.value.member_level?(-1==p.value&&(p.value=e.length-1),e[p.value]&&e[p.value].growth&&(s.value=e[p.value].growth-g.value.growth)):(g.value.member_level_name=e[0].level_name,s.value=e[0].growth-(g.value.growth||0),p.value=0,c.value=1)};let h=()=>{let e=100;return f.value[p.value]&&f.value[p.value].growth&&(e=g.value.growth?g.value.growth/f.value[p.value].growth*100:0),e};const x=e=>{if("decorate"==o.mode)return!1;Y({url:e})};return(e,t)=>{const o=M,l=j,n=H,i=ne;return I(g)&&I(f)&&I(f).length?(R(),T(n,{key:0,style:F(I(a)),class:"overflow-hidden"},{default:B((()=>["style-1"==I(r).style?(R(),T(n,{key:0,class:"flex items-center justify-between style-bg-1 py-[22rpx] px-[30rpx]"},{default:B((()=>[E(n,{class:"flex items-center"},{default:B((()=>[E(o,{src:I(d)("static/resource/images/diy/member/VIP_02.png"),mode:"aspectFit",class:"w-[50rpx] h-[36rpx]"},null,8,["src"]),E(l,{class:"text-[30rpx] text-[#FFDAA8] ml-[10rpx] font-500 max-w-[440rpx] truncate"},{default:B((()=>[z(O(I(g).member_level_name),1)])),_:1})])),_:1}),E(n,{class:"flex items-center justify-center rounded-[30rpx] box-border style-btn w-[140rpx] h-[56rpx]",onClick:t[0]||(t[0]=e=>x("/app/pages/member/level"))},{default:B((()=>[E(l,{class:"text-[24rpx] text-[#333]"},{default:B((()=>[z(O(I(g).member_level?s.value>0?"做任务":"点击查看":"去解锁"),1)])),_:1}),E(l,{class:"iconfont iconxiayibu1 ml-[4rpx] -mb-[2rpx] !text-[14rpx] text-[#333]"})])),_:1})])),_:1})):N("v-if",!0),"style-2"==I(r).style?(R(),T(n,{key:1,class:"flex items-center justify-between style-bg-2 p-[30rpx]"},{default:B((()=>[E(n,{class:"flex flex-col"},{default:B((()=>[E(n,{class:"flex items-center"},{default:B((()=>[E(o,{src:I(d)("static/resource/images/diy/member/VIP_01.png"),mode:"aspectFit",class:"w-[74rpx] h-[30rpx]"},null,8,["src"]),E(l,{class:"text-[32rpx] text-[#FFE3B1] leading-[normal] ml-[14rpx] font-500 max-w-[420rpx] truncate"},{default:B((()=>[z(O(I(g).member_level_name),1)])),_:1})])),_:1}),m.value&&m.value.length?(R(),T(l,{key:0,class:"text-[#FFE3B1] opacity-80 text-[24rpx] mt-[10rpx] leading-[32rpx]"},{default:B((()=>[z(O(I(g).member_level_name)+"购物享"+O(m.value[0].title),1)])),_:1})):N("v-if",!0)])),_:1}),E(n,{class:"flex items-center justify-center rounded-[30rpx] box-border style-btn w-[140rpx] h-[56rpx]",onClick:t[1]||(t[1]=e=>x("/app/pages/member/level"))},{default:B((()=>[E(l,{class:"text-[24rpx] text-[#333]"},{default:B((()=>[z(O(I(g).member_level?s.value>0?"做任务":"点击查看":"去解锁"),1)])),_:1}),E(l,{class:"iconfont iconxiayibu1 ml-[4rpx] -mb-[2rpx] !text-[14rpx] text-[#333]"})])),_:1})])),_:1})):N("v-if",!0),"style-3"==I(r).style?(R(),T(n,{key:2,class:"style-bg-3 py-[var(--pad-top-m)] px-[var(--pad-sidebar-m)]"},{default:B((()=>[E(n,{class:"flex items-center justify-between style-border-3 mb-[30rpx] pb-[40rpx]"},{default:B((()=>[E(n,{class:"flex flex-col flex-1"},{default:B((()=>[E(n,{class:"flex items-center justify-between"},{default:B((()=>[E(n,{class:"flex items-center"},{default:B((()=>[E(n,{class:"flex font-500 leading-[30rpx] box-border text-[#fff] pl-[50rpx] text-[24rpx] w-[120rpx] h-[30rpx] bg-contain bg-no-repeat",style:F({backgroundImage:"url("+I(d)("static/resource/images/diy/member/VIP.png")+")"})},{default:B((()=>[z(" VIP."+O(c.value),1)])),_:1},8,["style"]),E(l,{class:"text-[#733F02] ml-[8rpx] text-[30rpx] font-500 max-w-[380rpx] truncate"},{default:B((()=>[z(O(I(g).member_level_name),1)])),_:1})])),_:1}),E(n,{class:"flex items-center",onClick:t[2]||(t[2]=e=>x("/app/pages/member/level"))},{default:B((()=>[E(n,{class:"inline-block"},{default:B((()=>[E(l,{class:"nc-iconfont nc-icon-a-bangzhuV6xx-36 !text-[22rpx] text-[#733F02]"}),E(l,{class:"text-[22rpx] text-[#733F02] ml-[6rpx] leading-[24rpx]"},{default:B((()=>[z("规则")])),_:1})])),_:1}),E(n,{class:"ml-[2rpx] -mb-[4rpx] text-[#733F02] !text-[24rpx] nc-iconfont nc-icon-youV6xx"})])),_:1})])),_:1}),E(l,{class:"text-[24rpx] text-[#794200] mt-[10rpx]"},{default:B((()=>[z("购物或邀请好友可以提升等级")])),_:1})])),_:1})])),_:1}),E(n,{class:"flex items-center justify-between"},{default:B((()=>[E(n,{class:"flex flex-col flex-1 mt-[2rpx]"},{default:B((()=>[E(n,{class:"overflow-hidden rounded-[20rpx]"},{default:B((()=>[E(i,{percent:I(h)(),activeColor:"#fff",backgroundColor:"rgba(255,5,5,0.1)","stroke-width":"4"},null,8,["percent"])])),_:1}),s.value>0?(R(),T(l,{key:0,class:"text-[22rpx] ml-[2rpx] leading-[1.4] text-[#794200] mt-[16rpx]"},{default:B((()=>[z("还差"+O(s.value)+"成长值即可升级为"+O(I(f)[p.value].level_name),1)])),_:1})):(R(),T(l,{key:1,class:"text-[22rpx] ml-[2rpx] text-[#794200] mt-[16rpx]"},{default:B((()=>[z("恭喜您升级为最高等级")])),_:1}))])),_:1}),E(n,{class:"flex items-center rounded-[30rpx] bg-[rgb(245,230,185)] px-[24rpx] text-[22rpx] text-[#733F02] h-[56rpx] ml-[40rpx] leading-normal",onClick:t[3]||(t[3]=e=>x("/app/pages/member/level"))},{default:B((()=>[z(O(I(g).member_level?s.value>0?"做任务":"点击查看":"去解锁"),1)])),_:1})])),_:1})])),_:1})):N("v-if",!0),"style-4"==I(r).style?(R(),T(n,{key:3,class:"flex items-center justify-between style-4 px-[24rpx] py-[20rpx]",style:F({backgroundImage:"url("+I(d)("static/resource/images/diy/member/style4_bg.jpg")+")"})},{default:B((()=>[E(n,{class:"flex flex-col"},{default:B((()=>[E(n,{class:"flex items-center"},{default:B((()=>[E(o,{src:I(d)("static/resource/images/diy/member/style4_vip.png"),mode:"aspectFit",class:"w-[70rpx] h-[32rpx] pt-[1rpx]"},null,8,["src"]),E(l,{class:"text-[30rpx] text-[#FFEFB0] leading-[normal] ml-[8rpx] font-500 max-w-[420rpx] truncate"},{default:B((()=>[z(O(I(g).member_level_name),1)])),_:1})])),_:1}),m.value&&m.value.length?(R(),T(n,{key:0,class:"text-[#B0B0B0] text-[24rpx] mt-[10rpx] leading-[32rpx]"},{default:B((()=>[E(l,null,{default:B((()=>[z(O(I(g).member_level_name)+"购物享",1)])),_:1}),E(l,{class:"text-[#FFEFB0]"},{default:B((()=>[z(O(m.value[0].title),1)])),_:1})])),_:1})):N("v-if",!0)])),_:1}),E(n,{class:"flex items-center justify-center rounded-[30rpx] box-border style-btn w-[150rpx] h-[50rpx]",onClick:t[4]||(t[4]=e=>x("/app/pages/member/level"))},{default:B((()=>[E(l,{class:"text-[22rpx] text-[#333] mr-[8rpx]"},{default:B((()=>[z(O(I(g).member_level?s.value>0?"做任务":"点击查看":"去解锁"),1)])),_:1}),E(o,{src:I(d)("static/resource/images/diy/member/style4_arrow.png"),mode:"aspectFit",class:"w-[26rpx] h-[26rpx] pt-[2rpx]"},null,8,["src"])])),_:1})])),_:1},8,["style"])):N("v-if",!0),"style-5"==I(r).style?(R(),T(n,{key:4,class:"style-5",style:F({backgroundImage:"url("+I(d)("static/resource/images/diy/member/style5_bg.jpg")+")"})},{default:B((()=>[E(n,{class:"content-head pt-[16rpx] pb-[10rpx] px-[24rpx] flex items-center justify-between"},{default:B((()=>[E(n,{class:"flex items-center"},{default:B((()=>[E(o,{src:I(d)("static/resource/images/diy/member/style5_vip.png"),mode:"aspectFit",class:"w-[40rpx] h-[40rpx]"},null,8,["src"]),E(l,{class:"text-[#FFFBE2] ml-[10rpx] text-[30rpx] font-500 max-w-[470rpx] truncate"},{default:B((()=>[z(O(I(g).member_level_name),1)])),_:1})])),_:1}),E(n,{class:"flex items-center rounded-[30rpx] pl-[16rpx] pr-[12rpx] h-[44rpx] leading-normal style-btn",onClick:t[5]||(t[5]=e=>x("/app/pages/member/level"))},{default:B((()=>[E(l,{class:"text-[22rpx] text-[#333] font-500 pb-[2rpx]"},{default:B((()=>[z(O(I(g).member_level?s.value>0?"做任务":"点击查看":"去解锁"),1)])),_:1}),E(o,{src:I(d)("static/resource/images/diy/member/style5_arrow_01.png"),mode:"aspectFit",class:"w-[22rpx] h-[22rpx] pb-[1rpx]"},null,8,["src"])])),_:1})])),_:1}),E(n,{class:"flex flex-col pt-[28rpx] pb-[30rpx] px-[24rpx]"},{default:B((()=>[E(n,{class:"flex items-center justify-between pb-[16rpx]"},{default:B((()=>[s.value>0?(R(),T(l,{key:0,class:"text-[22rpx] ml-[2rpx] leading-[1.4] text-[#FFFBE2]"},{default:B((()=>[z("还差"+O(s.value)+"成长值即可升级为"+O(I(f)[p.value].level_name),1)])),_:1})):(R(),T(l,{key:1,class:"text-[22rpx] ml-[2rpx] text-[#FFFBE2]"},{default:B((()=>[z("恭喜您升级为最高等级")])),_:1})),E(n,{class:"flex items-center",onClick:t[6]||(t[6]=e=>x("/app/pages/member/level"))},{default:B((()=>[E(l,{class:"nc-iconfont nc-icon-a-bangzhuV6xx-36 !text-[22rpx] text-[#FFFBE2]"}),E(l,{class:"text-[22rpx] text-[#FFFBE2] ml-[6rpx] leading-[24rpx]"},{default:B((()=>[z("规则")])),_:1}),E(n,{class:"ml-[2rpx] -mb-[4rpx] text-[#FFFBE2] !text-[24rpx] nc-iconfont nc-icon-youV6xx"})])),_:1})])),_:1}),E(n,{class:"overflow-hidden rounded-[20rpx]"},{default:B((()=>[E(i,{percent:I(h)(),activeColor:"#fff",backgroundColor:"rgba(255,255,255,0.4)","stroke-width":"4"},null,8,["percent"])])),_:1})])),_:1})])),_:1},8,["style"])):N("v-if",!0)])),_:1},8,["style"])):N("v-if",!0)}}}),[["__scopeId","data-v-3fe3bd12"]]),qe=me(b({__name:"index",props:["component","index"],setup(e){const t=e,o=i(),l=n(!1),r=n(""),a=u((()=>"decorate"==o.mode?o.value[t.index]:t.component)),s=u((()=>{var e="";return e+="position:relative;",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.componentBgUrl&&(e+=`background-image:url('${d(a.value.componentBgUrl)}');`,e+="background-size: cover;background-repeat: no-repeat;"),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})),c=u((()=>{var e="";return a.value.componentBgUrl&&(e+="position:absolute;top:0;width:100%;",e+=`background: rgba(0,0,0,${a.value.componentBgAlpha/10});`,e+=`height:${b.value}px;`,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})),p=n(0),m=n(0),g=n(""),f=n(0),v=n(800),h=()=>{"horizontal"==a.value.scrollWay&&setTimeout((()=>{_((()=>{let e=window.document.getElementById("horizontal-body-"+a.value.id),t=window.document.getElementById("marquee-one");e&&t&&(p.value=e.offsetWidth,m.value=t.offsetWidth,f.value=Math.ceil(14*m.value),p.value>m.value-30?g.value="animation: none;":g.value=`\n animation-duration: ${f.value}ms;\n animation-delay: ${v.value}ms;`)}))}))};y((()=>{h(),U(),"decorate"==o.mode&&w((()=>a.value),((e,t)=>{e&&"Notice"==e.componentName&&(h(),U())}))}));const x=P(),b=n(0),U=()=>{_((()=>{k().in(x).select(".diy-notice").boundingClientRect((e=>{b.value=e.height})).exec()}))},Y=e=>{if("decorate"==o.mode)return!1;"popup"==a.value.showType?(l.value=!0,r.value=e.text):o.toRedirect(e.link)};return(e,t)=>{const o=H,n=M,i=j,u=G,f=X,v=L,h=se,x=C(S("u-popup"),he);return R(),T(o,{style:F(I(s))},{default:B((()=>[E(o,{style:F(I(c))},null,8,["style"]),E(o,{class:"diy-notice relative overflow-hidden"},{default:B((()=>[E(o,{class:"flex items-center pl-[28rpx] p-[22rpx]"},{default:B((()=>["img"==I(a).noticeType?(R(),T(o,{key:0,class:"min-w-[60rpx] flex items-center"},{default:B((()=>["system"==I(a).imgType?(R(),D(W,{key:0},["style_1"==I(a).systemUrl?(R(),T(n,{key:0,src:I(d)(`static/resource/images/diy/notice/${I(a).systemUrl}.png`),class:"h-[40rpx] w-[auto] mr-[20rpx] flex-shrink-0",mode:"heightFix"},null,8,["src"])):"style_2"==I(a).systemUrl?(R(),T(n,{key:1,src:I(d)(`static/resource/images/diy/notice/${I(a).systemUrl}.png`),class:"w-[200rpx] mr-[20rpx] h-[30rpx] flex-shrink-0",mode:"heightFix"},null,8,["src"])):N("v-if",!0)],64)):"diy"==I(a).imgType?(R(),T(n,{key:1,src:I(d)(I(a).imageUrl||""),class:"w-[200rpx] h-[30rpx] mr-[20rpx] flex-shrink-0",mode:"heightFix"},null,8,["src"])):N("v-if",!0)])),_:1})):N("v-if",!0),"text"==I(a).noticeType&&I(a).noticeTitle?(R(),T(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:B((()=>[z(O(I(a).noticeTitle),1)])),_:1})):N("v-if",!0),E(o,{class:$(["flex-1 flex overflow-hidden horizontal-body",{"items-center":"upDown"==I(a).scrollWay}]),id:"horizontal-body-"+I(a).id},{default:B((()=>[N(" 横向滚动 "),"horizontal"==I(a).scrollWay?(R(),T(o,{key:0,class:"horizontal-wrap",style:F(g.value)},{default:B((()=>[E(o,{class:"marquee marquee-one",id:"marquee-one"},{default:B((()=>[(R(!0),D(W,null,A(I(a).list,((e,t)=>(R(),T(o,{class:$(["item flex-shrink-0 !leading-[40rpx] h-[40rpx]",{"ml-[80rpx]":t}]),key:t,onClick:t=>Y(e),style:F({color:I(a).textColor,fontSize:2*I(a).fontSize+"rpx",fontWeight:I(a).fontWeight})},{default:B((()=>[z(O(e.text),1)])),_:2},1032,["class","onClick","style"])))),128))])),_:1}),p.value[(R(!0),D(W,null,A(I(a).list,((e,t)=>(R(),T(o,{class:$(["item flex-shrink-0 !leading-[40rpx] h-[40rpx]",{"ml-[80rpx]":t}]),key:t,onClick:t=>Y(e),style:F({color:I(a).textColor,fontSize:2*I(a).fontSize+"rpx",fontWeight:I(a).fontWeight})},{default:B((()=>[z(O(e.text),1)])),_:2},1032,["class","onClick","style"])))),128))])),_:1})):N("v-if",!0)])),_:1},8,["style"])):N("v-if",!0),N(" 上下滚动 "),"upDown"==I(a).scrollWay?(R(),D(W,{key:1},[E(f,{vertical:!0,duration:500,autoplay:"true",circular:"true",class:"flex-1"},{default:B((()=>[(R(!0),D(W,null,A(I(a).list,((e,o)=>(R(),T(u,{key:o,onTouchmove:t[0]||(t[0]=ie((()=>{}),["prevent","stop"]))},{default:B((()=>[E(i,{onClick:t=>Y(e),class:"beyond-hiding truncate",style:F({color:I(a).textColor,fontSize:2*I(a).fontSize+"rpx",fontWeight:I(a).fontWeight})},{default:B((()=>[z(O(e.text),1)])),_:2},1032,["onClick","style"])])),_:2},1024)))),128))])),_:1}),E(i,{class:"nc-iconfont nc-icon-youV6xx text-[26rpx] -ml-[8rpx] pl-[30rpx]",style:F({color:"#999",fontWeight:I(a).fontWeight})},null,8,["style"])],64)):N("v-if",!0)])),_:1},8,["id","class"])])),_:1}),E(o,{onTouchmove:t[3]||(t[3]=ie((()=>{}),["prevent","stop"]))},{default:B((()=>[E(x,{show:l.value,onClose:t[2]||(t[2]=e=>l.value=!1),mode:"center",round:"var(--rounded-big)",safeAreaInsetBottom:!1},{default:B((()=>[E(o,{class:"w-[570rpx] px-[32rpx] popup-common center"},{default:B((()=>[E(o,{class:"title"},{default:B((()=>[z("公告")])),_:1}),E(v,{"scroll-y":!0,class:"px-[30rpx] box-border h-[260rpx]"},{default:B((()=>[(R(!0),D(W,null,A(r.value.split("\n"),(e=>(R(),T(o,{class:"text-[28rpx] leading-[40rpx] mb-[20rpx]"},{default:B((()=>[z(O(e),1)])),_:2},1024)))),256))])),_:1}),E(o,{class:"btn-wrap !pt-[40rpx]"},{default:B((()=>[E(h,{class:"primary-btn-bg w-[480rpx] h-[70rpx] text-[26rpx] leading-[70rpx] rounded-[35rpx] !text-[#fff] font-500",onClick:t[1]||(t[1]=e=>l.value=!1)},{default:B((()=>[z("我知道了")])),_:1})])),_:1})])),_:1})])),_:1},8,["show"])])),_:1})])),_:1})])),_:1},8,["style"])}}}),[["__scopeId","data-v-4775dc8d"]]),Je=me(b({__name:"index",props:["component","index"],setup(e){const t=e,o=i(),l=u((()=>"decorate"==o.mode?o.value[t.index]:t.component)),r=e=>de(e)+1,a=u((()=>{var e="";return e+="position:relative;",l.value.componentStartBgColor&&(l.value.componentStartBgColor&&l.value.componentEndBgColor?e+=`background:linear-gradient(${l.value.componentGradientAngle},${l.value.componentStartBgColor},${l.value.componentEndBgColor});`:e+="background-color:"+l.value.componentStartBgColor+";"),l.value.componentBgUrl&&(e+=`background-image:url('${d(l.value.componentBgUrl)}');`,e+="background-size: cover;background-repeat: no-repeat;"),l.value.topRounded&&(e+="border-top-left-radius:"+2*l.value.topRounded+"rpx;"),l.value.topRounded&&(e+="border-top-right-radius:"+2*l.value.topRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*l.value.bottomRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*l.value.bottomRounded+"rpx;"),e})),s=u((()=>{var e="";return l.value.componentBgUrl&&(e+="position:absolute;top:0;width:100%;",e+=`background: rgba(0,0,0,${l.value.componentBgAlpha/10});`,e+=`height:${p.value}px;`,l.value.topRounded&&(e+="border-top-left-radius:"+2*l.value.topRounded+"rpx;"),l.value.topRounded&&(e+="border-top-right-radius:"+2*l.value.topRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*l.value.bottomRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*l.value.bottomRounded+"rpx;")),e}));y((()=>{m(),"decorate"==o.mode?w((()=>l.value),((e,t)=>{e&&"RubikCube"==e.componentName&&m()})):w((()=>l.value),((e,t)=>{m()}))}));const c=P(),p=n(0),m=()=>{"decorate"==o.mode&&l.value.list.forEach((e=>{""==e.imageUrl&&(e.imgWidth=690,e.imgHeight=330)})),g(),_((()=>{k().in(c).select(".rubik-cube").boundingClientRect((e=>{p.value=e.height})).exec()}))},g=()=>{var e={"row1-of2":{ratio:2,width:"calc((100% - "+r(2*l.value.imageGap)+"px) / 2)"},"row1-of3":{ratio:3,width:"calc((100% - "+r(4*l.value.imageGap)+"px) / 3)"},"row1-of4":{ratio:4,width:"calc((100% - "+r(6*l.value.imageGap)+"px) / 4)"}};l.value.list.forEach(((e,t)=>{e.pageItemStyle=((e,t)=>{var o="";return"right"==l.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*l.value.topElementRounded+"rpx;",o+="border-top-right-radius:"+2*l.value.topElementRounded+"rpx;",o+="border-bottom-left-radius:"+2*l.value.bottomElementRounded+"rpx;",o+="border-bottom-right-radius:"+2*l.value.bottomElementRounded+"rpx;"})),o})(l.value.mode,t)})),e[l.value.mode]?f(e[l.value.mode]):"row2-lt-of2-rt"==l.value.mode?v():"row1-lt-of2-rt"==l.value.mode?h():"row1-tp-of2-bm"==l.value.mode?x():"row1-lt-of1-tp-of2-bm"==l.value.mode&&b()},f=e=>{ue({success:t=>{let o=0;l.value.list.forEach(((a,n)=>{var i=a.imgHeight/a.imgWidth;let s=t.windowWidth-r(2*l.value.margin.both);l.value.imageGap>0&&(s-=r(e.ratio*l.value.imageGap*2)),a.imgWidth=s/e.ratio,a.imgHeight=a.imgWidth*i,(0==o||o{t.widthStyle=e.width,t.imgHeight=o}))}})},v=()=>{ue({success:e=>{let t=0,o=0;l.value.list.forEach(((a,n)=>{var i=a.imgHeight/a.imgWidth;a.imgWidth=e.windowWidth,a.imgWidth-=r(4*l.value.margin.both),l.value.imageGap>0&&(a.imgWidth-=r(2*l.value.imageGap)),a.imgWidth=a.imgWidth/2,a.imgHeight=a.imgWidth*i,n<=1?(0==t||t1&&(0==o||o{e.imgWidth="calc((100% - "+r(2*l.value.imageGap)+"px) / 2)",e.widthStyle=e.imgWidth,a<=1?e.imgHeight=t:a>1&&(e.imgHeight=o)}))}})},h=()=>{let e=0;l.value.list[1].imgWidth,l.value.list[2].imgWidth,ue({success:t=>{l.value.list.forEach(((o,a)=>{if(0==a){var n=o.imgHeight/o.imgWidth;o.imgWidth=t.windowWidth-r(4*l.value.margin.both)-r(2*l.value.imageGap),o.imgWidth=o.imgWidth/2,o.imgHeight=o.imgWidth*n,e=(o.imgHeight-r(2*l.value.imageGap))/2,o.imgWidth+="px"}else o.imgWidth=l.value.list[0].imgWidth,o.imgHeight=e}))}})},x=()=>{var e=0;ue({success:t=>{l.value.list.forEach(((o,a)=>{var n=o.imgHeight/o.imgWidth;0==a?o.imgWidth=t.windowWidth-r(4*l.value.margin.both):a>0&&(o.imgWidth=t.windowWidth-r(4*l.value.margin.both)-r(2*l.value.imageGap),o.imgWidth=o.imgWidth/2),o.imgHeight=o.imgWidth*n,a>0&&(0==e||e{t.imgWidth+="px",t.widthStyle=t.imgWidth,o>0&&(t.imgHeight=e)}))}})},b=()=>{ue({success:e=>{l.value.list.forEach(((t,o)=>{if(0==o){var a=t.imgHeight/t.imgWidth;t.imgWidth=e.windowWidth-r(4*l.value.margin.both)-r(2*l.value.imageGap),t.imgWidth=t.imgWidth/2,t.imgHeight=t.imgWidth*a}else 1==o?(t.imgWidth=l.value.list[0].imgWidth,t.imgHeight=(l.value.list[0].imgHeight-r(2*l.value.imageGap))/2):o>1&&(t.imgWidth=(l.value.list[0].imgWidth-r(2*l.value.imageGap))/2,t.imgHeight=l.value.list[1].imgHeight)})),l.value.list.forEach(((e,t)=>{e.imgWidth+="px"}))}})};return(e,t)=>{const r=H,n=M;return R(),T(r,{style:F(I(a))},{default:B((()=>[E(r,{style:F(I(s))},null,8,["style"]),E(r,{class:$(["rubik-cube relative",I(o).mode])},{default:B((()=>[N(" 1左2右 "),"row1-lt-of2-rt"==I(l).mode?(R(),D(W,{key:0},[E(r,{class:"template-left"},{default:B((()=>[E(r,{onClick:t[0]||(t[0]=e=>I(o).toRedirect(I(l).list[0].link)),class:$(["item",I(l).mode]),style:F({marginRight:2*I(l).imageGap+"rpx",width:I(l).list[0].imgWidth,height:I(l).list[0].imgHeight+"px"})},{default:B((()=>[I(l).list[0].imageUrl?(R(),T(n,{key:0,src:I(d)(I(l).list[0].imageUrl),mode:"scaleToFill",style:F(I(l).list[0].pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])):(R(),T(n,{key:1,src:I(d)("static/resource/images/diy/figure.png"),mode:"scaleToFill",style:F(I(l).list[0].pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"]))])),_:1},8,["class","style"])])),_:1}),E(r,{class:"template-right"},{default:B((()=>[(R(!0),D(W,null,A(I(l).list,((e,t)=>(R(),D(W,{key:t},[t>0?(R(),T(r,{key:0,onClick:t=>I(o).toRedirect(e.link),class:$(["item",I(l).mode]),style:F({marginBottom:2*I(l).imageGap+"rpx",width:e.imgWidth,height:e.imgHeight+"px"})},{default:B((()=>[e.imageUrl?(R(),T(n,{key:0,src:I(d)(e.imageUrl),mode:"scaleToFill",style:F(e.pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])):(R(),T(n,{key:1,src:I(d)("static/resource/images/diy/figure.png"),mode:"scaleToFill",style:F(e.pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"]))])),_:2},1032,["onClick","class","style"])):N("v-if",!0)],64)))),128))])),_:1})],64)):"row1-lt-of1-tp-of2-bm"==I(l).mode?(R(),D(W,{key:1},[N(" 1左3右 "),E(r,{class:"template-left"},{default:B((()=>[E(r,{onClick:t[1]||(t[1]=e=>I(o).toRedirect(I(l).list[0].link)),class:$(["item",I(l).mode]),style:F({marginRight:2*I(l).imageGap+"rpx",width:I(l).list[0].imgWidth,height:I(l).list[0].imgHeight+"px"})},{default:B((()=>[I(l).list[0].imageUrl?(R(),T(n,{key:0,src:I(d)(I(l).list[0].imageUrl),mode:"scaleToFill",style:F(I(l).list[0].pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])):(R(),T(n,{key:1,src:I(d)("static/resource/images/diy/figure.png"),mode:"scaleToFill",style:F(I(l).list[0].pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"]))])),_:1},8,["class","style"])])),_:1}),E(r,{class:"template-right"},{default:B((()=>[E(r,{onClick:t[2]||(t[2]=e=>I(o).toRedirect(I(l).list[1].link)),class:$(["item",I(l).mode]),style:F({marginBottom:2*I(l).imageGap+"rpx",width:I(l).list[1].imgWidth,height:I(l).list[1].imgHeight+"px"})},{default:B((()=>[I(l).list[1].imageUrl?(R(),T(n,{key:0,src:I(d)(I(l).list[1].imageUrl),mode:"scaleToFill",style:F(I(l).list[1].pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])):(R(),T(n,{key:1,src:I(d)("static/resource/images/diy/figure.png"),mode:"scaleToFill",style:F(I(l).list[1].pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"]))])),_:1},8,["class","style"]),E(r,{class:"template-bottom"},{default:B((()=>[(R(!0),D(W,null,A(I(l).list,((e,t)=>(R(),D(W,{key:t},[t>1?(R(),T(r,{key:0,onClick:t=>I(o).toRedirect(e.link),class:$(["item",I(l).mode]),style:F({marginRight:2*I(l).imageGap+"rpx",width:e.imgWidth,height:e.imgHeight+"px"})},{default:B((()=>[e.imageUrl?(R(),T(n,{key:0,src:I(d)(e.imageUrl),mode:"scaleToFill",style:F(e.pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])):(R(),T(n,{key:1,src:I(d)("static/resource/images/diy/figure.png"),mode:"scaleToFill",style:F(e.pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"]))])),_:2},1032,["onClick","class","style"])):N("v-if",!0)],64)))),128))])),_:1})])),_:1})],64)):(R(!0),D(W,{key:2},A(I(l).list,((e,t)=>(R(),T(r,{class:$(["item",I(l).mode]),key:t,onClick:t=>I(o).toRedirect(e.link),style:F({marginRight:2*I(l).imageGap+"rpx",marginBottom:2*I(l).imageGap+"rpx",width:e.widthStyle,height:e.imgHeight+"px"})},{default:B((()=>[e.imageUrl?(R(),T(n,{key:0,src:I(d)(e.imageUrl),mode:"scaleToFill",style:F(e.pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])):(R(),T(n,{key:1,src:I(d)("static/resource/images/diy/figure.png"),mode:"scaleToFill",style:F(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-f98e07ac"]]),Ke=b({__name:"index",props:["component","index"],setup(e){const t=e,o=i(),l=u((()=>"decorate"==o.mode?o.value[t.index]:t.component)),r=u((()=>{var e="";return e+="position:relative;",l.value.componentStartBgColor&&(l.value.componentStartBgColor&&l.value.componentEndBgColor?e+=`background:linear-gradient(${l.value.componentGradientAngle},${l.value.componentStartBgColor},${l.value.componentEndBgColor});`:e+="background-color:"+l.value.componentStartBgColor+";"),l.value.componentBgUrl&&(e+=`background-image:url('${d(l.value.componentBgUrl)}');`,e+="background-size: cover;background-repeat: no-repeat;"),l.value.topRounded&&(e+="border-top-left-radius:"+2*l.value.topRounded+"rpx;"),l.value.topRounded&&(e+="border-top-right-radius:"+2*l.value.topRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*l.value.bottomRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*l.value.bottomRounded+"rpx;"),e})),a=u((()=>{var e="";return l.value.componentBgUrl&&(e+="position:absolute;top:0;width:100%;",e+=`background: rgba(0,0,0,${l.value.componentBgAlpha/10});`,e+=`height:${c.value}px;`,l.value.topRounded&&(e+="border-top-left-radius:"+2*l.value.topRounded+"rpx;"),l.value.topRounded&&(e+="border-top-right-radius:"+2*l.value.topRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*l.value.bottomRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*l.value.bottomRounded+"rpx;")),e}));y((()=>{p(),"decorate"==o.mode&&w((()=>l.value),((e,t)=>{e&&"Text"==e.componentName&&p()}))}));const s=P(),c=n(0),p=()=>{_((()=>{k().in(s).select(".diy-text").boundingClientRect((e=>{c.value=e.height})).exec()}))};return(e,t)=>{const n=H,i=j;return R(),T(n,{style:F(I(r))},{default:B((()=>[E(n,{style:F(I(a))},null,8,["style"]),E(n,{class:"diy-text relative"},{default:B((()=>["style-1"==I(l).style?(R(),T(n,{key:0,class:"px-[var(--pad-sidebar-m)]"},{default:B((()=>[E(n,{onClick:t[0]||(t[0]=e=>I(o).toRedirect(I(l).link))},{default:B((()=>[E(n,{class:"leading-[1]",style:F({fontSize:2*I(l).fontSize+"rpx",color:I(l).textColor,fontWeight:"normal"==I(l).fontWeight?500:I(l).fontWeight,textAlign:I(l).textAlign})},{default:B((()=>[z(O(I(l).text),1)])),_:1},8,["style"])])),_:1})])),_:1})):N("v-if",!0),"style-2"==I(l).style?(R(),T(n,{key:1,class:"px-[20rpx] flex items-center"},{default:B((()=>[E(n,{onClick:t[1]||(t[1]=e=>I(o).toRedirect(I(l).link))},{default:B((()=>[E(n,{class:"max-w-[200rpx] truncate leading-[1]",style:F({fontSize:2*I(l).fontSize+"rpx",color:I(l).textColor,fontWeight:"normal"==I(l).fontWeight?500:I(l).fontWeight})},{default:B((()=>[z(O(I(l).text),1)])),_:1},8,["style"])])),_:1}),I(l).subTitle.text?(R(),T(i,{key:0,style:F({background:I(l).subTitle.color}),class:"mx-[10rpx] w-[2rpx] h-[24rpx] opacity-70"},null,8,["style"])):N("v-if",!0),E(i,{class:"max-w-[300rpx] truncate",style:F({color:I(l).subTitle.color,fontSize:2*I(l).subTitle.fontSize+"rpx"})},{default:B((()=>[z(O(I(l).subTitle.text),1)])),_:1},8,["style"]),I(l).more.isShow?(R(),T(n,{key:1,class:"ml-auto text-right",style:F({color:I(l).more.color})},{default:B((()=>[E(n,{onClick:t[2]||(t[2]=e=>I(o).toRedirect(I(l).more.link)),class:"flex items-center"},{default:B((()=>[E(i,{class:"max-w-[200rpx] truncate text-[26rpx]"},{default:B((()=>[z(O(I(l).more.text),1)])),_:1}),E(i,{class:"nc-iconfont nc-icon-youV6xx text-[24rpx]",style:F({color:I(l).more.color})},null,8,["style"])])),_:1})])),_:1},8,["style"])):N("v-if",!0)])),_:1})):N("v-if",!0)])),_:1})])),_:1},8,["style"])}}}),Qe=b({__name:"index",props:["component","index"],setup(e){const t=e,o=i(),l=u((()=>"decorate"==o.mode?o.value[t.index]:t.component)),r=u((()=>{var e="";return e+="position:relative;",l.value.componentStartBgColor&&(l.value.componentStartBgColor&&l.value.componentEndBgColor?e+=`background:linear-gradient(${l.value.componentGradientAngle},${l.value.componentStartBgColor},${l.value.componentEndBgColor});`:e+="background-color:"+l.value.componentStartBgColor+";"),l.value.componentBgUrl&&(e+=`background-image:url('${d(l.value.componentBgUrl)}');`,e+="background-size: cover;background-repeat: no-repeat;"),l.value.topRounded&&(e+="border-top-left-radius:"+2*l.value.topRounded+"rpx;"),l.value.topRounded&&(e+="border-top-right-radius:"+2*l.value.topRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*l.value.bottomRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*l.value.bottomRounded+"rpx;"),e})),a=u((()=>{var e="";return l.value.componentBgUrl&&(e+="position:absolute;top:0;width:100%;",e+=`background: rgba(0,0,0,${l.value.componentBgAlpha/10});`,e+=`height:${c.value}px;`,l.value.topRounded&&(e+="border-top-left-radius:"+2*l.value.topRounded+"rpx;"),l.value.topRounded&&(e+="border-top-right-radius:"+2*l.value.topRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*l.value.bottomRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*l.value.bottomRounded+"rpx;")),e}));y((()=>{p(),"decorate"==o.mode&&w((()=>l.value),((e,t)=>{e&&"RichText"==e.componentName&&p()}))}));const s=P(),c=n(0),p=()=>{_((()=>{k().in(s).select(".diy-rich-text").boundingClientRect((e=>{c.value=e.height})).exec()}))};return(e,t)=>{const o=H,n=C(S("u-parse"),xe),i=j;return R(),T(o,{style:F(I(r))},{default:B((()=>[E(o,{style:F(I(a))},null,8,["style"]),E(o,{class:"diy-rich-text relative"},{default:B((()=>[I(l).html&&"


"!=I(l).html?(R(),T(o,{key:0},{default:B((()=>[E(n,{content:I(l).html,tagStyle:{img:"vertical-align: top;"}},null,8,["content"])])),_:1})):(R(),D(W,{key:1},[E(o,null,{default:B((()=>[z("点此编辑『富文本』内容 ——>")])),_:1}),E(o,null,{default:B((()=>[E(i,null,{default:B((()=>[z("你可以对文字进行")])),_:1}),E(i,null,{default:B((()=>[z("、")])),_:1}),E(i,{class:"font-bold"},{default:B((()=>[z("加粗")])),_:1}),E(i,null,{default:B((()=>[z("、")])),_:1}),E(i,{class:"italic"},{default:B((()=>[z("斜体")])),_:1}),E(i,null,{default:B((()=>[z("、")])),_:1}),E(i,{class:"underline"},{default:B((()=>[z("下划线")])),_:1}),E(i,null,{default:B((()=>[z("、")])),_:1}),E(i,{class:"line-through"},{default:B((()=>[z("删除线")])),_:1}),E(i,null,{default:B((()=>[z("、文字")])),_:1}),E(i,{style:{color:"rgb(0, 176, 240)"}},{default:B((()=>[z("颜色")])),_:1}),E(i,null,{default:B((()=>[z("、")])),_:1}),E(i,{style:{"background-color":"rgb(255, 192, 0)",color:"rgb(255, 255, 255)"}},{default:B((()=>[z("背景色")])),_:1}),E(i,null,{default:B((()=>[z("、以及字号")])),_:1}),E(i,{class:"text-lg"},{default:B((()=>[z("大")])),_:1}),E(i,{class:"text-sm"},{default:B((()=>[z("小")])),_:1}),E(i,{class:"pl-[10rpx]"},{default:B((()=>[z("等简单排版操作。")])),_:1})])),_:1}),E(o,null,{default:B((()=>[z("也可在这里插入图片、并对图片加上超级链接,方便用户点击。")])),_:1})],64))])),_:1})])),_:1},8,["style"])}}}),Ze=me(b({__name:"index",props:["component","index"],setup(e){const t=e,o=i(),l=u((()=>"decorate"==o.mode?o.value[t.index]:t.component)),r=u((()=>{var e="";return e+="position:relative;",l.value.componentStartBgColor&&(l.value.componentStartBgColor&&l.value.componentEndBgColor?e+=`background:linear-gradient(${l.value.componentGradientAngle},${l.value.componentStartBgColor},${l.value.componentEndBgColor});`:e+="background-color:"+l.value.componentStartBgColor+";"),l.value.componentBgUrl&&(e+=`background-image:url('${d(l.value.componentBgUrl)}');`,e+="background-size: cover;background-repeat: no-repeat;"),l.value.topRounded&&(e+="border-top-left-radius:"+2*l.value.topRounded+"rpx;"),l.value.topRounded&&(e+="border-top-right-radius:"+2*l.value.topRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*l.value.bottomRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*l.value.bottomRounded+"rpx;"),e})),a=u((()=>{var e="";return l.value.componentBgUrl&&(e+="position:absolute;top:0;width:100%;",e+=`background: rgba(0,0,0,${l.value.componentBgAlpha/10});`,e+=`height:${f.value}px;`,l.value.topRounded&&(e+="border-top-left-radius:"+2*l.value.topRounded+"rpx;"),l.value.topRounded&&(e+="border-top-right-radius:"+2*l.value.topRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*l.value.bottomRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*l.value.bottomRounded+"rpx;")),e})),s=n(""),c=n(""),p=e=>{var t="";return e.listFrame.startColor&&e.listFrame.endColor?t+=`background:linear-gradient(${e.listFrame.startColor},${e.listFrame.endColor});`:t+=`background:${e.listFrame.startColor||e.listFrame.endColor};`,l.value.topElementRounded&&(t+="border-top-left-radius:"+2*l.value.topElementRounded+"rpx;"),l.value.topElementRounded&&(t+="border-top-right-radius:"+2*l.value.topElementRounded+"rpx;"),l.value.bottomElementRounded&&(t+="border-bottom-left-radius:"+2*l.value.bottomElementRounded+"rpx;"),l.value.bottomElementRounded&&(t+="border-bottom-right-radius:"+2*l.value.bottomElementRounded+"rpx;"),t+="overflow: hidden;"},m=e=>{var t="";return t+=`background:linear-gradient(90deg,${e.startColor},${e.endColor});`};y((()=>{v(),"decorate"==o.mode?w((()=>l.value),((e,t)=>{e&&"ActiveCube"==e.componentName&&v()})):w((()=>l.value),((e,t)=>{v()}))}));const g=P(),f=n(0),v=()=>{_((()=>{k().in(g).select(".diy-active-cube").boundingClientRect((e=>{f.value=e.height})).exec(),"style-3"==l.value.blockStyle.value&&(s.value="margin-right:14rpx;"),"style-4"==l.value.blockStyle.value&&(c.value="margin-right:14rpx;")}))};return(e,t)=>{const n=H,i=j,u=M,g=C(S("u-icon"),pe),f=L;return R(),T(n,{style:F(I(r))},{default:B((()=>[E(n,{style:F(I(a))},null,8,["style"]),E(n,{class:"diy-active-cube relative"},{default:B((()=>[E(n,{class:"active-cube-wrap pt-[28rpx] px-[20rpx] pb-[24rpx]"},{default:B((()=>["style-1"==I(l).titleStyle.value?(R(),T(n,{key:0,class:"flex items-center"},{default:B((()=>[E(n,{class:"mr-[10rpx] font-500 text-[30rpx]",style:F({color:I(l).titleColor}),onClick:t[0]||(t[0]=e=>I(o).toRedirect(I(l).textLink))},{default:B((()=>[z(O(I(l).text),1)])),_:1},8,["style"]),I(l).subTitle.text?(R(),T(n,{key:0,onClick:t[1]||(t[1]=e=>I(o).toRedirect(I(l).subTitle.link)),class:"text-center text-[22rpx] rounded-[40rpx] rounded-tl-[10rpx] py-[6rpx] px-[14rpx]",style:F({color:I(l).subTitle.textColor,background:"linear-gradient(90deg, "+I(l).subTitle.startColor+", "+I(l).subTitle.endColor+")"})},{default:B((()=>[z(O(I(l).subTitle.text),1)])),_:1},8,["style"])):N("v-if",!0)])),_:1})):N("v-if",!0),"style-2"==I(l).titleStyle.value?(R(),T(n,{key:1,class:"flex items-center"},{default:B((()=>[E(n,{class:"mr-[10rpx] font-500 text-[30rpx]",style:F({color:I(l).titleColor}),onClick:t[2]||(t[2]=e=>I(o).toRedirect(I(l).textLink))},{default:B((()=>[z(O(I(l).text),1)])),_:1},8,["style"]),I(l).subTitle.text?(R(),T(n,{key:0,onClick:t[3]||(t[3]=e=>I(o).toRedirect(I(l).subTitle.link)),class:"text-center text-[22rpx] rounded-[6rpx] py-[6rpx] px-[14rpx]",style:F({color:I(l).subTitle.textColor,background:"linear-gradient(90deg, "+I(l).subTitle.startColor+", "+I(l).subTitle.endColor+")"})},{default:B((()=>[z(O(I(l).subTitle.text),1)])),_:1},8,["style"])):N("v-if",!0)])),_:1})):N("v-if",!0),"style-3"==I(l).titleStyle.value?(R(),T(n,{key:2,class:"flex items-center"},{default:B((()=>[E(n,{class:"mr-[10rpx] font-500 text-[30rpx]",onClick:t[4]||(t[4]=e=>I(o).toRedirect(I(l).textLink)),style:F({color:I(l).titleColor})},{default:B((()=>[z(O(I(l).text),1)])),_:1},8,["style"]),E(n,{class:"relative h-[36rpx]",onClick:t[5]||(t[5]=e=>I(o).toRedirect(I(l).subTitle.link))},{default:B((()=>[I(l).subTitle.text?(R(),T(n,{key:0,class:"flex items-center text-[22rpx] leading-0 min-w-[60rpx] h-[34rpx] pl-[10rpx] pr-[34rpx]",style:F({color:I(l).subTitle.textColor,"background-image":"url("+I(d)("static/resource/images/diy/active_cube/bg_2.png")+")","background-size":"100% 100%","background-repeat":"no-repeat"})},{default:B((()=>[z(O(I(l).subTitle.text),1)])),_:1},8,["style"])):N("v-if",!0),N(' \t\r\n ')])),_:1})])),_:1})):N("v-if",!0),"style-4"==I(l).titleStyle.value?(R(),T(n,{key:3,class:"flex items-center justify-between"},{default:B((()=>[E(n,{class:"font-500 text-[30rpx]",onClick:t[6]||(t[6]=e=>I(o).toRedirect(I(l).textLink)),style:F({color:I(l).titleColor})},{default:B((()=>[z(O(I(l).text),1)])),_:1},8,["style"]),I(l).subTitle.text?(R(),T(n,{key:0,onClick:t[7]||(t[7]=e=>I(o).toRedirect(I(l).subTitle.link)),class:"text-[22rpx] rounded-[40rpx] pl-[16rpx] pr-[8rpx] h-[42rpx] flex-center",style:F({color:I(l).subTitle.textColor,background:"linear-gradient(90deg, "+I(l).subTitle.startColor+", "+I(l).subTitle.endColor+")"})},{default:B((()=>[E(i,null,{default:B((()=>[z(O(I(l).subTitle.text),1)])),_:1}),E(i,{class:"nc-iconfont nc-icon-youV6xx !text-[26rpx]"})])),_:1},8,["style"])):N("v-if",!0)])),_:1})):N("v-if",!0),"style-5"==I(l).titleStyle.value?(R(),T(n,{key:4,class:"flex items-center"},{default:B((()=>[I(l).textImg?(R(),T(n,{key:0,class:"h-[32rpx] flex items-center",onClick:t[8]||(t[8]=e=>I(o).toRedirect(I(l).textLink))},{default:B((()=>[E(u,{class:"h-[100%] w-[auto]",src:I(d)(I(l).textImg),mode:"heightFix"},null,8,["src"])])),_:1})):N("v-if",!0),I(l).subTitle.text&&I(l).textImg?(R(),T(n,{key:1,class:"mx-[16rpx] w-[2rpx] h-[24rpx]",style:F({background:I(l).subTitle.textColor})},null,8,["style"])):N("v-if",!0),I(l).subTitle.text?(R(),T(n,{key:2,onClick:t[9]||(t[9]=e=>I(o).toRedirect(I(l).subTitle.link)),class:"text-center text-[22rpx] py-[6rpx]",style:F({color:I(l).subTitle.textColor,background:"linear-gradient(90deg, "+I(l).subTitle.startColor+", "+I(l).subTitle.endColor+")"})},{default:B((()=>[z(O(I(l).subTitle.text),1)])),_:1},8,["style"])):N("v-if",!0)])),_:1})):N("v-if",!0),E(n,{class:"bd flex flex-wrap justify-between"},{default:B((()=>[(R(!0),D(W,null,A(I(l).list,(e=>(R(),D(W,{key:e.id},["style-1"==I(l).blockStyle.value?(R(),T(n,{key:0,onClick:t=>I(o).toRedirect(e.link),class:"item flex justify-between px-[20rpx] py-[30rpx] bg-white mt-[20rpx]",style:F(p(e))},{default:B((()=>[E(n,{class:"flex-1 flex items-baseline flex-col"},{default:B((()=>[E(n,{class:"text-[28rpx] pb-[10rpx] text-[#333]",style:F({fontWeight:I(l).blockStyle.fontWeight})},{default:B((()=>[z(O(e.title.text),1)])),_:2},1032,["style"]),E(n,{class:"text-[22rpx] text-[#999] pb-[30rpx]"},{default:B((()=>[z(O(e.subTitle.text),1)])),_:2},1024),e.moreTitle.text?(R(),T(n,{key:0,class:"link relative text-[22rpx] leading-[40rpx] flex items-center text-white rounded-r-[20rpx] h-[40rpx] pl-[26rpx] pr-[10rpx]",style:F(m(e.moreTitle))},{default:B((()=>[E(i,{class:$(["mr-[8rpx]",{italic:"italics"==I(l).blockStyle.btnText}])},{default:B((()=>[z(O(e.moreTitle.text),1)])),_:2},1032,["class"]),E(i,{class:"iconfont iconjiantou-you-cuxiantiao-fill !text-[20rpx] text-[#fff]"}),E(u,{class:"absolute left-0 top-0 bottom-0 !w-[28rpx]",src:I(d)("static/resource/images/diy/active_cube/block_style1_1.png"),mode:"scaleToFill"},null,8,["src"])])),_:2},1032,["style"])):N("v-if",!0)])),_:2},1024),e.imageUrl?(R(),T(n,{key:0,class:"img-box ml-[10rpx] w-[130rpx]"},{default:B((()=>[E(u,{src:I(d)(e.imageUrl),mode:"aspectFit"},null,8,["src"])])),_:2},1024)):(R(),T(n,{key:1,class:"img-box ml-[10rpx] flex items-center justify-center w-[130rpx] bg-[#f3f4f6]"},{default:B((()=>[E(g,{name:"photo",color:"#999",size:"50"})])),_:1}))])),_:2},1032,["onClick","style"])):N("v-if",!0),"style-2"==I(l).blockStyle.value?(R(),T(n,{key:1,onClick:t=>I(o).toRedirect(e.link),class:"item h-[150rpx] flex justify-between p-[20rpx] bg-white mt-[20rpx]",style:F(p(e))},{default:B((()=>[E(n,{class:"flex-1 flex items-baseline flex-col"},{default:B((()=>[E(n,{class:"text-[26rpx] mt-[10rpx] pb-[16rpx]",style:F({fontWeight:I(l).blockStyle.fontWeight})},{default:B((()=>[z(O(e.title.text),1)])),_:2},1032,["style"]),E(n,{class:"text-[22rpx] text-gray-500 pb-[26rpx]"},{default:B((()=>[z(O(e.subTitle.text),1)])),_:2},1024),e.moreTitle.text?(R(),T(n,{key:0,class:"link relative text-[22rpx] leading-[40rpx] flex items-center text-white rounded-[20rpx] h-[40rpx] pl-[20rpx] pr-[10rpx]",style:F(m(e.moreTitle))},{default:B((()=>[E(i,{class:$(["mr-[8rpx]",{italic:"italics"==I(l).blockStyle.btnText}])},{default:B((()=>[z(O(e.moreTitle.text),1)])),_:2},1032,["class"]),E(i,{class:"iconfont iconjiantou-you-cuxiantiao-fill !text-[20rpx] text-[#fff]"})])),_:2},1032,["style"])):N("v-if",!0)])),_:2},1024),e.imageUrl?(R(),T(n,{key:0,class:"img-box ml-[10rpx] w-[130rpx]"},{default:B((()=>[E(u,{src:I(d)(e.imageUrl),mode:"aspectFit"},null,8,["src"])])),_:2},1024)):(R(),T(n,{key:1,class:"img-box ml-[10rpx] flex items-center justify-center w-[130rpx] bg-[#f3f4f6]"},{default:B((()=>[E(g,{name:"photo",color:"#999",size:"50"})])),_:1}))])),_:2},1032,["onClick","style"])):N("v-if",!0)],64)))),128))])),_:1}),"style-3"==I(l).blockStyle.value?(R(),T(f,{key:5,"scroll-x":!0,class:"whitespace-nowrap",id:"warpStyle3-"+I(l).id},{default:B((()=>[(R(!0),D(W,null,A(I(l).list,((e,t)=>(R(),T(n,{key:e.id,class:"inline-flex"},{default:B((()=>[E(n,{id:"item"+t+I(l).id,onClick:t=>I(o).toRedirect(e.link),class:$(["flex flex-col items-center justify-between p-[10rpx] bg-white mt-[20rpx] w-[157rpx] h-[200rpx] box-border",{"!mr-[0rpx]":t+1===I(l).list.length}]),style:F(s.value+p(e))},{default:B((()=>[e.imageUrl?(R(),T(n,{key:0,class:"w-[141rpx] h-[141rpx] rounded-[var(--rounded-small)] overflow-hidden"},{default:B((()=>[E(u,{class:"w-[141rpx] h-[141rpx]",src:I(d)(e.imageUrl),mode:"aspectFit"},null,8,["src"])])),_:2},1024)):(R(),T(n,{key:1,class:"w-[141rpx] h-[141rpx] relative flex-shrink-0"},{default:B((()=>[E(n,{class:"absolute left-0 top-0 flex items-center justify-center w-[141rpx] h-[141rpx] bg-[#f3f4f6]"},{default:B((()=>[E(g,{name:"photo",color:"#999",size:"50"})])),_:1})])),_:1})),E(n,{class:"mt-[10rpx] mb-[2rpx] text-[26rpx]",style:F({color:e.title.textColor,fontWeight:I(l).blockStyle.fontWeight})},{default:B((()=>[z(O(e.title.text),1)])),_:2},1032,["style"])])),_:2},1032,["id","onClick","style","class"])])),_:2},1024)))),128))])),_:1},8,["id"])):N("v-if",!0),"style-4"==I(l).blockStyle.value?(R(),T(f,{key:6,"scroll-x":"true",class:"whitespace-nowrap",id:"warpStyle4-"+I(l).id},{default:B((()=>[(R(!0),D(W,null,A(I(l).list,((e,t)=>(R(),T(n,{key:e.id,class:"inline-flex"},{default:B((()=>[E(n,{id:"item"+t+I(l).id,onClick:t=>I(o).toRedirect(e.link),class:$(["flex flex-col items-center justify-between p-[4rpx] bg-[#F93D02] mt-[20rpx] box-border",{"!mr-[0rpx]":t+1===I(l).list.length}]),style:F(p(e)+c.value)},{default:B((()=>[E(n,{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:B((()=>[e.imageUrl?(R(),T(n,{key:0,class:"w-[112rpx] h-[102rpx]"},{default:B((()=>[E(u,{class:"w-[112rpx] h-[102rpx]",src:I(d)(e.imageUrl),mode:"aspectFit"},null,8,["src"])])),_:2},1024)):(R(),T(n,{key:1,class:"w-[112rpx] h-[102rpx] relative flex-shrink-0"},{default:B((()=>[E(n,{class:"absolute left-0 top-0 flex items-center justify-center w-[112rpx] h-[102rpx] bg-[#f3f4f6]"},{default:B((()=>[E(g,{name:"photo",color:"#999",size:"50"})])),_:1})])),_:1})),E(n,{class:"relative -mt-[10rpx] text-[20rpx] bg-[#F3DAC5] text-[#ED6E00] rounded-[16rpx] px-[12rpx] h-[34rpx] flex-center",style:F({color:e.subTitle.textColor,background:"linear-gradient(to right,"+e.subTitle.startColor+","+e.subTitle.endColor+")"})},{default:B((()=>[z(O(e.subTitle.text),1)])),_:2},1032,["style"])])),_:2},1024),E(n,{class:"mt-[12rpx] mb-[12rpx] text-[26rpx] text-[#fff]",style:F({fontWeight:"bold"==I(l).blockStyle.fontWeight?I(l).blockStyle.fontWeight:"500"})},{default:B((()=>[z(O(e.title.text),1)])),_:2},1032,["style"])])),_:2},1032,["id","onClick","class","style"])])),_:2},1024)))),128))])),_:1},8,["id"])):N("v-if",!0)])),_:1})])),_:1})])),_:1},8,["style"])}}}),[["__scopeId","data-v-cc708bb1"]]),et=me(b({__name:"index",props:["component","index"],setup(e){const t=e,o=i(),l=u((()=>"decorate"==o.mode?o.value[t.index]:t.component)),r=u((()=>{var e="";return l.value.componentStartBgColor&&(l.value.componentStartBgColor&&l.value.componentEndBgColor?e+=`background:linear-gradient(${l.value.componentGradientAngle},${l.value.componentStartBgColor},${l.value.componentEndBgColor});`:e+="background-color:"+l.value.componentStartBgColor+";"),l.value.topRounded&&(e+="border-top-left-radius:"+2*l.value.topRounded+"rpx;"),l.value.topRounded&&(e+="border-top-right-radius:"+2*l.value.topRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*l.value.bottomRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*l.value.bottomRounded+"rpx;"),e})),a=u((()=>{var e="";return e+="width:"+2*l.value.imageSize+"rpx;",e+="height:"+2*l.value.imageSize+"rpx;",e+="border-radius:"+2*l.value.aroundRadius+"rpx;"})),s=u((()=>{let e="";return l.value.offset&&("lowerRight"==l.value.bottomPosition||"lowerLeft"==l.value.bottomPosition?e+="translateY("+2*-l.value.offset+"rpx)":"upperRight"!=l.value.bottomPosition&&"upperLeft"!=l.value.bottomPosition||(e+="translateY("+2*l.value.offset+"rpx)")),l.value.lateralOffset&&("upperLeft"==l.value.bottomPosition||"lowerLeft"==l.value.bottomPosition?e+=" translateX("+2*l.value.lateralOffset+"rpx)":"upperRight"!=l.value.bottomPosition&&"lowerRight"!=l.value.bottomPosition||(e+=" translateX("+2*-l.value.lateralOffset+"rpx)")),e=`transform: ${e};`,e})),c=n(!0),p=n(null);return u((()=>{var e="";return l.value.componentStartBgColor&&(l.value.componentStartBgColor&&l.value.componentEndBgColor?e+=`background:linear-gradient(${l.value.componentGradientAngle},${l.value.componentStartBgColor},${l.value.componentEndBgColor});`:e+="background-color:"+l.value.componentStartBgColor+";"),l.value.topRounded&&(e+="border-top-left-radius:"+2*l.value.topRounded+"rpx;"),l.value.topRounded&&(e+="border-top-right-radius:"+2*l.value.topRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*l.value.bottomRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*l.value.bottomRounded+"rpx;"),e+="transition: right .25s;box-shadow:0px 32rpx 96rpx 32rpx rgba(0, 0, 0, .08), 0px 24rpx 64px rgba(0, 0, 0, .12), 0px 16rpx 32rpx -16rpx rgba(0, 0, 0, .16);",e+=c.value?"transition-delay: 0.25s;":"right:-"+(2*l.value.imageSize+24)+"rpx !important;"})),u((()=>{var e="transition: right .25s;background: rgba(0, 0, 0, 0.5);";return e+=c.value?"":"right:-32rpx !important;transition-delay: 0.25s;"})),x((()=>{"style-2"===l.value.style&&(p&&clearTimeout(p.value),c.value=!1,p.value=setTimeout((()=>{c.value=!0,clearTimeout(p.value)}),200))})),(e,t)=>{const n=M,i=H;return R(),T(i,{class:$(["float-btn fixed z-1000",[I(l).style,I(l).bottomPosition,"decorate"==I(o).mode?"float-btn-border":""]]),style:F(I(s))},{default:B((()=>["style-1"===I(l).style?(R(),T(i,{key:0,class:"flex flex-col items-center p-[24rpx]",style:F(I(r))},{default:B((()=>[(R(!0),D(W,null,A(I(l).list,((e,t)=>(R(),T(i,{key:t,onClick:t=>I(o).toRedirect(e.link),class:$({"flex items-center justify-center":!0,"mb-[20rpx]":I(l).list.length!=t+1}),style:F(I(a))},{default:B((()=>[e&&e.imageUrl?(R(),T(n,{key:0,style:F(I(a)),src:I(d)(e.imageUrl),mode:"aspectFit"},null,8,["style","src"])):(R(),T(n,{key:1,src:I(d)("static/resource/images/diy/figure.png"),mode:"aspectFit",style:F(I(a))},null,8,["src","style"]))])),_:2},1032,["onClick","class","style"])))),128))])),_:1},8,["style"])):N("v-if",!0),N(' \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{ item.link.title }}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ')])),_:1},8,["class","style"])}}}),[["__scopeId","data-v-51510f5a"]]),tt=me(b({__name:"index",props:["component","index","global","scrollBool"],setup(e){const t=e,o=ce(),l=V(),r=P(),a=i(),c=u((()=>"decorate"==a.mode?a.value[t.index]:t.component));let p=!1;c.value&&"style-2"==c.value.search.style&&"decorate"!=a.mode&&(p=!0);const m=be(p);m.onLoad(),m.init();const v=u((()=>{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(""),x=n(!1),b=u((()=>{var e="";if(c.value.swiper.control&&"style-3"==c.value.swiper.swiperStyle&&(e+="position: absolute;z-index: 99;left: 0;right: 0;"),t.global.topStatusBar.isShow&&"style-4"==t.global.topStatusBar.style&&(e+="top:"+a.topTabarHeight+"px;"),c.value.swiper.control&&"style-3"==c.value.swiper.swiperStyle&&("ios"===l.platform?e+="top: 55px;":e+="top: 44.5px;"),"decorate"==a.mode)return e;if("fixed"==c.value.positionWay&&(null!=t.scrollBool&&-1!=t.scrollBool&&(e+="position: fixed;z-index: 99;top: 0;left: 0;right: 0;"),1!=t.scrollBool&&2!=t.scrollBool||t.global.topStatusBar.isShow&&"style-4"==t.global.topStatusBar.style&&(e+="top:"+a.topTabarHeight+"px;"),x.value=!1,1==t.scrollBool)){let t=(c.value.fixedBgColor||"").split(","),o=c.value.fixedBgColor?parseInt(t[t.length-1]):0;c.value.fixedBgColor&&0!=o?(x.value=!1,e+="background-color:"+c.value.fixedBgColor+";"):x.value=!0}return e})),U=()=>{let e="";return"style-3"==c.value.swiper.swiperStyle&&(e="ios"===l.platform?"margin-top: -55px;":"margin-top: -44.5px;"),e},Y=e=>{let o="";return e?(o=c.value.tab.selectColor,"fixed"==c.value.positionWay&&1==t.scrollBool&&(o=c.value.tab.fixedSelectColor)):(o=c.value.tab.noColor,"fixed"==c.value.positionWay&&1==t.scrollBool&&(o=c.value.tab.fixedNoColor)),o},q=u((()=>{let e=!0;for(let t=0;t{var e="";let o=t.global.pageStartBgColor?t.global.pageStartBgColor:"rgba(255,255,255,1)";if(o.indexOf("(")>-1){let t=o.split("(")[1].split(")")[0].split(",");1==c.value.bgGradient&&(e+=`background: linear-gradient(rgba(${t[0]}, ${t[1]}, ${t[2]}, 0) 65%, rgba(${t[0]}, ${t[1]}, ${t[2]}, 0.6) 70%, rgba(${t[0]}, ${t[1]}, ${t[2]}, 0.85) 80%, rgba(${t[0]}, ${t[1]}, ${t[2]}, 0.95) 90%, rgb(${t[0]}, ${t[1]}, ${t[2]}, 1) 100%);`)}else e+=`background: (${o});`;return e})),K=u((()=>"style-2"==c.value.swiper.swiperStyle||"style-3"==c.value.swiper.swiperStyle)),Q=u((()=>2*c.value.swiper.imageHeight+"rpx")),Z=n(0),ee=e=>{Z.value=e.detail.current},te=u((()=>{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})),oe=u((()=>{var e="";return c.value.search.subTitle.textColor&&(e+="color:"+c.value.search.subTitle.textColor+";"),c.value.search.subTitle.startColor&&c.value.search.subTitle.endColor?e+=`background:linear-gradient(${c.value.search.subTitle.startColor}, ${c.value.search.subTitle.endColor});`:e+="background-color:"+(c.value.search.subTitle.startColor||c.value.search.subTitle.endColor)+";",e})),le=n(-1),re=n(""),ae=(e,t)=>{if("decorate"==a.mode)return!1;re.value=e.source,le.value=t,"home"==e.source?a.topFixedStatus="home":"diy_page"==e.source&&(a.topFixedStatus="diy",me(e.diy_id))},ne=n(!1);let se={};const ue=n("");y((()=>{de(),"decorate"==a.mode&&w((()=>c.value),((e,t)=>{e&&"CarouselSearch"==e.componentName&&de()})),ge=u((()=>{var e,t,o;return(null==(o=null==(t=null==(e=c.value)?void 0:e.swiper)?void 0:t.list)?void 0:o.length)>1}))}));const de=()=>{_((()=>{setTimeout((()=>{"style-3"==c.value.swiper.swiperStyle&&c.value.swiper.control?h.value="":k().in(r).select(".fixed-wrap").boundingClientRect((e=>{h.value=(e.height||0)+"px"})).exec()}))})),m.refresh(),ae({source:"home"},-1),c.value.swiper.list.forEach((e=>{""==e.imageUrl&&(e.imgWidth=690,e.imgHeight=330)}))},pe=s({pageMode:"diy",title:"",global:{},value:[]}),me=e=>{if(!e)return pe.pageMode="diy",pe.title="",pe.global={},void(pe.value=[]);g({id:e}).then((e=>{if(e.data.value){let t=e.data;pe.pageMode=t.mode,pe.title=t.title;let o=JSON.parse(t.value);pe.global=o.global,pe.global.topStatusBar.isShow=!1,pe.global.bottomTabBarSwitch=!1,pe.value=o.value,pe.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;")})),f({title:pe.title})}}))};let ge=n(!0);ge.value=!0;let fe=uni.getStorageSync("componentsScrollValGroup");if(fe&&"object"==typeof fe)fe.CarouselSearch=20,uni.setStorageSync("componentsScrollValGroup",fe);else{let e={CarouselSearch:20};uni.setStorageSync("componentsScrollValGroup",e)}return(e,l)=>{const r=M,n=H,i=j,s=G,u=X,p=L,g=C(S("u-popup"),he);return R(),T(n,{style:F(I(v)),class:"goods-carousel-search-wrap"},{default:B((()=>[E(n,{class:"relative pb-[20rpx]"},{default:B((()=>[E(n,{class:$(["bg-img",{"!-bottom-[200rpx]":1==I(c).bgGradient}])},{default:B((()=>[I(c).swiper.control&&I(c).swiper.list&&I(c).swiper.list[Z.value].imageUrl?(R(),T(r,{key:0,src:I(d)(I(c).swiper.list[Z.value].imageUrl),mode:"scaleToFill",class:"w-full h-full","show-menu-by-longpress":!0},null,8,["src"])):(R(),T(n,{key:1,class:"w-full h-full bg-[#fff]"})),E(n,{class:"bg-img-box",style:F(I(J))},null,8,["style"])])),_:1},8,["class"]),E(n,{class:"fixed-wrap",style:F(I(b))},{default:B((()=>["style-1"==I(c).search.style?(R(),T(n,{key:0,class:"diy-search-wrap relative z-10",onClick:l[1]||(l[1]=e=>I(a).toRedirect(I(c).search.link)),style:F(ue.value)},{default:B((()=>[I(c).search.logo?(R(),T(n,{key:0,class:"img-wrap"},{default:B((()=>[E(r,{src:I(d)(I(c).search.logo),mode:"aspectFit"},null,8,["src"])])),_:1})):N("v-if",!0),E(n,{class:"search-content",style:F({backgroundColor:I(c).search.bgColor}),onClick:l[0]||(l[0]=ie((e=>I(a).toRedirect(I(c).search.link)),["stop"]))},{default:B((()=>[E(i,{class:"input-content text-[#fff] text-[24rpx] leading-[68rpx]",style:F({color:I(c).search.color})},{default:B((()=>[z(O(I(q)?I(c).search.text:""),1)])),_:1},8,["style"]),E(i,{class:"nc-iconfont nc-icon-sousuo-duanV6xx1 w-[80rpx] h-[52rpx] flex items-center justify-center rounded-[50rpx] text-[28rpx] text-[#fff]",style:F({backgroundColor:I(c).search.btnBgColor,color:I(c).search.btnColor})},null,8,["style"]),I(q)?N("v-if",!0):(R(),T(u,{key:0,class:"swiper-wrap",interval:1e3*I(c).search.hotWord.interval,autoplay:"true",vertical:"true",circular:"true"},{default:B((()=>[(R(!0),D(W,null,A(I(c).search.hotWord.list,(e=>(R(),T(s,{class:"swiper-item",key:e.id},{default:B((()=>[E(n,{class:"leading-[64rpx] text-[24rpx]",style:F({color:I(c).search.color})},{default:B((()=>[z(O(e.text),1)])),_:2},1032,["style"])])),_:2},1024)))),128))])),_:1},8,["interval"]))])),_:1},8,["style"])])),_:1},8,["style"])):N("v-if",!0),"style-2"==I(c).search.style?(R(),T(n,{key:1,class:"diy-search-wrap style-2 relative z-10",onClick:l[5]||(l[5]=e=>I(a).toRedirect(I(c).search.link))},{default:B((()=>[E(n,{class:"flex items-center",style:F(ue.value)},{default:B((()=>[I(c).search.logo?(R(),T(n,{key:0,class:"img-wrap"},{default:B((()=>[E(r,{src:I(d)(I(c).search.logo),mode:"aspectFit"},null,8,["src"])])),_:1})):N("v-if",!0),I(c).search.subTitle.text?(R(),T(n,{key:1,style:F(I(oe)),class:"text-[24rpx] h-[38rpx] flex items-center px-[12rpx] rounded-r-[20rpx] rounded-t-[20rpx] rounded-bl-[2rpx]"},{default:B((()=>[z(O(I(c).search.subTitle.text),1)])),_:1},8,["style"])):N("v-if",!0)])),_:1},8,["style"]),E(n,{class:"flex items-center w-full mt-[16rpx]"},{default:B((()=>[I(o).diyAddressInfo?(R(),T(n,{key:0,onClick:l[2]||(l[2]=ie((e=>I(m).reposition()),["stop"])),style:F({color:I(c).search.positionColor}),class:"mr-[30rpx]"},{default:B((()=>[E(n,{class:"flex items-baseline font-500"},{default:B((()=>[E(i,{class:"text-[24rpx] mr-[2rpx]"},{default:B((()=>[z(O(I(o).diyAddressInfo.city),1)])),_:1}),E(i,{class:"iconfont iconxiaV6xx !text-[24rpx]"})])),_:1}),I(o).diyAddressInfo.community?(R(),T(n,{key:0,class:"text-[18rpx] mt-[10rpx] truncate max-w-[160rpx]"},{default:B((()=>[z(O(I(o).diyAddressInfo.community),1)])),_:1})):N("v-if",!0)])),_:1},8,["style"])):(R(),T(n,{key:1,onClick:l[3]||(l[3]=ie((e=>I(m).reposition()),["stop"])),class:"text-[24rpx] mr-[30rpx] truncate max-w-[160rpx]",style:F({color:I(c).search.positionColor})},{default:B((()=>[z(O(I(o).defaultPositionAddress),1)])),_:1},8,["style"])),E(n,{class:"search-content",style:F({backgroundColor:I(c).search.bgColor}),onClick:l[4]||(l[4]=ie((e=>I(a).toRedirect(I(c).search.link)),["stop"]))},{default:B((()=>[E(i,{class:"input-content text-[#fff] text-[24rpx] leading-[68rpx]",style:F({color:I(c).search.color})},{default:B((()=>[z(O(I(q)?I(c).search.text:""),1)])),_:1},8,["style"]),E(i,{class:"nc-iconfont nc-icon-sousuo-duanV6xx1 w-[80rpx] h-[52rpx] flex items-center justify-center rounded-[50rpx] text-[28rpx] text-[#fff]",style:F({backgroundColor:I(c).search.btnBgColor,color:I(c).search.btnColor})},null,8,["style"]),I(q)?N("v-if",!0):(R(),T(u,{key:0,class:"swiper-wrap",interval:1e3*I(c).search.hotWord.interval,autoplay:"true",vertical:"true",circular:"true"},{default:B((()=>[(R(!0),D(W,null,A(I(c).search.hotWord.list,(e=>(R(),T(s,{class:"swiper-item",key:e.id},{default:B((()=>[E(n,{class:"leading-[64rpx] text-[24rpx]",style:F({color:I(c).search.color})},{default:B((()=>[z(O(e.text),1)])),_:2},1032,["style"])])),_:2},1024)))),128))])),_:1},8,["interval"]))])),_:1},8,["style"])])),_:1})])),_:1})):N("v-if",!0),I(c).tab.control?(R(),T(n,{key:2,class:"tab-list-wrap relative z-10"},{default:B((()=>[E(p,{"scroll-x":"true",class:"scroll-wrap","scroll-into-view":"a"+le.value},{default:B((()=>[E(n,{onClick:l[6]||(l[6]=e=>ae({source:"home"},-1)),class:$(["scroll-item",[{active:-1==le.value}]])},{default:B((()=>[E(n,{class:"name",style:F({color:Y(-1==le.value)})},{default:B((()=>[z("首页")])),_:1},8,["style"]),N(' ')])),_:1},8,["class"]),(R(!0),D(W,null,A(I(c).tab.list,((e,t)=>(R(),T(n,{class:$(["scroll-item",[{active:t==le.value}]]),onClick:o=>ae(e,t),id:"a"+t,key:t},{default:B((()=>[E(n,{class:"name",style:F({color:Y(t==le.value)})},{default:B((()=>[z(O(e.text),1)])),_:2},1032,["style"]),N(' ')])),_:2},1032,["class","onClick","id"])))),128))])),_:1},8,["scroll-into-view"]),I(c).tab.list.length?(R(),T(n,{key:0,class:"absolute tab-btn iconfont icona-yingyongliebiaoV6xx-32",onClick:l[7]||(l[7]=e=>ne.value=!0)})):N("v-if",!0)])),_:1})):N("v-if",!0),x.value?(R(),T(n,{key:3,class:"bg-img"},{default:B((()=>[I(c).swiper.control&&I(c).swiper.list&&I(c).swiper.list[Z.value].imageUrl?(R(),T(r,{key:0,src:I(d)(I(c).swiper.list[Z.value].imageUrl),mode:"widthFix",class:"w-full h-full","show-menu-by-longpress":!0},null,8,["src"])):(R(),T(n,{key:1,class:"w-full h-full bg-[#fff]"}))])),_:1})):N("v-if",!0)])),_:1},8,["style"]),N(" 解决fixed定位后导航栏塌陷的问题 "),"decorate"!=I(a).mode?(R(),D(W,{key:0},["fixed"==I(c).positionWay&&null!=t.scrollBool&&-1!=t.scrollBool?(R(),T(n,{key:0,class:"u-navbar-placeholder",style:F({width:"100%",paddingTop:h.value})},null,8,["style"])):N("v-if",!0)],64)):N("v-if",!0),N(" 轮播图 "),I(c).swiper.control?(R(),T(n,{key:1,class:$(["relative",{"mx-[20rpx]":I(K)&&"style-3"!=I(c).swiper.swiperStyle,"swiper-style-3":"style-3"==I(c).swiper.swiperStyle}]),style:F(U())},{default:B((()=>[E(u,{class:$(["swiper",{"swiper-left":"left"==I(c).swiper.indicatorAlign,"swiper-right":"right"==I(c).swiper.indicatorAlign,"ns-indicator-dots":"style-2"==I(c).swiper.indicatorStyle,"ns-indicator-dots-three":"style-3"==I(c).swiper.indicatorStyle}]),style:F({height:I(Q)}),autoplay:"true",circular:"true",onChange:ee,"previous-margin":I(K)?0:"26rpx","next-margin":I(K)?0:"26rpx",interval:1e3*I(c).swiper.interval,"indicator-dots":I(ge),"indicator-color":I(c).swiper.indicatorColor,"indicator-active-color":I(c).swiper.indicatorActiveColor},{default:B((()=>[(R(!0),D(W,null,A(I(c).swiper.list,((e,t)=>(R(),T(s,{class:"swiper-item",key:e.id,style:F(I(te))},{default:B((()=>[E(n,{onClick:t=>I(a).toRedirect(e.link)},{default:B((()=>[E(n,{class:"item",style:F({height:I(Q)})},{default:B((()=>[e.imageUrl?(R(),T(r,{key:0,src:I(d)(e.imageUrl),mode:"scaleToFill",style:F(I(te)),class:$(["w-full h-full",{"swiper-animation":Z.value!=t&&"style-3"!=I(c).swiper.indicatorStyle}]),"show-menu-by-longpress":!0},null,8,["src","style","class"])):(R(),T(r,{key:1,src:I(d)("static/resource/images/diy/figure.png"),style:F(I(te)),mode:"scaleToFill",class:$(["w-full h-full",{"swiper-animation":Z.value!=t&&"style-3"!=I(c).swiper.indicatorStyle}]),"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"])])),_:1},8,["class","style"])):N("v-if",!0),N(" 分类展开 "),E(g,{safeAreaInsetTop:!0,show:ne.value,mode:"top",onClose:l[9]||(l[9]=e=>ne.value=!1)},{default:B((()=>[E(n,{class:"text-sm px-[30rpx] pt-3",style:F({"padding-top":I(se).top+"px"})},{default:B((()=>[z("全部分类")])),_:1},8,["style"]),E(n,{class:"flex flex-wrap pl-[30rpx] pt-[30rpx]"},{default:B((()=>[E(n,{onClick:l[8]||(l[8]=e=>ae({source:"home"},-1)),class:$(["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==le.value}])},{default:B((()=>[z("首页")])),_:1},8,["class"]),(R(!0),D(W,null,A(I(c).tab.list,((e,t)=>(R(),T(i,{onClick:o=>ae(e,t),key:t,class:$(["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==le.value}])},{default:B((()=>[z(O(e.text),1)])),_:2},1032,["onClick","class"])))),128))])),_:1})])),_:1},8,["show"])])),_:1}),N(" 展示微页面数据 "),"diy_page"==re.value?(R(),T(n,{key:0,class:"child-diy-template-wrap bg-index"},{default:B((()=>[E(il,{data:pe},null,8,["data"])])),_:1})):N("v-if",!0)])),_:1},8,["style"])}}}),[["__scopeId","data-v-84b44cd6"]]),ot=b({__name:"index",props:["component","index","global","scrollBool"],setup(e){const t=e,o=i(),l=u((()=>"decorate"==o.mode?o.value[t.index]:t.component)),r=u((()=>{var e="";return l.value.componentStartBgColor&&(l.value.componentStartBgColor&&l.value.componentEndBgColor?e+=`background:linear-gradient(${l.value.componentGradientAngle},${l.value.componentStartBgColor},${l.value.componentEndBgColor});`:e+="background-color:"+l.value.componentStartBgColor+";"),l.value.topRounded&&(e+="border-top-left-radius:"+2*l.value.topRounded+"rpx;"),l.value.topRounded&&(e+="border-top-right-radius:"+2*l.value.topRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*l.value.bottomRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*l.value.bottomRounded+"rpx;"),e})),a=u((()=>{var e="";return l.value.moduleOne.listFrame&&l.value.moduleOne.listFrame.startColor&&l.value.moduleOne.listFrame.endColor&&(e+=`background:linear-gradient(${l.value.moduleOne.listFrame.startColor},${l.value.moduleOne.listFrame.endColor});`),l.value.moduleRounded.topRounded&&(e+="border-top-left-radius:"+2*l.value.moduleRounded.topRounded+"rpx;"),l.value.moduleRounded.topRounded&&(e+="border-top-right-radius:"+2*l.value.moduleRounded.topRounded+"rpx;"),l.value.moduleRounded.bottomRounded&&(e+="border-bottom-left-radius:"+2*l.value.moduleRounded.bottomRounded+"rpx;"),l.value.moduleRounded.bottomRounded&&(e+="border-bottom-right-radius:"+2*l.value.moduleRounded.bottomRounded+"rpx;"),l.value.margin&&l.value.margin.both?e+="width: calc((100vw - "+4*l.value.margin.both+"rpx - 20rpx) / 2);":e+="width: calc((100vw - 20rpx) / 2 );",e})),n=u((()=>{var e="";return l.value.moduleTwo.listFrame&&l.value.moduleTwo.listFrame.startColor&&l.value.moduleTwo.listFrame.endColor&&(e+=`background:linear-gradient(${l.value.moduleTwo.listFrame.startColor},${l.value.moduleTwo.listFrame.endColor});`),l.value.moduleRounded.topRounded&&(e+="border-top-left-radius:"+2*l.value.moduleRounded.topRounded+"rpx;"),l.value.moduleRounded.topRounded&&(e+="border-top-right-radius:"+2*l.value.moduleRounded.topRounded+"rpx;"),l.value.moduleRounded.bottomRounded&&(e+="border-bottom-left-radius:"+2*l.value.moduleRounded.bottomRounded+"rpx;"),l.value.moduleRounded.bottomRounded&&(e+="border-bottom-right-radius:"+2*l.value.moduleRounded.bottomRounded+"rpx;"),l.value.margin&&l.value.margin.both?e+="width: calc((100vw - "+4*l.value.margin.both+"rpx - 20rpx) / 2);":e+="width: calc((100vw - 20rpx) / 2 );",e})),s=e=>{var t="";return e.btnTitle.color&&(t+="color:"+e.btnTitle.color+";"),l.value.moduleTwo.listFrame.startColor&&l.value.moduleTwo.listFrame.endColor&&(t+=`background:linear-gradient(${e.btnTitle.startColor},${e.btnTitle.endColor});`),t};y((()=>{c(),"decorate"==o.mode&&w((()=>l.value),((e,t)=>{e&&"PictureShow"==e.componentName&&c()}))}));const c=()=>{};return(e,t)=>{const i=M,u=j,c=H,p=C(S("u-icon"),pe);return R(),T(c,{style:F(I(r)),class:"flex justify-between overflow-hidden"},{default:B((()=>[E(c,{class:"p-[20rpx] box-border overflow-hidden",style:F(I(a))},{default:B((()=>[I(l).moduleOne.head.textImg||I(l).moduleOne.head.subText?(R(),T(c,{key:0,class:"flex items-center pb-[30rpx] pt-[6rpx]"},{default:B((()=>[I(l).moduleOne.head.textImg?(R(),T(i,{key:0,class:"h-[28rpx]",src:I(d)(I(l).moduleOne.head.textImg),mode:"heightFix"},null,8,["src"])):N("v-if",!0),I(l).moduleOne.head.textImg&&I(l).moduleOne.head.subText?(R(),T(u,{key:1,class:"w-[2rpx] mx-[10rpx] h-[22rpx]",style:F({backgroundColor:I(l).moduleOne.head.subTextColor})},null,8,["style"])):N("v-if",!0),I(l).moduleOne.head.subText?(R(),T(u,{key:2,class:"text-[22rpx] truncate max-w-[164rpx]",style:F({color:I(l).moduleOne.head.subTextColor})},{default:B((()=>[z(O(I(l).moduleOne.head.subText),1)])),_:1},8,["style"])):N("v-if",!0)])),_:1})):N("v-if",!0),E(c,{class:"flex items-center"},{default:B((()=>[(R(!0),D(W,null,A(I(l).moduleOne.list,((e,t)=>(R(),T(c,{key:t,class:$(["flex flex-col items-center",{"mr-[10rpx]":0==t}]),onClick:t=>I(o).toRedirect(e.link)},{default:B((()=>[E(c,{class:"bg-[#fff] flex items-center justify-center w-[148rpx] h-[148rpx] rounded-[12rpx] mb-[16rpx]"},{default:B((()=>[e.imageUrl?(R(),T(i,{key:0,class:"w-[102rpx] h-[102rpx]",src:I(d)(e.imageUrl),mode:"aspectFill"},null,8,["src"])):(R(),T(p,{key:1,name:"photo",color:"#999",size:"50"}))])),_:2},1024),E(c,{class:"w-[132rpx] h-[44rpx] rounded-[30rpx] flex items-center justify-center text-[22rpx]",style:F(s(e))},{default:B((()=>[z(O(e.btnTitle.text),1)])),_:2},1032,["style"])])),_:2},1032,["class","onClick"])))),128))])),_:1})])),_:1},8,["style"]),E(c,{class:"p-[20rpx] box-border overflow-hidden",style:F(I(n))},{default:B((()=>[I(l).moduleTwo.head.textImg||I(l).moduleTwo.head.subText?(R(),T(c,{key:0,class:"flex items-center pb-[30rpx] pt-[6rpx]"},{default:B((()=>[I(l).moduleTwo.head.textImg?(R(),T(i,{key:0,class:"h-[28rpx] w-[auto]",src:I(d)(I(l).moduleTwo.head.textImg),mode:"heightFix"},null,8,["src"])):N("v-if",!0),I(l).moduleTwo.head.textImg&&I(l).moduleTwo.head.subText?(R(),T(u,{key:1,class:"w-[2rpx] mx-[10rpx] h-[22rpx]",style:F({backgroundColor:I(l).moduleTwo.head.subTextColor})},null,8,["style"])):N("v-if",!0),I(l).moduleTwo.head.subText?(R(),T(u,{key:2,class:"text-[22rpx] truncate max-w-[164rpx]",style:F({color:I(l).moduleTwo.head.subTextColor})},{default:B((()=>[z(O(I(l).moduleTwo.head.subText),1)])),_:1},8,["style"])):N("v-if",!0)])),_:1})):N("v-if",!0),E(c,{class:"flex items-center"},{default:B((()=>[(R(!0),D(W,null,A(I(l).moduleTwo.list,((e,t)=>(R(),T(c,{key:t,class:$(["flex flex-col items-center",{"mr-[10rpx]":0==t}]),onClick:t=>I(o).toRedirect(e.link)},{default:B((()=>[E(c,{class:"bg-[#fff] flex items-center justify-center w-[148rpx] h-[148rpx] rounded-[12rpx] mb-[16rpx]"},{default:B((()=>[e.imageUrl?(R(),T(i,{key:0,class:"w-[102rpx] h-[102rpx]",src:I(d)(e.imageUrl),mode:"aspectFill"},null,8,["src"])):(R(),T(p,{key:1,name:"photo",color:"#999",size:"50"}))])),_:2},1024),E(c,{class:"w-[132rpx] h-[44rpx] rounded-[30rpx] flex items-center justify-center text-[22rpx]",style:F(s(e))},{default:B((()=>[z(O(e.btnTitle.text),1)])),_:2},1032,["style"])])),_:2},1032,["class","onClick"])))),128))])),_:1})])),_:1},8,["style"])])),_:1},8,["style"])}}}); /**! * Sortable 1.15.0 * @author RubaXa * @author owenm * @license MIT */ function lt(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 rt(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 ut(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var dt=ut(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),ct=ut(/Edge/i),pt=ut(/firefox/i),mt=ut(/safari/i)&&!ut(/chrome/i)&&!ut(/android/i),gt=ut(/iP(ad|od|hone)/i),ft=ut(/chrome/i)&&ut(/android/i),vt={capture:!1,passive:!1};function ht(e,t,o){e.addEventListener(t,o,!dt&&vt)}function xt(e,t,o){e.removeEventListener(t,o,!dt&&vt)}function bt(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 yt(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function wt(e,t,o,l){if(e){o=o||document;do{if(null!=t&&(">"===t[0]?e.parentNode===o&&bt(e,t):bt(e,t))||l&&e===o)return e;if(e===o)break}while(e=yt(e))}return null}var _t,kt=/\s+/g;function Ct(e,t,o){if(e&&t)if(e.classList)e.classList[o?"add":"remove"](t);else{var l=(" "+e.className+" ").replace(kt," ").replace(" "+t+" "," ");e.className=(l+(o?" "+t:"")).replace(kt," ")}}function St(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 Rt(e,t){var o="";if("string"==typeof e)o=e;else do{var l=St(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 Tt(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===Bt())break;l=$t(l,!1)}return!1}function It(e,t,o,l){for(var r=0,a=0,n=e.children;a2&&void 0!==arguments[2]?arguments[2]:{},l=o.evt,r=st(o,Xt);Gt.pluginEvent.bind(Uo)(e,t,rt({dragEl:Vt,parentEl:qt,ghostEl:Jt,rootEl:Kt,nextEl:Qt,lastDownEl:Zt,cloneEl:eo,cloneHidden:to,dragStarted:fo,putSortable:io,activeSortable:Uo.active,originalEvent:l,oldIndex:oo,oldDraggableIndex:ro,newIndex:lo,newDraggableIndex:ao,hideGhostForTarget:$o,unhideGhostForTarget:zo,cloneNowHidden:function(){to=!0},cloneNowShown:function(){to=!1},dispatchSortableEvent:function(e){Yt({sortable:t,name:e,originalEvent:l})}},r))};function Yt(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,m=e.putSortable,g=e.extraEventProperties;if(t=t||o&&o[Pt]){var f,v=t.options,h="on"+l.charAt(0).toUpperCase()+l.substr(1);!window.CustomEvent||dt||ct?(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=m?m.lastPutMode:void 0;var x=rt(rt({},g),Gt.getEventProperties(l,t));for(var b in x)f[b]=x[b];o&&o.dispatchEvent(f),v[h]&&v[h].call(t,f)}}(rt({putSortable:io,cloneEl:eo,targetEl:Vt,rootEl:Kt,oldIndex:oo,oldDraggableIndex:ro,newIndex:lo,newDraggableIndex:ao},e))}var Vt,qt,Jt,Kt,Qt,Zt,eo,to,oo,lo,ro,ao,no,io,so,uo,co,po,mo,go,fo,vo,ho,xo,bo,yo=!1,wo=!1,_o=[],ko=!1,Co=!1,So=[],Ro=!1,To=[],Bo="undefined"!=typeof document,Eo=gt,Fo=ct||dt?"cssFloat":"float",Io=Bo&&!ft&&!gt&&"draggable"in document.createElement("div"),Do=function(){if(Bo){if(dt)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Wo=function(e,t){var o=St(e),l=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),r=It(e,0,t),a=It(e,1,t),n=r&&St(r),i=a&&St(a),s=n&&parseInt(n.marginLeft)+parseInt(n.marginRight)+Et(r).width,u=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+Et(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[Fo]||a&&"none"===o[Fo]&&s+u>l)?"vertical":"horizontal"},Ao=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"==at(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},$o=function(){!Do&&Jt&&St(Jt,"display","none")},zo=function(){!Do&&Jt&&St(Jt,"display","")};Bo&&!ft&&document.addEventListener("click",(function(e){if(wo)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),wo=!1,!1}),!0);var Oo=function(e){if(Vt){e=e.touches?e.touches[0]:e;var t=(r=e.clientX,a=e.clientY,_o.some((function(e){var t=e[Pt].options.emptyInsertThreshold;if(t&&!Dt(e)){var o=Et(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[Pt]._onDragOver(o)}}var r,a,n},No=function(e){Vt&&Vt.parentNode[Pt]._isOutsideThisEl(e.target)};function Uo(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=it({},t),e[Pt]=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 Wo(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!==Uo.supportPointer&&"PointerEvent"in window&&!mt,emptyInsertThreshold:5};for(var l in Gt.initializePlugins(this,e,o),o)!(l in t)&&(t[l]=o[l]);for(var r in Ao(t),this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!t.forceFallback&&Io,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?ht(e,"pointerdown",this._onTapStart):(ht(e,"mousedown",this._onTapStart),ht(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(ht(e,"dragover",this),ht(e,"dragenter",this)),_o.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),it(this,Ht())}function Po(e,t,o,l,r,a,n,i){var s,u,d=e[Pt],c=d.options.onMove;return!window.CustomEvent||dt||ct?(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||Et(t),s.willInsertAfter=i,s.originalEvent=n,e.dispatchEvent(s),c&&(u=c.call(d,s,n)),u}function Ho(e){e.draggable=!1}function Mo(){Ro=!1}function jo(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 Go(e){return setTimeout(e,0)}function Xo(e){return clearTimeout(e)}Uo.prototype={constructor:Uo,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(vo=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,Vt):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){To.length=0;var t=e.getElementsByTagName("input"),o=t.length;for(;o--;){var l=t[o];l.checked&&To.push(l)}}(o),!Vt&&!(/mousedown|pointerdown/.test(a)&&0!==e.button||l.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!mt||!i||"SELECT"!==i.tagName.toUpperCase())&&!((i=wt(i,l.draggable,o,!1))&&i.animated||Zt===i)){if(oo=Wt(i),ro=Wt(i,l.draggable),"function"==typeof u){if(u.call(this,e,i,this))return Yt({sortable:t,rootEl:s,name:"filter",targetEl:i,toEl:o,fromEl:o}),Lt("filter",t,{evt:e}),void(r&&e.cancelable&&e.preventDefault())}else if(u&&(u=u.split(",").some((function(l){if(l=wt(s,l.trim(),o,!1))return Yt({sortable:t,rootEl:l,name:"filter",targetEl:i,fromEl:o,toEl:o}),Lt("filter",t,{evt:e}),!0}))))return void(r&&e.cancelable&&e.preventDefault());l.handle&&!wt(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&&!Vt&&o.parentNode===a){var s=Et(o);if(Kt=a,qt=(Vt=o).parentNode,Qt=Vt.nextSibling,Zt=o,no=n.group,Uo.dragged=Vt,so={target:Vt,clientX:(t||e).clientX,clientY:(t||e).clientY},mo=so.clientX-s.left,go=so.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Vt.style["will-change"]="all",l=function(){Lt("delayEnded",r,{evt:e}),Uo.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!pt&&r.nativeDraggable&&(Vt.draggable=!0),r._triggerDragStart(e,t),Yt({sortable:r,name:"choose",originalEvent:e}),Ct(Vt,n.chosenClass,!0))},n.ignore.split(",").forEach((function(e){Tt(Vt,e.trim(),Ho)})),ht(i,"dragover",Oo),ht(i,"mousemove",Oo),ht(i,"touchmove",Oo),ht(i,"mouseup",r._onDrop),ht(i,"touchend",r._onDrop),ht(i,"touchcancel",r._onDrop),pt&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Vt.draggable=!0),Lt("delayStart",this,{evt:e}),!n.delay||n.delayOnTouchOnly&&!t||this.nativeDraggable&&(ct||dt))l();else{if(Uo.eventCanceled)return void this._onDrop();ht(i,"mouseup",r._disableDelayedDrag),ht(i,"touchend",r._disableDelayedDrag),ht(i,"touchcancel",r._disableDelayedDrag),ht(i,"mousemove",r._delayedDragTouchMoveHandler),ht(i,"touchmove",r._delayedDragTouchMoveHandler),n.supportPointer&&ht(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(){Vt&&Ho(Vt),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;xt(e,"mouseup",this._disableDelayedDrag),xt(e,"touchend",this._disableDelayedDrag),xt(e,"touchcancel",this._disableDelayedDrag),xt(e,"mousemove",this._delayedDragTouchMoveHandler),xt(e,"touchmove",this._delayedDragTouchMoveHandler),xt(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?ht(document,"pointermove",this._onTouchMove):ht(document,t?"touchmove":"mousemove",this._onTouchMove):(ht(Vt,"dragend",this),ht(Kt,"dragstart",this._onDragStart));try{document.selection?Go((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(o){}},_dragStarted:function(e,t){if(yo=!1,Kt&&Vt){Lt("dragStarted",this,{evt:t}),this.nativeDraggable&&ht(document,"dragover",No);var o=this.options;!e&&Ct(Vt,o.dragClass,!1),Ct(Vt,o.ghostClass,!0),Uo.active=this,e&&this._appendGhost(),Yt({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(uo){this._lastX=uo.clientX,this._lastY=uo.clientY,$o();for(var e=document.elementFromPoint(uo.clientX,uo.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(uo.clientX,uo.clientY))!==t;)t=e;if(Vt.parentNode[Pt]._isOutsideThisEl(e),t)do{if(t[Pt]){if(t[Pt]._onDragOver({clientX:uo.clientX,clientY:uo.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);zo()}},_onTouchMove:function(e){if(so){var t=this.options,o=t.fallbackTolerance,l=t.fallbackOffset,r=e.touches?e.touches[0]:e,a=Jt&&Rt(Jt,!0),n=Jt&&a&&a.a,i=Jt&&a&&a.d,s=Eo&&bo&&At(bo),u=(r.clientX-so.clientX+l.x)/(n||1)+(s?s[0]-So[0]:0)/(n||1),d=(r.clientY-so.clientY+l.y)/(i||1)+(s?s[1]-So[1]:0)/(i||1);if(!Uo.active&&!yo){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===Vt)return I(!1);if(f&&a===e.target&&(n=f),n&&(o=Et(n)),!1!==Po(Kt,a,Vt,t,n,o,e,!!n))return F(),f&&f.nextSibling?a.insertBefore(Vt,f.nextSibling):a.appendChild(Vt),qt=a,D(),I(!0)}else if(f&&function(e,t,o){var l=Et(It(o.el,0,o.options,!0)),r=10;return t?e.clientXd+u*a/2:sc-xo)return-ho}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,Co,vo===n),0!==h){var S=Wt(Vt);do{S-=h,b=qt.children[S]}while(b&&("none"===St(b,"display")||b===Jt))}if(0===h||b===n)return I(!1);vo=n,ho=h;var R=n.nextElementSibling,T=!1,B=Po(Kt,a,Vt,t,n,o,e,T=1===h);if(!1!==B)return 1!==B&&-1!==B||(T=1===B),Ro=!0,setTimeout(Mo,30),F(),T&&!R?a.appendChild(Vt):n.parentNode.insertBefore(Vt,T?R:n),k&&Nt(k,0,C-k.scrollTop),qt=Vt.parentNode,void 0===x||Co||(xo=Math.abs(x-Et(n)[_])),D(),I(!0)}if(a.contains(Vt))return I(!1)}return!1}function E(i,s){Lt(i,m,rt({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 Po(Kt,a,Vt,t,o,Et(o),e,l)},changed:D},s))}function F(){E("dragOverAnimationCapture"),m.captureAnimationState(),m!==p&&p.captureAnimationState()}function I(t){return E("dragOverCompleted",{insertion:t}),t&&(d?u._hideClone():u._showClone(m),m!==p&&(Ct(Vt,io?io.options.ghostClass:u.options.ghostClass,!1),Ct(Vt,i.ghostClass,!0)),io!==m&&m!==Uo.active?io=m:m===Uo.active&&io&&(io=null),p===m&&(m._ignoreWhileAnimating=n),m.animateAll((function(){E("dragOverAnimationComplete"),m._ignoreWhileAnimating=null})),m!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(n===Vt&&!Vt.animated||n===a&&!n.animated)&&(vo=null),i.dragoverBubble||e.rootEl||n===document||(Vt.parentNode[Pt]._isOutsideThisEl(e.target),!t&&Oo(e)),!i.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),g=!0}function D(){lo=Wt(Vt),ao=Wt(Vt,i.draggable),Yt({sortable:m,name:"change",toEl:a,newIndex:lo,newDraggableIndex:ao,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){xt(document,"mousemove",this._onTouchMove),xt(document,"touchmove",this._onTouchMove),xt(document,"pointermove",this._onTouchMove),xt(document,"dragover",Oo),xt(document,"mousemove",Oo),xt(document,"touchmove",Oo)},_offUpEvents:function(){var e=this.el.ownerDocument;xt(e,"mouseup",this._onDrop),xt(e,"touchend",this._onDrop),xt(e,"pointerup",this._onDrop),xt(e,"touchcancel",this._onDrop),xt(document,"selectstart",this)},_onDrop:function(e){var t=this.el,o=this.options;lo=Wt(Vt),ao=Wt(Vt,o.draggable),Lt("drop",this,{evt:e}),qt=Vt&&Vt.parentNode,lo=Wt(Vt),ao=Wt(Vt,o.draggable),Uo.eventCanceled||(yo=!1,Co=!1,ko=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Xo(this.cloneId),Xo(this._dragStartId),this.nativeDraggable&&(xt(document,"drop",this),xt(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),mt&&St(document.body,"user-select",""),St(Vt,"transform",""),e&&(fo&&(e.cancelable&&e.preventDefault(),!o.dropBubble&&e.stopPropagation()),Jt&&Jt.parentNode&&Jt.parentNode.removeChild(Jt),(Kt===qt||io&&"clone"!==io.lastPutMode)&&eo&&eo.parentNode&&eo.parentNode.removeChild(eo),Vt&&(this.nativeDraggable&&xt(Vt,"dragend",this),Ho(Vt),Vt.style["will-change"]="",fo&&!yo&&Ct(Vt,io?io.options.ghostClass:this.options.ghostClass,!1),Ct(Vt,this.options.chosenClass,!1),Yt({sortable:this,name:"unchoose",toEl:qt,newIndex:null,newDraggableIndex:null,originalEvent:e}),Kt!==qt?(lo>=0&&(Yt({rootEl:qt,name:"add",toEl:qt,fromEl:Kt,originalEvent:e}),Yt({sortable:this,name:"remove",toEl:qt,originalEvent:e}),Yt({rootEl:qt,name:"sort",toEl:qt,fromEl:Kt,originalEvent:e}),Yt({sortable:this,name:"sort",toEl:qt,originalEvent:e})),io&&io.save()):lo!==oo&&lo>=0&&(Yt({sortable:this,name:"update",toEl:qt,originalEvent:e}),Yt({sortable:this,name:"sort",toEl:qt,originalEvent:e})),Uo.active&&(null!=lo&&-1!==lo||(lo=oo,ao=ro),Yt({sortable:this,name:"end",toEl:qt,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){Lt("nulling",this),Kt=Vt=qt=Jt=Qt=eo=Zt=to=so=uo=fo=lo=ao=oo=ro=vo=ho=io=no=Uo.dragged=Uo.ghost=Uo.clone=Uo.active=null,To.forEach((function(e){e.checked=!0})),To.length=co=po=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Vt&&(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"==l.mode?l:e.data)),s=n(!1);p((()=>{s.value=!1})),v((()=>{s.value=!0}));return{scrollV:n().value,data:a.value,componentsScrollBool:o.value,placeholderEvent:()=>{},refresh:()=>{_((()=>{let t=null,o=()=>{let o=!1;try{e.getFormRef(),o=!0}catch(n){o=!1}var r;return o&&(l.componentRefs=e.getFormRef().componentRefs,a.value.componentRefs=e.getFormRef().componentRefs,e.getFormRef().componentRefs&&(null==(r=e.getFormRef().componentRefs.topTabbarRef)||r.refresh()),t&&clearInterval(t)),o};o()||(t=setInterval((()=>{o()}),100))}))},isShowPlaceHolder:(e,t)=>{if("decorate"==l.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:l.currentIndex==e,decorate:"decorate"==l.mode};return o["top-fixed-"+l.topFixedStatus]=!0,t.position&&-1!=r.value.indexOf(t.position)?o["ignore-draggable-element"]=!0:o["draggable-element"]=!0,o},onPageScroll:()=>{x((e=>{if(t&&!s.value)for(let l in t)e.scrollTop<=0?o.value[l]=-1:e.scrollTop>t[l]?o.value[l]=1:o.value[l]=2}))},onMounted:()=>{y((()=>{if("decorate"==l.mode){var e=document.getElementById("componentList");const t=Uo.create(e,{draggable:".draggable-element",animation:200,onEnd:e=>{let o=l.value[e.oldIndex];l.value.splice(e.oldIndex,1),l.value.splice(e.newIndex,0,o),_((()=>{t.sort(Ue(l.value.length).map((e=>e.toString()))),l.postMessage(e.newIndex,l.value[e.newIndex])}))}})}_((()=>{setTimeout((()=>{if(t=uni.getStorageSync("componentsScrollValGroup"),t)for(let e in t)o.value[e]=-1}),500)}))}))}}}rl.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,o=e.putSortable;this.sortable.captureAnimationState(),o&&o.captureAnimationState();var l=It(this.sortable.el,this.startIndex,this.options);l?this.sortable.el.insertBefore(t,l):this.sortable.el.appendChild(t),this.sortable.animateAll(),o&&o.animateAll()},drop:ll},it(rl,{pluginName:"revertOnSpill"}),al.prototype={onSpill:function(e){var t=e.dragEl,o=e.putSortable||this.sortable;o.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),o.animateAll()},drop:ll},it(al,{pluginName:"removeOnSpill"}),Uo.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?ht(document,"dragover",this._handleAutoScroll):this.options.supportPointer?ht(document,"pointermove",this._handleFallbackAutoScroll):t.touches?ht(document,"touchmove",this._handleFallbackAutoScroll):ht(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?xt(document,"dragover",this._handleAutoScroll):(xt(document,"pointermove",this._handleFallbackAutoScroll),xt(document,"touchmove",this._handleFallbackAutoScroll),xt(document,"mousemove",this._handleFallbackAutoScroll)),tl(),el(),clearTimeout(_t),_t=void 0},nulling:function(){Jo=Yo=Lo=Zo=Ko=Vo=qo=null,Qo.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var o=this,l=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(l,r);if(Jo=e,t||this.options.forceAutoScrollFallback||ct||dt||mt){ol(e,this.options,a,t);var n=$t(a,!0);!Zo||Ko&&l===Vo&&r===qo||(Ko&&tl(),Ko=setInterval((function(){var a=$t(document.elementFromPoint(l,r),!0);a!==n&&(n=a,el()),ol(e,o.options,a,t)}),10),Vo=l,qo=r)}else{if(!this.options.bubbleScroll||$t(a,!0)===Bt())return void el();ol(e,this.options,$t(a,!1),!1)}}},it(e,{pluginName:"scroll",initializeByDefault:!0})}),Uo.mount(al,rl);const il=me(b({__name:"index",props:["data"],setup(e,{expose:t}){const o=e,l=P(),r=()=>({componentRefs:l.refs}),a=i(),s=nl({...o,getFormRef:r}),u=n(s.data);return s.onMounted(),s.onPageScroll(),t({refresh:s.refresh,getFormRef:r}),(e,t)=>{const o=H,l=C(S("diy-graphic-nav"),He),r=C(S("diy-horz-blank"),Me),n=C(S("diy-article"),je),i=C(S("diy-horz-line"),Ge),d=C(S("diy-hot-area"),Xe),c=C(S("diy-image-ads"),Le),p=C(S("diy-member-info"),Ye),m=C(S("diy-member-level"),Ve),g=C(S("diy-notice"),qe),f=C(S("diy-rubik-cube"),Je),v=C(S("diy-text"),Ke),h=C(S("diy-rich-text"),Qe),x=C(S("diy-active-cube"),Ze),b=C(S("diy-float-btn"),et),y=C(S("diy-carousel-search"),tt),w=C(S("diy-picture-show"),ot),_=C(S("tabbar"),we);return R(),T(o,{class:"diy-group",id:"componentList"},{default:B((()=>[u.value.global&&Object.keys(u.value.global).length&&u.value.global.topStatusBar&&u.value.global.topStatusBar.isShow?(R(),T(ye,{key:0,scrollBool:I(s).componentsScrollBool.TopTabbar,ref:"topTabbarRef",data:u.value.global},null,8,["scrollBool","data"])):N("v-if",!0),(R(!0),D(W,null,A(u.value.value,((e,t)=>(R(),T(o,{key:e.id,onClick:o=>I(a).changeCurrentIndex(t,e),class:$(I(s).getComponentClass(t,e)),style:F(e.pageStyle)},{default:B((()=>[E(o,{class:"relative",style:F({marginTop:e.margin.top<0?2*e.margin.top+"rpx":"0"})},{default:B((()=>[N(" 装修模式下,设置负上边距后超出的内容,禁止选中设置 "),I(s).isShowPlaceHolder(t,e)?(R(),T(o,{key:0,class:"absolute w-full z-1",style:F({height:2*e.margin.top*-1+"rpx"}),onClick:ie(I(s).placeholderEvent,["stop"])},null,8,["style","onClick"])):N("v-if",!0),"GraphicNav"==e.componentName?(R(),T(l,{key:1,component:e,global:u.value.global,index:t},null,8,["component","global","index"])):N("v-if",!0),"HorzBlank"==e.componentName?(R(),T(r,{key:2,component:e,global:u.value.global,index:t},null,8,["component","global","index"])):N("v-if",!0),"Article"==e.componentName?(R(),T(n,{key:3,component:e,global:u.value.global,index:t},null,8,["component","global","index"])):N("v-if",!0),"HorzLine"==e.componentName?(R(),T(i,{key:4,component:e,global:u.value.global,index:t},null,8,["component","global","index"])):N("v-if",!0),"HotArea"==e.componentName?(R(),T(d,{key:5,component:e,global:u.value.global,index:t},null,8,["component","global","index"])):N("v-if",!0),"ImageAds"==e.componentName?(R(),T(c,{key:6,component:e,global:u.value.global,index:t},null,8,["component","global","index"])):N("v-if",!0),"MemberInfo"==e.componentName?(R(),T(p,{key:7,component:e,global:u.value.global,index:t},null,8,["component","global","index"])):N("v-if",!0),"MemberLevel"==e.componentName?(R(),T(m,{key:8,component:e,global:u.value.global,index:t},null,8,["component","global","index"])):N("v-if",!0),"Notice"==e.componentName?(R(),T(g,{key:9,component:e,global:u.value.global,index:t},null,8,["component","global","index"])):N("v-if",!0),"RubikCube"==e.componentName?(R(),T(f,{key:10,component:e,global:u.value.global,index:t},null,8,["component","global","index"])):N("v-if",!0),"Text"==e.componentName?(R(),T(v,{key:11,component:e,global:u.value.global,index:t},null,8,["component","global","index"])):N("v-if",!0),"RichText"==e.componentName?(R(),T(h,{key:12,component:e,global:u.value.global,index:t},null,8,["component","global","index"])):N("v-if",!0),"ActiveCube"==e.componentName?(R(),T(x,{key:13,component:e,global:u.value.global,index:t},null,8,["component","global","index"])):N("v-if",!0),"FloatBtn"==e.componentName?(R(),T(b,{key:14,component:e,global:u.value.global,index:t},null,8,["component","global","index"])):N("v-if",!0),"CarouselSearch"==e.componentName?(R(),T(y,{key:15,scrollBool:I(s).componentsScrollBool.CarouselSearch,component:e,global:u.value.global,index:t},null,8,["scrollBool","component","global","index"])):N("v-if",!0),"PictureShow"==e.componentName?(R(),T(w,{key:16,component:e,global:u.value.global,index:t},null,8,["component","global","index"])):N("v-if",!0)])),_:2},1032,["style"])])),_:2},1032,["onClick","class","style"])))),128)),""==I(a).mode&&u.value.global&&u.value.global.bottomTabBarSwitch?(R(),D(W,{key:1},[E(o,{class:"pt-[20rpx]"}),E(_)],64)):N("v-if",!0)])),_:1})}}}),[["__scopeId","data-v-7251530d"]]);export{il as d,Pe as u};