index-legacy.e1f7a34d.js 7.0 KB

1
  1. !function(){function e(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||t(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var a,o,i=[],r=!0,c=!1;try{for(t=t.call(e);!(r=(a=t.next()).done)&&(i.push(a.value),!n||i.length!==n);r=!0);}catch(s){c=!0,o=s}finally{try{r||null==t.return||t.return()}finally{if(c)throw o}}return i}(e,n)||t(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,n){if(e){if("string"==typeof e)return a(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?a(e,n):void 0}}function a(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}var o=document.createElement("style");o.innerHTML=':root{--van-action-sheet-max-height: 80%;--van-action-sheet-header-height: 1.28rem;--van-action-sheet-header-font-size: var(--van-font-size-lg);--van-action-sheet-description-color: var(--van-text-color-2);--van-action-sheet-description-font-size: var(--van-font-size-md);--van-action-sheet-description-line-height: var(--van-line-height-md);--van-action-sheet-item-background: var(--van-background-color-light);--van-action-sheet-item-font-size: var(--van-font-size-lg);--van-action-sheet-item-line-height: var(--van-line-height-lg);--van-action-sheet-item-text-color: var(--van-text-color);--van-action-sheet-item-disabled-text-color: var(--van-text-color-3);--van-action-sheet-subname-color: var(--van-text-color-2);--van-action-sheet-subname-font-size: var(--van-font-size-sm);--van-action-sheet-subname-line-height: var(--van-line-height-sm);--van-action-sheet-close-icon-size: .58667rem;--van-action-sheet-close-icon-color: var(--van-gray-5);--van-action-sheet-close-icon-padding: 0 var(--van-padding-md);--van-action-sheet-cancel-text-color: var(--van-gray-7);--van-action-sheet-cancel-padding-top: var(--van-padding-xs);--van-action-sheet-cancel-padding-color: var(--van-background-color);--van-action-sheet-loading-icon-size: .58667rem}.van-action-sheet{display:flex;flex-direction:column;max-height:var(--van-action-sheet-max-height);overflow:hidden;color:var(--van-action-sheet-item-text-color)}.van-action-sheet__content{flex:1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch}.van-action-sheet__item,.van-action-sheet__cancel{display:block;width:100%;padding:.37333rem var(--van-padding-md);font-size:var(--van-action-sheet-item-font-size);background:var(--van-action-sheet-item-background);border:none;cursor:pointer}.van-action-sheet__item:active,.van-action-sheet__cancel:active{background-color:var(--van-active-color)}.van-action-sheet__item{line-height:var(--van-action-sheet-item-line-height)}.van-action-sheet__item--loading,.van-action-sheet__item--disabled{color:var(--van-action-sheet-item-disabled-text-color)}.van-action-sheet__item--loading:active,.van-action-sheet__item--disabled:active{background-color:var(--van-action-sheet-item-background)}.van-action-sheet__item--disabled{cursor:not-allowed}.van-action-sheet__item--loading{cursor:default}.van-action-sheet__cancel{flex-shrink:0;box-sizing:border-box;color:var(--van-action-sheet-cancel-text-color)}.van-action-sheet__subname{margin-top:var(--van-padding-xs);color:var(--van-action-sheet-subname-color);font-size:var(--van-action-sheet-subname-font-size);line-height:var(--van-action-sheet-subname-line-height)}.van-action-sheet__gap{display:block;height:var(--van-action-sheet-cancel-padding-top);background:var(--van-action-sheet-cancel-padding-color)}.van-action-sheet__header{flex-shrink:0;font-weight:var(--van-font-weight-bold);font-size:var(--van-action-sheet-header-font-size);line-height:var(--van-action-sheet-header-height);text-align:center}.van-action-sheet__description{position:relative;flex-shrink:0;padding:.53333rem var(--van-padding-md);color:var(--van-action-sheet-description-color);font-size:var(--van-action-sheet-description-font-size);line-height:var(--van-action-sheet-description-line-height);text-align:center}.van-action-sheet__description:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:var(--van-padding-md);bottom:0;left:var(--van-padding-md);border-bottom:.02667rem solid var(--van-border-color);transform:scaleY(.5)}.van-action-sheet__loading-icon .van-loading__spinner{width:var(--van-action-sheet-loading-icon-size);height:var(--van-action-sheet-loading-icon-size)}.van-action-sheet__close{position:absolute;top:0;right:0;padding:var(--van-action-sheet-close-icon-padding);color:var(--van-action-sheet-close-icon-color);font-size:var(--van-action-sheet-close-icon-size);line-height:inherit}\n',document.head.appendChild(o),System.register(["./index-legacy.fba2875c.js"],(function(t){"use strict";var a,o,i,r,c,s,l,v,d,h,u,g,m,f,p,b,_;return{setters:[function(e){a=e.A,o=e.I,i=e.aU,r=e.G,c=e.aV,s=e.$,l=e.aW,v=e.d,d=e.j,h=e.a7,u=e.aA,g=e.aR,m=e.M,f=e.aX,p=e.aS,b=e.W,_=e.N}],execute:function(){var y=n(a("action-sheet"),2),x=y[0],z=y[1],k=o({},i,{title:String,round:r,actions:c(),closeIcon:s("cross"),closeable:r,cancelText:String,description:String,closeOnPopstate:r,closeOnClickAction:Boolean,safeAreaInsetBottom:r}),w=[].concat(e(l),["round","closeOnPopstate","safeAreaInsetBottom"]),A=v({name:x,props:k,emits:["select","cancel","update:show"],setup:function(e,n){var t=n.slots,a=n.emit,o=function(e){return a("update:show",e)},i=function(){o(!1),a("cancel")},r=function(){if(e.title)return d("div",{class:z("header")},[e.title,e.closeable&&d(m,{name:e.closeIcon,class:[z("close"),f],onClick:i},null)])},c=function(){if(t.cancel||e.cancelText)return[d("div",{class:z("gap")},null),d("button",{type:"button",class:z("cancel"),onClick:i},[t.cancel?t.cancel():e.cancelText])]},s=function(e,n){return e.loading?d(p,{class:z("loading-icon")},null):t.action?t.action({action:e,index:n}):[d("span",{class:z("name")},[e.name]),e.subname&&d("div",{class:z("subname")},[e.subname])]},l=function(n,t){var i=n.color,r=n.loading,c=n.callback,l=n.disabled,v=n.className;return d("button",{type:"button",style:{color:i},class:[z("item",{loading:r,disabled:l}),v],onClick:function(){l||r||(c&&c(n),e.closeOnClickAction&&o(!1),b((function(){return a("select",n,t)})))}},[s(n,t)])},v=function(){if(e.description||t.description){var n=t.description?t.description():e.description;return d("div",{class:z("description")},[n])}};return function(){return d(g,h({class:z(),position:"bottom","onUpdate:show":o},u(e,w)),{default:function(){var n;return[r(),v(),d("div",{class:z("content")},[e.actions.map(l),null==(n=t.default)?void 0:n.call(t)]),c()]}})}}});t("A",_(A))}}}))}();