index-legacy.66910864.js 2.6 KB

1
  1. !function(){function e(e,t){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 r,o,a=[],i=!0,u=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(c){u=!0,o=c}finally{try{i||null==t.return||t.return()}finally{if(u)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}(e,t)||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 n(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var t=document.createElement("style");t.innerHTML=":root{--van-count-down-text-color: var(--van-text-color);--van-count-down-font-size: var(--van-font-size-md);--van-count-down-line-height: var(--van-line-height-md)}.van-count-down{color:var(--van-count-down-text-color);font-size:var(--van-count-down-font-size);line-height:var(--van-count-down-line-height)}\n",document.head.appendChild(t),System.register(["./ResizeObserver.es-legacy.8d60aee1.js"],(function(n){"use strict";var t,r,o,a,i,u,c,l,s,f,d,m;return{setters:[function(e){t=e.aQ,r=e.E,o=e.ab,a=e.a0,i=e.H,u=e.d,c=e.aR,l=e.W,s=e.a3,f=e.ak,d=e.j,m=e.O}],execute:function(){var v=e(r("count-down"),2),h=v[0],p=v[1],y={time:o(0),format:a("HH:mm:ss"),autoStart:i,millisecond:Boolean},S=u({name:h,props:y,emits:["change","finish"],setup:function(e,n){var r=n.emit,o=n.slots,a=c({time:+e.time,millisecond:e.millisecond,onChange:function(e){return r("change",e)},onFinish:function(){return r("finish")}}),i=a.start,u=a.pause,m=a.reset,v=a.current,h=l((function(){return function(e,n){var r=n.days,o=n.hours,a=n.minutes,i=n.seconds,u=n.milliseconds;if(e.includes("DD")?e=e.replace("DD",t(r)):o+=24*r,e.includes("HH")?e=e.replace("HH",t(o)):a+=60*o,e.includes("mm")?e=e.replace("mm",t(a)):i+=60*a,e.includes("ss")?e=e.replace("ss",t(i)):u+=1e3*i,e.includes("S")){var c=t(u,3);e=e.includes("SSS")?e.replace("SSS",c):e.includes("SS")?e.replace("SS",c.slice(0,2)):e.replace("S",c.charAt(0))}return e}(e.format,v.value)})),y=function(){m(+e.time),e.autoStart&&i()};return s((function(){return e.time}),y,{immediate:!0}),f({start:i,pause:u,reset:y}),function(){return d("div",{role:"timer",class:p()},[o.default?o.default(v.value):h.value])}}});n("C",m(S))}}}))}();