import{_ as e}from"./u-icon.d4bf195f.js";import{W as t,X as o,E as n,i as r,j as i,w as a,T as l,d as s,u,c as d,r as c,ab as p,aE as m,aF as h,q as f,t as g,F as v,G as b,H as y,I as x,n as w,y as _,k as C,m as S,K as k,L as D,p as R,h as E,x as T,M as I,N,aG as O,aH as A,ap as W,Y as z,aI as P,ah as B,aJ as H,ak as M,Z as j,a0 as F,V as X,aK as $,aL as Y,aM as L,ad as G,aN as U,aO as q,a1 as V,aP as K}from"./index-c1dbaba4.js";import{p as Z,_ as J}from"./u-image.86f8f5db.js";import{_ as Q}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as ee}from"./app-link.vue_vue_type_script_setup_true_lang.e42fbc9b.js";import{_ as te}from"./u-avatar.85887529.js";import{_ as oe}from"./u-popup.c9f22720.js";import{_ as ne,a as re}from"./u-tabbar.7b503373.js";const ie=Q({name:"u--image",mixins:[t,Z,o],components:{uvImage:J},emits:["click","error","load"]},[["render",function(e,t,o,s,u,d){const c=n("uvImage");return r(),i(c,{src:e.src,mode:e.mode,width:e.width,height:e.height,shape:e.shape,radius:e.radius,lazyLoad:e.lazyLoad,showMenuByLongpress:e.showMenuByLongpress,loadingIcon:e.loadingIcon,errorIcon:e.errorIcon,showLoading:e.showLoading,showError:e.showError,fade:e.fade,webp:e.webp,duration:e.duration,bgColor:e.bgColor,customStyle:e.customStyle,onClick:t[0]||(t[0]=t=>e.$emit("click")),onError:t[1]||(t[1]=t=>e.$emit("error")),onLoad:t[2]||(t[2]=t=>e.$emit("load"))},{loading:a((()=>[l(e.$slots,"loading")])),error:a((()=>[l(e.$slots,"error")])),_:3},8,["src","mode","width","height","shape","radius","lazyLoad","showMenuByLongpress","loadingIcon","errorIcon","showLoading","showError","fade","webp","duration","bgColor","customStyle"])}]]),ae=Q(s({__name:"index",props:["component","index","pullDownRefreshCount"],setup(t){const o=t,n=u(),l=d((()=>"decorate"==n.mode?n.value[o.index]:o.component)),s=d((()=>{var e="";return l.value.componentBgColor&&(e+="background-color:"+l.value.componentBgColor+";"),l.value.topRounded&&(e+="border-top-left-radius:"+2*l.value.topRounded+"rpx;"),l.value.topRounded&&(e+="border-top-right-radius:"+2*l.value.topRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*l.value.bottomRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*l.value.bottomRounded+"rpx;"),e})),I=c([]);p((()=>o.pullDownRefreshCount),((e,t)=>{})),m((()=>{N(),"decorate"==n.mode&&p((()=>l.value),((e,t)=>{e&&"AddonList"==e.componentName&&N()}))}));const N=()=>{"decorate"==n.mode&&l.value.list.forEach(((e,t)=>{""==e.icon&&(e.icon="static/resource/images/diy/figure.png"),""==e.title&&(e.title="应用名称")})),0==l.value.list.length?h({}).then((e=>{I.value=e.data})):I.value=l.value.list};return(t,o)=>{const n=f(g("u-icon"),e),l=f(g("u--image"),ie),u=T;return r(),i(u,{style:R(w(s))},{default:a((()=>[(r(!0),v(b,null,y(I.value,((e,t)=>(r(),i(u,{key:e.id,class:x(["item flex align-center p-[20rpx] mb-[20rpx]",{"border-solid border-t-0 border-l-0 border-r-0 border-b border-gray-200":I.value.length-1!==t}]),onClick:t=>{return o=e.url,void E({url:o});var o}},{default:a((()=>[e.icon?(r(),i(l,{key:0,width:"120rpx",height:"120rpx",src:w(_)(e.icon),class:"rounded-md overflow-hidden",model:"aspectFill"},{error:a((()=>[C(n,{name:"photo",color:"#999",size:"60"})])),_:2},1032,["src"])):S("v-if",!0),C(u,{class:"flex-1 flex flex-col justify-center ml-[20rpx]"},{default:a((()=>[C(u,{class:"text-sm leading-[1.3] using-hidden"},{default:a((()=>[k(D(e.title),1)])),_:2},1024),C(u,{class:"text-xs text-[#999] mt-[8rpx] leading-[1.6] multi-hidden"},{default:a((()=>[k(D(e.desc),1)])),_:2},1024)])),_:2},1024)])),_:2},1032,["class","onClick"])))),128))])),_:1},8,["style"])}}}),[["__scopeId","data-v-2b4a4991"]]),le=Q(s({__name:"index",props:["component","index","pullDownRefresh"],setup(t){const o=t,n=u(),l=d((()=>"decorate"==n.mode?n.value[o.index]:o.component)),s=d((()=>{var e="";return l.value.componentBgColor&&(e+="background-color:"+l.value.componentBgColor+";"),l.value.topRounded&&(e+="border-top-left-radius:"+2*l.value.topRounded+"rpx;"),l.value.topRounded&&(e+="border-top-right-radius:"+2*l.value.topRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*l.value.bottomRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*l.value.bottomRounded+"rpx;"),e}));p((()=>o.pullDownRefresh),((e,t)=>{}));const h=c(0),E=e=>{h.value=e.detail.current},z=(e,t)=>{let o=l.value.pageCount*l.value.rowCount,n=!0;return n=e>=[(t-1)*o]&&e<[t*o],n},P=c("");m((()=>{B(),"decorate"==n.mode&&p((()=>l.value),((e,t)=>{e&&"GraphicNav"==e.componentName&&B()}))}));const B=()=>{var e;"decorate"==n.mode&&l.value.list.forEach(((e,t)=>{""==e.imageUrl&&(e.imageUrl="static/resource/images/diy/figure.png")})),e=0,"graphic"==l.value.mode?e=(49+l.value.imageSize)*l.value.pageCount:"img"==l.value.mode?e=(22+l.value.imageSize)*l.value.pageCount:"text"==l.value.mode&&(e=43*l.value.pageCount),P.value=2*e+"rpx"};return(t,o)=>{const n=I,u=N,d=T,c=f(g("u-icon"),e),p=f(g("app-link"),ee),m=O,h=A,B=W;return r(),i(d,{style:R(w(s))},{default:a((()=>[w(l).navTitle?(r(),v("div",{key:0,class:"py-[30rpx] px-[32rpx] text-[30rpx]",style:R({fontWeight:w(l).font.weight,color:w(l).font.color})},D(w(l).navTitle),5)):S("v-if",!0),"vertical"==w(l).layout?(r(),i(d,{key:1,class:"graphic-nav"},{default:a((()=>[(r(!0),v(b,null,y(w(l).list,((e,t)=>(r(),i(d,{class:"graphic-nav-item",key:e.id},{default:a((()=>[C(p,{data:e.link,"custom-class":["flex items-center justify-between py-3 px-4",0==t?"border-t-0":"border-t"]},{default:a((()=>["text"!=w(l).mode?(r(),i(d,{key:0,class:"graphic-img relative flex items-center w-10 h-10 mr-[20rpx]",style:R({width:2*w(l).imageSize+"rpx",height:2*w(l).imageSize+"rpx"})},{default:a((()=>[C(n,{src:w(_)(e.imageUrl),mode:"aspectFill",style:R({maxWidth:2*w(l).imageSize+"rpx",maxHeight:2*w(l).imageSize+"rpx",borderRadius:2*w(l).aroundRadius+"rpx"})},null,8,["src","style"]),e.label.control?(r(),i(u,{key:0,class:"tag absolute -top-[10rpx] -right-[24rpx] text-white rounded-[24rpx] rounded-bl-none transform scale-80 py-1 px-2 text-xs",style:R({color:e.label.textColor,backgroundImage:"linear-gradient("+e.label.bgColorStart+","+e.label.bgColorEnd+")"})},{default:a((()=>[k(D(e.label.text),1)])),_:2},1032,["style"])):S("v-if",!0)])),_:2},1032,["style"])):S("v-if",!0),"img"!=w(l).mode?(r(),i(u,{key:1,class:"graphic-text w-full truncate leading-normal",style:R({fontSize:2*w(l).font.size+"rpx",fontWeight:w(l).font.weight,color:w(l).font.color})},{default:a((()=>[k(D(e.title),1)])),_:2},1032,["style"])):S("v-if",!0),C(c,{name:"arrow-right",color:"#CACACA"})])),_:2},1032,["data","custom-class"])])),_:2},1024)))),128))])),_:1})):"horizontal"==w(l).layout&&"pageSlide"==w(l).showStyle?(r(),i(h,{key:2,class:"graphic-nav p-2 box-border relative",circular:"","indicator-dots":!1,style:R({height:P.value}),onChange:E},{default:a((()=>[(r(!0),v(b,null,y(Math.ceil(w(l).list.length/(w(l).pageCount*w(l).rowCount)),((e,t)=>(r(),i(m,{class:"graphic-nav-wrap flex flex-wrap"},{default:a((()=>[(r(!0),v(b,null,y(w(l).list,((t,o)=>(r(),v(b,null,[z(o,e)?(r(),i(d,{class:x(["graphic-nav-item",[w(l).mode]]),key:t.id,style:R({width:100/w(l).rowCount+"%"})},{default:a((()=>[C(p,{data:t.link,"custom-class":"flex flex-col items-center box-border py-2"},{default:a((()=>["text"!=w(l).mode?(r(),i(d,{key:0,class:"graphic-img relative flex items-center justify-center w-10 h-10",style:R({width:2*w(l).imageSize+"rpx",height:2*w(l).imageSize+"rpx"})},{default:a((()=>[C(n,{src:w(_)(t.imageUrl),mode:"aspectFill",style:R({maxWidth:2*w(l).imageSize+"rpx",maxHeight:2*w(l).imageSize+"rpx",borderRadius:2*w(l).aroundRadius+"rpx"})},null,8,["src","style"]),t.label.control?(r(),i(u,{key:0,class:"tag absolute -top-[10rpx] -right-[24rpx] text-white rounded-[24rpx] rounded-bl-none transform scale-80 py-1 px-2 text-xs",style:R({color:t.label.textColor,backgroundImage:"linear-gradient("+t.label.bgColorStart+","+t.label.bgColorEnd+")"})},{default:a((()=>[k(D(t.label.text),1)])),_:2},1032,["style"])):S("v-if",!0)])),_:2},1032,["style"])):S("v-if",!0),"img"!=w(l).mode?(r(),i(u,{key:1,class:x(["graphic-text w-full text-center truncate leading-normal",{"pt-1.5":"text"!=w(l).mode}]),style:R({fontSize:2*w(l).font.size+"rpx",fontWeight:w(l).font.weight,color:w(l).font.color})},{default:a((()=>[k(D(t.title),1)])),_:2},1032,["class","style"])):S("v-if",!0)])),_:2},1032,["data"])])),_:2},1032,["class","style"])):S("v-if",!0)],64)))),256))])),_:2},1024)))),256))])),_:1},8,["style"])):(r(),i(B,{key:3,"scroll-x":"singleSlide"==w(l).showStyle,class:x(["graphic-nav","graphic-nav-"+w(l).showStyle])},{default:a((()=>[(r(!0),v(b,null,y(w(l).list,((e,t)=>(r(),i(d,{class:x(["graphic-nav-item",{"flex-shrink-0":"singleSlide"==w(l).showStyle}]),key:e.id,style:R({width:100/w(l).rowCount+"%"})},{default:a((()=>[C(p,{data:e.link,"custom-class":"flex flex-col items-center box-border py-2"},{default:a((()=>["text"!=w(l).mode?(r(),i(d,{key:0,class:"graphic-img relative flex items-center justify-center w-10 h-10",style:R({width:2*w(l).imageSize+"rpx",height:2*w(l).imageSize+"rpx"})},{default:a((()=>[C(n,{src:w(_)(e.imageUrl),mode:"aspectFill",style:R({maxWidth:2*w(l).imageSize+"rpx",maxHeight:2*w(l).imageSize+"rpx",borderRadius:2*w(l).aroundRadius+"rpx"})},null,8,["src","style"]),e.label.control?(r(),i(u,{key:0,class:x(["tag absolute -top-[10rpx] -right-[24rpx] text-white rounded-[24rpx] rounded-bl-none transform scale-80 py-1 px-2 text-xs"]),style:R({color:e.label.textColor,backgroundImage:"linear-gradient("+e.label.bgColorStart+","+e.label.bgColorEnd+")"})},{default:a((()=>[k(D(e.label.text),1)])),_:2},1032,["style"])):S("v-if",!0)])),_:2},1032,["style"])):S("v-if",!0),"img"!=w(l).mode?(r(),i(u,{key:1,class:x(["graphic-text w-full text-center truncate leading-normal",{"pt-1.5":"text"!=w(l).mode}]),style:R({fontSize:2*w(l).font.size+"rpx",fontWeight:w(l).font.weight,color:w(l).font.color})},{default:a((()=>[k(D(e.title),1)])),_:2},1032,["class","style"])):S("v-if",!0)])),_:2},1032,["data"])])),_:2},1032,["class","style"])))),128))])),_:1},8,["scroll-x","class"]))])),_:1},8,["style"])}}}),[["__scopeId","data-v-d51849eb"]]),se=s({__name:"index",props:["component","index","pullDownRefresh"],setup(e){const t=e,o=u(),n=d((()=>"decorate"==o.mode?o.value[t.index]:t.component)),a=d((()=>{var e="";return e+="height:"+2*n.value.height+"rpx;",n.value.componentBgColor&&(e+="background-color:"+n.value.componentBgColor+";"),e}));return p((()=>t.pullDownRefresh),((e,t)=>{})),(e,t)=>{const o=T;return r(),i(o,{style:R(w(a))},null,8,["style"])}}}),ue=s({__name:"index",props:["component","index","pullDownRefresh"],setup(e){const t=e,o=u(),n=d((()=>"decorate"==o.mode?o.value[t.index]:t.component)),l=d((()=>{var e="";return n.value.componentBgColor&&(e+="background-color:"+n.value.componentBgColor+";"),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}));m((()=>{s(),p((()=>n.value),((e,t)=>{e&&"HotArea"==e.componentName&&s()}))}));const s=()=>{"decorate"==o.mode&&""==n.value.imageUrl&&(n.value.imageUrl="static/resource/images/diy/figure.png",n.value.imgWidth=690,n.value.imgHeight=330)};return p((()=>t.pullDownRefresh),((e,t)=>{})),(e,t)=>{const s=I,u=f(g("app-link"),ee),d=T;return r(),i(d,{style:R(w(l))},{default:a((()=>[C(d,{class:"simple-graph-wrap overflow-hidden relative leading-0"},{default:a((()=>[C(s,{style:R({height:w(n).imgHeight}),src:w(_)(w(n).imageUrl),mode:"widthFix","show-menu-by-longpress":!0,class:"w-full"},null,8,["style","src"]),"decorate"!=w(o).mode?(r(),v(b,{key:0},[S(" 热区功能 "),(r(!0),v(b,null,y(w(n).heatMapData,((e,t)=>(r(),i(u,{data:e.link,"custom-class":"absolute",key:t,style:R({width:e.width+"%",height:e.height+"%",left:e.left+"%",top:e.top+"%"})},null,8,["data","style"])))),128))],64)):S("v-if",!0)])),_:1})])),_:1},8,["style"])}}}),de=s({__name:"index",props:["component","index","pullDownRefresh"],setup(e){const t=e,o=u(),n=d((()=>"decorate"==o.mode?o.value[t.index]:t.component)),l=d((()=>{var e="";return n.value.componentBgColor&&(e+="background-color:"+n.value.componentBgColor+";"),e})),s=d((()=>{var e="";return 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}));p((()=>t.pullDownRefresh),((e,t)=>{}));const h=d((()=>2*n.value.imageHeight+"rpx")),x=c(0),S=e=>{x.value=e.detail.current};m((()=>{k(),"decorate"==o.mode&&p((()=>n.value),((e,t)=>{e&&"ImageAds"==e.componentName&&k()}))}));const k=()=>{"decorate"==o.mode&&n.value.list.forEach(((e,t)=>{""==e.imageUrl&&(e.imageUrl="static/resource/images/diy/figure.png",e.imgWidth=690,e.imgHeight=330)}))};return(e,t)=>{const o=I,u=f(g("app-link"),ee),d=T,c=O,p=A;return r(),i(d,{class:"image-ads",style:R(w(l))},{default:a((()=>[1==w(n).list.length?(r(),i(d,{key:0,class:"leading-0 overflow-hidden",style:R(w(s))},{default:a((()=>[C(u,{data:w(n).list[0].link},{default:a((()=>[C(o,{src:w(_)(w(n).list[0].imageUrl),style:R({height:w(h)}),mode:"heightFix",class:"w-full","show-menu-by-longpress":!0},null,8,["src","style"])])),_:1},8,["data"])])),_:1},8,["style"])):(r(),i(p,{key:1,class:"swiper",style:R({height:w(h)}),autoplay:"true",circular:"true",onChange:S},{default:a((()=>[(r(!0),v(b,null,y(w(n).list,(e=>(r(),i(c,{class:"swiper-item",key:e.id,style:R(w(s))},{default:a((()=>[C(u,{data:e.link},{default:a((()=>[C(d,{class:"item",style:R({height:w(h)})},{default:a((()=>[C(o,{src:w(_)(e.imageUrl),mode:"scaleToFill",class:"w-full h-full","show-menu-by-longpress":!0},null,8,["src"])])),_:2},1032,["style"])])),_:2},1032,["data"])])),_:2},1032,["style"])))),128))])),_:1},8,["style"]))])),_:1},8,["style"])}}}),ce=Q(s({__name:"index",props:["component","index","pullDownRefresh"],setup(e){const t=e,o=u(),n=d((()=>"decorate"==o.mode?o.value[t.index]:t.component)),l=d((()=>{var e="";return n.value.componentBgColor&&(e+="background-color:"+n.value.componentBgColor+";"),n.value.bgUrl&&(e+="background-image:url("+_(n.value.bgUrl)+");",e+="background-size: 100%;",e+="background-repeat: no-repeat;"),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}));p((()=>t.pullDownRefresh),((e,t)=>{}));const s=z(),{query:m}=P(location.href);m.code&&B()&&H({code:m.code}).then((e=>{s.getMemberInfo()}));const h=d((()=>"decorate"==o.mode?{headimg:"",nickname:"昵称",balance:0,point:0,money:0,member_no:"NIU0000021"}:s.info)),v=d((()=>{if(h.value){let e=parseFloat(h.value.balance)+parseFloat(h.value.money);return M(e.toString())}return 0})),b=()=>{F().setLoginBack({url:"/app/pages/member/index"})};c(!1);const y=()=>{B()?F().getAuthCode("snsapi_userinfo"):E({url:"/app/pages/member/personal"})};return(e,t)=>{const o=f(g("u-avatar"),te),s=T,u=N,d=f(g("app-link"),ee);return r(),i(s,{style:R(w(l))},{default:a((()=>[C(s,{class:"pt-[34rpx] member-info"},{default:a((()=>[w(h)?(r(),i(s,{key:0,class:"flex ml-[32rpx] mr-[52rpx] items-center relative"},{default:a((()=>[S(" 唤起获取微信 "),C(o,{src:w(_)(w(h).headimg),size:"55",leftIcon:"none",onClick:y},null,8,["src"]),C(s,{class:"ml-[22rpx]"},{default:a((()=>[C(s,{class:"text-[#222222] truncate w-[430rpx] font-bold text-lg",style:R({color:w(n).textColor})},{default:a((()=>[k(D(w(h).nickname),1)])),_:1},8,["style"]),C(s,{class:"text-[#696B70] text-[24rpx] mt-[10rpx]",style:R({color:w(n).textColor})},{default:a((()=>[k("UID:"+D(w(h).member_no),1)])),_:1},8,["style"])])),_:1}),C(s,{class:"set-icon flex items-center absolute right-0 top-2"},{default:a((()=>[C(d,{url:"/app/pages/setting/index"},{default:a((()=>[C(u,{class:"iconfont iconshezhi text-[1.6rem] ml-[10rpx]",style:R({color:w(n).textColor})},null,8,["style"])])),_:1})])),_:1})])),_:1})):(r(),i(s,{key:1,class:"flex ml-[32rpx] mr-[52rpx] items-center relative",onClick:b},{default:a((()=>[C(o,{src:"",size:"55"}),C(s,{class:"ml-[22rpx]"},{default:a((()=>[C(s,{class:"text-[#222222] font-bold text-lg",style:R({color:w(n).textColor})},{default:a((()=>[k(D(w(j)("login"))+"/"+D(w(j)("register")),1)])),_:1},8,["style"])])),_:1}),C(s,{class:"set-icon flex items-center absolute right-0 top-2"},{default:a((()=>[C(d,{url:"/app/pages/setting/index"},{default:a((()=>[C(u,{class:"iconfont iconshezhi text-[1.6rem] ml-[10rpx]",style:R({color:w(n).textColor})},null,8,["style"])])),_:1})])),_:1})])),_:1})),C(s,{class:"flex m-[30rpx] mb-0 py-[30rpx] items-center"},{default:a((()=>[C(s,{class:"flex-1 text-center"},{default:a((()=>[C(s,{class:"font-bold"},{default:a((()=>[C(d,{url:w(h)?"/app/pages/member/balance":"","custom-style":{color:w(n).textColor}},{default:a((()=>[k(D(w(v)),1)])),_:1},8,["url","custom-style"])])),_:1}),C(s,{class:"text-sm mt-[10rpx]"},{default:a((()=>[C(d,{url:w(h)?"/app/pages/member/balance":"","custom-style":{color:w(n).textColor}},{default:a((()=>[k(D(w(j)("balance")),1)])),_:1},8,["url","custom-style"])])),_:1})])),_:1}),C(s,{class:"border-solid border-white border-l border-b-0 border-t-0 border-r-0 h-[60rpx]"}),C(s,{class:"flex-1 text-center"},{default:a((()=>[C(s,{class:"font-bold"},{default:a((()=>[C(d,{url:w(h)?"/app/pages/member/point":"","custom-style":{color:w(n).textColor}},{default:a((()=>{var e;return[k(D(parseInt(null==(e=w(h))?void 0:e.point)||0),1)]})),_:1},8,["url","custom-style"])])),_:1}),C(s,{class:"text-sm mt-[10rpx]"},{default:a((()=>[C(d,{url:w(h)?"/app/pages/member/point":"","custom-style":{color:w(n).textColor}},{default:a((()=>[k(D(w(j)("point")),1)])),_:1},8,["url","custom-style"])])),_:1})])),_:1})])),_:1})])),_:1})])),_:1},8,["style"])}}}),[["__scopeId","data-v-07fb20e0"]]);const pe=Q({mixins:[t,o,{props:{text:{type:[Array],default:X.columnNotice.text},icon:{type:String,default:X.columnNotice.icon},mode:{type:String,default:X.columnNotice.mode},color:{type:String,default:X.columnNotice.color},bgColor:{type:String,default:X.columnNotice.bgColor},fontSize:{type:[String,Number],default:X.columnNotice.fontSize},speed:{type:[String,Number],default:X.columnNotice.speed},step:{type:Boolean,default:X.columnNotice.step},duration:{type:[String,Number],default:X.columnNotice.duration},disableTouch:{type:Boolean,default:X.columnNotice.disableTouch}}}],watch:{text:{immediate:!0,handler(e,t){uni.$u.test.array(e)||uni.$u.error("noticebar组件direction为column时,要求text参数为数组形式")}}},computed:{textStyle(){let e={};return e.color=this.color,e.fontSize=uni.$u.addUnit(this.fontSize),e},vertical(){return"horizontal"!=this.mode}},data:()=>({index:0}),methods:{noticeChange(e){this.index=e.detail.current},clickHandler(){this.$emit("click",this.index)},close(){this.$emit("close")}}},[["render",function(t,o,n,s,u,d){const c=f(g("u-icon"),e),p=T,m=N,h=O,x=A;return r(),i(p,{class:"u-notice",onClick:d.clickHandler},{default:a((()=>[l(t.$slots,"icon",{},(()=>[t.icon?(r(),i(p,{key:0,class:"u-notice__left-icon"},{default:a((()=>[C(c,{name:t.icon,color:t.color,size:"19"},null,8,["name","color"])])),_:1})):S("v-if",!0)]),!0),C(x,{"disable-touch":t.disableTouch,vertical:!t.step,circular:"",interval:t.duration,autoplay:!0,class:"u-notice__swiper",onChange:d.noticeChange},{default:a((()=>[(r(!0),v(b,null,y(t.text,((e,t)=>(r(),i(h,{key:t,class:"u-notice__swiper__item"},{default:a((()=>[C(m,{class:"u-notice__swiper__item__text u-line-1",style:R([d.textStyle])},{default:a((()=>[k(D(e),1)])),_:2},1032,["style"])])),_:2},1024)))),128))])),_:1},8,["disable-touch","vertical","interval","onChange"]),["link","closable"].includes(t.mode)?(r(),i(p,{key:0,class:"u-notice__right-icon"},{default:a((()=>["link"===t.mode?(r(),i(c,{key:0,name:"arrow-right",size:17,color:t.color},null,8,["color"])):S("v-if",!0),"closable"===t.mode?(r(),i(c,{key:1,name:"close",size:16,color:t.color,onClick:d.close},null,8,["color","onClick"])):S("v-if",!0)])),_:1})):S("v-if",!0)])),_:3},8,["onClick"])}],["__scopeId","data-v-7109316b"]]);const me=Q({name:"u-row-notice",mixins:[t,o,{props:{text:{type:String,default:X.rowNotice.text},icon:{type:String,default:X.rowNotice.icon},mode:{type:String,default:X.rowNotice.mode},color:{type:String,default:X.rowNotice.color},bgColor:{type:String,default:X.rowNotice.bgColor},fontSize:{type:[String,Number],default:X.rowNotice.fontSize},speed:{type:[String,Number],default:X.rowNotice.speed}}}],data:()=>({animationDuration:"0",animationPlayState:"paused",nvueInit:!0,show:!0}),watch:{text:{immediate:!0,handler(e,t){this.vue(),uni.$u.test.string(e)||uni.$u.error("noticebar组件direction为row时,要求text参数为字符串形式")}},fontSize(){this.vue()},speed(){this.vue()}},computed:{textStyle(){let e={};return e.color=this.color,e.fontSize=uni.$u.addUnit(this.fontSize),e},animationStyle(){let e={};return e.animationDuration=this.animationDuration,e.animationPlayState=this.animationPlayState,e},innerText(){let e=[];const t=this.text.split("");for(let o=0;o{this.animationPlayState="running"}),10)},async nvue(){},loopAnimation(e,t){},getNvueRect(e){},clickHandler(e){this.$emit("click")},close(){this.$emit("close")}}},[["render",function(t,o,n,s,u,d){const c=f(g("u-icon"),e),p=T,m=N;return r(),i(p,{class:"u-notice",onClick:d.clickHandler},{default:a((()=>[l(t.$slots,"icon",{},(()=>[t.icon?(r(),i(p,{key:0,class:"u-notice__left-icon"},{default:a((()=>[C(c,{name:t.icon,color:t.color,size:"19"},null,8,["name","color"])])),_:1})):S("v-if",!0)]),!0),C(p,{class:"u-notice__content",ref:"u-notice__content"},{default:a((()=>[C(p,{ref:"u-notice__content__text",class:"u-notice__content__text",style:R([d.animationStyle])},{default:a((()=>[(r(!0),v(b,null,y(d.innerText,((e,t)=>(r(),i(m,{key:t,style:R([d.textStyle])},{default:a((()=>[k(D(e),1)])),_:2},1032,["style"])))),128))])),_:1},8,["style"])])),_:1},512),["link","closable"].includes(t.mode)?(r(),i(p,{key:0,class:"u-notice__right-icon"},{default:a((()=>["link"===t.mode?(r(),i(c,{key:0,name:"arrow-right",size:17,color:t.color},null,8,["color"])):S("v-if",!0),"closable"===t.mode?(r(),i(c,{key:1,onClick:d.close,name:"close",size:16,color:t.color},null,8,["onClick","color"])):S("v-if",!0)])),_:1})):S("v-if",!0)])),_:3},8,["onClick"])}],["__scopeId","data-v-8086f62b"]]);const he=Q({name:"u-notice-bar",mixins:[t,o,{props:{text:{type:[Array,String],default:X.noticeBar.text},direction:{type:String,default:X.noticeBar.direction},step:{type:Boolean,default:X.noticeBar.step},icon:{type:String,default:X.noticeBar.icon},mode:{type:String,default:X.noticeBar.mode},color:{type:String,default:X.noticeBar.color},bgColor:{type:String,default:X.noticeBar.bgColor},speed:{type:[String,Number],default:X.noticeBar.speed},fontSize:{type:[String,Number],default:X.noticeBar.fontSize},duration:{type:[String,Number],default:X.noticeBar.duration},disableTouch:{type:Boolean,default:X.noticeBar.disableTouch},url:{type:String,default:X.noticeBar.url},linkType:{type:String,default:X.noticeBar.linkType}}}],data:()=>({show:!0}),methods:{click(e){this.$emit("click",e),this.url&&this.linkType&&this.openPage()},close(){this.show=!1,this.$emit("close")}}},[["render",function(e,t,o,n,l,s){const u=f(g("u-column-notice"),pe),d=f(g("u-row-notice"),me),c=T;return l.show?(r(),i(c,{key:0,class:"u-notice-bar",style:R([{backgroundColor:e.bgColor},e.$u.addStyle(e.customStyle)])},{default:a((()=>["column"===e.direction||"row"===e.direction&&e.step?(r(),i(u,{key:0,color:e.color,bgColor:e.bgColor,text:e.text,mode:e.mode,step:e.step,icon:e.icon,"disable-touch":e.disableTouch,fontSize:e.fontSize,duration:e.duration,onClose:s.close,onClick:s.click},null,8,["color","bgColor","text","mode","step","icon","disable-touch","fontSize","duration","onClose","onClick"])):(r(),i(d,{key:1,color:e.color,bgColor:e.bgColor,text:e.text,mode:e.mode,fontSize:e.fontSize,speed:e.speed,url:e.url,linkType:e.linkType,icon:e.icon,onClose:s.close,onClick:s.click},null,8,["color","bgColor","text","mode","fontSize","speed","url","linkType","icon","onClose","onClick"]))])),_:1},8,["style"])):S("v-if",!0)}],["__scopeId","data-v-7b451c96"]]),fe=Q(s({__name:"index",props:["component","index","pullDownRefreshCount"],setup(e){const t=e,o=u(),n=c(!1),l=d((()=>"decorate"==o.mode?o.value[t.index]:t.component)),s=d((()=>{var e="";return l.value.componentBgColor&&(e+="background-color:"+l.value.componentBgColor+";"),l.value.topRounded&&(e+="border-top-left-radius:"+2*l.value.topRounded+"rpx;"),l.value.topRounded&&(e+="border-top-right-radius:"+2*l.value.topRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*l.value.bottomRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*l.value.bottomRounded+"rpx;"),e}));p((()=>t.pullDownRefreshCount),((e,t)=>{})),m((()=>{h(),"decorate"==o.mode&&p((()=>l.value),((e,t)=>{e&&"AddonList"==e.componentName&&h()}))}));const h=()=>{"decorate"==o.mode&&(l.value.list.title||(l.value.list.title="公告名称"))},v=()=>{if("decorate"==o.mode)return!1;"popup"==l.value.showType?n.value=!0:E({url:l.value.list.link.url})};return(e,t)=>{const o=I,u=f(g("u-notice-bar"),he),d=N,c=T,p=W,m=$,h=f(g("u-popup"),oe);return r(),i(c,{style:R(w(s)),class:"overflow-hidden"},{default:a((()=>[C(c,{class:"flex items-center pl-[28rpx] pr-[22rpx]",onClick:v},{default:a((()=>["system"==w(l).iconType?(r(),i(o,{key:0,src:w(_)(`addon/shop/diy/notice/${w(l).systemIcon}.png`),class:"h-[44rpx] max-w-[130rpx] -mr-[8rpx]",mode:"heightFix"},null,8,["src"])):(r(),i(o,{key:1,src:w(_)(w(l).imageUrl||""),class:"w-[30rpx] h-[30rpx] -mr-[8rpx]",mode:"aspectFit"},null,8,["src"])),C(u,{text:w(l).list.text,color:w(l).textColor,bgColor:w(l).componentBgColor,fontSize:2*w(l).fontSize+"rpx",speed:"50",icon:"",style:R({fontWeight:w(l).fontWeight})},null,8,["text","color","bgColor","fontSize","style"]),C(d,{class:"iconfont iconxiangyoujiantou -ml-[8rpx]",style:R({color:w(l).textColor,fontSize:2*w(l).fontSize+"rpx",fontWeight:w(l).fontWeight})},null,8,["style"])])),_:1}),C(h,{show:n.value,onClose:t[1]||(t[1]=e=>n.value=!1),closeable:!0,mode:"center",round:5},{default:a((()=>[C(c,{class:"py-[30rpx] text-sm leading-none border-0 border-solid border-b-[2rpx] border-[#eee]"},{default:a((()=>[C(d,{class:"ml-[30rpx]"},{default:a((()=>[k("公告内容")])),_:1})])),_:1}),C(p,{"scroll-y":"true",class:"px-6 py-3 w-[600rpx] h-[500rpx] text-sm"},{default:a((()=>[k(D(w(l).list.text),1)])),_:1}),C(m,{onClick:t[0]||(t[0]=e=>n.value=!1),class:"!mx-[30rpx] !mb-[40rpx] !w-auto !h-[80rpx] text-sm leading-[80rpx] rounded-full text-white !bg-[#ff4500]"},{default:a((()=>[k("我知道了")])),_:1})])),_:1},8,["show"])])),_:1},8,["style"])}}}),[["__scopeId","data-v-0b7426ad"]]),ge=Q(s({__name:"index",props:["component","index","pullDownRefresh"],setup(e){const t=e,o=u(),n=d((()=>"decorate"==o.mode?o.value[t.index]:t.component)),l=e=>L(e)+1,s=d((()=>{var e="";return n.value.componentBgColor&&(e+="background-color:"+n.value.componentBgColor+";"),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}));p((()=>t.pullDownRefresh),((e,t)=>{})),m((()=>{c(),p((()=>n.value),((e,t)=>{e&&"RubikCube"==e.componentName&&c()}))}));const c=()=>{"decorate"==o.mode&&n.value.list.forEach(((e,t)=>{""==e.imageUrl&&(e.imageUrl="static/resource/images/diy/figure.png",e.imgWidth=690,e.imgHeight=330)})),h()},h=()=>{var e={"row1-of2":{ratio:2,width:"calc((100% - "+l(2*n.value.imageGap)+"px) / 2)"},"row1-of3":{ratio:3,width:"calc((100% - "+l(4*n.value.imageGap)+"px) / 3)"},"row1-of4":{ratio:4,width:"calc((100% - "+l(6*n.value.imageGap)+"px) / 4)"}};n.value.list.forEach(((e,t)=>{e.pageItemStyle=((e,t)=>{var o="";return"right"==n.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*n.value.topElementRounded+"rpx;",o+="border-top-right-radius:"+2*n.value.topElementRounded+"rpx;",o+="border-bottom-left-radius:"+2*n.value.bottomElementRounded+"rpx;",o+="border-bottom-right-radius:"+2*n.value.bottomElementRounded+"rpx;"})),o})(n.value.mode,t)})),e[n.value.mode]?f(e[n.value.mode]):"row2-lt-of2-rt"==n.value.mode?g():"row1-lt-of2-rt"==n.value.mode?k():"row1-tp-of2-bm"==n.value.mode?D():"row1-lt-of1-tp-of2-bm"==n.value.mode&&N()},f=e=>{Y({success:t=>{let o=0;n.value.list.forEach(((r,i)=>{var a=r.imgHeight/r.imgWidth;let s=t.windowWidth-l(2*n.value.margin.both);n.value.imageGap>0&&(s-=l(e.ratio*n.value.imageGap*2)),r.imgWidth=s/e.ratio,r.imgHeight=r.imgWidth*a,(0==o||o{t.widthStyle=e.width,t.imgHeight=o}))}})},g=()=>{Y({success:e=>{let t=0,o=0;n.value.list.forEach(((r,i)=>{var a=r.imgHeight/r.imgWidth;r.imgWidth=e.windowWidth,r.imgWidth-=l(4*n.value.margin.both),n.value.imageGap>0&&(r.imgWidth-=l(2*n.value.imageGap)),r.imgWidth=r.imgWidth/2,r.imgHeight=r.imgWidth*a,i<=1?(0==t||t1&&(0==o||o{e.imgWidth="calc((100% - "+l(2*n.value.imageGap)+"px) / 2)",e.widthStyle=e.imgWidth,r<=1?e.imgHeight=t:r>1&&(e.imgHeight=o)}))}})},k=()=>{let e=0;n.value.list[1].imgWidth,n.value.list[2].imgWidth,Y({success:t=>{n.value.list.forEach(((o,r)=>{if(0==r){var i=o.imgHeight/o.imgWidth;o.imgWidth=t.windowWidth-l(4*n.value.margin.both)-l(2*n.value.imageGap),o.imgWidth=o.imgWidth/2,o.imgHeight=o.imgWidth*i,e=(o.imgHeight-l(2*n.value.imageGap))/2,o.imgWidth+="px"}else o.imgWidth=n.value.list[0].imgWidth,o.imgHeight=e}))}})},D=()=>{var e=0;Y({success:t=>{n.value.list.forEach(((o,r)=>{var i=o.imgHeight/o.imgWidth;0==r?o.imgWidth=t.windowWidth-l(4*n.value.margin.both):r>0&&(o.imgWidth=t.windowWidth-l(4*n.value.margin.both)-l(2*n.value.imageGap),o.imgWidth=o.imgWidth/2),o.imgHeight=o.imgWidth*i,r>0&&(0==e||e{t.imgWidth+="px",t.widthStyle=t.imgWidth,o>0&&(t.imgHeight=e)}))}})},N=()=>{Y({success:e=>{n.value.list.forEach(((t,o)=>{if(0==o){var r=t.imgHeight/t.imgWidth;t.imgWidth=e.windowWidth-l(4*n.value.margin.both)-l(2*n.value.imageGap),t.imgWidth=t.imgWidth/2,t.imgHeight=t.imgWidth*r}else 1==o?(t.imgWidth=n.value.list[0].imgWidth,t.imgHeight=(n.value.list[0].imgHeight-l(2*n.value.imageGap))/2):o>1&&(t.imgWidth=(n.value.list[0].imgWidth-l(2*n.value.imageGap))/2,t.imgHeight=n.value.list[1].imgHeight)})),n.value.list.forEach(((e,t)=>{e.imgWidth+="px",e.imgHeight}))}})},O=e=>{if(Object.keys(e).length){if(!e.url)return;if("app/pages/member/index"==G()&&!U())return void F().setLoginBack({url:e.url});q(e)}else E(e)};return(e,t)=>{const l=I,u=T;return r(),i(u,{class:x(["rubik-cube",w(o).mode]),style:R(w(s))},{default:a((()=>[S(" 1左2右 "),"row1-lt-of2-rt"==w(n).mode?(r(),v(b,{key:0},[C(u,{class:"template-left"},{default:a((()=>[C(u,{onClick:t[0]||(t[0]=e=>O(w(n).list[0].link)),class:x(["item",w(n).mode]),style:R({marginRight:2*w(n).imageGap+"rpx",width:w(n).list[0].imgWidth,height:w(n).list[0].imgHeight+"px"})},{default:a((()=>[C(l,{src:w(_)(w(n).list[0].imageUrl),mode:"scaleToFill",style:R(w(n).list[0].pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])])),_:1},8,["class","style"])])),_:1}),C(u,{class:"template-right"},{default:a((()=>[(r(!0),v(b,null,y(w(n).list,((e,t)=>(r(),v(b,{key:t},[t>0?(r(),i(u,{key:0,onClick:t=>O(e.link),class:x(["item",w(n).mode]),style:R({marginBottom:2*w(n).imageGap+"rpx",width:e.imgWidth,height:e.imgHeight+"px"})},{default:a((()=>[C(l,{src:w(_)(e.imageUrl),mode:"scaleToFill",style:R(e.pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])])),_:2},1032,["onClick","class","style"])):S("v-if",!0)],64)))),128))])),_:1})],64)):"row1-lt-of1-tp-of2-bm"==w(n).mode?(r(),v(b,{key:1},[S(" 1左3右 "),C(u,{class:"template-left"},{default:a((()=>[C(u,{onClick:t[1]||(t[1]=e=>O(w(n).list[0].link)),class:x(["item",w(n).mode]),style:R({marginRight:2*w(n).imageGap+"rpx",width:w(n).list[0].imgWidth,height:w(n).list[0].imgHeight+"px"})},{default:a((()=>[C(l,{src:w(_)(w(n).list[0].imageUrl),mode:"scaleToFill",style:R(w(n).list[0].pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])])),_:1},8,["class","style"])])),_:1}),C(u,{class:"template-right"},{default:a((()=>[C(u,{onClick:t[2]||(t[2]=e=>O(w(n).list[1].link)),class:x(["item",w(n).mode]),style:R({marginBottom:2*w(n).imageGap+"rpx",width:w(n).list[1].imgWidth,height:w(n).list[1].imgHeight+"px"})},{default:a((()=>[C(l,{src:w(_)(w(n).list[1].imageUrl),mode:"scaleToFill",style:R(w(n).list[1].pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])])),_:1},8,["class","style"]),C(u,{class:"template-bottom"},{default:a((()=>[(r(!0),v(b,null,y(w(n).list,((e,t)=>(r(),v(b,{key:t},[t>1?(r(),i(u,{key:0,onClick:t=>O(e.link),class:x(["item",w(n).mode]),style:R({marginRight:2*w(n).imageGap+"rpx",width:e.imgWidth,height:e.imgHeight+"px"})},{default:a((()=>[C(l,{src:w(_)(e.imageUrl),mode:"scaleToFill",style:R(e.pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])])),_:2},1032,["onClick","class","style"])):S("v-if",!0)],64)))),128))])),_:1})])),_:1})],64)):(r(!0),v(b,{key:2},y(w(n).list,((e,t)=>(r(),i(u,{class:x(["item",w(n).mode]),key:t,onClick:t=>O(e.link),style:R({marginRight:2*w(n).imageGap+"rpx",marginBottom:2*w(n).imageGap+"rpx",width:e.widthStyle,height:e.imgHeight+"px"})},{default:a((()=>[C(l,{src:w(_)(e.imageUrl),mode:"scaleToFill",style:R(e.pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])])),_:2},1032,["class","onClick","style"])))),128))])),_:1},8,["class","style"])}}}),[["__scopeId","data-v-a4d7422f"]]),ve=Q(s({__name:"index",props:["component","index","pullDownRefresh"],setup(t){const o=t,n=u(),l=d((()=>"decorate"==n.mode?n.value[o.index]:o.component)),s=d((()=>{var e="";return l.value.componentBgColor&&(e+="background-color:"+l.value.componentBgColor+";"),l.value.topRounded&&(e+="border-top-left-radius:"+2*l.value.topRounded+"rpx;"),l.value.topRounded&&(e+="border-top-right-radius:"+2*l.value.topRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*l.value.bottomRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*l.value.bottomRounded+"rpx;"),e}));return p((()=>o.pullDownRefresh),((e,t)=>{})),(t,o)=>{const n=T,u=f(g("app-link"),ee),d=N,c=f(g("u-icon"),e);return r(),i(n,{class:"diy-text",style:R(w(s))},{default:a((()=>["style-1"==w(l).style?(r(),i(n,{key:0,class:"p-[20rpx]"},{default:a((()=>[C(u,{data:w(l).link},{default:a((()=>[C(n,{style:R({fontSize:2*w(l).fontSize+"rpx",color:w(l).textColor,fontWeight:w(l).fontWeight,textAlign:w(l).textAlign})},{default:a((()=>[k(D(w(l).text),1)])),_:1},8,["style"])])),_:1},8,["data"])])),_:1})):S("v-if",!0),"style-2"==w(l).style?(r(),i(n,{key:1,class:"p-[20rpx] flex items-center"},{default:a((()=>[C(u,{data:w(l).link},{default:a((()=>[C(n,{class:"max-w-[200rpx] truncate",style:R({fontSize:2*w(l).fontSize+"rpx",color:w(l).textColor,fontWeight:w(l).fontWeight})},{default:a((()=>[k(D(w(l).text),1)])),_:1},8,["style"])])),_:1},8,["data"]),C(d,{class:"ml-[16rpx] max-w-[300rpx] truncate",style:R({color:w(l).subTitle.color,fontSize:2*w(l).subTitle.fontSize+"rpx"})},{default:a((()=>[k(D(w(l).subTitle.text),1)])),_:1},8,["style"]),w(l).more.isShow?(r(),i(n,{key:0,class:"ml-auto text-right",style:R({color:w(l).more.color})},{default:a((()=>[C(u,{data:w(l).more.link,"custom-class":"flex items-center"},{default:a((()=>[C(d,{class:"max-w-[200rpx] truncate text-[24rpx] mr-[8rpx]"},{default:a((()=>[k(D(w(l).more.text),1)])),_:1}),C(c,{name:"arrow-right",size:"12",style:R({color:w(l).more.color})},null,8,["style"])])),_:1},8,["data"])])),_:1},8,["style"])):S("v-if",!0)])),_:1})):S("v-if",!0)])),_:1},8,["style"])}}}),[["__scopeId","data-v-18e69c46"]]);const be=Q({name:"u-tabbar-item",mixins:[t,o,{props:{name:{type:[String,Number,null],default:X.tabbarItem.name},icon:{icon:String,default:X.tabbarItem.icon},badge:{type:[String,Number,null],default:X.tabbarItem.badge},dot:{type:Boolean,default:X.tabbarItem.dot},text:{type:String,default:X.tabbarItem.text},badgeStyle:{type:[Object,String],default:X.tabbarItem.badgeStyle}}}],data:()=>({isActive:!1,parentData:{value:null,activeColor:"",inactiveColor:""}}),options:{virtualHost:!0},created(){this.init()},methods:{init(){this.updateParentData(),this.parent||uni.$u.error("u-tabbar-item必须搭配u-tabbar组件使用");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(t,o,n,s,u,d){const c=f(g("u-icon"),e),p=f(g("u-badge"),ne),m=T,h=N;return r(),i(m,{class:"u-tabbar-item",style:R([t.$u.addStyle(t.customStyle)]),onClick:d.clickHandler},{default:a((()=>[C(m,{class:"u-tabbar-item__icon"},{default:a((()=>[t.icon?(r(),i(c,{key:0,name:t.icon,color:u.isActive?u.parentData.activeColor:u.parentData.inactiveColor,size:20},null,8,["name","color"])):(r(),v(b,{key:1},[u.isActive?l(t.$slots,"active-icon",{key:0},void 0,!0):l(t.$slots,"inactive-icon",{key:1},void 0,!0)],64)),C(p,{absolute:"",offset:[0,t.dot?"34rpx":t.badge>9?"14rpx":"20rpx"],customStyle:t.badgeStyle,isDot:t.dot,value:t.badge||(t.dot?1:null),show:t.dot||t.badge>0},null,8,["offset","customStyle","isDot","value","show"])])),_:3}),l(t.$slots,"text",{},(()=>[C(h,{class:"u-tabbar-item__text",style:R({color:u.isActive?u.parentData.activeColor:u.parentData.inactiveColor})},{default:a((()=>[k(D(t.text),1)])),_:1},8,["style"])]),!0)])),_:3},8,["style","onClick"])}],["__scopeId","data-v-b5faebd4"]]),ye=Q(s({__name:"tabbar",props:{addon:{type:String,default:""}},setup(e){const t=e;if(t.addon){V().getTabbarConfig(t.addon)}const o=d((()=>V().tabbar)),n=d((()=>"/"+G())),l=e=>{E({url:`${e}`})};return(e,t)=>{const s=f(g("u-tabbar-item"),be),u=f(g("u-tabbar"),re),d=T;return w(o)&&Object.keys(w(o)).length?(r(),v(b,{key:0},[w(o)?(r(),i(u,{key:0,value:w(n),onChange:l,zIndex:"9999",fixed:!0,placeholder:!0,safeAreaInsetBottom:!0,"inactive-color":w(o).value.textColor,"active-color":w(o).value.textHoverColor},{default:a((()=>[(r(!0),v(b,null,y(w(o).value.list,(e=>(r(),v(b,null,[1==w(o).value.type?(r(),i(s,{key:0,style:R({"background-color":w(o).value.backgroundColor}),text:e.text,icon:w(_)(w(n)==e.link.url?e.iconSelectPath:e.iconPath),name:e.link.url},null,8,["style","text","icon","name"])):S("v-if",!0),2==w(o).value.type?(r(),i(s,{key:1,style:R({"background-color":w(o).value.backgroundColor}),icon:w(_)(w(n)==e.link.url?e.iconSelectPath:e.iconPath),name:e.link.url},null,8,["style","icon","name"])):S("v-if",!0),3==w(o).value.type?(r(),i(s,{key:2,style:R({"background-color":w(o).value.backgroundColor}),text:e.text,name:e.link.url},null,8,["style","text","name"])):S("v-if",!0)],64)))),256))])),_:1},8,["value","inactive-color","active-color"])):S("v-if",!0),C(d,{class:"tab-bar-placeholder"})],64)):S("v-if",!0)}}}),[["__scopeId","data-v-77456ed4"]]); /**! * Sortable 1.15.0 * @author RubaXa * @author owenm * @license MIT */ function xe(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function we(e){for(var t=1;t=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}function De(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var Re=De(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ee=De(/Edge/i),Te=De(/firefox/i),Ie=De(/safari/i)&&!De(/chrome/i)&&!De(/android/i),Ne=De(/iP(ad|od|hone)/i),Oe=De(/chrome/i)&&De(/android/i),Ae={capture:!1,passive:!1};function We(e,t,o){e.addEventListener(t,o,!Re&&Ae)}function ze(e,t,o){e.removeEventListener(t,o,!Re&&Ae)}function Pe(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 Be(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function He(e,t,o,n){if(e){o=o||document;do{if(null!=t&&(">"===t[0]?e.parentNode===o&&Pe(e,t):Pe(e,t))||n&&e===o)return e;if(e===o)break}while(e=Be(e))}return null}var Me,je=/\s+/g;function Fe(e,t,o){if(e&&t)if(e.classList)e.classList[o?"add":"remove"](t);else{var n=(" "+e.className+" ").replace(je," ").replace(" "+t+" "," ");e.className=(n+(o?" "+t:"")).replace(je," ")}}function Xe(e,t,o){var n=e&&e.style;if(n){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 n||-1!==t.indexOf("webkit")||(t="-webkit-"+t),n[t]=o+("string"==typeof o?"":"px")}}function $e(e,t){var o="";if("string"==typeof e)o=e;else do{var n=Xe(e,"transform");n&&"none"!==n&&(o=n+" "+o)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(o)}function Ye(e,t,o){if(e){var n=e.getElementsByTagName(t),r=0,i=n.length;if(o)for(;r=i:r<=i))return n;if(n===Le())break;n=Je(n,!1)}return!1}function qe(e,t,o,n){for(var r=0,i=0,a=e.children;i2&&void 0!==arguments[2]?arguments[2]:{},n=o.evt,r=ke(o,st);lt.pluginEvent.bind(to)(e,t,we({dragEl:ct,parentEl:pt,ghostEl:mt,rootEl:ht,nextEl:ft,lastDownEl:gt,cloneEl:vt,cloneHidden:bt,dragStarted:Nt,putSortable:St,activeSortable:to.active,originalEvent:n,oldIndex:yt,oldDraggableIndex:wt,newIndex:xt,newDraggableIndex:_t,hideGhostForTarget:Zt,unhideGhostForTarget:Jt,cloneNowHidden:function(){bt=!0},cloneNowShown:function(){bt=!1},dispatchSortableEvent:function(e){dt({sortable:t,name:e,originalEvent:n})}},r))};function dt(e){!function(e){var t=e.sortable,o=e.rootEl,n=e.name,r=e.targetEl,i=e.cloneEl,a=e.toEl,l=e.fromEl,s=e.oldIndex,u=e.newIndex,d=e.oldDraggableIndex,c=e.newDraggableIndex,p=e.originalEvent,m=e.putSortable,h=e.extraEventProperties;if(t=t||o&&o[nt]){var f,g=t.options,v="on"+n.charAt(0).toUpperCase()+n.substr(1);!window.CustomEvent||Re||Ee?(f=document.createEvent("Event")).initEvent(n,!0,!0):f=new CustomEvent(n,{bubbles:!0,cancelable:!0}),f.to=a||o,f.from=l||o,f.item=r||o,f.clone=i,f.oldIndex=s,f.newIndex=u,f.oldDraggableIndex=d,f.newDraggableIndex=c,f.originalEvent=p,f.pullMode=m?m.lastPutMode:void 0;var b=we(we({},h),lt.getEventProperties(n,t));for(var y in b)f[y]=b[y];o&&o.dispatchEvent(f),g[v]&&g[v].call(t,f)}}(we({putSortable:St,cloneEl:vt,targetEl:ct,rootEl:ht,oldIndex:yt,oldDraggableIndex:wt,newIndex:xt,newDraggableIndex:_t},e))}var ct,pt,mt,ht,ft,gt,vt,bt,yt,xt,wt,_t,Ct,St,kt,Dt,Rt,Et,Tt,It,Nt,Ot,At,Wt,zt,Pt=!1,Bt=!1,Ht=[],Mt=!1,jt=!1,Ft=[],Xt=!1,$t=[],Yt="undefined"!=typeof document,Lt=Ne,Gt=Ee||Re?"cssFloat":"float",Ut=Yt&&!Oe&&!Ne&&"draggable"in document.createElement("div"),qt=function(){if(Yt){if(Re)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Vt=function(e,t){var o=Xe(e),n=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),r=qe(e,0,t),i=qe(e,1,t),a=r&&Xe(r),l=i&&Xe(i),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Ge(r).width,u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Ge(i).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&&a.float&&"none"!==a.float){var d="left"===a.float?"left":"right";return!i||"both"!==l.clear&&l.clear!==d?"horizontal":"vertical"}return r&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=n&&"none"===o[Gt]||i&&"none"===o[Gt]&&s+u>n)?"vertical":"horizontal"},Kt=function(e){function t(e,o){return function(n,r,i,a){var l=n.options.group.name&&r.options.group.name&&n.options.group.name===r.options.group.name;if(null==e&&(o||l))return!0;if(null==e||!1===e)return!1;if(o&&"clone"===e)return e;if("function"==typeof e)return t(e(n,r,i,a),o)(n,r,i,a);var s=(o?n:r).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var o={},n=e.group;n&&"object"==_e(n)||(n={name:n}),o.name=n.name,o.checkPull=t(n.pull,!0),o.checkPut=t(n.put),o.revertClone=n.revertClone,e.group=o},Zt=function(){!qt&&mt&&Xe(mt,"display","none")},Jt=function(){!qt&&mt&&Xe(mt,"display","")};Yt&&!Oe&&document.addEventListener("click",(function(e){if(Bt)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Bt=!1,!1}),!0);var Qt=function(e){if(ct){e=e.touches?e.touches[0]:e;var t=(r=e.clientX,i=e.clientY,Ht.some((function(e){var t=e[nt].options.emptyInsertThreshold;if(t&&!Ve(e)){var o=Ge(e),n=r>=o.left-t&&r<=o.right+t,l=i>=o.top-t&&i<=o.bottom+t;return n&&l?a=e:void 0}})),a);if(t){var o={};for(var n in e)e.hasOwnProperty(n)&&(o[n]=e[n]);o.target=o.rootEl=t,o.preventDefault=void 0,o.stopPropagation=void 0,t[nt]._onDragOver(o)}}var r,i,a},eo=function(e){ct&&ct.parentNode[nt]._isOutsideThisEl(e.target)};function to(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=Se({},t),e[nt]=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 Vt(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!==to.supportPointer&&"PointerEvent"in window&&!Ie,emptyInsertThreshold:5};for(var n in lt.initializePlugins(this,e,o),o)!(n in t)&&(t[n]=o[n]);for(var r in Kt(t),this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!t.forceFallback&&Ut,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?We(e,"pointerdown",this._onTapStart):(We(e,"mousedown",this._onTapStart),We(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(We(e,"dragover",this),We(e,"dragenter",this)),Ht.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Se(this,rt())}function oo(e,t,o,n,r,i,a,l){var s,u,d=e[nt],c=d.options.onMove;return!window.CustomEvent||Re||Ee?(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=n,s.related=r||t,s.relatedRect=i||Ge(t),s.willInsertAfter=l,s.originalEvent=a,e.dispatchEvent(s),c&&(u=c.call(d,s,a)),u}function no(e){e.draggable=!1}function ro(){Xt=!1}function io(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,o=t.length,n=0;o--;)n+=t.charCodeAt(o);return n.toString(36)}function ao(e){return setTimeout(e,0)}function lo(e){return clearTimeout(e)}to.prototype={constructor:to,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Ot=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,ct):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,o=this.el,n=this.options,r=n.preventOnFilter,i=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(a||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,u=n.filter;if(function(e){$t.length=0;var t=e.getElementsByTagName("input"),o=t.length;for(;o--;){var n=t[o];n.checked&&$t.push(n)}}(o),!ct&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||n.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!Ie||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=He(l,n.draggable,o,!1))&&l.animated||gt===l)){if(yt=Ke(l),wt=Ke(l,n.draggable),"function"==typeof u){if(u.call(this,e,l,this))return dt({sortable:t,rootEl:s,name:"filter",targetEl:l,toEl:o,fromEl:o}),ut("filter",t,{evt:e}),void(r&&e.cancelable&&e.preventDefault())}else if(u&&(u=u.split(",").some((function(n){if(n=He(s,n.trim(),o,!1))return dt({sortable:t,rootEl:n,name:"filter",targetEl:l,fromEl:o,toEl:o}),ut("filter",t,{evt:e}),!0}))))return void(r&&e.cancelable&&e.preventDefault());n.handle&&!He(s,n.handle,o,!1)||this._prepareDragStart(e,a,l)}}},_prepareDragStart:function(e,t,o){var n,r=this,i=r.el,a=r.options,l=i.ownerDocument;if(o&&!ct&&o.parentNode===i){var s=Ge(o);if(ht=i,pt=(ct=o).parentNode,ft=ct.nextSibling,gt=o,Ct=a.group,to.dragged=ct,kt={target:ct,clientX:(t||e).clientX,clientY:(t||e).clientY},Tt=kt.clientX-s.left,It=kt.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,ct.style["will-change"]="all",n=function(){ut("delayEnded",r,{evt:e}),to.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!Te&&r.nativeDraggable&&(ct.draggable=!0),r._triggerDragStart(e,t),dt({sortable:r,name:"choose",originalEvent:e}),Fe(ct,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){Ye(ct,e.trim(),no)})),We(l,"dragover",Qt),We(l,"mousemove",Qt),We(l,"touchmove",Qt),We(l,"mouseup",r._onDrop),We(l,"touchend",r._onDrop),We(l,"touchcancel",r._onDrop),Te&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ct.draggable=!0),ut("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(Ee||Re))n();else{if(to.eventCanceled)return void this._onDrop();We(l,"mouseup",r._disableDelayedDrag),We(l,"touchend",r._disableDelayedDrag),We(l,"touchcancel",r._disableDelayedDrag),We(l,"mousemove",r._delayedDragTouchMoveHandler),We(l,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&We(l,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(n,a.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(){ct&&no(ct),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;ze(e,"mouseup",this._disableDelayedDrag),ze(e,"touchend",this._disableDelayedDrag),ze(e,"touchcancel",this._disableDelayedDrag),ze(e,"mousemove",this._delayedDragTouchMoveHandler),ze(e,"touchmove",this._delayedDragTouchMoveHandler),ze(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?We(document,"pointermove",this._onTouchMove):We(document,t?"touchmove":"mousemove",this._onTouchMove):(We(ct,"dragend",this),We(ht,"dragstart",this._onDragStart));try{document.selection?ao((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(o){}},_dragStarted:function(e,t){if(Pt=!1,ht&&ct){ut("dragStarted",this,{evt:t}),this.nativeDraggable&&We(document,"dragover",eo);var o=this.options;!e&&Fe(ct,o.dragClass,!1),Fe(ct,o.ghostClass,!0),to.active=this,e&&this._appendGhost(),dt({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Dt){this._lastX=Dt.clientX,this._lastY=Dt.clientY,Zt();for(var e=document.elementFromPoint(Dt.clientX,Dt.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Dt.clientX,Dt.clientY))!==t;)t=e;if(ct.parentNode[nt]._isOutsideThisEl(e),t)do{if(t[nt]){if(t[nt]._onDragOver({clientX:Dt.clientX,clientY:Dt.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Jt()}},_onTouchMove:function(e){if(kt){var t=this.options,o=t.fallbackTolerance,n=t.fallbackOffset,r=e.touches?e.touches[0]:e,i=mt&&$e(mt,!0),a=mt&&i&&i.a,l=mt&&i&&i.d,s=Lt&&zt&&Ze(zt),u=(r.clientX-kt.clientX+n.x)/(a||1)+(s?s[0]-Ft[0]:0)/(a||1),d=(r.clientY-kt.clientY+n.y)/(l||1)+(s?s[1]-Ft[1]:0)/(l||1);if(!to.active&&!Pt){if(o&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))n.right+r||e.clientX<=n.right&&e.clientY>n.bottom&&e.clientX>=n.left:e.clientX>n.right&&e.clientY>n.top||e.clientX<=n.right&&e.clientY>n.bottom+r}(e,r,this)&&!f.animated){if(f===ct)return N(!1);if(f&&i===e.target&&(a=f),a&&(o=Ge(a)),!1!==oo(ht,i,ct,t,a,o,e,!!a))return I(),f&&f.nextSibling?i.insertBefore(ct,f.nextSibling):i.appendChild(ct),pt=i,O(),N(!0)}else if(f&&function(e,t,o){var n=Ge(qe(o.el,0,o.options,!0)),r=10;return t?e.clientXd+u*i/2:sc-Wt)return-At}else if(s>d+u*(1-r)/2&&sc-u*i/2))return s>d+u/2?1:-1;return 0}(e,a,o,r,w?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,jt,Ot===a),0!==v){var k=Ke(ct);do{k-=v,y=pt.children[k]}while(y&&("none"===Xe(y,"display")||y===mt))}if(0===v||y===a)return N(!1);Ot=a,At=v;var D=a.nextElementSibling,R=!1,E=oo(ht,i,ct,t,a,o,e,R=1===v);if(!1!==E)return 1!==E&&-1!==E||(R=1===E),Xt=!0,setTimeout(ro,30),I(),R&&!D?i.appendChild(ct):a.parentNode.insertBefore(ct,R?D:a),C&&tt(C,0,S-C.scrollTop),pt=ct.parentNode,void 0===b||jt||(Wt=Math.abs(b-Ge(a)[_])),O(),N(!0)}if(i.contains(ct))return N(!1)}return!1}function T(l,s){ut(l,m,we({evt:e,isOwner:d,axis:r?"vertical":"horizontal",revert:n,dragRect:t,targetRect:o,canSort:c,fromSortable:p,target:a,completed:N,onMove:function(o,n){return oo(ht,i,ct,t,o,Ge(o),e,n)},changed:O},s))}function I(){T("dragOverAnimationCapture"),m.captureAnimationState(),m!==p&&p.captureAnimationState()}function N(t){return T("dragOverCompleted",{insertion:t}),t&&(d?u._hideClone():u._showClone(m),m!==p&&(Fe(ct,St?St.options.ghostClass:u.options.ghostClass,!1),Fe(ct,l.ghostClass,!0)),St!==m&&m!==to.active?St=m:m===to.active&&St&&(St=null),p===m&&(m._ignoreWhileAnimating=a),m.animateAll((function(){T("dragOverAnimationComplete"),m._ignoreWhileAnimating=null})),m!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(a===ct&&!ct.animated||a===i&&!a.animated)&&(Ot=null),l.dragoverBubble||e.rootEl||a===document||(ct.parentNode[nt]._isOutsideThisEl(e.target),!t&&Qt(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),h=!0}function O(){xt=Ke(ct),_t=Ke(ct,l.draggable),dt({sortable:m,name:"change",toEl:i,newIndex:xt,newDraggableIndex:_t,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){ze(document,"mousemove",this._onTouchMove),ze(document,"touchmove",this._onTouchMove),ze(document,"pointermove",this._onTouchMove),ze(document,"dragover",Qt),ze(document,"mousemove",Qt),ze(document,"touchmove",Qt)},_offUpEvents:function(){var e=this.el.ownerDocument;ze(e,"mouseup",this._onDrop),ze(e,"touchend",this._onDrop),ze(e,"pointerup",this._onDrop),ze(e,"touchcancel",this._onDrop),ze(document,"selectstart",this)},_onDrop:function(e){var t=this.el,o=this.options;xt=Ke(ct),_t=Ke(ct,o.draggable),ut("drop",this,{evt:e}),pt=ct&&ct.parentNode,xt=Ke(ct),_t=Ke(ct,o.draggable),to.eventCanceled||(Pt=!1,jt=!1,Mt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),lo(this.cloneId),lo(this._dragStartId),this.nativeDraggable&&(ze(document,"drop",this),ze(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ie&&Xe(document.body,"user-select",""),Xe(ct,"transform",""),e&&(Nt&&(e.cancelable&&e.preventDefault(),!o.dropBubble&&e.stopPropagation()),mt&&mt.parentNode&&mt.parentNode.removeChild(mt),(ht===pt||St&&"clone"!==St.lastPutMode)&&vt&&vt.parentNode&&vt.parentNode.removeChild(vt),ct&&(this.nativeDraggable&&ze(ct,"dragend",this),no(ct),ct.style["will-change"]="",Nt&&!Pt&&Fe(ct,St?St.options.ghostClass:this.options.ghostClass,!1),Fe(ct,this.options.chosenClass,!1),dt({sortable:this,name:"unchoose",toEl:pt,newIndex:null,newDraggableIndex:null,originalEvent:e}),ht!==pt?(xt>=0&&(dt({rootEl:pt,name:"add",toEl:pt,fromEl:ht,originalEvent:e}),dt({sortable:this,name:"remove",toEl:pt,originalEvent:e}),dt({rootEl:pt,name:"sort",toEl:pt,fromEl:ht,originalEvent:e}),dt({sortable:this,name:"sort",toEl:pt,originalEvent:e})),St&&St.save()):xt!==yt&&xt>=0&&(dt({sortable:this,name:"update",toEl:pt,originalEvent:e}),dt({sortable:this,name:"sort",toEl:pt,originalEvent:e})),to.active&&(null!=xt&&-1!==xt||(xt=yt,_t=wt),dt({sortable:this,name:"end",toEl:pt,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){ut("nulling",this),ht=ct=pt=mt=ft=vt=gt=bt=kt=Dt=Nt=xt=_t=yt=wt=Ot=At=St=Ct=to.dragged=to.ghost=to.clone=to.active=null,$t.forEach((function(e){e.checked=!0})),$t.length=Rt=Et=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":ct&&(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,n=0,r=o.length,i=this.options;n-1&&e%1==0&&e<=tn}(e.length)&&!function(e){if(!Mo(e))return!1;var t=Wo(e);return t==Ko||t==Zo||t==Vo||t==Jo}(e)}function nn(e,t,o){if(!Mo(o))return!1;var n=typeof t;return!!("number"==n?on(o)&&function(e,t){var o=typeof e;return!!(t=null==t?Qo:t)&&("number"==o||"symbol"!=o&&en.test(e))&&e>-1&&e%1==0&&e"decorate"==o.mode?o:t.data)),l=d((()=>V().addon));return m((()=>{if("decorate"==o.mode){var e=document.getElementById("componentList");const t=to.create(e,{group:"draggable-element",animation:200,onEnd:e=>{let n=o.value[e.oldIndex];o.value.splice(e.oldIndex,1),o.value.splice(e.newIndex,0,n),K((()=>{t.sort(un(o.value.length).map((e=>e.toString()))),o.postMessage(e.newIndex,o.value[e.newIndex])}))}})}})),(e,s)=>{const u=f(g("diy-addon-list"),ae),d=f(g("diy-graphic-nav"),le),c=f(g("diy-horz-blank"),se),p=f(g("diy-hot-area"),ue),m=f(g("diy-image-ads"),de),h=f(g("diy-member-info"),ce),_=f(g("diy-notice"),fe),k=f(g("diy-rubik-cube"),ge),D=f(g("diy-text"),ve),E=T,I=f(g("tabbar"),ye);return r(),i(E,{class:"diy-group",id:"componentList"},{default:a((()=>[(r(!0),v(b,null,y(w(n).value,((e,n)=>(r(),i(E,{key:e.id,onClick:t=>w(o).changeCurrentIndex(n,e),class:x(["draggable-element relative",{selected:w(o).currentIndex==n,decorate:"decorate"==w(o).mode}]),style:R(e.pageStyle)},{default:a((()=>["AddonList"==e.componentName?(r(),i(u,{key:0,component:e,index:n,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):S("v-if",!0),"GraphicNav"==e.componentName?(r(),i(d,{key:1,component:e,index:n,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):S("v-if",!0),"HorzBlank"==e.componentName?(r(),i(c,{key:2,component:e,index:n,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):S("v-if",!0),"HotArea"==e.componentName?(r(),i(p,{key:3,component:e,index:n,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):S("v-if",!0),"ImageAds"==e.componentName?(r(),i(m,{key:4,component:e,index:n,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):S("v-if",!0),"MemberInfo"==e.componentName?(r(),i(h,{key:5,component:e,index:n,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):S("v-if",!0),"Notice"==e.componentName?(r(),i(_,{key:6,component:e,index:n,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):S("v-if",!0),"RubikCube"==e.componentName?(r(),i(k,{key:7,component:e,index:n,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):S("v-if",!0),"Text"==e.componentName?(r(),i(D,{key:8,component:e,index:n,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):S("v-if",!0)])),_:2},1032,["onClick","class","style"])))),128)),""==w(o).mode&&w(n).global.bottomTabBarSwitch?(r(),v(b,{key:0},[C(E,{class:"pt-[20rpx]"}),C(I,{addon:w(l)},null,8,["addon"])],64)):S("v-if",!0)])),_:1})}}}),[["__scopeId","data-v-459b73fc"]]),cn=s({__name:"index",props:["data","pullDownRefresh"],setup(e){const t=e;return(e,o)=>{const n=f(g("diy-group"),dn),l=T;return r(),i(l,null,{default:a((()=>[k(" 固定模板示例,我也可以装修 "),S(" 自定义模板渲染 "),C(n,{data:t.data,pullDownRefresh:t.pullDownRefresh},null,8,["data","pullDownRefresh"])])),_:1})}}}),pn=Q(s({__name:"index",props:["data","pullDownRefreshCount"],setup(e){const t=e;return(e,o)=>{const n=f(g("fixed-demo-index"),cn),l=T;return r(),i(l,{class:"fixed-group"},{default:a((()=>["demo-index"==t.data.global.component?(r(),i(n,{key:0,data:t.data,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["data","pullDownRefreshCount"])):S("v-if",!0)])),_:1})}}}),[["__scopeId","data-v-aba3c6f6"]]);export{dn as _,pn as a};