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