index-legacy.6bf8fcc4.js 2.6 KB

1
  1. !function(){function n(n,r){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var r=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null==r)return;var t,u,o=[],a=!0,i=!1;try{for(r=r.call(n);!(a=(t=r.next()).done)&&(o.push(t.value),!e||o.length!==e);a=!0);}catch(c){i=!0,u=c}finally{try{a||null==r.return||r.return()}finally{if(i)throw u}}return o}(n,r)||function(n,r){if(!n)return;if("string"==typeof n)return e(n,r);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.constructor.name);if("Map"===t||"Set"===t)return Array.from(n);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return e(n,r)}(n,r)||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 e(n,e){(null==e||e>n.length)&&(e=n.length);for(var r=0,t=new Array(e);r<e;r++)t[r]=n[r];return t}System.register(["./utils-legacy.24861f33.js","./index-legacy.62a334e5.js","./index-legacy.47bc1690.js"],(function(e){"use strict";var r,t,u,o,a,i,c,l,f,m,s,d,y,p,v,h,g;return{setters:[function(n){r=n.s,t=n.a,u=n.f,o=n.p},function(n){a=n.P},function(n){i=n.t,c=n.N,l=n.w,f=n.d,m=n.R,s=n.y,d=n.Z,y=n.aW,p=n.c,v=n.E,h=n.am,g=n.D}],execute:function(){var b=n(i("time-picker"),1)[0],x=c({},r,{minHour:l(0),maxHour:l(23),minMinute:l(0),maxMinute:l(59),minSecond:l(0),maxSecond:l(59),columnsType:{type:Array,default:function(){return["hour","minute"]}}}),A=f({name:b,props:x,emits:["confirm","cancel","change","update:modelValue"],setup:function(n,e){var r=e.emit,i=e.slots,c=m(n.modelValue),l=s((function(){return n.columnsType.map((function(e){var r=n.filter,u=n.formatter;switch(e){case"hour":return t(+n.minHour,+n.maxHour,e,u,r);case"minute":return t(+n.minMinute,+n.maxMinute,e,u,r);case"second":return t(+n.minSecond,+n.maxSecond,e,u,r);default:return[]}}))}));d(c,(function(e){y(e,n.modelValue)||r("update:modelValue",e)})),d((function(){return n.modelValue}),(function(n){n=u(n,l.value),y(n,c.value)||(c.value=n)}),{immediate:!0});var f=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return r.apply(void 0,["change"].concat(e))},g=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return r.apply(void 0,["cancel"].concat(e))},b=function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return r.apply(void 0,["confirm"].concat(e))};return function(){return p(a,v({modelValue:c.value,"onUpdate:modelValue":function(n){return c.value=n},columns:l.value,onChange:f,onCancel:g,onConfirm:b},h(n,o)),i)}}});e("T",g(A))}}}))}();