全栈小学生 de48812edf up
2024-12-12 18:29:50 +08:00

9 lines
150 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{az as e,aA as t,aB as o,aC as l,aD as r,aE as a,r as n,aF as i,L as s,j as u,E as d,p as c,x as p,U as m,aG as g,J as f,aH as h,aI as v,aJ as b,aK as x,ak as y,d as w,a9 as _,O as C,at as k,aL as S,g as R,h as T,o as B,c as D,w as E,b as F,n as I,u as A,P as W,Q as $,ai as N,R as z,y as O,z as P,f as H,aM as U,aN as M,i as j,B as G,D as L,as as Y,aq as X,ah as V,aO as q,k as Z,l as J,aP as Q,q as K,s as ee,aQ as te,ac as oe,a as le,F as re,t as ae,H as ne,ar as ie,A as se,C as ue,aR as de,aS as ce,m as pe,Y as me,Z as ge,_ as fe,$ as he,a1 as ve,a4 as be,a0 as xe,aT as ye,aU as we,aV as _e,aW as Ce}from"./index-9df77e4b.js";import{_ as ke}from"./u-icon.fd6d3072.js";import{_ as Se}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as Re}from"./u-avatar.ece55b4f.js";import{_ as Te,a as Be}from"./u-popup.7e115191.js";import{_ as De}from"./u-parse.74362838.js";import{u as Ee,_ as Fe}from"./top-tabbar.c0341ad6.js";var Ie="[object Symbol]";var Ae=/\s/;var We=/^\s+/;function $e(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&Ae.test(e.charAt(t)););return t}(e)+1).replace(We,""):e}var Ne=NaN,ze=/^[-+]0x[0-9a-f]+$/i,Oe=/^0b[01]+$/i,Pe=/^0o[0-7]+$/i,He=parseInt;function Ue(l){if("number"==typeof l)return l;if(function(o){return"symbol"==typeof o||e(o)&&t(o)==Ie}(l))return Ne;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=$e(l);var a=Oe.test(l);return a||Pe.test(l)?He(l.slice(2),a?2:8):ze.test(l)?Ne:+l}var Me=1/0,je=17976931348623157e292;function Ge(e){return e?(e=Ue(e))===Me||e===-Me?(e<0?-1:1)*je:e==e?e:0:0===e?e:0}var Le=Math.ceil,Ye=Math.max;var Xe,Ve=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=Ge(e),void 0===t?(t=e,e=0):t=Ge(t),function(e,t,o,l){for(var r=-1,a=Ye(Le((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<t?1:-1:Ge(n),Xe)};const qe=Ve;function Ze(e={}){const t=n(!0),o=i(),l=n(0),r=n(0),a=n(e.name||""),w=n("");let _="";const C=s({pageMode:"diy",title:"",global:{},value:[]}),k=u((()=>"decorate"==o.mode?o:C)),S=n(!1);return{getLoading:()=>t.value,pullDownRefreshCount:l,data:k.value,isShowTopTabbar:S,pageStyle:()=>{var e="";return k.value.global.pageStartBgColor&&(k.value.global.pageStartBgColor&&k.value.global.pageEndBgColor?e+=`background:linear-gradient(${k.value.global.pageGradientAngle},${k.value.global.pageStartBgColor},${k.value.global.pageEndBgColor});`:e+="background-color:"+k.value.global.pageStartBgColor+";"),k.value.global.bottomTabBarSwitch?e+="min-height:calc(100vh - 50px);":e+="min-height:calc(100vh);",k.value.global.bgUrl&&(e+=`background-image:url('${d(k.value.global.bgUrl)}');`),k.value.global.bgHeightScale&&(e+=`background-size: 100% ${k.value.global.bgHeightScale}%;`),e},onLoad:()=>{c((e=>{o.mode=e.mode||"","decorate"==o.mode&&(t.value=!1),r.value=e.id||"",""==a.value&&(a.value=e.name||""),w.value=e.template||""}))},onShow:(e=null)=>{p((()=>{let l=m();_=l[l.length-1]?l[l.length-1].route:"";let n=[];uni.getStorageSync("diyPageBlank")&&(n=uni.getStorageSync("diyPageBlank")),!n.length||n.length&&-1==n.indexOf(_)?o.topFixedStatus="home":n.length&&-1!=n.indexOf(_)&&(o.topFixedStatus="diy"),"decorate"==o.mode?o.init():g({id:r.value,name:a.value,template:w.value}).then((o=>{let l=o.data;if(l.value){C.pageMode=l.mode,C.title=l.title;let e=JSON.parse(l.value);C.global=e.global,C.value=e.value,C.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;")})),S.value=C.value.some((e=>e&&e.position&&"top_fixed"==e.position)),f({title:C.title})}t.value=!1,e&&e(l)}))}))},onHide:(e=null)=>{h((()=>{let t=[];uni.getStorageSync("diyPageBlank")&&(t=uni.getStorageSync("diyPageBlank")),t.length&&(t=Array.from(new Set(t)),t.forEach(((e,t,o)=>{e==_&&o.splice(t,1)}))),"diy"==o.topFixedStatus&&t.push(_),uni.setStorageSync("diyPageBlank",t),e&&e()}))},onUnload:()=>{v((()=>{}))},onPullDownRefresh:()=>{b((()=>{l.value++,x()}))},onPageScroll:()=>{y((e=>{e.scrollTop>0&&(o.scrollTop=e.scrollTop)}))}}}const Je=Se(w({__name:"index",props:["component","index","pullDownRefreshCount"],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:${b.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};_((()=>t.pullDownRefreshCount),((e,t)=>{}));const 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,h=n(uni.getStorageSync(f)||"");C((()=>{x(),"decorate"==o.mode&&_((()=>l.value),((e,t)=>{e&&"GraphicNav"==e.componentName&&x()}))}));const v=M(),b=n(0),x=()=>{k((()=>{(()=>{if("horizontal"==l.value.layout&&"pageSlide"==l.value.showStyle){var e=0;S().in(v).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,h.value=e+"px",uni.setStorageSync(f,h.value)})).exec()}})();S().in(v).select(".diy-graphic-nav").boundingClientRect((e=>{b.value=e.height})).exec()}))},y=()=>{let e=1;return 2==l.value.pageCount&&(e=l.value.list.length>l.value.rowCount?2:1),e},w=(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=j,i=G,u=L,f=R(T("u-icon"),ke),v=Y,b=X,x=V;return B(),D(n,{style:I(A(a))},{default:E((()=>[F(n,{style:I(A(s))},null,8,["style"]),F(n,{class:"diy-graphic-nav relative"},{default:E((()=>["vertical"==A(l).layout?(B(),D(n,{key:0,class:"graphic-nav"},{default:E((()=>[(B(!0),W($,null,N(A(l).list,((e,t)=>(B(),D(n,{class:"graphic-nav-item",key:e.id},{default:E((()=>[F(n,{onClick:t=>A(o).toRedirect(e.link),class:z(["flex items-center justify-between py-3 px-4",0==t?"border-t-0":"border-t"])},{default:E((()=>["text"!=A(l).mode?(B(),D(n,{key:0,class:"graphic-img relative flex items-center w-10 h-10 mr-[20rpx]",style:I({width:2*A(l).imageSize+"rpx",height:2*A(l).imageSize+"rpx"})},{default:E((()=>[e.imageUrl?(B(),D(i,{key:0,src:A(d)(e.imageUrl),mode:"aspectFill",style:I({maxWidth:2*A(l).imageSize+"rpx",maxHeight:2*A(l).imageSize+"rpx",borderRadius:2*A(l).aroundRadius+"rpx"})},null,8,["src","style"])):(B(),D(i,{key:1,src:A(d)("static/resource/images/diy/figure.png"),mode:"aspectFill",style:I({maxWidth:2*A(l).imageSize+"rpx",maxHeight:2*A(l).imageSize+"rpx",borderRadius:2*A(l).aroundRadius+"rpx"})},null,8,["src","style"])),e.label.control?(B(),D(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:I({color:e.label.textColor,backgroundImage:"linear-gradient("+e.label.bgColorStart+","+e.label.bgColorEnd+")"})},{default:E((()=>[O(P(e.label.text),1)])),_:2},1032,["style"])):H("v-if",!0)])),_:2},1032,["style"])):H("v-if",!0),"img"!=A(l).mode?(B(),D(u,{key:1,class:"graphic-text w-full truncate leading-normal",style:I({fontSize:2*A(l).font.size+"rpx",fontWeight:A(l).font.weight,color:A(l).font.color})},{default:E((()=>[O(P(e.title),1)])),_:2},1032,["style"])):H("v-if",!0),F(f,{name:"arrow-right",color:"#999999",size:"12"})])),_:2},1032,["onClick","class"])])),_:2},1024)))),128))])),_:1})):"horizontal"==A(l).layout&&"pageSlide"==A(l).showStyle?(B(),D(n,{key:1,class:"pt-[10rpx]"},{default:E((()=>[F(b,{class:"graphic-nav swiper relative",style:I({height:h.value,width:"95%",margin:"0 auto",opacity:h.value?1:0}),circular:"",onChange:m},{default:E((()=>[(B(!0),W($,null,N(Math.ceil(A(l).list.length/(A(l).pageCount*A(l).rowCount)),((e,t)=>(B(),D(v,{class:"graphic-nav-wrap flex flex-wrap"},{default:E((()=>[(B(!0),W($,null,N(A(l).list,((t,r)=>(B(),W($,null,[g(r,e)?(B(),D(n,{class:z([A(l).mode]),key:t.id,style:I({width:100/A(l).rowCount+"%"})},{default:E((()=>[F(n,{onClick:e=>A(o).toRedirect(t.link),class:"graphic-nav-item flex flex-col items-center py-2"},{default:E((()=>["text"!=A(l).mode?(B(),D(n,{key:0,class:"graphic-img relative flex items-center justify-center w-10 h-10",style:I({width:2*A(l).imageSize+"rpx",height:2*A(l).imageSize+"rpx"})},{default:E((()=>[t.imageUrl?(B(),D(i,{key:0,src:A(d)(t.imageUrl),mode:"aspectFill",style:I({maxWidth:2*A(l).imageSize+"rpx",maxHeight:2*A(l).imageSize+"rpx",borderRadius:2*A(l).aroundRadius+"rpx"})},null,8,["src","style"])):(B(),D(i,{key:1,src:A(d)("static/resource/images/diy/figure.png"),mode:"aspectFill",style:I({maxWidth:2*A(l).imageSize+"rpx",maxHeight:2*A(l).imageSize+"rpx",borderRadius:2*A(l).aroundRadius+"rpx"})},null,8,["src","style"])),t.label.control?(B(),D(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:I({color:t.label.textColor,backgroundImage:"linear-gradient("+t.label.bgColorStart+","+t.label.bgColorEnd+")"})},{default:E((()=>[O(P(t.label.text),1)])),_:2},1032,["style"])):H("v-if",!0)])),_:2},1032,["style"])):H("v-if",!0),"img"!=A(l).mode?(B(),D(u,{key:1,class:z(["graphic-text w-full text-center truncate leading-normal",{"pt-[16rpx]":"text"!=A(l).mode}]),style:I({fontSize:2*A(l).font.size+"rpx",fontWeight:A(l).font.weight,color:A(l).font.color})},{default:E((()=>[O(P(t.title),1)])),_:2},1032,["class","style"])):H("v-if",!0)])),_:2},1032,["onClick"])])),_:2},1032,["class","style"])):H("v-if",!0)],64)))),256))])),_:2},1024)))),256))])),_:1},8,["style"]),A(r)&&h.value?(B(),D(n,{key:0,class:"graphic-nav-indicator-dot"},{default:E((()=>[U("div",{class:z(["dots-wrap",[A(l).swiper.indicatorAlign]])},[(B(!0),W($,null,N(Math.ceil(A(l).list.length/(A(l).pageCount*A(l).rowCount)),((e,t)=>(B(),W("div",{class:z(["dot",t==p.value?"dot-active":"",A(l).swiper.indicatorStyle]),style:I({background:t==p.value?A(l).swiper.indicatorActiveColor:A(l).swiper.indicatorColor})},null,6)))),256))],2)])),_:1})):H("v-if",!0)])),_:1})):"horizontal"==A(l).layout&&2==A(l).pageCount&&"singleSlide"==A(l).showStyle?(B(),D(n,{key:2,style:{width:"98%",margin:"0 auto"},class:z([["graphic-nav multiple-lines","graphic-nav-"+A(l).showStyle],"py-[10rpx]"])},{default:E((()=>[(B(!0),W($,null,N(y(),((e,t)=>(B(),D(x,{class:"graphic-nav-wrap whitespace-nowrap","scroll-x":"singleSlide"==A(l).showStyle},{default:E((()=>[(B(!0),W($,null,N(A(l).list,((t,r)=>(B(),W($,null,[w(r,e)?(B(),D(n,{key:0,onClick:e=>A(o).toRedirect(t.link),style:I(c()),class:"graphic-nav-item inline-flex flex-col items-center box-border py-2"},{default:E((()=>["text"!=A(l).mode?(B(),D(n,{key:0,class:"graphic-img relative flex items-center justify-center w-10 h-10",style:I({width:2*A(l).imageSize+"rpx",height:2*A(l).imageSize+"rpx"})},{default:E((()=>[t.imageUrl?(B(),D(i,{key:0,src:A(d)(t.imageUrl),mode:"aspectFill",style:I({maxWidth:2*A(l).imageSize+"rpx",maxHeight:2*A(l).imageSize+"rpx",borderRadius:2*A(l).aroundRadius+"rpx"})},null,8,["src","style"])):(B(),D(i,{key:1,src:A(d)("static/resource/images/diy/figure.png"),mode:"aspectFill",style:I({maxWidth:2*A(l).imageSize+"rpx",maxHeight:2*A(l).imageSize+"rpx",borderRadius:2*A(l).aroundRadius+"rpx"})},null,8,["src","style"])),t.label.control?(B(),D(u,{key:2,class:z(["tag absolute -top-[10rpx] -right-[24rpx] text-white rounded-[24rpx] rounded-bl-none transform scale-80 py-1 px-2 text-xs"]),style:I({color:t.label.textColor,backgroundImage:"linear-gradient("+t.label.bgColorStart+","+t.label.bgColorEnd+")"})},{default:E((()=>[O(P(t.label.text),1)])),_:2},1032,["style"])):H("v-if",!0)])),_:2},1032,["style"])):H("v-if",!0),"img"!=A(l).mode?(B(),D(u,{key:1,class:z(["graphic-text w-full text-center truncate leading-normal",{"pt-[16rpx]":"text"!=A(l).mode}]),style:I({fontSize:2*A(l).font.size+"rpx",fontWeight:A(l).font.weight,color:A(l).font.color})},{default:E((()=>[O(P(t.title),1)])),_:2},1032,["class","style"])):H("v-if",!0)])),_:2},1032,["onClick","style"])):H("v-if",!0)],64)))),256))])),_:2},1032,["scroll-x"])))),256))])),_:1},8,["class"])):(B(),D(x,{key:3,"scroll-x":"singleSlide"==A(l).showStyle,class:z([["graphic-nav","graphic-nav-"+A(l).showStyle],"py-[10rpx]"])},{default:E((()=>[(B(!0),W($,null,N(A(l).list,((e,t)=>(B(),D(n,{class:z(["graphic-nav-item",{"flex-shrink-0":"singleSlide"==A(l).showStyle}]),key:e.id,style:I({width:100/A(l).rowCount+"%"})},{default:E((()=>[F(n,{onClick:t=>A(o).toRedirect(e.link),class:"flex flex-col items-center box-border py-2"},{default:E((()=>["text"!=A(l).mode?(B(),D(n,{key:0,class:"graphic-img relative flex items-center justify-center w-10 h-10",style:I({width:2*A(l).imageSize+"rpx",height:2*A(l).imageSize+"rpx"})},{default:E((()=>[e.imageUrl?(B(),D(i,{key:0,src:A(d)(e.imageUrl),mode:"aspectFill",style:I({maxWidth:2*A(l).imageSize+"rpx",maxHeight:2*A(l).imageSize+"rpx",borderRadius:2*A(l).aroundRadius+"rpx"})},null,8,["src","style"])):(B(),D(i,{key:1,src:A(d)("static/resource/images/diy/figure.png"),mode:"aspectFill",style:I({maxWidth:2*A(l).imageSize+"rpx",maxHeight:2*A(l).imageSize+"rpx",borderRadius:2*A(l).aroundRadius+"rpx"})},null,8,["src","style"])),e.label.control?(B(),D(u,{key:2,class:z(["tag absolute -top-[10rpx] -right-[24rpx] text-white rounded-[24rpx] rounded-bl-none transform scale-80 py-1 px-2 text-xs"]),style:I({color:e.label.textColor,backgroundImage:"linear-gradient("+e.label.bgColorStart+","+e.label.bgColorEnd+")"})},{default:E((()=>[O(P(e.label.text),1)])),_:2},1032,["style"])):H("v-if",!0)])),_:2},1032,["style"])):H("v-if",!0),"img"!=A(l).mode?(B(),D(u,{key:1,class:z(["graphic-text w-full text-center truncate leading-normal",{"pt-[16rpx]":"text"!=A(l).mode}]),style:I({fontSize:2*A(l).font.size+"rpx",fontWeight:A(l).font.weight,color:A(l).font.color})},{default:E((()=>[O(P(e.title),1)])),_:2},1032,["class","style"])):H("v-if",!0)])),_:2},1032,["onClick"])])),_:2},1032,["class","style"])))),128))])),_:1},8,["scroll-x","class"]))])),_:1})])),_:1},8,["style"])}}}),[["__scopeId","data-v-5d46cd8e"]]),Qe=w({__name:"index",props:["component","index","pullDownRefreshCount"],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 _((()=>t.pullDownRefreshCount),((e,t)=>{})),(e,t)=>{const o=j;return B(),D(o,{style:I(A(r))},null,8,["style"])}}}),Ke=w({__name:"index",props:["component","index","pullDownRefreshCount"],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 _((()=>t.pullDownRefreshCount),((e,t)=>{})),(e,t)=>{const l=j;return B(),D(l,{class:"horz-line-wrap"},{default:E((()=>["decorate"==A(o).mode?(B(),D(l,{key:0,class:"h-[30rpx]"})):H("v-if",!0),F(l,{style:I(A(r))},null,8,["style"]),"decorate"==A(o).mode?(B(),D(l,{key:1,class:"h-[30rpx]"})):H("v-if",!0)])),_:1})}}}),et=w({__name:"index",props:["component","index","pullDownRefreshCount"],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}));C((()=>{n(),_((()=>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 _((()=>t.pullDownRefreshCount),((e,t)=>{})),(e,t)=>{const n=G,i=j;return B(),D(i,{style:I(A(r))},{default:E((()=>[F(i,{class:"simple-graph-wrap overflow-hidden relative leading-0"},{default:E((()=>[A(l).imageUrl?(B(),D(n,{key:0,style:I(A(a)),src:A(d)(A(l).imageUrl),mode:"widthFix","show-menu-by-longpress":!0,class:"w-full"},null,8,["style","src"])):(B(),D(n,{key:1,style:I(A(a)),src:A(d)("static/resource/images/diy/figure.png"),mode:"widthFix","show-menu-by-longpress":!0,class:"w-full"},null,8,["style","src"])),"decorate"!=A(o).mode?(B(),W($,{key:2},[H(" 热区功能 "),(B(!0),W($,null,N(A(l).heatMapData,((e,t)=>(B(),D(i,{onClick:t=>A(o).toRedirect(e.link),class:"absolute",key:t,style:I({width:e.width+"%",height:e.height+"%",left:e.left+"%",top:e.top+"%"})},null,8,["onClick","style"])))),128))],64)):H("v-if",!0)])),_:1})])),_:1},8,["style"])}}}),tt=w({__name:"index",props:["component","index","pullDownRefreshCount"],setup(e){const t=e,o=q(),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}));_((()=>t.pullDownRefreshCount),((e,t)=>{}));const p=u((()=>2*r.value.imageHeight+"rpx")),m=n(0),g=e=>{m.value=e.detail.current};C((()=>{f(),"decorate"==l.mode&&_((()=>r.value),((e,t)=>{e&&"ImageAds"==e.componentName&&f()}))}));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=G,n=j,i=Y,u=X;return B(),D(n,{style:I(A(s))},{default:E((()=>[F(n,{class:"diy-image-ads",style:I(a())},{default:E((()=>[1==A(r).list.length?(B(),D(n,{key:0,class:"leading-0 overflow-hidden",style:I(A(c))},{default:E((()=>[F(n,{onClick:t[0]||(t[0]=e=>A(l).toRedirect(A(r).list[0].link))},{default:E((()=>[A(r).list[0].imageUrl?(B(),D(o,{key:0,src:A(d)(A(r).list[0].imageUrl),style:I({height:A(p)}),mode:"heightFix",class:"!w-full","show-menu-by-longpress":!0},null,8,["src","style"])):(B(),D(o,{key:1,src:A(d)("static/resource/images/diy/figure.png"),style:I({height:A(p)}),mode:"heightFix",class:"!w-full","show-menu-by-longpress":!0},null,8,["src","style"]))])),_:1})])),_:1},8,["style"])):(B(),D(u,{key:1,class:"swiper",style:I({height:A(p)}),autoplay:"true",circular:"true",onChange:g},{default:E((()=>[(B(!0),W($,null,N(A(r).list,(e=>(B(),D(i,{class:"swiper-item",key:e.id,style:I(A(c))},{default:E((()=>[F(n,{onClick:t=>A(l).toRedirect(e.link)},{default:E((()=>[F(n,{class:"item",style:I({height:A(p)})},{default:E((()=>[e.imageUrl?(B(),D(o,{key:0,src:A(d)(e.imageUrl),mode:"scaleToFill",class:"w-full h-full","show-menu-by-longpress":!0},null,8,["src"])):(B(),D(o,{key:1,src:A(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"])}}}),ot=w({__name:"index",props:["component","index","pullDownRefreshCount","global"],setup(e){const t=e,o=Z(),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}));_((()=>t.pullDownRefreshCount),((e,t)=>{}));const s=J(),{query:c}=Q(location.href);c.code&&K()&&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;K()?e&&t?ae({title:"商家未开启登录注册",icon:"none"}):o.login.is_username||o.login.is_mobile||o.login.is_bind_mobile?ne().setLoginBack({url:"/app/pages/member/index"}):e&&o.login.is_auth_register&&ne().getAuthCode({scopes:"snsapi_userinfo"}):e?ae({title:"商家未开启登录注册",icon:"none"}):(o.login.is_username||o.login.is_mobile||o.login.is_bind_mobile)&&ne().setLoginBack({url:"/app/pages/member/index"})};n(!1);const f=()=>{K()?ne().getAuthCode({scopes:"snsapi_userinfo"}):le({url:"/app/pages/member/personal"})};return u((()=>"")),(e,t)=>{const o=R(T("u-avatar"),Re),l=j,n=L;return B(),D(l,{style:I(A(a))},{default:E((()=>[F(l,{class:"pt-[34rpx] member-info"},{default:E((()=>[A(p)?(B(),D(l,{key:0,class:"flex ml-[32rpx] mr-[52rpx] items-center relative"},{default:E((()=>[H(" 唤起获取微信 "),F(o,{src:A(d)(A(p).headimg),size:"55",leftIcon:"none","default-url":A(d)("static/resource/images/default_headimg.png"),onClick:f},null,8,["src","default-url"]),F(l,{class:"ml-[22rpx]"},{default:E((()=>[F(l,{class:"text-[#222222] flex pr-[50rpx] flex-wrap items-center"},{default:E((()=>[F(l,{class:"text-[#222222] truncate max-w-[320rpx] font-bold text-lg mr-[16rpx]",style:I({color:A(r).textColor})},{default:E((()=>[O(P(A(p).nickname),1)])),_:1},8,["style"])])),_:1}),F(l,{class:"text-[#696B70] text-[24rpx] mt-[10rpx]",style:I({color:A(r).textColor})},{default:E((()=>[O("UID"+P(A(p).member_no),1)])),_:1},8,["style"])])),_:1}),F(l,{class:"set-icon flex items-center absolute right-0 top-2"},{default:E((()=>[F(l,{onClick:t[0]||(t[0]=e=>A(le)({url:"/app/pages/setting/index"}))},{default:E((()=>[F(n,{class:"nc-iconfont nc-icon-shezhiV6xx-1 text-[40rpx] ml-[10rpx]",style:I({color:A(r).textColor})},null,8,["style"])])),_:1})])),_:1})])),_:1})):(B(),D(l,{key:1,class:"flex ml-[32rpx] mr-[52rpx] items-center relative"},{default:E((()=>[F(o,{src:A(d)("static/resource/images/default_headimg.png"),size:"55",onClick:g},null,8,["src"]),F(l,{class:"ml-[22rpx]",onClick:g},{default:E((()=>[F(l,{class:"text-[#222222] font-bold text-lg",style:I({color:A(r).textColor})},{default:E((()=>[O(P(A(re)("login"))+"/"+P(A(re)("register")),1)])),_:1},8,["style"])])),_:1}),F(l,{class:"set-icon flex items-center absolute right-0 top-2",onClick:t[1]||(t[1]=e=>A(le)({url:"/app/pages/setting/index"}))},{default:E((()=>[F(l,null,{default:E((()=>[F(n,{class:"nc-iconfont nc-icon-shezhiV6xx-1 text-[40rpx] ml-[10rpx]",style:I({color:A(r).textColor})},null,8,["style"])])),_:1})])),_:1})])),_:1})),F(l,{class:"flex m-[30rpx] mb-0 py-[30rpx] items-center"},{default:E((()=>[F(l,{class:"flex-1 text-center"},{default:E((()=>[F(l,{class:"font-bold"},{default:E((()=>[F(l,{onClick:t[2]||(t[2]=e=>A(le)({url:A(p)?"/app/pages/member/balance":""})),style:I({color:A(r).textColor})},{default:E((()=>[O(P(A(m)),1)])),_:1},8,["style"])])),_:1}),F(l,{class:"text-sm mt-[10rpx]"},{default:E((()=>[F(l,{onClick:t[3]||(t[3]=e=>A(le)({url:A(p)?"/app/pages/member/balance":""})),style:I({color:A(r).textColor})},{default:E((()=>[O(P(A(re)("balance")),1)])),_:1},8,["style"])])),_:1})])),_:1}),F(l,{class:"border-solid border-white border-l border-b-0 border-t-0 border-r-0 h-[60rpx]"}),F(l,{class:"flex-1 text-center"},{default:E((()=>[F(l,{class:"font-bold"},{default:E((()=>[F(l,{onClick:t[4]||(t[4]=e=>A(le)({url:A(p)?"/app/pages/member/point":""})),style:I({color:A(r).textColor})},{default:E((()=>{var e;return[O(P(parseInt(null==(e=A(p))?void 0:e.point)||0),1)]})),_:1},8,["style"])])),_:1}),F(l,{class:"text-sm mt-[10rpx]"},{default:E((()=>[F(l,{onClick:t[5]||(t[5]=e=>A(le)({url:A(p)?"/app/pages/member/point":""})),style:I({color:A(r).textColor})},{default:E((()=>[O(P(A(re)("point")),1)])),_:1},8,["style"])])),_:1})])),_:1})])),_:1})])),_:1})])),_:1},8,["style"])}}}),lt=Se(w({__name:"index",props:["component","index","pullDownRefreshCount"],setup(e){const t=e,o=i(),l=J(),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}));_((()=>t.pullDownRefreshCount),((e,t)=>{}));const s=n(0),c=n(0),p=n(-1),m=n([]),g=n(uni.getStorageSync("wap_member_info")),f=u((()=>"decorate"==o.mode?(s.value=0,m.value=[{title:"商品包邮"}],c.value=1,{member_level_name:"会员等级",growth:5}):g.value||{})),h=u((()=>"decorate"==o.mode?[{}]:(v(l.levelList),l.levelList))),v=e=>{if(!e||!e.length)return!1;let t=!1;f.value&&e&&e.length&&e.forEach(((e,o)=>{e.level_id==f.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>f.value.growth&&e.level_id!=f.value.member_level&&!t&&(p.value=o,t=!0)})),f.value.member_level?(-1==p.value&&(p.value=e.length-1),e[p.value]&&e[p.value].growth&&(s.value=e[p.value].growth-f.value.growth)):(f.value.member_level_name=e[0].level_name,s.value=e[0].growth-f.value.growth,p.value=0,c.value=1)};let b=()=>{let e=100;return h.value[p.value]&&h.value[p.value].growth&&(e=f.value.growth?f.value.growth/h.value[p.value].growth*100:0),e};const x=e=>{if("decorate"==o.mode)return!1;le({url:e})};return(e,t)=>{const o=G,l=L,n=j,i=ie;return A(f)&&A(h)&&A(h).length?(B(),D(n,{key:0,style:I(A(a)),class:"overflow-hidden"},{default:E((()=>["style-1"==A(r).style?(B(),D(n,{key:0,class:"flex items-center justify-between style-bg-1 py-[22rpx] px-[30rpx]"},{default:E((()=>[F(n,{class:"flex items-center"},{default:E((()=>[F(o,{src:A(d)("static/resource/images/diy/member/VIP_02.png"),mode:"aspectFit",class:"w-[50rpx] h-[36rpx]"},null,8,["src"]),F(l,{class:"text-[30rpx] text-[#FFDAA8] ml-[10rpx] font-500 max-w-[440rpx] truncate"},{default:E((()=>[O(P(A(f).member_level_name),1)])),_:1})])),_:1}),F(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:E((()=>[F(l,{class:"text-[24rpx] text-[#333]"},{default:E((()=>[O(P(A(f).member_level?s.value>0?"做任务":"点击查看":"去解锁"),1)])),_:1}),F(l,{class:"iconfont iconxiayibu1 ml-[4rpx] -mb-[2rpx] !text-[14rpx] text-[#333]"})])),_:1})])),_:1})):H("v-if",!0),"style-2"==A(r).style?(B(),D(n,{key:1,class:"flex items-center justify-between style-bg-2 p-[30rpx]"},{default:E((()=>[F(n,{class:"flex flex-col"},{default:E((()=>[F(n,{class:"flex items-center"},{default:E((()=>[F(o,{src:A(d)("static/resource/images/diy/member/VIP_01.png"),mode:"aspectFit",class:"w-[74rpx] h-[30rpx]"},null,8,["src"]),F(l,{class:"text-[32rpx] text-[#FFE3B1] leading-[normal] ml-[14rpx] font-500 max-w-[420rpx] truncate"},{default:E((()=>[O(P(A(f).member_level_name),1)])),_:1})])),_:1}),m.value&&m.value.length?(B(),D(l,{key:0,class:"text-[#FFE3B1] opacity-80 text-[24rpx] mt-[10rpx] leading-[32rpx]"},{default:E((()=>[O(P(A(f).member_level_name)+"购物享"+P(m.value[0].title),1)])),_:1})):H("v-if",!0)])),_:1}),F(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:E((()=>[F(l,{class:"text-[24rpx] text-[#333]"},{default:E((()=>[O(P(A(f).member_level?s.value>0?"做任务":"点击查看":"去解锁"),1)])),_:1}),F(l,{class:"iconfont iconxiayibu1 ml-[4rpx] -mb-[2rpx] !text-[14rpx] text-[#333]"})])),_:1})])),_:1})):H("v-if",!0),"style-3"==A(r).style?(B(),D(n,{key:2,class:"style-bg-3 py-[var(--pad-top-m)] px-[var(--pad-sidebar-m)]"},{default:E((()=>[F(n,{class:"flex items-center justify-between style-border-3 mb-[30rpx] pb-[40rpx]"},{default:E((()=>[F(n,{class:"flex flex-col flex-1"},{default:E((()=>[F(n,{class:"flex items-center justify-between"},{default:E((()=>[F(n,{class:"flex items-center"},{default:E((()=>[F(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:I({backgroundImage:"url("+A(d)("static/resource/images/diy/member/VIP.png")+")"})},{default:E((()=>[O(" VIP."+P(c.value),1)])),_:1},8,["style"]),F(l,{class:"text-[#733F02] ml-[8rpx] text-[30rpx] font-500 max-w-[380rpx] truncate"},{default:E((()=>[O(P(A(f).member_level_name),1)])),_:1})])),_:1}),F(n,{class:"flex items-center",onClick:t[2]||(t[2]=e=>x("/app/pages/member/level"))},{default:E((()=>[F(n,{class:"inline-block"},{default:E((()=>[F(l,{class:"nc-iconfont nc-icon-a-bangzhuV6xx-36 !text-[22rpx] text-[#733F02]"}),F(l,{class:"text-[22rpx] text-[#733F02] ml-[6rpx] leading-[24rpx]"},{default:E((()=>[O("规则")])),_:1})])),_:1}),F(n,{class:"ml-[2rpx] -mb-[4rpx] text-[#733F02] !text-[24rpx] nc-iconfont nc-icon-youV6xx"})])),_:1})])),_:1}),F(l,{class:"text-[24rpx] text-[#794200] mt-[10rpx]"},{default:E((()=>[O("购物或邀请好友可以提升等级")])),_:1})])),_:1})])),_:1}),F(n,{class:"flex items-center justify-between"},{default:E((()=>[F(n,{class:"flex flex-col flex-1 mt-[2rpx]"},{default:E((()=>[F(n,{class:"overflow-hidden rounded-[20rpx]"},{default:E((()=>[F(i,{percent:A(b)(),activeColor:"#fff",backgroundColor:"rgba(255,5,5,0.1)","stroke-width":"4"},null,8,["percent"])])),_:1}),s.value>0?(B(),D(l,{key:0,class:"text-[22rpx] ml-[2rpx] leading-[1.4] text-[#794200] mt-[16rpx]"},{default:E((()=>[O("还差"+P(s.value)+"成长值即可升级为"+P(A(h)[p.value].level_name),1)])),_:1})):(B(),D(l,{key:1,class:"text-[22rpx] ml-[2rpx] text-[#794200] mt-[16rpx]"},{default:E((()=>[O("恭喜您升级为最高等级")])),_:1}))])),_:1}),F(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:E((()=>[O(P(A(f).member_level?s.value>0?"做任务":"点击查看":"去解锁"),1)])),_:1})])),_:1})])),_:1})):H("v-if",!0),"style-4"==A(r).style?(B(),D(n,{key:3,class:"flex items-center justify-between style-4 px-[24rpx] py-[20rpx]",style:I({backgroundImage:"url("+A(d)("static/resource/images/diy/member/style4_bg.jpg")+")"})},{default:E((()=>[F(n,{class:"flex flex-col"},{default:E((()=>[F(n,{class:"flex items-center"},{default:E((()=>[F(o,{src:A(d)("static/resource/images/diy/member/style4_vip.png"),mode:"aspectFit",class:"w-[70rpx] h-[32rpx] pt-[1rpx]"},null,8,["src"]),F(l,{class:"text-[30rpx] text-[#FFEFB0] leading-[normal] ml-[8rpx] font-500 max-w-[420rpx] truncate"},{default:E((()=>[O(P(A(f).member_level_name),1)])),_:1})])),_:1}),m.value&&m.value.length?(B(),D(n,{key:0,class:"text-[#B0B0B0] text-[24rpx] mt-[10rpx] leading-[32rpx]"},{default:E((()=>[F(l,null,{default:E((()=>[O(P(A(f).member_level_name)+"购物享",1)])),_:1}),F(l,{class:"text-[#FFEFB0]"},{default:E((()=>[O(P(m.value[0].title),1)])),_:1})])),_:1})):H("v-if",!0)])),_:1}),F(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:E((()=>[F(l,{class:"text-[22rpx] text-[#333] mr-[8rpx]"},{default:E((()=>[O(P(A(f).member_level?s.value>0?"做任务":"点击查看":"去解锁"),1)])),_:1}),F(o,{src:A(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"])):H("v-if",!0),"style-5"==A(r).style?(B(),D(n,{key:4,class:"style-5",style:I({backgroundImage:"url("+A(d)("static/resource/images/diy/member/style5_bg.jpg")+")"})},{default:E((()=>[F(n,{class:"content-head pt-[16rpx] pb-[10rpx] px-[24rpx] flex items-center justify-between"},{default:E((()=>[F(n,{class:"flex items-center"},{default:E((()=>[F(o,{src:A(d)("static/resource/images/diy/member/style5_vip.png"),mode:"aspectFit",class:"w-[40rpx] h-[40rpx]"},null,8,["src"]),F(l,{class:"text-[#FFFBE2] ml-[10rpx] text-[30rpx] font-500 max-w-[470rpx] truncate"},{default:E((()=>[O(P(A(f).member_level_name),1)])),_:1})])),_:1}),F(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:E((()=>[F(l,{class:"text-[22rpx] text-[#333] font-500 pb-[2rpx]"},{default:E((()=>[O(P(A(f).member_level?s.value>0?"做任务":"点击查看":"去解锁"),1)])),_:1}),F(o,{src:A(d)("static/resource/images/diy/member/style5_arrow_01.png"),mode:"aspectFit",class:"w-[22rpx] h-[22rpx] pb-[1rpx]"},null,8,["src"])])),_:1})])),_:1}),F(n,{class:"flex flex-col pt-[28rpx] pb-[30rpx] px-[24rpx]"},{default:E((()=>[F(n,{class:"flex items-center justify-between pb-[16rpx]"},{default:E((()=>[s.value>0?(B(),D(l,{key:0,class:"text-[22rpx] ml-[2rpx] leading-[1.4] text-[#FFFBE2]"},{default:E((()=>[O("还差"+P(s.value)+"成长值即可升级为"+P(A(h)[p.value].level_name),1)])),_:1})):(B(),D(l,{key:1,class:"text-[22rpx] ml-[2rpx] text-[#FFFBE2]"},{default:E((()=>[O("恭喜您升级为最高等级")])),_:1})),F(n,{class:"flex items-center",onClick:t[6]||(t[6]=e=>x("/app/pages/member/level"))},{default:E((()=>[F(l,{class:"nc-iconfont nc-icon-a-bangzhuV6xx-36 !text-[22rpx] text-[#FFFBE2]"}),F(l,{class:"text-[22rpx] text-[#FFFBE2] ml-[6rpx] leading-[24rpx]"},{default:E((()=>[O("规则")])),_:1}),F(n,{class:"ml-[2rpx] -mb-[4rpx] text-[#FFFBE2] !text-[24rpx] nc-iconfont nc-icon-youV6xx"})])),_:1})])),_:1}),F(n,{class:"overflow-hidden rounded-[20rpx]"},{default:E((()=>[F(i,{percent:A(b)(),activeColor:"#fff",backgroundColor:"rgba(255,255,255,0.4)","stroke-width":"4"},null,8,["percent"])])),_:1})])),_:1})])),_:1},8,["style"])):H("v-if",!0)])),_:1},8,["style"])):H("v-if",!0)}}}),[["__scopeId","data-v-9b892f6b"]]),rt=Se(w({__name:"index",props:["component","index","pullDownRefreshCount"],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:${x.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}));_((()=>t.pullDownRefreshCount),((e,t)=>{}));const p=n(0),m=n(0),g=n(""),f=n(0),h=n(800),v=()=>{"horizontal"==a.value.scrollWay&&setTimeout((()=>{k((()=>{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: ${h.value}ms;`)}))}))};C((()=>{v(),y(),"decorate"==o.mode&&_((()=>a.value),((e,t)=>{e&&"Notice"==e.componentName&&(v(),y())}))}));const b=M(),x=n(0),y=()=>{k((()=>{S().in(b).select(".diy-notice").boundingClientRect((e=>{x.value=e.height})).exec()}))},w=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=j,n=G,i=L,u=Y,f=X,h=V,v=ue,b=R(T("u-popup"),Te);return B(),D(o,{style:I(A(s))},{default:E((()=>[F(o,{style:I(A(c))},null,8,["style"]),F(o,{class:"diy-notice relative overflow-hidden"},{default:E((()=>[F(o,{class:"flex items-center pl-[28rpx] p-[22rpx]"},{default:E((()=>["img"==A(a).noticeType?(B(),D(o,{key:0,class:"min-w-[60rpx] flex items-center"},{default:E((()=>["system"==A(a).imgType?(B(),W($,{key:0},["style_1"==A(a).systemUrl?(B(),D(n,{key:0,src:A(d)(`static/resource/images/diy/notice/${A(a).systemUrl}.png`),class:"h-[40rpx] w-[auto] mr-[20rpx] flex-shrink-0",mode:"heightFix"},null,8,["src"])):"style_2"==A(a).systemUrl?(B(),D(n,{key:1,src:A(d)(`static/resource/images/diy/notice/${A(a).systemUrl}.png`),class:"w-[200rpx] mr-[20rpx] h-[30rpx] flex-shrink-0",mode:"heightFix"},null,8,["src"])):H("v-if",!0)],64)):"diy"==A(a).imgType?(B(),D(n,{key:1,src:A(d)(A(a).imageUrl||""),class:"w-[200rpx] h-[30rpx] mr-[20rpx] flex-shrink-0",mode:"heightFix"},null,8,["src"])):H("v-if",!0)])),_:1})):H("v-if",!0),"text"==A(a).noticeType&&A(a).noticeTitle?(B(),D(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:E((()=>[O(P(A(a).noticeTitle),1)])),_:1})):H("v-if",!0),F(o,{class:z(["flex-1 flex overflow-hidden horizontal-body",{"items-center":"upDown"==A(a).scrollWay}]),id:"horizontal-body-"+A(a).id},{default:E((()=>[H(" 横向滚动 "),"horizontal"==A(a).scrollWay?(B(),D(o,{key:0,class:"horizontal-wrap",style:I(g.value)},{default:E((()=>[F(o,{class:"marquee marquee-one",id:"marquee-one"},{default:E((()=>[(B(!0),W($,null,N(A(a).list,((e,t)=>(B(),D(o,{class:z(["item flex-shrink-0 !leading-[40rpx] h-[40rpx]",{"ml-[80rpx]":t}]),key:t,onClick:t=>w(e),style:I({color:A(a).textColor,fontSize:2*A(a).fontSize+"rpx",fontWeight:A(a).fontWeight})},{default:E((()=>[O(P(e.text),1)])),_:2},1032,["class","onClick","style"])))),128))])),_:1}),p.value<m.value-30?(B(),D(o,{key:0,class:"marquee"},{default:E((()=>[(B(!0),W($,null,N(A(a).list,((e,t)=>(B(),D(o,{class:z(["item flex-shrink-0 !leading-[40rpx] h-[40rpx]",{"ml-[80rpx]":t}]),key:t,onClick:t=>w(e),style:I({color:A(a).textColor,fontSize:2*A(a).fontSize+"rpx",fontWeight:A(a).fontWeight})},{default:E((()=>[O(P(e.text),1)])),_:2},1032,["class","onClick","style"])))),128))])),_:1})):H("v-if",!0)])),_:1},8,["style"])):H("v-if",!0),H(" 上下滚动 "),"upDown"==A(a).scrollWay?(B(),W($,{key:1},[F(f,{vertical:!0,duration:500,autoplay:"true",circular:"true",class:"flex-1"},{default:E((()=>[(B(!0),W($,null,N(A(a).list,((e,o)=>(B(),D(u,{key:o,onTouchmove:t[0]||(t[0]=se((()=>{}),["prevent","stop"]))},{default:E((()=>[F(i,{onClick:t=>w(e),class:"beyond-hiding truncate",style:I({color:A(a).textColor,fontSize:2*A(a).fontSize+"rpx",fontWeight:A(a).fontWeight})},{default:E((()=>[O(P(e.text),1)])),_:2},1032,["onClick","style"])])),_:2},1024)))),128))])),_:1}),F(i,{class:"nc-iconfont nc-icon-youV6xx text-[26rpx] -ml-[8rpx] pl-[30rpx]",style:I({color:"#999",fontWeight:A(a).fontWeight})},null,8,["style"])],64)):H("v-if",!0)])),_:1},8,["id","class"])])),_:1}),F(o,{onTouchmove:t[3]||(t[3]=se((()=>{}),["prevent","stop"]))},{default:E((()=>[F(b,{show:l.value,onClose:t[2]||(t[2]=e=>l.value=!1),mode:"center",round:"var(--rounded-big)",safeAreaInsetBottom:!1},{default:E((()=>[F(o,{class:"w-[570rpx] px-[32rpx] popup-common center"},{default:E((()=>[F(o,{class:"title"},{default:E((()=>[O("公告")])),_:1}),F(h,{"scroll-y":!0,class:"px-[30rpx] box-border h-[260rpx]"},{default:E((()=>[(B(!0),W($,null,N(r.value.split("\n"),(e=>(B(),D(o,{class:"text-[28rpx] leading-[40rpx] mb-[20rpx]"},{default:E((()=>[O(P(e),1)])),_:2},1024)))),256))])),_:1}),F(o,{class:"btn-wrap !pt-[40rpx]"},{default:E((()=>[F(v,{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:E((()=>[O("我知道了")])),_:1})])),_:1})])),_:1})])),_:1},8,["show"])])),_:1})])),_:1})])),_:1},8,["style"])}}}),[["__scopeId","data-v-59d99421"]]),at=Se(w({__name:"index",props:["component","index","pullDownRefreshCount"],setup(e){const t=e,o=i(),l=u((()=>"decorate"==o.mode?o.value[t.index]:t.component)),r=e=>ce(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}));_((()=>t.pullDownRefreshCount),((e,t)=>{})),C((()=>{m(),"decorate"==o.mode?_((()=>l.value),((e,t)=>{e&&"RubikCube"==e.componentName&&m()})):_((()=>l.value),((e,t)=>{m()}))}));const c=M(),p=n(0),m=()=>{"decorate"==o.mode&&l.value.list.forEach((e=>{""==e.imageUrl&&(e.imgWidth=690,e.imgHeight=330)})),g(),k((()=>{S().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?h():"row1-lt-of2-rt"==l.value.mode?v():"row1-tp-of2-bm"==l.value.mode?b():"row1-lt-of1-tp-of2-bm"==l.value.mode&&x()},f=e=>{de({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<a.imgHeight)&&(o=a.imgHeight)})),l.value.list.forEach(((t,l)=>{t.widthStyle=e.width,t.imgHeight=o}))}})},h=()=>{de({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||t<a.imgHeight)&&(t=a.imgHeight):n>1&&(0==o||o<a.imgHeight)&&(o=a.imgHeight)})),l.value.list.forEach(((e,a)=>{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)}))}})},v=()=>{let e=0;l.value.list[1].imgWidth,l.value.list[2].imgWidth,de({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}))}})},b=()=>{var e=0;de({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<o.imgHeight)&&(e=o.imgHeight)})),l.value.list.forEach(((t,o)=>{t.imgWidth+="px",t.widthStyle=t.imgWidth,o>0&&(t.imgHeight=e)}))}})},x=()=>{de({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=j,n=G;return B(),D(r,{style:I(A(a))},{default:E((()=>[F(r,{style:I(A(s))},null,8,["style"]),F(r,{class:z(["rubik-cube relative",A(o).mode])},{default:E((()=>[H(" 1左2右 "),"row1-lt-of2-rt"==A(l).mode?(B(),W($,{key:0},[F(r,{class:"template-left"},{default:E((()=>[F(r,{onClick:t[0]||(t[0]=e=>A(o).toRedirect(A(l).list[0].link)),class:z(["item",A(l).mode]),style:I({marginRight:2*A(l).imageGap+"rpx",width:A(l).list[0].imgWidth,height:A(l).list[0].imgHeight+"px"})},{default:E((()=>[A(l).list[0].imageUrl?(B(),D(n,{key:0,src:A(d)(A(l).list[0].imageUrl),mode:"scaleToFill",style:I(A(l).list[0].pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])):(B(),D(n,{key:1,src:A(d)("static/resource/images/diy/figure.png"),mode:"scaleToFill",style:I(A(l).list[0].pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"]))])),_:1},8,["class","style"])])),_:1}),F(r,{class:"template-right"},{default:E((()=>[(B(!0),W($,null,N(A(l).list,((e,t)=>(B(),W($,{key:t},[t>0?(B(),D(r,{key:0,onClick:t=>A(o).toRedirect(e.link),class:z(["item",A(l).mode]),style:I({marginBottom:2*A(l).imageGap+"rpx",width:e.imgWidth,height:e.imgHeight+"px"})},{default:E((()=>[e.imageUrl?(B(),D(n,{key:0,src:A(d)(e.imageUrl),mode:"scaleToFill",style:I(e.pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])):(B(),D(n,{key:1,src:A(d)("static/resource/images/diy/figure.png"),mode:"scaleToFill",style:I(e.pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"]))])),_:2},1032,["onClick","class","style"])):H("v-if",!0)],64)))),128))])),_:1})],64)):"row1-lt-of1-tp-of2-bm"==A(l).mode?(B(),W($,{key:1},[H(" 1左3右 "),F(r,{class:"template-left"},{default:E((()=>[F(r,{onClick:t[1]||(t[1]=e=>A(o).toRedirect(A(l).list[0].link)),class:z(["item",A(l).mode]),style:I({marginRight:2*A(l).imageGap+"rpx",width:A(l).list[0].imgWidth,height:A(l).list[0].imgHeight+"px"})},{default:E((()=>[A(l).list[0].imageUrl?(B(),D(n,{key:0,src:A(d)(A(l).list[0].imageUrl),mode:"scaleToFill",style:I(A(l).list[0].pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])):(B(),D(n,{key:1,src:A(d)("static/resource/images/diy/figure.png"),mode:"scaleToFill",style:I(A(l).list[0].pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"]))])),_:1},8,["class","style"])])),_:1}),F(r,{class:"template-right"},{default:E((()=>[F(r,{onClick:t[2]||(t[2]=e=>A(o).toRedirect(A(l).list[1].link)),class:z(["item",A(l).mode]),style:I({marginBottom:2*A(l).imageGap+"rpx",width:A(l).list[1].imgWidth,height:A(l).list[1].imgHeight+"px"})},{default:E((()=>[A(l).list[1].imageUrl?(B(),D(n,{key:0,src:A(d)(A(l).list[1].imageUrl),mode:"scaleToFill",style:I(A(l).list[1].pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])):(B(),D(n,{key:1,src:A(d)("static/resource/images/diy/figure.png"),mode:"scaleToFill",style:I(A(l).list[1].pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"]))])),_:1},8,["class","style"]),F(r,{class:"template-bottom"},{default:E((()=>[(B(!0),W($,null,N(A(l).list,((e,t)=>(B(),W($,{key:t},[t>1?(B(),D(r,{key:0,onClick:t=>A(o).toRedirect(e.link),class:z(["item",A(l).mode]),style:I({marginRight:2*A(l).imageGap+"rpx",width:e.imgWidth,height:e.imgHeight+"px"})},{default:E((()=>[e.imageUrl?(B(),D(n,{key:0,src:A(d)(e.imageUrl),mode:"scaleToFill",style:I(e.pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])):(B(),D(n,{key:1,src:A(d)("static/resource/images/diy/figure.png"),mode:"scaleToFill",style:I(e.pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"]))])),_:2},1032,["onClick","class","style"])):H("v-if",!0)],64)))),128))])),_:1})])),_:1})],64)):(B(!0),W($,{key:2},N(A(l).list,((e,t)=>(B(),D(r,{class:z(["item",A(l).mode]),key:t,onClick:t=>A(o).toRedirect(e.link),style:I({marginRight:2*A(l).imageGap+"rpx",marginBottom:2*A(l).imageGap+"rpx",width:e.widthStyle,height:e.imgHeight+"px"})},{default:E((()=>[e.imageUrl?(B(),D(n,{key:0,src:A(d)(e.imageUrl),mode:"scaleToFill",style:I(e.pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])):(B(),D(n,{key:1,src:A(d)("static/resource/images/diy/figure.png"),mode:"scaleToFill",style:I(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-f2b0f138"]]),nt=w({__name:"index",props:["component","index","pullDownRefreshCount"],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}));_((()=>t.pullDownRefreshCount),((e,t)=>{})),C((()=>{p(),"decorate"==o.mode&&_((()=>l.value),((e,t)=>{e&&"Text"==e.componentName&&p()}))}));const s=M(),c=n(0),p=()=>{k((()=>{S().in(s).select(".diy-text").boundingClientRect((e=>{c.value=e.height})).exec()}))};return(e,t)=>{const n=j,i=L;return B(),D(n,{style:I(A(r))},{default:E((()=>[F(n,{style:I(A(a))},null,8,["style"]),F(n,{class:"diy-text relative"},{default:E((()=>["style-1"==A(l).style?(B(),D(n,{key:0,class:"px-[var(--pad-sidebar-m)]"},{default:E((()=>[F(n,{onClick:t[0]||(t[0]=e=>A(o).toRedirect(A(l).link))},{default:E((()=>[F(n,{class:"leading-[1]",style:I({fontSize:2*A(l).fontSize+"rpx",color:A(l).textColor,fontWeight:"normal"==A(l).fontWeight?500:A(l).fontWeight,textAlign:A(l).textAlign})},{default:E((()=>[O(P(A(l).text),1)])),_:1},8,["style"])])),_:1})])),_:1})):H("v-if",!0),"style-2"==A(l).style?(B(),D(n,{key:1,class:"px-[20rpx] flex items-center"},{default:E((()=>[F(n,{onClick:t[1]||(t[1]=e=>A(o).toRedirect(A(l).link))},{default:E((()=>[F(n,{class:"max-w-[200rpx] truncate leading-[1]",style:I({fontSize:2*A(l).fontSize+"rpx",color:A(l).textColor,fontWeight:"normal"==A(l).fontWeight?500:A(l).fontWeight})},{default:E((()=>[O(P(A(l).text),1)])),_:1},8,["style"])])),_:1}),A(l).subTitle.text?(B(),D(i,{key:0,style:I({background:A(l).subTitle.color}),class:"mx-[10rpx] w-[2rpx] h-[24rpx] opacity-70"},null,8,["style"])):H("v-if",!0),F(i,{class:"max-w-[300rpx] truncate",style:I({color:A(l).subTitle.color,fontSize:2*A(l).subTitle.fontSize+"rpx"})},{default:E((()=>[O(P(A(l).subTitle.text),1)])),_:1},8,["style"]),A(l).more.isShow?(B(),D(n,{key:1,class:"ml-auto text-right",style:I({color:A(l).more.color})},{default:E((()=>[F(n,{onClick:t[2]||(t[2]=e=>A(o).toRedirect(A(l).more.link)),class:"flex items-center"},{default:E((()=>[F(i,{class:"max-w-[200rpx] truncate text-[26rpx]"},{default:E((()=>[O(P(A(l).more.text),1)])),_:1}),F(i,{class:"nc-iconfont nc-icon-youV6xx text-[24rpx]",style:I({color:A(l).more.color})},null,8,["style"])])),_:1})])),_:1},8,["style"])):H("v-if",!0)])),_:1})):H("v-if",!0)])),_:1})])),_:1},8,["style"])}}}),it=w({__name:"index",props:["component","index","pullDownRefreshCount"],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}));_((()=>t.pullDownRefreshCount),((e,t)=>{})),C((()=>{p(),"decorate"==o.mode&&_((()=>l.value),((e,t)=>{e&&"RichText"==e.componentName&&p()}))}));const s=M(),c=n(0),p=()=>{k((()=>{S().in(s).select(".diy-rich-text").boundingClientRect((e=>{c.value=e.height})).exec()}))};return(e,t)=>{const o=j,n=R(T("u-parse"),De),i=L;return B(),D(o,{style:I(A(r))},{default:E((()=>[F(o,{style:I(A(a))},null,8,["style"]),F(o,{class:"diy-rich-text relative"},{default:E((()=>[A(l).html&&"<p><br></p>"!=A(l).html?(B(),D(o,{key:0},{default:E((()=>[F(n,{content:A(l).html,tagStyle:{img:"vertical-align: top;"}},null,8,["content"])])),_:1})):(B(),W($,{key:1},[F(o,null,{default:E((()=>[O("点此编辑『富文本』内容 ——>")])),_:1}),F(o,null,{default:E((()=>[F(i,null,{default:E((()=>[O("你可以对文字进行")])),_:1}),F(i,null,{default:E((()=>[O("、")])),_:1}),F(i,{class:"font-bold"},{default:E((()=>[O("加粗")])),_:1}),F(i,null,{default:E((()=>[O("、")])),_:1}),F(i,{class:"italic"},{default:E((()=>[O("斜体")])),_:1}),F(i,null,{default:E((()=>[O("、")])),_:1}),F(i,{class:"underline"},{default:E((()=>[O("下划线")])),_:1}),F(i,null,{default:E((()=>[O("、")])),_:1}),F(i,{class:"line-through"},{default:E((()=>[O("删除线")])),_:1}),F(i,null,{default:E((()=>[O("、文字")])),_:1}),F(i,{style:{color:"rgb(0, 176, 240)"}},{default:E((()=>[O("颜色")])),_:1}),F(i,null,{default:E((()=>[O("、")])),_:1}),F(i,{style:{"background-color":"rgb(255, 192, 0)",color:"rgb(255, 255, 255)"}},{default:E((()=>[O("背景色")])),_:1}),F(i,null,{default:E((()=>[O("、以及字号")])),_:1}),F(i,{class:"text-lg"},{default:E((()=>[O("大")])),_:1}),F(i,{class:"text-sm"},{default:E((()=>[O("小")])),_:1}),F(i,{class:"pl-[10rpx]"},{default:E((()=>[O("等简单排版操作。")])),_:1})])),_:1}),F(o,null,{default:E((()=>[O("也可在这里插入图片、并对图片加上超级链接,方便用户点击。")])),_:1})],64))])),_:1})])),_:1},8,["style"])}}}),st=Se(w({__name:"index",props:["component","index","pullDownRefreshCount"],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});`};_((()=>t.pullDownRefreshCount),((e,t)=>{})),C((()=>{h(),"decorate"==o.mode?_((()=>l.value),((e,t)=>{e&&"ActiveCube"==e.componentName&&h()})):_((()=>l.value),((e,t)=>{h()}))}));const g=M(),f=n(0),h=()=>{k((()=>{S().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=j,i=L,u=G,g=R(T("u-icon"),ke),f=V;return B(),D(n,{style:I(A(r))},{default:E((()=>[F(n,{style:I(A(a))},null,8,["style"]),F(n,{class:"diy-active-cube relative"},{default:E((()=>[F(n,{class:"active-cube-wrap pt-[28rpx] px-[20rpx] pb-[24rpx]"},{default:E((()=>["style-1"==A(l).titleStyle.value?(B(),D(n,{key:0,class:"flex items-center"},{default:E((()=>[F(n,{class:"mr-[10rpx] font-500 text-[30rpx]",style:I({color:A(l).titleColor}),onClick:t[0]||(t[0]=e=>A(o).toRedirect(A(l).textLink))},{default:E((()=>[O(P(A(l).text),1)])),_:1},8,["style"]),A(l).subTitle.text?(B(),D(n,{key:0,onClick:t[1]||(t[1]=e=>A(o).toRedirect(A(l).subTitle.link)),class:"text-center text-[22rpx] rounded-[40rpx] rounded-tl-[10rpx] py-[6rpx] px-[14rpx]",style:I({color:A(l).subTitle.textColor,background:"linear-gradient(90deg, "+A(l).subTitle.startColor+", "+A(l).subTitle.endColor+")"})},{default:E((()=>[O(P(A(l).subTitle.text),1)])),_:1},8,["style"])):H("v-if",!0)])),_:1})):H("v-if",!0),"style-2"==A(l).titleStyle.value?(B(),D(n,{key:1,class:"flex items-center"},{default:E((()=>[F(n,{class:"mr-[10rpx] font-500 text-[30rpx]",style:I({color:A(l).titleColor}),onClick:t[2]||(t[2]=e=>A(o).toRedirect(A(l).textLink))},{default:E((()=>[O(P(A(l).text),1)])),_:1},8,["style"]),A(l).subTitle.text?(B(),D(n,{key:0,onClick:t[3]||(t[3]=e=>A(o).toRedirect(A(l).subTitle.link)),class:"text-center text-[22rpx] rounded-[6rpx] py-[6rpx] px-[14rpx]",style:I({color:A(l).subTitle.textColor,background:"linear-gradient(90deg, "+A(l).subTitle.startColor+", "+A(l).subTitle.endColor+")"})},{default:E((()=>[O(P(A(l).subTitle.text),1)])),_:1},8,["style"])):H("v-if",!0)])),_:1})):H("v-if",!0),"style-3"==A(l).titleStyle.value?(B(),D(n,{key:2,class:"flex items-center"},{default:E((()=>[F(n,{class:"mr-[10rpx] font-500 text-[30rpx]",onClick:t[4]||(t[4]=e=>A(o).toRedirect(A(l).textLink)),style:I({color:A(l).titleColor})},{default:E((()=>[O(P(A(l).text),1)])),_:1},8,["style"]),F(n,{class:"relative h-[36rpx]",onClick:t[5]||(t[5]=e=>A(o).toRedirect(A(l).subTitle.link))},{default:E((()=>[A(l).subTitle.text?(B(),D(n,{key:0,class:"flex items-center text-[22rpx] leading-0 min-w-[60rpx] h-[34rpx] pl-[10rpx] pr-[34rpx]",style:I({color:A(l).subTitle.textColor,"background-image":"url("+A(d)("static/resource/images/diy/active_cube/bg_2.png")+")","background-size":"100% 100%","background-repeat":"no-repeat"})},{default:E((()=>[O(P(A(l).subTitle.text),1)])),_:1},8,["style"])):H("v-if",!0),H(' \t\t\t\t\t\t<image class="absolute left-0 top-0 bottom-0 !w-[16rpx] !h-[36rpx]" :src="img(\'static/resource/images/diy/active_cube/block_style2_1.png\')" mode="scaleToFill"/>\r\n\t\t\t\t\t\t<image class="absolute right-0 top-0 bottom-0 !w-[28rpx] !h-[36rpx]" :src="img(\'static/resource/images/diy/active_cube/block_style2_2.png\')" mode="scaleToFill"/> ')])),_:1})])),_:1})):H("v-if",!0),"style-4"==A(l).titleStyle.value?(B(),D(n,{key:3,class:"flex items-center justify-between"},{default:E((()=>[F(n,{class:"font-500 text-[30rpx]",onClick:t[6]||(t[6]=e=>A(o).toRedirect(A(l).textLink)),style:I({color:A(l).titleColor})},{default:E((()=>[O(P(A(l).text),1)])),_:1},8,["style"]),A(l).subTitle.text?(B(),D(n,{key:0,onClick:t[7]||(t[7]=e=>A(o).toRedirect(A(l).subTitle.link)),class:"text-[22rpx] rounded-[40rpx] pl-[16rpx] pr-[8rpx] h-[42rpx] flex-center",style:I({color:A(l).subTitle.textColor,background:"linear-gradient(90deg, "+A(l).subTitle.startColor+", "+A(l).subTitle.endColor+")"})},{default:E((()=>[F(i,null,{default:E((()=>[O(P(A(l).subTitle.text),1)])),_:1}),F(i,{class:"nc-iconfont nc-icon-youV6xx !text-[26rpx]"})])),_:1},8,["style"])):H("v-if",!0)])),_:1})):H("v-if",!0),"style-5"==A(l).titleStyle.value?(B(),D(n,{key:4,class:"flex items-center"},{default:E((()=>[A(l).textImg?(B(),D(n,{key:0,class:"h-[32rpx] flex items-center",onClick:t[8]||(t[8]=e=>A(o).toRedirect(A(l).textLink))},{default:E((()=>[F(u,{class:"h-[100%] w-[auto]",src:A(d)(A(l).textImg),mode:"heightFix"},null,8,["src"])])),_:1})):H("v-if",!0),A(l).subTitle.text&&A(l).textImg?(B(),D(n,{key:1,class:"mx-[16rpx] w-[2rpx] h-[24rpx]",style:I({background:A(l).subTitle.textColor})},null,8,["style"])):H("v-if",!0),A(l).subTitle.text?(B(),D(n,{key:2,onClick:t[9]||(t[9]=e=>A(o).toRedirect(A(l).subTitle.link)),class:"text-center text-[22rpx] py-[6rpx]",style:I({color:A(l).subTitle.textColor,background:"linear-gradient(90deg, "+A(l).subTitle.startColor+", "+A(l).subTitle.endColor+")"})},{default:E((()=>[O(P(A(l).subTitle.text),1)])),_:1},8,["style"])):H("v-if",!0)])),_:1})):H("v-if",!0),F(n,{class:"bd flex flex-wrap justify-between"},{default:E((()=>[(B(!0),W($,null,N(A(l).list,(e=>(B(),W($,{key:e.id},["style-1"==A(l).blockStyle.value?(B(),D(n,{key:0,onClick:t=>A(o).toRedirect(e.link),class:"item flex justify-between px-[20rpx] py-[30rpx] bg-white mt-[20rpx]",style:I(p(e))},{default:E((()=>[F(n,{class:"flex-1 flex items-baseline flex-col"},{default:E((()=>[F(n,{class:"text-[28rpx] pb-[10rpx] text-[#333]",style:I({fontWeight:A(l).blockStyle.fontWeight})},{default:E((()=>[O(P(e.title.text),1)])),_:2},1032,["style"]),F(n,{class:"text-[22rpx] text-[#999] pb-[30rpx]"},{default:E((()=>[O(P(e.subTitle.text),1)])),_:2},1024),e.moreTitle.text?(B(),D(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:I(m(e.moreTitle))},{default:E((()=>[F(i,{class:"mr-[8rpx]"},{default:E((()=>[O(P(e.moreTitle.text),1)])),_:2},1024),F(i,{class:"iconfont iconjiantou-you-cuxiantiao-fill !text-[20rpx] text-[#fff]"}),F(u,{class:"absolute left-0 top-0 bottom-0 !w-[28rpx]",src:A(d)("static/resource/images/diy/active_cube/block_style1_1.png"),mode:"scaleToFill"},null,8,["src"])])),_:2},1032,["style"])):H("v-if",!0)])),_:2},1024),e.imageUrl?(B(),D(n,{key:0,class:"img-box ml-[10rpx] w-[130rpx]"},{default:E((()=>[F(u,{src:A(d)(e.imageUrl),mode:"aspectFit"},null,8,["src"])])),_:2},1024)):(B(),D(n,{key:1,class:"img-box ml-[10rpx] flex items-center justify-center w-[130rpx] bg-[#f3f4f6]"},{default:E((()=>[F(g,{name:"photo",color:"#999",size:"50"})])),_:1}))])),_:2},1032,["onClick","style"])):H("v-if",!0),"style-2"==A(l).blockStyle.value?(B(),D(n,{key:1,onClick:t=>A(o).toRedirect(e.link),class:"item h-[150rpx] flex justify-between p-[20rpx] bg-white mt-[20rpx]",style:I(p(e))},{default:E((()=>[F(n,{class:"flex-1 flex items-baseline flex-col"},{default:E((()=>[F(n,{class:"text-[26rpx] mt-[10rpx] pb-[16rpx]",style:I({fontWeight:A(l).blockStyle.fontWeight})},{default:E((()=>[O(P(e.title.text),1)])),_:2},1032,["style"]),F(n,{class:"text-[22rpx] text-gray-500 pb-[26rpx]"},{default:E((()=>[O(P(e.subTitle.text),1)])),_:2},1024),e.moreTitle.text?(B(),D(n,{key:0,class:"link relative text-[22rpx] leading-[40rpx] flex items-center text-white rounded-[20rpx] h-[40rpx] pl-[20rpx] pr-[10rpx]",style:I(m(e.moreTitle))},{default:E((()=>[F(i,{class:z(["mr-[8rpx]",{italic:"italics"==A(l).blockStyle.btnText}])},{default:E((()=>[O(P(e.moreTitle.text),1)])),_:2},1032,["class"]),F(i,{class:"iconfont iconjiantou-you-cuxiantiao-fill !text-[20rpx] text-[#fff]"})])),_:2},1032,["style"])):H("v-if",!0)])),_:2},1024),e.imageUrl?(B(),D(n,{key:0,class:"img-box ml-[10rpx] w-[130rpx]"},{default:E((()=>[F(u,{src:A(d)(e.imageUrl),mode:"aspectFit"},null,8,["src"])])),_:2},1024)):(B(),D(n,{key:1,class:"img-box ml-[10rpx] flex items-center justify-center w-[130rpx] bg-[#f3f4f6]"},{default:E((()=>[F(g,{name:"photo",color:"#999",size:"50"})])),_:1}))])),_:2},1032,["onClick","style"])):H("v-if",!0)],64)))),128))])),_:1}),"style-3"==A(l).blockStyle.value?(B(),D(f,{key:5,"scroll-x":!0,class:"whitespace-nowrap",id:"warpStyle3-"+A(l).id},{default:E((()=>[(B(!0),W($,null,N(A(l).list,((e,t)=>(B(),D(n,{key:e.id,class:"inline-flex"},{default:E((()=>[F(n,{id:"item"+t+A(l).id,onClick:t=>A(o).toRedirect(e.link),class:z(["flex flex-col items-center justify-between p-[10rpx] bg-white mt-[20rpx] w-[157rpx] h-[200rpx] box-border",{"!mr-[0rpx]":t+1===A(l).list.length}]),style:I(s.value+p(e))},{default:E((()=>[e.imageUrl?(B(),D(n,{key:0,class:"w-[141rpx] h-[141rpx] rounded-[var(--rounded-small)] overflow-hidden"},{default:E((()=>[F(u,{class:"w-[141rpx] h-[141rpx]",src:A(d)(e.imageUrl),mode:"aspectFit"},null,8,["src"])])),_:2},1024)):(B(),D(n,{key:1,class:"w-[141rpx] h-[141rpx] relative flex-shrink-0"},{default:E((()=>[F(n,{class:"absolute left-0 top-0 flex items-center justify-center w-[141rpx] h-[141rpx] bg-[#f3f4f6]"},{default:E((()=>[F(g,{name:"photo",color:"#999",size:"50"})])),_:1})])),_:1})),F(n,{class:"mt-[10rpx] mb-[2rpx] text-[26rpx]",style:I({color:e.title.textColor,fontWeight:A(l).blockStyle.fontWeight})},{default:E((()=>[O(P(e.title.text),1)])),_:2},1032,["style"])])),_:2},1032,["id","onClick","style","class"])])),_:2},1024)))),128))])),_:1},8,["id"])):H("v-if",!0),"style-4"==A(l).blockStyle.value?(B(),D(f,{key:6,"scroll-x":"true",class:"whitespace-nowrap",id:"warpStyle4-"+A(l).id},{default:E((()=>[(B(!0),W($,null,N(A(l).list,((e,t)=>(B(),D(n,{key:e.id,class:"inline-flex"},{default:E((()=>[F(n,{id:"item"+t+A(l).id,onClick:t=>A(o).toRedirect(e.link),class:z(["flex flex-col items-center justify-between p-[4rpx] bg-[#F93D02] mt-[20rpx] box-border",{"!mr-[0rpx]":t+1===A(l).list.length}]),style:I(p(e)+c.value)},{default:E((()=>[F(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:E((()=>[e.imageUrl?(B(),D(n,{key:0,class:"w-[112rpx] h-[102rpx]"},{default:E((()=>[F(u,{class:"w-[112rpx] h-[102rpx]",src:A(d)(e.imageUrl),mode:"aspectFit"},null,8,["src"])])),_:2},1024)):(B(),D(n,{key:1,class:"w-[112rpx] h-[102rpx] relative flex-shrink-0"},{default:E((()=>[F(n,{class:"absolute left-0 top-0 flex items-center justify-center w-[112rpx] h-[102rpx] bg-[#f3f4f6]"},{default:E((()=>[F(g,{name:"photo",color:"#999",size:"50"})])),_:1})])),_:1})),F(n,{class:"relative -mt-[10rpx] text-[20rpx] bg-[#F3DAC5] text-[#ED6E00] rounded-[16rpx] px-[12rpx] h-[34rpx] flex-center",style:I({color:e.subTitle.textColor,background:"linear-gradient(to right,"+e.subTitle.startColor+","+e.subTitle.endColor+")"})},{default:E((()=>[O(P(e.subTitle.text),1)])),_:2},1032,["style"])])),_:2},1024),F(n,{class:"mt-[12rpx] mb-[12rpx] text-[26rpx] text-[#fff]",style:I({fontWeight:"bold"==A(l).blockStyle.fontWeight?A(l).blockStyle.fontWeight:"500"})},{default:E((()=>[O(P(e.title.text),1)])),_:2},1032,["style"])])),_:2},1032,["id","onClick","class","style"])])),_:2},1024)))),128))])),_:1},8,["id"])):H("v-if",!0)])),_:1})])),_:1})])),_:1},8,["style"])}}}),[["__scopeId","data-v-260e8f95"]]),ut=Se(w({__name:"index",props:["component","index","pullDownRefreshCount"],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+="transform: translateY("+2*-l.value.offset+"rpx)":"upperRight"!=l.value.bottomPosition&&"upperLeft"!=l.value.bottomPosition||(e+="transform: translateX("+2*l.value.offset+"rpx);")),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;"})),y((()=>{"style-2"===l.value.style&&(p&&clearTimeout(p.value),c.value=!1,p.value=setTimeout((()=>{c.value=!0,clearTimeout(p.value)}),200))})),_((()=>t.pullDownRefreshCount),((e,t)=>{})),(e,t)=>{const n=G,i=j;return B(),D(i,{class:z(["float-btn fixed z-1000",[A(l).style,A(l).bottomPosition,"decorate"==A(o).mode?"float-btn-border":""]]),style:I(A(s))},{default:E((()=>["style-1"===A(l).style?(B(),D(i,{key:0,class:"flex flex-col items-center p-[24rpx]",style:I(A(r))},{default:E((()=>[(B(!0),W($,null,N(A(l).list,((e,t)=>(B(),D(i,{key:t,onClick:t=>A(o).toRedirect(e.link),class:z({"flex items-center justify-center":!0,"mb-[20rpx]":A(l).list.length!=t+1}),style:I(A(a))},{default:E((()=>[e&&e.imageUrl?(B(),D(n,{key:0,style:I(A(a)),src:A(d)(e.imageUrl),mode:"aspectFit"},null,8,["style","src"])):(B(),D(n,{key:1,src:A(d)("static/resource/images/diy/figure.png"),mode:"aspectFit",style:I(A(a))},null,8,["src","style"]))])),_:2},1032,["onClick","class","style"])))),128))])),_:1},8,["style"])):H("v-if",!0),H(' <view v-if="diyComponent.style===\'style-2\'" class="relative w-[3rpx] h-[3rpx]">\r\n\t\t\t<view class="py-[14rpx] overflow-hidden absolute right-[25rpx] top-[1rpx] transform -translate-y-1/2" :style="styleTwoWarpCss">\r\n\t\t\t\t<swiper :style="{\'width\':diyComponent.imageSize * 2+24+\'rpx\',\'height\':diyComponent.imageSize * 2+44+\'rpx !important\',}" circular>\r\n\t\t\t\t\t<swiper-item v-for="(item,index) in diyComponent.list" :key="index">\r\n\t\t\t\t\t\t<view @click="diyStore.toRedirect(item.link)" class="px-[12rpx] flex flex-col items-center justify-center">\r\n\t\t\t\t\t\t\t<image v-if="item && item.imageUrl" :style="floatBtnItemCss" :src="img(item.imageUrl)" mode="aspectFit"></image>\r\n\t\t\t\t\t\t\t<image v-else :src="img(\'static/resource/images/diy/figure.png\')" mode="aspectFit" :style="floatBtnItemCss"/>\r\n\t\t\t\t\t\t\t<view class="text-[24rpx] text-[303133] text-center mt-[20rpx]">{{ item.link.title }}</view>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</swiper-item>\r\n\t\t\t\t</swiper>\r\n\t\t\t</view>\r\n\t\t\t<view class="w-[60rpx] h-[60rpx] absolute right-[-64rpx] top-[1rpx] transform -translate-y-1/2 rounded-[30rpx] flex items-center" :style="styleTwoSphere">\r\n\t\t\t\t<text class="!text-[60rpx] iconfont iconxiaolian-1 text-[var(--primary-color)] font-400 transform rotate-90 translate-x-[-13rpx]"></text>\r\n\t\t\t</view>\r\n\t\t</view> ')])),_:1},8,["class","style"])}}}),[["__scopeId","data-v-1fa07fe9"]]),dt=Se(w({__name:"index",props:["component","index","pullDownRefreshCount","global","scrollBool"],setup(e){const t=e,o=pe(),l=q(),r=M(),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=Ee(p);m.onLoad(),m.init();const h=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}));_((()=>t.pullDownRefreshCount),((e,t)=>{}));const v=n(""),b=n(!1),x=u((()=>{var e="";if("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;"),"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;"),b.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?(b.value=!1,e+="background-color:"+c.value.fixedBgColor+";"):b.value=!0}return e})),y=()=>{let e="";return"style-3"==c.value.swiper.swiperStyle&&(e="ios"===l.platform?"margin-top: -55px;":"margin-top: -44.5px;"),e},w=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},U=u((()=>{let e=!0;for(let t=0;t<c.value.search.hotWord.list.length;t++){if(c.value.search.hotWord.list[t].text){e=!1;break}}return e})),Z=u((()=>{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})),J=u((()=>"style-2"==c.value.swiper.swiperStyle||"style-3"==c.value.swiper.swiperStyle)),Q=u((()=>2*c.value.swiper.imageHeight+"rpx")),K=n(0),ee=e=>{K.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 ie={};const ue=n("");C((()=>{de(),"decorate"==a.mode&&_((()=>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=()=>{k((()=>{setTimeout((()=>{"style-3"!=c.value.swiper.swiperStyle?S().in(r).select(".fixed-wrap").boundingClientRect((e=>{v.value=(e.height||0)+"px"})).exec():v.value=""}))})),m.refresh(),ae({source:"home"},-1),c.value.swiper.list.forEach((e=>{""==e.imageUrl&&(e.imgWidth=690,e.imgHeight=330)}))},ce=s({pageMode:"diy",title:"",global:{},value:[]}),me=e=>{if(!e)return ce.pageMode="diy",ce.title="",ce.global={},void(ce.value=[]);g({id:e}).then((e=>{if(e.data.value){let t=e.data;ce.pageMode=t.mode,ce.title=t.title;let o=JSON.parse(t.value);ce.global=o.global,ce.global.topStatusBar.isShow=!1,ce.global.bottomTabBarSwitch=!1,ce.value=o.value,ce.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:ce.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=G,n=j,i=L,s=Y,u=X,p=V,g=R(T("u-popup"),Te);return B(),D(n,{style:I(A(h)),class:"goods-carousel-search-wrap"},{default:E((()=>[F(n,{class:"relative pb-[20rpx]"},{default:E((()=>[F(n,{class:z(["bg-img",{"!-bottom-[200rpx]":1==A(c).bgGradient}])},{default:E((()=>[A(c).swiper.control&&A(c).swiper.list&&A(c).swiper.list[K.value].imageUrl?(B(),D(r,{key:0,src:A(d)(A(c).swiper.list[K.value].imageUrl),mode:"scaleToFill",class:"w-full h-full","show-menu-by-longpress":!0},null,8,["src"])):(B(),D(n,{key:1,class:"w-full h-full bg-[#fff]"})),F(n,{class:"bg-img-box",style:I(A(Z))},null,8,["style"])])),_:1},8,["class"]),F(n,{class:"fixed-wrap",style:I(A(x))},{default:E((()=>["style-1"==A(c).search.style?(B(),D(n,{key:0,class:"diy-search-wrap relative z-10",onClick:l[1]||(l[1]=e=>A(a).toRedirect(A(c).search.link)),style:I(ue.value)},{default:E((()=>[A(c).search.logo?(B(),D(n,{key:0,class:"img-wrap"},{default:E((()=>[F(r,{src:A(d)(A(c).search.logo),mode:"aspectFit"},null,8,["src"])])),_:1})):H("v-if",!0),F(n,{class:"search-content",style:I({backgroundColor:A(c).search.bgColor}),onClick:l[0]||(l[0]=se((e=>A(a).toRedirect(A(c).search.link)),["stop"]))},{default:E((()=>[F(i,{class:"input-content text-[#fff] text-[24rpx] leading-[68rpx]",style:I({color:A(c).search.color})},{default:E((()=>[O(P(A(U)?A(c).search.text:""),1)])),_:1},8,["style"]),F(i,{class:"nc-iconfont nc-icon-sousuo-duanV6xx1 w-[80rpx] h-[52rpx] flex items-center justify-center rounded-[50rpx] text-[28rpx] text-[#fff]",style:I({backgroundColor:A(c).search.btnBgColor,color:A(c).search.btnColor})},null,8,["style"]),A(U)?H("v-if",!0):(B(),D(u,{key:0,class:"swiper-wrap",interval:1e3*A(c).search.hotWord.interval,autoplay:"true",vertical:"true",circular:"true"},{default:E((()=>[(B(!0),W($,null,N(A(c).search.hotWord.list,(e=>(B(),D(s,{class:"swiper-item",key:e.id},{default:E((()=>[F(n,{class:"leading-[64rpx] text-[24rpx]",style:I({color:A(c).search.color})},{default:E((()=>[O(P(e.text),1)])),_:2},1032,["style"])])),_:2},1024)))),128))])),_:1},8,["interval"]))])),_:1},8,["style"])])),_:1},8,["style"])):H("v-if",!0),"style-2"==A(c).search.style?(B(),D(n,{key:1,class:"diy-search-wrap style-2 relative z-10",onClick:l[5]||(l[5]=e=>A(a).toRedirect(A(c).search.link))},{default:E((()=>[F(n,{class:"flex items-center",style:I(ue.value)},{default:E((()=>[A(c).search.logo?(B(),D(n,{key:0,class:"img-wrap"},{default:E((()=>[F(r,{src:A(d)(A(c).search.logo),mode:"aspectFit"},null,8,["src"])])),_:1})):H("v-if",!0),F(n,{style:I(A(oe)),class:"text-[24rpx] h-[38rpx] flex items-center px-[12rpx] rounded-r-[20rpx] rounded-t-[20rpx] rounded-bl-[2rpx]"},{default:E((()=>[O(P(A(c).search.subTitle.text),1)])),_:1},8,["style"])])),_:1},8,["style"]),F(n,{class:"flex items-center w-full mt-[16rpx]"},{default:E((()=>[A(o).diyAddressInfo?(B(),D(n,{key:0,onClick:l[2]||(l[2]=se((e=>A(m).reposition()),["stop"])),style:I({color:A(c).search.positionColor}),class:"mr-[30rpx]"},{default:E((()=>[F(n,{class:"flex items-baseline font-500"},{default:E((()=>[F(i,{class:"text-[24rpx] mr-[2rpx]"},{default:E((()=>[O(P(A(o).diyAddressInfo.city),1)])),_:1}),F(i,{class:"iconfont iconxiaV6xx !text-[24rpx]"})])),_:1}),A(o).diyAddressInfo.community?(B(),D(n,{key:0,class:"text-[18rpx] mt-[10rpx] truncate max-w-[160rpx]"},{default:E((()=>[O(P(A(o).diyAddressInfo.community),1)])),_:1})):H("v-if",!0)])),_:1},8,["style"])):(B(),D(n,{key:1,onClick:l[3]||(l[3]=se((e=>A(m).reposition()),["stop"])),class:"text-[24rpx] mr-[30rpx] truncate max-w-[160rpx]",style:I({color:A(c).search.positionColor})},{default:E((()=>[O(P(A(o).defaultPositionAddress),1)])),_:1},8,["style"])),F(n,{class:"search-content",style:I({backgroundColor:A(c).search.bgColor}),onClick:l[4]||(l[4]=se((e=>A(a).toRedirect(A(c).search.link)),["stop"]))},{default:E((()=>[F(i,{class:"input-content text-[#fff] text-[24rpx] leading-[68rpx]",style:I({color:A(c).search.color})},{default:E((()=>[O(P(A(U)?A(c).search.text:""),1)])),_:1},8,["style"]),F(i,{class:"nc-iconfont nc-icon-sousuo-duanV6xx1 w-[80rpx] h-[52rpx] flex items-center justify-center rounded-[50rpx] text-[28rpx] text-[#fff]",style:I({backgroundColor:A(c).search.btnBgColor,color:A(c).search.btnColor})},null,8,["style"]),A(U)?H("v-if",!0):(B(),D(u,{key:0,class:"swiper-wrap",interval:1e3*A(c).search.hotWord.interval,autoplay:"true",vertical:"true",circular:"true"},{default:E((()=>[(B(!0),W($,null,N(A(c).search.hotWord.list,(e=>(B(),D(s,{class:"swiper-item",key:e.id},{default:E((()=>[F(n,{class:"leading-[64rpx] text-[24rpx]",style:I({color:A(c).search.color})},{default:E((()=>[O(P(e.text),1)])),_:2},1032,["style"])])),_:2},1024)))),128))])),_:1},8,["interval"]))])),_:1},8,["style"])])),_:1})])),_:1})):H("v-if",!0),A(c).tab.control?(B(),D(n,{key:2,class:"tab-list-wrap relative z-10"},{default:E((()=>[F(p,{"scroll-x":"true",class:"scroll-wrap","scroll-into-view":"a"+le.value},{default:E((()=>[F(n,{onClick:l[6]||(l[6]=e=>ae({source:"home"},-1)),class:z(["scroll-item",[{active:-1==le.value}]])},{default:E((()=>[F(n,{class:"name",style:I({color:w(-1==le.value)})},{default:E((()=>[O("首页")])),_:1},8,["style"]),H(' <view class="line" :style="{\'background-color\': getTabColor(currTabIndex == -1)}" v-if="currTabIndex == -1"></view> ')])),_:1},8,["class"]),(B(!0),W($,null,N(A(c).tab.list,((e,t)=>(B(),D(n,{class:z(["scroll-item",[{active:t==le.value}]]),onClick:o=>ae(e,t),id:"a"+t,key:t},{default:E((()=>[F(n,{class:"name",style:I({color:w(t==le.value)})},{default:E((()=>[O(P(e.text),1)])),_:2},1032,["style"]),H(' <view class="line" :style="{\'background-color\': getTabColor(index == currTabIndex)}" v-if="index == currTabIndex"></view> ')])),_:2},1032,["class","onClick","id"])))),128))])),_:1},8,["scroll-into-view"]),A(c).tab.list.length?(B(),D(n,{key:0,class:"absolute tab-btn iconfont icona-yingyongliebiaoV6xx-32",onClick:l[7]||(l[7]=e=>ne.value=!0)})):H("v-if",!0)])),_:1})):H("v-if",!0),b.value?(B(),D(n,{key:3,class:"bg-img"},{default:E((()=>[A(c).swiper.control&&A(c).swiper.list&&A(c).swiper.list[K.value].imageUrl?(B(),D(r,{key:0,src:A(d)(A(c).swiper.list[K.value].imageUrl),mode:"widthFix",class:"w-full h-full","show-menu-by-longpress":!0},null,8,["src"])):(B(),D(n,{key:1,class:"w-full h-full bg-[#fff]"}))])),_:1})):H("v-if",!0)])),_:1},8,["style"]),H(" 解决fixed定位后导航栏塌陷的问题 "),"decorate"!=A(a).mode?(B(),W($,{key:0},["fixed"==A(c).positionWay&&null!=t.scrollBool&&-1!=t.scrollBool?(B(),D(n,{key:0,class:"u-navbar-placeholder",style:I({width:"100%",paddingTop:v.value})},null,8,["style"])):H("v-if",!0)],64)):H("v-if",!0),H(" 轮播图 "),F(n,{class:z(["relative",{"mx-[20rpx]":A(J)&&"style-3"!=A(c).swiper.swiperStyle,"swiper-style-3":"style-3"==A(c).swiper.swiperStyle}]),style:I(y())},{default:E((()=>[A(c).swiper.control?(B(),D(u,{key:0,class:z(["swiper",{"swiper-left":"left"==A(c).swiper.indicatorAlign,"swiper-right":"right"==A(c).swiper.indicatorAlign,"ns-indicator-dots":"style-2"==A(c).swiper.indicatorStyle,"ns-indicator-dots-three":"style-3"==A(c).swiper.indicatorStyle}]),style:I({height:A(Q)}),autoplay:"true",circular:"true",onChange:ee,"previous-margin":A(J)?0:"26rpx","next-margin":A(J)?0:"26rpx",interval:1e3*A(c).swiper.interval,"indicator-dots":A(ge),"indicator-color":A(c).swiper.indicatorColor,"indicator-active-color":A(c).swiper.indicatorActiveColor},{default:E((()=>[(B(!0),W($,null,N(A(c).swiper.list,((e,t)=>(B(),D(s,{class:"swiper-item",key:e.id,style:I(A(te))},{default:E((()=>[F(n,{onClick:t=>A(a).toRedirect(e.link)},{default:E((()=>[F(n,{class:"item",style:I({height:A(Q)})},{default:E((()=>[e.imageUrl?(B(),D(r,{key:0,src:A(d)(e.imageUrl),mode:"scaleToFill",style:I(A(te)),class:z(["w-full h-full",{"swiper-animation":K.value!=t}]),"show-menu-by-longpress":!0},null,8,["src","style","class"])):(B(),D(r,{key:1,src:A(d)("static/resource/images/diy/figure.png"),style:I(A(te)),mode:"scaleToFill",class:z(["w-full h-full",{"swiper-animation":K.value!=t}]),"show-menu-by-longpress":!0},null,8,["src","style","class"]))])),_:2},1032,["style"])])),_:2},1032,["onClick"])])),_:2},1032,["style"])))),128))])),_:1},8,["style","class","previous-margin","next-margin","interval","indicator-dots","indicator-color","indicator-active-color"])):H("v-if",!0)])),_:1},8,["class","style"]),H(" 分类展开 "),F(g,{safeAreaInsetTop:!0,show:ne.value,mode:"top",onClose:l[9]||(l[9]=e=>ne.value=!1)},{default:E((()=>[F(n,{class:"text-sm px-[30rpx] pt-3",style:I({"padding-top":A(ie).top+"px"})},{default:E((()=>[O("全部分类")])),_:1},8,["style"]),F(n,{class:"flex flex-wrap pl-[30rpx] pt-[30rpx]"},{default:E((()=>[F(n,{onClick:l[8]||(l[8]=e=>ae({source:"home"},-1)),class:z(["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:E((()=>[O(" 首页 ")])),_:1},8,["class"]),(B(!0),W($,null,N(A(c).tab.list,((e,t)=>(B(),D(i,{onClick:o=>ae(e,t),key:t,class:z(["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:E((()=>[O(P(e.text),1)])),_:2},1032,["onClick","class"])))),128))])),_:1})])),_:1},8,["show"])])),_:1}),H(" 展示微页面数据 "),"diy_page"==re.value?(B(),D(n,{key:0,class:"child-diy-template-wrap bg-index"},{default:E((()=>[F(yl,{data:ce},null,8,["data"])])),_:1})):H("v-if",!0)])),_:1},8,["style"])}}}),[["__scopeId","data-v-c2801d00"]]),ct=w({__name:"index",props:["component","index","pullDownRefreshCount","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};_((()=>t.pullDownRefreshCount),((e,t)=>{})),C((()=>{c(),"decorate"==o.mode&&_((()=>l.value),((e,t)=>{e&&"PictureShow"==e.componentName&&c()}))}));const c=()=>{};return(e,t)=>{const i=G,u=L,c=j,p=R(T("u-icon"),ke);return B(),D(c,{style:I(A(r)),class:"flex justify-between overflow-hidden"},{default:E((()=>[F(c,{class:"p-[20rpx] box-border overflow-hidden",style:I(A(a))},{default:E((()=>[A(l).moduleOne.head.textImg||A(l).moduleOne.head.subText?(B(),D(c,{key:0,class:"flex items-center pb-[30rpx] pt-[6rpx]"},{default:E((()=>[A(l).moduleOne.head.textImg?(B(),D(i,{key:0,class:"h-[28rpx]",src:A(d)(A(l).moduleOne.head.textImg),mode:"heightFix"},null,8,["src"])):H("v-if",!0),A(l).moduleOne.head.textImg&&A(l).moduleOne.head.subText?(B(),D(u,{key:1,class:"w-[2rpx] mx-[10rpx] h-[22rpx]",style:I({backgroundColor:A(l).moduleOne.head.subTextColor})},null,8,["style"])):H("v-if",!0),A(l).moduleOne.head.subText?(B(),D(u,{key:2,class:"text-[22rpx] truncate max-w-[164rpx]",style:I({color:A(l).moduleOne.head.subTextColor})},{default:E((()=>[O(P(A(l).moduleOne.head.subText),1)])),_:1},8,["style"])):H("v-if",!0)])),_:1})):H("v-if",!0),F(c,{class:"flex items-center"},{default:E((()=>[(B(!0),W($,null,N(A(l).moduleOne.list,((e,t)=>(B(),D(c,{key:t,class:z(["flex flex-col items-center",{"mr-[10rpx]":0==t}]),onClick:t=>A(o).toRedirect(e.link)},{default:E((()=>[F(c,{class:"bg-[#fff] flex items-center justify-center w-[148rpx] h-[148rpx] rounded-[12rpx] mb-[16rpx]"},{default:E((()=>[e.imageUrl?(B(),D(i,{key:0,class:"w-[102rpx] h-[102rpx]",src:A(d)(e.imageUrl),mode:"aspectFill"},null,8,["src"])):(B(),D(p,{key:1,name:"photo",color:"#999",size:"50"}))])),_:2},1024),F(c,{class:"w-[132rpx] h-[44rpx] rounded-[30rpx] flex items-center justify-center text-[22rpx]",style:I(s(e))},{default:E((()=>[O(P(e.btnTitle.text),1)])),_:2},1032,["style"])])),_:2},1032,["class","onClick"])))),128))])),_:1})])),_:1},8,["style"]),F(c,{class:"p-[20rpx] box-border overflow-hidden",style:I(A(n))},{default:E((()=>[A(l).moduleTwo.head.textImg||A(l).moduleTwo.head.subText?(B(),D(c,{key:0,class:"flex items-center pb-[30rpx] pt-[6rpx]"},{default:E((()=>[A(l).moduleTwo.head.textImg?(B(),D(i,{key:0,class:"h-[28rpx] w-[auto]",src:A(d)(A(l).moduleTwo.head.textImg),mode:"heightFix"},null,8,["src"])):H("v-if",!0),A(l).moduleTwo.head.textImg&&A(l).moduleTwo.head.subText?(B(),D(u,{key:1,class:"w-[2rpx] mx-[10rpx] h-[22rpx]",style:I({backgroundColor:A(l).moduleTwo.head.subTextColor})},null,8,["style"])):H("v-if",!0),A(l).moduleTwo.head.subText?(B(),D(u,{key:2,class:"text-[22rpx] truncate max-w-[164rpx]",style:I({color:A(l).moduleTwo.head.subTextColor})},{default:E((()=>[O(P(A(l).moduleTwo.head.subText),1)])),_:1},8,["style"])):H("v-if",!0)])),_:1})):H("v-if",!0),F(c,{class:"flex items-center"},{default:E((()=>[(B(!0),W($,null,N(A(l).moduleTwo.list,((e,t)=>(B(),D(c,{key:t,class:z(["flex flex-col items-center",{"mr-[10rpx]":0==t}]),onClick:t=>A(o).toRedirect(e.link)},{default:E((()=>[F(c,{class:"bg-[#fff] flex items-center justify-center w-[148rpx] h-[148rpx] rounded-[12rpx] mb-[16rpx]"},{default:E((()=>[e.imageUrl?(B(),D(i,{key:0,class:"w-[102rpx] h-[102rpx]",src:A(d)(e.imageUrl),mode:"aspectFill"},null,8,["src"])):(B(),D(p,{key:1,name:"photo",color:"#999",size:"50"}))])),_:2},1024),F(c,{class:"w-[132rpx] h-[44rpx] rounded-[30rpx] flex items-center justify-center text-[22rpx]",style:I(s(e))},{default:E((()=>[O(P(e.btnTitle.text),1)])),_:2},1032,["style"])])),_:2},1032,["class","onClick"])))),128))])),_:1})])),_:1},8,["style"])])),_:1},8,["style"])}}});const pt=Se({name:"u-badge",mixins:[ge,{props:{isDot:{type:Boolean,default:()=>me.badge.isDot},value:{type:[Number,String],default:()=>me.badge.value},modelValue:{type:[Number,String],default:()=>me.badge.modelValue},show:{type:Boolean,default:()=>me.badge.show},max:{type:[Number,String],default:()=>me.badge.max},type:{type:String,default:()=>me.badge.type},showZero:{type:Boolean,default:()=>me.badge.showZero},bgColor:{type:[String,null],default:()=>me.badge.bgColor},color:{type:[String,null],default:()=>me.badge.color},shape:{type:String,default:()=>me.badge.shape},numberType:{type:String,default:()=>me.badge.numberType},offset:{type:Array,default:()=>me.badge.offset},inverted:{type:Boolean,default:()=>me.badge.inverted},absolute:{type:Boolean,default:()=>me.badge.absolute}}},fe],computed:{boxStyle:()=>({}),badgeStyle(){const e={};if(this.color&&(e.color=this.color),this.bgColor&&!this.inverted&&(e.backgroundColor=this.bgColor),this.absolute&&(e.position="absolute",this.offset.length)){const t=this.offset[0],o=this.offset[1]||t;e.top=he(t),e.right=he(o)}return e},showValue(){switch(this.numberType){case"overflow":return Number(this.value)>Number(this.max)?this.max+"+":this.value;case"ellipsis":return Number(this.value)>Number(this.max)?"...":this.value;case"limit":return Number(this.value)>999?Number(this.value)>=9999?Math.floor(this.value/1e4*100)/100+"w":Math.floor(this.value/1e3*100)/100+"k":this.value;default:return Number(this.value)}}},methods:{addStyle:ve}},[["render",function(e,t,o,l,r,a){const n=L;return e.show&&(0!==Number(e.value)||e.showZero||e.isDot)?(B(),D(n,{key:0,class:z([[e.isDot?"u-badge--dot":"u-badge--not-dot",e.inverted&&"u-badge--inverted","horn"===e.shape&&"u-badge--horn",`u-badge--${e.type}${e.inverted?"--inverted":""}`],"u-badge"]),style:I([a.addStyle(e.customStyle),a.badgeStyle])},{default:E((()=>[O(P(e.isDot?"":a.showValue),1)])),_:1},8,["class","style"])):H("v-if",!0)}],["__scopeId","data-v-0e56696e"]]);const mt=Se({name:"u-tabbar-item",mixins:[ge,fe,{props:{name:{type:[String,Number,null],default:()=>me.tabbarItem.name},icon:{icon:String,default:()=>me.tabbarItem.icon},badge:{type:[String,Number,null],default:()=>me.tabbarItem.badge},dot:{type:Boolean,default:()=>me.tabbarItem.dot},text:{type:String,default:()=>me.tabbarItem.text},badgeStyle:{type:[Object,String],default:()=>me.tabbarItem.badgeStyle}}}],data:()=>({isActive:!1,parentData:{value:null,activeColor:"",inactiveColor:""}}),options:{virtualHost:!0},created(){this.init()},emits:["click","change"],methods:{addStyle:ve,init(){this.updateParentData(),this.parent;const e=this.parent.children.indexOf(this);this.isActive=(this.name||e)===this.parentData.value},updateParentData(){this.getParentData("u-tabbar")},updateFromParent(){this.init()},clickHandler(){this.$nextTick((()=>{const e=this.parent.children.indexOf(this),t=this.name||e;t!==this.parent.value&&this.parent.$emit("change",t),this.$emit("click",t)}))}}},[["render",function(e,t,o,l,r,a){const n=R(T("u-icon"),ke),i=R(T("u-badge"),pt),s=j,u=L;return B(),D(s,{class:"u-tabbar-item cursor-pointer",style:I([a.addStyle(e.customStyle)]),onClick:a.clickHandler},{default:E((()=>[F(s,{class:"u-tabbar-item__icon"},{default:E((()=>[e.icon?(B(),D(n,{key:0,name:e.icon,color:r.isActive?r.parentData.activeColor:r.parentData.inactiveColor,size:20},null,8,["name","color"])):(B(),W($,{key:1},[r.isActive?be(e.$slots,"active-icon",{key:0},void 0,!0):be(e.$slots,"inactive-icon",{key:1},void 0,!0)],64)),F(i,{absolute:"",offset:[0,e.dot?"34rpx":e.badge>9?"14rpx":"20rpx"],customStyle:e.badgeStyle,isDot:e.dot,value:e.badge||(e.dot?1:null),show:e.dot||e.badge>0},null,8,["offset","customStyle","isDot","value","show"])])),_:3}),be(e.$slots,"text",{},(()=>[F(u,{class:"u-tabbar-item__text",style:I({color:r.isActive?r.parentData.activeColor:r.parentData.inactiveColor})},{default:E((()=>[O(P(e.text),1)])),_:1},8,["style"])]),!0)])),_:3},8,["style","onClick"])}],["__scopeId","data-v-ed2788ef"]]);const gt=Se({name:"u-tabbar",mixins:[ge,fe,{props:{value:{type:[String,Number,null],default:()=>me.tabbar.value},safeAreaInsetBottom:{type:Boolean,default:()=>me.tabbar.safeAreaInsetBottom},border:{type:Boolean,default:()=>me.tabbar.border},zIndex:{type:[String,Number],default:()=>me.tabbar.zIndex},activeColor:{type:String,default:()=>me.tabbar.activeColor},inactiveColor:{type:String,default:()=>me.tabbar.inactiveColor},fixed:{type:Boolean,default:()=>me.tabbar.fixed},placeholder:{type:Boolean,default:()=>me.tabbar.placeholder}}}],data:()=>({placeholderHeight:0}),computed:{tabbarStyle(){const e={zIndex:this.zIndex};return xe(e,ve(this.customStyle))},updateChild(){return[this.value,this.activeColor,this.inactiveColor]},updatePlaceholder(){return[this.fixed,this.placeholder]}},watch:{updateChild(){this.updateChildren()},updatePlaceholder(){this.setPlaceholderHeight()}},created(){this.children=[]},mounted(){this.setPlaceholderHeight()},methods:{updateChildren(){this.children.length&&this.children.map((e=>e.updateFromParent()))},async setPlaceholderHeight(){this.fixed&&this.placeholder&&(await ye(20),this.$uGetRect(".u-tabbar__content").then((({height:e=50})=>{this.placeholderHeight=e})))}}},[["render",function(e,t,o,l,r,a){const n=j,i=R(T("u-safe-bottom"),Be);return B(),D(n,{class:"u-tabbar"},{default:E((()=>[F(n,{class:z(["u-tabbar__content",[e.border&&"u-border-top",e.fixed&&"u-tabbar--fixed"]]),ref:"u-tabbar__content",onTouchmove:se(e.noop,["stop","prevent"]),style:I([a.tabbarStyle])},{default:E((()=>[F(n,{class:"u-tabbar__content__item-wrapper"},{default:E((()=>[be(e.$slots,"default",{},void 0,!0)])),_:3}),e.safeAreaInsetBottom?(B(),D(i,{key:0})):H("v-if",!0)])),_:3},8,["onTouchmove","class","style"]),e.placeholder?(B(),D(n,{key:0,class:"u-tabbar__placeholder",style:I({height:r.placeholderHeight+"px"})},null,8,["style"])):H("v-if",!0)])),_:3})}],["__scopeId","data-v-71f6d5da"]]),ft=Se(w({__name:"tabbar",props:{addon:{type:String,default:""}},setup(e,{expose:t}){const o=e;let l=o.addon;const r=Z();!l&&r.addon&&(l=r.addon);const a=s({}),n=()=>{let e=Ce(Z().tabbarList);if(1==e.length)Object.assign(a,e[0]);else{let o=!1;for(let t=0;t<e.length;t++)if(e[t].key==l){Object.assign(a,e[t]),o=!0;break}if(!o){let o=0,l={};try{e&&e.forEach((e=>{"app"==e.info.type&&(o++,l=e)})),1==o&&Object.assign(a,l)}catch(t){}}}};n(),_((()=>o.addon),((e,t)=>{e&&t&&e!=t&&n()}),{immediate:!0}),o.addon||_((()=>Z().tabbarList),((e,t)=>{e&&n()}),{deep:!0,immediate:!0});const i=u((()=>{let e=we().params,t=[];for(let o in e)t.push(o+"="+e[o]);return"/"+_e()+(t.length>0?"?"+t.join("&"):"")})),c=e=>{if(-1!=e.indexOf("http")||-1!=e.indexOf("http"))window.location.href=e;else{let t=we().params,o=[];for(let e in t)o.push(e+"="+t[e]);if(e=="/"+_e()&&!o.length)return;le({url:e,mode:"reLaunch"})}};return t({}),(e,t)=>{const o=R(T("u-tabbar-item"),mt),l=R(T("u-tabbar"),gt),r=j;return a&&Object.keys(a).length?(B(),W($,{key:0},[F(l,{value:A(i),zIndex:"9999",fixed:!0,placeholder:!0,safeAreaInsetBottom:!0,"inactive-color":a.value.textColor,"active-color":a.value.textHoverColor},{default:E((()=>[(B(!0),W($,null,N(a.value.list,(e=>(B(),W($,null,[1==a.value.type?(B(),D(o,{key:0,class:"py-[5rpx]",style:I({"background-color":a.value.backgroundColor}),text:e.text,icon:A(d)(A(i)==e.link.url?e.iconSelectPath:e.iconPath),name:e.link.url,onClick:t=>c(e.link.url)},null,8,["style","text","icon","name","onClick"])):H("v-if",!0),2==a.value.type?(B(),D(o,{key:1,class:"py-[5rpx]",style:I({"background-color":a.value.backgroundColor}),icon:A(d)(A(i)==e.link.url?e.iconSelectPath:e.iconPath),name:e.link.url,onClick:t=>c(e.link.url)},null,8,["style","icon","name","onClick"])):H("v-if",!0),3==a.value.type?(B(),D(o,{key:2,class:"py-[5rpx]",style:I({"background-color":a.value.backgroundColor}),text:e.text,name:e.link.url,onClick:t=>c(e.link.url)},null,8,["style","text","name","onClick"])):H("v-if",!0)],64)))),256))])),_:1},8,["value","inactive-color","active-color"]),F(r,{class:"tab-bar-placeholder"})],64)):H("v-if",!0)}}}),[["__scopeId","data-v-44aec94d"]]);
/**!
* Sortable 1.15.2
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/
function ht(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 vt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ht(Object(o),!0).forEach((function(t){xt(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ht(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function bt(e){return(bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xt(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function yt(){return yt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&(e[l]=o[l])}return e},yt.apply(this,arguments)}function wt(e,t){if(null==e)return{};var o,l,r=function(e,t){if(null==e)return{};var o,l,r={},a=Object.keys(e);for(l=0;l<a.length;l++)o=a[l],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(l=0;l<a.length;l++)o=a[l],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}function _t(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var Ct=_t(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),kt=_t(/Edge/i),St=_t(/firefox/i),Rt=_t(/safari/i)&&!_t(/chrome/i)&&!_t(/android/i),Tt=_t(/iP(ad|od|hone)/i),Bt=_t(/chrome/i)&&_t(/android/i),Dt={capture:!1,passive:!1};function Et(e,t,o){e.addEventListener(t,o,!Ct&&Dt)}function Ft(e,t,o){e.removeEventListener(t,o,!Ct&&Dt)}function It(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 At(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&&It(e,t):It(e,t))||l&&e===o)return e;if(e===o)break}while(e=At(e))}return null}var $t,Nt=/\s+/g;function zt(e,t,o){if(e&&t)if(e.classList)e.classList[o?"add":"remove"](t);else{var l=(" "+e.className+" ").replace(Nt," ").replace(" "+t+" "," ");e.className=(l+(o?" "+t:"")).replace(Nt," ")}}function Ot(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 Pt(e,t){var o="";if("string"==typeof e)o=e;else do{var l=Ot(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 Ht(e,t,o){if(e){var l=e.getElementsByTagName(t),r=0,a=l.length;if(o)for(;r<a;r++)o(l[r],r);return l}return[]}function Ut(){var e=document.scrollingElement;return e||document.documentElement}function Mt(e,t,o,l,r){if(e.getBoundingClientRect||e===window){var a,n,i,s,u,d,c;if(e!==window&&e.parentNode&&e!==Ut()?(n=(a=e.getBoundingClientRect()).top,i=a.left,s=a.bottom,u=a.right,d=a.height,c=a.width):(n=0,i=0,s=window.innerHeight,u=window.innerWidth,d=window.innerHeight,c=window.innerWidth),(t||o)&&e!==window&&(r=r||e.parentNode,!Ct))do{if(r&&r.getBoundingClientRect&&("none"!==Ot(r,"transform")||o&&"static"!==Ot(r,"position"))){var p=r.getBoundingClientRect();n-=p.top+parseInt(Ot(r,"border-top-width")),i-=p.left+parseInt(Ot(r,"border-left-width")),s=n+a.height,u=i+a.width;break}}while(r=r.parentNode);if(l&&e!==window){var m=Pt(r||e),g=m&&m.a,f=m&&m.d;m&&(s=(n/=f)+(d/=f),u=(i/=g)+(c/=g))}return{top:n,left:i,bottom:s,right:u,width:c,height:d}}}function jt(e,t,o){for(var l=Vt(e,!0),r=Mt(e)[t];l;){var a=Mt(l)[o];if(!("top"===o||"left"===o?r>=a:r<=a))return l;if(l===Ut())break;l=Vt(l,!1)}return!1}function Gt(e,t,o,l){for(var r=0,a=0,n=e.children;a<n.length;){if("none"!==n[a].style.display&&n[a]!==Ko.ghost&&(l||n[a]!==Ko.dragged)&&Wt(n[a],o.draggable,e,!1)){if(r===t)return n[a];r++}a++}return null}function Lt(e,t){for(var o=e.lastElementChild;o&&(o===Ko.ghost||"none"===Ot(o,"display")||t&&!It(o,t));)o=o.previousElementSibling;return o||null}function Yt(e,t){var o=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===Ko.clone||t&&!It(e,t)||o++;return o}function Xt(e){var t=0,o=0,l=Ut();if(e)do{var r=Pt(e),a=r.a,n=r.d;t+=e.scrollLeft*a,o+=e.scrollTop*n}while(e!==l&&(e=e.parentNode));return[t,o]}function Vt(e,t){if(!e||!e.getBoundingClientRect)return Ut();var o=e,l=!1;do{if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var r=Ot(o);if(o.clientWidth<o.scrollWidth&&("auto"==r.overflowX||"scroll"==r.overflowX)||o.clientHeight<o.scrollHeight&&("auto"==r.overflowY||"scroll"==r.overflowY)){if(!o.getBoundingClientRect||o===document.body)return Ut();if(l||t)return o;l=!0}}}while(o=o.parentNode);return Ut()}function qt(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function Zt(e,t){return function(){if(!$t){var o=arguments;1===o.length?e.call(this,o[0]):e.apply(this,o),$t=setTimeout((function(){$t=void 0}),t)}}}function Jt(e,t,o){e.scrollLeft+=t,e.scrollTop+=o}function Qt(e){var t=window.Polymer,o=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):o?o(e).clone(!0)[0]:e.cloneNode(!0)}function Kt(e,t,o){var l={};return Array.from(e.children).forEach((function(r){var a,n,i,s;if(Wt(r,t.draggable,e,!1)&&!r.animated&&r!==o){var u=Mt(r);l.left=Math.min(null!==(a=l.left)&&void 0!==a?a:1/0,u.left),l.top=Math.min(null!==(n=l.top)&&void 0!==n?n:1/0,u.top),l.right=Math.max(null!==(i=l.right)&&void 0!==i?i:-1/0,u.right),l.bottom=Math.max(null!==(s=l.bottom)&&void 0!==s?s:-1/0,u.bottom)}})),l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}var eo="Sortable"+(new Date).getTime();function to(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(e){if("none"!==Ot(e,"display")&&e!==Ko.ghost){t.push({target:e,rect:Mt(e)});var o=vt({},t[t.length-1].rect);if(e.thisAnimationDuration){var l=Pt(e,!0);l&&(o.top-=l.f,o.left-=l.e)}e.fromRect=o}}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var o in e)if(e.hasOwnProperty(o))for(var l in t)if(t.hasOwnProperty(l)&&t[l]===e[o][l])return Number(o);return-1}(t,{target:e}),1)},animateAll:function(o){var l=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof o&&o());var r=!1,a=0;t.forEach((function(e){var t=0,o=e.target,n=o.fromRect,i=Mt(o),s=o.prevFromRect,u=o.prevToRect,d=e.rect,c=Pt(o,!0);c&&(i.top-=c.f,i.left-=c.e),o.toRect=i,o.thisAnimationDuration&&qt(s,i)&&!qt(n,i)&&(d.top-i.top)/(d.left-i.left)==(n.top-i.top)/(n.left-i.left)&&(t=function(e,t,o,l){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-o.top,2)+Math.pow(t.left-o.left,2))*l.animation}(d,s,u,l.options)),qt(i,n)||(o.prevFromRect=n,o.prevToRect=i,t||(t=l.options.animation),l.animate(o,d,i,t)),t&&(r=!0,a=Math.max(a,t),clearTimeout(o.animationResetTimer),o.animationResetTimer=setTimeout((function(){o.animationTime=0,o.prevFromRect=null,o.fromRect=null,o.prevToRect=null,o.thisAnimationDuration=null}),t),o.thisAnimationDuration=t)})),clearTimeout(e),r?e=setTimeout((function(){"function"==typeof o&&o()}),a):"function"==typeof o&&o(),t=[]},animate:function(e,t,o,l){if(l){Ot(e,"transition",""),Ot(e,"transform","");var r=Pt(this.el),a=r&&r.a,n=r&&r.d,i=(t.left-o.left)/(a||1),s=(t.top-o.top)/(n||1);e.animatingX=!!i,e.animatingY=!!s,Ot(e,"transform","translate3d("+i+"px,"+s+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),Ot(e,"transition","transform "+l+"ms"+(this.options.easing?" "+this.options.easing:"")),Ot(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){Ot(e,"transition",""),Ot(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),l)}}}}var oo=[],lo={initializeByDefault:!0},ro={mount:function(e){for(var t in lo)lo.hasOwnProperty(t)&&!(t in e)&&(e[t]=lo[t]);oo.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),oo.push(e)},pluginEvent:function(e,t,o){var l=this;this.eventCanceled=!1,o.cancel=function(){l.eventCanceled=!0};var r=e+"Global";oo.forEach((function(l){t[l.pluginName]&&(t[l.pluginName][r]&&t[l.pluginName][r](vt({sortable:t},o)),t.options[l.pluginName]&&t[l.pluginName][e]&&t[l.pluginName][e](vt({sortable:t},o)))}))},initializePlugins:function(e,t,o,l){for(var r in oo.forEach((function(l){var r=l.pluginName;if(e.options[r]||l.initializeByDefault){var a=new l(e,t,e.options);a.sortable=e,a.options=e.options,e[r]=a,yt(o,a.defaults)}})),e.options)if(e.options.hasOwnProperty(r)){var a=this.modifyOption(e,r,e.options[r]);void 0!==a&&(e.options[r]=a)}},getEventProperties:function(e,t){var o={};return oo.forEach((function(l){"function"==typeof l.eventProperties&&yt(o,l.eventProperties.call(t[l.pluginName],e))})),o},modifyOption:function(e,t,o){var l;return oo.forEach((function(r){e[r.pluginName]&&r.optionListeners&&"function"==typeof r.optionListeners[t]&&(l=r.optionListeners[t].call(e[r.pluginName],o))})),l}};var ao=["evt"],no=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=o.evt,r=wt(o,ao);ro.pluginEvent.bind(Ko)(e,t,vt({dragEl:so,parentEl:uo,ghostEl:co,rootEl:po,nextEl:mo,lastDownEl:go,cloneEl:fo,cloneHidden:ho,dragStarted:Do,putSortable:_o,activeSortable:Ko.active,originalEvent:l,oldIndex:vo,oldDraggableIndex:xo,newIndex:bo,newDraggableIndex:yo,hideGhostForTarget:qo,unhideGhostForTarget:Zo,cloneNowHidden:function(){ho=!0},cloneNowShown:function(){ho=!1},dispatchSortableEvent:function(e){io({sortable:t,name:e,originalEvent:l})}},r))};function io(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[eo]){var f,h=t.options,v="on"+l.charAt(0).toUpperCase()+l.substr(1);!window.CustomEvent||Ct||kt?(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 b=vt(vt({},g),ro.getEventProperties(l,t));for(var x in b)f[x]=b[x];o&&o.dispatchEvent(f),h[v]&&h[v].call(t,f)}}(vt({putSortable:_o,cloneEl:fo,targetEl:so,rootEl:po,oldIndex:vo,oldDraggableIndex:xo,newIndex:bo,newDraggableIndex:yo},e))}var so,uo,co,po,mo,go,fo,ho,vo,bo,xo,yo,wo,_o,Co,ko,So,Ro,To,Bo,Do,Eo,Fo,Io,Ao,Wo=!1,$o=!1,No=[],zo=!1,Oo=!1,Po=[],Ho=!1,Uo=[],Mo="undefined"!=typeof document,jo=Tt,Go=kt||Ct?"cssFloat":"float",Lo=Mo&&!Bt&&!Tt&&"draggable"in document.createElement("div"),Yo=function(){if(Mo){if(Ct)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Xo=function(e,t){var o=Ot(e),l=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),r=Gt(e,0,t),a=Gt(e,1,t),n=r&&Ot(r),i=a&&Ot(a),s=n&&parseInt(n.marginLeft)+parseInt(n.marginRight)+Mt(r).width,u=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+Mt(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[Go]||a&&"none"===o[Go]&&s+u>l)?"vertical":"horizontal"},Vo=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"==bt(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},qo=function(){!Yo&&co&&Ot(co,"display","none")},Zo=function(){!Yo&&co&&Ot(co,"display","")};Mo&&!Bt&&document.addEventListener("click",(function(e){if($o)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),$o=!1,!1}),!0);var Jo=function(e){if(so){e=e.touches?e.touches[0]:e;var t=(r=e.clientX,a=e.clientY,No.some((function(e){var t=e[eo].options.emptyInsertThreshold;if(t&&!Lt(e)){var o=Mt(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[eo]._onDragOver(o)}}var r,a,n},Qo=function(e){so&&so.parentNode[eo]._isOutsideThisEl(e.target)};function Ko(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=yt({},t),e[eo]=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 Xo(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!==Ko.supportPointer&&"PointerEvent"in window&&!Rt,emptyInsertThreshold:5};for(var l in ro.initializePlugins(this,e,o),o)!(l in t)&&(t[l]=o[l]);for(var r in Vo(t),this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!t.forceFallback&&Lo,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Et(e,"pointerdown",this._onTapStart):(Et(e,"mousedown",this._onTapStart),Et(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Et(e,"dragover",this),Et(e,"dragenter",this)),No.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),yt(this,to())}function el(e,t,o,l,r,a,n,i){var s,u,d=e[eo],c=d.options.onMove;return!window.CustomEvent||Ct||kt?(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||Mt(t),s.willInsertAfter=i,s.originalEvent=n,e.dispatchEvent(s),c&&(u=c.call(d,s,n)),u}function tl(e){e.draggable=!1}function ol(){Ho=!1}function ll(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 rl(e){return setTimeout(e,0)}function al(e){return clearTimeout(e)}Ko.prototype={constructor:Ko,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Eo=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,so):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){Uo.length=0;var t=e.getElementsByTagName("input"),o=t.length;for(;o--;){var l=t[o];l.checked&&Uo.push(l)}}(o),!so&&!(/mousedown|pointerdown/.test(a)&&0!==e.button||l.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!Rt||!i||"SELECT"!==i.tagName.toUpperCase())&&!((i=Wt(i,l.draggable,o,!1))&&i.animated||go===i)){if(vo=Yt(i),xo=Yt(i,l.draggable),"function"==typeof u){if(u.call(this,e,i,this))return io({sortable:t,rootEl:s,name:"filter",targetEl:i,toEl:o,fromEl:o}),no("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 io({sortable:t,rootEl:l,name:"filter",targetEl:i,fromEl:o,toEl:o}),no("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&&!so&&o.parentNode===a){var s=Mt(o);if(po=a,uo=(so=o).parentNode,mo=so.nextSibling,go=o,wo=n.group,Ko.dragged=so,Co={target:so,clientX:(t||e).clientX,clientY:(t||e).clientY},To=Co.clientX-s.left,Bo=Co.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,so.style["will-change"]="all",l=function(){no("delayEnded",r,{evt:e}),Ko.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!St&&r.nativeDraggable&&(so.draggable=!0),r._triggerDragStart(e,t),io({sortable:r,name:"choose",originalEvent:e}),zt(so,n.chosenClass,!0))},n.ignore.split(",").forEach((function(e){Ht(so,e.trim(),tl)})),Et(i,"dragover",Jo),Et(i,"mousemove",Jo),Et(i,"touchmove",Jo),Et(i,"mouseup",r._onDrop),Et(i,"touchend",r._onDrop),Et(i,"touchcancel",r._onDrop),St&&this.nativeDraggable&&(this.options.touchStartThreshold=4,so.draggable=!0),no("delayStart",this,{evt:e}),!n.delay||n.delayOnTouchOnly&&!t||this.nativeDraggable&&(kt||Ct))l();else{if(Ko.eventCanceled)return void this._onDrop();Et(i,"mouseup",r._disableDelayedDrag),Et(i,"touchend",r._disableDelayedDrag),Et(i,"touchcancel",r._disableDelayedDrag),Et(i,"mousemove",r._delayedDragTouchMoveHandler),Et(i,"touchmove",r._delayedDragTouchMoveHandler),n.supportPointer&&Et(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(){so&&tl(so),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Ft(e,"mouseup",this._disableDelayedDrag),Ft(e,"touchend",this._disableDelayedDrag),Ft(e,"touchcancel",this._disableDelayedDrag),Ft(e,"mousemove",this._delayedDragTouchMoveHandler),Ft(e,"touchmove",this._delayedDragTouchMoveHandler),Ft(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?Et(document,"pointermove",this._onTouchMove):Et(document,t?"touchmove":"mousemove",this._onTouchMove):(Et(so,"dragend",this),Et(po,"dragstart",this._onDragStart));try{document.selection?rl((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(o){}},_dragStarted:function(e,t){if(Wo=!1,po&&so){no("dragStarted",this,{evt:t}),this.nativeDraggable&&Et(document,"dragover",Qo);var o=this.options;!e&&zt(so,o.dragClass,!1),zt(so,o.ghostClass,!0),Ko.active=this,e&&this._appendGhost(),io({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(ko){this._lastX=ko.clientX,this._lastY=ko.clientY,qo();for(var e=document.elementFromPoint(ko.clientX,ko.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(ko.clientX,ko.clientY))!==t;)t=e;if(so.parentNode[eo]._isOutsideThisEl(e),t)do{if(t[eo]){if(t[eo]._onDragOver({clientX:ko.clientX,clientY:ko.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Zo()}},_onTouchMove:function(e){if(Co){var t=this.options,o=t.fallbackTolerance,l=t.fallbackOffset,r=e.touches?e.touches[0]:e,a=co&&Pt(co,!0),n=co&&a&&a.a,i=co&&a&&a.d,s=jo&&Ao&&Xt(Ao),u=(r.clientX-Co.clientX+l.x)/(n||1)+(s?s[0]-Po[0]:0)/(n||1),d=(r.clientY-Co.clientY+l.y)/(i||1)+(s?s[1]-Po[1]:0)/(i||1);if(!Ko.active&&!Wo){if(o&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<o)return;this._onDragStart(e,!0)}if(co){a?(a.e+=u-(So||0),a.f+=d-(Ro||0)):a={a:1,b:0,c:0,d:1,e:u,f:d};var c="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");Ot(co,"webkitTransform",c),Ot(co,"mozTransform",c),Ot(co,"msTransform",c),Ot(co,"transform",c),So=u,Ro=d,ko=r}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!co){var e=this.options.fallbackOnBody?document.body:po,t=Mt(so,!0,jo,!0,e),o=this.options;if(jo){for(Ao=e;"static"===Ot(Ao,"position")&&"none"===Ot(Ao,"transform")&&Ao!==document;)Ao=Ao.parentNode;Ao!==document.body&&Ao!==document.documentElement?(Ao===document&&(Ao=Ut()),t.top+=Ao.scrollTop,t.left+=Ao.scrollLeft):Ao=Ut(),Po=Xt(Ao)}zt(co=so.cloneNode(!0),o.ghostClass,!1),zt(co,o.fallbackClass,!0),zt(co,o.dragClass,!0),Ot(co,"transition",""),Ot(co,"transform",""),Ot(co,"box-sizing","border-box"),Ot(co,"margin",0),Ot(co,"top",t.top),Ot(co,"left",t.left),Ot(co,"width",t.width),Ot(co,"height",t.height),Ot(co,"opacity","0.8"),Ot(co,"position",jo?"absolute":"fixed"),Ot(co,"zIndex","100000"),Ot(co,"pointerEvents","none"),Ko.ghost=co,e.appendChild(co),Ot(co,"transform-origin",To/parseInt(co.style.width)*100+"% "+Bo/parseInt(co.style.height)*100+"%")}},_onDragStart:function(e,t){var o=this,l=e.dataTransfer,r=o.options;no("dragStart",this,{evt:e}),Ko.eventCanceled?this._onDrop():(no("setupClone",this),Ko.eventCanceled||((fo=Qt(so)).removeAttribute("id"),fo.draggable=!1,fo.style["will-change"]="",this._hideClone(),zt(fo,this.options.chosenClass,!1),Ko.clone=fo),o.cloneId=rl((function(){no("clone",o),Ko.eventCanceled||(o.options.removeCloneOnHide||po.insertBefore(fo,so),o._hideClone(),io({sortable:o,name:"clone"}))})),!t&&zt(so,r.dragClass,!0),t?($o=!0,o._loopId=setInterval(o._emulateDragOver,50)):(Ft(document,"mouseup",o._onDrop),Ft(document,"touchend",o._onDrop),Ft(document,"touchcancel",o._onDrop),l&&(l.effectAllowed="move",r.setData&&r.setData.call(o,l,so)),Et(document,"drop",o),Ot(so,"transform","translateZ(0)")),Wo=!0,o._dragStartId=rl(o._dragStarted.bind(o,t,e)),Et(document,"selectstart",o),Do=!0,Rt&&Ot(document.body,"user-select","none"))},_onDragOver:function(e){var t,o,l,r,a=this.el,n=e.target,i=this.options,s=i.group,u=Ko.active,d=wo===s,c=i.sort,p=_o||u,m=this,g=!1;if(!Ho){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),n=Wt(n,i.draggable,a,!0),D("dragOver"),Ko.eventCanceled)return g;if(so.contains(e.target)||n.animated&&n.animatingX&&n.animatingY||m._ignoreWhileAnimating===n)return F(!1);if($o=!1,u&&!i.disabled&&(d?c||(l=uo!==po):_o===this||(this.lastPutMode=wo.checkPull(this,u,so,e))&&s.checkPut(this,u,so,e))){if(r="vertical"===this._getDirection(e,n),t=Mt(so),D("dragOverValid"),Ko.eventCanceled)return g;if(l)return uo=po,E(),this._hideClone(),D("revert"),Ko.eventCanceled||(mo?po.insertBefore(so,mo):po.appendChild(so)),F(!0);var f=Lt(a,i.draggable);if(!f||function(e,t,o){var l=Mt(Lt(o.el,o.options.draggable)),r=Kt(o.el,o.options,co),a=10;return t?e.clientX>r.right+a||e.clientY>l.bottom&&e.clientX>l.left:e.clientY>r.bottom+a||e.clientX>l.right&&e.clientY>l.top}(e,r,this)&&!f.animated){if(f===so)return F(!1);if(f&&a===e.target&&(n=f),n&&(o=Mt(n)),!1!==el(po,a,so,t,n,o,e,!!n))return E(),f&&f.nextSibling?a.insertBefore(so,f.nextSibling):a.appendChild(so),uo=a,I(),F(!0)}else if(f&&function(e,t,o){var l=Mt(Gt(o.el,0,o.options,!0)),r=Kt(o.el,o.options,co),a=10;return t?e.clientX<r.left-a||e.clientY<l.top&&e.clientX<l.right:e.clientY<r.top-a||e.clientY<l.bottom&&e.clientX<l.left}(e,r,this)){var h=Gt(a,0,i,!0);if(h===so)return F(!1);if(o=Mt(n=h),!1!==el(po,a,so,t,n,o,e,!1))return E(),a.insertBefore(so,h),uo=a,I(),F(!0)}else if(n.parentNode===a){o=Mt(n);var v,b,x,y=so.parentNode!==a,w=!function(e,t,o){var l=o?e.left:e.top,r=o?e.right:e.bottom,a=o?e.width:e.height,n=o?t.left:t.top,i=o?t.right:t.bottom,s=o?t.width:t.height;return l===n||r===i||l+a/2===n+s/2}(so.animated&&so.toRect||t,n.animated&&n.toRect||o,r),_=r?"top":"left",C=jt(n,"top","top")||jt(so,"top","top"),k=C?C.scrollTop:void 0;if(Eo!==n&&(b=o[_],zo=!1,Oo=!w&&i.invertSwap||y),v=function(e,t,o,l,r,a,n,i){var s=l?e.clientY:e.clientX,u=l?o.height:o.width,d=l?o.top:o.left,c=l?o.bottom:o.right,p=!1;if(!n)if(i&&Io<u*r){if(!zo&&(1===Fo?s>d+u*a/2:s<c-u*a/2)&&(zo=!0),zo)p=!0;else if(1===Fo?s<d+Io:s>c-Io)return-Fo}else if(s>d+u*(1-r)/2&&s<c-u*(1-r)/2)return function(e){return Yt(so)<Yt(e)?1:-1}(t);if((p=p||n)&&(s<d+u*a/2||s>c-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,Oo,Eo===n),0!==v){var S=Yt(so);do{S-=v,x=uo.children[S]}while(x&&("none"===Ot(x,"display")||x===co))}if(0===v||x===n)return F(!1);Eo=n,Fo=v;var R=n.nextElementSibling,T=!1,B=el(po,a,so,t,n,o,e,T=1===v);if(!1!==B)return 1!==B&&-1!==B||(T=1===B),Ho=!0,setTimeout(ol,30),E(),T&&!R?a.appendChild(so):n.parentNode.insertBefore(so,T?R:n),C&&Jt(C,0,k-C.scrollTop),uo=so.parentNode,void 0===b||Oo||(Io=Math.abs(b-Mt(n)[_])),I(),F(!0)}if(a.contains(so))return F(!1)}return!1}function D(i,s){no(i,m,vt({evt:e,isOwner:d,axis:r?"vertical":"horizontal",revert:l,dragRect:t,targetRect:o,canSort:c,fromSortable:p,target:n,completed:F,onMove:function(o,l){return el(po,a,so,t,o,Mt(o),e,l)},changed:I},s))}function E(){D("dragOverAnimationCapture"),m.captureAnimationState(),m!==p&&p.captureAnimationState()}function F(t){return D("dragOverCompleted",{insertion:t}),t&&(d?u._hideClone():u._showClone(m),m!==p&&(zt(so,_o?_o.options.ghostClass:u.options.ghostClass,!1),zt(so,i.ghostClass,!0)),_o!==m&&m!==Ko.active?_o=m:m===Ko.active&&_o&&(_o=null),p===m&&(m._ignoreWhileAnimating=n),m.animateAll((function(){D("dragOverAnimationComplete"),m._ignoreWhileAnimating=null})),m!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(n===so&&!so.animated||n===a&&!n.animated)&&(Eo=null),i.dragoverBubble||e.rootEl||n===document||(so.parentNode[eo]._isOutsideThisEl(e.target),!t&&Jo(e)),!i.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),g=!0}function I(){bo=Yt(so),yo=Yt(so,i.draggable),io({sortable:m,name:"change",toEl:a,newIndex:bo,newDraggableIndex:yo,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){Ft(document,"mousemove",this._onTouchMove),Ft(document,"touchmove",this._onTouchMove),Ft(document,"pointermove",this._onTouchMove),Ft(document,"dragover",Jo),Ft(document,"mousemove",Jo),Ft(document,"touchmove",Jo)},_offUpEvents:function(){var e=this.el.ownerDocument;Ft(e,"mouseup",this._onDrop),Ft(e,"touchend",this._onDrop),Ft(e,"pointerup",this._onDrop),Ft(e,"touchcancel",this._onDrop),Ft(document,"selectstart",this)},_onDrop:function(e){var t=this.el,o=this.options;bo=Yt(so),yo=Yt(so,o.draggable),no("drop",this,{evt:e}),uo=so&&so.parentNode,bo=Yt(so),yo=Yt(so,o.draggable),Ko.eventCanceled||(Wo=!1,Oo=!1,zo=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),al(this.cloneId),al(this._dragStartId),this.nativeDraggable&&(Ft(document,"drop",this),Ft(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Rt&&Ot(document.body,"user-select",""),Ot(so,"transform",""),e&&(Do&&(e.cancelable&&e.preventDefault(),!o.dropBubble&&e.stopPropagation()),co&&co.parentNode&&co.parentNode.removeChild(co),(po===uo||_o&&"clone"!==_o.lastPutMode)&&fo&&fo.parentNode&&fo.parentNode.removeChild(fo),so&&(this.nativeDraggable&&Ft(so,"dragend",this),tl(so),so.style["will-change"]="",Do&&!Wo&&zt(so,_o?_o.options.ghostClass:this.options.ghostClass,!1),zt(so,this.options.chosenClass,!1),io({sortable:this,name:"unchoose",toEl:uo,newIndex:null,newDraggableIndex:null,originalEvent:e}),po!==uo?(bo>=0&&(io({rootEl:uo,name:"add",toEl:uo,fromEl:po,originalEvent:e}),io({sortable:this,name:"remove",toEl:uo,originalEvent:e}),io({rootEl:uo,name:"sort",toEl:uo,fromEl:po,originalEvent:e}),io({sortable:this,name:"sort",toEl:uo,originalEvent:e})),_o&&_o.save()):bo!==vo&&bo>=0&&(io({sortable:this,name:"update",toEl:uo,originalEvent:e}),io({sortable:this,name:"sort",toEl:uo,originalEvent:e})),Ko.active&&(null!=bo&&-1!==bo||(bo=vo,yo=xo),io({sortable:this,name:"end",toEl:uo,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){no("nulling",this),po=so=uo=co=mo=fo=go=ho=Co=ko=Do=bo=yo=vo=xo=Eo=Fo=_o=wo=Ko.dragged=Ko.ghost=Ko.clone=Ko.active=null,Uo.forEach((function(e){e.checked=!0})),Uo.length=So=Ro=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":so&&(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<r;l++)Wt(e=o[l],a.draggable,this.el,!1)&&t.push(e.getAttribute(a.dataIdAttr)||ll(e));return t},sort:function(e,t){var o={},l=this.el;this.toArray().forEach((function(e,t){var r=l.children[t];Wt(r,this.options.draggable,l,!1)&&(o[e]=r)}),this),t&&this.captureAnimationState(),e.forEach((function(e){o[e]&&(l.removeChild(o[e]),l.appendChild(o[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return Wt(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var o=this.options;if(void 0===t)return o[e];var l=ro.modifyOption(this,e,t);o[e]=void 0!==l?l:t,"group"===e&&Vo(o)},destroy:function(){no("destroy",this);var e=this.el;e[eo]=null,Ft(e,"mousedown",this._onTapStart),Ft(e,"touchstart",this._onTapStart),Ft(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(Ft(e,"dragover",this),Ft(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),No.splice(No.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!ho){if(no("hideClone",this),Ko.eventCanceled)return;Ot(fo,"display","none"),this.options.removeCloneOnHide&&fo.parentNode&&fo.parentNode.removeChild(fo),ho=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(ho){if(no("showClone",this),Ko.eventCanceled)return;so.parentNode!=po||this.options.group.revertClone?mo?po.insertBefore(fo,mo):po.appendChild(fo):po.insertBefore(fo,so),this.options.group.revertClone&&this.animate(so,fo),Ot(fo,"display",""),ho=!1}}else this._hideClone()}},Mo&&Et(document,"touchmove",(function(e){(Ko.active||Wo)&&e.cancelable&&e.preventDefault()})),Ko.utils={on:Et,off:Ft,css:Ot,find:Ht,is:function(e,t){return!!Wt(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o]);return e},throttle:Zt,closest:Wt,toggleClass:zt,clone:Qt,index:Yt,nextTick:rl,cancelNextTick:al,detectDirection:Xo,getChild:Gt},Ko.get=function(e){return e[eo]},Ko.mount=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Ko.utils=vt(vt({},Ko.utils),e.utils)),ro.mount(e)}))},Ko.create=function(e,t){return new Ko(e,t)},Ko.version="1.15.2";var nl,il,sl,ul,dl,cl,pl=[],ml=!1;function gl(){pl.forEach((function(e){clearInterval(e.pid)})),pl=[]}function fl(){clearInterval(cl)}var hl=Zt((function(e,t,o,l){if(t.scroll){var r,a=(e.touches?e.touches[0]:e).clientX,n=(e.touches?e.touches[0]:e).clientY,i=t.scrollSensitivity,s=t.scrollSpeed,u=Ut(),d=!1;il!==o&&(il=o,gl(),nl=t.scroll,r=t.scrollFn,!0===nl&&(nl=Vt(o,!0)));var c=0,p=nl;do{var m=p,g=Mt(m),f=g.top,h=g.bottom,v=g.left,b=g.right,x=g.width,y=g.height,w=void 0,_=void 0,C=m.scrollWidth,k=m.scrollHeight,S=Ot(m),R=m.scrollLeft,T=m.scrollTop;m===u?(w=x<C&&("auto"===S.overflowX||"scroll"===S.overflowX||"visible"===S.overflowX),_=y<k&&("auto"===S.overflowY||"scroll"===S.overflowY||"visible"===S.overflowY)):(w=x<C&&("auto"===S.overflowX||"scroll"===S.overflowX),_=y<k&&("auto"===S.overflowY||"scroll"===S.overflowY));var B=w&&(Math.abs(b-a)<=i&&R+x<C)-(Math.abs(v-a)<=i&&!!R),D=_&&(Math.abs(h-n)<=i&&T+y<k)-(Math.abs(f-n)<=i&&!!T);if(!pl[c])for(var E=0;E<=c;E++)pl[E]||(pl[E]={});pl[c].vx==B&&pl[c].vy==D&&pl[c].el===m||(pl[c].el=m,pl[c].vx=B,pl[c].vy=D,clearInterval(pl[c].pid),0==B&&0==D||(d=!0,pl[c].pid=setInterval(function(){l&&0===this.layer&&Ko.active._onTouchMove(dl);var t=pl[this.layer].vy?pl[this.layer].vy*s:0,o=pl[this.layer].vx?pl[this.layer].vx*s:0;"function"==typeof r&&"continue"!==r.call(Ko.dragged.parentNode[eo],o,t,e,dl,pl[this.layer].el)||Jt(pl[this.layer].el,o,t)}.bind({layer:c}),24))),c++}while(t.bubbleScroll&&p!==u&&(p=Vt(p,!1)));ml=d}}),30),vl=function(e){var t=e.originalEvent,o=e.putSortable,l=e.dragEl,r=e.activeSortable,a=e.dispatchSortableEvent,n=e.hideGhostForTarget,i=e.unhideGhostForTarget;if(t){var s=o||r;n();var u=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,d=document.elementFromPoint(u.clientX,u.clientY);i(),s&&!s.el.contains(d)&&(a("spill"),this.onSpill({dragEl:l,putSortable:o}))}};function bl(){}function xl(){}bl.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=Gt(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:vl},yt(bl,{pluginName:"revertOnSpill"}),xl.prototype={onSpill:function(e){var t=e.dragEl,o=e.putSortable||this.sortable;o.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),o.animateAll()},drop:vl},yt(xl,{pluginName:"removeOnSpill"}),Ko.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?Et(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Et(document,"pointermove",this._handleFallbackAutoScroll):t.touches?Et(document,"touchmove",this._handleFallbackAutoScroll):Et(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?Ft(document,"dragover",this._handleAutoScroll):(Ft(document,"pointermove",this._handleFallbackAutoScroll),Ft(document,"touchmove",this._handleFallbackAutoScroll),Ft(document,"mousemove",this._handleFallbackAutoScroll)),fl(),gl(),clearTimeout($t),$t=void 0},nulling:function(){dl=il=nl=ml=cl=sl=ul=null,pl.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(dl=e,t||this.options.forceAutoScrollFallback||kt||Ct||Rt){hl(e,this.options,a,t);var n=Vt(a,!0);!ml||cl&&l===sl&&r===ul||(cl&&fl(),cl=setInterval((function(){var a=Vt(document.elementFromPoint(l,r),!0);a!==n&&(n=a,gl()),hl(e,o.options,a,t)}),10),sl=l,ul=r)}else{if(!this.options.bubbleScroll||Vt(a,!0)===Ut())return void gl();hl(e,this.options,Vt(a,!1),!1)}}},yt(e,{pluginName:"scroll",initializeByDefault:!0})}),Ko.mount(xl,bl);const yl=Se(w({__name:"index",props:["data","pullDownRefreshCount"],setup(e,{expose:t}){const o=e,l=n(null),r=i(),a=function(e={}){let t="";const o=n({}),l=i(),r=n(["fixed","top_fixed","right_fixed","bottom_fixed","left_fixed"]),a=u((()=>"decorate"==l.mode?l:e.data)),s=n(!1);return p((()=>{s.value=!1})),h((()=>{s.value=!0})),{scrollV:n().value,data:a.value,componentsScrollBool:o.value,placeholderEvent:()=>{},refresh:()=>{k((()=>{var t;null==(t=e.getFormRef().topTabbarRef)||t.refresh()}))},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,"ImageAds"==t.componentName&&(o["overflow-hidden"]=!0),o},onPageScroll:()=>{y((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:()=>{C((()=>{if("decorate"==l.mode){var e=document.getElementById("componentList");const t=Ko.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),k((()=>{t.sort(qe(l.value.length).map((e=>e.toString()))),l.postMessage(e.newIndex,l.value[e.newIndex])}))}})}k((()=>{setTimeout((()=>{if(t=uni.getStorageSync("componentsScrollValGroup"),t)for(let e in t)o.value[e]=-1}),500)}))}))}}}({...o,getFormRef:()=>({topTabbarRef:l.value})}),s=n(a.data);return a.onMounted(),a.onPageScroll(),t({refresh:a.refresh}),(e,t)=>{const n=j,i=R(T("diy-graphic-nav"),Je),u=R(T("diy-horz-blank"),Qe),d=R(T("diy-horz-line"),Ke),c=R(T("diy-hot-area"),et),p=R(T("diy-image-ads"),tt),m=R(T("diy-member-info"),ot),g=R(T("diy-member-level"),lt),f=R(T("diy-notice"),rt),h=R(T("diy-rubik-cube"),at),v=R(T("diy-text"),nt),b=R(T("diy-rich-text"),it),x=R(T("diy-active-cube"),st),y=R(T("diy-float-btn"),ut),w=R(T("diy-carousel-search"),dt),_=R(T("diy-picture-show"),ct),C=R(T("tabbar"),ft);return B(),D(n,{class:"diy-group",id:"componentList"},{default:E((()=>[s.value.global&&Object.keys(s.value.global).length&&s.value.global.topStatusBar&&s.value.global.topStatusBar.isShow?(B(),D(Fe,{key:0,scrollBool:A(a).componentsScrollBool.TopTabbar,ref_key:"topTabbarRef",ref:l,data:s.value.global},null,8,["scrollBool","data"])):H("v-if",!0),(B(!0),W($,null,N(s.value.value,((e,t)=>(B(),D(n,{key:e.id,onClick:o=>A(r).changeCurrentIndex(t,e),class:z(A(a).getComponentClass(t,e)),style:I(e.pageStyle)},{default:E((()=>[F(n,{class:"relative",style:I({marginTop:e.margin.top<0?2*e.margin.top+"rpx":"0"})},{default:E((()=>[H(" 装修模式下,设置负上边距后超出的内容,禁止选中设置 "),A(a).isShowPlaceHolder(t,e)?(B(),D(n,{key:0,class:"absolute w-full z-1",style:I({height:2*e.margin.top*-1+"rpx"}),onClick:se(A(a).placeholderEvent,["stop"])},null,8,["style","onClick"])):H("v-if",!0),"GraphicNav"==e.componentName?(B(),D(i,{key:1,component:e,global:s.value.global,index:t,pullDownRefreshCount:o.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):H("v-if",!0),"HorzBlank"==e.componentName?(B(),D(u,{key:2,component:e,global:s.value.global,index:t,pullDownRefreshCount:o.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):H("v-if",!0),"HorzLine"==e.componentName?(B(),D(d,{key:3,component:e,global:s.value.global,index:t,pullDownRefreshCount:o.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):H("v-if",!0),"HotArea"==e.componentName?(B(),D(c,{key:4,component:e,global:s.value.global,index:t,pullDownRefreshCount:o.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):H("v-if",!0),"ImageAds"==e.componentName?(B(),D(p,{key:5,component:e,global:s.value.global,index:t,pullDownRefreshCount:o.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):H("v-if",!0),"MemberInfo"==e.componentName?(B(),D(m,{key:6,component:e,global:s.value.global,index:t,pullDownRefreshCount:o.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):H("v-if",!0),"MemberLevel"==e.componentName?(B(),D(g,{key:7,component:e,global:s.value.global,index:t,pullDownRefreshCount:o.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):H("v-if",!0),"Notice"==e.componentName?(B(),D(f,{key:8,component:e,global:s.value.global,index:t,pullDownRefreshCount:o.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):H("v-if",!0),"RubikCube"==e.componentName?(B(),D(h,{key:9,component:e,global:s.value.global,index:t,pullDownRefreshCount:o.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):H("v-if",!0),"Text"==e.componentName?(B(),D(v,{key:10,component:e,global:s.value.global,index:t,pullDownRefreshCount:o.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):H("v-if",!0),"RichText"==e.componentName?(B(),D(b,{key:11,component:e,global:s.value.global,index:t,pullDownRefreshCount:o.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):H("v-if",!0),"ActiveCube"==e.componentName?(B(),D(x,{key:12,component:e,global:s.value.global,index:t,pullDownRefreshCount:o.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):H("v-if",!0),"FloatBtn"==e.componentName?(B(),D(y,{key:13,component:e,global:s.value.global,index:t,pullDownRefreshCount:o.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):H("v-if",!0),"CarouselSearch"==e.componentName?(B(),D(w,{key:14,scrollBool:A(a).componentsScrollBool.CarouselSearch,component:e,global:s.value.global,index:t,pullDownRefreshCount:o.pullDownRefreshCount},null,8,["scrollBool","component","global","index","pullDownRefreshCount"])):H("v-if",!0),"PictureShow"==e.componentName?(B(),D(_,{key:15,component:e,global:s.value.global,index:t,pullDownRefreshCount:o.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):H("v-if",!0)])),_:2},1032,["style"])])),_:2},1032,["onClick","class","style"])))),128)),""==A(r).mode&&s.value.global.bottomTabBarSwitch?(B(),W($,{key:1},[F(n,{class:"pt-[20rpx]"}),F(C)],64)):H("v-if",!0)])),_:1})}}}),[["__scopeId","data-v-0b59a120"]]),wl=w({__name:"index",props:["data","pullDownRefreshCount"],setup(e){const t=e;return(e,o)=>{const l=j;return B(),D(l,null,{default:E((()=>[O(" 固定模板示例,我也可以装修 "),H(" 自定义模板渲染 "),F(yl,{data:t.data,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["data","pullDownRefreshCount"])])),_:1})}}}),_l=Se(w({__name:"index",props:["data","pullDownRefreshCount"],setup(e){const t=e;return(e,o)=>{const l=R(T("fixed-demo-index"),wl),r=j;return B(),D(r,{class:"fixed-group"},{default:E((()=>["demo-index"==t.data.global.component?(B(),D(l,{key:0,data:t.data,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["data","pullDownRefreshCount"])):H("v-if",!0)])),_:1})}}}),[["__scopeId","data-v-b4efcf88"]]);export{yl as d,_l as f,Ze as u};