9 lines
72 KiB
JavaScript
9 lines
72 KiB
JavaScript
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<n.imgHeight)&&(o=n.imgHeight)})),r.value.list.forEach(((t,r)=>{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||t<n.imgHeight)&&(t=n.imgHeight):a>1&&(0==o||o<n.imgHeight)&&(o=n.imgHeight)})),r.value.list.forEach(((e,n)=>{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<o.imgHeight)&&(e=o.imgHeight)})),r.value.list.forEach(((t,o)=>{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 <trash@rubaxa.org>
|
||
* @author owenm <owen23355@gmail.com>
|
||
* @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<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?pe(Object(o),!0).forEach((function(t){ge(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):pe(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function me(e){return(me="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 ge(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function fe(){return fe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},fe.apply(this,arguments)}function ve(e,t){if(null==e)return{};var o,r,n=function(e,t){if(null==e)return{};var o,r,n={},a=Object.keys(e);for(r=0;r<a.length;r++)o=a[r],t.indexOf(o)>=0||(n[o]=e[o]);return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)o=a[r],t.indexOf(o)>=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++)o(r[n],n);return r}return[]}function Pe(){var e=document.scrollingElement;return e||document.documentElement}function Be(e,t,o,r,n){if(e.getBoundingClientRect||e===window){var a,i,l,s,u,d,c;if(e!==window&&e.parentNode&&e!==Pe()?(i=(a=e.getBoundingClientRect()).top,l=a.left,s=a.bottom,u=a.right,d=a.height,c=a.width):(i=0,l=0,s=window.innerHeight,u=window.innerWidth,d=window.innerHeight,c=window.innerWidth),(t||o)&&e!==window&&(n=n||e.parentNode,!ye))do{if(n&&n.getBoundingClientRect&&("none"!==We(n,"transform")||o&&"static"!==We(n,"position"))){var p=n.getBoundingClientRect();i-=p.top+parseInt(We(n,"border-top-width")),l-=p.left+parseInt(We(n,"border-left-width")),s=i+a.height,u=l+a.width;break}}while(n=n.parentNode);if(r&&e!==window){var h=Me(n||e),m=h&&h.a,g=h&&h.d;h&&(s=(i/=g)+(d/=g),u=(l/=m)+(c/=m))}return{top:i,left:l,bottom:s,right:u,width:c,height:d}}}function ze(e,t,o){for(var r=Le(e,!0),n=Be(e)[t];r;){var a=Be(r)[o];if(!("top"===o||"left"===o?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;a<i.length;){if("none"!==i[a].style.display&&i[a]!==$t.ghost&&(r||i[a]!==$t.dragged)&&Ie(i[a],o.draggable,e,!1)){if(n===t)return i[a];n++}a++}return null}function Fe(e,t){for(var o=e.lastElementChild;o&&(o===$t.ghost||"none"===We(o,"display")||t&&!Re(o,t));)o=o.previousElementSibling;return o||null}function Xe(e,t){var o=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===$t.clone||t&&!Re(e,t)||o++;return o}function Ye(e){var t=0,o=0,r=Pe();if(e)do{var n=Me(e),a=n.a,i=n.d;t+=e.scrollLeft*a,o+=e.scrollTop*i}while(e!==r&&(e=e.parentNode));return[t,o]}function Le(e,t){if(!e||!e.getBoundingClientRect)return Pe();var o=e,r=!1;do{if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var n=We(o);if(o.clientWidth<o.scrollWidth&&("auto"==n.overflowX||"scroll"==n.overflowX)||o.clientHeight<o.scrollHeight&&("auto"==n.overflowY||"scroll"==n.overflowY)){if(!o.getBoundingClientRect||o===document.body)return Pe();if(r||t)return o;r=!0}}}while(o=o.parentNode);return Pe()}function Ge(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 Ue(e,t){return function(){if(!Oe){var o=arguments;1===o.length?e.call(this,o[0]):e.apply(this,o),Oe=setTimeout((function(){Oe=void 0}),t)}}}function $e(e,t,o){e.scrollLeft+=t,e.scrollTop+=o}function qe(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 Ve="Sortable"+(new Date).getTime();function Ke(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(e){if("none"!==We(e,"display")&&e!==$t.ghost){t.push({target:e,rect:Be(e)});var o=he({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=Me(e,!0);r&&(o.top-=r.f,o.left-=r.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 r in t)if(t.hasOwnProperty(r)&&t[r]===e[o][r])return Number(o);return-1}(t,{target:e}),1)},animateAll:function(o){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof o&&o());var n=!1,a=0;t.forEach((function(e){var t=0,o=e.target,i=o.fromRect,l=Be(o),s=o.prevFromRect,u=o.prevToRect,d=e.rect,c=Me(o,!0);c&&(l.top-=c.f,l.left-=c.e),o.toRect=l,o.thisAnimationDuration&&Ge(s,l)&&!Ge(i,l)&&(d.top-l.top)/(d.left-l.left)==(i.top-l.top)/(i.left-l.left)&&(t=function(e,t,o,r){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))*r.animation}(d,s,u,r.options)),Ge(l,i)||(o.prevFromRect=i,o.prevToRect=l,t||(t=r.options.animation),r.animate(o,d,l,t)),t&&(n=!0,a=Math.max(a,t),clearTimeout(o.animationResetTimer),o.animationResetTimer=setTimeout((function(){o.animationTime=0,o.prevFromRect=null,o.fromRect=null,o.prevToRect=null,o.thisAnimationDuration=null}),t),o.thisAnimationDuration=t)})),clearTimeout(e),n?e=setTimeout((function(){"function"==typeof o&&o()}),a):"function"==typeof o&&o(),t=[]},animate:function(e,t,o,r){if(r){We(e,"transition",""),We(e,"transform","");var n=Me(this.el),a=n&&n.a,i=n&&n.d,l=(t.left-o.left)/(a||1),s=(t.top-o.top)/(i||1);e.animatingX=!!l,e.animatingY=!!s,We(e,"transform","translate3d("+l+"px,"+s+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),We(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),We(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){We(e,"transition",""),We(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}}var Je=[],Ze={initializeByDefault:!0},Qe={mount:function(e){for(var t in Ze)Ze.hasOwnProperty(t)&&!(t in e)&&(e[t]=Ze[t]);Je.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),Je.push(e)},pluginEvent:function(e,t,o){var r=this;this.eventCanceled=!1,o.cancel=function(){r.eventCanceled=!0};var n=e+"Global";Je.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][n]&&t[r.pluginName][n](he({sortable:t},o)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](he({sortable:t},o)))}))},initializePlugins:function(e,t,o,r){for(var n in Je.forEach((function(r){var n=r.pluginName;if(e.options[n]||r.initializeByDefault){var a=new r(e,t,e.options);a.sortable=e,a.options=e.options,e[n]=a,fe(o,a.defaults)}})),e.options)if(e.options.hasOwnProperty(n)){var a=this.modifyOption(e,n,e.options[n]);void 0!==a&&(e.options[n]=a)}},getEventProperties:function(e,t){var o={};return Je.forEach((function(r){"function"==typeof r.eventProperties&&fe(o,r.eventProperties.call(t[r.pluginName],e))})),o},modifyOption:function(e,t,o){var r;return Je.forEach((function(n){e[n.pluginName]&&n.optionListeners&&"function"==typeof n.optionListeners[t]&&(r=n.optionListeners[t].call(e[n.pluginName],o))})),r}};var et=["evt"],tt=function(e,t){var o=arguments.length>2&&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))<o)return;this._onDragStart(e,!0)}if(at){a?(a.e+=u-(yt||0),a.f+=d-(xt||0)):a={a:1,b:0,c:0,d:1,e:u,f:d};var c="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");We(at,"webkitTransform",c),We(at,"mozTransform",c),We(at,"msTransform",c),We(at,"transform",c),yt=u,xt=d,bt=n}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!at){var e=this.options.fallbackOnBody?document.body:it,t=Be(rt,!0,Pt,!0,e),o=this.options;if(Pt){for(Et=e;"static"===We(Et,"position")&&"none"===We(Et,"transform")&&Et!==document;)Et=Et.parentNode;Et!==document.body&&Et!==document.documentElement?(Et===document&&(Et=Pe()),t.top+=Et.scrollTop,t.left+=Et.scrollLeft):Et=Pe(),At=Ye(Et)}Ae(at=rt.cloneNode(!0),o.ghostClass,!1),Ae(at,o.fallbackClass,!0),Ae(at,o.dragClass,!0),We(at,"transition",""),We(at,"transform",""),We(at,"box-sizing","border-box"),We(at,"margin",0),We(at,"top",t.top),We(at,"left",t.left),We(at,"width",t.width),We(at,"height",t.height),We(at,"opacity","0.8"),We(at,"position",Pt?"absolute":"fixed"),We(at,"zIndex","100000"),We(at,"pointerEvents","none"),$t.ghost=at,e.appendChild(at),We(at,"transform-origin",wt/parseInt(at.style.width)*100+"% "+_t/parseInt(at.style.height)*100+"%")}},_onDragStart:function(e,t){var o=this,r=e.dataTransfer,n=o.options;tt("dragStart",this,{evt:e}),$t.eventCanceled?this._onDrop():(tt("setupClone",this),$t.eventCanceled||((ut=qe(rt)).removeAttribute("id"),ut.draggable=!1,ut.style["will-change"]="",this._hideClone(),Ae(ut,this.options.chosenClass,!1),$t.clone=ut),o.cloneId=Zt((function(){tt("clone",o),$t.eventCanceled||(o.options.removeCloneOnHide||it.insertBefore(ut,rt),o._hideClone(),ot({sortable:o,name:"clone"}))})),!t&&Ae(rt,n.dragClass,!0),t?(Tt=!0,o._loopId=setInterval(o._emulateDragOver,50)):(Ee(document,"mouseup",o._onDrop),Ee(document,"touchend",o._onDrop),Ee(document,"touchcancel",o._onDrop),r&&(r.effectAllowed="move",n.setData&&n.setData.call(o,r,rt)),ke(document,"drop",o),We(rt,"transform","translateZ(0)")),Rt=!0,o._dragStartId=Zt(o._dragStarted.bind(o,t,e)),ke(document,"selectstart",o),Ct=!0,_e&&We(document.body,"user-select","none"))},_onDragOver:function(e){var t,o,r,n,a=this.el,i=e.target,l=this.options,s=l.group,u=$t.active,d=gt===s,c=l.sort,p=ft||u,h=this,m=!1;if(!Wt){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),i=Ie(i,l.draggable,a,!0),T("dragOver"),$t.eventCanceled)return m;if(rt.contains(e.target)||i.animated&&i.animatingX&&i.animatingY||h._ignoreWhileAnimating===i)return O(!1);if(Tt=!1,u&&!l.disabled&&(d?c||(r=nt!==it):ft===this||(this.lastPutMode=gt.checkPull(this,u,rt,e))&&s.checkPut(this,u,rt,e))){if(n="vertical"===this._getDirection(e,i),t=Be(rt),T("dragOverValid"),$t.eventCanceled)return m;if(r)return nt=it,I(),this._hideClone(),T("revert"),$t.eventCanceled||(lt?it.insertBefore(rt,lt):it.appendChild(rt)),O(!0);var g=Fe(a,l.draggable);if(!g||function(e,t,o){var r=Be(Fe(o.el,o.options.draggable)),n=10;return t?e.clientX>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.clientX<r.left-n||e.clientY<r.top&&e.clientX<r.right:e.clientY<r.top-n||e.clientY<r.bottom&&e.clientX<r.left}(e,n,this)){var f=je(a,0,l,!0);if(f===rt)return O(!1);if(o=Be(i=f),!1!==qt(it,a,rt,t,i,o,e,!1))return I(),a.insertBefore(rt,f),nt=a,N(),O(!0)}else if(i.parentNode===a){o=Be(i);var v,b,y,x=rt.parentNode!==a,w=!function(e,t,o){var r=o?e.left:e.top,n=o?e.right:e.bottom,a=o?e.width:e.height,i=o?t.left:t.top,l=o?t.right:t.bottom,s=o?t.width:t.height;return r===i||n===l||r+a/2===i+s/2}(rt.animated&&rt.toRect||t,i.animated&&i.toRect||o,n),_=n?"top":"left",C=ze(i,"top","top")||ze(rt,"top","top"),S=C?C.scrollTop:void 0;if(St!==i&&(b=o[_],Ot=!1,Nt=!w&&l.invertSwap||x),v=function(e,t,o,r,n,a,i,l){var s=r?e.clientY:e.clientX,u=r?o.height:o.width,d=r?o.top:o.left,c=r?o.bottom:o.right,p=!1;if(!i)if(l&&kt<u*n){if(!Ot&&(1===Dt?s>d+u*a/2:s<c-u*a/2)&&(Ot=!0),Ot)p=!0;else if(1===Dt?s<d+kt:s>c-kt)return-Dt}else if(s>d+u*(1-n)/2&&s<c-u*(1-n)/2)return function(e){return Xe(rt)<Xe(e)?1:-1}(t);if((p=p||i)&&(s<d+u*a/2||s>c-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<n;r++)Ie(e=o[r],a.draggable,this.el,!1)&&t.push(e.getAttribute(a.dataIdAttr)||Jt(e));return t},sort:function(e,t){var o={},r=this.el;this.toArray().forEach((function(e,t){var n=r.children[t];Ie(n,this.options.draggable,r,!1)&&(o[e]=n)}),this),t&&this.captureAnimationState(),e.forEach((function(e){o[e]&&(r.removeChild(o[e]),r.appendChild(o[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return Ie(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var o=this.options;if(void 0===t)return o[e];var r=Qe.modifyOption(this,e,t);o[e]=void 0!==r?r:t,"group"===e&&Xt(o)},destroy:function(){tt("destroy",this);var e=this.el;e[Ve]=null,Ee(e,"mousedown",this._onTapStart),Ee(e,"touchstart",this._onTapStart),Ee(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(Ee(e,"dragover",this),Ee(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),It.splice(It.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!dt){if(tt("hideClone",this),$t.eventCanceled)return;We(ut,"display","none"),this.options.removeCloneOnHide&&ut.parentNode&&ut.parentNode.removeChild(ut),dt=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(dt){if(tt("showClone",this),$t.eventCanceled)return;rt.parentNode!=it||this.options.group.revertClone?lt?it.insertBefore(ut,lt):it.appendChild(ut):it.insertBefore(ut,rt),this.options.group.revertClone&&this.animate(rt,ut),We(ut,"display",""),dt=!1}}else this._hideClone()}},Ht&&ke(document,"touchmove",(function(e){($t.active||Rt)&&e.cancelable&&e.preventDefault()})),$t.utils={on:ke,off:Ee,css:We,find:He,is:function(e,t){return!!Ie(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:Ue,closest:Ie,toggleClass:Ae,clone:qe,index:Xe,nextTick:Zt,cancelNextTick:Qt,detectDirection:Ft,getChild:je},$t.get=function(e){return e[Ve]},$t.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&&($t.utils=he(he({},$t.utils),e.utils)),Qe.mount(e)}))},$t.create=function(e,t){return new $t(e,t)},$t.version="1.15.0";var eo,to,oo,ro,no,ao,io=[],lo=!1;function so(){io.forEach((function(e){clearInterval(e.pid)})),io=[]}function uo(){clearInterval(ao)}var co=Ue((function(e,t,o,r){if(t.scroll){var n,a=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,l=t.scrollSensitivity,s=t.scrollSpeed,u=Pe(),d=!1;to!==o&&(to=o,so(),eo=t.scroll,n=t.scrollFn,!0===eo&&(eo=Le(o,!0)));var c=0,p=eo;do{var h=p,m=Be(h),g=m.top,f=m.bottom,v=m.left,b=m.right,y=m.width,x=m.height,w=void 0,_=void 0,C=h.scrollWidth,S=h.scrollHeight,D=We(h),k=h.scrollLeft,E=h.scrollTop;h===u?(w=y<C&&("auto"===D.overflowX||"scroll"===D.overflowX||"visible"===D.overflowX),_=x<S&&("auto"===D.overflowY||"scroll"===D.overflowY||"visible"===D.overflowY)):(w=y<C&&("auto"===D.overflowX||"scroll"===D.overflowX),_=x<S&&("auto"===D.overflowY||"scroll"===D.overflowY));var R=w&&(Math.abs(b-a)<=l&&k+y<C)-(Math.abs(v-a)<=l&&!!k),T=_&&(Math.abs(f-i)<=l&&E+x<S)-(Math.abs(g-i)<=l&&!!E);if(!io[c])for(var I=0;I<=c;I++)io[I]||(io[I]={});io[c].vx==R&&io[c].vy==T&&io[c].el===h||(io[c].el=h,io[c].vx=R,io[c].vy=T,clearInterval(io[c].pid),0==R&&0==T||(d=!0,io[c].pid=setInterval(function(){r&&0===this.layer&&$t.active._onTouchMove(no);var t=io[this.layer].vy?io[this.layer].vy*s:0,o=io[this.layer].vx?io[this.layer].vx*s:0;"function"==typeof n&&"continue"!==n.call($t.dragged.parentNode[Ve],o,t,e,no,io[this.layer].el)||$e(io[this.layer].el,o,t)}.bind({layer:c}),24))),c++}while(t.bubbleScroll&&p!==u&&(p=Le(p,!1)));lo=d}}),30),po=function(e){var t=e.originalEvent,o=e.putSortable,r=e.dragEl,n=e.activeSortable,a=e.dispatchSortableEvent,i=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(t){var s=o||n;i();var u=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,d=document.elementFromPoint(u.clientX,u.clientY);l(),s&&!s.el.contains(d)&&(a("spill"),this.onSpill({dragEl:r,putSortable:o}))}};function ho(){}function mo(){}ho.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 r=je(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),o&&o.animateAll()},drop:po},fe(ho,{pluginName:"revertOnSpill"}),mo.prototype={onSpill:function(e){var t=e.dragEl,o=e.putSortable||this.sortable;o.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),o.animateAll()},drop:po},fe(mo,{pluginName:"removeOnSpill"}),$t.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?ke(document,"dragover",this._handleAutoScroll):this.options.supportPointer?ke(document,"pointermove",this._handleFallbackAutoScroll):t.touches?ke(document,"touchmove",this._handleFallbackAutoScroll):ke(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?Ee(document,"dragover",this._handleAutoScroll):(Ee(document,"pointermove",this._handleFallbackAutoScroll),Ee(document,"touchmove",this._handleFallbackAutoScroll),Ee(document,"mousemove",this._handleFallbackAutoScroll)),uo(),so(),clearTimeout(Oe),Oe=void 0},nulling:function(){no=to=eo=lo=ao=oo=ro=null,io.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var o=this,r=(e.touches?e.touches[0]:e).clientX,n=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(r,n);if(no=e,t||this.options.forceAutoScrollFallback||xe||ye||_e){co(e,this.options,a,t);var i=Le(a,!0);!lo||ao&&r===oo&&n===ro||(ao&&uo(),ao=setInterval((function(){var a=Le(document.elementFromPoint(r,n),!0);a!==i&&(i=a,so()),co(e,o.options,a,t)}),10),oo=r,ro=n)}else{if(!this.options.bubbleScroll||Le(a,!0)===Pe())return void so();co(e,this.options,Le(a,!1),!1)}}},fe(e,{pluginName:"scroll",initializeByDefault:!0})}),$t.mount(mo,ho);const go="object"==typeof global&&global&&global.Object===Object&&global;var fo="object"==typeof self&&self&&self.Object===Object&&self;const vo=(go||fo||Function("return this")()).Symbol;var bo=Object.prototype,yo=bo.hasOwnProperty,xo=bo.toString,wo=vo?vo.toStringTag:void 0;var _o=Object.prototype.toString;var Co="[object Null]",So="[object Undefined]",Do=vo?vo.toStringTag:void 0;function ko(e){return null==e?void 0===e?So:Co:Do&&Do in Object(e)?function(e){var t=yo.call(e,wo),o=e[wo];try{e[wo]=void 0;var r=!0}catch(a){}var n=xo.call(e);return r&&(t?e[wo]=o:delete e[wo]),n}(e):function(e){return _o.call(e)}(e)}var Eo="[object Symbol]";var Ro=/\s/;var To=/^\s+/;function Io(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&Ro.test(e.charAt(t)););return t}(e)+1).replace(To,""):e}function Oo(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var No=NaN,Ao=/^[-+]0x[0-9a-f]+$/i,Wo=/^0b[01]+$/i,Mo=/^0o[0-7]+$/i,Ho=parseInt;function Po(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&ko(e)==Eo}(e))return No;if(Oo(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Oo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Io(e);var o=Wo.test(e);return o||Mo.test(e)?Ho(e.slice(2),o?2:8):Ao.test(e)?No:+e}var Bo=1/0,zo=17976931348623157e292;function jo(e){return e?(e=Po(e))===Bo||e===-Bo?(e<0?-1:1)*zo:e==e?e:0:0===e?e:0}var Fo="[object AsyncFunction]",Xo="[object Function]",Yo="[object GeneratorFunction]",Lo="[object Proxy]";var Go=9007199254740991,Uo=/^(?:0|[1-9]\d*)$/;var $o=9007199254740991;function qo(e){return null!=e&&function(e){return"number"==typeof e&&e>-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<t}(t,o.length):"string"==r&&t in o)&&function(e,t){return e===t||e!=e&&t!=t}(o[t],e)}var Ko=Math.ceil,Jo=Math.max;var Zo,Qo=function(e,t,o){return o&&"number"!=typeof o&&Vo(e,t,o)&&(t=o=void 0),e=jo(e),void 0===t?(t=e,e=0):t=jo(t),function(e,t,o,r){for(var n=-1,a=Jo(Ko((t-e)/(o||1)),0),i=Array(a);a--;)i[r?a:++n]=e,e+=o;return i}(e,t,o=void 0===o?e<t?1:-1:jo(o),Zo)};const er=Qo,tr=K(s({__name:"index",props:["data","pullDownRefreshCount"],setup(e){const t=e,o=u(),r=d((()=>"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};
|