全栈小学生 af883ac9e1 update
2024-08-06 17:54:17 +08:00

9 lines
138 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

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

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