/*! For license information please see 106.6af9e163.js.LICENSE.txt */ (self.webpackChunk=self.webpackChunk||[]).push([["106"],{32793:function(e,t,n){"use strict";n.r(t);var i=n("66446");n("67225");let o=i.Z;t.default=o},66446:function(e,t,n){"use strict";var i=n("80681"),o=n("11848"),l=n("57122"),a=n("52371"),r=n("12813"),u=n("54369"),c=n("13118");t.Z=(0,i.aZ)({__name:"index",setup(e){var t=(0,u.q)({"zh-CN":{tip1:"\u4F60\u7684\u6536\u8D27\u5730\u5740\u4E0D\u652F\u6301\u914D\u9001",tip2:"\u4F60\u7684\u6536\u8D27\u5730\u5740\u4E0D\u652F\u6301\u914D\u9001, ",tip3:"\u4FEE\u6539\u5730\u5740",check:"\u5168\u9009",submit:"\u63D0\u4EA4\u8BA2\u5355",clickLink:"\u4FEE\u6539\u5730\u5740",clickButton:"\u70B9\u51FB\u6309\u94AE"},"en-US":{tip1:"Some tips",tip2:"Some tips, ",tip3:"Link",check:"Label",submit:"Submit",clickLink:"Click Link",clickButton:"Submit"}}),n=(0,o.iH)(!0),s=()=>(0,c.CF)(t("clickButton")),d=()=>(0,c.CF)(t("clickLink"));return(e,u)=>{var c=(0,i.up)("demo-block");return(0,i.wg)(),(0,i.iD)(i.HY,null,[(0,i.Wm)(c,{title:(0,o.SU)(t)("basicUsage")},{default:(0,i.w5)(()=>[(0,i.Wm)((0,o.SU)(a.ZP),{price:3050,"button-text":(0,o.SU)(t)("submit"),onSubmit:s},null,8,["button-text"])]),_:1},8,["title"]),(0,i.Wm)(c,{title:(0,o.SU)(t)("disabled")},{default:(0,i.w5)(()=>[(0,i.Wm)((0,o.SU)(a.ZP),{disabled:"",price:3050,"button-text":(0,o.SU)(t)("submit"),tip:(0,o.SU)(t)("tip1"),"tip-icon":"info-o",onSubmit:s},null,8,["button-text","tip"])]),_:1},8,["title"]),(0,i.Wm)(c,{title:(0,o.SU)(t)("loadingStatus")},{default:(0,i.w5)(()=>[(0,i.Wm)((0,o.SU)(a.ZP),{loading:"",price:3050,"button-text":(0,o.SU)(t)("submit"),onSubmit:s},null,8,["button-text"])]),_:1},8,["title"]),(0,i.Wm)(c,{title:(0,o.SU)(t)("advancedUsage")},{default:(0,i.w5)(()=>[(0,i.Wm)((0,o.SU)(a.ZP),{price:3050,"button-text":(0,o.SU)(t)("submit"),onSubmit:s},{tip:(0,i.w5)(()=>[(0,i.Uk)((0,l.zw)((0,o.SU)(t)("tip2"))+" ",1),(0,i._)("span",{class:"edit-address",onClick:d},(0,l.zw)((0,o.SU)(t)("tip3")),1)]),default:(0,i.w5)(()=>[(0,i.Wm)((0,o.SU)(r.ZP),{modelValue:n.value,"onUpdate:modelValue":u[0]||(u[0]=e=>n.value=e)},{default:(0,i.w5)(()=>[(0,i.Uk)((0,l.zw)((0,o.SU)(t)("check")),1)]),_:1},8,["modelValue"])]),_:1},8,["button-text"])]),_:1},8,["title"])],64)}}})},99497:function(e,t,n){"use strict";n.d(t,{zx:function(){return l}});var i=n("63112"),o=n("14314"),l=(0,i.n)(o.Z);t.ZP=l},12813:function(e,t,n){"use strict";n.d(t,{XZ:function(){return l}});var i=n("63112"),o=n("73198"),l=(0,i.n)(o.Z);t.ZP=l},55944:function(e,t,n){"use strict";n.d(t,{F:function(){return u}});var i=n("22300"),o=n("11848"),l=n("80681"),a=n("82210"),r=n("65170"),u=(e,t)=>{var n=(0,o.iH)(),u=()=>{n.value=(0,i.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)([a.bn,a.uK],u),n}},6149:function(e,t,n){"use strict";n.d(t,{BC:function(){return l},g2:function(){return o},yj:function(){return a}}),n("56115"),n("59644");var i=n("80681"),o={to:[String,Object],url:String,replace:Boolean};function l(e){var{to:t,url:n,replace:i,$router:o}=e;t&&o?o[i?"replace":"push"](t):n&&(i?location.replace(n):location.href=n)}function a(){var e=(0,i.FN)().proxy;return()=>l(e)}},95786:function(e,t,n){"use strict";n.d(t,{gb:function(){return l}});var i=n("63112"),o=n("2309"),l=(0,i.n)(o.Z);t.ZP=l},52371:function(e,t,n){"use strict";var i=n("63112"),o=n("75895"),l=(0,i.n)(o.Z);t.ZP=l},20897:function(e,t,n){"use strict";n.d(t,{G:function(){return o}});var i=0;function o(e){e?(!i&&document.body.classList.add("van-toast--unclickable"),i++):i&&!--i&&document.body.classList.remove("van-toast--unclickable")}},84285:function(e,t,n){"use strict";n.d(t,{H:function(){return u},o:function(){return r}});var i=n("11848"),o=n("39594"),l=n("12308"),a=n("10023");function r(){var e=(0,i.qj)({show:!1}),t=t=>{e.show=t},n=n=>{(0,l.l7)(e,n,{transitionAppear:!0}),t(!0)},o=()=>t(!1);return(0,a.F)({open:n,close:o,toggle:t}),{open:n,close:o,state:e,toggle:t}}function u(e){var t=(0,o.ri)(e),n=document.createElement("div");return document.body.appendChild(n),{instance:t.mount(n),unmount(){t.unmount(),document.body.removeChild(n)}}}},14314:function(e,t,n){"use strict";n("82116"),n("17989"),n("24660");var i=n("80681"),o=n("62568"),l=n("12308"),a=n("78335"),r=n("82210"),u=n("8051"),c=n("6149"),s=n("96528"),d=n("95786"),[p,v]=(0,o.do)("button"),m=(0,l.l7)({},c.g2,{tag:(0,a.SQ)("button"),text:String,icon:String,type:(0,a.SQ)("default"),size:(0,a.SQ)("normal"),color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:(0,a.SQ)("button"),loadingSize:a.Or,loadingText:String,loadingType:String,iconPosition:(0,a.SQ)("left")});t.Z=(0,i.aZ)({name:p,props:m,emits:["click"],setup(e,t){var{emit:n,slots:o}=t,l=(0,c.yj)(),a=()=>o.loading?o.loading():(0,i.Wm)(d.gb,{size:e.loadingSize,type:e.loadingType,class:v("loading")},null),p=()=>e.loading?a():o.icon?(0,i.Wm)("div",{class:v("icon")},[o.icon()]):e.icon?(0,i.Wm)(s.JO,{name:e.icon,class:v("icon"),classPrefix:e.iconPrefix},null):void 0,m=()=>{var t;if(t=e.loading?e.loadingText:o.default?o.default():e.text)return(0,i.Wm)("span",{class:v("text")},[t])},b=()=>{var{color:t,plain:n}=e;if(t){var i={color:n?t:"white"};return!n&&(i.background=t),t.includes("gradient")?i.border=0:i.borderColor=t,i}},f=t=>{e.loading?(0,r.PF)(t):!e.disabled&&(n("click",t),l())};return()=>{var{tag:t,type:n,size:o,block:l,round:a,plain:r,square:c,loading:s,disabled:d,hairline:g,nativeType:S,iconPosition:h}=e,k=[v([n,o,{plain:r,block:l,round:a,square:c,loading:s,disabled:d,hairline:g}]),{[u._K]:g}];return(0,i.Wm)(t,{type:S,class:k,style:b(),disabled:d,onClick:f},{default:()=>[(0,i.Wm)("div",{class:v("content")},["left"===h&&p(),m(),"right"===h&&p()])]})}}})},1241:function(e,t,n){"use strict";n.d(t,{QY:function(){return d}}),n("82116"),n("17989"),n("86795"),n("96245"),n("37232"),n("70629"),n("66786"),n("14529");var i=n("80681"),o=n("62568"),l=n("78335"),a=n("22300"),r=n("10023"),[u,c]=(0,o.do)("checkbox-group"),s={max:l.Or,shape:(0,l.SQ)("round"),disabled:Boolean,iconSize:l.Or,direction:String,modelValue:(0,l.Ce)(),checkedColor:String},d=Symbol(u);t.ZP=(0,i.aZ)({name:u,props:s,emits:["change","update:modelValue"],setup(e,t){var{emit:n,slots:o}=t,{children:l,linkChildren:u}=(0,a.$E)(d),s=e=>n("update:modelValue",e);return(0,i.YP)(()=>e.modelValue,e=>n("change",e)),(0,r.F)({toggleAll:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"boolean"==typeof e&&(e={checked:e});var{checked:t,skipDisabled:n}=e;s(l.filter(e=>!!e.props.bindGroup&&(e.props.disabled&&n?e.checked.value:null!=t?t:!e.checked.value)).map(e=>e.name))}}),(0,a.aM)(()=>e.modelValue),u({props:e,updateValue:s}),()=>{var t;return(0,i.Wm)("div",{class:c([e.direction])},[null===(t=o.default)||void 0===t?void 0:t.call(o)])}}})},73198:function(e,t,n){"use strict";n("82116"),n("17989"),n("24660"),n("61557");var i=n("80681"),o=n("62568"),l=n("12308"),a=n("78335"),r=n("1241"),u=n("22300"),c=n("10023"),s=n("90844"),[d,p]=(0,o.do)("checkbox"),v=(0,l.l7)({},s.m,{shape:String,bindGroup:a.J5,indeterminate:{type:Boolean,default:null}});t.Z=(0,i.aZ)({name:d,props:v,emits:["change","update:modelValue"],setup(e,t){var{emit:n,slots:o}=t,{parent:a}=(0,u.NB)(r.QY),d=t=>{var{name:n}=e,{max:i,modelValue:o}=a.props,l=o.slice();if(t)!(i&&l.length>=+i)&&!l.includes(n)&&(l.push(n),e.bindGroup&&a.updateValue(l));else{var r=l.indexOf(n);-1!==r&&(l.splice(r,1),e.bindGroup&&a.updateValue(l))}},v=(0,i.Fl)(()=>a&&e.bindGroup?-1!==a.props.modelValue.indexOf(e.name):!!e.modelValue),m=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!v.value;a&&e.bindGroup?d(t):n("update:modelValue",t),null!==e.indeterminate&&n("change",t)};return(0,i.YP)(()=>e.modelValue,t=>{null===e.indeterminate&&n("change",t)}),(0,c.F)({toggle:m,props:e,checked:v}),(0,u.aM)(()=>e.modelValue),()=>(0,i.Wm)(s.Z,(0,i.dG)({bem:p,role:"checkbox",parent:a,checked:v.value,onToggle:m},e),(0,l.ei)(o,["default","icon"]))}})},90844:function(e,t,n){"use strict";n.d(t,{m:function(){return c}});var i=n("80681"),o=n("11848"),l=n("78335"),a=n("12308"),r=n("20358"),u=n("96528"),c={name:l.Vg,disabled:Boolean,iconSize:l.Or,modelValue:l.Vg,checkedColor:String,labelPosition:String,labelDisabled:Boolean};t.Z=(0,i.aZ)({props:(0,a.l7)({},c,{bem:(0,l.ir)(Function),role:String,shape:String,parent:Object,checked:Boolean,bindGroup:l.J5,indeterminate:{type:Boolean,default:null}}),emits:["click","toggle"],setup(e,t){var{emit:n,slots:l}=t,a=(0,o.iH)(),c=t=>{if(e.parent&&e.bindGroup)return e.parent.props[t]},s=(0,i.Fl)(()=>{if(e.parent&&e.bindGroup){var t=c("disabled")||e.disabled;if("checkbox"===e.role){var n=c("modelValue").length,i=c("max");return t||i&&n>=+i&&!e.checked}return t}return e.disabled}),d=(0,i.Fl)(()=>c("direction")),p=(0,i.Fl)(()=>{var t=e.checkedColor||c("checkedColor");if(t&&e.checked&&!s.value)return{borderColor:t,backgroundColor:t}}),v=(0,i.Fl)(()=>e.shape||c("shape")||"round"),m=t=>{var{target:i}=t,o=a.value,l=o===i||(null==o?void 0:o.contains(i));!s.value&&(l||!e.labelDisabled)&&n("toggle"),n("click",t)},b=()=>{var t,n,{bem:o,checked:d,indeterminate:m}=e,b=e.iconSize||c("iconSize");return(0,i.Wm)("div",{ref:a,class:o("icon",[v.value,{disabled:s.value,checked:d,indeterminate:m}]),style:"dot"!==v.value?{fontSize:(0,r.Nn)(b)}:{width:(0,r.Nn)(b),height:(0,r.Nn)(b),borderColor:null===(t=p.value)||void 0===t?void 0:t.borderColor}},[l.icon?l.icon({checked:d,disabled:s.value}):"dot"!==v.value?(0,i.Wm)(u.JO,{name:m?"minus":"success",style:p.value},null):(0,i.Wm)("div",{class:o("icon--dot__icon"),style:{backgroundColor:null===(n=p.value)||void 0===n?void 0:n.backgroundColor}},null)])},f=()=>{var{checked:t}=e;if(l.default)return(0,i.Wm)("span",{class:e.bem("label",[e.labelPosition,{disabled:s.value}])},[l.default({checked:t,disabled:s.value})])};return()=>{var t="left"===e.labelPosition?[f(),b()]:[b(),f()];return(0,i.Wm)("div",{role:e.role,class:e.bem([{disabled:s.value,"label-disabled":e.labelDisabled},d.value]),tabindex:s.value?void 0:0,"aria-checked":e.checked,onClick:m},[t])}}})},90516:function(e,t,n){"use strict";n.d(t,{J:function(){return l}});var i=n("80681"),o=n("55944");function l(e,t){var n=(0,o.F)(e,!0);return e=>(0,i.Wm)("div",{class:t("placeholder"),style:{height:n.value?"".concat(n.value,"px"):void 0}},[e()])}},2309:function(e,t,n){"use strict";n("82116"),n("17989"),n("66786"),n("14529");var i=n("80681"),o=n("62568"),l=n("78335"),a=n("12308"),r=n("20358"),[u,c]=(0,o.do)("loading"),s=Array(12).fill(null).map((e,t)=>(0,i.Wm)("i",{class:c("line",String(t+1))},null)),d=(0,i.Wm)("svg",{class:c("circular"),viewBox:"25 25 50 50"},[(0,i.Wm)("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),p={size:l.Or,type:(0,l.SQ)("circular"),color:String,vertical:Boolean,textSize:l.Or,textColor:String};t.Z=(0,i.aZ)({name:u,props:p,setup(e,t){var{slots:n}=t,o=(0,i.Fl)(()=>(0,a.l7)({color:e.color},(0,r.Xn)(e.size))),l=()=>{var t="spinner"===e.type?s:d;return(0,i.Wm)("span",{class:c("spinner",e.type),style:o.value},[n.icon?n.icon():t])},u=()=>{if(n.default){var t;return(0,i.Wm)("span",{class:c("text"),style:{fontSize:(0,r.Nn)(e.textSize),color:null!==(t=e.textColor)&&void 0!==t?t:e.color}},[n.default()])}};return()=>{var{type:t,vertical:n}=e;return(0,i.Wm)("div",{class:c([t,{vertical:n}]),"aria-live":"polite","aria-busy":!0},[l(),u()])}}})},75895:function(e,t,n){"use strict";n("82116"),n("17989"),n("89176"),n("59644");var i=n("80681"),o=n("11848"),l=n("62568"),a=n("78335"),r=n("96528"),u=n("99497"),c=n("90516"),[s,d,p]=(0,l.do)("submit-bar"),v={tip:String,label:String,price:Number,tipIcon:String,loading:Boolean,currency:(0,a.SQ)("\xa5"),disabled:Boolean,textAlign:String,buttonText:String,buttonType:(0,a.SQ)("danger"),buttonColor:String,suffixLabel:String,placeholder:Boolean,decimalLength:(0,a.SI)(2),safeAreaInsetBottom:a.J5};t.Z=(0,i.aZ)({name:s,props:v,emits:["submit"],setup(e,t){var{emit:n,slots:l}=t,a=(0,o.iH)(),s=(0,c.J)(a,d),v=()=>{var{price:t,label:n,currency:o,textAlign:l,suffixLabel:a,decimalLength:r}=e;if("number"==typeof t){var u=(t/100).toFixed(+r).split("."),c=r?".".concat(u[1]):"";return(0,i.Wm)("div",{class:d("text"),style:{textAlign:l}},[(0,i.Wm)("span",null,[n||p("label")]),(0,i.Wm)("span",{class:d("price")},[o,(0,i.Wm)("span",{class:d("price-integer")},[u[0]]),c]),a&&(0,i.Wm)("span",{class:d("suffix-label")},[a])])}},m=()=>{var t,{tip:n,tipIcon:o}=e;if(l.tip||n)return(0,i.Wm)("div",{class:d("tip")},[o&&(0,i.Wm)(r.JO,{class:d("tip-icon"),name:o},null),n&&(0,i.Wm)("span",{class:d("tip-text")},[n]),null===(t=l.tip)||void 0===t?void 0:t.call(l)])},b=()=>n("submit"),f=()=>l.button?l.button():(0,i.Wm)(u.zx,{round:!0,type:e.buttonType,text:e.buttonText,class:d("button",e.buttonType),color:e.buttonColor,loading:e.loading,disabled:e.disabled,onClick:b},null),g=()=>{var t,n;return(0,i.Wm)("div",{ref:a,class:[d(),{"van-safe-area-bottom":e.safeAreaInsetBottom}]},[null===(t=l.top)||void 0===t?void 0:t.call(l),m(),(0,i.Wm)("div",{class:d("bar")},[null===(n=l.default)||void 0===n?void 0:n.call(l),v(),f()])])};return()=>e.placeholder?s(g):g()}})},21083:function(e,t,n){"use strict";n("82116"),n("17989");var i=n("80681"),o=n("62568"),l=n("78335"),a=n("12308"),r=n("20897"),u=n("96528"),c=n("97760"),s=n("95786"),[d,p]=(0,o.do)("toast"),v=["show","overlay","teleport","transition","overlayClass","overlayStyle","closeOnClickOverlay","zIndex"],m={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,i.aZ)({name:d,props:m,emits:["update:show"],setup(e,t){var n,{emit:o,slots:l}=t,d=!1,m=()=>{var t=e.show&&e.forbidClick;d!==t&&(d=t,(0,r.G)(d))},b=e=>o("update:show",e),f=()=>{e.closeOnClick&&b(!1)},g=()=>clearTimeout(n),S=()=>{var{icon:t,type:n,iconSize:o,iconPrefix:l,loadingType:a}=e;return t||"success"===n||"fail"===n?(0,i.Wm)(u.JO,{name:t||n,size:o,class:p("icon"),classPrefix:l},null):"loading"===n?(0,i.Wm)(s.gb,{class:p("loading"),size:o,type:a},null):void 0},h=()=>{var{type:t,message:n}=e;return l.message?(0,i.Wm)("div",{class:p("text")},[l.message()]):(0,a.Xq)(n)&&""!==n?"html"===t?(0,i.Wm)("div",{key:0,class:p("text"),innerHTML:String(n)},null):(0,i.Wm)("div",{class:p("text")},[n]):void 0};return(0,i.YP)(()=>[e.show,e.forbidClick],m),(0,i.YP)(()=>[e.show,e.type,e.message,e.duration],()=>{g(),e.show&&e.duration>0&&(n=setTimeout(()=>{b(!1)},e.duration))}),(0,i.bv)(m),(0,i.Ah)(m),()=>(0,i.Wm)(c.GI,(0,i.dG)({class:[p([e.position,"normal"===e.wordBreak?"break-normal":e.wordBreak,{[e.type]:!e.icon}]),e.className],lockScroll:!1,onClick:f,onClosed:g,"onUpdate:show":b},(0,a.ei)(e,v)),{default:()=>[S(),h()]})}})},13118:function(e,t,n){"use strict";n.d(t,{CF:function(){return p},LJ:function(){return f},XA:function(){return b},di:function(){return m},yg:function(){return g}}),n("24836"),n("41712"),n("80855"),n("10502"),n("7978"),n("66746"),n("17530"),n("87604"),n("57024"),n("22175"),n("85322"),n("47897"),n("48943"),n("43356"),n("82116"),n("17989"),n("96245"),n("37232"),n("70629"),n("61557"),n("31564"),n("8649");var i=n("80681"),o=n("11848"),l=n("12308"),a=n("84285"),r=n("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 p(){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,a.H)({setup(){var e=(0,o.iH)(""),{open:t,state:n,close:l,toggle:u}=(0,a.o)(),c=()=>{};return(0,i.YP)(e,e=>{n.message=e}),(0,i.FN)().render=()=>(0,i.Wm)(r.Z,(0,i.dG)(n,{onClosed:c,"onUpdate:show":u}),null),{open:t,close:l,message:e}}});return e}();u.push(e)}return u[u.length-1]}(),n=d(e);return t.open((0,l.l7)({},c,s.get(n.type||c.type),n)),t}var v=e=>t=>p((0,l.l7)({type:e},d(t))),m=v("loading"),b=v("success"),f=v("fail"),g=e=>{if(u.length){if(e)u.forEach(e=>{e.close()}),u=[];else{var t;u[0].close()}}}},67225:function(e,t,n){"use strict";n.r(e.exports={})},96504:function(e,t,n){"use strict";n.r(e.exports={})}}]);