mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2026-01-20 02:08:10 +00:00
9 lines
147 KiB
JavaScript
9 lines
147 KiB
JavaScript
import{r as e,ay as t,L as o,j as r,E as l,p as a,x as n,U as i,az as s,J as u,aA as d,aB as c,aC as p,aD as g,ak as m,d as f,a9 as h,O as v,as as b,aE as x,g as y,h as w,o as _,c as C,w as k,b as S,n as R,u as D,P as B,Q as E,ai as T,R as j,y as A,z as I,f as O,aF as z,i as W,B as F,D as $,ar as N,ap as P,ah as U,k as M,l as H,aG as G,q as L,s as Y,aH as X,ac as V,a as q,F as Z,t as J,H as K,aq as Q,A as ee,C as te,aI as oe,aJ as re,Y as le,Z as ae,_ as ne,$ as ie,a1 as se,a4 as ue,a0 as de,aK as ce,aL as pe,aM as ge,aN as me}from"./index-5b45309d.js";import{_ as fe}from"./u-icon.f2a1f107.js";import{_ as he}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as ve}from"./u-avatar.20717b8c.js";import{_ as be,a as xe}from"./u-popup.9e8dce00.js";import{_ as ye}from"./u-parse.f596f09b.js";import{_ as we}from"./top-tabbar.b556b3f5.js";function _e(f={}){const h=e(!0),v=t(),b=e(0),x=e(0),y=e(f.name||""),w=e("");let _="";const C=o({pageMode:"diy",title:"",global:{},value:[]}),k=r((()=>"decorate"==v.mode?v:C)),S=e(!1);return{getLoading:()=>h.value,pullDownRefreshCount:b,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+";"),e+="min-height:calc(100vh - 50px);",k.value.global.bgUrl&&(e+=`background-image:url('${l(k.value.global.bgUrl)}');`),k.value.global.bgHeightScale&&(e+=`background-size: 100% ${k.value.global.bgHeightScale}%;`),e},onLoad:()=>{a((e=>{v.mode=e.mode||"","decorate"==v.mode&&(h.value=!1),x.value=e.id||"",""==y.value&&(y.value=e.name||""),w.value=e.template||""}))},onShow:(e=null)=>{n((()=>{let t=i();_=t[t.length-1]?t[t.length-1].route:"";let o=[];uni.getStorageSync("diyPageBlank")&&(o=uni.getStorageSync("diyPageBlank")),!o.length||o.length&&-1==o.indexOf(_)?v.topFixedStatus="home":o.length&&-1!=o.indexOf(_)&&(v.topFixedStatus="diy"),"decorate"==v.mode?v.init():s({id:x.value,name:y.value,template:w.value}).then((t=>{let o=t.data;if(o.value){C.pageMode=o.mode,C.title=o.title;let e=JSON.parse(o.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)),u({title:C.title})}h.value=!1,e&&e(o)}))}))},onHide:(e=null)=>{d((()=>{let t=[];uni.getStorageSync("diyPageBlank")&&(t=uni.getStorageSync("diyPageBlank")),t.length&&(t=Array.from(new Set(t)),t.forEach(((e,t,o)=>{e==_&&o.splice(t,1)}))),"diy"==v.topFixedStatus&&t.push(_),uni.setStorageSync("diyPageBlank",t),e&&e()}))},onUnload:()=>{c((()=>{}))},onPullDownRefresh:()=>{p((()=>{b.value++,g()}))},onPageScroll:()=>{m((e=>{e.scrollTop>0&&(v.scrollTop=e.scrollTop)}))}}}const Ce=he(f({__name:"index",props:["component","index","pullDownRefreshCount"],setup(o){const a=o,n=t(),i=r((()=>"decorate"==n.mode?n.value[a.index]:a.component)),s=r((()=>{var e="";return e+="position:relative;",i.value.componentStartBgColor&&(i.value.componentStartBgColor&&i.value.componentEndBgColor?e+=`background:linear-gradient(${i.value.componentGradientAngle},${i.value.componentStartBgColor},${i.value.componentEndBgColor});`:e+="background-color:"+i.value.componentStartBgColor+";"),i.value.componentBgUrl&&(e+=`background-image:url('${l(i.value.componentBgUrl)}');`,e+="background-size: cover;background-repeat: no-repeat;"),i.value.topRounded&&(e+="border-top-left-radius:"+2*i.value.topRounded+"rpx;"),i.value.topRounded&&(e+="border-top-right-radius:"+2*i.value.topRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*i.value.bottomRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*i.value.bottomRounded+"rpx;"),e})),u=r((()=>{var e="";return i.value.componentBgUrl&&(e+="position:absolute;top:0;width:100%;",e+=`background: rgba(0,0,0,${i.value.componentBgAlpha/10});`,e+=`height:${G.value}px;`,i.value.topRounded&&(e+="border-top-left-radius:"+2*i.value.topRounded+"rpx;"),i.value.topRounded&&(e+="border-top-right-radius:"+2*i.value.topRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*i.value.bottomRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*i.value.bottomRounded+"rpx;")),e})),d=r((()=>{let e={width:""},t=100/i.value.rowCount,o=parseInt(i.value.list.length/(2*i.value.rowCount))*i.value.rowCount+i.value.list.length%(2*i.value.rowCount),r=4*i.value.margin.both;return e.width=`calc(${t*o}vw - ${r}rpx)`,e})),c=e=>{let t={width:""},o=100/i.value.rowCount,r=4*i.value.margin.both/i.value.rowCount;if(parseInt(i.value.list.length/(2*i.value.rowCount))>=e+1)t.width=`calc(${o*i.value.rowCount}vw - ${r*i.value.rowCount}rpx)`;else{let e=i.value.list.length%(2*i.value.rowCount);e>i.value.rowCount?t.width=`calc(${o*i.value.rowCount}vw - ${r*i.value.rowCount}rpx)`:t.width=`calc(${o*e}vw - ${r*e}rpx)`}return t},p=e=>{let t={width:""};if(parseInt(i.value.list.length/(2*i.value.rowCount))>=e+1)t.width=100/i.value.rowCount+"%";else{let e=i.value.list.length%(2*i.value.rowCount);e>i.value.rowCount?t.width=100/i.value.rowCount+"%":t.width=100/e+"%"}return t};h((()=>a.pullDownRefreshCount),((e,t)=>{}));const g=e(0),m=e=>{g.value=e.detail.current},f=(e,t)=>{let o=i.value.pageCount*i.value.rowCount,r=!0;return r=e>=[(t-1)*o]&&e<[t*o],r},M=e("");v((()=>{L(),"decorate"==n.mode&&h((()=>i.value),((e,t)=>{e&&"GraphicNav"==e.componentName&&L()}))}));const H=z(),G=e(0),L=()=>{b((()=>{(()=>{if("horizontal"==i.value.layout&&"pageSlide"==i.value.showStyle){var e=0;x().in(H).select(".graphic-nav-item").boundingClientRect((t=>{let o=1;2==i.value.pageCount&&(o=i.value.list.length/i.value.rowCount>1?2:1),e=t.height*o,M.value=2*e+"rpx"})).exec()}})();x().in(H).select(".diy-graphic-nav").boundingClientRect((e=>{G.value=e.height})).exec()}))};return(e,t)=>{const o=W,r=F,a=$,g=y(w("u-icon"),fe),h=N,v=P,b=U;return _(),C(o,{style:R(D(s))},{default:k((()=>[S(o,{style:R(D(u))},null,8,["style"]),S(o,{class:"diy-graphic-nav relative"},{default:k((()=>["vertical"==D(i).layout?(_(),C(o,{key:0,class:"graphic-nav"},{default:k((()=>[(_(!0),B(E,null,T(D(i).list,((e,t)=>(_(),C(o,{class:"graphic-nav-item",key:e.id},{default:k((()=>[S(o,{onClick:t=>D(n).toRedirect(e.link),class:j(["flex items-center justify-between py-3 px-4",0==t?"border-t-0":"border-t"])},{default:k((()=>["text"!=D(i).mode?(_(),C(o,{key:0,class:"graphic-img relative flex items-center w-10 h-10 mr-[20rpx]",style:R({width:2*D(i).imageSize+"rpx",height:2*D(i).imageSize+"rpx"})},{default:k((()=>[e.imageUrl?(_(),C(r,{key:0,src:D(l)(e.imageUrl),mode:"aspectFill",style:R({maxWidth:2*D(i).imageSize+"rpx",maxHeight:2*D(i).imageSize+"rpx",borderRadius:2*D(i).aroundRadius+"rpx"})},null,8,["src","style"])):(_(),C(r,{key:1,src:D(l)("static/resource/images/diy/figure.png"),mode:"aspectFill",style:R({maxWidth:2*D(i).imageSize+"rpx",maxHeight:2*D(i).imageSize+"rpx",borderRadius:2*D(i).aroundRadius+"rpx"})},null,8,["src","style"])),e.label.control?(_(),C(a,{key:2,class:"tag absolute -top-[10rpx] -right-[24rpx] text-white rounded-[24rpx] rounded-bl-none transform scale-80 py-1 px-2 text-xs",style:R({color:e.label.textColor,backgroundImage:"linear-gradient("+e.label.bgColorStart+","+e.label.bgColorEnd+")"})},{default:k((()=>[A(I(e.label.text),1)])),_:2},1032,["style"])):O("v-if",!0)])),_:2},1032,["style"])):O("v-if",!0),"img"!=D(i).mode?(_(),C(a,{key:1,class:"graphic-text w-full truncate leading-normal",style:R({fontSize:2*D(i).font.size+"rpx",fontWeight:D(i).font.weight,color:D(i).font.color})},{default:k((()=>[A(I(e.title),1)])),_:2},1032,["style"])):O("v-if",!0),S(g,{name:"arrow-right",color:"#999999",size:"12"})])),_:2},1032,["onClick","class"])])),_:2},1024)))),128))])),_:1})):"horizontal"==D(i).layout&&"pageSlide"==D(i).showStyle?(_(),C(v,{key:1,class:"graphic-nav box-border relative",circular:"","indicator-dots":!1,style:R({height:M.value}),onChange:m},{default:k((()=>[(_(!0),B(E,null,T(Math.ceil(D(i).list.length/(D(i).pageCount*D(i).rowCount)),((e,t)=>(_(),C(h,{class:"graphic-nav-wrap flex flex-wrap"},{default:k((()=>[(_(!0),B(E,null,T(D(i).list,((t,s)=>(_(),B(E,null,[f(s,e)?(_(),C(o,{class:j([D(i).mode]),key:t.id,style:R({width:100/D(i).rowCount+"%"})},{default:k((()=>[S(o,{onClick:e=>D(n).toRedirect(t.link),class:"graphic-nav-item flex flex-col items-center box-border py-2"},{default:k((()=>["text"!=D(i).mode?(_(),C(o,{key:0,class:"graphic-img relative flex items-center justify-center w-10 h-10",style:R({width:2*D(i).imageSize+"rpx",height:2*D(i).imageSize+"rpx"})},{default:k((()=>[t.imageUrl?(_(),C(r,{key:0,src:D(l)(t.imageUrl),mode:"aspectFill",style:R({maxWidth:2*D(i).imageSize+"rpx",maxHeight:2*D(i).imageSize+"rpx",borderRadius:2*D(i).aroundRadius+"rpx"})},null,8,["src","style"])):(_(),C(r,{key:1,src:D(l)("static/resource/images/diy/figure.png"),mode:"aspectFill",style:R({maxWidth:2*D(i).imageSize+"rpx",maxHeight:2*D(i).imageSize+"rpx",borderRadius:2*D(i).aroundRadius+"rpx"})},null,8,["src","style"])),t.label.control?(_(),C(a,{key:2,class:"tag absolute -top-[10rpx] -right-[24rpx] text-white rounded-[24rpx] rounded-bl-none transform scale-80 py-1 px-2 text-xs",style:R({color:t.label.textColor,backgroundImage:"linear-gradient("+t.label.bgColorStart+","+t.label.bgColorEnd+")"})},{default:k((()=>[A(I(t.label.text),1)])),_:2},1032,["style"])):O("v-if",!0)])),_:2},1032,["style"])):O("v-if",!0),"img"!=D(i).mode?(_(),C(a,{key:1,class:j(["graphic-text w-full text-center truncate leading-normal",{"pt-[16rpx]":"text"!=D(i).mode}]),style:R({fontSize:2*D(i).font.size+"rpx",fontWeight:D(i).font.weight,color:D(i).font.color})},{default:k((()=>[A(I(t.title),1)])),_:2},1032,["class","style"])):O("v-if",!0)])),_:2},1032,["onClick"])])),_:2},1032,["class","style"])):O("v-if",!0)],64)))),256))])),_:2},1024)))),256))])),_:1},8,["style"])):"horizontal"==D(i).layout&&2==D(i).pageCount&&"singleSlide"==D(i).showStyle?(_(),C(b,{key:2,"scroll-x":"singleSlide"==D(i).showStyle,class:j([["graphic-nav","graphic-nav-"+D(i).showStyle],"py-[10rpx]"])},{default:k((()=>[S(o,{style:R(D(d)),class:"flex"},{default:k((()=>[(_(!0),B(E,null,T(Math.ceil(D(i).list.length/(D(i).pageCount*D(i).rowCount)),((e,t)=>(_(),C(o,{class:"graphic-nav-wrap flex flex-wrap",style:R(c(t))},{default:k((()=>[(_(!0),B(E,null,T(D(i).list,((s,u)=>(_(),B(E,null,[f(u,e)?(_(),C(o,{key:0,onClick:e=>D(n).toRedirect(s.link),style:R(p(t)),class:"graphic-nav-item flex flex-col items-center box-border py-2"},{default:k((()=>["text"!=D(i).mode?(_(),C(o,{key:0,class:"graphic-img relative flex items-center justify-center w-10 h-10",style:R({width:2*D(i).imageSize+"rpx",height:2*D(i).imageSize+"rpx"})},{default:k((()=>[s.imageUrl?(_(),C(r,{key:0,src:D(l)(s.imageUrl),mode:"aspectFill",style:R({maxWidth:2*D(i).imageSize+"rpx",maxHeight:2*D(i).imageSize+"rpx",borderRadius:2*D(i).aroundRadius+"rpx"})},null,8,["src","style"])):(_(),C(r,{key:1,src:D(l)("static/resource/images/diy/figure.png"),mode:"aspectFill",style:R({maxWidth:2*D(i).imageSize+"rpx",maxHeight:2*D(i).imageSize+"rpx",borderRadius:2*D(i).aroundRadius+"rpx"})},null,8,["src","style"])),s.label.control?(_(),C(a,{key:2,class:j(["tag absolute -top-[10rpx] -right-[24rpx] text-white rounded-[24rpx] rounded-bl-none transform scale-80 py-1 px-2 text-xs"]),style:R({color:s.label.textColor,backgroundImage:"linear-gradient("+s.label.bgColorStart+","+s.label.bgColorEnd+")"})},{default:k((()=>[A(I(s.label.text),1)])),_:2},1032,["style"])):O("v-if",!0)])),_:2},1032,["style"])):O("v-if",!0),"img"!=D(i).mode?(_(),C(a,{key:1,class:j(["graphic-text w-full text-center truncate leading-normal",{"pt-[16rpx]":"text"!=D(i).mode}]),style:R({fontSize:2*D(i).font.size+"rpx",fontWeight:D(i).font.weight,color:D(i).font.color})},{default:k((()=>[A(I(s.title),1)])),_:2},1032,["class","style"])):O("v-if",!0)])),_:2},1032,["onClick","style"])):O("v-if",!0)],64)))),256))])),_:2},1032,["style"])))),256))])),_:1},8,["style"])])),_:1},8,["scroll-x","class"])):(_(),C(b,{key:3,"scroll-x":"singleSlide"==D(i).showStyle,class:j([["graphic-nav","graphic-nav-"+D(i).showStyle],"py-[10rpx]"])},{default:k((()=>[(_(!0),B(E,null,T(D(i).list,((e,t)=>(_(),C(o,{class:j(["graphic-nav-item",{"flex-shrink-0":"singleSlide"==D(i).showStyle}]),key:e.id,style:R({width:100/D(i).rowCount+"%"})},{default:k((()=>[S(o,{onClick:t=>D(n).toRedirect(e.link),class:"flex flex-col items-center box-border py-2"},{default:k((()=>["text"!=D(i).mode?(_(),C(o,{key:0,class:"graphic-img relative flex items-center justify-center w-10 h-10",style:R({width:2*D(i).imageSize+"rpx",height:2*D(i).imageSize+"rpx"})},{default:k((()=>[e.imageUrl?(_(),C(r,{key:0,src:D(l)(e.imageUrl),mode:"aspectFill",style:R({maxWidth:2*D(i).imageSize+"rpx",maxHeight:2*D(i).imageSize+"rpx",borderRadius:2*D(i).aroundRadius+"rpx"})},null,8,["src","style"])):(_(),C(r,{key:1,src:D(l)("static/resource/images/diy/figure.png"),mode:"aspectFill",style:R({maxWidth:2*D(i).imageSize+"rpx",maxHeight:2*D(i).imageSize+"rpx",borderRadius:2*D(i).aroundRadius+"rpx"})},null,8,["src","style"])),e.label.control?(_(),C(a,{key:2,class:j(["tag absolute -top-[10rpx] -right-[24rpx] text-white rounded-[24rpx] rounded-bl-none transform scale-80 py-1 px-2 text-xs"]),style:R({color:e.label.textColor,backgroundImage:"linear-gradient("+e.label.bgColorStart+","+e.label.bgColorEnd+")"})},{default:k((()=>[A(I(e.label.text),1)])),_:2},1032,["style"])):O("v-if",!0)])),_:2},1032,["style"])):O("v-if",!0),"img"!=D(i).mode?(_(),C(a,{key:1,class:j(["graphic-text w-full text-center truncate leading-normal",{"pt-[16rpx]":"text"!=D(i).mode}]),style:R({fontSize:2*D(i).font.size+"rpx",fontWeight:D(i).font.weight,color:D(i).font.color})},{default:k((()=>[A(I(e.title),1)])),_:2},1032,["class","style"])):O("v-if",!0)])),_:2},1032,["onClick"])])),_:2},1032,["class","style"])))),128))])),_:1},8,["scroll-x","class"]))])),_:1})])),_:1},8,["style"])}}}),[["__scopeId","data-v-b07f330a"]]),ke=f({__name:"index",props:["component","index","pullDownRefreshCount"],setup(e){const o=e,l=t(),a=r((()=>"decorate"==l.mode?l.value[o.index]:o.component)),n=r((()=>{var e="";return e+="height:"+2*a.value.height+"rpx;",a.value.componentStartBgColor&&(a.value.componentStartBgColor&&a.value.componentEndBgColor?e+=`background:linear-gradient(${a.value.componentGradientAngle},${a.value.componentStartBgColor},${a.value.componentEndBgColor});`:e+="background-color:"+a.value.componentStartBgColor+";"),a.value.topRounded&&(e+="border-top-left-radius:"+2*a.value.topRounded+"rpx;"),a.value.topRounded&&(e+="border-top-right-radius:"+2*a.value.topRounded+"rpx;"),a.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*a.value.bottomRounded+"rpx;"),a.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*a.value.bottomRounded+"rpx;"),e}));return h((()=>o.pullDownRefreshCount),((e,t)=>{})),(e,t)=>{const o=W;return _(),C(o,{style:R(D(n))},null,8,["style"])}}}),Se=f({__name:"index",props:["component","index","pullDownRefreshCount"],setup(e){const o=e,l=t(),a=r((()=>"decorate"==l.mode?l.value[o.index]:o.component)),n=r((()=>{var e="";return e+="border-top:"+2*a.value.borderWidth+"rpx "+a.value.borderStyle+" "+a.value.borderColor+";"}));return h((()=>o.pullDownRefreshCount),((e,t)=>{})),(e,t)=>{const o=W;return _(),C(o,{class:"horz-line-wrap"},{default:k((()=>["decorate"==D(l).mode?(_(),C(o,{key:0,class:"h-[30rpx]"})):O("v-if",!0),S(o,{style:R(D(n))},null,8,["style"]),"decorate"==D(l).mode?(_(),C(o,{key:1,class:"h-[30rpx]"})):O("v-if",!0)])),_:1})}}}),Re=f({__name:"index",props:["component","index","pullDownRefreshCount"],setup(e){const o=e,a=t(),n=r((()=>"decorate"==a.mode?a.value[o.index]:o.component)),i=r((()=>{var e="";return n.value.componentStartBgColor&&(n.value.componentStartBgColor&&n.value.componentEndBgColor?e+=`background:linear-gradient(${n.value.componentGradientAngle},${n.value.componentStartBgColor},${n.value.componentEndBgColor});`:e+="background-color:"+n.value.componentStartBgColor+";"),e})),s=r((()=>{var e="";return e+="height:"+n.value.imgHeight+";",n.value.topRounded&&(e+="border-top-left-radius:"+2*n.value.topRounded+"rpx;"),n.value.topRounded&&(e+="border-top-right-radius:"+2*n.value.topRounded+"rpx;"),n.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*n.value.bottomRounded+"rpx;"),n.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*n.value.bottomRounded+"rpx;"),e}));v((()=>{u(),h((()=>n.value),((e,t)=>{e&&"HotArea"==e.componentName&&u()}))}));const u=()=>{"decorate"==a.mode&&""==n.value.imageUrl&&(n.value.imgWidth=690,n.value.imgHeight=330)};return h((()=>o.pullDownRefreshCount),((e,t)=>{})),(e,t)=>{const o=F,r=W;return _(),C(r,{style:R(D(i))},{default:k((()=>[S(r,{class:"simple-graph-wrap overflow-hidden relative leading-0"},{default:k((()=>[D(n).imageUrl?(_(),C(o,{key:0,style:R(D(s)),src:D(l)(D(n).imageUrl),mode:"widthFix","show-menu-by-longpress":!0,class:"w-full"},null,8,["style","src"])):(_(),C(o,{key:1,style:R(D(s)),src:D(l)("static/resource/images/diy/figure.png"),mode:"widthFix","show-menu-by-longpress":!0,class:"w-full"},null,8,["style","src"])),"decorate"!=D(a).mode?(_(),B(E,{key:2},[O(" 热区功能 "),(_(!0),B(E,null,T(D(n).heatMapData,((e,t)=>(_(),C(r,{onClick:t=>D(a).toRedirect(e.link),class:"absolute",key:t,style:R({width:e.width+"%",height:e.height+"%",left:e.left+"%",top:e.top+"%"})},null,8,["onClick","style"])))),128))],64)):O("v-if",!0)])),_:1})])),_:1},8,["style"])}}}),De=f({__name:"index",props:["component","index","pullDownRefreshCount"],setup(o){const a=o,n=t(),i=r((()=>"decorate"==n.mode?n.value[a.index]:a.component)),s=r((()=>{var e="";return e+="position:relative;",i.value.componentStartBgColor&&(i.value.componentStartBgColor&&i.value.componentEndBgColor?e+=`background:linear-gradient(${i.value.componentGradientAngle},${i.value.componentStartBgColor},${i.value.componentEndBgColor});`:e+="background-color:"+i.value.componentStartBgColor+";"),i.value.componentBgUrl&&(e+=`background-image:url('${l(i.value.componentBgUrl)}');`,e+="background-size: cover;background-repeat: no-repeat;"),e})),u=r((()=>{var e="";return i.value.topRounded&&(e+="border-top-left-radius:"+2*i.value.topRounded+"rpx;"),i.value.topRounded&&(e+="border-top-right-radius:"+2*i.value.topRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*i.value.bottomRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*i.value.bottomRounded+"rpx;"),e})),d=r((()=>{var e="";return i.value.componentBgUrl&&(e+="position:absolute;top:0;width:100%;",e+=`background: rgba(0,0,0,${i.value.componentBgAlpha/10});`,e+=`height:${f.value}px;`,i.value.topRounded&&(e+="border-top-left-radius:"+2*i.value.topRounded+"rpx;"),i.value.topRounded&&(e+="border-top-right-radius:"+2*i.value.topRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*i.value.bottomRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*i.value.bottomRounded+"rpx;")),e}));h((()=>a.pullDownRefreshCount),((e,t)=>{}));const c=r((()=>2*i.value.imageHeight+"rpx")),p=e(0),g=e=>{p.value=e.detail.current};v((()=>{y(),"decorate"==n.mode&&h((()=>i.value),((e,t)=>{e&&"ImageAds"==e.componentName&&y()}))}));const m=z(),f=e(0),y=()=>{"decorate"==n.mode&&i.value.list.forEach((e=>{""==e.imageUrl&&(e.imgWidth=690,e.imgHeight=330)})),b((()=>{x().in(m).select(".diy-image-ads").boundingClientRect((e=>{f.value=e.height})).exec()}))};return(e,t)=>{const o=W,r=F,a=N,p=P;return _(),C(o,{style:R(D(s))},{default:k((()=>[S(o,{style:R(D(d))},null,8,["style"]),S(o,{class:"diy-image-ads"},{default:k((()=>[1==D(i).list.length?(_(),C(o,{key:0,class:"leading-0 overflow-hidden",style:R(D(u))},{default:k((()=>[S(o,{onClick:t[0]||(t[0]=e=>D(n).toRedirect(D(i).list[0].link))},{default:k((()=>[D(i).list[0].imageUrl?(_(),C(r,{key:0,src:D(l)(D(i).list[0].imageUrl),style:R({height:D(c)}),mode:"heightFix",class:"!w-full","show-menu-by-longpress":!0},null,8,["src","style"])):(_(),C(r,{key:1,src:D(l)("static/resource/images/diy/figure.png"),style:R({height:D(c)}),mode:"heightFix",class:"!w-full","show-menu-by-longpress":!0},null,8,["src","style"]))])),_:1})])),_:1},8,["style"])):(_(),C(p,{key:1,class:"swiper",style:R({height:D(c)}),autoplay:"true",circular:"true",onChange:g},{default:k((()=>[(_(!0),B(E,null,T(D(i).list,(e=>(_(),C(a,{class:"swiper-item",key:e.id,style:R(D(u))},{default:k((()=>[S(o,{onClick:t=>D(n).toRedirect(e.link)},{default:k((()=>[S(o,{class:"item",style:R({height:D(c)})},{default:k((()=>[e.imageUrl?(_(),C(r,{key:0,src:D(l)(e.imageUrl),mode:"scaleToFill",class:"w-full h-full","show-menu-by-longpress":!0},null,8,["src"])):(_(),C(r,{key:1,src:D(l)("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})])),_:1},8,["style"])}}}),Be=f({__name:"index",props:["component","index","pullDownRefreshCount","global"],setup(o){const a=o,n=M(),i=t(),s=r((()=>"decorate"==i.mode?i.value[a.index]:a.component)),u=r((()=>{var e="";return s.value.componentStartBgColor&&(s.value.componentStartBgColor&&s.value.componentEndBgColor?e+=`background:linear-gradient(${s.value.componentGradientAngle},${s.value.componentStartBgColor},${s.value.componentEndBgColor});`:e+="background-color:"+s.value.componentStartBgColor+";"),s.value.bgUrl&&(e+="background-image:url("+l(s.value.bgUrl)+");",e+="background-size: 100%;",e+="background-repeat: no-repeat;"),s.value.topRounded&&(e+="border-top-left-radius:"+2*s.value.topRounded+"rpx;"),s.value.topRounded&&(e+="border-top-right-radius:"+2*s.value.topRounded+"rpx;"),s.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*s.value.bottomRounded+"rpx;"),s.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*s.value.bottomRounded+"rpx;"),e}));h((()=>a.pullDownRefreshCount),((e,t)=>{}));const d=H(),{query:c}=G(location.href);c.code&&L()&&Y()&&X({code:c.code}).then((e=>{d.getMemberInfo()}));const p=r((()=>"decorate"==i.mode?{headimg:"",nickname:"昵称",balance:0,point:0,money:0,member_no:"NIU0000021"}:d.info)),g=r((()=>{if(p.value){let e=parseFloat(p.value.balance)+parseFloat(p.value.money);return V(e.toString())}return 0})),m=()=>{let e=!n.login.is_username&&!n.login.is_mobile&&!n.login.is_bind_mobile,t=!n.login.is_auth_register;L()?e&&t?J({title:"商家未开启登录注册",icon:"none"}):n.login.is_username||n.login.is_mobile||n.login.is_bind_mobile?K().setLoginBack({url:"/app/pages/member/index"}):e&&n.login.is_auth_register&&K().getAuthCode({scopes:"snsapi_userinfo"}):e?J({title:"商家未开启登录注册",icon:"none"}):(n.login.is_username||n.login.is_mobile||n.login.is_bind_mobile)&&K().setLoginBack({url:"/app/pages/member/index"})};e(!1);const f=()=>{L()?K().getAuthCode({scopes:"snsapi_userinfo"}):q({url:"/app/pages/member/personal"})};return r((()=>"")),(e,t)=>{const o=y(w("u-avatar"),ve),r=W,a=$;return _(),C(r,{style:R(D(u))},{default:k((()=>[S(r,{class:"pt-[34rpx] member-info"},{default:k((()=>[D(p)?(_(),C(r,{key:0,class:"flex ml-[32rpx] mr-[52rpx] items-center relative"},{default:k((()=>[O(" 唤起获取微信 "),S(o,{src:D(l)(D(p).headimg),size:"55",leftIcon:"none","default-url":D(l)("static/resource/images/default_headimg.png"),onClick:f},null,8,["src","default-url"]),S(r,{class:"ml-[22rpx]"},{default:k((()=>[S(r,{class:"text-[#222222] flex pr-[50rpx] flex-wrap items-center"},{default:k((()=>[S(r,{class:"text-[#222222] truncate max-w-[320rpx] font-bold text-lg mr-[16rpx]",style:R({color:D(s).textColor})},{default:k((()=>[A(I(D(p).nickname),1)])),_:1},8,["style"])])),_:1}),S(r,{class:"text-[#696B70] text-[24rpx] mt-[10rpx]",style:R({color:D(s).textColor})},{default:k((()=>[A("UID:"+I(D(p).member_no),1)])),_:1},8,["style"])])),_:1}),S(r,{class:"set-icon flex items-center absolute right-0 top-2"},{default:k((()=>[S(r,{onClick:t[0]||(t[0]=e=>D(q)({url:"/app/pages/setting/index"}))},{default:k((()=>[S(a,{class:"nc-iconfont nc-icon-shezhiV6xx-1 text-[40rpx] ml-[10rpx]",style:R({color:D(s).textColor})},null,8,["style"])])),_:1})])),_:1})])),_:1})):(_(),C(r,{key:1,class:"flex ml-[32rpx] mr-[52rpx] items-center relative"},{default:k((()=>[S(o,{src:D(l)("static/resource/images/default_headimg.png"),size:"55",onClick:m},null,8,["src"]),S(r,{class:"ml-[22rpx]",onClick:m},{default:k((()=>[S(r,{class:"text-[#222222] font-bold text-lg",style:R({color:D(s).textColor})},{default:k((()=>[A(I(D(Z)("login"))+"/"+I(D(Z)("register")),1)])),_:1},8,["style"])])),_:1}),S(r,{class:"set-icon flex items-center absolute right-0 top-2",onClick:t[1]||(t[1]=e=>D(q)({url:"/app/pages/setting/index"}))},{default:k((()=>[S(r,null,{default:k((()=>[S(a,{class:"nc-iconfont nc-icon-shezhiV6xx-1 text-[40rpx] ml-[10rpx]",style:R({color:D(s).textColor})},null,8,["style"])])),_:1})])),_:1})])),_:1})),S(r,{class:"flex m-[30rpx] mb-0 py-[30rpx] items-center"},{default:k((()=>[S(r,{class:"flex-1 text-center"},{default:k((()=>[S(r,{class:"font-bold"},{default:k((()=>[S(r,{onClick:t[2]||(t[2]=e=>D(q)({url:D(p)?"/app/pages/member/balance":""})),style:R({color:D(s).textColor})},{default:k((()=>[A(I(D(g)),1)])),_:1},8,["style"])])),_:1}),S(r,{class:"text-sm mt-[10rpx]"},{default:k((()=>[S(r,{onClick:t[3]||(t[3]=e=>D(q)({url:D(p)?"/app/pages/member/balance":""})),style:R({color:D(s).textColor})},{default:k((()=>[A(I(D(Z)("balance")),1)])),_:1},8,["style"])])),_:1})])),_:1}),S(r,{class:"border-solid border-white border-l border-b-0 border-t-0 border-r-0 h-[60rpx]"}),S(r,{class:"flex-1 text-center"},{default:k((()=>[S(r,{class:"font-bold"},{default:k((()=>[S(r,{onClick:t[4]||(t[4]=e=>D(q)({url:D(p)?"/app/pages/member/point":""})),style:R({color:D(s).textColor})},{default:k((()=>{var e;return[A(I(parseInt(null==(e=D(p))?void 0:e.point)||0),1)]})),_:1},8,["style"])])),_:1}),S(r,{class:"text-sm mt-[10rpx]"},{default:k((()=>[S(r,{onClick:t[5]||(t[5]=e=>D(q)({url:D(p)?"/app/pages/member/point":""})),style:R({color:D(s).textColor})},{default:k((()=>[A(I(D(Z)("point")),1)])),_:1},8,["style"])])),_:1})])),_:1})])),_:1})])),_:1})])),_:1},8,["style"])}}}),Ee=he(f({__name:"index",props:["component","index","pullDownRefreshCount"],setup(o){const a=o,n=t(),i=H(),s=r((()=>"decorate"==n.mode?n.value[a.index]:a.component)),u=r((()=>{var e="";return s.value.topRounded&&(e+="border-top-left-radius:"+2*s.value.topRounded+"rpx;"),s.value.topRounded&&(e+="border-top-right-radius:"+2*s.value.topRounded+"rpx;"),s.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*s.value.bottomRounded+"rpx;"),s.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*s.value.bottomRounded+"rpx;"),e}));h((()=>a.pullDownRefreshCount),((e,t)=>{}));const d=e(0),c=e(0),p=e(-1),g=e([]),m=e(uni.getStorageSync("wap_member_info")),f=r((()=>"decorate"==n.mode?(d.value=0,g.value=[{title:"商品包邮"}],c.value=1,{member_level_name:"会员等级",growth:5}):m.value||{})),v=r((()=>"decorate"==n.mode?[{}]:(b(i.levelList),i.levelList))),b=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&&g.value.push(e.content)}))),e.growth>f.value.growth&&!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&&(d.value=e[p.value].growth-f.value.growth)):(f.value.member_level_name=e[0].level_name,d.value=e[0].growth,p.value=0,c.value=1)};let x=()=>{let e=100;return v.value[p.value]&&v.value[p.value].growth&&(e=f.value.growth?f.value.growth/v.value[p.value].growth*100:0),e};const y=e=>{if("decorate"==n.mode)return!1;q({url:e})};return(e,t)=>{const o=F,r=$,a=W,n=Q;return D(f)&&D(v)&&D(v).length?(_(),C(a,{key:0,style:R(D(u)),class:"overflow-hidden"},{default:k((()=>["style-1"==D(s).style?(_(),C(a,{key:0,class:"flex items-center justify-between style-bg-1 py-[22rpx] px-[30rpx]"},{default:k((()=>[S(a,{class:"flex items-center"},{default:k((()=>[S(o,{src:D(l)("static/resource/images/diy/member/VIP_02.png"),mode:"aspectFit",class:"w-[50rpx] h-[36rpx]"},null,8,["src"]),S(r,{class:"text-[30rpx] text-[#FFDAA8] ml-[10rpx] font-500 max-w-[440rpx] truncate"},{default:k((()=>[A(I(D(f).member_level_name),1)])),_:1})])),_:1}),S(a,{class:"flex items-center justify-center rounded-[30rpx] box-border style-btn w-[140rpx] h-[56rpx]",onClick:t[0]||(t[0]=e=>y("/app/pages/member/level"))},{default:k((()=>[S(r,{class:"text-[24rpx] text-[#333]"},{default:k((()=>[A(I(D(f).member_level?d.value>0?"去升级":"去查看":"去解锁"),1)])),_:1}),S(r,{class:"iconfont iconxiayibu1 ml-[4rpx] -mb-[2rpx] !text-[14rpx] text-[#333]"})])),_:1})])),_:1})):O("v-if",!0),"style-2"==D(s).style?(_(),C(a,{key:1,class:"flex items-center justify-between style-bg-2 p-[30rpx]"},{default:k((()=>[S(a,{class:"flex flex-col"},{default:k((()=>[S(a,{class:"flex items-center"},{default:k((()=>[S(o,{src:D(l)("static/resource/images/diy/member/VIP_01.png"),mode:"aspectFit",class:"w-[74rpx] h-[30rpx]"},null,8,["src"]),S(r,{class:"text-[32rpx] text-[#FFE3B1] leading-[normal] ml-[14rpx] font-500 max-w-[420rpx] truncate"},{default:k((()=>[A(I(D(f).member_level_name),1)])),_:1})])),_:1}),g.value&&g.value.length?(_(),C(r,{key:0,class:"text-[#FFE3B1] opacity-80 text-[24rpx] mt-[10rpx] leading-[32rpx]"},{default:k((()=>[A(I(D(f).member_level_name)+"购物享"+I(g.value[0].title),1)])),_:1})):O("v-if",!0)])),_:1}),S(a,{class:"flex items-center justify-center rounded-[30rpx] box-border style-btn w-[140rpx] h-[56rpx]",onClick:t[1]||(t[1]=e=>y("/app/pages/member/level"))},{default:k((()=>[S(r,{class:"text-[24rpx] text-[#333]"},{default:k((()=>[A(I(D(f).member_level?d.value>0?"去升级":"去查看":"去解锁"),1)])),_:1}),S(r,{class:"iconfont iconxiayibu1 ml-[4rpx] -mb-[2rpx] !text-[14rpx] text-[#333]"})])),_:1})])),_:1})):O("v-if",!0),"style-3"==D(s).style?(_(),C(a,{key:2,class:"rounded-[var(--rounded-big)] style-bg-3 py-[var(--pad-top-m)] px-[var(--pad-sidebar-m)]"},{default:k((()=>[S(a,{class:"flex items-center justify-between style-border-3 mb-[30rpx] pb-[40rpx]"},{default:k((()=>[S(a,{class:"flex flex-col flex-1"},{default:k((()=>[S(a,{class:"flex items-center justify-between"},{default:k((()=>[S(a,{class:"flex items-center"},{default:k((()=>[S(a,{class:"flex font-500 leading-[30rpx] box-border text-[#fff] pl-[50rpx] text-[24rpx] w-[120rpx] h-[30rpx] bg-contain bg-no-repeat",style:R({backgroundImage:"url("+D(l)("static/resource/images/diy/member/VIP.png")+")"})},{default:k((()=>[A(" VIP."+I(c.value),1)])),_:1},8,["style"]),S(r,{class:"text-[#733F02] ml-[8rpx] text-[30rpx] font-500 max-w-[380rpx] truncate"},{default:k((()=>[A(I(D(f).member_level_name),1)])),_:1})])),_:1}),S(a,{class:"flex items-center",onClick:t[2]||(t[2]=e=>y("/app/pages/member/level"))},{default:k((()=>[S(a,{class:"inline-block"},{default:k((()=>[S(r,{class:"nc-iconfont nc-icon-a-bangzhuV6xx-36 !text-[22rpx] text-[#733F02]"}),S(r,{class:"text-[22rpx] text-[#733F02] ml-[6rpx] leading-[24rpx]"},{default:k((()=>[A("规则")])),_:1})])),_:1}),S(a,{class:"ml-[2rpx] -mb-[4rpx] text-[#733F02] !text-[24rpx] nc-iconfont nc-icon-youV6xx"})])),_:1})])),_:1}),S(r,{class:"text-[24rpx] text-[#794200] mt-[10rpx]"},{default:k((()=>[A("购物或邀请好友可以提升等级")])),_:1})])),_:1})])),_:1}),S(a,{class:"flex items-center justify-between"},{default:k((()=>[S(a,{class:"flex flex-col flex-1 mt-[2rpx]"},{default:k((()=>[S(a,{class:"overflow-hidden rounded-[20rpx]"},{default:k((()=>[S(n,{percent:D(x)(),activeColor:"#fff",backgroundColor:"rgba(255,5,5,0.1)","stroke-width":"4"},null,8,["percent"])])),_:1}),d.value>0?(_(),C(r,{key:0,class:"text-[22rpx] ml-[2rpx] leading-[1.4] text-[#794200] mt-[16rpx]"},{default:k((()=>[A("还差"+I(d.value)+"成长值即可升级为"+I(D(v)[p.value].level_name),1)])),_:1})):(_(),C(r,{key:1,class:"text-[22rpx] ml-[2rpx] text-[#794200] mt-[16rpx]"},{default:k((()=>[A("恭喜您升级为最高等级")])),_:1}))])),_:1}),S(a,{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=>y("/app/pages/member/level"))},{default:k((()=>[A(I(D(f).member_level?d.value>0?"做任务":"点击查看":"去解锁"),1)])),_:1})])),_:1})])),_:1})):O("v-if",!0)])),_:1},8,["style"])):O("v-if",!0)}}}),[["__scopeId","data-v-3f2ea004"]]),Te=he(f({__name:"index",props:["component","index","pullDownRefreshCount"],setup(o){const a=o,n=t(),i=e(!1),s=e(""),u=r((()=>"decorate"==n.mode?n.value[a.index]:a.component)),d=r((()=>{var e="";return e+="position:relative;",u.value.componentStartBgColor&&(u.value.componentStartBgColor&&u.value.componentEndBgColor?e+=`background:linear-gradient(${u.value.componentGradientAngle},${u.value.componentStartBgColor},${u.value.componentEndBgColor});`:e+="background-color:"+u.value.componentStartBgColor+";"),u.value.componentBgUrl&&(e+=`background-image:url('${l(u.value.componentBgUrl)}');`,e+="background-size: cover;background-repeat: no-repeat;"),u.value.topRounded&&(e+="border-top-left-radius:"+2*u.value.topRounded+"rpx;"),u.value.topRounded&&(e+="border-top-right-radius:"+2*u.value.topRounded+"rpx;"),u.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*u.value.bottomRounded+"rpx;"),u.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*u.value.bottomRounded+"rpx;"),e})),c=r((()=>{var e="";return u.value.componentBgUrl&&(e+="position:absolute;top:0;width:100%;",e+=`background: rgba(0,0,0,${u.value.componentBgAlpha/10});`,e+=`height:${L.value}px;`,u.value.topRounded&&(e+="border-top-left-radius:"+2*u.value.topRounded+"rpx;"),u.value.topRounded&&(e+="border-top-right-radius:"+2*u.value.topRounded+"rpx;"),u.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*u.value.bottomRounded+"rpx;"),u.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*u.value.bottomRounded+"rpx;")),e}));h((()=>a.pullDownRefreshCount),((e,t)=>{}));const p=e(0),g=e(0),m=e(""),f=e(0),M=e(800),H=()=>{"horizontal"==u.value.scrollWay&&setTimeout((()=>{b((()=>{let e=window.document.getElementById("horizontal-body-"+u.value.id),t=window.document.getElementById("marquee-one");e&&t&&(p.value=e.offsetWidth,g.value=t.offsetWidth,f.value=Math.ceil(14*g.value),p.value>g.value-30?m.value="animation: none;":m.value=`\n animation-duration: ${f.value}ms;\n animation-delay: ${M.value}ms;`)}))}))};v((()=>{H(),Y(),"decorate"==n.mode&&h((()=>u.value),((e,t)=>{e&&"Notice"==e.componentName&&(H(),Y())}))}));const G=z(),L=e(0),Y=()=>{b((()=>{x().in(G).select(".diy-notice").boundingClientRect((e=>{L.value=e.height})).exec()}))},X=e=>{if("decorate"==n.mode)return!1;"popup"==u.value.showType?(i.value=!0,s.value=e.text):n.toRedirect(e.link)};return(e,t)=>{const o=W,r=F,a=$,n=N,f=P,h=U,v=te,b=y(w("u-popup"),be);return _(),C(o,{style:R(D(d))},{default:k((()=>[S(o,{style:R(D(c))},null,8,["style"]),S(o,{class:"diy-notice relative overflow-hidden"},{default:k((()=>[S(o,{class:"flex items-center pl-[28rpx] p-[22rpx]"},{default:k((()=>["img"==D(u).noticeType?(_(),B(E,{key:0},["system"==D(u).imgType?(_(),B(E,{key:0},["style_1"==D(u).systemUrl?(_(),C(r,{key:0,src:D(l)(`static/resource/images/diy/notice/${D(u).systemUrl}.png`),class:"h-[40rpx] max-w-[130rpx] mr-[20rpx] flex-shrink-0",mode:"heightFix"},null,8,["src"])):"style_2"==D(u).systemUrl?(_(),C(r,{key:1,src:D(l)(`static/resource/images/diy/notice/${D(u).systemUrl}.png`),class:"w-[200rpx] mr-[20rpx] h-[30rpx] flex-shrink-0",mode:"heightFix"},null,8,["src"])):O("v-if",!0)],64)):"diy"==D(u).imgType?(_(),C(r,{key:1,src:D(l)(D(u).imageUrl||""),class:"w-[200rpx] h-[30rpx] mr-[20rpx] flex-shrink-0",mode:"heightFix"},null,8,["src"])):O("v-if",!0)],64)):O("v-if",!0),"text"==D(u).noticeType&&D(u).noticeTitle?(_(),C(o,{key:1,class:"max-w-[128rpx] px-[12rpx] text-[26rpx] h-[40rpx] leading-[40rpx] text-[var(--primary-color)] bg-[var(--primary-color-light)] truncate rounded-[8rpx] mr-[20rpx] flex-shrink-0"},{default:k((()=>[A(I(D(u).noticeTitle),1)])),_:1})):O("v-if",!0),S(o,{class:j(["flex-1 flex overflow-hidden horizontal-body",{"items-center":"upDown"==D(u).scrollWay}]),id:"horizontal-body-"+D(u).id},{default:k((()=>[O(" 横向滚动 "),"horizontal"==D(u).scrollWay?(_(),C(o,{key:0,class:"horizontal-wrap",style:R(m.value)},{default:k((()=>[S(o,{class:"marquee marquee-one",id:"marquee-one"},{default:k((()=>[(_(!0),B(E,null,T(D(u).list,((e,t)=>(_(),C(o,{class:j(["item flex-shrink-0 !leading-[40rpx] h-[40rpx]",{"ml-[80rpx]":t}]),key:t,onClick:t=>X(e),style:R({color:D(u).textColor,fontSize:2*D(u).fontSize+"rpx",fontWeight:D(u).fontWeight})},{default:k((()=>[A(I(e.text),1)])),_:2},1032,["class","onClick","style"])))),128))])),_:1}),p.value<g.value-30?(_(),C(o,{key:0,class:"marquee"},{default:k((()=>[(_(!0),B(E,null,T(D(u).list,((e,t)=>(_(),C(o,{class:j(["item flex-shrink-0 !leading-[40rpx] h-[40rpx]",{"ml-[80rpx]":t}]),key:t,onClick:t=>X(e),style:R({color:D(u).textColor,fontSize:2*D(u).fontSize+"rpx",fontWeight:D(u).fontWeight})},{default:k((()=>[A(I(e.text),1)])),_:2},1032,["class","onClick","style"])))),128))])),_:1})):O("v-if",!0)])),_:1},8,["style"])):O("v-if",!0),O(" 上下滚动 "),"upDown"==D(u).scrollWay?(_(),B(E,{key:1},[S(f,{vertical:!0,duration:500,autoplay:"true",circular:"true",class:"flex-1"},{default:k((()=>[(_(!0),B(E,null,T(D(u).list,((e,o)=>(_(),C(n,{key:o,onTouchmove:t[0]||(t[0]=ee((()=>{}),["prevent","stop"]))},{default:k((()=>[S(a,{onClick:t=>X(e),class:"beyond-hiding using-hidden",style:R({color:D(u).textColor,fontSize:2*D(u).fontSize+"rpx",fontWeight:D(u).fontWeight})},{default:k((()=>[A(I(e.text),1)])),_:2},1032,["onClick","style"])])),_:2},1024)))),128))])),_:1}),S(a,{class:"nc-iconfont nc-icon-youV6xx text-[26rpx] -ml-[8rpx] pl-[30rpx]",style:R({color:"#999",fontWeight:D(u).fontWeight})},null,8,["style"])],64)):O("v-if",!0)])),_:1},8,["id","class"])])),_:1}),S(b,{show:i.value,onClose:t[4]||(t[4]=e=>i.value=!1),mode:"center",round:"var(--rounded-big)",safeAreaInsetBottom:!1},{default:k((()=>[S(o,{onTouchmove:t[3]||(t[3]=ee((()=>{}),["prevent","stop"]))},{default:k((()=>[S(o,{class:"pt-[30rpx] pb-[24rpx] text-sm leading-none border-0 border-solid border-b-[2rpx] border-[#eee] flex items-center justify-between"},{default:k((()=>[S(a,{class:"ml-[30rpx] text-[#333] text-[30rpx] font-500"},{default:k((()=>[A("公告")])),_:1}),S(a,{class:"mr-[20rpx] nc-iconfont nc-icon-guanbiV6xx text-[35rpx]",onClick:t[1]||(t[1]=e=>i.value=!1)})])),_:1}),S(h,{"scroll-y":"true",class:"px-[30rpx] py-[30rpx] w-[580rpx] box-border h-[480rpx] text-[26rpx] text-[#333]"},{default:k((()=>[A(I(s.value),1)])),_:1}),S(v,{onClick:t[2]||(t[2]=e=>i.value=!1),class:"!mx-[80rpx] !mb-[60rpx] !w-auto !h-[70rpx] text-[26rpx] leading-[70rpx] rounded-full text-white !bg-[#ff4500] !text-[#fff]"},{default:k((()=>[A("我知道了")])),_:1})])),_:1})])),_:1},8,["show"])])),_:1})])),_:1},8,["style"])}}}),[["__scopeId","data-v-4d1354d5"]]),je=he(f({__name:"index",props:["component","index","pullDownRefreshCount"],setup(o){const a=o,n=t(),i=r((()=>"decorate"==n.mode?n.value[a.index]:a.component)),s=e=>re(e)+1,u=r((()=>{var e="";return e+="position:relative;",i.value.componentStartBgColor&&(i.value.componentStartBgColor&&i.value.componentEndBgColor?e+=`background:linear-gradient(${i.value.componentGradientAngle},${i.value.componentStartBgColor},${i.value.componentEndBgColor});`:e+="background-color:"+i.value.componentStartBgColor+";"),i.value.componentBgUrl&&(e+=`background-image:url('${l(i.value.componentBgUrl)}');`,e+="background-size: cover;background-repeat: no-repeat;"),i.value.topRounded&&(e+="border-top-left-radius:"+2*i.value.topRounded+"rpx;"),i.value.topRounded&&(e+="border-top-right-radius:"+2*i.value.topRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*i.value.bottomRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*i.value.bottomRounded+"rpx;"),e})),d=r((()=>{var e="";return i.value.componentBgUrl&&(e+="position:absolute;top:0;width:100%;",e+=`background: rgba(0,0,0,${i.value.componentBgAlpha/10});`,e+=`height:${p.value}px;`,i.value.topRounded&&(e+="border-top-left-radius:"+2*i.value.topRounded+"rpx;"),i.value.topRounded&&(e+="border-top-right-radius:"+2*i.value.topRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*i.value.bottomRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*i.value.bottomRounded+"rpx;")),e}));h((()=>a.pullDownRefreshCount),((e,t)=>{})),v((()=>{g(),"decorate"==n.mode?h((()=>i.value),((e,t)=>{e&&"RubikCube"==e.componentName&&g()})):h((()=>i.value),((e,t)=>{g()}))}));const c=z(),p=e(0),g=()=>{"decorate"==n.mode&&i.value.list.forEach((e=>{""==e.imageUrl&&(e.imgWidth=690,e.imgHeight=330)})),m(),b((()=>{x().in(c).select(".rubik-cube").boundingClientRect((e=>{p.value=e.height})).exec()}))},m=()=>{var e={"row1-of2":{ratio:2,width:"calc((100% - "+s(2*i.value.imageGap)+"px) / 2)"},"row1-of3":{ratio:3,width:"calc((100% - "+s(4*i.value.imageGap)+"px) / 3)"},"row1-of4":{ratio:4,width:"calc((100% - "+s(6*i.value.imageGap)+"px) / 4)"}};i.value.list.forEach(((e,t)=>{e.pageItemStyle=((e,t)=>{var o="";return"right"==i.value.elementAngle||{"row1-lt-of2-rt":[["border-top-right-radius","border-bottom-right-radius"],["border-top-left-radius","border-bottom-left-radius","border-bottom-right-radius"],["border-top-left-radius","border-bottom-left-radius","border-top-right-radius"]],"row1-lt-of1-tp-of2-bm":[["border-top-right-radius","border-bottom-right-radius"],["border-top-left-radius","border-bottom-left-radius","border-bottom-right-radius"],["border-radius"],["border-top-left-radius","border-bottom-left-radius","border-top-right-radius"]],"row1-tp-of2-bm":[["border-bottom-left-radius","border-bottom-right-radius"],["border-top-left-radius","border-bottom-right-radius","border-top-right-radius"],["border-top-left-radius","border-bottom-left-radius","border-top-right-radius"]],"row2-lt-of2-rt":[["border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius"],["border-top-left-radius","border-bottom-right-radius","border-bottom-left-radius"],["border-top-left-radius","border-bottom-right-radius","border-top-right-radius"],["border-top-left-radius","border-bottom-left-radius","border-top-right-radius"]],"row1-of4":[["border-top-right-radius","border-bottom-right-radius"],["border-radius"],["border-radius"],["border-top-left-radius","border-bottom-left-radius"]],"row1-of3":[["border-top-right-radius","border-bottom-right-radius"],["border-radius"],["border-top-left-radius","border-bottom-left-radius"]],"row1-of2":[["border-top-right-radius","border-bottom-right-radius"],["border-top-left-radius","border-bottom-left-radius"]]}[e][t].forEach(((e,t)=>{o+="border-top-left-radius:"+2*i.value.topElementRounded+"rpx;",o+="border-top-right-radius:"+2*i.value.topElementRounded+"rpx;",o+="border-bottom-left-radius:"+2*i.value.bottomElementRounded+"rpx;",o+="border-bottom-right-radius:"+2*i.value.bottomElementRounded+"rpx;"})),o})(i.value.mode,t)})),e[i.value.mode]?f(e[i.value.mode]):"row2-lt-of2-rt"==i.value.mode?y():"row1-lt-of2-rt"==i.value.mode?w():"row1-tp-of2-bm"==i.value.mode?A():"row1-lt-of1-tp-of2-bm"==i.value.mode&&I()},f=e=>{oe({success:t=>{let o=0;i.value.list.forEach(((r,l)=>{var a=r.imgHeight/r.imgWidth;let n=t.windowWidth-s(2*i.value.margin.both);i.value.imageGap>0&&(n-=s(e.ratio*i.value.imageGap*2)),r.imgWidth=n/e.ratio,r.imgHeight=r.imgWidth*a,(0==o||o<r.imgHeight)&&(o=r.imgHeight)})),i.value.list.forEach(((t,r)=>{t.widthStyle=e.width,t.imgHeight=o}))}})},y=()=>{oe({success:e=>{let t=0,o=0;i.value.list.forEach(((r,l)=>{var a=r.imgHeight/r.imgWidth;r.imgWidth=e.windowWidth,r.imgWidth-=s(4*i.value.margin.both),i.value.imageGap>0&&(r.imgWidth-=s(2*i.value.imageGap)),r.imgWidth=r.imgWidth/2,r.imgHeight=r.imgWidth*a,l<=1?(0==t||t<r.imgHeight)&&(t=r.imgHeight):l>1&&(0==o||o<r.imgHeight)&&(o=r.imgHeight)})),i.value.list.forEach(((e,r)=>{e.imgWidth="calc((100% - "+s(2*i.value.imageGap)+"px) / 2)",e.widthStyle=e.imgWidth,r<=1?e.imgHeight=t:r>1&&(e.imgHeight=o)}))}})},w=()=>{let e=0;i.value.list[1].imgWidth,i.value.list[2].imgWidth,oe({success:t=>{i.value.list.forEach(((o,r)=>{if(0==r){var l=o.imgHeight/o.imgWidth;o.imgWidth=t.windowWidth-s(4*i.value.margin.both)-s(2*i.value.imageGap),o.imgWidth=o.imgWidth/2,o.imgHeight=o.imgWidth*l,e=(o.imgHeight-s(2*i.value.imageGap))/2,o.imgWidth+="px"}else o.imgWidth=i.value.list[0].imgWidth,o.imgHeight=e}))}})},A=()=>{var e=0;oe({success:t=>{i.value.list.forEach(((o,r)=>{var l=o.imgHeight/o.imgWidth;0==r?o.imgWidth=t.windowWidth-s(4*i.value.margin.both):r>0&&(o.imgWidth=t.windowWidth-s(4*i.value.margin.both)-s(2*i.value.imageGap),o.imgWidth=o.imgWidth/2),o.imgHeight=o.imgWidth*l,r>0&&(0==e||e<o.imgHeight)&&(e=o.imgHeight)})),i.value.list.forEach(((t,o)=>{t.imgWidth+="px",t.widthStyle=t.imgWidth,o>0&&(t.imgHeight=e)}))}})},I=()=>{oe({success:e=>{i.value.list.forEach(((t,o)=>{if(0==o){var r=t.imgHeight/t.imgWidth;t.imgWidth=e.windowWidth-s(4*i.value.margin.both)-s(2*i.value.imageGap),t.imgWidth=t.imgWidth/2,t.imgHeight=t.imgWidth*r}else 1==o?(t.imgWidth=i.value.list[0].imgWidth,t.imgHeight=(i.value.list[0].imgHeight-s(2*i.value.imageGap))/2):o>1&&(t.imgWidth=(i.value.list[0].imgWidth-s(2*i.value.imageGap))/2,t.imgHeight=i.value.list[1].imgHeight)})),i.value.list.forEach(((e,t)=>{e.imgWidth+="px"}))}})};return(e,t)=>{const o=W,r=F;return _(),C(o,{style:R(D(u))},{default:k((()=>[S(o,{style:R(D(d))},null,8,["style"]),S(o,{class:j(["rubik-cube relative",D(n).mode])},{default:k((()=>[O(" 1左2右 "),"row1-lt-of2-rt"==D(i).mode?(_(),B(E,{key:0},[S(o,{class:"template-left"},{default:k((()=>[S(o,{onClick:t[0]||(t[0]=e=>D(n).toRedirect(D(i).list[0].link)),class:j(["item",D(i).mode]),style:R({marginRight:2*D(i).imageGap+"rpx",width:D(i).list[0].imgWidth,height:D(i).list[0].imgHeight+"px"})},{default:k((()=>[D(i).list[0].imageUrl?(_(),C(r,{key:0,src:D(l)(D(i).list[0].imageUrl),mode:"scaleToFill",style:R(D(i).list[0].pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])):(_(),C(r,{key:1,src:D(l)("static/resource/images/diy/figure.png"),mode:"scaleToFill",style:R(D(i).list[0].pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"]))])),_:1},8,["class","style"])])),_:1}),S(o,{class:"template-right"},{default:k((()=>[(_(!0),B(E,null,T(D(i).list,((e,t)=>(_(),B(E,{key:t},[t>0?(_(),C(o,{key:0,onClick:t=>D(n).toRedirect(e.link),class:j(["item",D(i).mode]),style:R({marginBottom:2*D(i).imageGap+"rpx",width:e.imgWidth,height:e.imgHeight+"px"})},{default:k((()=>[e.imageUrl?(_(),C(r,{key:0,src:D(l)(e.imageUrl),mode:"scaleToFill",style:R(e.pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])):(_(),C(r,{key:1,src:D(l)("static/resource/images/diy/figure.png"),mode:"scaleToFill",style:R(e.pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"]))])),_:2},1032,["onClick","class","style"])):O("v-if",!0)],64)))),128))])),_:1})],64)):"row1-lt-of1-tp-of2-bm"==D(i).mode?(_(),B(E,{key:1},[O(" 1左3右 "),S(o,{class:"template-left"},{default:k((()=>[S(o,{onClick:t[1]||(t[1]=e=>D(n).toRedirect(D(i).list[0].link)),class:j(["item",D(i).mode]),style:R({marginRight:2*D(i).imageGap+"rpx",width:D(i).list[0].imgWidth,height:D(i).list[0].imgHeight+"px"})},{default:k((()=>[D(i).list[0].imageUrl?(_(),C(r,{key:0,src:D(l)(D(i).list[0].imageUrl),mode:"scaleToFill",style:R(D(i).list[0].pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])):(_(),C(r,{key:1,src:D(l)("static/resource/images/diy/figure.png"),mode:"scaleToFill",style:R(D(i).list[0].pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"]))])),_:1},8,["class","style"])])),_:1}),S(o,{class:"template-right"},{default:k((()=>[S(o,{onClick:t[2]||(t[2]=e=>D(n).toRedirect(D(i).list[1].link)),class:j(["item",D(i).mode]),style:R({marginBottom:2*D(i).imageGap+"rpx",width:D(i).list[1].imgWidth,height:D(i).list[1].imgHeight+"px"})},{default:k((()=>[D(i).list[1].imageUrl?(_(),C(r,{key:0,src:D(l)(D(i).list[1].imageUrl),mode:"scaleToFill",style:R(D(i).list[1].pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])):(_(),C(r,{key:1,src:D(l)("static/resource/images/diy/figure.png"),mode:"scaleToFill",style:R(D(i).list[1].pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"]))])),_:1},8,["class","style"]),S(o,{class:"template-bottom"},{default:k((()=>[(_(!0),B(E,null,T(D(i).list,((e,t)=>(_(),B(E,{key:t},[t>1?(_(),C(o,{key:0,onClick:t=>D(n).toRedirect(e.link),class:j(["item",D(i).mode]),style:R({marginRight:2*D(i).imageGap+"rpx",width:e.imgWidth,height:e.imgHeight+"px"})},{default:k((()=>[e.imageUrl?(_(),C(r,{key:0,src:D(l)(e.imageUrl),mode:"scaleToFill",style:R(e.pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])):(_(),C(r,{key:1,src:D(l)("static/resource/images/diy/figure.png"),mode:"scaleToFill",style:R(e.pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"]))])),_:2},1032,["onClick","class","style"])):O("v-if",!0)],64)))),128))])),_:1})])),_:1})],64)):(_(!0),B(E,{key:2},T(D(i).list,((e,t)=>(_(),C(o,{class:j(["item",D(i).mode]),key:t,onClick:t=>D(n).toRedirect(e.link),style:R({marginRight:2*D(i).imageGap+"rpx",marginBottom:2*D(i).imageGap+"rpx",width:e.widthStyle,height:e.imgHeight+"px"})},{default:k((()=>[e.imageUrl?(_(),C(r,{key:0,src:D(l)(e.imageUrl),mode:"scaleToFill",style:R(e.pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])):(_(),C(r,{key:1,src:D(l)("static/resource/images/diy/figure.png"),mode:"scaleToFill",style:R(e.pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"]))])),_:2},1032,["class","onClick","style"])))),128))])),_:1},8,["class"])])),_:1},8,["style"])}}}),[["__scopeId","data-v-f2b0f138"]]),Ae=f({__name:"index",props:["component","index","pullDownRefreshCount"],setup(o){const a=o,n=t(),i=r((()=>"decorate"==n.mode?n.value[a.index]:a.component)),s=r((()=>{var e="";return e+="position:relative;",i.value.componentStartBgColor&&(i.value.componentStartBgColor&&i.value.componentEndBgColor?e+=`background:linear-gradient(${i.value.componentGradientAngle},${i.value.componentStartBgColor},${i.value.componentEndBgColor});`:e+="background-color:"+i.value.componentStartBgColor+";"),i.value.componentBgUrl&&(e+=`background-image:url('${l(i.value.componentBgUrl)}');`,e+="background-size: cover;background-repeat: no-repeat;"),i.value.topRounded&&(e+="border-top-left-radius:"+2*i.value.topRounded+"rpx;"),i.value.topRounded&&(e+="border-top-right-radius:"+2*i.value.topRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*i.value.bottomRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*i.value.bottomRounded+"rpx;"),e})),u=r((()=>{var e="";return i.value.componentBgUrl&&(e+="position:absolute;top:0;width:100%;",e+=`background: rgba(0,0,0,${i.value.componentBgAlpha/10});`,e+=`height:${c.value}px;`,i.value.topRounded&&(e+="border-top-left-radius:"+2*i.value.topRounded+"rpx;"),i.value.topRounded&&(e+="border-top-right-radius:"+2*i.value.topRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*i.value.bottomRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*i.value.bottomRounded+"rpx;")),e}));h((()=>a.pullDownRefreshCount),((e,t)=>{})),v((()=>{p(),"decorate"==n.mode&&h((()=>i.value),((e,t)=>{e&&"Text"==e.componentName&&p()}))}));const d=z(),c=e(0),p=()=>{b((()=>{x().in(d).select(".diy-text").boundingClientRect((e=>{c.value=e.height})).exec()}))};return(e,t)=>{const o=W,r=$;return _(),C(o,{style:R(D(s))},{default:k((()=>[S(o,{style:R(D(u))},null,8,["style"]),S(o,{class:"diy-text relative"},{default:k((()=>["style-1"==D(i).style?(_(),C(o,{key:0,class:"px-[var(--pad-sidebar-m)]"},{default:k((()=>[S(o,{onClick:t[0]||(t[0]=e=>D(n).toRedirect(D(i).link))},{default:k((()=>[S(o,{class:"leading-[1]",style:R({fontSize:2*D(i).fontSize+"rpx",color:D(i).textColor,fontWeight:"normal"==D(i).fontWeight?500:D(i).fontWeight,textAlign:D(i).textAlign})},{default:k((()=>[A(I(D(i).text),1)])),_:1},8,["style"])])),_:1})])),_:1})):O("v-if",!0),"style-2"==D(i).style?(_(),C(o,{key:1,class:"px-[20rpx] flex items-center"},{default:k((()=>[S(o,{onClick:t[1]||(t[1]=e=>D(n).toRedirect(D(i).link))},{default:k((()=>[S(o,{class:"max-w-[200rpx] truncate leading-[1]",style:R({fontSize:2*D(i).fontSize+"rpx",color:D(i).textColor,fontWeight:"normal"==D(i).fontWeight?500:D(i).fontWeight})},{default:k((()=>[A(I(D(i).text),1)])),_:1},8,["style"])])),_:1}),D(i).subTitle.text?(_(),C(r,{key:0,style:R({background:D(i).subTitle.color}),class:"mx-[10rpx] w-[2rpx] h-[24rpx] opacity-70"},null,8,["style"])):O("v-if",!0),S(r,{class:"max-w-[300rpx] truncate",style:R({color:D(i).subTitle.color,fontSize:2*D(i).subTitle.fontSize+"rpx"})},{default:k((()=>[A(I(D(i).subTitle.text),1)])),_:1},8,["style"]),D(i).more.isShow?(_(),C(o,{key:1,class:"ml-auto text-right",style:R({color:D(i).more.color})},{default:k((()=>[S(o,{onClick:t[2]||(t[2]=e=>D(n).toRedirect(D(i).more.link)),class:"flex items-center"},{default:k((()=>[S(r,{class:"max-w-[200rpx] truncate text-[26rpx]"},{default:k((()=>[A(I(D(i).more.text),1)])),_:1}),S(r,{class:"nc-iconfont nc-icon-youV6xx text-[24rpx]",style:R({color:D(i).more.color})},null,8,["style"])])),_:1})])),_:1},8,["style"])):O("v-if",!0)])),_:1})):O("v-if",!0)])),_:1})])),_:1},8,["style"])}}}),Ie=f({__name:"index",props:["component","index","pullDownRefreshCount"],setup(o){const a=o,n=t(),i=r((()=>"decorate"==n.mode?n.value[a.index]:a.component)),s=r((()=>{var e="";return e+="position:relative;",i.value.componentStartBgColor&&(i.value.componentStartBgColor&&i.value.componentEndBgColor?e+=`background:linear-gradient(${i.value.componentGradientAngle},${i.value.componentStartBgColor},${i.value.componentEndBgColor});`:e+="background-color:"+i.value.componentStartBgColor+";"),i.value.componentBgUrl&&(e+=`background-image:url('${l(i.value.componentBgUrl)}');`,e+="background-size: cover;background-repeat: no-repeat;"),i.value.topRounded&&(e+="border-top-left-radius:"+2*i.value.topRounded+"rpx;"),i.value.topRounded&&(e+="border-top-right-radius:"+2*i.value.topRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*i.value.bottomRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*i.value.bottomRounded+"rpx;"),e})),u=r((()=>{var e="";return i.value.componentBgUrl&&(e+="position:absolute;top:0;width:100%;",e+=`background: rgba(0,0,0,${i.value.componentBgAlpha/10});`,e+=`height:${c.value}px;`,i.value.topRounded&&(e+="border-top-left-radius:"+2*i.value.topRounded+"rpx;"),i.value.topRounded&&(e+="border-top-right-radius:"+2*i.value.topRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*i.value.bottomRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*i.value.bottomRounded+"rpx;")),e}));h((()=>a.pullDownRefreshCount),((e,t)=>{})),v((()=>{p(),"decorate"==n.mode&&h((()=>i.value),((e,t)=>{e&&"RichText"==e.componentName&&p()}))}));const d=z(),c=e(0),p=()=>{b((()=>{x().in(d).select(".diy-rich-text").boundingClientRect((e=>{c.value=e.height})).exec()}))};return(e,t)=>{const o=W,r=y(w("u-parse"),ye),l=$;return _(),C(o,{style:R(D(s))},{default:k((()=>[S(o,{style:R(D(u))},null,8,["style"]),S(o,{class:"diy-rich-text relative"},{default:k((()=>[D(i).html&&"<p><br></p>"!=D(i).html?(_(),C(o,{key:0},{default:k((()=>[S(r,{content:D(i).html,tagStyle:{img:"vertical-align: top;"}},null,8,["content"])])),_:1})):(_(),B(E,{key:1},[S(o,null,{default:k((()=>[A("点此编辑『富文本』内容 ——>")])),_:1}),S(o,null,{default:k((()=>[S(l,null,{default:k((()=>[A("你可以对文字进行")])),_:1}),S(l,null,{default:k((()=>[A("、")])),_:1}),S(l,{class:"font-bold"},{default:k((()=>[A("加粗")])),_:1}),S(l,null,{default:k((()=>[A("、")])),_:1}),S(l,{class:"italic"},{default:k((()=>[A("斜体")])),_:1}),S(l,null,{default:k((()=>[A("、")])),_:1}),S(l,{class:"underline"},{default:k((()=>[A("下划线")])),_:1}),S(l,null,{default:k((()=>[A("、")])),_:1}),S(l,{class:"line-through"},{default:k((()=>[A("删除线")])),_:1}),S(l,null,{default:k((()=>[A("、文字")])),_:1}),S(l,{style:{color:"rgb(0, 176, 240)"}},{default:k((()=>[A("颜色")])),_:1}),S(l,null,{default:k((()=>[A("、")])),_:1}),S(l,{style:{"background-color":"rgb(255, 192, 0)",color:"rgb(255, 255, 255)"}},{default:k((()=>[A("背景色")])),_:1}),S(l,null,{default:k((()=>[A("、以及字号")])),_:1}),S(l,{class:"text-lg"},{default:k((()=>[A("大")])),_:1}),S(l,{class:"text-sm"},{default:k((()=>[A("小")])),_:1}),S(l,{class:"pl-[10rpx]"},{default:k((()=>[A("等简单排版操作。")])),_:1})])),_:1}),S(o,null,{default:k((()=>[A("也可在这里插入图片、并对图片加上超级链接,方便用户点击。")])),_:1})],64))])),_:1})])),_:1},8,["style"])}}}),Oe=he(f({__name:"index",props:["component","index","pullDownRefreshCount"],setup(o){const a=o,n=t(),i=r((()=>"decorate"==n.mode?n.value[a.index]:a.component)),s=r((()=>{var e="";return e+="position:relative;",i.value.componentStartBgColor&&(i.value.componentStartBgColor&&i.value.componentEndBgColor?e+=`background:linear-gradient(${i.value.componentGradientAngle},${i.value.componentStartBgColor},${i.value.componentEndBgColor});`:e+="background-color:"+i.value.componentStartBgColor+";"),i.value.componentBgUrl&&(e+=`background-image:url('${l(i.value.componentBgUrl)}');`,e+="background-size: cover;background-repeat: no-repeat;"),i.value.topRounded&&(e+="border-top-left-radius:"+2*i.value.topRounded+"rpx;"),i.value.topRounded&&(e+="border-top-right-radius:"+2*i.value.topRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*i.value.bottomRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*i.value.bottomRounded+"rpx;"),e})),u=r((()=>{var e="";return i.value.componentBgUrl&&(e+="position:absolute;top:0;width:100%;",e+=`background: rgba(0,0,0,${i.value.componentBgAlpha/10});`,e+=`height:${m.value}px;`,i.value.topRounded&&(e+="border-top-left-radius:"+2*i.value.topRounded+"rpx;"),i.value.topRounded&&(e+="border-top-right-radius:"+2*i.value.topRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*i.value.bottomRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*i.value.bottomRounded+"rpx;")),e})),d=e(""),c=e(""),p=e=>{var t="";return t+=`background:linear-gradient(90deg,${e.startColor},${e.endColor});`};h((()=>a.pullDownRefreshCount),((e,t)=>{})),v((()=>{f(),"decorate"==n.mode&&h((()=>i.value),((e,t)=>{e&&"ActiveCube"==e.componentName&&f()}))}));const g=z(),m=e(0),f=()=>{b((()=>{x().in(g).select(".diy-active-cube").boundingClientRect((e=>{m.value=e.height})).exec(),"style-3"==i.value.blockStyle.value&&(d.value="margin-right:14rpx;"),"style-4"==i.value.blockStyle.value&&(c.value="margin-right:14rpx;")}))};return(e,t)=>{const o=W,r=$,a=F,g=y(w("u-icon"),fe),m=U;return _(),C(o,{style:R(D(s))},{default:k((()=>[S(o,{style:R(D(u))},null,8,["style"]),S(o,{class:"diy-active-cube relative"},{default:k((()=>[S(o,{class:"active-cube-wrap p-[20rpx] pb-[24rpx]"},{default:k((()=>["style-1"==D(i).titleStyle.value?(_(),C(o,{key:0,class:"flex items-center"},{default:k((()=>[S(o,{class:"mr-[10rpx] font-500 text-[30rpx]",style:R({color:D(i).titleColor}),onClick:t[0]||(t[0]=e=>D(n).toRedirect(D(i).textLink))},{default:k((()=>[A(I(D(i).text),1)])),_:1},8,["style"]),D(i).subTitle.text?(_(),C(o,{key:0,onClick:t[1]||(t[1]=e=>D(n).toRedirect(D(i).subTitle.link)),class:"text-center text-[22rpx] rounded-[40rpx] rounded-tl-[10rpx] py-[6rpx] px-[14rpx]",style:R({color:D(i).subTitle.textColor,background:"linear-gradient(90deg, "+D(i).subTitle.startColor+", "+D(i).subTitle.endColor+")"})},{default:k((()=>[A(I(D(i).subTitle.text),1)])),_:1},8,["style"])):O("v-if",!0)])),_:1})):O("v-if",!0),"style-2"==D(i).titleStyle.value?(_(),C(o,{key:1,class:"flex items-center"},{default:k((()=>[S(o,{class:"mr-[10rpx] font-500 text-[30rpx]",style:R({color:D(i).titleColor}),onClick:t[2]||(t[2]=e=>D(n).toRedirect(D(i).textLink))},{default:k((()=>[A(I(D(i).text),1)])),_:1},8,["style"]),D(i).subTitle.text?(_(),C(o,{key:0,onClick:t[3]||(t[3]=e=>D(n).toRedirect(D(i).subTitle.link)),class:"text-center text-[22rpx] rounded-[6rpx] py-[6rpx] px-[14rpx]",style:R({color:D(i).subTitle.textColor,background:"linear-gradient(90deg, "+D(i).subTitle.startColor+", "+D(i).subTitle.endColor+")"})},{default:k((()=>[A(I(D(i).subTitle.text),1)])),_:1},8,["style"])):O("v-if",!0)])),_:1})):O("v-if",!0),"style-3"==D(i).titleStyle.value?(_(),C(o,{key:2,class:"flex items-center"},{default:k((()=>[S(o,{class:"mr-[10rpx] font-500 text-[30rpx]",onClick:t[4]||(t[4]=e=>D(n).toRedirect(D(i).textLink)),style:R({color:D(i).titleColor})},{default:k((()=>[A(I(D(i).text),1)])),_:1},8,["style"]),S(o,{class:"relative h-[36rpx]",onClick:t[5]||(t[5]=e=>D(n).toRedirect(D(i).subTitle.link))},{default:k((()=>[D(i).subTitle.text?(_(),C(o,{key:0,class:"flex items-center text-[22rpx] leading-0 min-w-[60rpx] h-[34rpx] pl-[10rpx] pr-[34rpx]",style:R({color:D(i).subTitle.textColor,"background-image":"url("+D(l)("static/resource/images/diy/active_cube/bg_2.png")+")","background-size":"100% 100%","background-repeat":"no-repeat"})},{default:k((()=>[A(I(D(i).subTitle.text),1)])),_:1},8,["style"])):O("v-if",!0),O(' \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})):O("v-if",!0),"style-4"==D(i).titleStyle.value?(_(),C(o,{key:3,class:"flex items-center justify-between"},{default:k((()=>[S(o,{class:"font-500 text-[30rpx]",onClick:t[6]||(t[6]=e=>D(n).toRedirect(D(i).textLink)),style:R({color:D(i).titleColor})},{default:k((()=>[A(I(D(i).text),1)])),_:1},8,["style"]),D(i).subTitle.text?(_(),C(o,{key:0,onClick:t[7]||(t[7]=e=>D(n).toRedirect(D(i).subTitle.link)),class:"text-[22rpx] rounded-[40rpx] pl-[16rpx] pr-[8rpx] h-[42rpx] flex-center",style:R({color:D(i).subTitle.textColor,background:"linear-gradient(90deg, "+D(i).subTitle.startColor+", "+D(i).subTitle.endColor+")"})},{default:k((()=>[S(r,null,{default:k((()=>[A(I(D(i).subTitle.text),1)])),_:1}),S(r,{class:"nc-iconfont nc-icon-youV6xx !text-[26rpx]"})])),_:1},8,["style"])):O("v-if",!0)])),_:1})):O("v-if",!0),S(o,{class:"bd flex flex-wrap justify-between"},{default:k((()=>[(_(!0),B(E,null,T(D(i).list,(e=>(_(),B(E,{key:e.id},["style-1"==D(i).blockStyle.value?(_(),C(o,{key:0,onClick:t=>D(n).toRedirect(e.link),class:"item flex justify-between px-[20rpx] py-[30rpx] bg-white mt-[20rpx] rounded-[var(--rounded-mid)]",style:R({backgroundColor:D(i).elementBgColor})},{default:k((()=>[S(o,{class:"flex-1 flex items-baseline flex-col"},{default:k((()=>[S(o,{class:"text-[28rpx] pb-[10rpx] text-[#333]",style:R({fontWeight:D(i).blockStyle.fontWeight})},{default:k((()=>[A(I(e.title.text),1)])),_:2},1032,["style"]),S(o,{class:"text-[22rpx] text-[#999] pb-[30rpx]"},{default:k((()=>[A(I(e.subTitle.text),1)])),_:2},1024),e.moreTitle.text?(_(),C(o,{key:0,class:"link relative text-[22rpx] leading-[40rpx] flex items-center text-white rounded-r-[20rpx] h-[40rpx] pl-[26rpx] pr-[10rpx]",style:R(p(e.moreTitle))},{default:k((()=>[S(r,{class:"mr-[8rpx]"},{default:k((()=>[A(I(e.moreTitle.text),1)])),_:2},1024),S(r,{class:"iconfont iconjiantou-you-cuxiantiao-fill !text-[20rpx] text-[#fff]"}),S(a,{class:"absolute left-0 top-0 bottom-0 !w-[28rpx]",src:D(l)("static/resource/images/diy/active_cube/block_style1_1.png"),mode:"scaleToFill"},null,8,["src"])])),_:2},1032,["style"])):O("v-if",!0)])),_:2},1024),e.imageUrl?(_(),C(o,{key:0,class:"img-box ml-[10rpx] w-[130rpx]"},{default:k((()=>[S(a,{src:D(l)(e.imageUrl),mode:"aspectFit"},null,8,["src"])])),_:2},1024)):(_(),C(o,{key:1,class:"img-box ml-[10rpx] flex items-center justify-center w-[130rpx] bg-[#f3f4f6]"},{default:k((()=>[S(g,{name:"photo",color:"#999",size:"50"})])),_:1}))])),_:2},1032,["onClick","style"])):O("v-if",!0),"style-2"==D(i).blockStyle.value?(_(),C(o,{key:1,onClick:t=>D(n).toRedirect(e.link),class:"item flex justify-between p-[20rpx] bg-white mt-[20rpx] rounded-[var(--rounded-mid)]",style:R({backgroundColor:D(i).elementBgColor})},{default:k((()=>[S(o,{class:"flex-1 flex items-baseline flex-col"},{default:k((()=>[S(o,{class:"text-[26rpx] pb-[20rpx]",style:R({fontWeight:D(i).blockStyle.fontWeight})},{default:k((()=>[A(I(e.title.text),1)])),_:2},1032,["style"]),S(o,{class:"text-[22rpx] text-gray-500 pb-[20rpx]"},{default:k((()=>[A(I(e.subTitle.text),1)])),_:2},1024),e.moreTitle.text?(_(),C(o,{key:0,class:"link relative text-[22rpx] leading-[40rpx] flex items-center text-white rounded-[20rpx] h-[40rpx] pl-[20rpx] pr-[10rpx]",style:R(p(e.moreTitle))},{default:k((()=>[S(r,{class:"mr-[8rpx]"},{default:k((()=>[A(I(e.moreTitle.text),1)])),_:2},1024),S(r,{class:"iconfont iconjiantou-you-cuxiantiao-fill !text-[20rpx] text-[#fff]"})])),_:2},1032,["style"])):O("v-if",!0)])),_:2},1024),e.imageUrl?(_(),C(o,{key:0,class:"img-box ml-[10rpx] w-[130rpx]"},{default:k((()=>[S(a,{src:D(l)(e.imageUrl),mode:"aspectFit"},null,8,["src"])])),_:2},1024)):(_(),C(o,{key:1,class:"img-box ml-[10rpx] flex items-center justify-center w-[130rpx] bg-[#f3f4f6]"},{default:k((()=>[S(g,{name:"photo",color:"#999",size:"50"})])),_:1}))])),_:2},1032,["onClick","style"])):O("v-if",!0)],64)))),128))])),_:1}),"style-3"==D(i).blockStyle.value?(_(),C(m,{key:4,"scroll-x":!0,class:"whitespace-nowrap",id:"warpStyle3-"+D(i).id},{default:k((()=>[(_(!0),B(E,null,T(D(i).list,((e,t)=>(_(),C(o,{key:e.id,class:"inline-flex"},{default:k((()=>[S(o,{id:"item"+t+D(i).id,onClick:t=>D(n).toRedirect(e.link),class:j(["flex flex-col items-center justify-between p-[10rpx] bg-white mt-[20rpx] w-[157rpx] h-[200rpx] rounded-[var(--rounded-mid)] box-border",{"!mr-[0rpx]":t+1===D(i).list.length}]),style:R(d.value)},{default:k((()=>[e.imageUrl?(_(),C(o,{key:0,class:"w-[141rpx] h-[141rpx] rounded-[var(--rounded-small)] overflow-hidden"},{default:k((()=>[S(a,{class:"w-[141rpx] h-[141rpx]",src:D(l)(e.imageUrl),mode:"aspectFit"},null,8,["src"])])),_:2},1024)):(_(),C(o,{key:1,class:"w-[141rpx] h-[141rpx] relative flex-shrink-0"},{default:k((()=>[S(o,{class:"absolute left-0 top-0 flex items-center justify-center w-[141rpx] h-[141rpx] bg-[#f3f4f6]"},{default:k((()=>[S(g,{name:"photo",color:"#999",size:"50"})])),_:1})])),_:1})),S(o,{class:"mt-[10rpx] mb-[2rpx] text-[26rpx]",style:R({color:e.title.textColor,fontWeight:D(i).blockStyle.fontWeight})},{default:k((()=>[A(I(e.title.text),1)])),_:2},1032,["style"])])),_:2},1032,["id","onClick","style","class"])])),_:2},1024)))),128))])),_:1},8,["id"])):O("v-if",!0),"style-4"==D(i).blockStyle.value?(_(),C(m,{key:5,"scroll-x":"true",class:"whitespace-nowrap",id:"warpStyle4-"+D(i).id},{default:k((()=>[(_(!0),B(E,null,T(D(i).list,((e,t)=>(_(),C(o,{key:e.id,class:"inline-flex"},{default:k((()=>[S(o,{id:"item"+t+D(i).id,onClick:t=>D(n).toRedirect(e.link),class:j(["flex flex-col items-center justify-between p-[4rpx] bg-[#F93D02] mt-[20rpx] rounded-[var(--rounded-mid)] box-border",{"!mr-[0rpx]":t+1===D(i).list.length}]),style:R("background :linear-gradient("+e.listFrame.startColor+","+e.listFrame.endColor+");"+c.value)},{default:k((()=>[S(o,{class:"w-[149rpx] h-[149rpx] box-border px-[18rpx] pt-[16rpx] pb-[6rpx] bg-[#fff] flex flex-col items-center rounded-[var(--rounded-small)]"},{default:k((()=>[e.imageUrl?(_(),C(o,{key:0,class:"w-[112rpx] h-[102rpx]"},{default:k((()=>[S(a,{class:"w-[112rpx] h-[102rpx]",src:D(l)(e.imageUrl),mode:"aspectFit"},null,8,["src"])])),_:2},1024)):(_(),C(o,{key:1,class:"w-[112rpx] h-[102rpx] relative flex-shrink-0"},{default:k((()=>[S(o,{class:"absolute left-0 top-0 flex items-center justify-center w-[112rpx] h-[102rpx] bg-[#f3f4f6]"},{default:k((()=>[S(g,{name:"photo",color:"#999",size:"50"})])),_:1})])),_:1})),S(o,{class:"relative -mt-[10rpx] text-[20rpx] bg-[#F3DAC5] text-[#ED6E00] rounded-[16rpx] px-[12rpx] h-[34rpx] flex-center",style:R({color:e.subTitle.textColor,background:"linear-gradient(to right,"+e.subTitle.startColor+","+e.subTitle.endColor+")"})},{default:k((()=>[A(I(e.subTitle.text),1)])),_:2},1032,["style"])])),_:2},1024),S(o,{class:"mt-[12rpx] mb-[12rpx] text-[26rpx] text-[#fff]",style:R({fontWeight:"bold"==D(i).blockStyle.fontWeight?D(i).blockStyle.fontWeight:"500"})},{default:k((()=>[A(I(e.title.text),1)])),_:2},1032,["style"])])),_:2},1032,["id","onClick","class","style"])])),_:2},1024)))),128))])),_:1},8,["id"])):O("v-if",!0)])),_:1})])),_:1})])),_:1},8,["style"])}}}),[["__scopeId","data-v-7b4ef126"]]),ze=he(f({__name:"index",props:["component","index","pullDownRefreshCount"],setup(o){const a=o,n=t(),i=r((()=>"decorate"==n.mode?n.value[a.index]:a.component)),s=r((()=>{var e="";return i.value.componentStartBgColor&&(i.value.componentStartBgColor&&i.value.componentEndBgColor?e+=`background:linear-gradient(${i.value.componentGradientAngle},${i.value.componentStartBgColor},${i.value.componentEndBgColor});`:e+="background-color:"+i.value.componentStartBgColor+";"),i.value.topRounded&&(e+="border-top-left-radius:"+2*i.value.topRounded+"rpx;"),i.value.topRounded&&(e+="border-top-right-radius:"+2*i.value.topRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*i.value.bottomRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*i.value.bottomRounded+"rpx;"),e})),u=r((()=>{var e="";return e+="width:"+2*i.value.imageSize+"rpx;",e+="height:"+2*i.value.imageSize+"rpx;",e+="border-radius:"+2*i.value.aroundRadius+"rpx;"})),d=r((()=>{let e="";return i.value.offset&&("lowerRight"==i.value.bottomPosition||"lowerLeft"==i.value.bottomPosition?e+="transform: translateY("+2*-i.value.offset+"rpx)":"upperRight"!=i.value.bottomPosition&&"upperLeft"!=i.value.bottomPosition||(e+="transform: translateX("+2*i.value.offset+"rpx);")),e})),c=e(!0),p=e(null);return r((()=>{var e="";return i.value.componentStartBgColor&&(i.value.componentStartBgColor&&i.value.componentEndBgColor?e+=`background:linear-gradient(${i.value.componentGradientAngle},${i.value.componentStartBgColor},${i.value.componentEndBgColor});`:e+="background-color:"+i.value.componentStartBgColor+";"),i.value.topRounded&&(e+="border-top-left-radius:"+2*i.value.topRounded+"rpx;"),i.value.topRounded&&(e+="border-top-right-radius:"+2*i.value.topRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*i.value.bottomRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*i.value.bottomRounded+"rpx;"),e+="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*i.value.imageSize+24)+"rpx !important;"})),r((()=>{var e="transition: right .25s;background: rgba(0, 0, 0, 0.5);";return e+=c.value?"":"right:-32rpx !important;transition-delay: 0.25s;"})),m((()=>{"style-2"===i.value.style&&(p&&clearTimeout(p.value),c.value=!1,p.value=setTimeout((()=>{c.value=!0,clearTimeout(p.value)}),200))})),h((()=>a.pullDownRefreshCount),((e,t)=>{})),(e,t)=>{const o=F,r=W;return _(),C(r,{class:j(["float-btn fixed z-1000",[D(i).style,D(i).bottomPosition,"decorate"==D(n).mode?"float-btn-border":""]]),style:R(D(d))},{default:k((()=>["style-1"===D(i).style?(_(),C(r,{key:0,class:"flex flex-col items-center p-[24rpx]",style:R(D(s))},{default:k((()=>[(_(!0),B(E,null,T(D(i).list,((e,t)=>(_(),C(r,{key:t,onClick:t=>D(n).toRedirect(e.link),class:j({"flex items-center justify-center":!0,"mb-[20rpx]":D(i).list.length!=t+1}),style:R(D(u))},{default:k((()=>[e&&e.imageUrl?(_(),C(o,{key:0,style:R(D(u)),src:D(l)(e.imageUrl),mode:"aspectFit"},null,8,["style","src"])):(_(),C(o,{key:1,src:D(l)("static/resource/images/diy/figure.png"),mode:"aspectFit",style:R(D(u))},null,8,["src","style"]))])),_:2},1032,["onClick","class","style"])))),128))])),_:1},8,["style"])):O("v-if",!0),O(' <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"]]),We=he(f({__name:"index",props:["component","index","pullDownRefreshCount","global","scrollBool"],setup(a){const n=a,i=z(),d=t(),c=r((()=>"decorate"==d.mode?d.value[n.index]:n.component)),p=r((()=>{var e="";return c.value.componentStartBgColor&&(c.value.componentStartBgColor&&c.value.componentEndBgColor?e+=`background:linear-gradient(${c.value.componentGradientAngle},${c.value.componentStartBgColor},${c.value.componentEndBgColor});`:e+="background-color:"+c.value.componentStartBgColor+";"),c.value.topRounded&&(e+="border-top-left-radius:"+2*c.value.topRounded+"rpx;"),c.value.topRounded&&(e+="border-top-right-radius:"+2*c.value.topRounded+"rpx;"),c.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*c.value.bottomRounded+"rpx;"),c.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*c.value.bottomRounded+"rpx;"),e}));h((()=>n.pullDownRefreshCount),((e,t)=>{}));const g=e(""),m=e(!1),f=r((()=>{if("decorate"==d.mode)return"";var e="";if(n.global.topStatusBar.isShow&&"style-4"==n.global.topStatusBar.style&&(e+="top:"+d.topTabarHeight+"px;"),"fixed"==c.value.positionWay&&(null!=n.scrollBool&&-1!=n.scrollBool&&(e+="position: fixed;z-index: 10;left: 0;right: 0;"),m.value=!1,1==n.scrollBool)){let t=(c.value.fixedBgColor||"").split(","),o=c.value.fixedBgColor?parseInt(t[t.length-1]):0;c.value.fixedBgColor&&0!=o?(m.value=!1,e+="background-color:"+c.value.fixedBgColor+";"):m.value=!0}return e})),M=e=>{let t="";return e?(t=c.value.tab.selectColor,"fixed"==c.value.positionWay&&1==n.scrollBool&&(t=c.value.tab.fixedSelectColor)):(t=c.value.tab.noColor,"fixed"==c.value.positionWay&&1==n.scrollBool&&(t=c.value.tab.fixedNoColor)),t},H=r((()=>{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})),G=r((()=>{var e="";let t=n.global.pageStartBgColor?n.global.pageStartBgColor:"rgba(255,255,255,1)";if(t.indexOf("(")>-1){let o=t.split("(")[1].split(")")[0].split(",");1==c.value.bgGradient&&(e+=`background: linear-gradient(rgba(${o[0]}, ${o[1]}, ${o[2]}, 0) 65%, rgba(${o[0]}, ${o[1]}, ${o[2]}, 0.6) 70%, rgba(${o[0]}, ${o[1]}, ${o[2]}, 0.85) 80%, rgba(${o[0]}, ${o[1]}, ${o[2]}, 0.95) 90%, rgb(${o[0]}, ${o[1]}, ${o[2]}, 1) 100%);`)}else e+=`background: (${t});`;return e})),L=r((()=>"style-2"==c.value.swiper.swiperStyle)),Y=r((()=>2*c.value.swiper.imageHeight+"rpx")),X=e(0),V=e=>{X.value=e.detail.current},q=r((()=>{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})),Z=e(-1),J=e(""),K=(e,t)=>{if("decorate"==d.mode)return!1;J.value=e.source,Z.value=t,"home"==e.source?d.topFixedStatus="home":"diy_page"==e.source&&(d.topFixedStatus="diy",ae(e.diy_id))},Q=e(!1);let te={};const oe=e("");v((()=>{re(),"decorate"==d.mode&&h((()=>c.value),((e,t)=>{e&&"CarouselSearch"==e.componentName&&re()}))}));const re=()=>{b((()=>{setTimeout((()=>{x().in(i).select(".fixed-wrap").boundingClientRect((e=>{g.value=(e.height||0)+"px"})).exec()}))})),K({source:"home"},-1),c.value.swiper.list.forEach((e=>{""==e.imageUrl&&(e.imgWidth=690,e.imgHeight=330)}))},le=o({pageMode:"diy",title:"",global:{},value:[]}),ae=e=>{if(!e)return le.pageMode="diy",le.title="",le.global={},void(le.value=[]);s({id:e}).then((e=>{if(e.data.value){let t=e.data;le.pageMode=t.mode,le.title=t.title;let o=JSON.parse(t.value);le.global=o.global,le.global.topStatusBar.isShow=!1,le.global.bottomTabBarSwitch=!1,le.value=o.value,le.value.forEach(((e,t)=>{e.pageStyle="",e.pageStartBgColor&&(e.pageStartBgColor&&e.pageEndBgColor?e.pageStyle+=`background:linear-gradient(${e.pageGradientAngle},${e.pageStartBgColor},${e.pageEndBgColor});`:e.pageStyle+="background-color:"+e.pageStartBgColor+";"),e.margin&&(e.margin.top>0&&(e.pageStyle+="padding-top:"+2*e.margin.top+"rpx;"),e.pageStyle+="padding-bottom:"+2*e.margin.bottom+"rpx;",e.pageStyle+="padding-right:"+2*e.margin.both+"rpx;",e.pageStyle+="padding-left:"+2*e.margin.both+"rpx;")})),u({title:le.title})}}))};let ne=e(!0);ne.value=!0;let ie=uni.getStorageSync("componentsScrollValGroup");if(ie&&"object"==typeof ie)ie.CarouselSearch=20,uni.setStorageSync("componentsScrollValGroup",ie);else{let e={CarouselSearch:20};uni.setStorageSync("componentsScrollValGroup",e)}return(e,t)=>{const o=F,r=W,a=$,i=N,s=P,u=U,h=y(w("u-popup"),be);return _(),C(r,{style:R(D(p)),class:"goods-carousel-search-wrap"},{default:k((()=>[S(r,{class:"relative pb-[20rpx]"},{default:k((()=>[S(r,{class:j(["bg-img",{"!-bottom-[200rpx]":1==D(c).bgGradient}])},{default:k((()=>[D(c).swiper.list&&D(c).swiper.list[X.value].imageUrl?(_(),C(o,{key:0,src:D(l)(D(c).swiper.list[X.value].imageUrl),mode:"scaleToFill",class:"w-full h-full","show-menu-by-longpress":!0},null,8,["src"])):(_(),C(r,{key:1,class:"w-full h-full bg-[#ccc]"})),S(r,{class:"bg-img-box",style:R(D(G))},null,8,["style"])])),_:1},8,["class"]),S(r,{class:"fixed-wrap",style:R(D(f))},{default:k((()=>[S(r,{class:"diy-search-wrap relative z-10",onClick:t[1]||(t[1]=e=>D(d).toRedirect(D(c).search.link)),style:R(oe.value)},{default:k((()=>[D(c).search.logo?(_(),C(r,{key:0,class:"img-wrap"},{default:k((()=>[S(o,{src:D(l)(D(c).search.logo),mode:"aspectFit"},null,8,["src"])])),_:1})):O("v-if",!0),S(r,{class:"search-content",onClick:t[0]||(t[0]=ee((e=>D(d).toRedirect(D(c).search.link)),["stop"]))},{default:k((()=>[S(a,{class:"input-content text-[#fff] text-[24rpx] leading-[68rpx]"},{default:k((()=>[A(I(D(H)?D(c).search.text:""),1)])),_:1}),S(a,{class:"nc-iconfont nc-icon-sousuo-duanV6xx1 text-[28rpx] text-[#fff]"}),D(H)?O("v-if",!0):(_(),C(s,{key:0,class:"swiper-wrap",interval:1e3*D(c).search.hotWord.interval,autoplay:"true",vertical:"true",circular:"true"},{default:k((()=>[(_(!0),B(E,null,T(D(c).search.hotWord.list,(e=>(_(),C(i,{class:"swiper-item",key:e.id},{default:k((()=>[S(r,{class:"leading-[64rpx] text-[24rpx]"},{default:k((()=>[A(I(e.text),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1},8,["interval"]))])),_:1})])),_:1},8,["style"]),D(c).tab.control?(_(),C(r,{key:0,class:"tab-list-wrap relative z-10"},{default:k((()=>[S(u,{"scroll-x":"true",class:"scroll-wrap","scroll-into-view":"a"+Z.value},{default:k((()=>[S(r,{onClick:t[2]||(t[2]=e=>K({source:"home"},-1)),class:j(["scroll-item",[{active:-1==Z.value}]])},{default:k((()=>[S(r,{class:"name",style:R({color:M(-1==Z.value)})},{default:k((()=>[A("首页")])),_:1},8,["style"]),-1==Z.value?(_(),C(r,{key:0,class:"line",style:R({"background-color":M(-1==Z.value)})},null,8,["style"])):O("v-if",!0)])),_:1},8,["class"]),(_(!0),B(E,null,T(D(c).tab.list,((e,t)=>(_(),C(r,{class:j(["scroll-item",[{active:t==Z.value}]]),onClick:o=>K(e,t),id:"a"+t,key:t},{default:k((()=>[S(r,{class:"name",style:R({color:M(t==Z.value)})},{default:k((()=>[A(I(e.text),1)])),_:2},1032,["style"]),t==Z.value?(_(),C(r,{key:0,class:"line",style:R({"background-color":M(t==Z.value)})},null,8,["style"])):O("v-if",!0)])),_:2},1032,["class","onClick","id"])))),128))])),_:1},8,["scroll-into-view"]),D(c).tab.list.length?(_(),C(r,{key:0,class:"absolute tab-btn iconfont icona-yingyongliebiaoV6xx-32",onClick:t[3]||(t[3]=e=>Q.value=!0)})):O("v-if",!0)])),_:1})):O("v-if",!0),m.value?(_(),C(r,{key:1,class:"bg-img"},{default:k((()=>[D(c).swiper.list&&D(c).swiper.list[X.value].imageUrl?(_(),C(o,{key:0,src:D(l)(D(c).swiper.list[X.value].imageUrl),mode:"scaleToFill",class:"w-full h-full","show-menu-by-longpress":!0},null,8,["src"])):(_(),C(r,{key:1,class:"w-full h-full bg-[#ccc]"}))])),_:1})):O("v-if",!0)])),_:1},8,["style"]),O(" 解决fixed定位后导航栏塌陷的问题 "),"decorate"!=D(d).mode?(_(),B(E,{key:0},["fixed"==D(c).positionWay&&null!=n.scrollBool&&-1!=n.scrollBool?(_(),C(r,{key:0,class:"u-navbar-placeholder",style:R({width:"100%",paddingTop:g.value})},null,8,["style"])):O("v-if",!0)],64)):O("v-if",!0),O(" 轮播图 "),S(r,{class:j(["relative",{"mx-[20rpx]":D(L)}])},{default:k((()=>[D(c).swiper.control?(_(),C(s,{key:0,class:j(["swiper",{"swiper-left":"left"==D(c).swiper.indicatorAlign,"swiper-right":"right"==D(c).swiper.indicatorAlign,"ns-indicator-dots":"style-2"==D(c).swiper.indicatorStyle}]),style:R({height:D(Y)}),autoplay:"true",circular:"true",onChange:V,"previous-margin":D(L)?0:"26rpx","next-margin":D(L)?0:"26rpx",interval:1e3*D(c).swiper.interval,"indicator-dots":D(ne),"indicator-color":D(c).swiper.indicatorColor,"indicator-active-color":D(c).swiper.indicatorActiveColor},{default:k((()=>[(_(!0),B(E,null,T(D(c).swiper.list,((e,t)=>(_(),C(i,{class:"swiper-item",key:e.id,style:R(D(q))},{default:k((()=>[S(r,{onClick:t=>D(d).toRedirect(e.link)},{default:k((()=>[S(r,{class:"item",style:R({height:D(Y)})},{default:k((()=>[e.imageUrl?(_(),C(o,{key:0,src:D(l)(e.imageUrl),mode:"scaleToFill",style:R(D(q)),class:j(["w-full h-full",{"swiper-animation":X.value!=t}]),"show-menu-by-longpress":!0},null,8,["src","style","class"])):(_(),C(o,{key:1,src:D(l)("static/resource/images/diy/figure.png"),style:R(D(q)),mode:"scaleToFill",class:j(["w-full h-full",{"swiper-animation":X.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"])):O("v-if",!0)])),_:1},8,["class"]),O(" 分类展开 "),S(h,{safeAreaInsetTop:!0,show:Q.value,mode:"top",onClose:t[5]||(t[5]=e=>Q.value=!1)},{default:k((()=>[S(r,{class:"text-sm px-[30rpx] pt-3",style:R({"padding-top":D(te).top+"px"})},{default:k((()=>[A("全部分类")])),_:1},8,["style"]),S(r,{class:"flex flex-wrap pl-[30rpx] pt-[30rpx]"},{default:k((()=>[S(r,{onClick:t[4]||(t[4]=e=>K({source:"home"},-1)),class:j(["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==Z.value}])},{default:k((()=>[A(" 首页 ")])),_:1},8,["class"]),(_(!0),B(E,null,T(D(c).tab.list,((e,t)=>(_(),C(a,{onClick:o=>K(e,t),key:t,class:j(["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==Z.value}])},{default:k((()=>[A(I(e.text),1)])),_:2},1032,["onClick","class"])))),128))])),_:1})])),_:1},8,["show"])])),_:1}),O(" 展示微页面数据 "),"diy_page"==J.value?(_(),C(r,{key:0,class:"child-diy-template-wrap bg-index"},{default:k((()=>[S(rn,{data:le},null,8,["data"])])),_:1})):O("v-if",!0)])),_:1},8,["style"])}}}),[["__scopeId","data-v-d4e99bc0"]]);const Fe=he({name:"u-badge",mixins:[ae,{props:{isDot:{type:Boolean,default:()=>le.badge.isDot},value:{type:[Number,String],default:()=>le.badge.value},modelValue:{type:[Number,String],default:()=>le.badge.modelValue},show:{type:Boolean,default:()=>le.badge.show},max:{type:[Number,String],default:()=>le.badge.max},type:{type:String,default:()=>le.badge.type},showZero:{type:Boolean,default:()=>le.badge.showZero},bgColor:{type:[String,null],default:()=>le.badge.bgColor},color:{type:[String,null],default:()=>le.badge.color},shape:{type:String,default:()=>le.badge.shape},numberType:{type:String,default:()=>le.badge.numberType},offset:{type:Array,default:()=>le.badge.offset},inverted:{type:Boolean,default:()=>le.badge.inverted},absolute:{type:Boolean,default:()=>le.badge.absolute}}},ne],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=ie(t),e.right=ie(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:se}},[["render",function(e,t,o,r,l,a){const n=$;return e.show&&(0!==Number(e.value)||e.showZero||e.isDot)?(_(),C(n,{key:0,class:j([[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:R([a.addStyle(e.customStyle),a.badgeStyle])},{default:k((()=>[A(I(e.isDot?"":a.showValue),1)])),_:1},8,["class","style"])):O("v-if",!0)}],["__scopeId","data-v-0e56696e"]]);const $e=he({name:"u-tabbar-item",mixins:[ae,ne,{props:{name:{type:[String,Number,null],default:()=>le.tabbarItem.name},icon:{icon:String,default:()=>le.tabbarItem.icon},badge:{type:[String,Number,null],default:()=>le.tabbarItem.badge},dot:{type:Boolean,default:()=>le.tabbarItem.dot},text:{type:String,default:()=>le.tabbarItem.text},badgeStyle:{type:[Object,String],default:()=>le.tabbarItem.badgeStyle}}}],data:()=>({isActive:!1,parentData:{value:null,activeColor:"",inactiveColor:""}}),options:{virtualHost:!0},created(){this.init()},emits:["click","change"],methods:{addStyle:se,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,r,l,a){const n=y(w("u-icon"),fe),i=y(w("u-badge"),Fe),s=W,u=$;return _(),C(s,{class:"u-tabbar-item cursor-pointer",style:R([a.addStyle(e.customStyle)]),onClick:a.clickHandler},{default:k((()=>[S(s,{class:"u-tabbar-item__icon"},{default:k((()=>[e.icon?(_(),C(n,{key:0,name:e.icon,color:l.isActive?l.parentData.activeColor:l.parentData.inactiveColor,size:20},null,8,["name","color"])):(_(),B(E,{key:1},[l.isActive?ue(e.$slots,"active-icon",{key:0},void 0,!0):ue(e.$slots,"inactive-icon",{key:1},void 0,!0)],64)),S(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}),ue(e.$slots,"text",{},(()=>[S(u,{class:"u-tabbar-item__text",style:R({color:l.isActive?l.parentData.activeColor:l.parentData.inactiveColor})},{default:k((()=>[A(I(e.text),1)])),_:1},8,["style"])]),!0)])),_:3},8,["style","onClick"])}],["__scopeId","data-v-ed2788ef"]]);const Ne=he({name:"u-tabbar",mixins:[ae,ne,{props:{value:{type:[String,Number,null],default:()=>le.tabbar.value},safeAreaInsetBottom:{type:Boolean,default:()=>le.tabbar.safeAreaInsetBottom},border:{type:Boolean,default:()=>le.tabbar.border},zIndex:{type:[String,Number],default:()=>le.tabbar.zIndex},activeColor:{type:String,default:()=>le.tabbar.activeColor},inactiveColor:{type:String,default:()=>le.tabbar.inactiveColor},fixed:{type:Boolean,default:()=>le.tabbar.fixed},placeholder:{type:Boolean,default:()=>le.tabbar.placeholder}}}],data:()=>({placeholderHeight:0}),computed:{tabbarStyle(){const e={zIndex:this.zIndex};return de(e,se(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 ce(20),this.$uGetRect(".u-tabbar__content").then((({height:e=50})=>{this.placeholderHeight=e})))}}},[["render",function(e,t,o,r,l,a){const n=W,i=y(w("u-safe-bottom"),xe);return _(),C(n,{class:"u-tabbar"},{default:k((()=>[S(n,{class:j(["u-tabbar__content",[e.border&&"u-border-top",e.fixed&&"u-tabbar--fixed"]]),ref:"u-tabbar__content",onTouchmove:ee(e.noop,["stop","prevent"]),style:R([a.tabbarStyle])},{default:k((()=>[S(n,{class:"u-tabbar__content__item-wrapper"},{default:k((()=>[ue(e.$slots,"default",{},void 0,!0)])),_:3}),e.safeAreaInsetBottom?(_(),C(i,{key:0})):O("v-if",!0)])),_:3},8,["onTouchmove","class","style"]),e.placeholder?(_(),C(n,{key:0,class:"u-tabbar__placeholder",style:R({height:l.placeholderHeight+"px"})},null,8,["style"])):O("v-if",!0)])),_:3})}],["__scopeId","data-v-71f6d5da"]]);const Pe="object"==typeof global&&global&&global.Object===Object&&global;var Ue="object"==typeof self&&self&&self.Object===Object&&self;const Me=Pe||Ue||Function("return this")();const He=Me.Symbol;var Ge=Object.prototype,Le=Ge.hasOwnProperty,Ye=Ge.toString,Xe=He?He.toStringTag:void 0;var Ve=Object.prototype.toString;var qe="[object Null]",Ze="[object Undefined]",Je=He?He.toStringTag:void 0;function Ke(e){return null==e?void 0===e?Ze:qe:Je&&Je in Object(e)?function(e){var t=Le.call(e,Xe),o=e[Xe];try{e[Xe]=void 0;var r=!0}catch(a){}var l=Ye.call(e);return r&&(t?e[Xe]=o:delete e[Xe]),l}(e):function(e){return Ve.call(e)}(e)}function Qe(e){return null!=e&&"object"==typeof e}var et="[object Symbol]";const tt=Array.isArray;var ot=/\s/;var rt=/^\s+/;function lt(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&ot.test(e.charAt(t)););return t}(e)+1).replace(rt,""):e}function at(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var nt=NaN,it=/^[-+]0x[0-9a-f]+$/i,st=/^0b[01]+$/i,ut=/^0o[0-7]+$/i,dt=parseInt;function ct(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||Qe(e)&&Ke(e)==et}(e))return nt;if(at(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=at(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=lt(e);var o=st.test(e);return o||ut.test(e)?dt(e.slice(2),o?2:8):it.test(e)?nt:+e}var pt=1/0,gt=17976931348623157e292;function mt(e){return e?(e=ct(e))===pt||e===-pt?(e<0?-1:1)*gt:e==e?e:0:0===e?e:0}var ft="[object AsyncFunction]",ht="[object Function]",vt="[object GeneratorFunction]",bt="[object Proxy]";function xt(e){if(!at(e))return!1;var t=Ke(e);return t==ht||t==vt||t==ft||t==bt}const yt=Me["__core-js_shared__"];var wt,_t=(wt=/[^.]+$/.exec(yt&&yt.keys&&yt.keys.IE_PROTO||""))?"Symbol(src)_1."+wt:"";var Ct=Function.prototype.toString;function kt(e){if(null!=e){try{return Ct.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var St=/^\[object .+?Constructor\]$/,Rt=Function.prototype,Dt=Object.prototype,Bt=Rt.toString,Et=Dt.hasOwnProperty,Tt=RegExp("^"+Bt.call(Et).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function jt(e){return!(!at(e)||(t=e,_t&&_t in t))&&(xt(e)?Tt:St).test(kt(e));var t}function At(e,t){var o=function(e,t){return null==e?void 0:e[t]}(e,t);return jt(o)?o:void 0}const It=At(Me,"WeakMap");var Ot=Object.create;const zt=function(){function e(){}return function(t){if(!at(t))return{};if(Ot)return Ot(t);e.prototype=t;var o=new e;return e.prototype=void 0,o}}();const Wt=function(){try{var e=At(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();var Ft=9007199254740991,$t=/^(?:0|[1-9]\d*)$/;function Nt(e,t){var o=typeof e;return!!(t=null==t?Ft:t)&&("number"==o||"symbol"!=o&&$t.test(e))&&e>-1&&e%1==0&&e<t}function Pt(e,t,o){"__proto__"==t&&Wt?Wt(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}function Ut(e,t){return e===t||e!=e&&t!=t}var Mt=Object.prototype.hasOwnProperty;function Ht(e,t,o){var r=e[t];Mt.call(e,t)&&Ut(r,o)&&(void 0!==o||t in e)||Pt(e,t,o)}function Gt(e,t,o,r){var l=!o;o||(o={});for(var a=-1,n=t.length;++a<n;){var i=t[a],s=r?r(o[i],e[i],i,o,e):void 0;void 0===s&&(s=e[i]),l?Pt(o,i,s):Ht(o,i,s)}return o}var Lt=9007199254740991;function Yt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Lt}function Xt(e){return null!=e&&Yt(e.length)&&!xt(e)}var Vt=Object.prototype;function qt(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Vt)}function Zt(e){return Qe(e)&&"[object Arguments]"==Ke(e)}var Jt=Object.prototype,Kt=Jt.hasOwnProperty,Qt=Jt.propertyIsEnumerable;const eo=Zt(function(){return arguments}())?Zt:function(e){return Qe(e)&&Kt.call(e,"callee")&&!Qt.call(e,"callee")};var to="object"==typeof exports&&exports&&!exports.nodeType&&exports,oo=to&&"object"==typeof module&&module&&!module.nodeType&&module,ro=oo&&oo.exports===to?Me.Buffer:void 0;const lo=(ro?ro.isBuffer:void 0)||function(){return!1};var ao={};function no(e){return function(t){return e(t)}}ao["[object Float32Array]"]=ao["[object Float64Array]"]=ao["[object Int8Array]"]=ao["[object Int16Array]"]=ao["[object Int32Array]"]=ao["[object Uint8Array]"]=ao["[object Uint8ClampedArray]"]=ao["[object Uint16Array]"]=ao["[object Uint32Array]"]=!0,ao["[object Arguments]"]=ao["[object Array]"]=ao["[object ArrayBuffer]"]=ao["[object Boolean]"]=ao["[object DataView]"]=ao["[object Date]"]=ao["[object Error]"]=ao["[object Function]"]=ao["[object Map]"]=ao["[object Number]"]=ao["[object Object]"]=ao["[object RegExp]"]=ao["[object Set]"]=ao["[object String]"]=ao["[object WeakMap]"]=!1;var io="object"==typeof exports&&exports&&!exports.nodeType&&exports,so=io&&"object"==typeof module&&module&&!module.nodeType&&module,uo=so&&so.exports===io&&Pe.process;const co=function(){try{var e=so&&so.require&&so.require("util").types;return e||uo&&uo.binding&&uo.binding("util")}catch(t){}}();var po=co&&co.isTypedArray;const go=po?no(po):function(e){return Qe(e)&&Yt(e.length)&&!!ao[Ke(e)]};var mo=Object.prototype.hasOwnProperty;function fo(e,t){var o=tt(e),r=!o&&eo(e),l=!o&&!r&&lo(e),a=!o&&!r&&!l&&go(e),n=o||r||l||a,i=n?function(e,t){for(var o=-1,r=Array(e);++o<e;)r[o]=t(o);return r}(e.length,String):[],s=i.length;for(var u in e)!t&&!mo.call(e,u)||n&&("length"==u||l&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Nt(u,s))||i.push(u);return i}function ho(e,t){return function(o){return e(t(o))}}const vo=ho(Object.keys,Object);var bo=Object.prototype.hasOwnProperty;function xo(e){return Xt(e)?fo(e):function(e){if(!qt(e))return vo(e);var t=[];for(var o in Object(e))bo.call(e,o)&&"constructor"!=o&&t.push(o);return t}(e)}var yo=Object.prototype.hasOwnProperty;function wo(e){if(!at(e))return function(e){var t=[];if(null!=e)for(var o in Object(e))t.push(o);return t}(e);var t=qt(e),o=[];for(var r in e)("constructor"!=r||!t&&yo.call(e,r))&&o.push(r);return o}function _o(e){return Xt(e)?fo(e,!0):wo(e)}const Co=At(Object,"create");var ko=Object.prototype.hasOwnProperty;var So=Object.prototype.hasOwnProperty;function Ro(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}function Do(e,t){for(var o=e.length;o--;)if(Ut(e[o][0],t))return o;return-1}Ro.prototype.clear=function(){this.__data__=Co?Co(null):{},this.size=0},Ro.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ro.prototype.get=function(e){var t=this.__data__;if(Co){var o=t[e];return"__lodash_hash_undefined__"===o?void 0:o}return ko.call(t,e)?t[e]:void 0},Ro.prototype.has=function(e){var t=this.__data__;return Co?void 0!==t[e]:So.call(t,e)},Ro.prototype.set=function(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=Co&&void 0===t?"__lodash_hash_undefined__":t,this};var Bo=Array.prototype.splice;function Eo(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}Eo.prototype.clear=function(){this.__data__=[],this.size=0},Eo.prototype.delete=function(e){var t=this.__data__,o=Do(t,e);return!(o<0)&&(o==t.length-1?t.pop():Bo.call(t,o,1),--this.size,!0)},Eo.prototype.get=function(e){var t=this.__data__,o=Do(t,e);return o<0?void 0:t[o][1]},Eo.prototype.has=function(e){return Do(this.__data__,e)>-1},Eo.prototype.set=function(e,t){var o=this.__data__,r=Do(o,e);return r<0?(++this.size,o.push([e,t])):o[r][1]=t,this};const To=At(Me,"Map");function jo(e,t){var o,r,l=e.__data__;return("string"==(r=typeof(o=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==o:null===o)?l["string"==typeof t?"string":"hash"]:l.map}function Ao(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}function Io(e,t){for(var o=-1,r=t.length,l=e.length;++o<r;)e[l+o]=t[o];return e}Ao.prototype.clear=function(){this.size=0,this.__data__={hash:new Ro,map:new(To||Eo),string:new Ro}},Ao.prototype.delete=function(e){var t=jo(this,e).delete(e);return this.size-=t?1:0,t},Ao.prototype.get=function(e){return jo(this,e).get(e)},Ao.prototype.has=function(e){return jo(this,e).has(e)},Ao.prototype.set=function(e,t){var o=jo(this,e),r=o.size;return o.set(e,t),this.size+=o.size==r?0:1,this};const Oo=ho(Object.getPrototypeOf,Object);function zo(e){var t=this.__data__=new Eo(e);this.size=t.size}zo.prototype.clear=function(){this.__data__=new Eo,this.size=0},zo.prototype.delete=function(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o},zo.prototype.get=function(e){return this.__data__.get(e)},zo.prototype.has=function(e){return this.__data__.has(e)},zo.prototype.set=function(e,t){var o=this.__data__;if(o instanceof Eo){var r=o.__data__;if(!To||r.length<199)return r.push([e,t]),this.size=++o.size,this;o=this.__data__=new Ao(r)}return o.set(e,t),this.size=o.size,this};var Wo="object"==typeof exports&&exports&&!exports.nodeType&&exports,Fo=Wo&&"object"==typeof module&&module&&!module.nodeType&&module,$o=Fo&&Fo.exports===Wo?Me.Buffer:void 0,No=$o?$o.allocUnsafe:void 0;function Po(){return[]}var Uo=Object.prototype.propertyIsEnumerable,Mo=Object.getOwnPropertySymbols;const Ho=Mo?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var o=-1,r=null==e?0:e.length,l=0,a=[];++o<r;){var n=e[o];t(n,o,e)&&(a[l++]=n)}return a}(Mo(e),(function(t){return Uo.call(e,t)})))}:Po;const Go=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Io(t,Ho(e)),e=Oo(e);return t}:Po;function Lo(e,t,o){var r=t(e);return tt(e)?r:Io(r,o(e))}function Yo(e){return Lo(e,xo,Ho)}function Xo(e){return Lo(e,_o,Go)}const Vo=At(Me,"DataView");const qo=At(Me,"Promise");const Zo=At(Me,"Set");var Jo="[object Map]",Ko="[object Promise]",Qo="[object Set]",er="[object WeakMap]",tr="[object DataView]",or=kt(Vo),rr=kt(To),lr=kt(qo),ar=kt(Zo),nr=kt(It),ir=Ke;(Vo&&ir(new Vo(new ArrayBuffer(1)))!=tr||To&&ir(new To)!=Jo||qo&&ir(qo.resolve())!=Ko||Zo&&ir(new Zo)!=Qo||It&&ir(new It)!=er)&&(ir=function(e){var t=Ke(e),o="[object Object]"==t?e.constructor:void 0,r=o?kt(o):"";if(r)switch(r){case or:return tr;case rr:return Jo;case lr:return Ko;case ar:return Qo;case nr:return er}return t});const sr=ir;var ur=Object.prototype.hasOwnProperty;const dr=Me.Uint8Array;function cr(e){var t=new e.constructor(e.byteLength);return new dr(t).set(new dr(e)),t}var pr=/\w*$/;var gr=He?He.prototype:void 0,mr=gr?gr.valueOf:void 0;var fr="[object Boolean]",hr="[object Date]",vr="[object Map]",br="[object Number]",xr="[object RegExp]",yr="[object Set]",wr="[object String]",_r="[object Symbol]",Cr="[object ArrayBuffer]",kr="[object DataView]",Sr="[object Float32Array]",Rr="[object Float64Array]",Dr="[object Int8Array]",Br="[object Int16Array]",Er="[object Int32Array]",Tr="[object Uint8Array]",jr="[object Uint8ClampedArray]",Ar="[object Uint16Array]",Ir="[object Uint32Array]";function Or(e,t,o){var r,l,a,n=e.constructor;switch(t){case Cr:return cr(e);case fr:case hr:return new n(+e);case kr:return function(e,t){var o=t?cr(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}(e,o);case Sr:case Rr:case Dr:case Br:case Er:case Tr:case jr:case Ar:case Ir:return function(e,t){var o=t?cr(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}(e,o);case vr:return new n;case br:case wr:return new n(e);case xr:return(a=new(l=e).constructor(l.source,pr.exec(l))).lastIndex=l.lastIndex,a;case yr:return new n;case _r:return r=e,mr?Object(mr.call(r)):{}}}var zr=co&&co.isMap;const Wr=zr?no(zr):function(e){return Qe(e)&&"[object Map]"==sr(e)};var Fr=co&&co.isSet;const $r=Fr?no(Fr):function(e){return Qe(e)&&"[object Set]"==sr(e)};var Nr=1,Pr=2,Ur=4,Mr="[object Arguments]",Hr="[object Function]",Gr="[object GeneratorFunction]",Lr="[object Object]",Yr={};function Xr(e,t,o,r,l,a){var n,i=t&Nr,s=t&Pr,u=t&Ur;if(o&&(n=l?o(e,r,l,a):o(e)),void 0!==n)return n;if(!at(e))return e;var d=tt(e);if(d){if(n=function(e){var t=e.length,o=new e.constructor(t);return t&&"string"==typeof e[0]&&ur.call(e,"index")&&(o.index=e.index,o.input=e.input),o}(e),!i)return function(e,t){var o=-1,r=e.length;for(t||(t=Array(r));++o<r;)t[o]=e[o];return t}(e,n)}else{var c=sr(e),p=c==Hr||c==Gr;if(lo(e))return function(e,t){if(t)return e.slice();var o=e.length,r=No?No(o):new e.constructor(o);return e.copy(r),r}(e,i);if(c==Lr||c==Mr||p&&!l){if(n=s||p?{}:function(e){return"function"!=typeof e.constructor||qt(e)?{}:zt(Oo(e))}(e),!i)return s?function(e,t){return Gt(e,Go(e),t)}(e,function(e,t){return e&&Gt(t,_o(t),e)}(n,e)):function(e,t){return Gt(e,Ho(e),t)}(e,function(e,t){return e&&Gt(t,xo(t),e)}(n,e))}else{if(!Yr[c])return l?e:{};n=Or(e,c,i)}}a||(a=new zo);var g=a.get(e);if(g)return g;a.set(e,n),$r(e)?e.forEach((function(r){n.add(Xr(r,t,o,r,e,a))})):Wr(e)&&e.forEach((function(r,l){n.set(l,Xr(r,t,o,l,e,a))}));var m=d?void 0:(u?s?Xo:Yo:s?_o:xo)(e);return function(e,t){for(var o=-1,r=null==e?0:e.length;++o<r&&!1!==t(e[o],o,e););}(m||e,(function(r,l){m&&(r=e[l=r]),Ht(n,l,Xr(r,t,o,l,e,a))})),n}Yr[Mr]=Yr["[object Array]"]=Yr["[object ArrayBuffer]"]=Yr["[object DataView]"]=Yr["[object Boolean]"]=Yr["[object Date]"]=Yr["[object Float32Array]"]=Yr["[object Float64Array]"]=Yr["[object Int8Array]"]=Yr["[object Int16Array]"]=Yr["[object Int32Array]"]=Yr["[object Map]"]=Yr["[object Number]"]=Yr[Lr]=Yr["[object RegExp]"]=Yr["[object Set]"]=Yr["[object String]"]=Yr["[object Symbol]"]=Yr["[object Uint8Array]"]=Yr["[object Uint8ClampedArray]"]=Yr["[object Uint16Array]"]=Yr["[object Uint32Array]"]=!0,Yr["[object Error]"]=Yr[Hr]=Yr["[object WeakMap]"]=!1;var Vr=Math.ceil,qr=Math.max;var Zr,Jr=function(e,t,o){return o&&"number"!=typeof o&&function(e,t,o){if(!at(o))return!1;var r=typeof t;return!!("number"==r?Xt(o)&&Nt(t,o.length):"string"==r&&t in o)&&Ut(o[t],e)}(e,t,o)&&(t=o=void 0),e=mt(e),void 0===t?(t=e,e=0):t=mt(t),function(e,t,o,r){for(var l=-1,a=qr(Vr((t-e)/(o||1)),0),n=Array(a);a--;)n[r?a:++l]=e,e+=o;return n}(e,t,o=void 0===o?e<t?1:-1:mt(o),Zr)};const Kr=Jr,Qr=he(f({__name:"tabbar",props:{addon:{type:String,default:""}},setup(e,{expose:t}){const a=e;let n=a.addon;const i=M();!n&&i.addon&&(n=i.addon);const s=o({}),u=()=>{let e=function(e){return Xr(e,5)}(M().tabbarList);if(1==e.length)Object.assign(s,e[0]);else{let o=!1;for(let t=0;t<e.length;t++)if(e[t].key==n){Object.assign(s,e[t]),o=!0;break}if(!o){let o=0,r={};try{e&&e.forEach((e=>{"app"==e.info.type&&(o++,r=e)})),1==o&&Object.assign(s,r)}catch(t){}}}};u(),h((()=>a.addon),((e,t)=>{e&&t&&e!=t&&u()}),{immediate:!0}),a.addon||h((()=>M().tabbarList),((e,t)=>{e&&u()}),{deep:!0,immediate:!0});const d=r((()=>{let e=pe().params,t=[];for(let o in e)t.push(o+"="+e[o]);return"/"+ge()+(t.length>0?"?"+t.join("&"):"")})),c=e=>{if(-1!=e.indexOf("http")||-1!=e.indexOf("http"))window.location.href=e;else{let t=pe().params,o=[];for(let e in t)o.push(e+"="+t[e]);if(e=="/"+ge()&&!o.length)return;q({url:e,mode:"reLaunch"})}};return t({}),(e,t)=>{const o=y(w("u-tabbar-item"),$e),r=y(w("u-tabbar"),Ne),a=W;return s&&Object.keys(s).length?(_(),B(E,{key:0},[S(r,{value:D(d),zIndex:"9999",fixed:!0,placeholder:!0,safeAreaInsetBottom:!0,"inactive-color":s.value.textColor,"active-color":s.value.textHoverColor},{default:k((()=>[(_(!0),B(E,null,T(s.value.list,(e=>(_(),B(E,null,[1==s.value.type?(_(),C(o,{key:0,class:"py-[5rpx]",style:R({"background-color":s.value.backgroundColor}),text:e.text,icon:D(l)(D(d)==e.link.url?e.iconSelectPath:e.iconPath),name:e.link.url,onClick:t=>c(e.link.url)},null,8,["style","text","icon","name","onClick"])):O("v-if",!0),2==s.value.type?(_(),C(o,{key:1,class:"py-[5rpx]",style:R({"background-color":s.value.backgroundColor}),icon:D(l)(D(d)==e.link.url?e.iconSelectPath:e.iconPath),name:e.link.url,onClick:t=>c(e.link.url)},null,8,["style","icon","name","onClick"])):O("v-if",!0),3==s.value.type?(_(),C(o,{key:2,class:"py-[5rpx]",style:R({"background-color":s.value.backgroundColor}),text:e.text,name:e.link.url,onClick:t=>c(e.link.url)},null,8,["style","text","name","onClick"])):O("v-if",!0)],64)))),256))])),_:1},8,["value","inactive-color","active-color"]),S(a,{class:"tab-bar-placeholder"})],64)):O("v-if",!0)}}}),[["__scopeId","data-v-44aec94d"]]);
|
||
/**!
|
||
* Sortable 1.15.2
|
||
* @author RubaXa <trash@rubaxa.org>
|
||
* @author owenm <owen23355@gmail.com>
|
||
* @license MIT
|
||
*/
|
||
function el(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function tl(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?el(Object(o),!0).forEach((function(t){rl(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):el(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function ol(e){return(ol="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 rl(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function ll(){return ll=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},ll.apply(this,arguments)}function al(e,t){if(null==e)return{};var o,r,l=function(e,t){if(null==e)return{};var o,r,l={},a=Object.keys(e);for(r=0;r<a.length;r++)o=a[r],t.indexOf(o)>=0||(l[o]=e[o]);return l}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)o=a[r],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(l[o]=e[o])}return l}function nl(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var il=nl(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),sl=nl(/Edge/i),ul=nl(/firefox/i),dl=nl(/safari/i)&&!nl(/chrome/i)&&!nl(/android/i),cl=nl(/iP(ad|od|hone)/i),pl=nl(/chrome/i)&&nl(/android/i),gl={capture:!1,passive:!1};function ml(e,t,o){e.addEventListener(t,o,!il&&gl)}function fl(e,t,o){e.removeEventListener(t,o,!il&&gl)}function hl(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 vl(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function bl(e,t,o,r){if(e){o=o||document;do{if(null!=t&&(">"===t[0]?e.parentNode===o&&hl(e,t):hl(e,t))||r&&e===o)return e;if(e===o)break}while(e=vl(e))}return null}var xl,yl=/\s+/g;function wl(e,t,o){if(e&&t)if(e.classList)e.classList[o?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(yl," ").replace(" "+t+" "," ");e.className=(r+(o?" "+t:"")).replace(yl," ")}}function _l(e,t,o){var r=e&&e.style;if(r){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 r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=o+("string"==typeof o?"":"px")}}function Cl(e,t){var o="";if("string"==typeof e)o=e;else do{var r=_l(e,"transform");r&&"none"!==r&&(o=r+" "+o)}while(!t&&(e=e.parentNode));var l=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return l&&new l(o)}function kl(e,t,o){if(e){var r=e.getElementsByTagName(t),l=0,a=r.length;if(o)for(;l<a;l++)o(r[l],l);return r}return[]}function Sl(){var e=document.scrollingElement;return e||document.documentElement}function Rl(e,t,o,r,l){if(e.getBoundingClientRect||e===window){var a,n,i,s,u,d,c;if(e!==window&&e.parentNode&&e!==Sl()?(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&&(l=l||e.parentNode,!il))do{if(l&&l.getBoundingClientRect&&("none"!==_l(l,"transform")||o&&"static"!==_l(l,"position"))){var p=l.getBoundingClientRect();n-=p.top+parseInt(_l(l,"border-top-width")),i-=p.left+parseInt(_l(l,"border-left-width")),s=n+a.height,u=i+a.width;break}}while(l=l.parentNode);if(r&&e!==window){var g=Cl(l||e),m=g&&g.a,f=g&&g.d;g&&(s=(n/=f)+(d/=f),u=(i/=m)+(c/=m))}return{top:n,left:i,bottom:s,right:u,width:c,height:d}}}function Dl(e,t,o){for(var r=Al(e,!0),l=Rl(e)[t];r;){var a=Rl(r)[o];if(!("top"===o||"left"===o?l>=a:l<=a))return r;if(r===Sl())break;r=Al(r,!1)}return!1}function Bl(e,t,o,r){for(var l=0,a=0,n=e.children;a<n.length;){if("none"!==n[a].style.display&&n[a]!==Wa.ghost&&(r||n[a]!==Wa.dragged)&&bl(n[a],o.draggable,e,!1)){if(l===t)return n[a];l++}a++}return null}function El(e,t){for(var o=e.lastElementChild;o&&(o===Wa.ghost||"none"===_l(o,"display")||t&&!hl(o,t));)o=o.previousElementSibling;return o||null}function Tl(e,t){var o=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===Wa.clone||t&&!hl(e,t)||o++;return o}function jl(e){var t=0,o=0,r=Sl();if(e)do{var l=Cl(e),a=l.a,n=l.d;t+=e.scrollLeft*a,o+=e.scrollTop*n}while(e!==r&&(e=e.parentNode));return[t,o]}function Al(e,t){if(!e||!e.getBoundingClientRect)return Sl();var o=e,r=!1;do{if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var l=_l(o);if(o.clientWidth<o.scrollWidth&&("auto"==l.overflowX||"scroll"==l.overflowX)||o.clientHeight<o.scrollHeight&&("auto"==l.overflowY||"scroll"==l.overflowY)){if(!o.getBoundingClientRect||o===document.body)return Sl();if(r||t)return o;r=!0}}}while(o=o.parentNode);return Sl()}function Il(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 Ol(e,t){return function(){if(!xl){var o=arguments;1===o.length?e.call(this,o[0]):e.apply(this,o),xl=setTimeout((function(){xl=void 0}),t)}}}function zl(e,t,o){e.scrollLeft+=t,e.scrollTop+=o}function Wl(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 Fl(e,t,o){var r={};return Array.from(e.children).forEach((function(l){var a,n,i,s;if(bl(l,t.draggable,e,!1)&&!l.animated&&l!==o){var u=Rl(l);r.left=Math.min(null!==(a=r.left)&&void 0!==a?a:1/0,u.left),r.top=Math.min(null!==(n=r.top)&&void 0!==n?n:1/0,u.top),r.right=Math.max(null!==(i=r.right)&&void 0!==i?i:-1/0,u.right),r.bottom=Math.max(null!==(s=r.bottom)&&void 0!==s?s:-1/0,u.bottom)}})),r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}var $l="Sortable"+(new Date).getTime();function Nl(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(e){if("none"!==_l(e,"display")&&e!==Wa.ghost){t.push({target:e,rect:Rl(e)});var o=tl({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=Cl(e,!0);r&&(o.top-=r.f,o.left-=r.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 r in t)if(t.hasOwnProperty(r)&&t[r]===e[o][r])return Number(o);return-1}(t,{target:e}),1)},animateAll:function(o){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof o&&o());var l=!1,a=0;t.forEach((function(e){var t=0,o=e.target,n=o.fromRect,i=Rl(o),s=o.prevFromRect,u=o.prevToRect,d=e.rect,c=Cl(o,!0);c&&(i.top-=c.f,i.left-=c.e),o.toRect=i,o.thisAnimationDuration&&Il(s,i)&&!Il(n,i)&&(d.top-i.top)/(d.left-i.left)==(n.top-i.top)/(n.left-i.left)&&(t=function(e,t,o,r){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))*r.animation}(d,s,u,r.options)),Il(i,n)||(o.prevFromRect=n,o.prevToRect=i,t||(t=r.options.animation),r.animate(o,d,i,t)),t&&(l=!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),l?e=setTimeout((function(){"function"==typeof o&&o()}),a):"function"==typeof o&&o(),t=[]},animate:function(e,t,o,r){if(r){_l(e,"transition",""),_l(e,"transform","");var l=Cl(this.el),a=l&&l.a,n=l&&l.d,i=(t.left-o.left)/(a||1),s=(t.top-o.top)/(n||1);e.animatingX=!!i,e.animatingY=!!s,_l(e,"transform","translate3d("+i+"px,"+s+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),_l(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),_l(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){_l(e,"transition",""),_l(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}}var Pl=[],Ul={initializeByDefault:!0},Ml={mount:function(e){for(var t in Ul)Ul.hasOwnProperty(t)&&!(t in e)&&(e[t]=Ul[t]);Pl.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),Pl.push(e)},pluginEvent:function(e,t,o){var r=this;this.eventCanceled=!1,o.cancel=function(){r.eventCanceled=!0};var l=e+"Global";Pl.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][l]&&t[r.pluginName][l](tl({sortable:t},o)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](tl({sortable:t},o)))}))},initializePlugins:function(e,t,o,r){for(var l in Pl.forEach((function(r){var l=r.pluginName;if(e.options[l]||r.initializeByDefault){var a=new r(e,t,e.options);a.sortable=e,a.options=e.options,e[l]=a,ll(o,a.defaults)}})),e.options)if(e.options.hasOwnProperty(l)){var a=this.modifyOption(e,l,e.options[l]);void 0!==a&&(e.options[l]=a)}},getEventProperties:function(e,t){var o={};return Pl.forEach((function(r){"function"==typeof r.eventProperties&&ll(o,r.eventProperties.call(t[r.pluginName],e))})),o},modifyOption:function(e,t,o){var r;return Pl.forEach((function(l){e[l.pluginName]&&l.optionListeners&&"function"==typeof l.optionListeners[t]&&(r=l.optionListeners[t].call(e[l.pluginName],o))})),r}};var Hl=["evt"],Gl=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=o.evt,l=al(o,Hl);Ml.pluginEvent.bind(Wa)(e,t,tl({dragEl:Yl,parentEl:Xl,ghostEl:Vl,rootEl:ql,nextEl:Zl,lastDownEl:Jl,cloneEl:Kl,cloneHidden:Ql,dragStarted:pa,putSortable:aa,activeSortable:Wa.active,originalEvent:r,oldIndex:ea,oldDraggableIndex:oa,newIndex:ta,newDraggableIndex:ra,hideGhostForTarget:Aa,unhideGhostForTarget:Ia,cloneNowHidden:function(){Ql=!0},cloneNowShown:function(){Ql=!1},dispatchSortableEvent:function(e){Ll({sortable:t,name:e,originalEvent:r})}},l))};function Ll(e){!function(e){var t=e.sortable,o=e.rootEl,r=e.name,l=e.targetEl,a=e.cloneEl,n=e.toEl,i=e.fromEl,s=e.oldIndex,u=e.newIndex,d=e.oldDraggableIndex,c=e.newDraggableIndex,p=e.originalEvent,g=e.putSortable,m=e.extraEventProperties;if(t=t||o&&o[$l]){var f,h=t.options,v="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||il||sl?(f=document.createEvent("Event")).initEvent(r,!0,!0):f=new CustomEvent(r,{bubbles:!0,cancelable:!0}),f.to=n||o,f.from=i||o,f.item=l||o,f.clone=a,f.oldIndex=s,f.newIndex=u,f.oldDraggableIndex=d,f.newDraggableIndex=c,f.originalEvent=p,f.pullMode=g?g.lastPutMode:void 0;var b=tl(tl({},m),Ml.getEventProperties(r,t));for(var x in b)f[x]=b[x];o&&o.dispatchEvent(f),h[v]&&h[v].call(t,f)}}(tl({putSortable:aa,cloneEl:Kl,targetEl:Yl,rootEl:ql,oldIndex:ea,oldDraggableIndex:oa,newIndex:ta,newDraggableIndex:ra},e))}var Yl,Xl,Vl,ql,Zl,Jl,Kl,Ql,ea,ta,oa,ra,la,aa,na,ia,sa,ua,da,ca,pa,ga,ma,fa,ha,va=!1,ba=!1,xa=[],ya=!1,wa=!1,_a=[],Ca=!1,ka=[],Sa="undefined"!=typeof document,Ra=cl,Da=sl||il?"cssFloat":"float",Ba=Sa&&!pl&&!cl&&"draggable"in document.createElement("div"),Ea=function(){if(Sa){if(il)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Ta=function(e,t){var o=_l(e),r=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),l=Bl(e,0,t),a=Bl(e,1,t),n=l&&_l(l),i=a&&_l(a),s=n&&parseInt(n.marginLeft)+parseInt(n.marginRight)+Rl(l).width,u=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+Rl(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(l&&n.float&&"none"!==n.float){var d="left"===n.float?"left":"right";return!a||"both"!==i.clear&&i.clear!==d?"horizontal":"vertical"}return l&&("block"===n.display||"flex"===n.display||"table"===n.display||"grid"===n.display||s>=r&&"none"===o[Da]||a&&"none"===o[Da]&&s+u>r)?"vertical":"horizontal"},ja=function(e){function t(e,o){return function(r,l,a,n){var i=r.options.group.name&&l.options.group.name&&r.options.group.name===l.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(r,l,a,n),o)(r,l,a,n);var s=(o?r:l).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var o={},r=e.group;r&&"object"==ol(r)||(r={name:r}),o.name=r.name,o.checkPull=t(r.pull,!0),o.checkPut=t(r.put),o.revertClone=r.revertClone,e.group=o},Aa=function(){!Ea&&Vl&&_l(Vl,"display","none")},Ia=function(){!Ea&&Vl&&_l(Vl,"display","")};Sa&&!pl&&document.addEventListener("click",(function(e){if(ba)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),ba=!1,!1}),!0);var Oa=function(e){if(Yl){e=e.touches?e.touches[0]:e;var t=(l=e.clientX,a=e.clientY,xa.some((function(e){var t=e[$l].options.emptyInsertThreshold;if(t&&!El(e)){var o=Rl(e),r=l>=o.left-t&&l<=o.right+t,i=a>=o.top-t&&a<=o.bottom+t;return r&&i?n=e:void 0}})),n);if(t){var o={};for(var r in e)e.hasOwnProperty(r)&&(o[r]=e[r]);o.target=o.rootEl=t,o.preventDefault=void 0,o.stopPropagation=void 0,t[$l]._onDragOver(o)}}var l,a,n},za=function(e){Yl&&Yl.parentNode[$l]._isOutsideThisEl(e.target)};function Wa(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=ll({},t),e[$l]=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 Ta(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!==Wa.supportPointer&&"PointerEvent"in window&&!dl,emptyInsertThreshold:5};for(var r in Ml.initializePlugins(this,e,o),o)!(r in t)&&(t[r]=o[r]);for(var l in ja(t),this)"_"===l.charAt(0)&&"function"==typeof this[l]&&(this[l]=this[l].bind(this));this.nativeDraggable=!t.forceFallback&&Ba,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?ml(e,"pointerdown",this._onTapStart):(ml(e,"mousedown",this._onTapStart),ml(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(ml(e,"dragover",this),ml(e,"dragenter",this)),xa.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),ll(this,Nl())}function Fa(e,t,o,r,l,a,n,i){var s,u,d=e[$l],c=d.options.onMove;return!window.CustomEvent||il||sl?(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=r,s.related=l||t,s.relatedRect=a||Rl(t),s.willInsertAfter=i,s.originalEvent=n,e.dispatchEvent(s),c&&(u=c.call(d,s,n)),u}function $a(e){e.draggable=!1}function Na(){Ca=!1}function Pa(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,o=t.length,r=0;o--;)r+=t.charCodeAt(o);return r.toString(36)}function Ua(e){return setTimeout(e,0)}function Ma(e){return clearTimeout(e)}Wa.prototype={constructor:Wa,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(ga=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,Yl):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,o=this.el,r=this.options,l=r.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=r.filter;if(function(e){ka.length=0;var t=e.getElementsByTagName("input"),o=t.length;for(;o--;){var r=t[o];r.checked&&ka.push(r)}}(o),!Yl&&!(/mousedown|pointerdown/.test(a)&&0!==e.button||r.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!dl||!i||"SELECT"!==i.tagName.toUpperCase())&&!((i=bl(i,r.draggable,o,!1))&&i.animated||Jl===i)){if(ea=Tl(i),oa=Tl(i,r.draggable),"function"==typeof u){if(u.call(this,e,i,this))return Ll({sortable:t,rootEl:s,name:"filter",targetEl:i,toEl:o,fromEl:o}),Gl("filter",t,{evt:e}),void(l&&e.cancelable&&e.preventDefault())}else if(u&&(u=u.split(",").some((function(r){if(r=bl(s,r.trim(),o,!1))return Ll({sortable:t,rootEl:r,name:"filter",targetEl:i,fromEl:o,toEl:o}),Gl("filter",t,{evt:e}),!0}))))return void(l&&e.cancelable&&e.preventDefault());r.handle&&!bl(s,r.handle,o,!1)||this._prepareDragStart(e,n,i)}}},_prepareDragStart:function(e,t,o){var r,l=this,a=l.el,n=l.options,i=a.ownerDocument;if(o&&!Yl&&o.parentNode===a){var s=Rl(o);if(ql=a,Xl=(Yl=o).parentNode,Zl=Yl.nextSibling,Jl=o,la=n.group,Wa.dragged=Yl,na={target:Yl,clientX:(t||e).clientX,clientY:(t||e).clientY},da=na.clientX-s.left,ca=na.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Yl.style["will-change"]="all",r=function(){Gl("delayEnded",l,{evt:e}),Wa.eventCanceled?l._onDrop():(l._disableDelayedDragEvents(),!ul&&l.nativeDraggable&&(Yl.draggable=!0),l._triggerDragStart(e,t),Ll({sortable:l,name:"choose",originalEvent:e}),wl(Yl,n.chosenClass,!0))},n.ignore.split(",").forEach((function(e){kl(Yl,e.trim(),$a)})),ml(i,"dragover",Oa),ml(i,"mousemove",Oa),ml(i,"touchmove",Oa),ml(i,"mouseup",l._onDrop),ml(i,"touchend",l._onDrop),ml(i,"touchcancel",l._onDrop),ul&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Yl.draggable=!0),Gl("delayStart",this,{evt:e}),!n.delay||n.delayOnTouchOnly&&!t||this.nativeDraggable&&(sl||il))r();else{if(Wa.eventCanceled)return void this._onDrop();ml(i,"mouseup",l._disableDelayedDrag),ml(i,"touchend",l._disableDelayedDrag),ml(i,"touchcancel",l._disableDelayedDrag),ml(i,"mousemove",l._delayedDragTouchMoveHandler),ml(i,"touchmove",l._delayedDragTouchMoveHandler),n.supportPointer&&ml(i,"pointermove",l._delayedDragTouchMoveHandler),l._dragStartTimer=setTimeout(r,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(){Yl&&$a(Yl),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;fl(e,"mouseup",this._disableDelayedDrag),fl(e,"touchend",this._disableDelayedDrag),fl(e,"touchcancel",this._disableDelayedDrag),fl(e,"mousemove",this._delayedDragTouchMoveHandler),fl(e,"touchmove",this._delayedDragTouchMoveHandler),fl(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?ml(document,"pointermove",this._onTouchMove):ml(document,t?"touchmove":"mousemove",this._onTouchMove):(ml(Yl,"dragend",this),ml(ql,"dragstart",this._onDragStart));try{document.selection?Ua((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(o){}},_dragStarted:function(e,t){if(va=!1,ql&&Yl){Gl("dragStarted",this,{evt:t}),this.nativeDraggable&&ml(document,"dragover",za);var o=this.options;!e&&wl(Yl,o.dragClass,!1),wl(Yl,o.ghostClass,!0),Wa.active=this,e&&this._appendGhost(),Ll({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(ia){this._lastX=ia.clientX,this._lastY=ia.clientY,Aa();for(var e=document.elementFromPoint(ia.clientX,ia.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(ia.clientX,ia.clientY))!==t;)t=e;if(Yl.parentNode[$l]._isOutsideThisEl(e),t)do{if(t[$l]){if(t[$l]._onDragOver({clientX:ia.clientX,clientY:ia.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Ia()}},_onTouchMove:function(e){if(na){var t=this.options,o=t.fallbackTolerance,r=t.fallbackOffset,l=e.touches?e.touches[0]:e,a=Vl&&Cl(Vl,!0),n=Vl&&a&&a.a,i=Vl&&a&&a.d,s=Ra&&ha&&jl(ha),u=(l.clientX-na.clientX+r.x)/(n||1)+(s?s[0]-_a[0]:0)/(n||1),d=(l.clientY-na.clientY+r.y)/(i||1)+(s?s[1]-_a[1]:0)/(i||1);if(!Wa.active&&!va){if(o&&Math.max(Math.abs(l.clientX-this._lastX),Math.abs(l.clientY-this._lastY))<o)return;this._onDragStart(e,!0)}if(Vl){a?(a.e+=u-(sa||0),a.f+=d-(ua||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,")");_l(Vl,"webkitTransform",c),_l(Vl,"mozTransform",c),_l(Vl,"msTransform",c),_l(Vl,"transform",c),sa=u,ua=d,ia=l}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!Vl){var e=this.options.fallbackOnBody?document.body:ql,t=Rl(Yl,!0,Ra,!0,e),o=this.options;if(Ra){for(ha=e;"static"===_l(ha,"position")&&"none"===_l(ha,"transform")&&ha!==document;)ha=ha.parentNode;ha!==document.body&&ha!==document.documentElement?(ha===document&&(ha=Sl()),t.top+=ha.scrollTop,t.left+=ha.scrollLeft):ha=Sl(),_a=jl(ha)}wl(Vl=Yl.cloneNode(!0),o.ghostClass,!1),wl(Vl,o.fallbackClass,!0),wl(Vl,o.dragClass,!0),_l(Vl,"transition",""),_l(Vl,"transform",""),_l(Vl,"box-sizing","border-box"),_l(Vl,"margin",0),_l(Vl,"top",t.top),_l(Vl,"left",t.left),_l(Vl,"width",t.width),_l(Vl,"height",t.height),_l(Vl,"opacity","0.8"),_l(Vl,"position",Ra?"absolute":"fixed"),_l(Vl,"zIndex","100000"),_l(Vl,"pointerEvents","none"),Wa.ghost=Vl,e.appendChild(Vl),_l(Vl,"transform-origin",da/parseInt(Vl.style.width)*100+"% "+ca/parseInt(Vl.style.height)*100+"%")}},_onDragStart:function(e,t){var o=this,r=e.dataTransfer,l=o.options;Gl("dragStart",this,{evt:e}),Wa.eventCanceled?this._onDrop():(Gl("setupClone",this),Wa.eventCanceled||((Kl=Wl(Yl)).removeAttribute("id"),Kl.draggable=!1,Kl.style["will-change"]="",this._hideClone(),wl(Kl,this.options.chosenClass,!1),Wa.clone=Kl),o.cloneId=Ua((function(){Gl("clone",o),Wa.eventCanceled||(o.options.removeCloneOnHide||ql.insertBefore(Kl,Yl),o._hideClone(),Ll({sortable:o,name:"clone"}))})),!t&&wl(Yl,l.dragClass,!0),t?(ba=!0,o._loopId=setInterval(o._emulateDragOver,50)):(fl(document,"mouseup",o._onDrop),fl(document,"touchend",o._onDrop),fl(document,"touchcancel",o._onDrop),r&&(r.effectAllowed="move",l.setData&&l.setData.call(o,r,Yl)),ml(document,"drop",o),_l(Yl,"transform","translateZ(0)")),va=!0,o._dragStartId=Ua(o._dragStarted.bind(o,t,e)),ml(document,"selectstart",o),pa=!0,dl&&_l(document.body,"user-select","none"))},_onDragOver:function(e){var t,o,r,l,a=this.el,n=e.target,i=this.options,s=i.group,u=Wa.active,d=la===s,c=i.sort,p=aa||u,g=this,m=!1;if(!Ca){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),n=bl(n,i.draggable,a,!0),E("dragOver"),Wa.eventCanceled)return m;if(Yl.contains(e.target)||n.animated&&n.animatingX&&n.animatingY||g._ignoreWhileAnimating===n)return j(!1);if(ba=!1,u&&!i.disabled&&(d?c||(r=Xl!==ql):aa===this||(this.lastPutMode=la.checkPull(this,u,Yl,e))&&s.checkPut(this,u,Yl,e))){if(l="vertical"===this._getDirection(e,n),t=Rl(Yl),E("dragOverValid"),Wa.eventCanceled)return m;if(r)return Xl=ql,T(),this._hideClone(),E("revert"),Wa.eventCanceled||(Zl?ql.insertBefore(Yl,Zl):ql.appendChild(Yl)),j(!0);var f=El(a,i.draggable);if(!f||function(e,t,o){var r=Rl(El(o.el,o.options.draggable)),l=Fl(o.el,o.options,Vl),a=10;return t?e.clientX>l.right+a||e.clientY>r.bottom&&e.clientX>r.left:e.clientY>l.bottom+a||e.clientX>r.right&&e.clientY>r.top}(e,l,this)&&!f.animated){if(f===Yl)return j(!1);if(f&&a===e.target&&(n=f),n&&(o=Rl(n)),!1!==Fa(ql,a,Yl,t,n,o,e,!!n))return T(),f&&f.nextSibling?a.insertBefore(Yl,f.nextSibling):a.appendChild(Yl),Xl=a,A(),j(!0)}else if(f&&function(e,t,o){var r=Rl(Bl(o.el,0,o.options,!0)),l=Fl(o.el,o.options,Vl),a=10;return t?e.clientX<l.left-a||e.clientY<r.top&&e.clientX<r.right:e.clientY<l.top-a||e.clientY<r.bottom&&e.clientX<r.left}(e,l,this)){var h=Bl(a,0,i,!0);if(h===Yl)return j(!1);if(o=Rl(n=h),!1!==Fa(ql,a,Yl,t,n,o,e,!1))return T(),a.insertBefore(Yl,h),Xl=a,A(),j(!0)}else if(n.parentNode===a){o=Rl(n);var v,b,x,y=Yl.parentNode!==a,w=!function(e,t,o){var r=o?e.left:e.top,l=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 r===n||l===i||r+a/2===n+s/2}(Yl.animated&&Yl.toRect||t,n.animated&&n.toRect||o,l),_=l?"top":"left",C=Dl(n,"top","top")||Dl(Yl,"top","top"),k=C?C.scrollTop:void 0;if(ga!==n&&(b=o[_],ya=!1,wa=!w&&i.invertSwap||y),v=function(e,t,o,r,l,a,n,i){var s=r?e.clientY:e.clientX,u=r?o.height:o.width,d=r?o.top:o.left,c=r?o.bottom:o.right,p=!1;if(!n)if(i&&fa<u*l){if(!ya&&(1===ma?s>d+u*a/2:s<c-u*a/2)&&(ya=!0),ya)p=!0;else if(1===ma?s<d+fa:s>c-fa)return-ma}else if(s>d+u*(1-l)/2&&s<c-u*(1-l)/2)return function(e){return Tl(Yl)<Tl(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,l,w?1:i.swapThreshold,null==i.invertedSwapThreshold?i.swapThreshold:i.invertedSwapThreshold,wa,ga===n),0!==v){var S=Tl(Yl);do{S-=v,x=Xl.children[S]}while(x&&("none"===_l(x,"display")||x===Vl))}if(0===v||x===n)return j(!1);ga=n,ma=v;var R=n.nextElementSibling,D=!1,B=Fa(ql,a,Yl,t,n,o,e,D=1===v);if(!1!==B)return 1!==B&&-1!==B||(D=1===B),Ca=!0,setTimeout(Na,30),T(),D&&!R?a.appendChild(Yl):n.parentNode.insertBefore(Yl,D?R:n),C&&zl(C,0,k-C.scrollTop),Xl=Yl.parentNode,void 0===b||wa||(fa=Math.abs(b-Rl(n)[_])),A(),j(!0)}if(a.contains(Yl))return j(!1)}return!1}function E(i,s){Gl(i,g,tl({evt:e,isOwner:d,axis:l?"vertical":"horizontal",revert:r,dragRect:t,targetRect:o,canSort:c,fromSortable:p,target:n,completed:j,onMove:function(o,r){return Fa(ql,a,Yl,t,o,Rl(o),e,r)},changed:A},s))}function T(){E("dragOverAnimationCapture"),g.captureAnimationState(),g!==p&&p.captureAnimationState()}function j(t){return E("dragOverCompleted",{insertion:t}),t&&(d?u._hideClone():u._showClone(g),g!==p&&(wl(Yl,aa?aa.options.ghostClass:u.options.ghostClass,!1),wl(Yl,i.ghostClass,!0)),aa!==g&&g!==Wa.active?aa=g:g===Wa.active&&aa&&(aa=null),p===g&&(g._ignoreWhileAnimating=n),g.animateAll((function(){E("dragOverAnimationComplete"),g._ignoreWhileAnimating=null})),g!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(n===Yl&&!Yl.animated||n===a&&!n.animated)&&(ga=null),i.dragoverBubble||e.rootEl||n===document||(Yl.parentNode[$l]._isOutsideThisEl(e.target),!t&&Oa(e)),!i.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function A(){ta=Tl(Yl),ra=Tl(Yl,i.draggable),Ll({sortable:g,name:"change",toEl:a,newIndex:ta,newDraggableIndex:ra,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){fl(document,"mousemove",this._onTouchMove),fl(document,"touchmove",this._onTouchMove),fl(document,"pointermove",this._onTouchMove),fl(document,"dragover",Oa),fl(document,"mousemove",Oa),fl(document,"touchmove",Oa)},_offUpEvents:function(){var e=this.el.ownerDocument;fl(e,"mouseup",this._onDrop),fl(e,"touchend",this._onDrop),fl(e,"pointerup",this._onDrop),fl(e,"touchcancel",this._onDrop),fl(document,"selectstart",this)},_onDrop:function(e){var t=this.el,o=this.options;ta=Tl(Yl),ra=Tl(Yl,o.draggable),Gl("drop",this,{evt:e}),Xl=Yl&&Yl.parentNode,ta=Tl(Yl),ra=Tl(Yl,o.draggable),Wa.eventCanceled||(va=!1,wa=!1,ya=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ma(this.cloneId),Ma(this._dragStartId),this.nativeDraggable&&(fl(document,"drop",this),fl(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),dl&&_l(document.body,"user-select",""),_l(Yl,"transform",""),e&&(pa&&(e.cancelable&&e.preventDefault(),!o.dropBubble&&e.stopPropagation()),Vl&&Vl.parentNode&&Vl.parentNode.removeChild(Vl),(ql===Xl||aa&&"clone"!==aa.lastPutMode)&&Kl&&Kl.parentNode&&Kl.parentNode.removeChild(Kl),Yl&&(this.nativeDraggable&&fl(Yl,"dragend",this),$a(Yl),Yl.style["will-change"]="",pa&&!va&&wl(Yl,aa?aa.options.ghostClass:this.options.ghostClass,!1),wl(Yl,this.options.chosenClass,!1),Ll({sortable:this,name:"unchoose",toEl:Xl,newIndex:null,newDraggableIndex:null,originalEvent:e}),ql!==Xl?(ta>=0&&(Ll({rootEl:Xl,name:"add",toEl:Xl,fromEl:ql,originalEvent:e}),Ll({sortable:this,name:"remove",toEl:Xl,originalEvent:e}),Ll({rootEl:Xl,name:"sort",toEl:Xl,fromEl:ql,originalEvent:e}),Ll({sortable:this,name:"sort",toEl:Xl,originalEvent:e})),aa&&aa.save()):ta!==ea&&ta>=0&&(Ll({sortable:this,name:"update",toEl:Xl,originalEvent:e}),Ll({sortable:this,name:"sort",toEl:Xl,originalEvent:e})),Wa.active&&(null!=ta&&-1!==ta||(ta=ea,ra=oa),Ll({sortable:this,name:"end",toEl:Xl,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){Gl("nulling",this),ql=Yl=Xl=Vl=Zl=Kl=Jl=Ql=na=ia=pa=ta=ra=ea=oa=ga=ma=aa=la=Wa.dragged=Wa.ghost=Wa.clone=Wa.active=null,ka.forEach((function(e){e.checked=!0})),ka.length=sa=ua=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Yl&&(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,r=0,l=o.length,a=this.options;r<l;r++)bl(e=o[r],a.draggable,this.el,!1)&&t.push(e.getAttribute(a.dataIdAttr)||Pa(e));return t},sort:function(e,t){var o={},r=this.el;this.toArray().forEach((function(e,t){var l=r.children[t];bl(l,this.options.draggable,r,!1)&&(o[e]=l)}),this),t&&this.captureAnimationState(),e.forEach((function(e){o[e]&&(r.removeChild(o[e]),r.appendChild(o[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return bl(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var o=this.options;if(void 0===t)return o[e];var r=Ml.modifyOption(this,e,t);o[e]=void 0!==r?r:t,"group"===e&&ja(o)},destroy:function(){Gl("destroy",this);var e=this.el;e[$l]=null,fl(e,"mousedown",this._onTapStart),fl(e,"touchstart",this._onTapStart),fl(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(fl(e,"dragover",this),fl(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),xa.splice(xa.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Ql){if(Gl("hideClone",this),Wa.eventCanceled)return;_l(Kl,"display","none"),this.options.removeCloneOnHide&&Kl.parentNode&&Kl.parentNode.removeChild(Kl),Ql=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(Ql){if(Gl("showClone",this),Wa.eventCanceled)return;Yl.parentNode!=ql||this.options.group.revertClone?Zl?ql.insertBefore(Kl,Zl):ql.appendChild(Kl):ql.insertBefore(Kl,Yl),this.options.group.revertClone&&this.animate(Yl,Kl),_l(Kl,"display",""),Ql=!1}}else this._hideClone()}},Sa&&ml(document,"touchmove",(function(e){(Wa.active||va)&&e.cancelable&&e.preventDefault()})),Wa.utils={on:ml,off:fl,css:_l,find:kl,is:function(e,t){return!!bl(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:Ol,closest:bl,toggleClass:wl,clone:Wl,index:Tl,nextTick:Ua,cancelNextTick:Ma,detectDirection:Ta,getChild:Bl},Wa.get=function(e){return e[$l]},Wa.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&&(Wa.utils=tl(tl({},Wa.utils),e.utils)),Ml.mount(e)}))},Wa.create=function(e,t){return new Wa(e,t)},Wa.version="1.15.2";var Ha,Ga,La,Ya,Xa,Va,qa=[],Za=!1;function Ja(){qa.forEach((function(e){clearInterval(e.pid)})),qa=[]}function Ka(){clearInterval(Va)}var Qa=Ol((function(e,t,o,r){if(t.scroll){var l,a=(e.touches?e.touches[0]:e).clientX,n=(e.touches?e.touches[0]:e).clientY,i=t.scrollSensitivity,s=t.scrollSpeed,u=Sl(),d=!1;Ga!==o&&(Ga=o,Ja(),Ha=t.scroll,l=t.scrollFn,!0===Ha&&(Ha=Al(o,!0)));var c=0,p=Ha;do{var g=p,m=Rl(g),f=m.top,h=m.bottom,v=m.left,b=m.right,x=m.width,y=m.height,w=void 0,_=void 0,C=g.scrollWidth,k=g.scrollHeight,S=_l(g),R=g.scrollLeft,D=g.scrollTop;g===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),E=_&&(Math.abs(h-n)<=i&&D+y<k)-(Math.abs(f-n)<=i&&!!D);if(!qa[c])for(var T=0;T<=c;T++)qa[T]||(qa[T]={});qa[c].vx==B&&qa[c].vy==E&&qa[c].el===g||(qa[c].el=g,qa[c].vx=B,qa[c].vy=E,clearInterval(qa[c].pid),0==B&&0==E||(d=!0,qa[c].pid=setInterval(function(){r&&0===this.layer&&Wa.active._onTouchMove(Xa);var t=qa[this.layer].vy?qa[this.layer].vy*s:0,o=qa[this.layer].vx?qa[this.layer].vx*s:0;"function"==typeof l&&"continue"!==l.call(Wa.dragged.parentNode[$l],o,t,e,Xa,qa[this.layer].el)||zl(qa[this.layer].el,o,t)}.bind({layer:c}),24))),c++}while(t.bubbleScroll&&p!==u&&(p=Al(p,!1)));Za=d}}),30),en=function(e){var t=e.originalEvent,o=e.putSortable,r=e.dragEl,l=e.activeSortable,a=e.dispatchSortableEvent,n=e.hideGhostForTarget,i=e.unhideGhostForTarget;if(t){var s=o||l;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:r,putSortable:o}))}};function tn(){}function on(){}tn.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 r=Bl(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),o&&o.animateAll()},drop:en},ll(tn,{pluginName:"revertOnSpill"}),on.prototype={onSpill:function(e){var t=e.dragEl,o=e.putSortable||this.sortable;o.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),o.animateAll()},drop:en},ll(on,{pluginName:"removeOnSpill"}),Wa.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?ml(document,"dragover",this._handleAutoScroll):this.options.supportPointer?ml(document,"pointermove",this._handleFallbackAutoScroll):t.touches?ml(document,"touchmove",this._handleFallbackAutoScroll):ml(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?fl(document,"dragover",this._handleAutoScroll):(fl(document,"pointermove",this._handleFallbackAutoScroll),fl(document,"touchmove",this._handleFallbackAutoScroll),fl(document,"mousemove",this._handleFallbackAutoScroll)),Ka(),Ja(),clearTimeout(xl),xl=void 0},nulling:function(){Xa=Ga=Ha=Za=Va=La=Ya=null,qa.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var o=this,r=(e.touches?e.touches[0]:e).clientX,l=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(r,l);if(Xa=e,t||this.options.forceAutoScrollFallback||sl||il||dl){Qa(e,this.options,a,t);var n=Al(a,!0);!Za||Va&&r===La&&l===Ya||(Va&&Ka(),Va=setInterval((function(){var a=Al(document.elementFromPoint(r,l),!0);a!==n&&(n=a,Ja()),Qa(e,o.options,a,t)}),10),La=r,Ya=l)}else{if(!this.options.bubbleScroll||Al(a,!0)===Sl())return void Ja();Qa(e,this.options,Al(a,!1),!1)}}},ll(e,{pluginName:"scroll",initializeByDefault:!0})}),Wa.mount(on,tn);const rn=he(f({__name:"index",props:["data","pullDownRefreshCount"],setup(o,{expose:l}){const a=o,i=e(null),s=t(),u=function(o={}){let l="";const a=e({}),i=t(),s=e(["fixed","top_fixed","right_fixed","bottom_fixed","left_fixed"]),u=r((()=>"decorate"==i.mode?i:o.data)),c=e(!1);return n((()=>{c.value=!1})),d((()=>{c.value=!0})),{scrollV:e().value,data:u.value,componentsScrollBool:a.value,placeholderEvent:()=>{},refresh:()=>{b((()=>{var e;null==(e=o.getFormRef().topTabbarRef)||e.refresh()}))},isShowPlaceHolder:(e,t)=>{if("decorate"==i.mode){let o=document.getElementById("componentList");if(o&&o.children.length&&o.children[e]){let r=o.children[e].offsetHeight,l=0;if(t.margin.top<0&&(l=2*t.margin.top*-1,l>r))return!1}return!0}return!1},getComponentClass:(e,t)=>{let o={relative:!0,selected:i.currentIndex==e,decorate:"decorate"==i.mode};return o["top-fixed-"+i.topFixedStatus]=!0,t.position&&-1!=s.value.indexOf(t.position)?o["ignore-draggable-element"]=!0:o["draggable-element"]=!0,o},onPageScroll:()=>{m((e=>{if(l&&!c.value)for(let t in l)e.scrollTop<=0?a.value[t]=-1:e.scrollTop>l[t]?a.value[t]=1:a.value[t]=2}))},onMounted:()=>{v((()=>{if("decorate"==i.mode){var e=document.getElementById("componentList");const t=Wa.create(e,{draggable:".draggable-element",animation:200,onEnd:e=>{let o=i.value[e.oldIndex];i.value.splice(e.oldIndex,1),i.value.splice(e.newIndex,0,o),b((()=>{t.sort(Kr(i.value.length).map((e=>e.toString()))),i.postMessage(e.newIndex,i.value[e.newIndex])}))}})}b((()=>{setTimeout((()=>{if(u.value.global&&u.value.global.topStatusBar&&"style-4"==u.value.global.topStatusBar.style&&me(),l=uni.getStorageSync("componentsScrollValGroup"),l)for(let e in l)a.value[e]=-1}),500)}))}))}}}({...a,getFormRef:()=>({topTabbarRef:i.value})}),c=e(u.data);return u.onMounted(),u.onPageScroll(),l({refresh:u.refresh}),(e,t)=>{const o=W,r=y(w("diy-graphic-nav"),Ce),l=y(w("diy-horz-blank"),ke),n=y(w("diy-horz-line"),Se),d=y(w("diy-hot-area"),Re),p=y(w("diy-image-ads"),De),g=y(w("diy-member-info"),Be),m=y(w("diy-member-level"),Ee),f=y(w("diy-notice"),Te),h=y(w("diy-rubik-cube"),je),v=y(w("diy-text"),Ae),b=y(w("diy-rich-text"),Ie),x=y(w("diy-active-cube"),Oe),A=y(w("diy-float-btn"),ze),I=y(w("diy-carousel-search"),We),z=y(w("tabbar"),Qr);return _(),C(o,{class:"diy-group",id:"componentList"},{default:k((()=>[c.value.global&&Object.keys(c.value.global).length&&c.value.global.topStatusBar&&c.value.global.topStatusBar.isShow?(_(),C(we,{key:0,scrollBool:D(u).componentsScrollBool.TopTabbar,ref_key:"topTabbarRef",ref:i,data:c.value.global},null,8,["scrollBool","data"])):O("v-if",!0),(_(!0),B(E,null,T(c.value.value,((e,t)=>(_(),C(o,{key:e.id,onClick:o=>D(s).changeCurrentIndex(t,e),class:j(D(u).getComponentClass(t,e)),style:R(e.pageStyle)},{default:k((()=>[S(o,{class:"relative",style:R({marginTop:e.margin.top<0?2*e.margin.top+"rpx":"0"})},{default:k((()=>[O(" 装修模式下,设置负上边距后超出的内容,禁止选中设置 "),D(u).isShowPlaceHolder(t,e)?(_(),C(o,{key:0,class:"absolute w-full z-1",style:R({height:2*e.margin.top*-1+"rpx"}),onClick:ee(D(u).placeholderEvent,["stop"])},null,8,["style","onClick"])):O("v-if",!0),"GraphicNav"==e.componentName?(_(),C(r,{key:1,component:e,global:c.value.global,index:t,pullDownRefreshCount:a.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):O("v-if",!0),"HorzBlank"==e.componentName?(_(),C(l,{key:2,component:e,global:c.value.global,index:t,pullDownRefreshCount:a.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):O("v-if",!0),"HorzLine"==e.componentName?(_(),C(n,{key:3,component:e,global:c.value.global,index:t,pullDownRefreshCount:a.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):O("v-if",!0),"HotArea"==e.componentName?(_(),C(d,{key:4,component:e,global:c.value.global,index:t,pullDownRefreshCount:a.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):O("v-if",!0),"ImageAds"==e.componentName?(_(),C(p,{key:5,component:e,global:c.value.global,index:t,pullDownRefreshCount:a.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):O("v-if",!0),"MemberInfo"==e.componentName?(_(),C(g,{key:6,component:e,global:c.value.global,index:t,pullDownRefreshCount:a.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):O("v-if",!0),"MemberLevel"==e.componentName?(_(),C(m,{key:7,component:e,global:c.value.global,index:t,pullDownRefreshCount:a.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):O("v-if",!0),"Notice"==e.componentName?(_(),C(f,{key:8,component:e,global:c.value.global,index:t,pullDownRefreshCount:a.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):O("v-if",!0),"RubikCube"==e.componentName?(_(),C(h,{key:9,component:e,global:c.value.global,index:t,pullDownRefreshCount:a.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):O("v-if",!0),"Text"==e.componentName?(_(),C(v,{key:10,component:e,global:c.value.global,index:t,pullDownRefreshCount:a.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):O("v-if",!0),"RichText"==e.componentName?(_(),C(b,{key:11,component:e,global:c.value.global,index:t,pullDownRefreshCount:a.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):O("v-if",!0),"ActiveCube"==e.componentName?(_(),C(x,{key:12,component:e,global:c.value.global,index:t,pullDownRefreshCount:a.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):O("v-if",!0),"FloatBtn"==e.componentName?(_(),C(A,{key:13,component:e,global:c.value.global,index:t,pullDownRefreshCount:a.pullDownRefreshCount},null,8,["component","global","index","pullDownRefreshCount"])):O("v-if",!0),"CarouselSearch"==e.componentName?(_(),C(I,{key:14,scrollBool:D(u).componentsScrollBool.CarouselSearch,component:e,global:c.value.global,index:t,pullDownRefreshCount:a.pullDownRefreshCount},null,8,["scrollBool","component","global","index","pullDownRefreshCount"])):O("v-if",!0)])),_:2},1032,["style"])])),_:2},1032,["onClick","class","style"])))),128)),""==D(s).mode&&c.value.global.bottomTabBarSwitch?(_(),B(E,{key:1},[S(o,{class:"pt-[20rpx]"}),S(z)],64)):O("v-if",!0)])),_:1})}}}),[["__scopeId","data-v-12b1b2ad"]]),ln=f({__name:"index",props:["data","pullDownRefreshCount"],setup(e){const t=e;return(e,o)=>{const r=W;return _(),C(r,null,{default:k((()=>[A(" 固定模板示例,我也可以装修 "),O(" 自定义模板渲染 "),S(rn,{data:t.data,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["data","pullDownRefreshCount"])])),_:1})}}}),an=he(f({__name:"index",props:["data","pullDownRefreshCount"],setup(e){const t=e;return(e,o)=>{const r=y(w("fixed-demo-index"),ln),l=W;return _(),C(l,{class:"fixed-group"},{default:k((()=>["demo-index"==t.data.global.component?(_(),C(r,{key:0,data:t.data,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["data","pullDownRefreshCount"])):O("v-if",!0)])),_:1})}}}),[["__scopeId","data-v-b4efcf88"]]);export{rn as d,an as f,_e as u};
|