vant/static/js/async/1353.b0ba2157.js
2024-04-20 08:49:23 +00:00

2 lines
13 KiB
JavaScript

/*! For license information please see 1353.b0ba2157.js.LICENSE.txt */
(self.webpackChunk=self.webpackChunk||[]).push([["1353"],{45010:function(e,o,t){"use strict";t.r(o);var a=t("46947");t("50095");let n=a.Z;o.default=n},87758:function(e,o){"use strict";o.Z={name:"vant-icon",basic:["arrow","arrow-left","arrow-up","arrow-down","arrow-double-left","arrow-double-right","success","cross","plus","minus","fail","circle"],outline:["location-o","like-o","star-o","phone-o","setting-o","fire-o","coupon-o","cart-o","shopping-cart-o","cart-circle-o","friends-o","comment-o","gem-o","gift-o","point-gift-o","send-gift-o","service-o","bag-o","todo-list-o","balance-list-o","close","clock-o","question-o","passed","add-o","gold-coin-o","info-o","play-circle-o","pause-circle-o","stop-circle-o","warning-o","phone-circle-o","music-o","smile-o","thumb-circle-o","comment-circle-o","browsing-history-o","underway-o","more-o","video-o","shop-o","shop-collect-o","share-o","chat-o","smile-comment-o","vip-card-o","award-o","diamond-o","volume-o","cluster-o","wap-home-o","photo-o","gift-card-o","expand-o","medal-o","good-job-o","manager-o","label-o","bookmark-o","bill-o","hot-o","hot-sale-o","new-o","new-arrival-o","goods-collect-o","eye-o","delete-o","font-o","contact-o","notes-o","records-o","cash-back-record-o","newspaper-o","discount-o","completed-o","user-o","description-o","balance-o","refund-o","birthday-cake-o","orders-o","tv-o","envelop-o","flag-o","flower-o","filter-o","bar-chart-o","chart-trending-o","brush-o","bullhorn-o","hotel-o","cashier-o","warn-o","calendar-o","bulb-o","user-circle-o","desktop-o","apps-o","home-o","back-top","search","points","edit","qr","qr-invalid","closed-eye","down","scan","revoke","free-postage","certificate","logistics","after-sale","exchange","upgrade","ellipsis","sign","failure","ecard-pay","peer-pay","balance-pay","credit-pay","debit-pay","cash-on-deliver","other-pay","tosend","pending-payment","paid","aim","idcard","replay","shrink","shield-o","guide-o","cash-o","link-o","miniprogram-o","list-switch","list-switching"],filled:["location","like","star","phone","setting","fire","coupon","cart","shopping-cart","cart-circle","friends","comment","gem","gift","point-gift","send-gift","service","bag","todo-list","balance-list","clear","clock","question","checked","add","gold-coin","info","play-circle","pause-circle","stop-circle","warning","phone-circle","music","smile","thumb-circle","comment-circle","browsing-history","underway","more","video","shop","shop-collect","share","chat","smile-comment","vip-card","award","diamond","volume","cluster","wap-home","photo","gift-card","expand","medal","good-job","manager","label","bookmark","bill","hot","hot-sale","new","new-arrival","goods-collect","eye","delete","font","contact","notes","records","cash-back-record","newspaper","discount","completed","user","description","wechat","wechat-pay","wechat-moments","qq","alipay","weibo","photograph","youzan-shield","umbrella-circle","bell","printer","map-marked","card","add-square","live","lock","audio","graphic","column","invitation","play","pause","stop","weapp-nav","ascending","descending","bars","wap-nav","enlarge","photo-fail","sort"]}},46947:function(e,o,t){"use strict";var a=t("80681"),n=t("11848"),l=t("57122"),i=t("96528"),r=t("19924"),c=t("44616"),s=t("23483"),u=t("19294"),d=t("87758"),m=t("54369"),p=t("24647"),f=t("32387"),g="chat-o";o.Z=(0,a.aZ)({__name:"index",setup(e){var o=(0,m.q)({"zh-CN":{title:"\u56FE\u6807\u5217\u8868",badge:"\u5FBD\u6807\u63D0\u793A",basic:"\u57FA\u7840\u56FE\u6807",copied:"\u590D\u5236\u6210\u529F",outline:"\u7EBF\u6846\u98CE\u683C",filled:"\u5B9E\u5E95\u98CE\u683C",demo:"\u7528\u6CD5\u793A\u4F8B",color:"\u56FE\u6807\u989C\u8272",size:"\u56FE\u6807\u5927\u5C0F"},"en-US":{title:"Icon List",badge:"Show Badge",basic:"Basic",copied:"Copied",outline:"Outline",filled:"Filled",demo:"Demo",color:"Icon Color",size:"Icon Size"}}),t=(0,n.iH)(0),v=(0,p.RQ)("icon-demo.png"),h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a='<van-icon name="'.concat(e,'"');"dot"in t&&(a="".concat(a," ").concat(t.dot?"dot":"")),"badge"in t&&(a="".concat(a,' badge="').concat(t.badge,'"')),"color"in t&&(a="".concat(a,' color="').concat(t.color,'"')),"size"in t&&(a="".concat(a,' size="').concat(t.size,'"')),!function(e){var o=document.createElement("textarea");o.value=e,o.setAttribute("readonly",""),o.style.position="absolute",o.style.left="-9999px",document.body.appendChild(o);var t=document.getSelection();if(t){var a=t.rangeCount>0&&t.getRangeAt(0);o.select(),document.execCommand("copy"),document.body.removeChild(o),a&&(t.removeAllRanges(),t.addRange(a))}}(a="".concat(a," />")),(0,f.NU)({type:"success",duration:1500,className:"demo-icon-notify",message:"".concat(o("copied"),"\uFF1A").concat(a)})};return(e,m)=>{var p=(0,a.up)("demo-block");return(0,a.wg)(),(0,a.j4)((0,n.SU)(r.ZP),{active:t.value,"onUpdate:active":m[9]||(m[9]=e=>t.value=e),sticky:""},{default:(0,a.w5)(()=>[(0,a.Wm)((0,n.SU)(c.ZP),{class:"demo-icon-tab-panel",title:(0,n.SU)(o)("demo")},{default:(0,a.w5)(()=>[(0,a.Wm)(p,{title:(0,n.SU)(o)("basicUsage")},{default:(0,a.w5)(()=>[(0,a.Wm)((0,n.SU)(s.ZP),null,{default:(0,a.w5)(()=>[(0,a.Wm)((0,n.SU)(u.ZP),{span:"6",onClick:m[0]||(m[0]=e=>h(g))},{default:(0,a.w5)(()=>[(0,a.Wm)((0,n.SU)(i.ZP),{name:g})]),_:1})]),_:1})]),_:1},8,["title"]),(0,a.Wm)(p,{title:(0,n.SU)(o)("usingUrl")},{default:(0,a.w5)(()=>[(0,a.Wm)((0,n.SU)(s.ZP),null,{default:(0,a.w5)(()=>[(0,a.Wm)((0,n.SU)(u.ZP),{span:"6",onClick:m[1]||(m[1]=e=>h((0,n.SU)(v)))},{default:(0,a.w5)(()=>[(0,a.Wm)((0,n.SU)(i.ZP),{name:(0,n.SU)(v)},null,8,["name"])]),_:1})]),_:1})]),_:1},8,["title"]),(0,a.Wm)(p,{title:(0,n.SU)(o)("badge")},{default:(0,a.w5)(()=>[(0,a.Wm)((0,n.SU)(s.ZP),null,{default:(0,a.w5)(()=>[(0,a.Wm)((0,n.SU)(u.ZP),{span:"6",onClick:m[2]||(m[2]=e=>h(g,{dot:!0}))},{default:(0,a.w5)(()=>[(0,a.Wm)((0,n.SU)(i.ZP),{name:g,dot:""})]),_:1}),(0,a.Wm)((0,n.SU)(u.ZP),{span:"6",onClick:m[3]||(m[3]=e=>h(g,{badge:"9"}))},{default:(0,a.w5)(()=>[(0,a.Wm)((0,n.SU)(i.ZP),{name:g,badge:"9"})]),_:1}),(0,a.Wm)((0,n.SU)(u.ZP),{span:"6",onClick:m[4]||(m[4]=e=>h(g,{badge:"99+"}))},{default:(0,a.w5)(()=>[(0,a.Wm)((0,n.SU)(i.ZP),{name:g,badge:"99+"})]),_:1})]),_:1})]),_:1},8,["title"]),(0,a.Wm)(p,{title:(0,n.SU)(o)("color")},{default:(0,a.w5)(()=>[(0,a.Wm)((0,n.SU)(s.ZP),null,{default:(0,a.w5)(()=>[(0,a.Wm)((0,n.SU)(u.ZP),{span:"6",onClick:m[5]||(m[5]=e=>h("cart-o",{color:"#1989fa"}))},{default:(0,a.w5)(()=>[(0,a.Wm)((0,n.SU)(i.ZP),{name:"cart-o",color:"#1989fa"})]),_:1}),(0,a.Wm)((0,n.SU)(u.ZP),{span:"6",onClick:m[6]||(m[6]=e=>h("fire-o",{color:"#ee0a24"}))},{default:(0,a.w5)(()=>[(0,a.Wm)((0,n.SU)(i.ZP),{name:"fire-o",color:"#ee0a24"})]),_:1})]),_:1})]),_:1},8,["title"]),(0,a.Wm)(p,{title:(0,n.SU)(o)("size")},{default:(0,a.w5)(()=>[(0,a.Wm)((0,n.SU)(s.ZP),null,{default:(0,a.w5)(()=>[(0,a.Wm)((0,n.SU)(u.ZP),{span:"6",onClick:m[7]||(m[7]=e=>h(g,{size:"40"}))},{default:(0,a.w5)(()=>[(0,a.Wm)((0,n.SU)(i.ZP),{name:g,size:"40"})]),_:1}),(0,a.Wm)((0,n.SU)(u.ZP),{span:"6",onClick:m[8]||(m[8]=e=>h(g,{size:"3rem"}))},{default:(0,a.w5)(()=>[(0,a.Wm)((0,n.SU)(i.ZP),{name:g,size:"3rem"})]),_:1})]),_:1})]),_:1},8,["title"])]),_:1},8,["title"]),(0,a.Wm)((0,n.SU)(c.ZP),{class:"demo-icon-tab-panel",title:(0,n.SU)(o)("basic")},{default:(0,a.w5)(()=>[(0,a.Wm)((0,n.SU)(s.ZP),null,{default:(0,a.w5)(()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)((0,n.SU)(d.Z).basic,e=>((0,a.wg)(),(0,a.j4)((0,n.SU)(u.ZP),{key:e,span:"6",onClick:o=>h(e)},{default:(0,a.w5)(()=>[(0,a.Wm)((0,n.SU)(i.ZP),{name:e},null,8,["name"]),(0,a._)("span",null,(0,l.zw)(e),1)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["title"]),(0,a.Wm)((0,n.SU)(c.ZP),{class:"demo-icon-tab-panel",title:(0,n.SU)(o)("outline")},{default:(0,a.w5)(()=>[(0,a.Wm)((0,n.SU)(s.ZP),null,{default:(0,a.w5)(()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)((0,n.SU)(d.Z).outline,e=>((0,a.wg)(),(0,a.j4)((0,n.SU)(u.ZP),{key:e,span:"6",onClick:o=>h(e)},{default:(0,a.w5)(()=>[(0,a.Wm)((0,n.SU)(i.ZP),{name:e},null,8,["name"]),(0,a._)("span",null,(0,l.zw)(e),1)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["title"]),(0,a.Wm)((0,n.SU)(c.ZP),{class:"demo-icon-tab-panel",title:(0,n.SU)(o)("filled")},{default:(0,a.w5)(()=>[(0,a.Wm)((0,n.SU)(s.ZP),null,{default:(0,a.w5)(()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)((0,n.SU)(d.Z).filled,e=>((0,a.wg)(),(0,a.j4)((0,n.SU)(u.ZP),{key:e,span:"6",onClick:o=>h(e)},{default:(0,a.w5)(()=>[(0,a.Wm)((0,n.SU)(i.ZP),{name:e},null,8,["name"]),(0,a._)("span",null,(0,l.zw)(e),1)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["title"])]),_:1},8,["active"])}}})},24647:function(e,o,t){"use strict";t.d(o,{RQ:function(){return a}});var a=e=>"https://fastly.jsdelivr.net/npm/@vant/assets/".concat(e)},19294:function(e,o,t){"use strict";var a=t("63112"),n=t("24657"),l=(0,a.n)(n.C);o.ZP=l},23483:function(e,o,t){"use strict";var a=t("63112"),n=t("66125"),l=(0,a.n)(n.ZP);o.ZP=l},84285:function(e,o,t){"use strict";t.d(o,{H:function(){return c},o:function(){return r}});var a=t("11848"),n=t("39594"),l=t("12308"),i=t("10023");function r(){var e=(0,a.qj)({show:!1}),o=o=>{e.show=o},t=t=>{(0,l.l7)(e,t,{transitionAppear:!0}),o(!0)},n=()=>o(!1);return(0,i.F)({open:t,close:n,toggle:o}),{open:t,close:n,state:e,toggle:o}}function c(e){var o=(0,n.ri)(e),t=document.createElement("div");return document.body.appendChild(t),{instance:o.mount(t),unmount(){o.unmount(),document.body.removeChild(t)}}}},24657:function(e,o,t){"use strict";t("82116"),t("17989");var a=t("80681"),n=t("62568"),l=t("78335"),i=t("12308"),r=t("22300"),c=t("66125"),[s,u]=(0,n.do)("col"),d={tag:(0,l.SQ)("div"),span:(0,l.SI)(0),offset:l.Or};o.C=(0,a.aZ)({name:s,props:d,setup(e,o){var{slots:t}=o,{parent:n,index:l}=(0,r.NB)(c.oA),s=(0,a.Fl)(()=>{if(n){var{spaces:e,verticalSpaces:o}=n,t={};if(e&&e.value&&e.value[l.value]){var{left:a,right:r}=e.value[l.value];t={paddingLeft:a?"".concat(a,"px"):null,paddingRight:r?"".concat(r,"px"):null}}var{bottom:c}=o.value[l.value]||{};return(0,i.l7)(t,{marginBottom:c?"".concat(c,"px"):null})}});return()=>{var{tag:o,span:n,offset:l}=e;return(0,a.Wm)(o,{style:s.value,class:u({[n]:n,["offset-".concat(l)]:l})},{default:()=>{var e;return[null===(e=t.default)||void 0===e?void 0:e.call(t)]}})}}})},21917:function(e,o,t){"use strict";t("82116"),t("17989");var a=t("80681"),n=t("62568"),l=t("12308"),i=t("78335"),r=t("97760"),c=t("3558"),[s,u]=(0,n.do)("notify"),d=["lockScroll","position","show","teleport","zIndex"],m=(0,l.l7)({},c.W,{type:(0,i.SQ)("danger"),color:String,message:i.Or,position:(0,i.SQ)("top"),className:i.Vg,background:String,lockScroll:Boolean});o.Z=(0,a.aZ)({name:s,props:m,emits:["update:show"],setup(e,o){var{emit:t,slots:n}=o,i=e=>t("update:show",e);return()=>(0,a.Wm)(r.GI,(0,a.dG)({class:[u([e.type]),e.className],style:{color:e.color,background:e.background},overlay:!1,duration:.2,"onUpdate:show":i},(0,l.ei)(e,d)),{default:()=>[n.default?n.default():e.message]})}})},32387:function(e,o,t){"use strict";t.d(o,{NU:function(){return m}});var a,n,l=t("80681"),i=t("12308"),r=t("84285"),c=t("21917"),s=e=>(0,i.Kn)(e)?e:{message:e},u={type:"danger",color:void 0,message:"",onClose:void 0,onClick:void 0,onOpened:void 0,duration:3e3,position:void 0,className:"",lockScroll:!1,background:void 0},d=()=>{n&&n.toggle(!1)};function m(e){if(i._f)return!n&&({instance:n}=(0,r.H)({setup(){var{state:e,toggle:o}=(0,r.o)();return()=>(0,l.Wm)(c.Z,(0,l.dG)(e,{"onUpdate:show":o}),null)}})),e=(0,i.l7)({},u,s(e)),n.open(e),clearTimeout(a),e.duration>0&&(a=setTimeout(d,e.duration)),n}},66125:function(e,o,t){"use strict";t.d(o,{oA:function(){return s}}),t("82116"),t("17989"),t("86795"),t("31564"),t("8649"),t("70629"),t("61557");var a=t("80681"),n=t("62568"),l=t("78335"),i=t("22300"),[r,c]=(0,n.do)("row"),s=Symbol(r),u={tag:(0,l.SQ)("div"),wrap:l.J5,align:String,gutter:{type:[String,Number,Array],default:0},justify:String};o.ZP=(0,a.aZ)({name:r,props:u,setup(e,o){var{slots:t}=o,{children:n,linkChildren:l}=(0,i.$E)(s),r=(0,a.Fl)(()=>{var e=[[]],o=0;return n.forEach((t,a)=>{(o+=Number(t.span))>24?(e.push([a]),o-=24):e[e.length-1].push(a)}),e}),u=(0,a.Fl)(()=>{var o=0;o=Array.isArray(e.gutter)?Number(e.gutter[0])||0:Number(e.gutter);var t=[];return o?(r.value.forEach(e=>{var a=o*(e.length-1)/e.length;e.forEach((e,n)=>{if(0===n)t.push({right:a});else{var l=o-t[e-1].right;t.push({left:l,right:a-l})}})}),t):t});return l({spaces:u,verticalSpaces:(0,a.Fl)(()=>{var{gutter:o}=e,t=[];if(Array.isArray(o)&&o.length>1){var a=Number(o[1])||0;if(a<=0)return t;r.value.forEach((e,o)=>{o!==r.value.length-1&&e.forEach(()=>{t.push({bottom:a})})})}return t})}),()=>{var{tag:o,wrap:n,align:l,justify:i}=e;return(0,a.Wm)(o,{class:c({["align-".concat(l)]:l,["justify-".concat(i)]:i,nowrap:!n})},{default:()=>{var e;return[null===(e=t.default)||void 0===e?void 0:e.call(t)]}})}}})},50095:function(e,o,t){"use strict";t.r(e.exports={})},60970:function(e,o,t){"use strict";t.r(e.exports={})}}]);