import{_ as e}from"./u-icon.d0747f2e.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,ag as p,aB as m,aC 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,e as E,x as T,N as I,M as N,aD as O,aE as W,ao as A,Y as z,aF as B,af as P,aG as H,aj as M,Z as j,a0 as F,V as X,aH as $,aI as Y,aJ as L,a1 as G,ab as U,aK as V}from"./index-ea6e0cb1.js";import{p as q,_ as Z}from"./u-image.e58acf3c.js";import{_ as K}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as J}from"./app-link.vue_vue_type_script_setup_true_lang.71c4d6c7.js";import{_ as Q}from"./u-avatar.5ac4ddfa.js";import"./u-transition.58c21162.js";import"./u-line.vue_vue_type_style_index_0_scoped_45e31c7a_lang.b0fb96a4.js";import"./u-form.35f8de54.js";import"./u-loading-icon.5076bc14.js";import"./u-button.vue_vue_type_style_index_0_scoped_6b0695bb_lang.00626b24.js";import{_ as ee}from"./u-popup.58d58be7.js";import"./u-safe-bottom.71dc384f.js";import{_ as te,a as oe}from"./u-tabbar.1741b17a.js";const ne=K({name:"u--image",mixins:[t,q,o],components:{uvImage:Z},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"])}]]),re=K(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"),ne),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-a13755df"]]),ie=K(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}));p((()=>o.pullDownRefreshCount),((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},B=c("");m((()=>{P(),"decorate"==n.mode&&p((()=>l.value),((e,t)=>{e&&"GraphicNav"==e.componentName&&P()}))}));const P=()=>{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),B.value=2*e+"rpx"};return(t,o)=>{const n=T,u=I,d=f(g("app-link"),J),c=N,p=f(g("u-icon"),e),m=O,h=W,P=A;return r(),i(n,{style:R(w(s))},{default:a((()=>[w(l).navTitle?(r(),i(n,{key:0,class:"flex items-center justify-between py-[30rpx] px-[32rpx]"},{default:a((()=>[C(n,{class:"text-[30rpx]",style:R({fontWeight:w(l).font.weight,color:w(l).font.color})},{default:a((()=>[k(D(w(l).navTitle),1)])),_:1},8,["style"]),w(l).subNavTitle?(r(),i(d,{key:0,data:w(l).subNavTitleLink,class:"flex items-baseline",style:R({color:w(l).subNavColor})},{default:a((()=>[C(u,{class:"text-[26rpx] mr-[4rpx]"},{default:a((()=>[k(D(w(l).subNavTitle),1)])),_:1}),C(u,{class:"text-sm iconfont iconxiangyoujiantou"})])),_:1},8,["data","style"])):S("v-if",!0)])),_:1})):S("v-if",!0),"vertical"==w(l).layout?(r(),i(n,{key:1,class:"graphic-nav"},{default:a((()=>[(r(!0),v(b,null,y(w(l).list,((e,t)=>(r(),i(n,{class:"graphic-nav-item",key:e.id},{default:a((()=>[C(d,{data:e.link,class:x([0==t?"border-t-0":"border-t"])},{default:a((()=>[C(n,{class:"flex items-center justify-between py-[30rpx] px-[32rpx]"},{default:a((()=>["text"!=w(l).mode?(r(),i(n,{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(c,{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(n,null,{default:a((()=>[C(p,{name:"arrow-right",color:"#CACACA"})])),_:1})])),_:2},1024)])),_:2},1032,["data","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:B.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(n,{class:x(["graphic-nav-item",[w(l).mode]]),key:t.id,style:R({width:100/w(l).rowCount+"%"})},{default:a((()=>[C(d,{data:t.link,class:"flex flex-col items-center box-border py-2"},{default:a((()=>["text"!=w(l).mode?(r(),i(n,{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(c,{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(P,{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(n,{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(d,{data:e.link,class:"flex flex-col items-center box-border py-2"},{default:a((()=>["text"!=w(l).mode?(r(),i(n,{key:0,class:"graphic-img relative flex items-center justify-center w-10 h-10 mx-[auto]",style:R({width:2*w(l).imageSize+"rpx",height:2*w(l).imageSize+"rpx"})},{default:a((()=>[C(c,{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-19dae25e"]]),ae=s({__name:"index",props:["component","index","pullDownRefreshCount"],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.pullDownRefreshCount),((e,t)=>{})),(e,t)=>{const o=T;return r(),i(o,{style:R(w(a))},null,8,["style"])}}}),le=s({__name:"index",props:["component","index","pullDownRefreshCount"],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.pullDownRefreshCount),((e,t)=>{})),(e,t)=>{const s=N,u=f(g("app-link"),J),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,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"])}}}),se=s({__name:"index",props:["component","index","pullDownRefreshCount"],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.pullDownRefreshCount),((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=N,u=f(g("app-link"),J),d=T,c=O,p=W;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"])}}}),ue=K(s({__name:"index",props:["component","index","pullDownRefreshCount"],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: cover;",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.pullDownRefreshCount),((e,t)=>{}));const s=z(),{query:m}=B(location.href);m.code&&P()&&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=()=>{P()?F().getAuthCode("snsapi_userinfo"):E({url:"/app/pages/member/personal"})};return(e,t)=>{const o=f(g("u-avatar"),Q),s=T,u=I,d=f(g("app-link"),J);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":"",style:R({color:w(n).textColor})},{default:a((()=>[k(D(w(v)),1)])),_:1},8,["url","style"])])),_:1}),C(s,{class:"text-sm mt-[10rpx]"},{default:a((()=>[C(d,{url:w(h)?"/app/pages/member/balance":"",style:R({color:w(n).textColor})},{default:a((()=>[k(D(w(j)("balance")),1)])),_:1},8,["url","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":"",style:R({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","style"])])),_:1}),C(s,{class:"text-sm mt-[10rpx]"},{default:a((()=>[C(d,{url:w(h)?"/app/pages/member/point":"",style:R({color:w(n).textColor})},{default:a((()=>[k(D(w(j)("point")),1)])),_:1},8,["url","style"])])),_:1})])),_:1})])),_:1})])),_:1})])),_:1},8,["style"])}}}),[["__scopeId","data-v-18699e19"]]);const de=K({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=I,h=O,x=W;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 ce=K({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=I;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 pe=K({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"),de),d=f(g("u-row-notice"),ce),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"]]),me=K(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=N,u=f(g("u-notice-bar"),pe),d=I,c=T,p=A,m=$,h=f(g("u-popup"),ee);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-6b39fcd0"]]),he=K(s({__name:"index",props:["component","index","pullDownRefreshCount"],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}));p((()=>t.pullDownRefreshCount),((e,t)=>{})),m((()=>{s(),p((()=>n.value),((e,t)=>{e&&"RubikCube"==e.componentName&&s()}))}));const s=()=>{"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)})),c()},c=()=>{var e={"row1-of2":{ratio:2,width:"calc((100% - "+Y(2*n.value.imageGap)+"px) / 2)"},"row1-of3":{ratio:3,width:"calc((100% - "+Y(4*n.value.imageGap)+"px) / 3)"},"row1-of4":{ratio:4,width:"calc((100% - "+Y(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]?h(e[n.value.mode]):"row2-lt-of2-rt"==n.value.mode?k():"row1-lt-of2-rt"==n.value.mode?D():"row1-tp-of2-bm"==n.value.mode?E():"row1-lt-of1-tp-of2-bm"==n.value.mode&&I()},h=e=>{L({success:t=>{let o=0;n.value.list.forEach(((r,i)=>{var a=r.imgHeight/r.imgWidth;let l=t.windowWidth-Y(2*n.value.margin.both);n.value.imageGap>0&&(l-=Y(e.ratio*n.value.imageGap*2)),r.imgWidth=l/e.ratio,r.imgHeight=r.imgWidth*a,(0==o||o{t.widthStyle=e.width,t.imgHeight=o}))}})},k=()=>{L({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-=Y(4*n.value.margin.both),n.value.imageGap>0&&(r.imgWidth-=Y(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% - "+Y(2*n.value.imageGap)+"px) / 2)",e.widthStyle=e.imgWidth,r<=1?e.imgHeight=t:r>1&&(e.imgHeight=o)}))}})},D=()=>{let e=0;n.value.list[1].imgWidth,n.value.list[2].imgWidth,L({success:t=>{n.value.list.forEach(((o,r)=>{if(0==r){var i=o.imgHeight/o.imgWidth;o.imgWidth=t.windowWidth-Y(4*n.value.margin.both)-Y(2*n.value.imageGap),o.imgWidth=o.imgWidth/2,o.imgHeight=o.imgWidth*i,e=(o.imgHeight-Y(2*n.value.imageGap))/2,o.imgWidth+="px"}else o.imgWidth=n.value.list[0].imgWidth,o.imgHeight=e}))}})},E=()=>{var e=0;L({success:t=>{n.value.list.forEach(((o,r)=>{var i=o.imgHeight/o.imgWidth;0==r?o.imgWidth=t.windowWidth-Y(4*n.value.margin.both):r>0&&(o.imgWidth=t.windowWidth-Y(4*n.value.margin.both)-Y(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)}))}})},I=()=>{L({success:e=>{n.value.list.forEach(((t,o)=>{if(0==o){var r=t.imgHeight/t.imgWidth;t.imgWidth=e.windowWidth-Y(4*n.value.margin.both)-Y(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-Y(2*n.value.imageGap))/2):o>1&&(t.imgWidth=(n.value.list[0].imgWidth-Y(2*n.value.imageGap))/2,t.imgHeight=n.value.list[1].imgHeight)})),n.value.list.forEach(((e,t)=>{e.imgWidth+="px"}))}})};return(e,t)=>{const s=N,u=f(g("app-link"),J),d=T;return r(),i(d,{class:x(["rubik-cube",w(o).mode]),style:R(w(l))},{default:a((()=>[S(" 1左2右 "),"row1-lt-of2-rt"==w(n).mode?(r(),v(b,{key:0},[C(d,{class:"template-left"},{default:a((()=>[C(u,{data:w(n).list[0].link,class:x(["item",w(n).mode]),style:R({width:w(n).list[0].imgWidth,height:w(n).list[0].imgHeight+"px"})},{default:a((()=>[C(s,{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,["data","class","style"])])),_:1}),C(d,{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,data: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(s,{src:w(_)(e.imageUrl),mode:"scaleToFill",style:R(e.pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])])),_:2},1032,["data","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(d,{class:"template-left"},{default:a((()=>[C(u,{data: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(s,{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,["data","class","style"])])),_:1}),C(d,{class:"template-right"},{default:a((()=>[C(u,{data: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(s,{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,["data","class","style"]),C(d,{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,data: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(s,{src:w(_)(e.imageUrl),mode:"scaleToFill",style:R(e.pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])])),_:2},1032,["data","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,data: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(s,{src:w(_)(e.imageUrl),mode:"scaleToFill",style:R(e.pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])])),_:2},1032,["class","data","style"])))),128))])),_:1},8,["class","style"])}}}),[["__scopeId","data-v-234f927d"]]),fe=K(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}));return p((()=>o.pullDownRefreshCount),((e,t)=>{})),(t,o)=>{const n=T,u=f(g("app-link"),J),d=I,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,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-0fd57f27"]]);const ge=K({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"),te),m=T,h=I;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"]]),ve=K(s({__name:"tabbar",setup(e){const t=d((()=>G().tabbar)),o=d((()=>"/"+U())),n=e=>{E({url:`${e}`,mode:"reLaunch"})};return(e,l)=>{const s=f(g("u-tabbar-item"),ge),u=f(g("u-tabbar"),oe),d=T;return r(),v(b,null,[w(t)?(r(),i(u,{key:0,value:w(o),onChange:n,zIndex:"9999",fixed:!0,placeholder:!0,safeAreaInsetBottom:!0,"inactive-color":w(t).textColor,"active-color":w(t).textHoverColor},{default:a((()=>[(r(!0),v(b,null,y(w(t).list,(e=>(r(),v(b,null,[1==w(t).type?(r(),i(s,{key:0,style:R({"background-color":w(t).backgroundColor}),text:e.text,icon:w(_)(w(o)==e.link.url?e.iconSelectPath:e.iconPath),name:e.link.url},null,8,["style","text","icon","name"])):S("v-if",!0),2==w(t).type?(r(),i(s,{key:1,style:R({"background-color":w(t).backgroundColor}),icon:w(_)(w(o)==e.link.url?e.iconSelectPath:e.iconPath),name:e.link.url},null,8,["style","icon","name"])):S("v-if",!0),3==w(t).type?(r(),i(s,{key:2,style:R({"background-color":w(t).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)}}}),[["__scopeId","data-v-144ba105"]]); /**! * Sortable 1.15.0 * @author RubaXa * @author owenm * @license MIT */ function be(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 ye(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 Se(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var ke=Se(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),De=Se(/Edge/i),Re=Se(/firefox/i),Ee=Se(/safari/i)&&!Se(/chrome/i)&&!Se(/android/i),Te=Se(/iP(ad|od|hone)/i),Ie=Se(/chrome/i)&&Se(/android/i),Ne={capture:!1,passive:!1};function Oe(e,t,o){e.addEventListener(t,o,!ke&&Ne)}function We(e,t,o){e.removeEventListener(t,o,!ke&&Ne)}function Ae(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 ze(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Be(e,t,o,n){if(e){o=o||document;do{if(null!=t&&(">"===t[0]?e.parentNode===o&&Ae(e,t):Ae(e,t))||n&&e===o)return e;if(e===o)break}while(e=ze(e))}return null}var Pe,He=/\s+/g;function Me(e,t,o){if(e&&t)if(e.classList)e.classList[o?"add":"remove"](t);else{var n=(" "+e.className+" ").replace(He," ").replace(" "+t+" "," ");e.className=(n+(o?" "+t:"")).replace(He," ")}}function je(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 Fe(e,t){var o="";if("string"==typeof e)o=e;else do{var n=je(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 Xe(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===$e())break;n=Ze(n,!1)}return!1}function Ge(e,t,o,n){for(var r=0,i=0,a=e.children;i2&&void 0!==arguments[2]?arguments[2]:{},n=o.evt,r=Ce(o,at);it.pluginEvent.bind(Qt)(e,t,ye({dragEl:ut,parentEl:dt,ghostEl:ct,rootEl:pt,nextEl:mt,lastDownEl:ht,cloneEl:ft,cloneHidden:gt,dragStarted:Tt,putSortable:_t,activeSortable:Qt.active,originalEvent:n,oldIndex:vt,oldDraggableIndex:yt,newIndex:bt,newDraggableIndex:xt,hideGhostForTarget:qt,unhideGhostForTarget:Zt,cloneNowHidden:function(){gt=!0},cloneNowShown:function(){gt=!1},dispatchSortableEvent:function(e){st({sortable:t,name:e,originalEvent:n})}},r))};function st(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[tt]){var f,g=t.options,v="on"+n.charAt(0).toUpperCase()+n.substr(1);!window.CustomEvent||ke||De?(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=ye(ye({},h),it.getEventProperties(n,t));for(var y in b)f[y]=b[y];o&&o.dispatchEvent(f),g[v]&&g[v].call(t,f)}}(ye({putSortable:_t,cloneEl:ft,targetEl:ut,rootEl:pt,oldIndex:vt,oldDraggableIndex:yt,newIndex:bt,newDraggableIndex:xt},e))}var ut,dt,ct,pt,mt,ht,ft,gt,vt,bt,yt,xt,wt,_t,Ct,St,kt,Dt,Rt,Et,Tt,It,Nt,Ot,Wt,At=!1,zt=!1,Bt=[],Pt=!1,Ht=!1,Mt=[],jt=!1,Ft=[],Xt="undefined"!=typeof document,$t=Te,Yt=De||ke?"cssFloat":"float",Lt=Xt&&!Ie&&!Te&&"draggable"in document.createElement("div"),Gt=function(){if(Xt){if(ke)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Ut=function(e,t){var o=je(e),n=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),r=Ge(e,0,t),i=Ge(e,1,t),a=r&&je(r),l=i&&je(i),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Ye(r).width,u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Ye(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[Yt]||i&&"none"===o[Yt]&&s+u>n)?"vertical":"horizontal"},Vt=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"==xe(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},qt=function(){!Gt&&ct&&je(ct,"display","none")},Zt=function(){!Gt&&ct&&je(ct,"display","")};Xt&&!Ie&&document.addEventListener("click",(function(e){if(zt)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),zt=!1,!1}),!0);var Kt=function(e){if(ut){e=e.touches?e.touches[0]:e;var t=(r=e.clientX,i=e.clientY,Bt.some((function(e){var t=e[tt].options.emptyInsertThreshold;if(t&&!Ue(e)){var o=Ye(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[tt]._onDragOver(o)}}var r,i,a},Jt=function(e){ut&&ut.parentNode[tt]._isOutsideThisEl(e.target)};function Qt(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=_e({},t),e[tt]=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 Ut(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!==Qt.supportPointer&&"PointerEvent"in window&&!Ee,emptyInsertThreshold:5};for(var n in it.initializePlugins(this,e,o),o)!(n in t)&&(t[n]=o[n]);for(var r in Vt(t),this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!t.forceFallback&&Lt,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Oe(e,"pointerdown",this._onTapStart):(Oe(e,"mousedown",this._onTapStart),Oe(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Oe(e,"dragover",this),Oe(e,"dragenter",this)),Bt.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),_e(this,ot())}function eo(e,t,o,n,r,i,a,l){var s,u,d=e[tt],c=d.options.onMove;return!window.CustomEvent||ke||De?(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||Ye(t),s.willInsertAfter=l,s.originalEvent=a,e.dispatchEvent(s),c&&(u=c.call(d,s,a)),u}function to(e){e.draggable=!1}function oo(){jt=!1}function no(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 ro(e){return setTimeout(e,0)}function io(e){return clearTimeout(e)}Qt.prototype={constructor:Qt,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(It=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,ut):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){Ft.length=0;var t=e.getElementsByTagName("input"),o=t.length;for(;o--;){var n=t[o];n.checked&&Ft.push(n)}}(o),!ut&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||n.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!Ee||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=Be(l,n.draggable,o,!1))&&l.animated||ht===l)){if(vt=Ve(l),yt=Ve(l,n.draggable),"function"==typeof u){if(u.call(this,e,l,this))return st({sortable:t,rootEl:s,name:"filter",targetEl:l,toEl:o,fromEl:o}),lt("filter",t,{evt:e}),void(r&&e.cancelable&&e.preventDefault())}else if(u&&(u=u.split(",").some((function(n){if(n=Be(s,n.trim(),o,!1))return st({sortable:t,rootEl:n,name:"filter",targetEl:l,fromEl:o,toEl:o}),lt("filter",t,{evt:e}),!0}))))return void(r&&e.cancelable&&e.preventDefault());n.handle&&!Be(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&&!ut&&o.parentNode===i){var s=Ye(o);if(pt=i,dt=(ut=o).parentNode,mt=ut.nextSibling,ht=o,wt=a.group,Qt.dragged=ut,Ct={target:ut,clientX:(t||e).clientX,clientY:(t||e).clientY},Rt=Ct.clientX-s.left,Et=Ct.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,ut.style["will-change"]="all",n=function(){lt("delayEnded",r,{evt:e}),Qt.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!Re&&r.nativeDraggable&&(ut.draggable=!0),r._triggerDragStart(e,t),st({sortable:r,name:"choose",originalEvent:e}),Me(ut,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){Xe(ut,e.trim(),to)})),Oe(l,"dragover",Kt),Oe(l,"mousemove",Kt),Oe(l,"touchmove",Kt),Oe(l,"mouseup",r._onDrop),Oe(l,"touchend",r._onDrop),Oe(l,"touchcancel",r._onDrop),Re&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ut.draggable=!0),lt("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(De||ke))n();else{if(Qt.eventCanceled)return void this._onDrop();Oe(l,"mouseup",r._disableDelayedDrag),Oe(l,"touchend",r._disableDelayedDrag),Oe(l,"touchcancel",r._disableDelayedDrag),Oe(l,"mousemove",r._delayedDragTouchMoveHandler),Oe(l,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&Oe(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(){ut&&to(ut),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;We(e,"mouseup",this._disableDelayedDrag),We(e,"touchend",this._disableDelayedDrag),We(e,"touchcancel",this._disableDelayedDrag),We(e,"mousemove",this._delayedDragTouchMoveHandler),We(e,"touchmove",this._delayedDragTouchMoveHandler),We(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?Oe(document,"pointermove",this._onTouchMove):Oe(document,t?"touchmove":"mousemove",this._onTouchMove):(Oe(ut,"dragend",this),Oe(pt,"dragstart",this._onDragStart));try{document.selection?ro((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(o){}},_dragStarted:function(e,t){if(At=!1,pt&&ut){lt("dragStarted",this,{evt:t}),this.nativeDraggable&&Oe(document,"dragover",Jt);var o=this.options;!e&&Me(ut,o.dragClass,!1),Me(ut,o.ghostClass,!0),Qt.active=this,e&&this._appendGhost(),st({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(St){this._lastX=St.clientX,this._lastY=St.clientY,qt();for(var e=document.elementFromPoint(St.clientX,St.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(St.clientX,St.clientY))!==t;)t=e;if(ut.parentNode[tt]._isOutsideThisEl(e),t)do{if(t[tt]){if(t[tt]._onDragOver({clientX:St.clientX,clientY:St.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Zt()}},_onTouchMove:function(e){if(Ct){var t=this.options,o=t.fallbackTolerance,n=t.fallbackOffset,r=e.touches?e.touches[0]:e,i=ct&&Fe(ct,!0),a=ct&&i&&i.a,l=ct&&i&&i.d,s=$t&&Wt&&qe(Wt),u=(r.clientX-Ct.clientX+n.x)/(a||1)+(s?s[0]-Mt[0]:0)/(a||1),d=(r.clientY-Ct.clientY+n.y)/(l||1)+(s?s[1]-Mt[1]:0)/(l||1);if(!Qt.active&&!At){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===ut)return N(!1);if(f&&i===e.target&&(a=f),a&&(o=Ye(a)),!1!==eo(pt,i,ut,t,a,o,e,!!a))return I(),f&&f.nextSibling?i.insertBefore(ut,f.nextSibling):i.appendChild(ut),dt=i,O(),N(!0)}else if(f&&function(e,t,o){var n=Ye(Ge(o.el,0,o.options,!0)),r=10;return t?e.clientXd+u*i/2:sc-Ot)return-Nt}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,Ht,It===a),0!==v){var k=Ve(ut);do{k-=v,y=dt.children[k]}while(y&&("none"===je(y,"display")||y===ct))}if(0===v||y===a)return N(!1);It=a,Nt=v;var D=a.nextElementSibling,R=!1,E=eo(pt,i,ut,t,a,o,e,R=1===v);if(!1!==E)return 1!==E&&-1!==E||(R=1===E),jt=!0,setTimeout(oo,30),I(),R&&!D?i.appendChild(ut):a.parentNode.insertBefore(ut,R?D:a),C&&Qe(C,0,S-C.scrollTop),dt=ut.parentNode,void 0===b||Ht||(Ot=Math.abs(b-Ye(a)[_])),O(),N(!0)}if(i.contains(ut))return N(!1)}return!1}function T(l,s){lt(l,m,ye({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 eo(pt,i,ut,t,o,Ye(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&&(Me(ut,_t?_t.options.ghostClass:u.options.ghostClass,!1),Me(ut,l.ghostClass,!0)),_t!==m&&m!==Qt.active?_t=m:m===Qt.active&&_t&&(_t=null),p===m&&(m._ignoreWhileAnimating=a),m.animateAll((function(){T("dragOverAnimationComplete"),m._ignoreWhileAnimating=null})),m!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(a===ut&&!ut.animated||a===i&&!a.animated)&&(It=null),l.dragoverBubble||e.rootEl||a===document||(ut.parentNode[tt]._isOutsideThisEl(e.target),!t&&Kt(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),h=!0}function O(){bt=Ve(ut),xt=Ve(ut,l.draggable),st({sortable:m,name:"change",toEl:i,newIndex:bt,newDraggableIndex:xt,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){We(document,"mousemove",this._onTouchMove),We(document,"touchmove",this._onTouchMove),We(document,"pointermove",this._onTouchMove),We(document,"dragover",Kt),We(document,"mousemove",Kt),We(document,"touchmove",Kt)},_offUpEvents:function(){var e=this.el.ownerDocument;We(e,"mouseup",this._onDrop),We(e,"touchend",this._onDrop),We(e,"pointerup",this._onDrop),We(e,"touchcancel",this._onDrop),We(document,"selectstart",this)},_onDrop:function(e){var t=this.el,o=this.options;bt=Ve(ut),xt=Ve(ut,o.draggable),lt("drop",this,{evt:e}),dt=ut&&ut.parentNode,bt=Ve(ut),xt=Ve(ut,o.draggable),Qt.eventCanceled||(At=!1,Ht=!1,Pt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),io(this.cloneId),io(this._dragStartId),this.nativeDraggable&&(We(document,"drop",this),We(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ee&&je(document.body,"user-select",""),je(ut,"transform",""),e&&(Tt&&(e.cancelable&&e.preventDefault(),!o.dropBubble&&e.stopPropagation()),ct&&ct.parentNode&&ct.parentNode.removeChild(ct),(pt===dt||_t&&"clone"!==_t.lastPutMode)&&ft&&ft.parentNode&&ft.parentNode.removeChild(ft),ut&&(this.nativeDraggable&&We(ut,"dragend",this),to(ut),ut.style["will-change"]="",Tt&&!At&&Me(ut,_t?_t.options.ghostClass:this.options.ghostClass,!1),Me(ut,this.options.chosenClass,!1),st({sortable:this,name:"unchoose",toEl:dt,newIndex:null,newDraggableIndex:null,originalEvent:e}),pt!==dt?(bt>=0&&(st({rootEl:dt,name:"add",toEl:dt,fromEl:pt,originalEvent:e}),st({sortable:this,name:"remove",toEl:dt,originalEvent:e}),st({rootEl:dt,name:"sort",toEl:dt,fromEl:pt,originalEvent:e}),st({sortable:this,name:"sort",toEl:dt,originalEvent:e})),_t&&_t.save()):bt!==vt&&bt>=0&&(st({sortable:this,name:"update",toEl:dt,originalEvent:e}),st({sortable:this,name:"sort",toEl:dt,originalEvent:e})),Qt.active&&(null!=bt&&-1!==bt||(bt=vt,xt=yt),st({sortable:this,name:"end",toEl:dt,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){lt("nulling",this),pt=ut=dt=ct=mt=ft=ht=gt=Ct=St=Tt=bt=xt=vt=yt=It=Nt=_t=wt=Qt.dragged=Qt.ghost=Qt.clone=Qt.active=null,Ft.forEach((function(e){e.checked=!0})),Ft.length=kt=Dt=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":ut&&(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<=Qo}(e.length)&&!function(e){if(!Po(e))return!1;var t=Oo(e);return t==Vo||t==qo||t==Uo||t==Zo}(e)}function tn(e,t,o){if(!Po(o))return!1;var n=typeof t;return!!("number"==n?en(o)&&function(e,t){var o=typeof e;return!!(t=null==t?Ko:t)&&("number"==o||"symbol"!=o&&Jo.test(e))&&e>-1&&e%1==0&&e"decorate"==o.mode?o:t.data));return m((()=>{if("decorate"==o.mode){var e=document.getElementById("componentList");const t=Qt.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),V((()=>{t.sort(ln(o.value.length).map((e=>e.toString()))),o.postMessage(e.newIndex,o.value[e.newIndex])}))}})}})),(e,l)=>{const s=f(g("diy-addon-list"),re),u=f(g("diy-graphic-nav"),ie),d=f(g("diy-horz-blank"),ae),c=f(g("diy-hot-area"),le),p=f(g("diy-image-ads"),se),m=f(g("diy-member-info"),ue),h=f(g("diy-notice"),me),_=f(g("diy-rubik-cube"),he),k=f(g("diy-text"),fe),D=T,E=f(g("tabbar"),ve);return r(),i(D,{class:"diy-group",id:"componentList"},{default:a((()=>[(r(!0),v(b,null,y(w(n).value,((e,n)=>(r(),i(D,{key:e.id,onClick:t=>w(o).changeCurrentIndex(n,e),class:x(["draggable-element relative cursor-move",{selected:w(o).currentIndex==n,decorate:"decorate"==w(o).mode}]),style:R(e.pageStyle)},{default:a((()=>["AddonList"==e.componentName?(r(),i(s,{key:0,component:e,index:n,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):S("v-if",!0),"GraphicNav"==e.componentName?(r(),i(u,{key:1,component:e,index:n,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):S("v-if",!0),"HorzBlank"==e.componentName?(r(),i(d,{key:2,component:e,index:n,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):S("v-if",!0),"HotArea"==e.componentName?(r(),i(c,{key:3,component:e,index:n,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):S("v-if",!0),"ImageAds"==e.componentName?(r(),i(p,{key:4,component:e,index:n,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):S("v-if",!0),"MemberInfo"==e.componentName?(r(),i(m,{key:5,component:e,index:n,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):S("v-if",!0),"Notice"==e.componentName?(r(),i(h,{key:6,component:e,index:n,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):S("v-if",!0),"RubikCube"==e.componentName?(r(),i(_,{key:7,component:e,index:n,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):S("v-if",!0),"Text"==e.componentName?(r(),i(k,{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(D,{class:"pt-[20rpx]"}),C(E)],64)):S("v-if",!0)])),_:1})}}}),[["__scopeId","data-v-25dd79c2"]]),un=s({__name:"index",props:["data","pullDownRefreshCount"],setup(e){const t=e;return(e,o)=>{const n=f(g("diy-group"),sn),l=T;return r(),i(l,null,{default:a((()=>[k(" 固定模板示例,我也可以装修 "),S(" 自定义模板渲染 "),C(n,{data:t.data,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["data","pullDownRefreshCount"])])),_:1})}}}),dn=K(s({__name:"index",props:["data","pullDownRefreshCount"],setup(e){const t=e;return(e,o)=>{const n=f(g("fixed-demo-index"),un),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-e2d0896a"]]);export{sn as _,dn as a};