import{_ as e}from"./u-icon.71776381.js";import{d as t,u as o,c as l,r,$ as n,aJ as a,aK as i,q as s,t as u,i as d,j as c,w as p,P as m,R as f,Q as h,D as g,n as v,y as b,k as x,m as y,G as _,H as w,p as C,e as k,x as R,I as S,W as D,aL as E,aM as T,a7 as N,J as I,aN as B,ax as O,aO as j,a2 as W,K as A,N as z,A as F,B as M,C as H,F as P,aP as L,aQ as X,aR as Y,o as G,aS as U,aG as $,aT as V}from"./index-faf5e276.js";import{_ as q}from"./u--image.90dc3990.js";import{_ as K}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as J}from"./app-link.vue_vue_type_script_setup_true_lang.8d02ecda.js";import{_ as Q}from"./u-avatar.9784460f.js";import"./u-transition.bcacef93.js";import"./u-image.44e221c2.js";import"./u-line.vue_vue_type_style_index_0_scoped_45e31c7a_lang.501f5819.js";import"./u-form.ab08229f.js";import"./u-loading-icon.a6d83e95.js";import{_ as Z}from"./u-button.9384f0e3.js";import{_ as ee}from"./u-popup.a69d5115.js";import"./u-safe-bottom.c1f1e254.js";import{_ as te}from"./tabbar.75ed1765.js";import{g as oe}from"./article.0849380d.js";import{g as le,a as re}from"./vipcard.5c43eb30.js";import{g as ne}from"./goods.79477506.js";import{h as ae,i as ie,j as se}from"./tourism.7006ebdc.js";const ue=K(t({__name:"index",props:["component","index","pullDownRefreshCount"],setup(t){const S=t,D=o(),E=l((()=>"decorate"==D.mode?D.value[S.index]:S.component)),T=l((()=>{var e="";return E.value.componentBgColor&&(e+="background-color:"+E.value.componentBgColor+";"),E.value.topRounded&&(e+="border-top-left-radius:"+2*E.value.topRounded+"rpx;"),E.value.topRounded&&(e+="border-top-right-radius:"+2*E.value.topRounded+"rpx;"),E.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*E.value.bottomRounded+"rpx;"),E.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*E.value.bottomRounded+"rpx;"),e})),N=r([]);n((()=>S.pullDownRefreshCount),((e,t)=>{})),a((()=>{I(),"decorate"==D.mode&&n((()=>E.value),((e,t)=>{e&&"AddonList"==e.componentName&&I()}))}));const I=()=>{"decorate"==D.mode&&E.value.list.forEach(((e,t)=>{""==e.icon&&(e.icon="static/resource/images/diy/figure.png"),""==e.title&&(e.title="应用名称")})),0==E.value.list.length?i({}).then((e=>{N.value=e.data})):N.value=E.value.list};return(t,o)=>{const l=s(u("u-icon"),e),r=s(u("u--image"),q),n=R;return d(),c(n,{style:C(v(T))},{default:p((()=>[(d(!0),m(f,null,h(N.value,((e,t)=>(d(),c(n,{key:e.id,class:g(["item flex align-center p-[20rpx] mb-[20rpx]",{"border-solid border-t-0 border-l-0 border-r-0 border-b border-gray-200":N.value.length-1!==t}]),onClick:t=>{return o=e.url,void k({url:o});var o}},{default:p((()=>[e.icon?(d(),c(r,{key:0,width:"120rpx",height:"120rpx",src:v(b)(e.icon),class:"rounded-md overflow-hidden",model:"aspectFill"},{error:p((()=>[x(l,{name:"photo",color:"#999",size:"60"})])),_:2},1032,["src"])):y("v-if",!0),x(n,{class:"flex-1 flex flex-col justify-center ml-[20rpx]"},{default:p((()=>[x(n,{class:"text-sm leading-[1.3] using-hidden"},{default:p((()=>[_(w(e.title),1)])),_:2},1024),x(n,{class:"text-xs text-[#999] mt-[8rpx] leading-[1.6] multi-hidden"},{default:p((()=>[_(w(e.desc),1)])),_:2},1024)])),_:2},1024)])),_:2},1032,["class","onClick"])))),128))])),_:1},8,["style"])}}}),[["__scopeId","data-v-a13755df"]]),de=K(t({__name:"index",props:["component","index","pullDownRefreshCount"],setup(t){const i=t,k=o(),I=l((()=>"decorate"==k.mode?k.value[i.index]:i.component)),B=l((()=>{var e="";return I.value.componentBgColor&&(e+="background-color:"+I.value.componentBgColor+";"),I.value.topRounded&&(e+="border-top-left-radius:"+2*I.value.topRounded+"rpx;"),I.value.topRounded&&(e+="border-top-right-radius:"+2*I.value.topRounded+"rpx;"),I.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*I.value.bottomRounded+"rpx;"),I.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*I.value.bottomRounded+"rpx;"),e}));n((()=>i.pullDownRefreshCount),((e,t)=>{}));const O=r(0),j=e=>{O.value=e.detail.current},W=(e,t)=>{let o=I.value.pageCount*I.value.rowCount,l=!0;return l=e>=[(t-1)*o]&&e<[t*o],l},A=r("");a((()=>{z(),"decorate"==k.mode&&n((()=>I.value),((e,t)=>{e&&"GraphicNav"==e.componentName&&z()}))}));const z=()=>{var e;"decorate"==k.mode&&I.value.list.forEach(((e,t)=>{""==e.imageUrl&&(e.imageUrl="static/resource/images/diy/figure.png")})),e=0,"graphic"==I.value.mode?e=(49+I.value.imageSize)*I.value.pageCount:"img"==I.value.mode?e=(22+I.value.imageSize)*I.value.pageCount:"text"==I.value.mode&&(e=43*I.value.pageCount),A.value=2*e+"rpx"};return(t,o)=>{const l=R,r=S,n=s(u("app-link"),J),a=D,i=s(u("u-icon"),e),k=E,O=T,z=N;return d(),c(l,{style:C(v(B))},{default:p((()=>[v(I).navTitle?(d(),c(l,{key:0,class:"flex items-center justify-between py-[30rpx] px-[32rpx]"},{default:p((()=>[x(l,{class:"text-[30rpx]",style:C({fontWeight:v(I).font.weight,color:v(I).font.color})},{default:p((()=>[_(w(v(I).navTitle),1)])),_:1},8,["style"]),v(I).subNavTitle?(d(),c(n,{key:0,data:v(I).subNavTitleLink,class:"flex items-baseline",style:C({color:v(I).subNavColor})},{default:p((()=>[x(r,{class:"text-[26rpx] mr-[4rpx]"},{default:p((()=>[_(w(v(I).subNavTitle),1)])),_:1}),x(r,{class:"text-sm iconfont iconxiangyoujiantou"})])),_:1},8,["data","style"])):y("v-if",!0)])),_:1})):y("v-if",!0),"vertical"==v(I).layout?(d(),c(l,{key:1,class:"graphic-nav"},{default:p((()=>[(d(!0),m(f,null,h(v(I).list,((e,t)=>(d(),c(l,{class:"graphic-nav-item",key:e.id},{default:p((()=>[x(n,{data:e.link,class:g([0==t?"border-t-0":"border-t"])},{default:p((()=>[x(l,{class:"flex items-center justify-between py-[30rpx] px-[32rpx]"},{default:p((()=>["text"!=v(I).mode?(d(),c(l,{key:0,class:"graphic-img relative flex items-center w-10 h-10 mr-[20rpx]",style:C({width:2*v(I).imageSize+"rpx",height:2*v(I).imageSize+"rpx"})},{default:p((()=>[x(a,{src:v(b)(e.imageUrl),mode:"aspectFill",style:C({maxWidth:2*v(I).imageSize+"rpx",maxHeight:2*v(I).imageSize+"rpx",borderRadius:2*v(I).aroundRadius+"rpx"})},null,8,["src","style"]),e.label.control?(d(),c(r,{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:C({color:e.label.textColor,backgroundImage:"linear-gradient("+e.label.bgColorStart+","+e.label.bgColorEnd+")"})},{default:p((()=>[_(w(e.label.text),1)])),_:2},1032,["style"])):y("v-if",!0)])),_:2},1032,["style"])):y("v-if",!0),"img"!=v(I).mode?(d(),c(r,{key:1,class:"graphic-text w-full truncate leading-normal",style:C({fontSize:2*v(I).font.size+"rpx",fontWeight:v(I).font.weight,color:v(I).font.color})},{default:p((()=>[_(w(e.title),1)])),_:2},1032,["style"])):y("v-if",!0),x(l,null,{default:p((()=>[x(i,{name:"arrow-right",color:"#CACACA"})])),_:1})])),_:2},1024)])),_:2},1032,["data","class"])])),_:2},1024)))),128))])),_:1})):"horizontal"==v(I).layout&&"pageSlide"==v(I).showStyle?(d(),c(O,{key:2,class:"graphic-nav p-2 box-border relative",circular:"","indicator-dots":!1,style:C({height:A.value}),onChange:j},{default:p((()=>[(d(!0),m(f,null,h(Math.ceil(v(I).list.length/(v(I).pageCount*v(I).rowCount)),((e,t)=>(d(),c(k,{class:"graphic-nav-wrap flex flex-wrap"},{default:p((()=>[(d(!0),m(f,null,h(v(I).list,((t,o)=>(d(),m(f,null,[W(o,e)?(d(),c(l,{class:g(["graphic-nav-item",[v(I).mode]]),key:t.id,style:C({width:100/v(I).rowCount+"%"})},{default:p((()=>[x(n,{data:t.link,class:"flex flex-col items-center box-border py-2"},{default:p((()=>["text"!=v(I).mode?(d(),c(l,{key:0,class:"graphic-img relative flex items-center justify-center w-10 h-10",style:C({width:2*v(I).imageSize+"rpx",height:2*v(I).imageSize+"rpx"})},{default:p((()=>[x(a,{src:v(b)(t.imageUrl),mode:"aspectFill",style:C({maxWidth:2*v(I).imageSize+"rpx",maxHeight:2*v(I).imageSize+"rpx",borderRadius:2*v(I).aroundRadius+"rpx"})},null,8,["src","style"]),t.label.control?(d(),c(r,{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:C({color:t.label.textColor,backgroundImage:"linear-gradient("+t.label.bgColorStart+","+t.label.bgColorEnd+")"})},{default:p((()=>[_(w(t.label.text),1)])),_:2},1032,["style"])):y("v-if",!0)])),_:2},1032,["style"])):y("v-if",!0),"img"!=v(I).mode?(d(),c(r,{key:1,class:g(["graphic-text w-full text-center truncate leading-normal",{"pt-1.5":"text"!=v(I).mode}]),style:C({fontSize:2*v(I).font.size+"rpx",fontWeight:v(I).font.weight,color:v(I).font.color})},{default:p((()=>[_(w(t.title),1)])),_:2},1032,["class","style"])):y("v-if",!0)])),_:2},1032,["data"])])),_:2},1032,["class","style"])):y("v-if",!0)],64)))),256))])),_:2},1024)))),256))])),_:1},8,["style"])):(d(),c(z,{key:3,"scroll-x":"singleSlide"==v(I).showStyle,class:g(["graphic-nav","graphic-nav-"+v(I).showStyle])},{default:p((()=>[(d(!0),m(f,null,h(v(I).list,((e,t)=>(d(),c(l,{class:g(["graphic-nav-item",{"flex-shrink-0":"singleSlide"==v(I).showStyle}]),key:e.id,style:C({width:100/v(I).rowCount+"%"})},{default:p((()=>[x(n,{data:e.link,class:"flex flex-col items-center box-border py-2"},{default:p((()=>["text"!=v(I).mode?(d(),c(l,{key:0,class:"graphic-img relative flex items-center justify-center w-10 h-10 mx-[auto]",style:C({width:2*v(I).imageSize+"rpx",height:2*v(I).imageSize+"rpx"})},{default:p((()=>[x(a,{src:v(b)(e.imageUrl),mode:"aspectFill",style:C({maxWidth:2*v(I).imageSize+"rpx",maxHeight:2*v(I).imageSize+"rpx",borderRadius:2*v(I).aroundRadius+"rpx"})},null,8,["src","style"]),e.label.control?(d(),c(r,{key:0,class:g(["tag absolute -top-[10rpx] -right-[24rpx] text-white rounded-[24rpx] rounded-bl-none transform scale-80 py-1 px-2 text-xs"]),style:C({color:e.label.textColor,backgroundImage:"linear-gradient("+e.label.bgColorStart+","+e.label.bgColorEnd+")"})},{default:p((()=>[_(w(e.label.text),1)])),_:2},1032,["style"])):y("v-if",!0)])),_:2},1032,["style"])):y("v-if",!0),"img"!=v(I).mode?(d(),c(r,{key:1,class:g(["graphic-text w-full text-center truncate leading-normal",{"pt-1.5":"text"!=v(I).mode}]),style:C({fontSize:2*v(I).font.size+"rpx",fontWeight:v(I).font.weight,color:v(I).font.color})},{default:p((()=>[_(w(e.title),1)])),_:2},1032,["class","style"])):y("v-if",!0)])),_:2},1032,["data"])])),_:2},1032,["class","style"])))),128))])),_:1},8,["scroll-x","class"]))])),_:1},8,["style"])}}}),[["__scopeId","data-v-19dae25e"]]),ce=t({__name:"index",props:["component","index","pullDownRefreshCount"],setup(e){const t=e,r=o(),a=l((()=>"decorate"==r.mode?r.value[t.index]:t.component)),i=l((()=>{var e="";return e+="height:"+2*a.value.height+"rpx;",a.value.componentBgColor&&(e+="background-color:"+a.value.componentBgColor+";"),e}));return n((()=>t.pullDownRefreshCount),((e,t)=>{})),(e,t)=>{const o=R;return d(),c(o,{style:C(v(i))},null,8,["style"])}}}),pe=t({__name:"index",props:["component","index","pullDownRefreshCount"],setup(e){const t=e,r=o(),i=l((()=>"decorate"==r.mode?r.value[t.index]:t.component)),g=l((()=>{var e="";return i.value.componentBgColor&&(e+="background-color:"+i.value.componentBgColor+";"),i.value.topRounded&&(e+="border-top-left-radius:"+2*i.value.topRounded+"rpx;"),i.value.topRounded&&(e+="border-top-right-radius:"+2*i.value.topRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*i.value.bottomRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*i.value.bottomRounded+"rpx;"),e}));a((()=>{_(),n((()=>i.value),((e,t)=>{e&&"HotArea"==e.componentName&&_()}))}));const _=()=>{"decorate"==r.mode&&""==i.value.imageUrl&&(i.value.imageUrl="static/resource/images/diy/figure.png",i.value.imgWidth=690,i.value.imgHeight=330)};return n((()=>t.pullDownRefreshCount),((e,t)=>{})),(e,t)=>{const o=D,l=s(u("app-link"),J),n=R;return d(),c(n,{style:C(v(g))},{default:p((()=>[x(n,{class:"simple-graph-wrap overflow-hidden relative leading-0"},{default:p((()=>[x(o,{style:C({height:v(i).imgHeight}),src:v(b)(v(i).imageUrl),mode:"widthFix","show-menu-by-longpress":!0,class:"w-full"},null,8,["style","src"]),"decorate"!=v(r).mode?(d(),m(f,{key:0},[y(" 热区功能 "),(d(!0),m(f,null,h(v(i).heatMapData,((e,t)=>(d(),c(l,{data:e.link,class:"absolute",key:t,style:C({width:e.width+"%",height:e.height+"%",left:e.left+"%",top:e.top+"%"})},null,8,["data","style"])))),128))],64)):y("v-if",!0)])),_:1})])),_:1},8,["style"])}}}),me=t({__name:"index",props:["component","index","pullDownRefreshCount"],setup(e){const t=e,i=o(),g=l((()=>"decorate"==i.mode?i.value[t.index]:t.component)),y=l((()=>{var e="";return g.value.componentBgColor&&(e+="background-color:"+g.value.componentBgColor+";"),e})),_=l((()=>{var e="";return g.value.topRounded&&(e+="border-top-left-radius:"+2*g.value.topRounded+"rpx;"),g.value.topRounded&&(e+="border-top-right-radius:"+2*g.value.topRounded+"rpx;"),g.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*g.value.bottomRounded+"rpx;"),g.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*g.value.bottomRounded+"rpx;"),e}));n((()=>t.pullDownRefreshCount),((e,t)=>{}));const w=l((()=>2*g.value.imageHeight+"rpx")),k=r(0),S=e=>{k.value=e.detail.current};a((()=>{N(),"decorate"==i.mode&&n((()=>g.value),((e,t)=>{e&&"ImageAds"==e.componentName&&N()}))}));const N=()=>{"decorate"==i.mode&&g.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=D,l=s(u("app-link"),J),r=R,n=E,a=T;return d(),c(r,{class:"image-ads",style:C(v(y))},{default:p((()=>[1==v(g).list.length?(d(),c(r,{key:0,class:"leading-0 overflow-hidden",style:C(v(_))},{default:p((()=>[x(l,{data:v(g).list[0].link},{default:p((()=>[x(o,{src:v(b)(v(g).list[0].imageUrl),style:C({height:v(w)}),mode:"heightFix",class:"w-full","show-menu-by-longpress":!0},null,8,["src","style"])])),_:1},8,["data"])])),_:1},8,["style"])):(d(),c(a,{key:1,class:"swiper",style:C({height:v(w)}),autoplay:"true",circular:"true",onChange:S},{default:p((()=>[(d(!0),m(f,null,h(v(g).list,(e=>(d(),c(n,{class:"swiper-item",key:e.id,style:C(v(_))},{default:p((()=>[x(l,{data:e.link},{default:p((()=>[x(r,{class:"item",style:C({height:v(w)})},{default:p((()=>[x(o,{src:v(b)(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"])}}}),fe=K(t({__name:"index",props:["component","index","pullDownRefreshCount"],setup(e){const t=e,a=o(),i=l((()=>"decorate"==a.mode?a.value[t.index]:t.component)),m=l((()=>{var e="";return i.value.componentBgColor&&(e+="background-color:"+i.value.componentBgColor+";"),i.value.bgUrl&&(e+="background-image:url("+b(i.value.bgUrl)+");",e+="background-size: cover;",e+="background-repeat: no-repeat;"),i.value.topRounded&&(e+="border-top-left-radius:"+2*i.value.topRounded+"rpx;"),i.value.topRounded&&(e+="border-top-right-radius:"+2*i.value.topRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*i.value.bottomRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*i.value.bottomRounded+"rpx;"),e}));n((()=>t.pullDownRefreshCount),((e,t)=>{}));const f=I(),{query:h}=B(location.href);h.code&&O()&&j({code:h.code}).then((e=>{f.getMemberInfo()}));const g=l((()=>"decorate"==a.mode?{headimg:"",nickname:"昵称",balance:0,point:0,money:0,member_no:"NIU0000021"}:f.info)),D=l((()=>{if(g.value){let e=parseFloat(g.value.balance)+parseFloat(g.value.money);return W(e.toString())}return 0})),E=()=>{z().setLoginBack({url:"/app/pages/member/index"})};r(!1);const T=()=>{O()?z().getAuthCode("snsapi_userinfo"):k({url:"/app/pages/member/personal"})};return(e,t)=>{const o=s(u("u-avatar"),Q),l=R,r=S,n=s(u("app-link"),J);return d(),c(l,{style:C(v(m))},{default:p((()=>[x(l,{class:"pt-[34rpx] member-info"},{default:p((()=>[v(g)?(d(),c(l,{key:0,class:"flex ml-[32rpx] mr-[52rpx] items-center relative"},{default:p((()=>[y(" 唤起获取微信 "),x(o,{src:v(b)(v(g).headimg),size:"55",leftIcon:"none",onClick:T},null,8,["src"]),x(l,{class:"ml-[22rpx]"},{default:p((()=>[x(l,{class:"text-[#222222] truncate w-[430rpx] font-bold text-lg",style:C({color:v(i).textColor})},{default:p((()=>[_(w(v(g).nickname),1)])),_:1},8,["style"]),x(l,{class:"text-[#696B70] text-[24rpx] mt-[10rpx]",style:C({color:v(i).textColor})},{default:p((()=>[_(" UID:"+w(v(g).member_no),1)])),_:1},8,["style"])])),_:1}),x(l,{class:"set-icon flex items-center absolute right-0 top-2"},{default:p((()=>[x(n,{url:"/app/pages/setting/index"},{default:p((()=>[x(r,{class:"iconfont iconshezhi text-[1.6rem] ml-[10rpx]",style:C({color:v(i).textColor})},null,8,["style"])])),_:1})])),_:1})])),_:1})):(d(),c(l,{key:1,class:"flex ml-[32rpx] mr-[52rpx] items-center relative",onClick:E},{default:p((()=>[x(o,{src:"",size:"55"}),x(l,{class:"ml-[22rpx]"},{default:p((()=>[x(l,{class:"text-[#222222] font-bold text-lg",style:C({color:v(i).textColor})},{default:p((()=>[_(w(v(A)("login"))+"/"+w(v(A)("register")),1)])),_:1},8,["style"])])),_:1}),x(l,{class:"set-icon flex items-center absolute right-0 top-2"},{default:p((()=>[x(n,{url:"/app/pages/setting/index"},{default:p((()=>[x(r,{class:"iconfont iconshezhi text-[1.6rem] ml-[10rpx]",style:C({color:v(i).textColor})},null,8,["style"])])),_:1})])),_:1})])),_:1})),x(l,{class:"flex m-[30rpx] mb-0 py-[30rpx] items-center"},{default:p((()=>[x(l,{class:"flex-1 text-center"},{default:p((()=>[x(l,{class:"font-bold"},{default:p((()=>[x(n,{url:v(g)?"/app/pages/member/balance":"",style:C({color:v(i).textColor})},{default:p((()=>[_(w(v(D)),1)])),_:1},8,["url","style"])])),_:1}),x(l,{class:"text-sm mt-[10rpx]"},{default:p((()=>[x(n,{url:v(g)?"/app/pages/member/balance":"",style:C({color:v(i).textColor})},{default:p((()=>[_(w(v(A)("balance")),1)])),_:1},8,["url","style"])])),_:1})])),_:1}),x(l,{class:"border-solid border-white border-l border-b-0 border-t-0 border-r-0 h-[60rpx]"}),x(l,{class:"flex-1 text-center"},{default:p((()=>[x(l,{class:"font-bold"},{default:p((()=>[x(n,{url:v(g)?"/app/pages/member/point":"",style:C({color:v(i).textColor})},{default:p((()=>{var e;return[_(w(parseInt(null==(e=v(g))?void 0:e.point)||0),1)]})),_:1},8,["url","style"])])),_:1}),x(l,{class:"text-sm mt-[10rpx]"},{default:p((()=>[x(n,{url:v(g)?"/app/pages/member/point":"",style:C({color:v(i).textColor})},{default:p((()=>[_(w(v(A)("point")),1)])),_:1},8,["url","style"])])),_:1})])),_:1})])),_:1})])),_:1})])),_:1},8,["style"])}}}),[["__scopeId","data-v-18699e19"]]);const he=K({mixins:[M,H,{props:{text:{type:[Array],default:F.columnNotice.text},icon:{type:String,default:F.columnNotice.icon},mode:{type:String,default:F.columnNotice.mode},color:{type:String,default:F.columnNotice.color},bgColor:{type:String,default:F.columnNotice.bgColor},fontSize:{type:[String,Number],default:F.columnNotice.fontSize},speed:{type:[String,Number],default:F.columnNotice.speed},step:{type:Boolean,default:F.columnNotice.step},duration:{type:[String,Number],default:F.columnNotice.duration},disableTouch:{type:Boolean,default:F.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,l,r,n,a){const i=s(u("u-icon"),e),g=R,v=S,b=E,k=T;return d(),c(g,{class:"u-notice",onClick:a.clickHandler},{default:p((()=>[P(t.$slots,"icon",{},(()=>[t.icon?(d(),c(g,{key:0,class:"u-notice__left-icon"},{default:p((()=>[x(i,{name:t.icon,color:t.color,size:"19"},null,8,["name","color"])])),_:1})):y("v-if",!0)]),!0),x(k,{"disable-touch":t.disableTouch,vertical:!t.step,circular:"",interval:t.duration,autoplay:!0,class:"u-notice__swiper",onChange:a.noticeChange},{default:p((()=>[(d(!0),m(f,null,h(t.text,((e,t)=>(d(),c(b,{key:t,class:"u-notice__swiper__item"},{default:p((()=>[x(v,{class:"u-notice__swiper__item__text u-line-1",style:C([a.textStyle])},{default:p((()=>[_(w(e),1)])),_:2},1032,["style"])])),_:2},1024)))),128))])),_:1},8,["disable-touch","vertical","interval","onChange"]),["link","closable"].includes(t.mode)?(d(),c(g,{key:0,class:"u-notice__right-icon"},{default:p((()=>["link"===t.mode?(d(),c(i,{key:0,name:"arrow-right",size:17,color:t.color},null,8,["color"])):y("v-if",!0),"closable"===t.mode?(d(),c(i,{key:1,name:"close",size:16,color:t.color,onClick:a.close},null,8,["color","onClick"])):y("v-if",!0)])),_:1})):y("v-if",!0)])),_:3},8,["onClick"])}],["__scopeId","data-v-7109316b"]]);const ge=K({name:"u-row-notice",mixins:[M,H,{props:{text:{type:String,default:F.rowNotice.text},icon:{type:String,default:F.rowNotice.icon},mode:{type:String,default:F.rowNotice.mode},color:{type:String,default:F.rowNotice.color},bgColor:{type:String,default:F.rowNotice.bgColor},fontSize:{type:[String,Number],default:F.rowNotice.fontSize},speed:{type:[String,Number],default:F.rowNotice.speed}}}],data:()=>({animationDuration:"0",animationPlayState:"paused",nvueInit:!0,show:!0}),watch:{text:{immediate:!0,handler(e,t){this.vue(),uni.$u.test.string(e)||uni.$u.error("noticebar组件direction为row时,要求text参数为字符串形式")}},fontSize(){this.vue()},speed(){this.vue()}},computed:{textStyle(){let e={};return e.color=this.color,e.fontSize=uni.$u.addUnit(this.fontSize),e},animationStyle(){let e={};return e.animationDuration=this.animationDuration,e.animationPlayState=this.animationPlayState,e},innerText(){let e=[];const t=this.text.split("");for(let o=0;o{this.animationPlayState="running"}),10)},async nvue(){},loopAnimation(e,t){},getNvueRect(e){},clickHandler(e){this.$emit("click")},close(){this.$emit("close")}}},[["render",function(t,o,l,r,n,a){const i=s(u("u-icon"),e),g=R,v=S;return d(),c(g,{class:"u-notice",onClick:a.clickHandler},{default:p((()=>[P(t.$slots,"icon",{},(()=>[t.icon?(d(),c(g,{key:0,class:"u-notice__left-icon"},{default:p((()=>[x(i,{name:t.icon,color:t.color,size:"19"},null,8,["name","color"])])),_:1})):y("v-if",!0)]),!0),x(g,{class:"u-notice__content",ref:"u-notice__content"},{default:p((()=>[x(g,{ref:"u-notice__content__text",class:"u-notice__content__text",style:C([a.animationStyle])},{default:p((()=>[(d(!0),m(f,null,h(a.innerText,((e,t)=>(d(),c(v,{key:t,style:C([a.textStyle])},{default:p((()=>[_(w(e),1)])),_:2},1032,["style"])))),128))])),_:1},8,["style"])])),_:1},512),["link","closable"].includes(t.mode)?(d(),c(g,{key:0,class:"u-notice__right-icon"},{default:p((()=>["link"===t.mode?(d(),c(i,{key:0,name:"arrow-right",size:17,color:t.color},null,8,["color"])):y("v-if",!0),"closable"===t.mode?(d(),c(i,{key:1,onClick:a.close,name:"close",size:16,color:t.color},null,8,["onClick","color"])):y("v-if",!0)])),_:1})):y("v-if",!0)])),_:3},8,["onClick"])}],["__scopeId","data-v-8086f62b"]]);const ve=K({name:"u-notice-bar",mixins:[M,H,{props:{text:{type:[Array,String],default:F.noticeBar.text},direction:{type:String,default:F.noticeBar.direction},step:{type:Boolean,default:F.noticeBar.step},icon:{type:String,default:F.noticeBar.icon},mode:{type:String,default:F.noticeBar.mode},color:{type:String,default:F.noticeBar.color},bgColor:{type:String,default:F.noticeBar.bgColor},speed:{type:[String,Number],default:F.noticeBar.speed},fontSize:{type:[String,Number],default:F.noticeBar.fontSize},duration:{type:[String,Number],default:F.noticeBar.duration},disableTouch:{type:Boolean,default:F.noticeBar.disableTouch},url:{type:String,default:F.noticeBar.url},linkType:{type:String,default:F.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,l,r,n){const a=s(u("u-column-notice"),he),i=s(u("u-row-notice"),ge),m=R;return r.show?(d(),c(m,{key:0,class:"u-notice-bar",style:C([{backgroundColor:e.bgColor},e.$u.addStyle(e.customStyle)])},{default:p((()=>["column"===e.direction||"row"===e.direction&&e.step?(d(),c(a,{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:n.close,onClick:n.click},null,8,["color","bgColor","text","mode","step","icon","disable-touch","fontSize","duration","onClose","onClick"])):(d(),c(i,{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:n.close,onClick:n.click},null,8,["color","bgColor","text","mode","fontSize","speed","url","linkType","icon","onClose","onClick"]))])),_:1},8,["style"])):y("v-if",!0)}],["__scopeId","data-v-7b451c96"]]),be=K(t({__name:"index",props:["component","index","pullDownRefreshCount"],setup(e){const t=e,i=o(),m=r(!1),f=l((()=>"decorate"==i.mode?i.value[t.index]:t.component)),h=l((()=>{var e="";return f.value.componentBgColor&&(e+="background-color:"+f.value.componentBgColor+";"),f.value.topRounded&&(e+="border-top-left-radius:"+2*f.value.topRounded+"rpx;"),f.value.topRounded&&(e+="border-top-right-radius:"+2*f.value.topRounded+"rpx;"),f.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*f.value.bottomRounded+"rpx;"),f.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*f.value.bottomRounded+"rpx;"),e}));n((()=>t.pullDownRefreshCount),((e,t)=>{})),a((()=>{g(),"decorate"==i.mode&&n((()=>f.value),((e,t)=>{e&&"AddonList"==e.componentName&&g()}))}));const g=()=>{"decorate"==i.mode&&(f.value.list.title||(f.value.list.title="公告名称"))},y=()=>{if("decorate"==i.mode)return!1;"popup"==f.value.showType?m.value=!0:k({url:f.value.list.link.url})};return(e,t)=>{const o=D,l=s(u("u-notice-bar"),ve),r=S,n=R,a=N,i=L,g=s(u("u-popup"),ee);return d(),c(n,{style:C(v(h)),class:"overflow-hidden"},{default:p((()=>[x(n,{class:"flex items-center pl-[28rpx] pr-[22rpx]",onClick:y},{default:p((()=>["system"==v(f).iconType?(d(),c(o,{key:0,src:v(b)(`addon/shop/diy/notice/${v(f).systemIcon}.png`),class:"h-[44rpx] max-w-[130rpx] -mr-[8rpx]",mode:"heightFix"},null,8,["src"])):(d(),c(o,{key:1,src:v(b)(v(f).imageUrl||""),class:"w-[30rpx] h-[30rpx] -mr-[8rpx]",mode:"aspectFit"},null,8,["src"])),x(l,{text:v(f).list.text,color:v(f).textColor,bgColor:v(f).componentBgColor,fontSize:2*v(f).fontSize+"rpx",speed:"50",icon:"",style:C({fontWeight:v(f).fontWeight})},null,8,["text","color","bgColor","fontSize","style"]),x(r,{class:"iconfont iconxiangyoujiantou -ml-[8rpx]",style:C({color:v(f).textColor,fontSize:2*v(f).fontSize+"rpx",fontWeight:v(f).fontWeight})},null,8,["style"])])),_:1}),x(g,{show:m.value,onClose:t[1]||(t[1]=e=>m.value=!1),closeable:!0,mode:"center",round:5},{default:p((()=>[x(n,{class:"py-[30rpx] text-sm leading-none border-0 border-solid border-b-[2rpx] border-[#eee]"},{default:p((()=>[x(r,{class:"ml-[30rpx]"},{default:p((()=>[_("公告内容")])),_:1})])),_:1}),x(a,{"scroll-y":"true",class:"px-6 py-3 w-[600rpx] h-[500rpx] text-sm"},{default:p((()=>[_(w(v(f).list.text),1)])),_:1}),x(i,{onClick:t[0]||(t[0]=e=>m.value=!1),class:"!mx-[30rpx] !mb-[40rpx] !w-auto !h-[80rpx] text-sm leading-[80rpx] rounded-full text-white !bg-[#ff4500]"},{default:p((()=>[_("我知道了")])),_:1})])),_:1},8,["show"])])),_:1},8,["style"])}}}),[["__scopeId","data-v-6b39fcd0"]]),xe=K(t({__name:"index",props:["component","index","pullDownRefreshCount"],setup(e){const t=e,r=o(),i=l((()=>"decorate"==r.mode?r.value[t.index]:t.component)),_=l((()=>{var e="";return i.value.componentBgColor&&(e+="background-color:"+i.value.componentBgColor+";"),i.value.topRounded&&(e+="border-top-left-radius:"+2*i.value.topRounded+"rpx;"),i.value.topRounded&&(e+="border-top-right-radius:"+2*i.value.topRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*i.value.bottomRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*i.value.bottomRounded+"rpx;"),e}));n((()=>t.pullDownRefreshCount),((e,t)=>{})),a((()=>{w(),n((()=>i.value),((e,t)=>{e&&"RubikCube"==e.componentName&&w()}))}));const w=()=>{"decorate"==r.mode&&i.value.list.forEach(((e,t)=>{""==e.imageUrl&&(e.imageUrl="static/resource/images/diy/figure.png",e.imgWidth=690,e.imgHeight=330)})),k()},k=()=>{var e={"row1-of2":{ratio:2,width:"calc((100% - "+X(2*i.value.imageGap)+"px) / 2)"},"row1-of3":{ratio:3,width:"calc((100% - "+X(4*i.value.imageGap)+"px) / 3)"},"row1-of4":{ratio:4,width:"calc((100% - "+X(6*i.value.imageGap)+"px) / 4)"}};i.value.list.forEach(((e,t)=>{e.pageItemStyle=((e,t)=>{var o="";return"right"==i.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*i.value.topElementRounded+"rpx;",o+="border-top-right-radius:"+2*i.value.topElementRounded+"rpx;",o+="border-bottom-left-radius:"+2*i.value.bottomElementRounded+"rpx;",o+="border-bottom-right-radius:"+2*i.value.bottomElementRounded+"rpx;"})),o})(i.value.mode,t)})),e[i.value.mode]?S(e[i.value.mode]):"row2-lt-of2-rt"==i.value.mode?E():"row1-lt-of2-rt"==i.value.mode?T():"row1-tp-of2-bm"==i.value.mode?N():"row1-lt-of1-tp-of2-bm"==i.value.mode&&I()},S=e=>{Y({success:t=>{let o=0;i.value.list.forEach(((l,r)=>{var n=l.imgHeight/l.imgWidth;let a=t.windowWidth-X(2*i.value.margin.both);i.value.imageGap>0&&(a-=X(e.ratio*i.value.imageGap*2)),l.imgWidth=a/e.ratio,l.imgHeight=l.imgWidth*n,(0==o||o{t.widthStyle=e.width,t.imgHeight=o}))}})},E=()=>{Y({success:e=>{let t=0,o=0;i.value.list.forEach(((l,r)=>{var n=l.imgHeight/l.imgWidth;l.imgWidth=e.windowWidth,l.imgWidth-=X(4*i.value.margin.both),i.value.imageGap>0&&(l.imgWidth-=X(2*i.value.imageGap)),l.imgWidth=l.imgWidth/2,l.imgHeight=l.imgWidth*n,r<=1?(0==t||t1&&(0==o||o{e.imgWidth="calc((100% - "+X(2*i.value.imageGap)+"px) / 2)",e.widthStyle=e.imgWidth,l<=1?e.imgHeight=t:l>1&&(e.imgHeight=o)}))}})},T=()=>{let e=0;i.value.list[1].imgWidth,i.value.list[2].imgWidth,Y({success:t=>{i.value.list.forEach(((o,l)=>{if(0==l){var r=o.imgHeight/o.imgWidth;o.imgWidth=t.windowWidth-X(4*i.value.margin.both)-X(2*i.value.imageGap),o.imgWidth=o.imgWidth/2,o.imgHeight=o.imgWidth*r,e=(o.imgHeight-X(2*i.value.imageGap))/2,o.imgWidth+="px"}else o.imgWidth=i.value.list[0].imgWidth,o.imgHeight=e}))}})},N=()=>{var e=0;Y({success:t=>{i.value.list.forEach(((o,l)=>{var r=o.imgHeight/o.imgWidth;0==l?o.imgWidth=t.windowWidth-X(4*i.value.margin.both):l>0&&(o.imgWidth=t.windowWidth-X(4*i.value.margin.both)-X(2*i.value.imageGap),o.imgWidth=o.imgWidth/2),o.imgHeight=o.imgWidth*r,l>0&&(0==e||e{t.imgWidth+="px",t.widthStyle=t.imgWidth,o>0&&(t.imgHeight=e)}))}})},I=()=>{Y({success:e=>{i.value.list.forEach(((t,o)=>{if(0==o){var l=t.imgHeight/t.imgWidth;t.imgWidth=e.windowWidth-X(4*i.value.margin.both)-X(2*i.value.imageGap),t.imgWidth=t.imgWidth/2,t.imgHeight=t.imgWidth*l}else 1==o?(t.imgWidth=i.value.list[0].imgWidth,t.imgHeight=(i.value.list[0].imgHeight-X(2*i.value.imageGap))/2):o>1&&(t.imgWidth=(i.value.list[0].imgWidth-X(2*i.value.imageGap))/2,t.imgHeight=i.value.list[1].imgHeight)})),i.value.list.forEach(((e,t)=>{e.imgWidth+="px"}))}})};return(e,t)=>{const o=D,l=s(u("app-link"),J),n=R;return d(),c(n,{class:g(["rubik-cube",v(r).mode]),style:C(v(_))},{default:p((()=>[y(" 1左2右 "),"row1-lt-of2-rt"==v(i).mode?(d(),m(f,{key:0},[x(n,{class:"template-left"},{default:p((()=>[x(l,{data:v(i).list[0].link,class:g(["item",v(i).mode]),style:C({width:v(i).list[0].imgWidth,height:v(i).list[0].imgHeight+"px"})},{default:p((()=>[x(o,{src:v(b)(v(i).list[0].imageUrl),mode:"scaleToFill",style:C(v(i).list[0].pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])])),_:1},8,["data","class","style"])])),_:1}),x(n,{class:"template-right"},{default:p((()=>[(d(!0),m(f,null,h(v(i).list,((e,t)=>(d(),m(f,{key:t},[t>0?(d(),c(l,{key:0,data:e.link,class:g(["item",v(i).mode]),style:C({marginBottom:2*v(i).imageGap+"rpx",width:e.imgWidth,height:e.imgHeight+"px"})},{default:p((()=>[x(o,{src:v(b)(e.imageUrl),mode:"scaleToFill",style:C(e.pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])])),_:2},1032,["data","class","style"])):y("v-if",!0)],64)))),128))])),_:1})],64)):"row1-lt-of1-tp-of2-bm"==v(i).mode?(d(),m(f,{key:1},[y(" 1左3右 "),x(n,{class:"template-left"},{default:p((()=>[x(l,{data:v(i).list[0].link,class:g(["item",v(i).mode]),style:C({marginRight:2*v(i).imageGap+"rpx",width:v(i).list[0].imgWidth,height:v(i).list[0].imgHeight+"px"})},{default:p((()=>[x(o,{src:v(b)(v(i).list[0].imageUrl),mode:"scaleToFill",style:C(v(i).list[0].pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])])),_:1},8,["data","class","style"])])),_:1}),x(n,{class:"template-right"},{default:p((()=>[x(l,{data:v(i).list[1].link,class:g(["item",v(i).mode]),style:C({marginBottom:2*v(i).imageGap+"rpx",width:v(i).list[1].imgWidth,height:v(i).list[1].imgHeight+"px"})},{default:p((()=>[x(o,{src:v(b)(v(i).list[1].imageUrl),mode:"scaleToFill",style:C(v(i).list[1].pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])])),_:1},8,["data","class","style"]),x(n,{class:"template-bottom"},{default:p((()=>[(d(!0),m(f,null,h(v(i).list,((e,t)=>(d(),m(f,{key:t},[t>1?(d(),c(l,{key:0,data:e.link,class:g(["item",v(i).mode]),style:C({marginRight:2*v(i).imageGap+"rpx",width:e.imgWidth,height:e.imgHeight+"px"})},{default:p((()=>[x(o,{src:v(b)(e.imageUrl),mode:"scaleToFill",style:C(e.pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])])),_:2},1032,["data","class","style"])):y("v-if",!0)],64)))),128))])),_:1})])),_:1})],64)):(d(!0),m(f,{key:2},h(v(i).list,((e,t)=>(d(),c(l,{class:g(["item",v(i).mode]),key:t,data:e.link,style:C({marginRight:2*v(i).imageGap+"rpx",marginBottom:2*v(i).imageGap+"rpx",width:e.widthStyle,height:e.imgHeight+"px"})},{default:p((()=>[x(o,{src:v(b)(e.imageUrl),mode:"scaleToFill",style:C(e.pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])])),_:2},1032,["class","data","style"])))),128))])),_:1},8,["class","style"])}}}),[["__scopeId","data-v-234f927d"]]),ye=K(t({__name:"index",props:["component","index","pullDownRefreshCount"],setup(t){const r=t,a=o(),i=l((()=>"decorate"==a.mode?a.value[r.index]:r.component)),m=l((()=>{var e="";return i.value.componentBgColor&&(e+="background-color:"+i.value.componentBgColor+";"),i.value.topRounded&&(e+="border-top-left-radius:"+2*i.value.topRounded+"rpx;"),i.value.topRounded&&(e+="border-top-right-radius:"+2*i.value.topRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*i.value.bottomRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*i.value.bottomRounded+"rpx;"),e}));return n((()=>r.pullDownRefreshCount),((e,t)=>{})),(t,o)=>{const l=R,r=s(u("app-link"),J),n=S,a=s(u("u-icon"),e);return d(),c(l,{class:"diy-text",style:C(v(m))},{default:p((()=>["style-1"==v(i).style?(d(),c(l,{key:0,class:"p-[20rpx]"},{default:p((()=>[x(r,{data:v(i).link},{default:p((()=>[x(l,{style:C({fontSize:2*v(i).fontSize+"rpx",color:v(i).textColor,fontWeight:v(i).fontWeight,textAlign:v(i).textAlign})},{default:p((()=>[_(w(v(i).text),1)])),_:1},8,["style"])])),_:1},8,["data"])])),_:1})):y("v-if",!0),"style-2"==v(i).style?(d(),c(l,{key:1,class:"p-[20rpx] flex items-center"},{default:p((()=>[x(r,{data:v(i).link},{default:p((()=>[x(l,{class:"max-w-[200rpx] truncate",style:C({fontSize:2*v(i).fontSize+"rpx",color:v(i).textColor,fontWeight:v(i).fontWeight})},{default:p((()=>[_(w(v(i).text),1)])),_:1},8,["style"])])),_:1},8,["data"]),x(n,{class:"ml-[16rpx] max-w-[300rpx] truncate",style:C({color:v(i).subTitle.color,fontSize:2*v(i).subTitle.fontSize+"rpx"})},{default:p((()=>[_(w(v(i).subTitle.text),1)])),_:1},8,["style"]),v(i).more.isShow?(d(),c(l,{key:0,class:"ml-auto text-right",style:C({color:v(i).more.color})},{default:p((()=>[x(r,{data:v(i).more.link,class:"flex items-center"},{default:p((()=>[x(n,{class:"max-w-[200rpx] truncate text-[24rpx] mr-[8rpx]"},{default:p((()=>[_(w(v(i).more.text),1)])),_:1}),x(a,{name:"arrow-right",size:"12",style:C({color:v(i).more.color})},null,8,["style"])])),_:1},8,["data"])])),_:1},8,["style"])):y("v-if",!0)])),_:1})):y("v-if",!0)])),_:1},8,["style"])}}}),[["__scopeId","data-v-0fd57f27"]]),_e=K(t({__name:"index",props:["component","index","pullDownRefreshCount"],setup(t){const a=t,i=o(),D=r([]),E=l((()=>"decorate"==i.mode?i.value[a.index]:a.component)),T=l((()=>{var e="";return E.value.componentBgColor&&(e+="background-color:"+E.value.componentBgColor+";"),E.value.topRounded&&(e+="border-top-left-radius:"+2*E.value.topRounded+"rpx;"),E.value.topRounded&&(e+="border-top-right-radius:"+2*E.value.topRounded+"rpx;"),E.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*E.value.bottomRounded+"rpx;"),E.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*E.value.bottomRounded+"rpx;"),e})),N=l((()=>{var e="";return E.value.elementBgColor&&(e+="background-color:"+E.value.elementBgColor+";"),E.value.topElementRounded&&(e+="border-top-left-radius:"+2*E.value.topElementRounded+"rpx;"),E.value.topElementRounded&&(e+="border-top-right-radius:"+2*E.value.topElementRounded+"rpx;"),E.value.bottomElementRounded&&(e+="border-bottom-left-radius:"+2*E.value.bottomElementRounded+"rpx;"),E.value.bottomElementRounded&&(e+="border-bottom-right-radius:"+2*E.value.bottomElementRounded+"rpx;"),e}));n((()=>a.pullDownRefreshCount),((e,t)=>{}));(()=>{if("decorate"==i.mode){let e={image:"",summary:"文章摘要",title:"文章标题",create_time:"2023-03-28 09:00:00"};D.value.push(e),D.value.push(e)}else(()=>{let e={};"diy"==E.value.sources?e.ids=E.value.articleIds:e.limit=E.value.count,oe(e).then((e=>{D.value=e.data}))})()})();return(t,o)=>{const l=s(u("u-icon"),e),r=s(u("u--image"),q),n=R,a=S;return d(),c(n,{style:C(v(T))},{default:p((()=>[(d(!0),m(f,null,h(D.value,((e,t)=>(d(),c(n,{key:e.id,class:g(["item flex align-center p-[20rpx]",{"border-solid border-t-0 border-l-0 border-r-0 border-b border-gray-200 mb-[20rpx]":D.value.length-1!==t}]),onClick:t=>{return o=e.id,void k({url:"/cms/pages/detail",param:{id:o}});var o},style:C(v(N))},{default:p((()=>[e.image?(d(),c(r,{key:0,width:"260rpx",height:"200rpx",src:v(b)(e.image),model:"aspectFill"},{error:p((()=>[x(l,{name:"photo",color:"#999",size:"50"})])),_:2},1032,["src"])):y("v-if",!0),x(n,{class:"flex-1 flex flex-col justify-between ml-[20rpx]"},{default:p((()=>[x(n,{class:"text-[32rpx] leading-[1.3] multi-hidden mt-[4rpx]"},{default:p((()=>[_(w(e.title),1)])),_:2},1024),x(n,{class:"text-[28rpx] using-hidden mb-[auto] mt-[20rpx] text-gray-500"},{default:p((()=>[_(w(e.summary),1)])),_:2},1024),x(n,{class:"text-[24rpx] text-gray-400 flex justify-between mt-[10rpx]"},{default:p((()=>[x(a,null,{default:p((()=>[_(w(e.create_time),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1032,["class","onClick","style"])))),128))])),_:1},8,["style"])}}}),[["__scopeId","data-v-f7d3e968"]]),we=K(t({__name:"index",props:["component","index","pullDownRefreshCount"],setup(e){const t=e,a=o(),i=l((()=>"decorate"==a.mode?a.value[t.index]:t.component)),E=l((()=>{var e="";return i.value.componentBgColor&&(e+="background-color:"+i.value.componentBgColor+";"),i.value.topRounded&&(e+="border-top-left-radius:"+2*i.value.topRounded+"rpx;"),i.value.topRounded&&(e+="border-top-right-radius:"+2*i.value.topRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*i.value.bottomRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*i.value.bottomRounded+"rpx;"),e}));let T=r([]),N=r(!1);const I=()=>{if("decorate"==a.mode){let e={cover_thumb_big:b("static/resource/images/diy/block_placeholder.png"),scenic_name:"卡项项目名称",price:100,sale_num:100};T.value.push(e),T.value.push(e),N.value=!0}else(()=>{let e={limit:i.value.count};N.value=!1,le(e).then((e=>{T.value=e.data,N.value=!0})).catch((()=>{N.value=!0}))})()};return n((()=>t.pullDownRefreshCount),((e,t)=>{})),G((()=>{I()})),(e,t)=>{var o;const l=S,r=R,n=D,a=s(u("u-button"),Z);return v(N)&&(null==(o=v(T))?void 0:o.length)?(d(),c(r,{key:0,class:"diy-text goods-wrap py-[30rpx] px-[32rpx]",style:C(v(E))},{default:p((()=>[x(r,{class:"flex justify-between items-center w-full mb-4"},{default:p((()=>[x(l,{class:"font-bold"},{default:p((()=>[_(w(v(A)("card")),1)])),_:1}),x(r,{class:"flex items-center",onClick:t[0]||(t[0]=e=>v(k)({url:"/vipcard/pages/card/list"}))},{default:p((()=>[x(l,{class:"text-xs text-[#666]"},{default:p((()=>[_(w(v(A)("seeMore")),1)])),_:1}),x(l,{class:"iconfont iconanniu-jiantouxiangyou_o font-bold text-[#666]"})])),_:1})])),_:1}),x(r,{class:"content"},{default:p((()=>[(d(!0),m(f,null,h(v(T),((e,t)=>(d(),c(r,{class:g(["flex",{"mb-3":v(T).length-1!=t}]),key:e.way_id,onClick:t=>{k({url:"/vipcard/pages/card/detail",param:{id:e.goods_id}})}},{default:p((()=>[x(n,{src:v(b)(e.cover_thumb_small),class:"w-[240rpx] h-[180rpx] mr-[20rpx] rounded-md",mode:"aspectFill"},null,8,["src"]),x(r,{class:"flex flex-col flex-1 py-[20rpx]"},{default:p((()=>[x(r,{class:"text-sm font-bold multi-hidden"},{default:p((()=>[_(w(e.goods_name),1)])),_:2},1024),x(r,{class:"flex items-center mt-2 text-[#F55246] font-bold text-xs"},{default:p((()=>[_(" ¥"),x(l,{class:"text-base"},{default:p((()=>[_(w(e.price),1)])),_:2},1024)])),_:2},1024),x(r,{class:"flex items-center mt-auto justify-between"},{default:p((()=>[U("span",{class:"text-xs text-[#666]"},w(v(A)("soldOut"))+" "+w(e.sale_num),1),x(a,{type:"primary",class:"text-sm !w-[140rpx] flex items-center justify-center !h-[62rpx] !rounded-2xl mx-0"},{default:p((()=>[_(w(v(A)("cardBtn")),1)])),_:1})])),_:2},1024)])),_:2},1024)])),_:2},1032,["class","onClick"])))),128))])),_:1})])),_:1},8,["style"])):y("v-if",!0)}}}),[["__scopeId","data-v-13250632"]]),Ce=K(t({__name:"index",props:["component","index","pullDownRefreshCount"],setup(e){const t=e,a=o(),i=l((()=>"decorate"==a.mode?a.value[t.index]:t.component)),E=l((()=>{var e="";return i.value.componentBgColor&&(e+="background-color:"+i.value.componentBgColor+";"),i.value.topRounded&&(e+="border-top-left-radius:"+2*i.value.topRounded+"rpx;"),i.value.topRounded&&(e+="border-top-right-radius:"+2*i.value.topRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*i.value.bottomRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*i.value.bottomRounded+"rpx;"),e}));let T=r([]),N=r(!1);const I=()=>{if("decorate"==a.mode){let e={cover_thumb_big:b("static/resource/images/diy/block_placeholder.png"),scenic_name:"项目预约名称",price:100,sale_num:100};T.value.push(e),T.value.push(e),N.value=!0}else(()=>{let e={limit:i.value.count};N.value=!1,re(e).then((e=>{T.value=e.data,N.value=!0})).catch((()=>{N.value=!0}))})()};return n((()=>t.pullDownRefreshCount),((e,t)=>{})),G((()=>{I()})),(e,t)=>{var o;const l=S,r=R,n=D,a=s(u("u-button"),Z);return v(N)&&(null==(o=v(T))?void 0:o.length)?(d(),c(r,{key:0,class:"diy-text goods-wrap py-[30rpx] px-[32rpx]",style:C(v(E))},{default:p((()=>[x(r,{class:"flex justify-between items-center w-full mb-4"},{default:p((()=>[x(l,{class:"font-bold"},{default:p((()=>[_(w(v(A)("cardReserve")),1)])),_:1}),x(r,{class:"flex items-center",onClick:t[0]||(t[0]=e=>v(k)({url:"/vipcard/pages/service/list"}))},{default:p((()=>[x(l,{class:"text-xs text-[#666]"},{default:p((()=>[_(w(v(A)("seeMore")),1)])),_:1}),x(l,{class:"iconfont iconanniu-jiantouxiangyou_o font-bold text-[#666]"})])),_:1})])),_:1}),x(r,{class:"content"},{default:p((()=>[(d(!0),m(f,null,h(v(T),((e,t)=>(d(),c(r,{class:g(["flex",{"mb-3":v(T).length-1!=t}]),key:e.way_id,onClick:t=>{k({url:"/vipcard/pages/service/detail",param:{id:e.goods_id}})}},{default:p((()=>[x(n,{src:v(b)(e.cover_thumb_small),class:"w-[240rpx] h-[180rpx] mr-[20rpx] rounded-md",mode:"aspectFill"},null,8,["src"]),x(r,{class:"flex flex-col flex-1 py-[20rpx]"},{default:p((()=>[x(r,{class:"text-sm font-bold multi-hidden"},{default:p((()=>[_(w(e.goods_name),1)])),_:2},1024),x(r,{class:"flex items-center mt-2 text-[#F55246] font-bold text-xs"},{default:p((()=>[_(" ¥"),x(l,{class:"text-base"},{default:p((()=>[_(w(e.price),1)])),_:2},1024)])),_:2},1024),x(r,{class:"flex items-center mt-auto justify-between"},{default:p((()=>[U("span",{class:"text-xs text-[#666]"},w(v(A)("soldOut"))+" "+w(e.sale_num),1),x(a,{type:"primary",class:"text-sm !w-[140rpx] flex items-center justify-center !h-[62rpx] !rounded-2xl mx-0"},{default:p((()=>[_(w(v(A)("reserveBtn")),1)])),_:1})])),_:2},1024)])),_:2},1024)])),_:2},1032,["class","onClick"])))),128))])),_:1})])),_:1},8,["style"])):y("v-if",!0)}}}),[["__scopeId","data-v-5aa71c70"]]),ke=K(t({__name:"index",props:["component","index","pullDownRefreshCount"],setup(e){const t=e,a=o(),i=l((()=>"decorate"==a.mode?a.value[t.index]:t.component)),s=l((()=>{var e="";return i.value.componentBgColor&&(e+="background-color:"+i.value.componentBgColor+";"),i.value.topRounded&&(e+="border-top-left-radius:"+2*i.value.topRounded+"rpx;"),i.value.topRounded&&(e+="border-top-right-radius:"+2*i.value.topRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*i.value.bottomRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*i.value.bottomRounded+"rpx;"),e})),u=(e,t={})=>{k({url:e,param:t})},h=()=>{z().setLoginBack({url:"/app/pages/member/index"})};let g=r(!1);const E=I();I().getMemberInfo((()=>{g.value=!0}));const T=l((()=>"decorate"==a.mode?{headimg:"addon/vipcard/vipcard/index/head.png",nickname:"昵称",balance:0,point:0,money:0,member_no:"NIU0000021"}:E.info));return n((()=>t.pullDownRefreshCount),((e,t)=>{})),(e,t)=>{const o=D,l=R,r=S;return v(g)?(d(),c(l,{key:0,class:"diy-text",style:C(v(s))},{default:p((()=>[x(l,{class:"flex items-center p-[32rpx] pb-0"},{default:p((()=>[v(T)?(d(),m(f,{key:0},[x(o,{class:"w-[96rpx] h-[96rpx]",src:v(b)(v(T).headimg),onError:t[0]||(t[0]=e=>v(T).headimg="addon/vipcard/vipcard/index/head.png"),mode:"aspectFill"},null,8,["src"]),x(l,{class:"ml-[22rpx] mr-[60rpx] w-[56%]"},{default:p((()=>[x(l,{class:"flex-1 multi-hidden font-bold"},{default:p((()=>[_(w(v(T).nickname),1)])),_:1}),x(l,{class:"text-[#696B70] text-[24rpx] mt-[10rpx]"},{default:p((()=>[_(" UID:"+w(v(T).member_no),1)])),_:1})])),_:1})],64)):(d(),m(f,{key:1},[x(o,{class:"w-[96rpx] h-[96rpx]",src:v(b)("addon/vipcard/vipcard/index/head.png"),mode:"aspectFill"},null,8,["src"]),x(l,{class:"flex-1 ml-[20rpx] mr-[60rpx] w-[56%] multi-hidden font-bold",onClick:h},{default:p((()=>[_(w(v(A)("login"))+"/"+w(v(A)("register")),1)])),_:1})],64)),x(l,{class:"flex flex-col items-center justify-center",onClick:t[1]||(t[1]=e=>(()=>{if(!$())return z().setLoginBack({url:"/vipcard/pages/index"}),!1;k({url:"/app/pages/member/code"})})())},{default:p((()=>[x(o,{class:"w-[36rpx] h-[36rpx]",src:v(b)("addon/vipcard/vipcard/index/code.png"),mode:"aspectFill"},null,8,["src"]),x(r,{class:"text-xs mt-1"},{default:p((()=>[_(w(v(A)("memberCode")),1)])),_:1})])),_:1})])),_:1}),x(l,{class:"card-list pb-[32rpx]"},{default:p((()=>[x(l,{class:"card-item",onClick:t[2]||(t[2]=e=>u("/vipcard/pages/order/my_reserved"))},{default:p((()=>[x(o,{class:"w-[42rpx] h-[42rpx]",src:v(b)("addon/vipcard/vipcard/index/reserve.png"),mode:"aspectFill"},null,8,["src"]),x(r,{class:"text-xs"},{default:p((()=>[_(w(v(A)("reserve")),1)])),_:1})])),_:1}),x(l,{class:"card-item",onClick:t[3]||(t[3]=e=>u("/vipcard/pages/order/my_card"))},{default:p((()=>[x(o,{class:"w-[42rpx] h-[42rpx]",src:v(b)("addon/vipcard/vipcard/index/card.png"),mode:"aspectFill"},null,8,["src"]),x(r,{class:"text-xs"},{default:p((()=>[_(w(v(A)("cardLink")),1)])),_:1})])),_:1}),x(l,{class:"card-item",onClick:t[4]||(t[4]=e=>u("/app/pages/member/index"))},{default:p((()=>[x(o,{class:"w-[42rpx] h-[42rpx]",src:v(b)("addon/vipcard/vipcard/index/my.png"),mode:"aspectFill"},null,8,["src"]),x(r,{class:"text-xs"},{default:p((()=>[_(w(v(A)("myLink")),1)])),_:1})])),_:1})])),_:1})])),_:1},8,["style"])):y("v-if",!0)}}}),[["__scopeId","data-v-4aa0c5a3"]]),Re=K(t({__name:"index",props:["component","index","pullDownRefreshCount"],setup(t){const i=t,D=o(),E=r([]),T=l((()=>"decorate"==D.mode?D.value[i.index]:i.component)),N=l((()=>{var e="";return T.value.componentBgColor&&(e+="background-color:"+T.value.componentBgColor+";"),T.value.topRounded&&(e+="border-top-left-radius:"+2*T.value.topRounded+"rpx;"),T.value.topRounded&&(e+="border-top-right-radius:"+2*T.value.topRounded+"rpx;"),T.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*T.value.bottomRounded+"rpx;"),T.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*T.value.bottomRounded+"rpx;"),e}));n((()=>i.pullDownRefreshCount),((e,t)=>{}));a((()=>{I(),"decorate"==D.mode&&n((()=>T.value),((e,t)=>{e&&"AddonList"==e.componentName&&I()}))}));const I=()=>{if("decorate"==D.mode){let e={goods_cover:"",goods_name:"商品名称",sale_num:"100",unit:"件",goodsSku:{price:100}};E.value.push(e),E.value.push(e)}else(()=>{let e={num:"all"==T.value.source?T.value.num:"",goods_ids:"custom"==T.value.source?T.value.goods_ids:"",goods_category:"category"==T.value.source?T.value.goods_category:""};ne(e).then((e=>{E.value=e.data}))})()},B=e=>{if("decorate"==D.mode)return!1;k({url:"/shop/pages/goods/detail",param:{goods_id:e.goods_id}})};return(t,o)=>{const l=s(u("u-icon"),e),r=s(u("u--image"),q),n=R,a=S;return d(),c(n,{style:C(v(N))},{default:p((()=>[U("div",{class:"flex flex-wrap justify-between"},["style1"==v(T).style?(d(!0),m(f,{key:0},h(E.value,((e,t)=>(d(),c(n,{class:g(["w-[332rpx] bg-[#fff] box-border rounded-[12rpx] overflow-hidden",{"mt-[24rpx]":t>1}]),key:e.goods_id,onClick:t=>B(e)},{default:p((()=>[x(r,{width:"332rpx",height:"332rpx",src:v(b)(e.goods_cover_thumb_small||""),model:"aspectFill"},{error:p((()=>[x(l,{name:"photo",color:"#999",size:"50"})])),_:2},1032,["src"]),x(n,{class:"px-[16rpx] mt-[18rpx] h-[80rpx] leading-[40rpx] text-[28rpx] multi-hidden"},{default:p((()=>[_(w(e.goods_name),1)])),_:2},1024),x(n,{class:"px-[16rpx] pb-[20rpx] flex justify-between items-end mt-[12rpx]"},{default:p((()=>[x(a,{class:"text-[28rpx] text-[var(--price-text-color)] price-font"},{default:p((()=>[_("¥"+w(e.goodsSku.price),1)])),_:2},1024),x(a,{class:"text-[22rpx] text-[#888] leading-[31rpx]"},{default:p((()=>[_("已售"+w(e.sale_num)+w(e.unit||"件"),1)])),_:2},1024)])),_:2},1024)])),_:2},1032,["class","onClick"])))),128)):y("v-if",!0),"style2"==v(T).style?(d(!0),m(f,{key:1},h(E.value,((e,t)=>(d(),c(n,{class:g(["bg-white w-full flex p-[20rpx] rounded-[16rpx]",{"mt-[20rpx]":t>0}]),key:e.goods_id,onClick:t=>B(e)},{default:p((()=>[x(r,{class:"rounded-[10rpx] overflow-hidden",width:"200rpx",height:"200rpx",src:v(b)(e.goods_cover_thumb_small||""),model:"aspectFill"},{error:p((()=>[x(l,{name:"photo",color:"#999",size:"50"})])),_:2},1032,["src"]),x(n,{class:"flex-1 flex flex-col ml-[20rpx]"},{default:p((()=>[x(n,{class:"text-[26rpx] h-[80rpx] leading-[40rpx] multi-hidden mb-[10rpx]"},{default:p((()=>[_(w(e.goods_name),1)])),_:2},1024),x(n,{class:"mt-auto flex justify-between items-end"},{default:p((()=>[x(a,{class:"text-[28rpx] text-[var(--price-text-color)] price-font"},{default:p((()=>[_("¥"+w(e.goodsSku.price),1)])),_:2},1024),x(a,{class:"text--[24rpx] text-[#666]"},{default:p((()=>[_("已售"+w(e.sale_num)+w(e.unit||"件"),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1032,["class","onClick"])))),128)):y("v-if",!0)])])),_:1},8,["style"])}}}),[["__scopeId","data-v-47bafc58"]]),Se=K(t({__name:"index",props:["component","index","pullDownRefreshCount"],setup(e){const t=e,i=o();r(!1);const s=l((()=>"decorate"==i.mode?i.value[t.index]:t.component)),u=l((()=>{var e="";return s.value.componentBgColor&&(e+="background-color:"+s.value.componentBgColor+";"),s.value.topRounded&&(e+="border-top-left-radius:"+2*s.value.topRounded+"rpx;"),s.value.topRounded&&(e+="border-top-right-radius:"+2*s.value.topRounded+"rpx;"),s.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*s.value.bottomRounded+"rpx;"),s.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*s.value.bottomRounded+"rpx;"),e}));n((()=>t.pullDownRefreshCount),((e,t)=>{})),a((()=>{m(),"decorate"==i.mode&&n((()=>s.value),((e,t)=>{e&&"AddonList"==e.componentName&&m()}))}));const m=()=>{i.mode},f=e=>{if("decorate"==i.mode)return!1;k({url:e})};return(e,t)=>{const o=D,l=S,r=R;return d(),c(r,{style:C(v(u)),class:"overflow-hidden flex items-center pl-[24rpx]"},{default:p((()=>[x(o,{src:v(b)("addon/shop/diy/search_01.png"),class:"w-[40rpx] h-[40rpx]",mode:"widthFix",onClick:t[0]||(t[0]=e=>f("/shop/pages/goods/category"))},null,8,["src"]),x(r,{class:"flex-1 ml-[24rpx] rounded-[32rpx] flex items-center bg-[#F7F8FD] opacity-90 py-[18rpx] pl-[38rpx] pr-[32rpx] justify-between",onClick:t[1]||(t[1]=e=>f("/shop/pages/goods/list"))},{default:p((()=>[x(l,{class:"text-[#6D7278] text-[26rpx]"},{default:p((()=>[_("请输入搜索关键词")])),_:1}),x(l,{class:"iconfont iconxiazai17"})])),_:1})])),_:1},8,["style"])}}}),[["__scopeId","data-v-49107c73"]]),De=K(t({__name:"index",props:["component","index","pullDownRefreshCount"],setup(e){const t=e,a=o(),i=l((()=>"decorate"==a.mode?a.value[t.index]:t.component)),s=l((()=>{var e="";return i.value.componentBgColor&&(e+="background-color:"+i.value.componentBgColor+";"),i.value.topRounded&&(e+="border-top-left-radius:"+2*i.value.topRounded+"rpx;"),i.value.topRounded&&(e+="border-top-right-radius:"+2*i.value.topRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*i.value.bottomRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*i.value.bottomRounded+"rpx;"),e})),u=e=>{k({url:"/tourism/pages/hotel/detail",param:{id:e}})};let E=r([]),T=r(!1);const N=()=>{if("decorate"==a.mode){let e={cover_thumb_big:b("static/resource/images/diy/block_placeholder.png"),cover_thumb_mid:b("static/resource/images/diy/block_placeholder.png"),hotel_name:"酒店名称",hotel_attribute:["标签","标签","标签"],hotel_star:5,goods:{price:100}};E.value.push(e),E.value.push(e),T.value=!0}else(()=>{let e={limit:i.value.count};T.value=!1,ae(e).then((e=>{E.value=e.data,E.value.forEach(((e,t)=>{e.hotel_attribute&&(e.hotel_attribute=e.hotel_attribute.split(",").filter((e=>e&&e.trim())))})),T.value=!0})).catch((()=>{T.value=!0}))})()};return n((()=>t.pullDownRefreshCount),((e,t)=>{})),G((()=>{N()})),(e,t)=>{var o;const l=R,r=D,n=S;return v(T)&&(null==(o=v(E))?void 0:o.length)?(d(),c(l,{key:0,class:"diy-text py-[30rpx] goods-wrap px-[32rpx]",style:C(v(s))},{default:p((()=>[x(l,{class:"head"},{default:p((()=>[_(w(v(A)("hotel")),1)])),_:1}),x(l,{class:"content w-full"},{default:p((()=>["oneLines"==v(i).layout?(d(!0),m(f,{key:0},h(v(E),((e,t)=>(d(),c(l,{class:"flex mt-[30rpx]",key:e.hotel_id,onClick:t=>u(e.hotel_id)},{default:p((()=>[x(r,{class:"w-[238rpx] h-[238rpx] mr-[20rpx] rounded-md",src:v(b)(e.cover_thumb_big),mode:"aspectFill"},null,8,["src"]),x(l,{class:"flex flex-col flex-1 py-[10rpx]"},{default:p((()=>[x(l,{class:"text-sm font-bold multi-hidden"},{default:p((()=>[_(w(e.hotel_name),1)])),_:2},1024),x(l,{class:"flex mt-1 justify-between text-[#646464]"},{default:p((()=>[x(l,{class:"flex flex-wrap text-xs"},{default:p((()=>[(d(!0),m(f,null,h(e.hotel_attribute,((e,t)=>(d(),m(f,{key:t},[t<3?(d(),c(n,{key:0,class:g(["break-all",{"class-select":2!=t}])},{default:p((()=>[_(w(e),1)])),_:2},1032,["class"])):y("v-if",!0)],64)))),128))])),_:2},1024),x(n,{class:"text-xs text-right w-[120rpx]"},{default:p((()=>[_(w(v(A)("starLevel"))+":"+w(e.hotel_star)+w(v(A)("star")),1)])),_:2},1024)])),_:2},1024),x(l,{class:"flex items-center mt-auto text-[#F55246] text-xs"},{default:p((()=>[x(l,null,{default:p((()=>[x(n,{class:"price-font"},{default:p((()=>[_("¥")])),_:1}),x(n,{class:"text-base price-font"},{default:p((()=>[_(w(e.goods.price),1)])),_:2},1024),_(" "+w(v(A)("rise")),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1032,["onClick"])))),128)):y("v-if",!0),"twoLines"==v(i).layout?(d(),c(l,{key:1,class:"flex flex-wrap justify-between"},{default:p((()=>[(d(!0),m(f,null,h(v(E),((e,t)=>(d(),c(l,{class:"flex flex-col mt-[30rpx] w-[330rpx]",key:e.hotel_id,onClick:t=>u(e.hotel_id)},{default:p((()=>[x(r,{class:"w-[330rpx] h-[330rpx] rounded-md",src:v(b)(e.cover_thumb_mid),mode:"aspectFill"},null,8,["src"]),x(l,{class:"flex flex-col flex-1 py-[10rpx]"},{default:p((()=>[x(l,{class:"text-sm font-bold truncate"},{default:p((()=>[_(w(e.hotel_name),1)])),_:2},1024),x(l,{class:"flex mt-1 flex-col text-[#646464]"},{default:p((()=>[x(l,{class:"flex flex-wrap text-xs"},{default:p((()=>[(d(!0),m(f,null,h(e.hotel_attribute,((e,t)=>(d(),m(f,{key:t},[t<3?(d(),c(n,{key:0,class:g(["break-all",{"class-select":2!=t}])},{default:p((()=>[_(w(e),1)])),_:2},1032,["class"])):y("v-if",!0)],64)))),128))])),_:2},1024),x(n,{class:"text-xs"},{default:p((()=>[_(w(v(A)("starLevel"))+":"+w(e.hotel_star)+w(v(A)("star")),1)])),_:2},1024)])),_:2},1024),x(l,{class:"flex items-center mt-auto text-[#F55246] text-xs"},{default:p((()=>[x(l,null,{default:p((()=>[x(n,{class:"price-font"},{default:p((()=>[_("¥")])),_:1}),x(n,{class:"text-base price-font"},{default:p((()=>[_(w(e.goods.price),1)])),_:2},1024),_(" "+w(v(A)("rise")),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1032,["onClick"])))),128))])),_:1})):y("v-if",!0)])),_:1})])),_:1},8,["style"])):y("v-if",!0)}}}),[["__scopeId","data-v-16f61a87"]]),Ee=K(t({__name:"index",props:["component","index","pullDownRefreshCount"],setup(t){const a=t,i=o(),g=l((()=>"decorate"==i.mode?i.value[a.index]:a.component)),E=l((()=>{var e="";return g.value.componentBgColor&&(e+="background-color:"+g.value.componentBgColor+";"),g.value.topRounded&&(e+="border-top-left-radius:"+2*g.value.topRounded+"rpx;"),g.value.topRounded&&(e+="border-top-right-radius:"+2*g.value.topRounded+"rpx;"),g.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*g.value.bottomRounded+"rpx;"),g.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*g.value.bottomRounded+"rpx;"),e})),T=e=>{k({url:"/tourism/pages/scenic/detail",param:{scenic_id:e.scenic_id}})};let N=r([]),I=r(!1);const B=()=>{if("decorate"==i.mode){let e={cover_thumb_big:b("static/resource/images/diy/block_placeholder.png"),cover_thumb_mid:b("static/resource/images/diy/block_placeholder.png"),scenic_name:"景点名称",price:100};N.value.push(e),N.value.push(e),I.value=!0}else(()=>{let e={limit:g.value.count};I.value=!1,ie(e).then((e=>{N.value=e.data,I.value=!0})).catch((()=>{I.value=!0}))})()};return n((()=>a.pullDownRefreshCount),((e,t)=>{})),G((()=>{B()})),(t,o)=>{var l;const r=R,n=D,a=S,i=s(u("u-icon"),e);return v(I)&&(null==(l=v(N))?void 0:l.length)?(d(),c(r,{key:0,class:"diy-text goods-wrap spec py-[30rpx] px-[32rpx]",style:C(v(E))},{default:p((()=>[x(r,{class:"head"},{default:p((()=>[_(w(v(A)("scenic")),1)])),_:1}),x(r,{class:"content"},{default:p((()=>["oneLines"==v(g).layout?(d(),c(r,{key:0,class:"flex-1"},{default:p((()=>[(d(!0),m(f,null,h(v(N),((e,t)=>(d(),c(r,{class:"flex mb-3",key:e.way_id,onClick:t=>T(e)},{default:p((()=>[x(n,{src:v(b)(e.cover_thumb_mid),class:"w-[240rpx] h-[240rpx] mr-[20rpx] rounded-md",mode:"aspectFill"},null,8,["src"]),x(r,{class:"flex flex-col flex-1 py-[10rpx]"},{default:p((()=>[x(r,{class:"text-sm font-bold multi-hidden"},{default:p((()=>[_(w(e.scenic_name),1)])),_:2},1024),x(r,{class:"flex items-center mt-auto text-[#F55246] text-xs price-font"},{default:p((()=>[x(r,null,{default:p((()=>[x(a,{class:"price-font"},{default:p((()=>[_("¥")])),_:1}),x(a,{class:"text-base price-font"},{default:p((()=>[_(w(e.price),1)])),_:2},1024),_(" "+w(v(A)("rise")),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1032,["onClick"])))),128))])),_:1})):y("v-if",!0),"twoLines"==v(g).layout?(d(!0),m(f,{key:1},h(v(N),((e,t)=>(d(),c(r,{class:"goods-item",key:e.way_id,onClick:t=>T(e)},{default:p((()=>[x(n,{src:v(b)(e.cover_thumb_mid),class:"w-[336rpx] h-[240rpx]",mode:"aspectFill"},null,8,["src"]),x(r,{class:"name truncate"},{default:p((()=>[_(w(e.scenic_name),1)])),_:2},1024),x(r,{class:"price"},{default:p((()=>[x(a,{class:"price-font"},{default:p((()=>[_("¥")])),_:1}),x(a,{class:"price-font"},{default:p((()=>[_(w(e.price),1)])),_:2},1024),x(a,null,{default:p((()=>[_(w(v(A)("rise")),1)])),_:1})])),_:2},1024)])),_:2},1032,["onClick"])))),128)):y("v-if",!0)])),_:1}),x(r,{class:"pt-1 w-screen justify-center flex items-center",onClick:o[0]||(o[0]=e=>{k({url:"/tourism/pages/scenic/list"})})},{default:p((()=>[x(a,{class:"text-xs mr-1 text-[#666]"},{default:p((()=>[_(w(v(A)("seeMore")),1)])),_:1}),x(i,{name:"arrow-right",color:"#666",size:"14"})])),_:1})])),_:1},8,["style"])):y("v-if",!0)}}}),[["__scopeId","data-v-032e95d9"]]),Te=K(t({__name:"index",props:["component","index","pullDownRefreshCount"],setup(e){const t=e,a=o(),i=l((()=>"decorate"==a.mode?a.value[t.index]:t.component)),s=l((()=>{var e="";return i.value.componentBgColor&&(e+="background-color:"+i.value.componentBgColor+";"),i.value.topRounded&&(e+="border-top-left-radius:"+2*i.value.topRounded+"rpx;"),i.value.topRounded&&(e+="border-top-right-radius:"+2*i.value.topRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*i.value.bottomRounded+"rpx;"),i.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*i.value.bottomRounded+"rpx;"),e})),u=e=>{k({url:"/tourism/pages/way/detail",param:{way_id:e.way_id,goods_id:e.goods.goods_id}})};let g=r([]),E=r(!1);const T=()=>{if("decorate"==a.mode){let e={goods:{cover_thumb_big:b("static/resource/images/diy/block_placeholder.png"),cover_thumb_mid:b("static/resource/images/diy/block_placeholder.png"),goods_name:"线路名称",price:100}};g.value.push(e),g.value.push(e),E.value=!0}else(()=>{let e={limit:i.value.count};E.value=!1,se(e).then((e=>{E.value=!0,g.value=e.data})).catch((()=>{E.value=!0}))})()};return n((()=>t.pullDownRefreshCount),((e,t)=>{})),G((()=>{T()})),(e,t)=>{var o;const l=R,r=D,n=S;return v(E)&&(null==(o=v(g))?void 0:o.length)?(d(),c(l,{key:0,class:"diy-text goods-wrap py-[30rpx] px-[32rpx]",style:C(v(s))},{default:p((()=>[x(l,{class:"head"},{default:p((()=>[_(w(v(A)("way")),1)])),_:1}),x(l,{class:"content"},{default:p((()=>["oneLines"==v(i).layout?(d(!0),m(f,{key:0},h(v(g),((e,t)=>(d(),c(l,{class:"goods-item",key:e.way_id,onClick:t=>u(e)},{default:p((()=>[x(l,{class:"img-wrap"},{default:p((()=>[e.goods.cover_thumb_big?(d(),c(r,{key:0,src:v(b)(e.goods.cover_thumb_big),mode:"aspectFill"},null,8,["src"])):y("v-if",!0),x(l,{class:"price"},{default:p((()=>[x(n,{class:"price-font"},{default:p((()=>[_("¥")])),_:1}),x(n,{class:"price-font"},{default:p((()=>[_(w(e.goods.price),1)])),_:2},1024),x(n,{class:"ml-[2px]"},{default:p((()=>[_(w(v(A)("rise")),1)])),_:1})])),_:2},1024)])),_:2},1024),x(l,{class:"name truncate"},{default:p((()=>[_(w(e.goods.goods_name),1)])),_:2},1024)])),_:2},1032,["onClick"])))),128)):y("v-if",!0),"twoLines"==v(i).layout?(d(),c(l,{key:1,class:"flex flex-wrap justify-between"},{default:p((()=>[(d(!0),m(f,null,h(v(g),((e,t)=>(d(),c(l,{class:"flex flex-col mt-[30rpx] w-[330rpx]",key:e.way_id,onClick:t=>u(e)},{default:p((()=>[x(r,{class:"w-[330rpx] h-[330rpx] rounded-md",src:v(b)(e.goods.cover_thumb_mid),mode:"aspectFill"},null,8,["src"]),x(l,{class:"flex flex-col flex-1 py-[10rpx]"},{default:p((()=>[x(l,{class:"text-sm font-bold truncate"},{default:p((()=>[_(w(e.goods.goods_name),1)])),_:2},1024),x(l,{class:"flex items-center mt-auto text-[#F55246] text-xs"},{default:p((()=>[x(l,null,{default:p((()=>[x(n,{class:"price-font"},{default:p((()=>[_("¥")])),_:1}),x(n,{class:"text-base price-font"},{default:p((()=>[_(w(e.goods.price),1)])),_:2},1024),_(" "+w(v(A)("rise")),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1032,["onClick"])))),128))])),_:1})):y("v-if",!0)])),_:1})])),_:1},8,["style"])):y("v-if",!0)}}}),[["__scopeId","data-v-9d6b86b3"]]); /**! * Sortable 1.15.0 * @author RubaXa * @author owenm * @license MIT */ function Ne(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,l)}return o}function Ie(e){for(var t=1;t=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}function Ae(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var ze=Ae(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Fe=Ae(/Edge/i),Me=Ae(/firefox/i),He=Ae(/safari/i)&&!Ae(/chrome/i)&&!Ae(/android/i),Pe=Ae(/iP(ad|od|hone)/i),Le=Ae(/chrome/i)&&Ae(/android/i),Xe={capture:!1,passive:!1};function Ye(e,t,o){e.addEventListener(t,o,!ze&&Xe)}function Ge(e,t,o){e.removeEventListener(t,o,!ze&&Xe)}function Ue(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 $e(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Ve(e,t,o,l){if(e){o=o||document;do{if(null!=t&&(">"===t[0]?e.parentNode===o&&Ue(e,t):Ue(e,t))||l&&e===o)return e;if(e===o)break}while(e=$e(e))}return null}var qe,Ke=/\s+/g;function Je(e,t,o){if(e&&t)if(e.classList)e.classList[o?"add":"remove"](t);else{var l=(" "+e.className+" ").replace(Ke," ").replace(" "+t+" "," ");e.className=(l+(o?" "+t:"")).replace(Ke," ")}}function Qe(e,t,o){var l=e&&e.style;if(l){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 l||-1!==t.indexOf("webkit")||(t="-webkit-"+t),l[t]=o+("string"==typeof o?"":"px")}}function Ze(e,t){var o="";if("string"==typeof e)o=e;else do{var l=Qe(e,"transform");l&&"none"!==l&&(o=l+" "+o)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(o)}function et(e,t,o){if(e){var l=e.getElementsByTagName(t),r=0,n=l.length;if(o)for(;r=n:r<=n))return l;if(l===tt())break;l=st(l,!1)}return!1}function rt(e,t,o,l){for(var r=0,n=0,a=e.children;n2&&void 0!==arguments[2]?arguments[2]:{},l=o.evt,r=We(o,bt);vt.pluginEvent.bind(po)(e,t,Ie({dragEl:_t,parentEl:wt,ghostEl:Ct,rootEl:kt,nextEl:Rt,lastDownEl:St,cloneEl:Dt,cloneHidden:Et,dragStarted:Pt,putSortable:jt,activeSortable:po.active,originalEvent:l,oldIndex:Tt,oldDraggableIndex:It,newIndex:Nt,newDraggableIndex:Bt,hideGhostForTarget:io,unhideGhostForTarget:so,cloneNowHidden:function(){Et=!0},cloneNowShown:function(){Et=!1},dispatchSortableEvent:function(e){yt({sortable:t,name:e,originalEvent:l})}},r))};function yt(e){!function(e){var t=e.sortable,o=e.rootEl,l=e.name,r=e.targetEl,n=e.cloneEl,a=e.toEl,i=e.fromEl,s=e.oldIndex,u=e.newIndex,d=e.oldDraggableIndex,c=e.newDraggableIndex,p=e.originalEvent,m=e.putSortable,f=e.extraEventProperties;if(t=t||o&&o[mt]){var h,g=t.options,v="on"+l.charAt(0).toUpperCase()+l.substr(1);!window.CustomEvent||ze||Fe?(h=document.createEvent("Event")).initEvent(l,!0,!0):h=new CustomEvent(l,{bubbles:!0,cancelable:!0}),h.to=a||o,h.from=i||o,h.item=r||o,h.clone=n,h.oldIndex=s,h.newIndex=u,h.oldDraggableIndex=d,h.newDraggableIndex=c,h.originalEvent=p,h.pullMode=m?m.lastPutMode:void 0;var b=Ie(Ie({},f),vt.getEventProperties(l,t));for(var x in b)h[x]=b[x];o&&o.dispatchEvent(h),g[v]&&g[v].call(t,h)}}(Ie({putSortable:jt,cloneEl:Dt,targetEl:_t,rootEl:kt,oldIndex:Tt,oldDraggableIndex:It,newIndex:Nt,newDraggableIndex:Bt},e))}var _t,wt,Ct,kt,Rt,St,Dt,Et,Tt,Nt,It,Bt,Ot,jt,Wt,At,zt,Ft,Mt,Ht,Pt,Lt,Xt,Yt,Gt,Ut=!1,$t=!1,Vt=[],qt=!1,Kt=!1,Jt=[],Qt=!1,Zt=[],eo="undefined"!=typeof document,to=Pe,oo=Fe||ze?"cssFloat":"float",lo=eo&&!Le&&!Pe&&"draggable"in document.createElement("div"),ro=function(){if(eo){if(ze)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),no=function(e,t){var o=Qe(e),l=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),r=rt(e,0,t),n=rt(e,1,t),a=r&&Qe(r),i=n&&Qe(n),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+ot(r).width,u=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+ot(n).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!n||"both"!==i.clear&&i.clear!==d?"horizontal":"vertical"}return r&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=l&&"none"===o[oo]||n&&"none"===o[oo]&&s+u>l)?"vertical":"horizontal"},ao=function(e){function t(e,o){return function(l,r,n,a){var i=l.options.group.name&&r.options.group.name&&l.options.group.name===r.options.group.name;if(null==e&&(o||i))return!0;if(null==e||!1===e)return!1;if(o&&"clone"===e)return e;if("function"==typeof e)return t(e(l,r,n,a),o)(l,r,n,a);var s=(o?l:r).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var o={},l=e.group;l&&"object"==Be(l)||(l={name:l}),o.name=l.name,o.checkPull=t(l.pull,!0),o.checkPut=t(l.put),o.revertClone=l.revertClone,e.group=o},io=function(){!ro&&Ct&&Qe(Ct,"display","none")},so=function(){!ro&&Ct&&Qe(Ct,"display","")};eo&&!Le&&document.addEventListener("click",(function(e){if($t)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),$t=!1,!1}),!0);var uo=function(e){if(_t){e=e.touches?e.touches[0]:e;var t=(r=e.clientX,n=e.clientY,Vt.some((function(e){var t=e[mt].options.emptyInsertThreshold;if(t&&!nt(e)){var o=ot(e),l=r>=o.left-t&&r<=o.right+t,i=n>=o.top-t&&n<=o.bottom+t;return l&&i?a=e:void 0}})),a);if(t){var o={};for(var l in e)e.hasOwnProperty(l)&&(o[l]=e[l]);o.target=o.rootEl=t,o.preventDefault=void 0,o.stopPropagation=void 0,t[mt]._onDragOver(o)}}var r,n,a},co=function(e){_t&&_t.parentNode[mt]._isOutsideThisEl(e.target)};function po(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=je({},t),e[mt]=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 no(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!==po.supportPointer&&"PointerEvent"in window&&!He,emptyInsertThreshold:5};for(var l in vt.initializePlugins(this,e,o),o)!(l in t)&&(t[l]=o[l]);for(var r in ao(t),this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!t.forceFallback&&lo,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Ye(e,"pointerdown",this._onTapStart):(Ye(e,"mousedown",this._onTapStart),Ye(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Ye(e,"dragover",this),Ye(e,"dragenter",this)),Vt.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),je(this,ft())}function mo(e,t,o,l,r,n,a,i){var s,u,d=e[mt],c=d.options.onMove;return!window.CustomEvent||ze||Fe?(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=l,s.related=r||t,s.relatedRect=n||ot(t),s.willInsertAfter=i,s.originalEvent=a,e.dispatchEvent(s),c&&(u=c.call(d,s,a)),u}function fo(e){e.draggable=!1}function ho(){Qt=!1}function go(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,o=t.length,l=0;o--;)l+=t.charCodeAt(o);return l.toString(36)}function vo(e){return setTimeout(e,0)}function bo(e){return clearTimeout(e)}po.prototype={constructor:po,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Lt=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,_t):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,o=this.el,l=this.options,r=l.preventOnFilter,n=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,i=(a||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||i,u=l.filter;if(function(e){Zt.length=0;var t=e.getElementsByTagName("input"),o=t.length;for(;o--;){var l=t[o];l.checked&&Zt.push(l)}}(o),!_t&&!(/mousedown|pointerdown/.test(n)&&0!==e.button||l.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!He||!i||"SELECT"!==i.tagName.toUpperCase())&&!((i=Ve(i,l.draggable,o,!1))&&i.animated||St===i)){if(Tt=at(i),It=at(i,l.draggable),"function"==typeof u){if(u.call(this,e,i,this))return yt({sortable:t,rootEl:s,name:"filter",targetEl:i,toEl:o,fromEl:o}),xt("filter",t,{evt:e}),void(r&&e.cancelable&&e.preventDefault())}else if(u&&(u=u.split(",").some((function(l){if(l=Ve(s,l.trim(),o,!1))return yt({sortable:t,rootEl:l,name:"filter",targetEl:i,fromEl:o,toEl:o}),xt("filter",t,{evt:e}),!0}))))return void(r&&e.cancelable&&e.preventDefault());l.handle&&!Ve(s,l.handle,o,!1)||this._prepareDragStart(e,a,i)}}},_prepareDragStart:function(e,t,o){var l,r=this,n=r.el,a=r.options,i=n.ownerDocument;if(o&&!_t&&o.parentNode===n){var s=ot(o);if(kt=n,wt=(_t=o).parentNode,Rt=_t.nextSibling,St=o,Ot=a.group,po.dragged=_t,Wt={target:_t,clientX:(t||e).clientX,clientY:(t||e).clientY},Mt=Wt.clientX-s.left,Ht=Wt.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,_t.style["will-change"]="all",l=function(){xt("delayEnded",r,{evt:e}),po.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!Me&&r.nativeDraggable&&(_t.draggable=!0),r._triggerDragStart(e,t),yt({sortable:r,name:"choose",originalEvent:e}),Je(_t,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){et(_t,e.trim(),fo)})),Ye(i,"dragover",uo),Ye(i,"mousemove",uo),Ye(i,"touchmove",uo),Ye(i,"mouseup",r._onDrop),Ye(i,"touchend",r._onDrop),Ye(i,"touchcancel",r._onDrop),Me&&this.nativeDraggable&&(this.options.touchStartThreshold=4,_t.draggable=!0),xt("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(Fe||ze))l();else{if(po.eventCanceled)return void this._onDrop();Ye(i,"mouseup",r._disableDelayedDrag),Ye(i,"touchend",r._disableDelayedDrag),Ye(i,"touchcancel",r._disableDelayedDrag),Ye(i,"mousemove",r._delayedDragTouchMoveHandler),Ye(i,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&Ye(i,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(l,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(){_t&&fo(_t),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Ge(e,"mouseup",this._disableDelayedDrag),Ge(e,"touchend",this._disableDelayedDrag),Ge(e,"touchcancel",this._disableDelayedDrag),Ge(e,"mousemove",this._delayedDragTouchMoveHandler),Ge(e,"touchmove",this._delayedDragTouchMoveHandler),Ge(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?Ye(document,"pointermove",this._onTouchMove):Ye(document,t?"touchmove":"mousemove",this._onTouchMove):(Ye(_t,"dragend",this),Ye(kt,"dragstart",this._onDragStart));try{document.selection?vo((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(o){}},_dragStarted:function(e,t){if(Ut=!1,kt&&_t){xt("dragStarted",this,{evt:t}),this.nativeDraggable&&Ye(document,"dragover",co);var o=this.options;!e&&Je(_t,o.dragClass,!1),Je(_t,o.ghostClass,!0),po.active=this,e&&this._appendGhost(),yt({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(At){this._lastX=At.clientX,this._lastY=At.clientY,io();for(var e=document.elementFromPoint(At.clientX,At.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(At.clientX,At.clientY))!==t;)t=e;if(_t.parentNode[mt]._isOutsideThisEl(e),t)do{if(t[mt]){if(t[mt]._onDragOver({clientX:At.clientX,clientY:At.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);so()}},_onTouchMove:function(e){if(Wt){var t=this.options,o=t.fallbackTolerance,l=t.fallbackOffset,r=e.touches?e.touches[0]:e,n=Ct&&Ze(Ct,!0),a=Ct&&n&&n.a,i=Ct&&n&&n.d,s=to&&Gt&&it(Gt),u=(r.clientX-Wt.clientX+l.x)/(a||1)+(s?s[0]-Jt[0]:0)/(a||1),d=(r.clientY-Wt.clientY+l.y)/(i||1)+(s?s[1]-Jt[1]:0)/(i||1);if(!po.active&&!Ut){if(o&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))l.right+r||e.clientX<=l.right&&e.clientY>l.bottom&&e.clientX>=l.left:e.clientX>l.right&&e.clientY>l.top||e.clientX<=l.right&&e.clientY>l.bottom+r}(e,r,this)&&!h.animated){if(h===_t)return I(!1);if(h&&n===e.target&&(a=h),a&&(o=ot(a)),!1!==mo(kt,n,_t,t,a,o,e,!!a))return N(),h&&h.nextSibling?n.insertBefore(_t,h.nextSibling):n.appendChild(_t),wt=n,B(),I(!0)}else if(h&&function(e,t,o){var l=ot(rt(o.el,0,o.options,!0)),r=10;return t?e.clientXd+u*n/2:sc-Yt)return-Xt}else if(s>d+u*(1-r)/2&&sc-u*n/2))return s>d+u/2?1:-1;return 0}(e,a,o,r,_?1:i.swapThreshold,null==i.invertedSwapThreshold?i.swapThreshold:i.invertedSwapThreshold,Kt,Lt===a),0!==v){var R=at(_t);do{R-=v,x=wt.children[R]}while(x&&("none"===Qe(x,"display")||x===Ct))}if(0===v||x===a)return I(!1);Lt=a,Xt=v;var S=a.nextElementSibling,D=!1,E=mo(kt,n,_t,t,a,o,e,D=1===v);if(!1!==E)return 1!==E&&-1!==E||(D=1===E),Qt=!0,setTimeout(ho,30),N(),D&&!S?n.appendChild(_t):a.parentNode.insertBefore(_t,D?S:a),C&&ct(C,0,k-C.scrollTop),wt=_t.parentNode,void 0===b||Kt||(Yt=Math.abs(b-ot(a)[w])),B(),I(!0)}if(n.contains(_t))return I(!1)}return!1}function T(i,s){xt(i,m,Ie({evt:e,isOwner:d,axis:r?"vertical":"horizontal",revert:l,dragRect:t,targetRect:o,canSort:c,fromSortable:p,target:a,completed:I,onMove:function(o,l){return mo(kt,n,_t,t,o,ot(o),e,l)},changed:B},s))}function N(){T("dragOverAnimationCapture"),m.captureAnimationState(),m!==p&&p.captureAnimationState()}function I(t){return T("dragOverCompleted",{insertion:t}),t&&(d?u._hideClone():u._showClone(m),m!==p&&(Je(_t,jt?jt.options.ghostClass:u.options.ghostClass,!1),Je(_t,i.ghostClass,!0)),jt!==m&&m!==po.active?jt=m:m===po.active&&jt&&(jt=null),p===m&&(m._ignoreWhileAnimating=a),m.animateAll((function(){T("dragOverAnimationComplete"),m._ignoreWhileAnimating=null})),m!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(a===_t&&!_t.animated||a===n&&!a.animated)&&(Lt=null),i.dragoverBubble||e.rootEl||a===document||(_t.parentNode[mt]._isOutsideThisEl(e.target),!t&&uo(e)),!i.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),f=!0}function B(){Nt=at(_t),Bt=at(_t,i.draggable),yt({sortable:m,name:"change",toEl:n,newIndex:Nt,newDraggableIndex:Bt,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){Ge(document,"mousemove",this._onTouchMove),Ge(document,"touchmove",this._onTouchMove),Ge(document,"pointermove",this._onTouchMove),Ge(document,"dragover",uo),Ge(document,"mousemove",uo),Ge(document,"touchmove",uo)},_offUpEvents:function(){var e=this.el.ownerDocument;Ge(e,"mouseup",this._onDrop),Ge(e,"touchend",this._onDrop),Ge(e,"pointerup",this._onDrop),Ge(e,"touchcancel",this._onDrop),Ge(document,"selectstart",this)},_onDrop:function(e){var t=this.el,o=this.options;Nt=at(_t),Bt=at(_t,o.draggable),xt("drop",this,{evt:e}),wt=_t&&_t.parentNode,Nt=at(_t),Bt=at(_t,o.draggable),po.eventCanceled||(Ut=!1,Kt=!1,qt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),bo(this.cloneId),bo(this._dragStartId),this.nativeDraggable&&(Ge(document,"drop",this),Ge(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),He&&Qe(document.body,"user-select",""),Qe(_t,"transform",""),e&&(Pt&&(e.cancelable&&e.preventDefault(),!o.dropBubble&&e.stopPropagation()),Ct&&Ct.parentNode&&Ct.parentNode.removeChild(Ct),(kt===wt||jt&&"clone"!==jt.lastPutMode)&&Dt&&Dt.parentNode&&Dt.parentNode.removeChild(Dt),_t&&(this.nativeDraggable&&Ge(_t,"dragend",this),fo(_t),_t.style["will-change"]="",Pt&&!Ut&&Je(_t,jt?jt.options.ghostClass:this.options.ghostClass,!1),Je(_t,this.options.chosenClass,!1),yt({sortable:this,name:"unchoose",toEl:wt,newIndex:null,newDraggableIndex:null,originalEvent:e}),kt!==wt?(Nt>=0&&(yt({rootEl:wt,name:"add",toEl:wt,fromEl:kt,originalEvent:e}),yt({sortable:this,name:"remove",toEl:wt,originalEvent:e}),yt({rootEl:wt,name:"sort",toEl:wt,fromEl:kt,originalEvent:e}),yt({sortable:this,name:"sort",toEl:wt,originalEvent:e})),jt&&jt.save()):Nt!==Tt&&Nt>=0&&(yt({sortable:this,name:"update",toEl:wt,originalEvent:e}),yt({sortable:this,name:"sort",toEl:wt,originalEvent:e})),po.active&&(null!=Nt&&-1!==Nt||(Nt=Tt,Bt=It),yt({sortable:this,name:"end",toEl:wt,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){xt("nulling",this),kt=_t=wt=Ct=Rt=Dt=St=Et=Wt=At=Pt=Nt=Bt=Tt=It=Lt=Xt=jt=Ot=po.dragged=po.ghost=po.clone=po.active=null,Zt.forEach((function(e){e.checked=!0})),Zt.length=zt=Ft=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":_t&&(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,l=0,r=o.length,n=this.options;l-1&&e%1==0&&e<=cl}(e.length)&&!function(e){if(!qo(e))return!1;var t=Yo(e);return t==al||t==il||t==nl||t==sl}(e)}function ml(e,t,o){if(!qo(o))return!1;var l=typeof t;return!!("number"==l?pl(o)&&function(e,t){var o=typeof e;return!!(t=null==t?ul:t)&&("number"==o||"symbol"!=o&&dl.test(e))&&e>-1&&e%1==0&&e"decorate"==r.mode?r:t.data));return a((()=>{if("decorate"==r.mode){var e=document.getElementById("componentList");const t=po.create(e,{group:"draggable-element",animation:200,onEnd:e=>{let o=r.value[e.oldIndex];r.value.splice(e.oldIndex,1),r.value.splice(e.newIndex,0,o),V((()=>{t.sort(bl(r.value.length).map((e=>e.toString()))),r.postMessage(e.newIndex,r.value[e.newIndex])}))}})}})),(e,o)=>{const l=s(u("diy-addon-list"),ue),a=s(u("diy-graphic-nav"),de),i=s(u("diy-horz-blank"),ce),b=s(u("diy-hot-area"),pe),_=s(u("diy-image-ads"),me),w=s(u("diy-member-info"),fe),k=s(u("diy-notice"),be),S=s(u("diy-rubik-cube"),xe),D=s(u("diy-text"),ye),E=R,T=s(u("tabbar"),te);return d(),c(E,{class:"diy-group",id:"componentList"},{default:p((()=>[(d(!0),m(f,null,h(v(n).value,((e,o)=>(d(),c(E,{key:e.id,onClick:t=>v(r).changeCurrentIndex(o,e),class:g(["draggable-element relative cursor-move",{selected:v(r).currentIndex==o,decorate:"decorate"==v(r).mode}]),style:C(e.pageStyle)},{default:p((()=>["AddonList"==e.componentName?(d(),c(l,{key:0,component:e,index:o,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):y("v-if",!0),"GraphicNav"==e.componentName?(d(),c(a,{key:1,component:e,index:o,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):y("v-if",!0),"HorzBlank"==e.componentName?(d(),c(i,{key:2,component:e,index:o,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):y("v-if",!0),"HotArea"==e.componentName?(d(),c(b,{key:3,component:e,index:o,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):y("v-if",!0),"ImageAds"==e.componentName?(d(),c(_,{key:4,component:e,index:o,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):y("v-if",!0),"MemberInfo"==e.componentName?(d(),c(w,{key:5,component:e,index:o,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):y("v-if",!0),"Notice"==e.componentName?(d(),c(k,{key:6,component:e,index:o,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):y("v-if",!0),"RubikCube"==e.componentName?(d(),c(S,{key:7,component:e,index:o,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):y("v-if",!0),"Text"==e.componentName?(d(),c(D,{key:8,component:e,index:o,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):y("v-if",!0),"Article"==e.componentName?(d(),c(_e,{key:9,component:e,index:o,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):y("v-if",!0),"VipcardCard"==e.componentName?(d(),c(we,{key:10,component:e,index:o,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):y("v-if",!0),"VipcardReserve"==e.componentName?(d(),c(Ce,{key:11,component:e,index:o,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):y("v-if",!0),"VipcardStore"==e.componentName?(d(),c(ke,{key:12,component:e,index:o,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):y("v-if",!0),"GoodsList"==e.componentName?(d(),c(Re,{key:13,component:e,index:o,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):y("v-if",!0),"ShopSearch"==e.componentName?(d(),c(Se,{key:14,component:e,index:o,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):y("v-if",!0),"TourismHotel"==e.componentName?(d(),c(De,{key:15,component:e,index:o,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):y("v-if",!0),"TourismTickets"==e.componentName?(d(),c(Ee,{key:16,component:e,index:o,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):y("v-if",!0),"TourismTravel"==e.componentName?(d(),c(Te,{key:17,component:e,index:o,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["component","index","pullDownRefreshCount"])):y("v-if",!0)])),_:2},1032,["onClick","class","style"])))),128)),""==v(r).mode&&v(n).global.bottomTabBarSwitch?(d(),m(f,{key:0},[x(E,{class:"pt-[20rpx]"}),x(T)],64)):y("v-if",!0)])),_:1})}}}),[["__scopeId","data-v-45f8a238"]]),yl=t({__name:"index",props:["data","pullDownRefreshCount"],setup(e){const t=e;return(e,o)=>{const l=s(u("diy-group"),xl),r=R;return d(),c(r,null,{default:p((()=>[_(" 固定模板示例,我也可以装修 "),y(" 自定义模板渲染 "),x(l,{data:t.data,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["data","pullDownRefreshCount"])])),_:1})}}}),_l=K(t({__name:"index",props:["data","pullDownRefreshCount"],setup(e){const t=e;return(e,o)=>{const l=s(u("fixed-demo-index"),yl),r=R;return d(),c(r,{class:"fixed-group"},{default:p((()=>["demo-index"==t.data.global.component?(d(),c(l,{key:0,data:t.data,pullDownRefreshCount:t.pullDownRefreshCount},null,8,["data","pullDownRefreshCount"])):y("v-if",!0)])),_:1})}}}),[["__scopeId","data-v-e2d0896a"]]);export{xl as _,_l as a};