/*! For license information please see 8107.6160eb12.js.LICENSE.txt */ (self.webpackChunk=self.webpackChunk||[]).push([["8107"],{93347:function(e,t,a){"use strict";a.r(t);var n=a("12226");a("51401");let o=n.Z;t.default=o},12226:function(e,t,a){"use strict";var n=a("80681"),o=a("11848"),l=a("57122"),i=a("16748"),r=a("25863"),u=a("54369"),c=a("24647"),s=a("13118"),d=["src"];t.Z=(0,n.aZ)({__name:"index",setup(e){var t=(0,u.q)({"zh-CN":{badge:"\u5FBD\u6807\u63D0\u793A",customIcon:"\u81EA\u5B9A\u4E49\u56FE\u6807",customColor:"\u81EA\u5B9A\u4E49\u989C\u8272",matchByName:"\u901A\u8FC7\u540D\u79F0\u5339\u914D",switchEvent:"\u76D1\u542C\u5207\u6362\u4E8B\u4EF6"},"en-US":{badge:"Show Badge",customIcon:"Custom Icon",customColor:"Custom Color",matchByName:"Match by name",switchEvent:"Change Event"}}),a=(0,o.iH)(0),m=(0,o.iH)(0),v=(0,o.iH)(0),f=(0,o.iH)(0),U=(0,o.iH)(0),p=(0,o.iH)("home"),S={active:(0,c.RQ)("user-active.png"),inactive:(0,c.RQ)("user-inactive.png")},w=e=>{(0,s.CF)("".concat(t("tab")," ").concat(e+1))};return(e,u)=>{var c=(0,n.up)("demo-block");return(0,n.wg)(),(0,n.iD)(n.HY,null,[(0,n.Wm)(c,{title:(0,o.SU)(t)("basicUsage")},{default:(0,n.w5)(()=>[(0,n.Wm)((0,o.SU)(i.ZP),{modelValue:a.value,"onUpdate:modelValue":u[0]||(u[0]=e=>a.value=e)},{default:(0,n.w5)(()=>[(0,n.Wm)((0,o.SU)(r.ZP),{icon:"home-o"},{default:(0,n.w5)(()=>[(0,n.Uk)((0,l.zw)((0,o.SU)(t)("tab")),1)]),_:1}),(0,n.Wm)((0,o.SU)(r.ZP),{icon:"search"},{default:(0,n.w5)(()=>[(0,n.Uk)((0,l.zw)((0,o.SU)(t)("tab")),1)]),_:1}),(0,n.Wm)((0,o.SU)(r.ZP),{icon:"friends-o"},{default:(0,n.w5)(()=>[(0,n.Uk)((0,l.zw)((0,o.SU)(t)("tab")),1)]),_:1}),(0,n.Wm)((0,o.SU)(r.ZP),{icon:"setting-o"},{default:(0,n.w5)(()=>[(0,n.Uk)((0,l.zw)((0,o.SU)(t)("tab")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["title"]),(0,n.Wm)(c,{title:(0,o.SU)(t)("matchByName")},{default:(0,n.w5)(()=>[(0,n.Wm)((0,o.SU)(i.ZP),{modelValue:p.value,"onUpdate:modelValue":u[1]||(u[1]=e=>p.value=e)},{default:(0,n.w5)(()=>[(0,n.Wm)((0,o.SU)(r.ZP),{name:"home",icon:"home-o"},{default:(0,n.w5)(()=>[(0,n.Uk)((0,l.zw)((0,o.SU)(t)("tab")),1)]),_:1}),(0,n.Wm)((0,o.SU)(r.ZP),{name:"search",icon:"search"},{default:(0,n.w5)(()=>[(0,n.Uk)((0,l.zw)((0,o.SU)(t)("tab")),1)]),_:1}),(0,n.Wm)((0,o.SU)(r.ZP),{name:"friends",icon:"friends-o"},{default:(0,n.w5)(()=>[(0,n.Uk)((0,l.zw)((0,o.SU)(t)("tab")),1)]),_:1}),(0,n.Wm)((0,o.SU)(r.ZP),{name:"setting",icon:"setting-o"},{default:(0,n.w5)(()=>[(0,n.Uk)((0,l.zw)((0,o.SU)(t)("tab")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["title"]),(0,n.Wm)(c,{title:(0,o.SU)(t)("badge")},{default:(0,n.w5)(()=>[(0,n.Wm)((0,o.SU)(i.ZP),{modelValue:m.value,"onUpdate:modelValue":u[2]||(u[2]=e=>m.value=e)},{default:(0,n.w5)(()=>[(0,n.Wm)((0,o.SU)(r.ZP),{icon:"home-o"},{default:(0,n.w5)(()=>[(0,n.Uk)((0,l.zw)((0,o.SU)(t)("tab")),1)]),_:1}),(0,n.Wm)((0,o.SU)(r.ZP),{icon:"search",dot:""},{default:(0,n.w5)(()=>[(0,n.Uk)((0,l.zw)((0,o.SU)(t)("tab")),1)]),_:1}),(0,n.Wm)((0,o.SU)(r.ZP),{icon:"friends-o",badge:"5"},{default:(0,n.w5)(()=>[(0,n.Uk)((0,l.zw)((0,o.SU)(t)("tab")),1)]),_:1}),(0,n.Wm)((0,o.SU)(r.ZP),{icon:"setting-o",badge:"20"},{default:(0,n.w5)(()=>[(0,n.Uk)((0,l.zw)((0,o.SU)(t)("tab")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["title"]),(0,n.Wm)(c,{title:(0,o.SU)(t)("customIcon")},{default:(0,n.w5)(()=>[(0,n.Wm)((0,o.SU)(i.ZP),{modelValue:v.value,"onUpdate:modelValue":u[3]||(u[3]=e=>v.value=e)},{default:(0,n.w5)(()=>[(0,n.Wm)((0,o.SU)(r.ZP),{badge:"3"},{icon:(0,n.w5)(e=>[(0,n._)("img",{src:e.active?S.active:S.inactive},null,8,d)]),default:(0,n.w5)(()=>[(0,n._)("span",null,(0,l.zw)((0,o.SU)(t)("custom")),1)]),_:1}),(0,n.Wm)((0,o.SU)(r.ZP),{icon:"search"},{default:(0,n.w5)(()=>[(0,n.Uk)((0,l.zw)((0,o.SU)(t)("tab")),1)]),_:1}),(0,n.Wm)((0,o.SU)(r.ZP),{icon:"setting-o"},{default:(0,n.w5)(()=>[(0,n.Uk)((0,l.zw)((0,o.SU)(t)("tab")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["title"]),(0,n.Wm)(c,{title:(0,o.SU)(t)("customColor")},{default:(0,n.w5)(()=>[(0,n.Wm)((0,o.SU)(i.ZP),{modelValue:f.value,"onUpdate:modelValue":u[4]||(u[4]=e=>f.value=e),"active-color":"#ee0a24"},{default:(0,n.w5)(()=>[(0,n.Wm)((0,o.SU)(r.ZP),{icon:"home-o"},{default:(0,n.w5)(()=>[(0,n.Uk)((0,l.zw)((0,o.SU)(t)("tab")),1)]),_:1}),(0,n.Wm)((0,o.SU)(r.ZP),{icon:"search"},{default:(0,n.w5)(()=>[(0,n.Uk)((0,l.zw)((0,o.SU)(t)("tab")),1)]),_:1}),(0,n.Wm)((0,o.SU)(r.ZP),{icon:"friends-o"},{default:(0,n.w5)(()=>[(0,n.Uk)((0,l.zw)((0,o.SU)(t)("tab")),1)]),_:1}),(0,n.Wm)((0,o.SU)(r.ZP),{icon:"setting-o"},{default:(0,n.w5)(()=>[(0,n.Uk)((0,l.zw)((0,o.SU)(t)("tab")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["title"]),(0,n.Wm)(c,{title:(0,o.SU)(t)("switchEvent")},{default:(0,n.w5)(()=>[(0,n.Wm)((0,o.SU)(i.ZP),{modelValue:U.value,"onUpdate:modelValue":u[5]||(u[5]=e=>U.value=e),onChange:w},{default:(0,n.w5)(()=>[(0,n.Wm)((0,o.SU)(r.ZP),{icon:"home-o"},{default:(0,n.w5)(()=>[(0,n.Uk)((0,l.zw)("".concat((0,o.SU)(t)("tab")," 1")),1)]),_:1}),(0,n.Wm)((0,o.SU)(r.ZP),{icon:"search"},{default:(0,n.w5)(()=>[(0,n.Uk)((0,l.zw)("".concat((0,o.SU)(t)("tab")," 2")),1)]),_:1}),(0,n.Wm)((0,o.SU)(r.ZP),{icon:"friends-o"},{default:(0,n.w5)(()=>[(0,n.Uk)((0,l.zw)("".concat((0,o.SU)(t)("tab")," 3")),1)]),_:1}),(0,n.Wm)((0,o.SU)(r.ZP),{icon:"setting-o"},{default:(0,n.w5)(()=>[(0,n.Uk)((0,l.zw)("".concat((0,o.SU)(t)("tab")," 4")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["title"])],64)}}})},24647:function(e,t,a){"use strict";a.d(t,{RQ:function(){return n}});var n=e=>"https://fastly.jsdelivr.net/npm/@vant/assets/".concat(e)},55944:function(e,t,a){"use strict";a.d(t,{F:function(){return u}});var n=a("22300"),o=a("11848"),l=a("80681"),i=a("82210"),r=a("65170"),u=(e,t)=>{var a=(0,o.iH)(),u=()=>{a.value=(0,n.EL)(e).height};return(0,l.bv)(()=>{if((0,l.Y3)(u),t)for(var e=1;e<=3;e++)setTimeout(u,100*e)}),(0,r.h)(()=>(0,l.Y3)(u)),(0,l.YP)([i.bn,i.uK],u),a}},6149:function(e,t,a){"use strict";a.d(t,{BC:function(){return l},g2:function(){return o},yj:function(){return i}}),a("56115"),a("59644");var n=a("80681"),o={to:[String,Object],url:String,replace:Boolean};function l(e){var{to:t,url:a,replace:n,$router:o}=e;t&&o?o[n?"replace":"push"](t):a&&(n?location.replace(a):location.href=a)}function i(){var e=(0,n.FN)().proxy;return()=>l(e)}},95786:function(e,t,a){"use strict";a.d(t,{gb:function(){return l}});var n=a("63112"),o=a("2309"),l=(0,n.n)(o.Z);t.ZP=l},25863:function(e,t,a){"use strict";var n=a("63112"),o=a("42678"),l=(0,n.n)(o.Z);t.ZP=l},16748:function(e,t,a){"use strict";var n=a("63112"),o=a("76161"),l=(0,n.n)(o.ZP);t.ZP=l},20897:function(e,t,a){"use strict";a.d(t,{G:function(){return o}});var n=0;function o(e){e?(!n&&document.body.classList.add("van-toast--unclickable"),n++):n&&!--n&&document.body.classList.remove("van-toast--unclickable")}},84285:function(e,t,a){"use strict";a.d(t,{H:function(){return u},o:function(){return r}});var n=a("11848"),o=a("39594"),l=a("12308"),i=a("10023");function r(){var e=(0,n.qj)({show:!1}),t=t=>{e.show=t},a=a=>{(0,l.l7)(e,a,{transitionAppear:!0}),t(!0)},o=()=>t(!1);return(0,i.F)({open:a,close:o,toggle:t}),{open:a,close:o,state:e,toggle:t}}function u(e){var t=(0,o.ri)(e),a=document.createElement("div");return document.body.appendChild(a),{instance:t.mount(a),unmount(){t.unmount(),document.body.removeChild(a)}}}},90516:function(e,t,a){"use strict";a.d(t,{J:function(){return l}});var n=a("80681"),o=a("55944");function l(e,t){var a=(0,o.F)(e,!0);return e=>(0,n.Wm)("div",{class:t("placeholder"),style:{height:a.value?"".concat(a.value,"px"):void 0}},[e()])}},2309:function(e,t,a){"use strict";a("82116"),a("17989"),a("66786"),a("14529");var n=a("80681"),o=a("62568"),l=a("78335"),i=a("12308"),r=a("20358"),[u,c]=(0,o.do)("loading"),s=Array(12).fill(null).map((e,t)=>(0,n.Wm)("i",{class:c("line",String(t+1))},null)),d=(0,n.Wm)("svg",{class:c("circular"),viewBox:"25 25 50 50"},[(0,n.Wm)("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),m={size:l.Or,type:(0,l.SQ)("circular"),color:String,vertical:Boolean,textSize:l.Or,textColor:String};t.Z=(0,n.aZ)({name:u,props:m,setup(e,t){var{slots:a}=t,o=(0,n.Fl)(()=>(0,i.l7)({color:e.color},(0,r.Xn)(e.size))),l=()=>{var t="spinner"===e.type?s:d;return(0,n.Wm)("span",{class:c("spinner",e.type),style:o.value},[a.icon?a.icon():t])},u=()=>{if(a.default){var t;return(0,n.Wm)("span",{class:c("text"),style:{fontSize:(0,r.Nn)(e.textSize),color:null!==(t=e.textColor)&&void 0!==t?t:e.color}},[a.default()])}};return()=>{var{type:t,vertical:a}=e;return(0,n.Wm)("div",{class:c([t,{vertical:a}]),"aria-live":"polite","aria-busy":!0},[l(),u()])}}})},42678:function(e,t,a){"use strict";a("82116"),a("17989"),a("57856"),a("31053"),a("70629");var n=a("80681"),o=a("62568"),l=a("12308"),i=a("78335"),r=a("76161"),u=a("22300"),c=a("6149"),s=a("96528"),d=a("72555"),[m,v]=(0,o.do)("tabbar-item"),f=(0,l.l7)({},c.g2,{dot:Boolean,icon:String,name:i.Or,badge:i.Or,badgeProps:Object,iconPrefix:String});t.Z=(0,n.aZ)({name:m,props:f,emits:["click"],setup(e,t){var{emit:a,slots:o}=t,i=(0,c.yj)(),m=(0,n.FN)().proxy,{parent:f,index:U}=(0,u.NB)(r.HU);if(f){var p=(0,n.Fl)(()=>{var t,{route:a,modelValue:n}=f.props;if(a&&"$route"in m){var{$route:o}=m,{to:i}=e,r=(0,l.Kn)(i)?i:{path:i};return!!o.matched.find(e=>{var t="path"in r&&r.path===e.path,a="name"in r&&r.name===e.name;return t||a})}return(null!==(t=e.name)&&void 0!==t?t:U.value)===n}),S=t=>{if(!p.value){var n;f.setActive(null!==(n=e.name)&&void 0!==n?n:U.value,i)}a("click",t)},w=()=>o.icon?o.icon({active:p.value}):e.icon?(0,n.Wm)(s.JO,{name:e.icon,classPrefix:e.iconPrefix},null):void 0;return()=>{var t,{dot:a,badge:l}=e,{activeColor:i,inactiveColor:r}=f.props,u=p.value?i:r;return(0,n.Wm)("div",{role:"tab",class:v({active:p.value}),style:{color:u},tabindex:0,"aria-selected":p.value,onClick:S},[(0,n.Wm)(d.Ct,(0,n.dG)({dot:a,class:v("icon"),content:l},e.badgeProps),{default:w}),(0,n.Wm)("div",{class:v("text")},[null===(t=o.default)||void 0===t?void 0:t.call(o,{active:p.value})])])}}}})},76161:function(e,t,a){"use strict";a.d(t,{HU:function(){return U}}),a("82116"),a("17989"),a("86795");var n=a("80681"),o=a("11848"),l=a("62568"),i=a("78335"),r=a("20358"),u=a("8051"),c=a("55987"),s=a("22300"),d=a("90516"),[m,v]=(0,l.do)("tabbar"),f={route:Boolean,fixed:i.J5,border:i.J5,zIndex:i.Or,placeholder:Boolean,activeColor:String,beforeChange:Function,inactiveColor:String,modelValue:(0,i.SI)(0),safeAreaInsetBottom:{type:Boolean,default:null}},U=Symbol(m);t.ZP=(0,n.aZ)({name:m,props:f,emits:["change","update:modelValue"],setup(e,t){var{emit:a,slots:l}=t,i=(0,o.iH)(),{linkChildren:m}=(0,s.$E)(U),f=(0,d.J)(i,v),p=()=>{var t;return null!==(t=e.safeAreaInsetBottom)&&void 0!==t?t:e.fixed},S=()=>{var t,{fixed:a,zIndex:o,border:c}=e;return(0,n.Wm)("div",{ref:i,role:"tablist",style:(0,r.As)(o),class:[v({fixed:a}),{[u.r5]:c,"van-safe-area-bottom":p()}]},[null===(t=l.default)||void 0===t?void 0:t.call(l)])};return m({props:e,setActive:(t,n)=>{(0,c.I)(e.beforeChange,{args:[t],done(){a("update:modelValue",t),a("change",t),n()}})}}),()=>e.fixed&&e.placeholder?f(S):S()}})},21083:function(e,t,a){"use strict";a("82116"),a("17989");var n=a("80681"),o=a("62568"),l=a("78335"),i=a("12308"),r=a("20897"),u=a("96528"),c=a("97760"),s=a("95786"),[d,m]=(0,o.do)("toast"),v=["show","overlay","teleport","transition","overlayClass","overlayStyle","closeOnClickOverlay","zIndex"],f={icon:String,show:Boolean,type:(0,l.SQ)("text"),overlay:Boolean,message:l.Or,iconSize:l.Or,duration:(0,l.qM)(2e3),position:(0,l.SQ)("middle"),teleport:[String,Object],wordBreak:String,className:l.Vg,iconPrefix:String,transition:(0,l.SQ)("van-fade"),loadingType:String,forbidClick:Boolean,overlayClass:l.Vg,overlayStyle:Object,closeOnClick:Boolean,closeOnClickOverlay:Boolean,zIndex:l.Or};t.Z=(0,n.aZ)({name:d,props:f,emits:["update:show"],setup(e,t){var a,{emit:o,slots:l}=t,d=!1,f=()=>{var t=e.show&&e.forbidClick;d!==t&&(d=t,(0,r.G)(d))},U=e=>o("update:show",e),p=()=>{e.closeOnClick&&U(!1)},S=()=>clearTimeout(a),w=()=>{var{icon:t,type:a,iconSize:o,iconPrefix:l,loadingType:i}=e;return t||"success"===a||"fail"===a?(0,n.Wm)(u.JO,{name:t||a,size:o,class:m("icon"),classPrefix:l},null):"loading"===a?(0,n.Wm)(s.gb,{class:m("loading"),size:o,type:i},null):void 0},b=()=>{var{type:t,message:a}=e;return l.message?(0,n.Wm)("div",{class:m("text")},[l.message()]):(0,i.Xq)(a)&&""!==a?"html"===t?(0,n.Wm)("div",{key:0,class:m("text"),innerHTML:String(a)},null):(0,n.Wm)("div",{class:m("text")},[a]):void 0};return(0,n.YP)(()=>[e.show,e.forbidClick],f),(0,n.YP)(()=>[e.show,e.type,e.message,e.duration],()=>{S(),e.show&&e.duration>0&&(a=setTimeout(()=>{U(!1)},e.duration))}),(0,n.bv)(f),(0,n.Ah)(f),()=>(0,n.Wm)(c.GI,(0,n.dG)({class:[m([e.position,"normal"===e.wordBreak?"break-normal":e.wordBreak,{[e.type]:!e.icon}]),e.className],lockScroll:!1,onClick:p,onClosed:S,"onUpdate:show":U},(0,i.ei)(e,v)),{default:()=>[w(),b()]})}})},13118:function(e,t,a){"use strict";a.d(t,{CF:function(){return m},LJ:function(){return p},XA:function(){return U},di:function(){return f},yg:function(){return S}}),a("24836"),a("41712"),a("80855"),a("10502"),a("7978"),a("66746"),a("17530"),a("87604"),a("57024"),a("22175"),a("85322"),a("47897"),a("48943"),a("43356"),a("82116"),a("17989"),a("96245"),a("37232"),a("70629"),a("61557"),a("31564"),a("8649");var n=a("80681"),o=a("11848"),l=a("12308"),i=a("84285"),r=a("21083"),u=[],c=(0,l.l7)({},{icon:"",type:"text",message:"",className:"",overlay:!1,onClose:void 0,onOpened:void 0,duration:2e3,teleport:"body",iconSize:void 0,iconPrefix:void 0,position:"middle",transition:"van-fade",forbidClick:!1,loadingType:void 0,overlayClass:"",overlayStyle:void 0,closeOnClick:!1,closeOnClickOverlay:!1}),s=new Map;function d(e){return(0,l.Kn)(e)?e:{message:e}}function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!l._f)return{};var t=function(){if(!u.length){var e=function(){var{instance:e,unmount:t}=(0,i.H)({setup(){var e=(0,o.iH)(""),{open:t,state:a,close:l,toggle:u}=(0,i.o)(),c=()=>{};return(0,n.YP)(e,e=>{a.message=e}),(0,n.FN)().render=()=>(0,n.Wm)(r.Z,(0,n.dG)(a,{onClosed:c,"onUpdate:show":u}),null),{open:t,close:l,message:e}}});return e}();u.push(e)}return u[u.length-1]}(),a=d(e);return t.open((0,l.l7)({},c,s.get(a.type||c.type),a)),t}var v=e=>t=>m((0,l.l7)({type:e},d(t))),f=v("loading"),U=v("success"),p=v("fail"),S=e=>{if(u.length){if(e)u.forEach(e=>{e.close()}),u=[];else{var t;u[0].close()}}}},51401:function(e,t,a){"use strict";a.r(e.exports={})},60117:function(e,t,a){"use strict";a.r(e.exports={})}}]);