import{_ as e}from"./u-icon.e3aa4770.js";import{V as t,W as o,D as r,h as n,i as a,w as i,S as l,d as s,u,c as d,r as c,aa as p,aD as h,aE as m,p as g,q as f,E as v,F as b,G as y,H as x,m as w,x as _,j as C,l as S,J as D,K as k,n as E,$ as R,t as T,L as I,M as O,aF as N,aG as A,ao as W,X as M,aH as H,ag as P,aI as B,aj as z,Y as j,a0 as F,aJ as X,aK as Y,U as L,a1 as G,ac as U,aL as $}from"./index-849cf30e.js";import{p as q,_ as V}from"./u-image.5cc88b24.js";import{_ as K}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as J}from"./app-link.vue_vue_type_script_setup_true_lang.d62f9cf3.js";import{_ as Z}from"./u-avatar.2111318d.js";import{_ as Q,a as ee}from"./u-tabbar.9997804a.js";const te=K({name:"u--image",mixins:[t,q,o],components:{uvImage:V},emits:["click","error","load"]},[["render",function(e,t,o,s,u,d){const c=r("uvImage");return n(),a(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:i((()=>[l(e.$slots,"loading")])),error:i((()=>[l(e.$slots,"error")])),_:3},8,["src","mode","width","height","shape","radius","lazyLoad","showMenuByLongpress","loadingIcon","errorIcon","showLoading","showError","fade","webp","duration","bgColor","customStyle"])}]]),oe=K(s({__name:"index",props:["component","index","pullDownRefreshCount"],setup(t){const o=t,r=u(),l=d((()=>"decorate"==r.mode?r.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)=>{})),h((()=>{O(),"decorate"==r.mode&&p((()=>l.value),((e,t)=>{e&&"AddonList"==e.componentName&&O()}))}));const O=()=>{"decorate"==r.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?m({}).then((e=>{I.value=e.data})):I.value=l.value.list};return(t,o)=>{const r=g(f("u-icon"),e),l=g(f("u--image"),te),u=T;return n(),a(u,{style:E(w(s))},{default:i((()=>[(n(!0),v(b,null,y(I.value,((e,t)=>(n(),a(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 R({url:o});var o}},{default:i((()=>[e.icon?(n(),a(l,{key:0,width:"120rpx",height:"120rpx",src:w(_)(e.icon),class:"rounded-md overflow-hidden",model:"aspectFill"},{error:i((()=>[C(r,{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:i((()=>[C(u,{class:"text-sm leading-[1.3] using-hidden"},{default:i((()=>[D(k(e.title),1)])),_:2},1024),C(u,{class:"text-xs text-[#999] mt-[8rpx] leading-[1.6] multi-hidden"},{default:i((()=>[D(k(e.desc),1)])),_:2},1024)])),_:2},1024)])),_:2},1032,["class","onClick"])))),128))])),_:1},8,["style"])}}}),[["__scopeId","data-v-a13755df"]]),re=K(s({__name:"index",props:["component","index","pullDownRefresh"],setup(t){const o=t,r=u(),l=d((()=>"decorate"==r.mode?r.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 m=c(0),R=e=>{m.value=e.detail.current},M=(e,t)=>{let o=l.value.pageCount*l.value.rowCount,r=!0;return r=e>=[(t-1)*o]&&e<[t*o],r},H=c("");h((()=>{P(),"decorate"==r.mode&&p((()=>l.value),((e,t)=>{e&&"GraphicNav"==e.componentName&&P()}))}));const P=()=>{var e;"decorate"==r.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),H.value=2*e+"rpx"};return(t,o)=>{const r=I,u=O,d=T,c=g(f("u-icon"),e),p=g(f("app-link"),J),h=N,m=A,P=W;return n(),a(d,{style:E(w(s))},{default:i((()=>[w(l).navTitle?(n(),v("div",{key:0,class:"py-[30rpx] px-[32rpx] text-[30rpx]",style:E({fontWeight:w(l).font.weight,color:w(l).font.color})},k(w(l).navTitle),5)):S("v-if",!0),"vertical"==w(l).layout?(n(),a(d,{key:1,class:"graphic-nav"},{default:i((()=>[(n(!0),v(b,null,y(w(l).list,((e,t)=>(n(),a(d,{class:"graphic-nav-item",key:e.id},{default:i((()=>[C(p,{data:e.link,"custom-class":["flex items-center justify-between py-3 px-4",0==t?"border-t-0":"border-t"]},{default:i((()=>["text"!=w(l).mode?(n(),a(d,{key:0,class:"graphic-img relative flex items-center w-10 h-10 mr-[20rpx]",style:E({width:2*w(l).imageSize+"rpx",height:2*w(l).imageSize+"rpx"})},{default:i((()=>[C(r,{src:w(_)(e.imageUrl),mode:"aspectFill",style:E({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?(n(),a(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:E({color:e.label.textColor,backgroundImage:"linear-gradient("+e.label.bgColorStart+","+e.label.bgColorEnd+")"})},{default:i((()=>[D(k(e.label.text),1)])),_:2},1032,["style"])):S("v-if",!0)])),_:2},1032,["style"])):S("v-if",!0),"img"!=w(l).mode?(n(),a(u,{key:1,class:"graphic-text w-full truncate leading-normal",style:E({fontSize:2*w(l).font.size+"rpx",fontWeight:w(l).font.weight,color:w(l).font.color})},{default:i((()=>[D(k(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?(n(),a(m,{key:2,class:"graphic-nav p-2 box-border relative",circular:"","indicator-dots":!1,style:E({height:H.value}),onChange:R},{default:i((()=>[(n(!0),v(b,null,y(Math.ceil(w(l).list.length/(w(l).pageCount*w(l).rowCount)),((e,t)=>(n(),a(h,{class:"graphic-nav-wrap flex flex-wrap"},{default:i((()=>[(n(!0),v(b,null,y(w(l).list,((t,o)=>(n(),v(b,null,[M(o,e)?(n(),a(d,{class:x(["graphic-nav-item",[w(l).mode]]),key:t.id,style:E({width:100/w(l).rowCount+"%"})},{default:i((()=>[C(p,{data:t.link,"custom-class":"flex flex-col items-center box-border py-2"},{default:i((()=>["text"!=w(l).mode?(n(),a(d,{key:0,class:"graphic-img relative flex items-center justify-center w-10 h-10",style:E({width:2*w(l).imageSize+"rpx",height:2*w(l).imageSize+"rpx"})},{default:i((()=>[C(r,{src:w(_)(t.imageUrl),mode:"aspectFill",style:E({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?(n(),a(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:E({color:t.label.textColor,backgroundImage:"linear-gradient("+t.label.bgColorStart+","+t.label.bgColorEnd+")"})},{default:i((()=>[D(k(t.label.text),1)])),_:2},1032,["style"])):S("v-if",!0)])),_:2},1032,["style"])):S("v-if",!0),"img"!=w(l).mode?(n(),a(u,{key:1,class:x(["graphic-text w-full text-center truncate leading-normal",{"pt-1.5":"text"!=w(l).mode}]),style:E({fontSize:2*w(l).font.size+"rpx",fontWeight:w(l).font.weight,color:w(l).font.color})},{default:i((()=>[D(k(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"])):(n(),a(P,{key:3,"scroll-x":"singleSlide"==w(l).showStyle,class:x(["graphic-nav","graphic-nav-"+w(l).showStyle])},{default:i((()=>[(n(!0),v(b,null,y(w(l).list,((e,t)=>(n(),a(d,{class:x(["graphic-nav-item",{"flex-shrink-0":"singleSlide"==w(l).showStyle}]),key:e.id,style:E({width:100/w(l).rowCount+"%"})},{default:i((()=>[C(p,{data:e.link,"custom-class":"flex flex-col items-center box-border py-2"},{default:i((()=>["text"!=w(l).mode?(n(),a(d,{key:0,class:"graphic-img relative flex items-center justify-center w-10 h-10",style:E({width:2*w(l).imageSize+"rpx",height:2*w(l).imageSize+"rpx"})},{default:i((()=>[C(r,{src:w(_)(e.imageUrl),mode:"aspectFill",style:E({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?(n(),a(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:E({color:e.label.textColor,backgroundImage:"linear-gradient("+e.label.bgColorStart+","+e.label.bgColorEnd+")"})},{default:i((()=>[D(k(e.label.text),1)])),_:2},1032,["style"])):S("v-if",!0)])),_:2},1032,["style"])):S("v-if",!0),"img"!=w(l).mode?(n(),a(u,{key:1,class:x(["graphic-text w-full text-center truncate leading-normal",{"pt-1.5":"text"!=w(l).mode}]),style:E({fontSize:2*w(l).font.size+"rpx",fontWeight:w(l).font.weight,color:w(l).font.color})},{default:i((()=>[D(k(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-681994eb"]]),ne=s({__name:"index",props:["component","index","pullDownRefresh"],setup(e){const t=e,o=u(),r=d((()=>"decorate"==o.mode?o.value[t.index]:t.component)),i=d((()=>{var e="";return e+="height:"+2*r.value.height+"rpx;",r.value.componentBgColor&&(e+="background-color:"+r.value.componentBgColor+";"),e}));return p((()=>t.pullDownRefresh),((e,t)=>{})),(e,t)=>{const o=T;return n(),a(o,{style:E(w(i))},null,8,["style"])}}}),ae=s({__name:"index",props:["component","index","pullDownRefresh"],setup(e){const t=e,o=u(),r=d((()=>"decorate"==o.mode?o.value[t.index]:t.component)),l=d((()=>{var e="";return r.value.componentBgColor&&(e+="background-color:"+r.value.componentBgColor+";"),r.value.topRounded&&(e+="border-top-left-radius:"+2*r.value.topRounded+"rpx;"),r.value.topRounded&&(e+="border-top-right-radius:"+2*r.value.topRounded+"rpx;"),r.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*r.value.bottomRounded+"rpx;"),r.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*r.value.bottomRounded+"rpx;"),e}));h((()=>{s(),p((()=>r.value),((e,t)=>{e&&"HotArea"==e.componentName&&s()}))}));const s=()=>{"decorate"==o.mode&&""==r.value.imageUrl&&(r.value.imageUrl="static/resource/images/diy/figure.png",r.value.imgWidth=690,r.value.imgHeight=330)};return p((()=>t.pullDownRefresh),((e,t)=>{})),(e,t)=>{const s=I,u=g(f("app-link"),J),d=T;return n(),a(d,{style:E(w(l))},{default:i((()=>[C(d,{class:"simple-graph-wrap overflow-hidden relative leading-0"},{default:i((()=>[C(s,{style:E({height:w(r).imgHeight}),src:w(_)(w(r).imageUrl),mode:"widthFix","show-menu-by-longpress":!0,class:"w-full"},null,8,["style","src"]),"decorate"!=w(o).mode?(n(),v(b,{key:0},[S(" 热区功能 "),(n(!0),v(b,null,y(w(r).heatMapData,((e,t)=>(n(),a(u,{data:e.link,"custom-class":"absolute",key:t,style:E({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"])}}}),ie=s({__name:"index",props:["component","index","pullDownRefresh"],setup(e){const t=e,o=u(),r=d((()=>"decorate"==o.mode?o.value[t.index]:t.component)),l=d((()=>{var e="";return r.value.componentBgColor&&(e+="background-color:"+r.value.componentBgColor+";"),e})),s=d((()=>{var e="";return r.value.topRounded&&(e+="border-top-left-radius:"+2*r.value.topRounded+"rpx;"),r.value.topRounded&&(e+="border-top-right-radius:"+2*r.value.topRounded+"rpx;"),r.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*r.value.bottomRounded+"rpx;"),r.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*r.value.bottomRounded+"rpx;"),e}));p((()=>t.pullDownRefresh),((e,t)=>{}));const m=d((()=>2*r.value.imageHeight+"rpx")),x=c(0),S=e=>{x.value=e.detail.current};h((()=>{D(),"decorate"==o.mode&&p((()=>r.value),((e,t)=>{e&&"ImageAds"==e.componentName&&D()}))}));const D=()=>{"decorate"==o.mode&&r.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=g(f("app-link"),J),d=T,c=N,p=A;return n(),a(d,{class:"image-ads",style:E(w(l))},{default:i((()=>[1==w(r).list.length?(n(),a(d,{key:0,class:"leading-0 overflow-hidden",style:E(w(s))},{default:i((()=>[C(u,{data:w(r).list[0].link},{default:i((()=>[C(o,{src:w(_)(w(r).list[0].imageUrl),style:E({height:w(m)}),mode:"heightFix",class:"w-full","show-menu-by-longpress":!0},null,8,["src","style"])])),_:1},8,["data"])])),_:1},8,["style"])):(n(),a(p,{key:1,class:"swiper",style:E({height:w(m)}),autoplay:"true",circular:"true",onChange:S},{default:i((()=>[(n(!0),v(b,null,y(w(r).list,(e=>(n(),a(c,{class:"swiper-item",key:e.id,style:E(w(s))},{default:i((()=>[C(u,{data:e.link},{default:i((()=>[C(d,{class:"item",style:E({height:w(m)})},{default:i((()=>[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"])}}}),le=K(s({__name:"index",props:["component","index","pullDownRefresh"],setup(e){const t=e,o=u(),r=d((()=>"decorate"==o.mode?o.value[t.index]:t.component)),l=d((()=>{var e="";return r.value.componentBgColor&&(e+="background-color:"+r.value.componentBgColor+";"),r.value.bgUrl&&(e+="background-image:url("+_(r.value.bgUrl)+");",e+="background-size: 100%;",e+="background-repeat: no-repeat;"),r.value.topRounded&&(e+="border-top-left-radius:"+2*r.value.topRounded+"rpx;"),r.value.topRounded&&(e+="border-top-right-radius:"+2*r.value.topRounded+"rpx;"),r.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*r.value.bottomRounded+"rpx;"),r.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*r.value.bottomRounded+"rpx;"),e}));p((()=>t.pullDownRefresh),((e,t)=>{}));const s=M(),{query:h}=H(location.href);h.code&&P()&&B({code:h.code}).then((e=>{s.getMemberInfo()}));const m=d((()=>"decorate"==o.mode?{headimg:"",nickname:"昵称",balance:0,point:0,money:0,member_no:"NIU0000021"}:s.info)),v=d((()=>{if(m.value){let e=parseFloat(m.value.balance)+parseFloat(m.value.money);return z(e.toString())}return 0})),b=()=>{F().setLoginBack({url:"/app/pages/member/index"})};c(!1);const y=()=>{P()?F().getAuthCode("snsapi_userinfo"):R({url:"/app/pages/member/personal"})};return(e,t)=>{const o=g(f("u-avatar"),Z),s=T,u=O,d=g(f("app-link"),J);return n(),a(s,{style:E(w(l))},{default:i((()=>[C(s,{class:"pt-[34rpx] member-info"},{default:i((()=>[w(m)?(n(),a(s,{key:0,class:"flex ml-[32rpx] mr-[52rpx] items-center relative"},{default:i((()=>[S(" 唤起获取微信 "),C(o,{src:w(_)(w(m).headimg),size:"55",leftIcon:"none",onClick:y},null,8,["src"]),C(s,{class:"ml-[22rpx]"},{default:i((()=>[C(s,{class:"text-[#222222] truncate w-[430rpx] font-bold text-lg",style:E({color:w(r).textColor})},{default:i((()=>[D(k(w(m).nickname),1)])),_:1},8,["style"]),C(s,{class:"text-[#696B70] text-[24rpx] mt-[10rpx]",style:E({color:w(r).textColor})},{default:i((()=>[D(" UID:"+k(w(m).member_no),1)])),_:1},8,["style"])])),_:1}),C(s,{class:"set-icon flex items-center absolute right-0 top-2"},{default:i((()=>[C(d,{url:"/app/pages/setting/index"},{default:i((()=>[C(u,{class:"iconfont iconshezhi text-[1.6rem] ml-[10rpx]",style:E({color:w(r).textColor})},null,8,["style"])])),_:1})])),_:1})])),_:1})):(n(),a(s,{key:1,class:"flex ml-[32rpx] mr-[52rpx] items-center relative",onClick:b},{default:i((()=>[C(o,{src:"",size:"55"}),C(s,{class:"ml-[22rpx]"},{default:i((()=>[C(s,{class:"text-[#222222] font-bold text-lg",style:E({color:w(r).textColor})},{default:i((()=>[D(k(w(j)("login"))+"/"+k(w(j)("register")),1)])),_:1},8,["style"])])),_:1}),C(s,{class:"set-icon flex items-center absolute right-0 top-2"},{default:i((()=>[C(d,{url:"/app/pages/setting/index"},{default:i((()=>[C(u,{class:"iconfont iconshezhi text-[1.6rem] ml-[10rpx]",style:E({color:w(r).textColor})},null,8,["style"])])),_:1})])),_:1})])),_:1})),C(s,{class:"flex m-[30rpx] mb-0 py-[30rpx] items-center"},{default:i((()=>[C(s,{class:"flex-1 text-center"},{default:i((()=>[C(s,{class:"font-bold"},{default:i((()=>[C(d,{url:w(m)?"/app/pages/member/balance":"","custom-style":{color:w(r).textColor}},{default:i((()=>[D(k(w(v)),1)])),_:1},8,["url","custom-style"])])),_:1}),C(s,{class:"text-sm mt-[10rpx]"},{default:i((()=>[C(d,{url:w(m)?"/app/pages/member/balance":"","custom-style":{color:w(r).textColor}},{default:i((()=>[D(k(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:i((()=>[C(s,{class:"font-bold"},{default:i((()=>[C(d,{url:w(m)?"/app/pages/member/point":"","custom-style":{color:w(r).textColor}},{default:i((()=>{var e;return[D(k(parseInt(null==(e=w(m))?void 0:e.point)||0),1)]})),_:1},8,["url","custom-style"])])),_:1}),C(s,{class:"text-sm mt-[10rpx]"},{default:i((()=>[C(d,{url:w(m)?"/app/pages/member/point":"","custom-style":{color:w(r).textColor}},{default:i((()=>[D(k(w(j)("point")),1)])),_:1},8,["url","custom-style"])])),_:1})])),_:1})])),_:1})])),_:1})])),_:1},8,["style"])}}}),[["__scopeId","data-v-602a7b22"]]),se=K(s({__name:"index",props:["component","index","pullDownRefresh"],setup(e){const t=e,o=u(),r=d((()=>"decorate"==o.mode?o.value[t.index]:t.component)),l=d((()=>{var e="";return r.value.componentBgColor&&(e+="background-color:"+r.value.componentBgColor+";"),r.value.topRounded&&(e+="border-top-left-radius:"+2*r.value.topRounded+"rpx;"),r.value.topRounded&&(e+="border-top-right-radius:"+2*r.value.topRounded+"rpx;"),r.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*r.value.bottomRounded+"rpx;"),r.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*r.value.bottomRounded+"rpx;"),e}));p((()=>t.pullDownRefresh),((e,t)=>{})),h((()=>{s(),p((()=>r.value),((e,t)=>{e&&"RubikCube"==e.componentName&&s()}))}));const s=()=>{"decorate"==o.mode&&r.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% - "+X(2*r.value.imageGap)+"px) / 2)"},"row1-of3":{ratio:3,width:"calc((100% - "+X(4*r.value.imageGap)+"px) / 3)"},"row1-of4":{ratio:4,width:"calc((100% - "+X(6*r.value.imageGap)+"px) / 4)"}};r.value.list.forEach(((e,t)=>{e.pageItemStyle=((e,t)=>{var o="";return"right"==r.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*r.value.topElementRounded+"rpx;",o+="border-top-right-radius:"+2*r.value.topElementRounded+"rpx;",o+="border-bottom-left-radius:"+2*r.value.bottomElementRounded+"rpx;",o+="border-bottom-right-radius:"+2*r.value.bottomElementRounded+"rpx;"})),o})(r.value.mode,t)})),e[r.value.mode]?m(e[r.value.mode]):"row2-lt-of2-rt"==r.value.mode?D():"row1-lt-of2-rt"==r.value.mode?k():"row1-tp-of2-bm"==r.value.mode?R():"row1-lt-of1-tp-of2-bm"==r.value.mode&&O()},m=e=>{Y({success:t=>{let o=0;r.value.list.forEach(((n,a)=>{var i=n.imgHeight/n.imgWidth;let l=t.windowWidth-X(2*r.value.margin.both);r.value.imageGap>0&&(l-=X(e.ratio*r.value.imageGap*2)),n.imgWidth=l/e.ratio,n.imgHeight=n.imgWidth*i,(0==o||o{t.widthStyle=e.width,t.imgHeight=o}))}})},D=()=>{Y({success:e=>{let t=0,o=0;r.value.list.forEach(((n,a)=>{var i=n.imgHeight/n.imgWidth;n.imgWidth=e.windowWidth,n.imgWidth-=X(4*r.value.margin.both),r.value.imageGap>0&&(n.imgWidth-=X(2*r.value.imageGap)),n.imgWidth=n.imgWidth/2,n.imgHeight=n.imgWidth*i,a<=1?(0==t||t1&&(0==o||o{e.imgWidth="calc((100% - "+X(2*r.value.imageGap)+"px) / 2)",e.widthStyle=e.imgWidth,n<=1?e.imgHeight=t:n>1&&(e.imgHeight=o)}))}})},k=()=>{let e=0;r.value.list[1].imgWidth,r.value.list[2].imgWidth,Y({success:t=>{r.value.list.forEach(((o,n)=>{if(0==n){var a=o.imgHeight/o.imgWidth;o.imgWidth=t.windowWidth-X(4*r.value.margin.both)-X(2*r.value.imageGap),o.imgWidth=o.imgWidth/2,o.imgHeight=o.imgWidth*a,e=(o.imgHeight-X(2*r.value.imageGap))/2,o.imgWidth+="px"}else o.imgWidth=r.value.list[0].imgWidth,o.imgHeight=e}))}})},R=()=>{var e=0;Y({success:t=>{r.value.list.forEach(((o,n)=>{var a=o.imgHeight/o.imgWidth;0==n?o.imgWidth=t.windowWidth-X(4*r.value.margin.both):n>0&&(o.imgWidth=t.windowWidth-X(4*r.value.margin.both)-X(2*r.value.imageGap),o.imgWidth=o.imgWidth/2),o.imgHeight=o.imgWidth*a,n>0&&(0==e||e{t.imgWidth+="px",t.widthStyle=t.imgWidth,o>0&&(t.imgHeight=e)}))}})},O=()=>{Y({success:e=>{r.value.list.forEach(((t,o)=>{if(0==o){var n=t.imgHeight/t.imgWidth;t.imgWidth=e.windowWidth-X(4*r.value.margin.both)-X(2*r.value.imageGap),t.imgWidth=t.imgWidth/2,t.imgHeight=t.imgWidth*n}else 1==o?(t.imgWidth=r.value.list[0].imgWidth,t.imgHeight=(r.value.list[0].imgHeight-X(2*r.value.imageGap))/2):o>1&&(t.imgWidth=(r.value.list[0].imgWidth-X(2*r.value.imageGap))/2,t.imgHeight=r.value.list[1].imgHeight)})),r.value.list.forEach(((e,t)=>{e.imgWidth+="px",e.imgHeight}))}})};return(e,t)=>{const s=I,u=g(f("app-link"),J),d=T;return n(),a(d,{class:x(["rubik-cube",w(o).mode]),style:E(w(l))},{default:i((()=>[S(" 1左2右 "),"row1-lt-of2-rt"==w(r).mode?(n(),v(b,{key:0},[C(d,{class:"template-left"},{default:i((()=>[C(u,{data:w(r).list[0].link,"custom-class":["item",w(r).mode],style:E({marginRight:2*w(r).imageGap+"rpx",width:w(r).list[0].imgWidth,height:w(r).list[0].imgHeight+"px"})},{default:i((()=>[C(s,{src:w(_)(w(r).list[0].imageUrl),mode:"scaleToFill",style:E(w(r).list[0].pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])])),_:1},8,["data","custom-class","style"])])),_:1}),C(d,{class:"template-right"},{default:i((()=>[(n(!0),v(b,null,y(w(r).list,((e,t)=>(n(),v(b,{key:t},[t>0?(n(),a(u,{key:0,data:e.link,"custom-class":["item",w(r).mode],style:E({marginBottom:2*w(r).imageGap+"rpx",width:e.imgWidth,height:e.imgHeight+"px"})},{default:i((()=>[C(s,{src:w(_)(e.imageUrl),mode:"scaleToFill",style:E(e.pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])])),_:2},1032,["data","custom-class","style"])):S("v-if",!0)],64)))),128))])),_:1})],64)):"row1-lt-of1-tp-of2-bm"==w(r).mode?(n(),v(b,{key:1},[S(" 1左3右 "),C(d,{class:"template-left"},{default:i((()=>[C(u,{data:w(r).list[0].link,"custom-class":["item",w(r).mode],style:E({marginRight:2*w(r).imageGap+"rpx",width:w(r).list[0].imgWidth,height:w(r).list[0].imgHeight+"px"})},{default:i((()=>[C(s,{src:w(_)(w(r).list[0].imageUrl),mode:"scaleToFill",style:E(w(r).list[0].pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])])),_:1},8,["data","custom-class","style"])])),_:1}),C(d,{class:"template-right"},{default:i((()=>[C(u,{data:w(r).list[1].link,"custom-class":["item",w(r).mode],style:E({marginBottom:2*w(r).imageGap+"rpx",width:w(r).list[1].imgWidth,height:w(r).list[1].imgHeight+"px"})},{default:i((()=>[C(s,{src:w(_)(w(r).list[1].imageUrl),mode:"scaleToFill",style:E(w(r).list[1].pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])])),_:1},8,["data","custom-class","style"]),C(d,{class:"template-bottom"},{default:i((()=>[(n(!0),v(b,null,y(w(r).list,((e,t)=>(n(),v(b,{key:t},[t>1?(n(),a(u,{key:0,data:e.link,"custom-class":["item",w(r).mode],style:E({marginRight:2*w(r).imageGap+"rpx",width:e.imgWidth,height:e.imgHeight+"px"})},{default:i((()=>[C(s,{src:w(_)(e.imageUrl),mode:"scaleToFill",style:E(e.pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])])),_:2},1032,["data","custom-class","style"])):S("v-if",!0)],64)))),128))])),_:1})])),_:1})],64)):(n(!0),v(b,{key:2},y(w(r).list,((e,t)=>(n(),a(u,{"custom-class":["item",w(r).mode],key:t,data:e.link,style:E({marginRight:2*w(r).imageGap+"rpx",marginBottom:2*w(r).imageGap+"rpx",width:e.widthStyle,height:e.imgHeight+"px"})},{default:i((()=>[C(s,{src:w(_)(e.imageUrl),mode:"scaleToFill",style:E(e.pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])])),_:2},1032,["custom-class","data","style"])))),128))])),_:1},8,["class","style"])}}}),[["__scopeId","data-v-9062d5df"]]),ue=K(s({__name:"index",props:["component","index","pullDownRefresh"],setup(t){const o=t,r=u(),l=d((()=>"decorate"==r.mode?r.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 r=T,u=g(f("app-link"),J),d=O,c=g(f("u-icon"),e);return n(),a(r,{class:"diy-text",style:E(w(s))},{default:i((()=>["style-1"==w(l).style?(n(),a(r,{key:0,class:"p-[20rpx]"},{default:i((()=>[C(u,{data:w(l).link},{default:i((()=>[C(r,{style:E({fontSize:2*w(l).fontSize+"rpx",color:w(l).textColor,fontWeight:w(l).fontWeight,textAlign:w(l).textAlign})},{default:i((()=>[D(k(w(l).text),1)])),_:1},8,["style"])])),_:1},8,["data"])])),_:1})):S("v-if",!0),"style-2"==w(l).style?(n(),a(r,{key:1,class:"p-[20rpx] flex items-center"},{default:i((()=>[C(u,{data:w(l).link},{default:i((()=>[C(r,{class:"max-w-[200rpx] truncate",style:E({fontSize:2*w(l).fontSize+"rpx",color:w(l).textColor,fontWeight:w(l).fontWeight})},{default:i((()=>[D(k(w(l).text),1)])),_:1},8,["style"])])),_:1},8,["data"]),C(d,{class:"ml-[16rpx] max-w-[300rpx] truncate",style:E({color:w(l).subTitle.color,fontSize:2*w(l).subTitle.fontSize+"rpx"})},{default:i((()=>[D(k(w(l).subTitle.text),1)])),_:1},8,["style"]),w(l).more.isShow?(n(),a(r,{key:0,class:"ml-auto text-right",style:E({color:w(l).more.color})},{default:i((()=>[C(u,{data:w(l).more.link,"custom-class":"flex items-center"},{default:i((()=>[C(d,{class:"max-w-[200rpx] truncate text-[24rpx] mr-[8rpx]"},{default:i((()=>[D(k(w(l).more.text),1)])),_:1}),C(c,{name:"arrow-right",size:"12",style:E({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-6f3db3eb"]]);const de=K({name:"u-tabbar-item",mixins:[t,o,{props:{name:{type:[String,Number,null],default:L.tabbarItem.name},icon:{icon:String,default:L.tabbarItem.icon},badge:{type:[String,Number,null],default:L.tabbarItem.badge},dot:{type:Boolean,default:L.tabbarItem.dot},text:{type:String,default:L.tabbarItem.text},badgeStyle:{type:[Object,String],default:L.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,r,s,u,d){const c=g(f("u-icon"),e),p=g(f("u-badge"),Q),h=T,m=O;return n(),a(h,{class:"u-tabbar-item",style:E([t.$u.addStyle(t.customStyle)]),onClick:d.clickHandler},{default:i((()=>[C(h,{class:"u-tabbar-item__icon"},{default:i((()=>[t.icon?(n(),a(c,{key:0,name:t.icon,color:u.isActive?u.parentData.activeColor:u.parentData.inactiveColor,size:20},null,8,["name","color"])):(n(),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(m,{class:"u-tabbar-item__text",style:E({color:u.isActive?u.parentData.activeColor:u.parentData.inactiveColor})},{default:i((()=>[D(k(t.text),1)])),_:1},8,["style"])]),!0)])),_:3},8,["style","onClick"])}],["__scopeId","data-v-b5faebd4"]]),ce=K(s({__name:"tabbar",setup(e){const t=d((()=>G().tabbar)),o=d((()=>"/"+U())),r=e=>{R({url:`${e}`})};return(e,l)=>{const s=g(f("u-tabbar-item"),de),u=g(f("u-tabbar"),ee),d=T;return n(),v(b,null,[w(t)?(n(),a(u,{key:0,value:w(o),onChange:r,zIndex:"9999",fixed:!0,placeholder:!0,safeAreaInsetBottom:!0,"inactive-color":w(t).textColor,"active-color":w(t).textHoverColor},{default:i((()=>[(n(!0),v(b,null,y(w(t).list,(e=>(n(),v(b,null,[1==w(t).type?(n(),a(s,{key:0,style:E({"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?(n(),a(s,{key:1,style:E({"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?(n(),a(s,{key:2,style:E({"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-6d08215d"]]); /**! * Sortable 1.15.0 * @author RubaXa * @author owenm * @license MIT */ function pe(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function he(e){for(var t=1;t=0||(n[o]=e[o]);return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function be(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var ye=be(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),xe=be(/Edge/i),we=be(/firefox/i),_e=be(/safari/i)&&!be(/chrome/i)&&!be(/android/i),Ce=be(/iP(ad|od|hone)/i),Se=be(/chrome/i)&&be(/android/i),De={capture:!1,passive:!1};function ke(e,t,o){e.addEventListener(t,o,!ye&&De)}function Ee(e,t,o){e.removeEventListener(t,o,!ye&&De)}function Re(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 Te(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Ie(e,t,o,r){if(e){o=o||document;do{if(null!=t&&(">"===t[0]?e.parentNode===o&&Re(e,t):Re(e,t))||r&&e===o)return e;if(e===o)break}while(e=Te(e))}return null}var Oe,Ne=/\s+/g;function Ae(e,t,o){if(e&&t)if(e.classList)e.classList[o?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(Ne," ").replace(" "+t+" "," ");e.className=(r+(o?" "+t:"")).replace(Ne," ")}}function We(e,t,o){var r=e&&e.style;if(r){if(void 0===o)return document.defaultView&&document.defaultView.getComputedStyle?o=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(o=e.currentStyle),void 0===t?o:o[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=o+("string"==typeof o?"":"px")}}function Me(e,t){var o="";if("string"==typeof e)o=e;else do{var r=We(e,"transform");r&&"none"!==r&&(o=r+" "+o)}while(!t&&(e=e.parentNode));var n=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return n&&new n(o)}function He(e,t,o){if(e){var r=e.getElementsByTagName(t),n=0,a=r.length;if(o)for(;n=a:n<=a))return r;if(r===Pe())break;r=Le(r,!1)}return!1}function je(e,t,o,r){for(var n=0,a=0,i=e.children;a2&&void 0!==arguments[2]?arguments[2]:{},r=o.evt,n=ve(o,et);Qe.pluginEvent.bind($t)(e,t,he({dragEl:rt,parentEl:nt,ghostEl:at,rootEl:it,nextEl:lt,lastDownEl:st,cloneEl:ut,cloneHidden:dt,dragStarted:Ct,putSortable:ft,activeSortable:$t.active,originalEvent:r,oldIndex:ct,oldDraggableIndex:ht,newIndex:pt,newDraggableIndex:mt,hideGhostForTarget:Yt,unhideGhostForTarget:Lt,cloneNowHidden:function(){dt=!0},cloneNowShown:function(){dt=!1},dispatchSortableEvent:function(e){ot({sortable:t,name:e,originalEvent:r})}},n))};function ot(e){!function(e){var t=e.sortable,o=e.rootEl,r=e.name,n=e.targetEl,a=e.cloneEl,i=e.toEl,l=e.fromEl,s=e.oldIndex,u=e.newIndex,d=e.oldDraggableIndex,c=e.newDraggableIndex,p=e.originalEvent,h=e.putSortable,m=e.extraEventProperties;if(t=t||o&&o[Ve]){var g,f=t.options,v="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||ye||xe?(g=document.createEvent("Event")).initEvent(r,!0,!0):g=new CustomEvent(r,{bubbles:!0,cancelable:!0}),g.to=i||o,g.from=l||o,g.item=n||o,g.clone=a,g.oldIndex=s,g.newIndex=u,g.oldDraggableIndex=d,g.newDraggableIndex=c,g.originalEvent=p,g.pullMode=h?h.lastPutMode:void 0;var b=he(he({},m),Qe.getEventProperties(r,t));for(var y in b)g[y]=b[y];o&&o.dispatchEvent(g),f[v]&&f[v].call(t,g)}}(he({putSortable:ft,cloneEl:ut,targetEl:rt,rootEl:it,oldIndex:ct,oldDraggableIndex:ht,newIndex:pt,newDraggableIndex:mt},e))}var rt,nt,at,it,lt,st,ut,dt,ct,pt,ht,mt,gt,ft,vt,bt,yt,xt,wt,_t,Ct,St,Dt,kt,Et,Rt=!1,Tt=!1,It=[],Ot=!1,Nt=!1,At=[],Wt=!1,Mt=[],Ht="undefined"!=typeof document,Pt=Ce,Bt=xe||ye?"cssFloat":"float",zt=Ht&&!Se&&!Ce&&"draggable"in document.createElement("div"),jt=function(){if(Ht){if(ye)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Ft=function(e,t){var o=We(e),r=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),n=je(e,0,t),a=je(e,1,t),i=n&&We(n),l=a&&We(a),s=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+Be(n).width,u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Be(a).width;if("flex"===o.display)return"column"===o.flexDirection||"column-reverse"===o.flexDirection?"vertical":"horizontal";if("grid"===o.display)return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(n&&i.float&&"none"!==i.float){var d="left"===i.float?"left":"right";return!a||"both"!==l.clear&&l.clear!==d?"horizontal":"vertical"}return n&&("block"===i.display||"flex"===i.display||"table"===i.display||"grid"===i.display||s>=r&&"none"===o[Bt]||a&&"none"===o[Bt]&&s+u>r)?"vertical":"horizontal"},Xt=function(e){function t(e,o){return function(r,n,a,i){var l=r.options.group.name&&n.options.group.name&&r.options.group.name===n.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(r,n,a,i),o)(r,n,a,i);var s=(o?r:n).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var o={},r=e.group;r&&"object"==me(r)||(r={name:r}),o.name=r.name,o.checkPull=t(r.pull,!0),o.checkPut=t(r.put),o.revertClone=r.revertClone,e.group=o},Yt=function(){!jt&&at&&We(at,"display","none")},Lt=function(){!jt&&at&&We(at,"display","")};Ht&&!Se&&document.addEventListener("click",(function(e){if(Tt)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Tt=!1,!1}),!0);var Gt=function(e){if(rt){e=e.touches?e.touches[0]:e;var t=(n=e.clientX,a=e.clientY,It.some((function(e){var t=e[Ve].options.emptyInsertThreshold;if(t&&!Fe(e)){var o=Be(e),r=n>=o.left-t&&n<=o.right+t,l=a>=o.top-t&&a<=o.bottom+t;return r&&l?i=e:void 0}})),i);if(t){var o={};for(var r in e)e.hasOwnProperty(r)&&(o[r]=e[r]);o.target=o.rootEl=t,o.preventDefault=void 0,o.stopPropagation=void 0,t[Ve]._onDragOver(o)}}var n,a,i},Ut=function(e){rt&&rt.parentNode[Ve]._isOutsideThisEl(e.target)};function $t(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=fe({},t),e[Ve]=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 Ft(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!==$t.supportPointer&&"PointerEvent"in window&&!_e,emptyInsertThreshold:5};for(var r in Qe.initializePlugins(this,e,o),o)!(r in t)&&(t[r]=o[r]);for(var n in Xt(t),this)"_"===n.charAt(0)&&"function"==typeof this[n]&&(this[n]=this[n].bind(this));this.nativeDraggable=!t.forceFallback&&zt,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?ke(e,"pointerdown",this._onTapStart):(ke(e,"mousedown",this._onTapStart),ke(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(ke(e,"dragover",this),ke(e,"dragenter",this)),It.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),fe(this,Ke())}function qt(e,t,o,r,n,a,i,l){var s,u,d=e[Ve],c=d.options.onMove;return!window.CustomEvent||ye||xe?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=o,s.draggedRect=r,s.related=n||t,s.relatedRect=a||Be(t),s.willInsertAfter=l,s.originalEvent=i,e.dispatchEvent(s),c&&(u=c.call(d,s,i)),u}function Vt(e){e.draggable=!1}function Kt(){Wt=!1}function Jt(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,o=t.length,r=0;o--;)r+=t.charCodeAt(o);return r.toString(36)}function Zt(e){return setTimeout(e,0)}function Qt(e){return clearTimeout(e)}$t.prototype={constructor:$t,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(St=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,rt):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,o=this.el,r=this.options,n=r.preventOnFilter,a=e.type,i=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(i||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,u=r.filter;if(function(e){Mt.length=0;var t=e.getElementsByTagName("input"),o=t.length;for(;o--;){var r=t[o];r.checked&&Mt.push(r)}}(o),!rt&&!(/mousedown|pointerdown/.test(a)&&0!==e.button||r.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!_e||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=Ie(l,r.draggable,o,!1))&&l.animated||st===l)){if(ct=Xe(l),ht=Xe(l,r.draggable),"function"==typeof u){if(u.call(this,e,l,this))return ot({sortable:t,rootEl:s,name:"filter",targetEl:l,toEl:o,fromEl:o}),tt("filter",t,{evt:e}),void(n&&e.cancelable&&e.preventDefault())}else if(u&&(u=u.split(",").some((function(r){if(r=Ie(s,r.trim(),o,!1))return ot({sortable:t,rootEl:r,name:"filter",targetEl:l,fromEl:o,toEl:o}),tt("filter",t,{evt:e}),!0}))))return void(n&&e.cancelable&&e.preventDefault());r.handle&&!Ie(s,r.handle,o,!1)||this._prepareDragStart(e,i,l)}}},_prepareDragStart:function(e,t,o){var r,n=this,a=n.el,i=n.options,l=a.ownerDocument;if(o&&!rt&&o.parentNode===a){var s=Be(o);if(it=a,nt=(rt=o).parentNode,lt=rt.nextSibling,st=o,gt=i.group,$t.dragged=rt,vt={target:rt,clientX:(t||e).clientX,clientY:(t||e).clientY},wt=vt.clientX-s.left,_t=vt.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,rt.style["will-change"]="all",r=function(){tt("delayEnded",n,{evt:e}),$t.eventCanceled?n._onDrop():(n._disableDelayedDragEvents(),!we&&n.nativeDraggable&&(rt.draggable=!0),n._triggerDragStart(e,t),ot({sortable:n,name:"choose",originalEvent:e}),Ae(rt,i.chosenClass,!0))},i.ignore.split(",").forEach((function(e){He(rt,e.trim(),Vt)})),ke(l,"dragover",Gt),ke(l,"mousemove",Gt),ke(l,"touchmove",Gt),ke(l,"mouseup",n._onDrop),ke(l,"touchend",n._onDrop),ke(l,"touchcancel",n._onDrop),we&&this.nativeDraggable&&(this.options.touchStartThreshold=4,rt.draggable=!0),tt("delayStart",this,{evt:e}),!i.delay||i.delayOnTouchOnly&&!t||this.nativeDraggable&&(xe||ye))r();else{if($t.eventCanceled)return void this._onDrop();ke(l,"mouseup",n._disableDelayedDrag),ke(l,"touchend",n._disableDelayedDrag),ke(l,"touchcancel",n._disableDelayedDrag),ke(l,"mousemove",n._delayedDragTouchMoveHandler),ke(l,"touchmove",n._delayedDragTouchMoveHandler),i.supportPointer&&ke(l,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(r,i.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(){rt&&Vt(rt),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Ee(e,"mouseup",this._disableDelayedDrag),Ee(e,"touchend",this._disableDelayedDrag),Ee(e,"touchcancel",this._disableDelayedDrag),Ee(e,"mousemove",this._delayedDragTouchMoveHandler),Ee(e,"touchmove",this._delayedDragTouchMoveHandler),Ee(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?ke(document,"pointermove",this._onTouchMove):ke(document,t?"touchmove":"mousemove",this._onTouchMove):(ke(rt,"dragend",this),ke(it,"dragstart",this._onDragStart));try{document.selection?Zt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(o){}},_dragStarted:function(e,t){if(Rt=!1,it&&rt){tt("dragStarted",this,{evt:t}),this.nativeDraggable&&ke(document,"dragover",Ut);var o=this.options;!e&&Ae(rt,o.dragClass,!1),Ae(rt,o.ghostClass,!0),$t.active=this,e&&this._appendGhost(),ot({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(bt){this._lastX=bt.clientX,this._lastY=bt.clientY,Yt();for(var e=document.elementFromPoint(bt.clientX,bt.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(bt.clientX,bt.clientY))!==t;)t=e;if(rt.parentNode[Ve]._isOutsideThisEl(e),t)do{if(t[Ve]){if(t[Ve]._onDragOver({clientX:bt.clientX,clientY:bt.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Lt()}},_onTouchMove:function(e){if(vt){var t=this.options,o=t.fallbackTolerance,r=t.fallbackOffset,n=e.touches?e.touches[0]:e,a=at&&Me(at,!0),i=at&&a&&a.a,l=at&&a&&a.d,s=Pt&&Et&&Ye(Et),u=(n.clientX-vt.clientX+r.x)/(i||1)+(s?s[0]-At[0]:0)/(i||1),d=(n.clientY-vt.clientY+r.y)/(l||1)+(s?s[1]-At[1]:0)/(l||1);if(!$t.active&&!Rt){if(o&&Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))r.right+n||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+n}(e,n,this)&&!g.animated){if(g===rt)return O(!1);if(g&&a===e.target&&(i=g),i&&(o=Be(i)),!1!==qt(it,a,rt,t,i,o,e,!!i))return I(),g&&g.nextSibling?a.insertBefore(rt,g.nextSibling):a.appendChild(rt),nt=a,N(),O(!0)}else if(g&&function(e,t,o){var r=Be(je(o.el,0,o.options,!0)),n=10;return t?e.clientXd+u*a/2:sc-kt)return-Dt}else if(s>d+u*(1-n)/2&&sc-u*a/2))return s>d+u/2?1:-1;return 0}(e,i,o,n,w?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Nt,St===i),0!==v){var D=Xe(rt);do{D-=v,y=nt.children[D]}while(y&&("none"===We(y,"display")||y===at))}if(0===v||y===i)return O(!1);St=i,Dt=v;var k=i.nextElementSibling,E=!1,R=qt(it,a,rt,t,i,o,e,E=1===v);if(!1!==R)return 1!==R&&-1!==R||(E=1===R),Wt=!0,setTimeout(Kt,30),I(),E&&!k?a.appendChild(rt):i.parentNode.insertBefore(rt,E?k:i),C&&$e(C,0,S-C.scrollTop),nt=rt.parentNode,void 0===b||Nt||(kt=Math.abs(b-Be(i)[_])),N(),O(!0)}if(a.contains(rt))return O(!1)}return!1}function T(l,s){tt(l,h,he({evt:e,isOwner:d,axis:n?"vertical":"horizontal",revert:r,dragRect:t,targetRect:o,canSort:c,fromSortable:p,target:i,completed:O,onMove:function(o,r){return qt(it,a,rt,t,o,Be(o),e,r)},changed:N},s))}function I(){T("dragOverAnimationCapture"),h.captureAnimationState(),h!==p&&p.captureAnimationState()}function O(t){return T("dragOverCompleted",{insertion:t}),t&&(d?u._hideClone():u._showClone(h),h!==p&&(Ae(rt,ft?ft.options.ghostClass:u.options.ghostClass,!1),Ae(rt,l.ghostClass,!0)),ft!==h&&h!==$t.active?ft=h:h===$t.active&&ft&&(ft=null),p===h&&(h._ignoreWhileAnimating=i),h.animateAll((function(){T("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(i===rt&&!rt.animated||i===a&&!i.animated)&&(St=null),l.dragoverBubble||e.rootEl||i===document||(rt.parentNode[Ve]._isOutsideThisEl(e.target),!t&&Gt(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function N(){pt=Xe(rt),mt=Xe(rt,l.draggable),ot({sortable:h,name:"change",toEl:a,newIndex:pt,newDraggableIndex:mt,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){Ee(document,"mousemove",this._onTouchMove),Ee(document,"touchmove",this._onTouchMove),Ee(document,"pointermove",this._onTouchMove),Ee(document,"dragover",Gt),Ee(document,"mousemove",Gt),Ee(document,"touchmove",Gt)},_offUpEvents:function(){var e=this.el.ownerDocument;Ee(e,"mouseup",this._onDrop),Ee(e,"touchend",this._onDrop),Ee(e,"pointerup",this._onDrop),Ee(e,"touchcancel",this._onDrop),Ee(document,"selectstart",this)},_onDrop:function(e){var t=this.el,o=this.options;pt=Xe(rt),mt=Xe(rt,o.draggable),tt("drop",this,{evt:e}),nt=rt&&rt.parentNode,pt=Xe(rt),mt=Xe(rt,o.draggable),$t.eventCanceled||(Rt=!1,Nt=!1,Ot=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Qt(this.cloneId),Qt(this._dragStartId),this.nativeDraggable&&(Ee(document,"drop",this),Ee(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),_e&&We(document.body,"user-select",""),We(rt,"transform",""),e&&(Ct&&(e.cancelable&&e.preventDefault(),!o.dropBubble&&e.stopPropagation()),at&&at.parentNode&&at.parentNode.removeChild(at),(it===nt||ft&&"clone"!==ft.lastPutMode)&&ut&&ut.parentNode&&ut.parentNode.removeChild(ut),rt&&(this.nativeDraggable&&Ee(rt,"dragend",this),Vt(rt),rt.style["will-change"]="",Ct&&!Rt&&Ae(rt,ft?ft.options.ghostClass:this.options.ghostClass,!1),Ae(rt,this.options.chosenClass,!1),ot({sortable:this,name:"unchoose",toEl:nt,newIndex:null,newDraggableIndex:null,originalEvent:e}),it!==nt?(pt>=0&&(ot({rootEl:nt,name:"add",toEl:nt,fromEl:it,originalEvent:e}),ot({sortable:this,name:"remove",toEl:nt,originalEvent:e}),ot({rootEl:nt,name:"sort",toEl:nt,fromEl:it,originalEvent:e}),ot({sortable:this,name:"sort",toEl:nt,originalEvent:e})),ft&&ft.save()):pt!==ct&&pt>=0&&(ot({sortable:this,name:"update",toEl:nt,originalEvent:e}),ot({sortable:this,name:"sort",toEl:nt,originalEvent:e})),$t.active&&(null!=pt&&-1!==pt||(pt=ct,mt=ht),ot({sortable:this,name:"end",toEl:nt,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){tt("nulling",this),it=rt=nt=at=lt=ut=st=dt=vt=bt=Ct=pt=mt=ct=ht=St=Dt=ft=gt=$t.dragged=$t.ghost=$t.clone=$t.active=null,Mt.forEach((function(e){e.checked=!0})),Mt.length=yt=xt=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":rt&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],o=this.el.children,r=0,n=o.length,a=this.options;r-1&&e%1==0&&e<=$o}(e.length)&&!function(e){if(!Oo(e))return!1;var t=ko(e);return t==Xo||t==Yo||t==Fo||t==Lo}(e)}function Vo(e,t,o){if(!Oo(o))return!1;var r=typeof t;return!!("number"==r?qo(o)&&function(e,t){var o=typeof e;return!!(t=null==t?Go:t)&&("number"==o||"symbol"!=o&&Uo.test(e))&&e>-1&&e%1==0&&e"decorate"==o.mode?o:t.data));return h((()=>{if("decorate"==o.mode){var e=document.getElementById("componentList");const t=$t.create(e,{group:"draggable-element",animation:200,onEnd:e=>{let r=o.value[e.oldIndex];o.value.splice(e.oldIndex,1),o.value.splice(e.newIndex,0,r),$((()=>{t.sort(er(o.value.length).map((e=>e.toString()))),o.postMessage(e.newIndex,o.value[e.newIndex])}))}})}})),(e,l)=>{const s=g(f("diy-addon-list"),oe),u=g(f("diy-graphic-nav"),re),d=g(f("diy-horz-blank"),ne),c=g(f("diy-hot-area"),ae),p=g(f("diy-image-ads"),ie),h=g(f("diy-member-info"),le),m=g(f("diy-rubik-cube"),se),_=g(f("diy-text"),ue),D=T,k=g(f("tabbar"),ce);return n(),a(D,{class:"diy-group",id:"componentList"},{default:i((()=>[(n(!0),v(b,null,y(w(r).value,((e,r)=>(n(),a(D,{key:e.id,onClick:t=>w(o).changeCurrentIndex(r,e),class:x(["draggable-element relative cursor-move",{selected:w(o).currentIndex==r,decorate:"decorate"==w(o).mode}]),style:E(e.pageStyle)},{default:i((()=>["AddonList"==e.componentName?(n(),a(s,{key:0,component:e,index:r,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):S("v-if",!0),"GraphicNav"==e.componentName?(n(),a(u,{key:1,component:e,index:r,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):S("v-if",!0),"HorzBlank"==e.componentName?(n(),a(d,{key:2,component:e,index:r,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):S("v-if",!0),"HotArea"==e.componentName?(n(),a(c,{key:3,component:e,index:r,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):S("v-if",!0),"ImageAds"==e.componentName?(n(),a(p,{key:4,component:e,index:r,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):S("v-if",!0),"MemberInfo"==e.componentName?(n(),a(h,{key:5,component:e,index:r,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):S("v-if",!0),"RubikCube"==e.componentName?(n(),a(m,{key:6,component:e,index:r,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):S("v-if",!0),"Text"==e.componentName?(n(),a(_,{key:7,component:e,index:r,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):S("v-if",!0)])),_:2},1032,["onClick","class","style"])))),128)),""==w(o).mode&&w(r).global.bottomTabBarSwitch?(n(),v(b,{key:0},[C(D,{class:"pt-[20rpx]"}),C(k)],64)):S("v-if",!0)])),_:1})}}}),[["__scopeId","data-v-8281e8db"]]),or=s({__name:"index",props:["data","pullDownRefresh"],setup(e){const t=e;return(e,o)=>{const r=g(f("diy-group"),tr),l=T;return n(),a(l,null,{default:i((()=>[D(" 固定模板示例,我也可以装修 "),S(" 自定义模板渲染 "),C(r,{data:t.data,pullDownRefresh:t.pullDownRefresh},null,8,["data","pullDownRefresh"])])),_:1})}}}),rr=K(s({__name:"index",props:["data","pullDownRefreshCount"],setup(e){const t=e;return(e,o)=>{const r=g(f("fixed-demo-index"),or),l=T;return n(),a(l,{class:"fixed-group"},{default:i((()=>["demo-index"==t.data.global.component?(n(),a(r,{key:0,data:t.data,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["data","pullDownRefreshCount"])):S("v-if",!0)])),_:1})}}}),[["__scopeId","data-v-aba3c6f6"]]);export{tr as _,rr as a};