index-legacy.9d25098b.js 4.4 KB

1
  1. !function(){function a(a,n){return function(a){if(Array.isArray(a))return a}(a)||function(a,r){var n=null==a?null:"undefined"!=typeof Symbol&&a[Symbol.iterator]||a["@@iterator"];if(null==n)return;var o,t,e=[],l=!0,i=!1;try{for(n=n.call(a);!(l=(o=n.next()).done)&&(e.push(o.value),!r||e.length!==r);l=!0);}catch(v){i=!0,t=v}finally{try{l||null==n.return||n.return()}finally{if(i)throw t}}return e}(a,n)||function(a,n){if(!a)return;if("string"==typeof a)return r(a,n);var o=Object.prototype.toString.call(a).slice(8,-1);"Object"===o&&a.constructor&&(o=a.constructor.name);if("Map"===o||"Set"===o)return Array.from(a);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return r(a,n)}(a,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 r(a,r){(null==r||r>a.length)&&(r=a.length);for(var n=0,o=new Array(r);n<r;n++)o[n]=a[n];return o}var n=document.createElement("style");n.innerHTML=':root{--van-tag-padding: 0 var(--van-padding-base);--van-tag-text-color: var(--van-white);--van-tag-font-size: var(--van-font-size-sm);--van-tag-border-radius: .05333rem;--van-tag-line-height: .42667rem;--van-tag-medium-padding: .05333rem .16rem;--van-tag-large-padding: var(--van-padding-base) var(--van-padding-xs);--van-tag-large-border-radius: var(--van-border-radius-md);--van-tag-large-font-size: var(--van-font-size-md);--van-tag-round-border-radius: var(--van-border-radius-max);--van-tag-danger-color: var(--van-danger-color);--van-tag-primary-color: var(--van-primary-color);--van-tag-success-color: var(--van-success-color);--van-tag-warning-color: var(--van-warning-color);--van-tag-default-color: var(--van-gray-6);--van-tag-plain-background-color: var(--van-background-color-light)}.van-tag{position:relative;display:inline-flex;align-items:center;padding:var(--van-tag-padding);color:var(--van-tag-text-color);font-size:var(--van-tag-font-size);line-height:var(--van-tag-line-height);border-radius:var(--van-tag-border-radius)}.van-tag--default{background:var(--van-tag-default-color)}.van-tag--default.van-tag--plain{color:var(--van-tag-default-color)}.van-tag--danger{background:var(--van-tag-danger-color)}.van-tag--danger.van-tag--plain{color:var(--van-tag-danger-color)}.van-tag--primary{background:var(--van-tag-primary-color)}.van-tag--primary.van-tag--plain{color:var(--van-tag-primary-color)}.van-tag--success{background:var(--van-tag-success-color)}.van-tag--success.van-tag--plain{color:var(--van-tag-success-color)}.van-tag--warning{background:var(--van-tag-warning-color)}.van-tag--warning.van-tag--plain{color:var(--van-tag-warning-color)}.van-tag--plain{background:var(--van-tag-plain-background-color);border-color:currentColor}.van-tag--plain:before{position:absolute;top:0;right:0;bottom:0;left:0;border:.02667rem solid;border-color:inherit;border-radius:inherit;content:"";pointer-events:none}.van-tag--medium{padding:var(--van-tag-medium-padding)}.van-tag--large{padding:var(--van-tag-large-padding);font-size:var(--van-tag-large-font-size);border-radius:var(--van-tag-large-border-radius)}.van-tag--mark{border-radius:0 var(--van-tag-round-border-radius) var(--van-tag-round-border-radius) 0}.van-tag--mark:after{display:block;width:.05333rem;content:""}.van-tag--round{border-radius:var(--van-tag-round-border-radius)}.van-tag__close{margin-left:.05333rem}\n',document.head.appendChild(n),System.register(["./ResizeObserver.es-legacy.44b91b4c.js"],(function(r){"use strict";var n,o,t,e,l,i,v,g,d;return{setters:[function(a){n=a.E,o=a.H,t=a.a0,e=a.d,l=a.j,i=a.a_,v=a.aU,g=a.N,d=a.O}],execute:function(){var c=a(n("tag"),2),u=c[0],s=c[1],p={size:String,mark:Boolean,show:o,type:t("default"),color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean},f=e({name:u,props:p,emits:["close"],setup:function(a,r){var n=r.slots,o=r.emit,t=function(a){a.stopPropagation(),o("close",a)},e=function(){var r,o=a.type,e=a.mark,i=a.plain,d=a.round,c=a.size,u=a.closeable,p={mark:e,plain:i,round:d};c&&(p[c]=c);var f=u&&l(g,{name:"cross",class:[s("close"),v],onClick:t},null);return l("span",{style:a.plain?{color:a.textColor||a.color,borderColor:a.color}:{color:a.textColor,background:a.color},class:s([p,o])},[null==(r=n.default)?void 0:r.call(n),f])};return function(){return l(i,{name:a.closeable?"van-fade":void 0},{default:function(){return[a.show?e():null]}})}}});r("T",d(f))}}}))}();