-
Notifications
You must be signed in to change notification settings - Fork 0
/
24-es5.41cfede29b3b637d985c.js
1 lines (1 loc) · 44.7 KB
/
24-es5.41cfede29b3b637d985c.js
1
!function(){function t(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=n(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){c=!0,a=t},f:function(){try{s||null==i.return||i.return()}finally{if(c)throw a}}}}function e(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function i(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||n(t)||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(t,e){if(t){if("string"==typeof t)return r(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?r(t,e):void 0}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function o(t,e,i,n,r,o,a){try{var s=t[o](a),c=s.value}catch(l){return void i(l)}s.done?e(c):Promise.resolve(c).then(n,r)}function a(t){return function(){var e=this,i=arguments;return new Promise((function(n,r){var a=t.apply(e,i);function s(t){o(a,n,r,s,c,"next",t)}function c(t){o(a,n,r,s,c,"throw",t)}s(void 0)}))}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function l(t,e,i){return e&&c(t.prototype,e),i&&c(t,i),t}(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{WgF3:function(n,r,o){"use strict";o.r(r),o.d(r,"ion_datetime",(function(){return X})),o.d(r,"ion_picker",(function(){return rt})),o.d(r,"ion_picker_column",(function(){return st}));var c=o("wEJo"),d=o("E/Mt"),h=o("1vRN"),p=o("SOSK"),u=o("74mu"),m=o("meiF"),f=o("qULd");o("B4Jq");var g=function(t,e,i,n){if(t!==A&&t!==P){if(t===L)return void 0!==i&&void 0!==i.hour?i.hour<12?"AM":"PM":e?e.toUpperCase():"";if(t===q)return void 0!==i&&void 0!==i.hour?i.hour<12?"am":"pm":e||"";if(null==e)return"";if(t===N||t===E||t===H||t===V||t===R||t===J)return C(e);if(t===I)return F(e);if(t===Y)return(n.monthNames?n.monthNames:$)[e-1];if(t===T)return(n.monthShortNames?n.monthShortNames:K)[e-1];if(t===W||t===B){if(0===e)return"12";if(e>12&&(e-=12),t===W&&e<10)return"0"+e}return e.toString()}try{return e=new Date(i.year,i.month-1,i.day).getDay(),t===A?(n.dayNames?n.dayNames:Z)[e]:(n.dayShortNames?n.dayShortNames:_)[e]}catch(r){}},b=function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return parseInt("1".concat(F(t)).concat(C(e)).concat(C(i)).concat(C(n)).concat(C(r)),10)},v=function(t){return b(t.year,t.month,t.day,t.hour,t.minute)},k=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,y=/^((\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,x=function(t){var e=null;if(null!=t&&""!==t&&((e=y.exec(t))?(e.unshift(void 0,void 0),e[2]=e[3]=void 0):e=k.exec(t)),null!==e){for(var i=1;i<8;i++)e[i]=void 0!==e[i]?parseInt(e[i],10):void 0;var n=0;return e[9]&&e[10]&&(n=60*parseInt(e[10],10),e[11]&&(n+=parseInt(e[11],10)),"-"===e[9]&&(n*=-1)),{year:e[1],month:e[2],day:e[3],hour:e[4],minute:e[5],second:e[6],millisecond:e[7],tzOffset:n}}},w=function(t,e){var i=new Date(t.toLocaleString("en-US",{timeZone:"utc"})),n=new Date(t.toLocaleString("en-US",{timeZone:e}));return i.getTime()-n.getTime()},j=function(t,e){return e===L||e===q?t.hour<12?"am":"pm":e===W||e===B?t.hour>12?t.hour-12:0===t.hour?12:t.hour:t[O(e)]},O=function(t){for(var e in U)if(U[e].f===t)return U[e].k},M=function(t){var e="";return void 0!==t.year?(e=F(t.year),void 0!==t.month&&(e+="-"+C(t.month),void 0!==t.day&&(e+="-"+C(t.day),void 0!==t.hour&&(e+="T".concat(C(t.hour),":").concat(C(t.minute),":").concat(C(t.second)),t.millisecond>0&&(e+="."+z(t.millisecond)),e+=void 0===t.tzOffset?"Z":(t.tzOffset>0?"+":"-")+C(Math.floor(Math.abs(t.tzOffset/60)))+":"+C(t.tzOffset%60))))):void 0!==t.hour&&(e=C(t.hour)+":"+C(t.minute),void 0!==t.second&&(e+=":"+C(t.second),void 0!==t.millisecond&&(e+="."+z(t.millisecond)))),e},S=function(t,e){var i;if(null!=t)return"string"==typeof t&&(t=t.replace(/\[|\]/g,"").split(",")),Array.isArray(t)&&(i=t.map((function(t){return t.toString().trim()}))),void 0!==i&&0!==i.length||console.warn('Invalid "'.concat(e,'Names". Must be an array of strings, or a comma separated string.')),i},D=function(t,e){var i;return"string"==typeof t&&(t=t.replace(/\[|\]|\s/g,"").split(",")),0===(i=Array.isArray(t)?t.map((function(t){return parseInt(t,10)})).filter(isFinite):[t]).length&&console.warn('Invalid "'.concat(e,'Values". Must be an array of numbers, or a comma separated string of numbers.')),i},C=function(t){return("0"+(void 0!==t?Math.abs(t):"0")).slice(-2)},z=function(t){return("00"+(void 0!==t?Math.abs(t):"0")).slice(-3)},F=function(t){return("000"+(void 0!==t?Math.abs(t):"0")).slice(-4)},I="YYYY",N="YY",Y="MMMM",T="MMM",E="MM",A="DDDD",P="DDD",H="DD",V="HH",W="hh",B="h",R="mm",J="ss",L="A",q="a",U=[{f:I,k:"year"},{f:Y,k:"month"},{f:A,k:"day"},{f:T,k:"month"},{f:P,k:"day"},{f:N,k:"year"},{f:E,k:"month"},{f:H,k:"day"},{f:V,k:"hour"},{f:W,k:"hour"},{f:R,k:"minute"},{f:J,k:"second"},{f:"M",k:"month"},{f:"D",k:"day"},{f:"H",k:"hour"},{f:B,k:"hour"},{f:"m",k:"minute"},{f:"s",k:"second"},{f:L,k:"ampm"},{f:q,k:"ampm"}],Z=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],_=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],$=["January","February","March","April","May","June","July","August","September","October","November","December"],K=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],G=[W,B,R,"m",J,"s"],X=function(){function t(e){var i=this;s(this,t),Object(c.o)(this,e),this.ionCancel=Object(c.g)(this,"ionCancel",7),this.ionChange=Object(c.g)(this,"ionChange",7),this.ionFocus=Object(c.g)(this,"ionFocus",7),this.ionBlur=Object(c.g)(this,"ionBlur",7),this.ionStyle=Object(c.g)(this,"ionStyle",7),this.inputId="ion-dt-"+et++,this.locale={},this.datetimeMin={},this.datetimeMax={},this.datetimeValue={},this.isExpanded=!1,this.name=this.inputId,this.disabled=!1,this.readonly=!1,this.displayFormat="MMM D, YYYY",this.cancelText="Cancel",this.doneText="Done",this.onClick=function(){i.setFocus(),i.open()},this.onFocus=function(){i.ionFocus.emit()},this.onBlur=function(){i.ionBlur.emit()}}var n;return l(t,[{key:"disabledChanged",value:function(){this.emitStyle()}},{key:"valueChanged",value:function(){this.updateDatetimeValue(this.value),this.emitStyle(),this.ionChange.emit({value:this.value})}},{key:"componentWillLoad",value:function(){this.locale={monthNames:S(this.monthNames,"monthNames"),monthShortNames:S(this.monthShortNames,"monthShortNames"),dayNames:S(this.dayNames,"dayNames"),dayShortNames:S(this.dayShortNames,"dayShortNames")},this.updateDatetimeValue(this.value),this.emitStyle()}},{key:"open",value:(n=a(regeneratorRuntime.mark((function t(){var e,i,n=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.disabled&&!this.isExpanded){t.next=2;break}return t.abrupt("return");case 2:return e=this.generatePickerOptions(),t.next=5,p.m.create(e);case 5:return i=t.sent,this.isExpanded=!0,i.onDidDismiss().then((function(){n.isExpanded=!1,n.setFocus()})),Object(h.a)(i,"ionPickerColChange",function(){var t=a(regeneratorRuntime.mark((function t(e){var r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=e.detail,(o={})[r.name]={value:r.options[r.selectedIndex].value},"ampm"!==r.name&&void 0!==n.datetimeValue.ampm&&(o.ampm={value:n.datetimeValue.ampm}),n.updateDatetimeValue(o),i.columns=n.generateColumns();case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),t.next=11,i.present();case 11:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"emitStyle",value:function(){this.ionStyle.emit({interactive:!0,datetime:!0,"has-placeholder":null!=this.placeholder,"has-value":this.hasValue(),"interactive-disabled":this.disabled})}},{key:"updateDatetimeValue",value:function(t){var e=this;!function(t,i,n){if(!i||"string"==typeof i){var r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";null==t&&(t=""),10!==t.length&&7!==t.length&&4!==t.length||(t+=" ");var i="string"==typeof t&&t.length>0?new Date(t):new Date,n=new Date(Date.UTC(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()));return e&&e.length>0?new Date(i.getTime()-w(n,e)):n}(i,e.displayTimezone);Number.isNaN(r.getTime())||(i=r.toISOString())}if(i&&""!==i){if("string"==typeof i){if(i=x(i))return Object.assign(t,i),!0}else{if(i.year||i.hour||i.month||i.day||i.minute||i.second){void 0!==i.ampm&&void 0!==i.hour&&(i.hour.value="pm"===i.ampm.value?12===i.hour.value?12:i.hour.value+12:12===i.hour.value?0:i.hour.value);for(var o=0,a=Object.keys(i);o<a.length;o++){var s=a[o];t[s]=i[s].value}return!0}if(i.ampm)return i.hour={value:i.hour?i.hour.value:"pm"===i.ampm.value?t.hour<12?t.hour+12:t.hour:t.hour>=12?t.hour-12:t.hour},t.hour=i.hour.value,t.ampm=i.ampm.value,!0}console.warn('Error parsing date: "'.concat(i,'". Please provide a valid ISO 8601 datetime format: https://www.w3.org/TR/NOTE-datetime'))}else for(var c in t)t.hasOwnProperty(c)&&delete t[c]}(this.datetimeValue,t)}},{key:"generatePickerOptions",value:function(){var t=this,e=Object(d.b)(this);this.locale={monthNames:S(this.monthNames,"monthNames"),monthShortNames:S(this.monthShortNames,"monthShortNames"),dayNames:S(this.dayNames,"dayNames"),dayShortNames:S(this.dayShortNames,"dayShortNames")};var i=Object.assign(Object.assign({mode:e},this.pickerOptions),{columns:this.generateColumns()}),n=i.buttons;return n&&0!==n.length||(i.buttons=[{text:this.cancelText,role:"cancel",handler:function(){t.updateDatetimeValue(t.value),t.ionCancel.emit()}},{text:this.doneText,handler:function(e){t.updateDatetimeValue(e);var i=new Date(M(t.datetimeValue));t.datetimeValue.tzOffset=void 0!==t.displayTimezone&&t.displayTimezone.length>0?w(i,t.displayTimezone)/1e3/60*-1:-1*i.getTimezoneOffset(),t.value=M(t.datetimeValue)}}]),i}},{key:"generateColumns",value:function(){var t=this,e=this.pickerFormat||this.displayFormat||tt;if(0===e.length)return[];this.calcMinMax(),-1===(e=e.replace("DDDD","{~}").replace("DDD","{~}")).indexOf("D")&&(e=e.replace("{~}","D"));var i=function(t){var e=[];t=t.replace(/[^\w\s]/gi," "),U.forEach((function(e){e.f.length>1&&t.indexOf(e.f)>-1&&t.indexOf(e.f+e.f.charAt(0))<0&&(t=t.replace(e.f," "+e.f+" "))}));var i=t.split(" ").filter((function(t){return t.length>0}));return i.forEach((function(t,n){U.forEach((function(r){if(t===r.f){if((t===L||t===q)&&(e.indexOf(B)<0&&e.indexOf(W)<0||-1===G.indexOf(i[n-1])))return;e.push(t)}}))})),e}(e=e.replace(/{~}/g,"")).map((function(e){var i=O(e),n=(t[i+"Values"]?D(t[i+"Values"],i):function(t,e,i){var n=[];if(t===I||t===N){if(void 0===i.year||void 0===e.year)throw new Error("min and max year is undefined");for(var r=i.year;r>=e.year;r--)n.push(r)}else if(t===Y||t===T||t===E||"M"===t||t===W||t===B)for(var o=1;o<13;o++)n.push(o);else if(t===A||t===P||t===H||"D"===t)for(var a=1;a<32;a++)n.push(a);else if(t===V||"H"===t)for(var s=0;s<24;s++)n.push(s);else if(t===R||"m"===t)for(var c=0;c<60;c++)n.push(c);else if(t===J||"s"===t)for(var l=0;l<60;l++)n.push(l);else t!==L&&t!==q||n.push("am","pm");return n}(e,t.datetimeMin,t.datetimeMax)).map((function(i){return{value:i,text:g(e,i,void 0,t.locale)}})),r=function(t,e){var i=j(t,e);if(void 0!==i)return e!==L&&e!==q||(t.ampm=i),i;var n=x((new Date).toISOString());return j(n,e)}(t.datetimeValue,e),o=n.findIndex((function(t){return t.value===r}));return{name:i,selectedIndex:o>=0?o:0,options:n}})),n=this.datetimeMin,r=this.datetimeMax;return["month","day","hour","minute"].filter((function(t){return!i.find((function(e){return e.name===t}))})).forEach((function(t){n[t]=0,r[t]=0})),this.validateColumns(Q(i))}},{key:"validateColumns",value:function(t){var e=new Date,i=v(this.datetimeMin),n=v(this.datetimeMax),r=t.find((function(t){return"year"===t.name})),o=e.getFullYear();if(r){r.options.find((function(t){return t.value===e.getFullYear()}))||(o=r.options[0].value);var a=r.selectedIndex;if(void 0!==a){var s=r.options[a];s&&(o=s.value)}}var c,l,d=this.validateColumn(t,"month",1,i,n,[o,0,0,0,0],[o,12,31,23,59]),h=4===(l=d)||6===l||9===l||11===l?30:2===l?(c=o)%4==0&&c%100!=0||c%400==0?29:28:31,p=this.validateColumn(t,"day",2,i,n,[o,d,0,0,0],[o,d,h,23,59]),u=this.validateColumn(t,"hour",3,i,n,[o,d,p,0,0],[o,d,p,23,59]);return this.validateColumn(t,"minute",4,i,n,[o,d,p,u,0],[o,d,p,u,59]),t}},{key:"calcMinMax",value:function(){var t=(new Date).getFullYear();if(void 0!==this.yearValues){var e=D(this.yearValues,"year");void 0===this.min&&(this.min=Math.min.apply(Math,i(e)).toString()),void 0===this.max&&(this.max=Math.max.apply(Math,i(e)).toString())}else void 0===this.min&&(this.min=(t-100).toString()),void 0===this.max&&(this.max=t.toString());var n=this.datetimeMin=x(this.min),r=this.datetimeMax=x(this.max);n.year=n.year||t,r.year=r.year||t,n.month=n.month||1,r.month=r.month||12,n.day=n.day||1,r.day=r.day||31,n.hour=n.hour||0,r.hour=void 0===r.hour?23:r.hour,n.minute=n.minute||0,r.minute=void 0===r.minute?59:r.minute,n.second=n.second||0,r.second=void 0===r.second?59:r.second,n.year>r.year&&(console.error("min.year > max.year"),n.year=r.year-100),n.year===r.year&&(n.month>r.month?(console.error("min.month > max.month"),n.month=1):n.month===r.month&&n.day>r.day&&(console.error("min.day > max.day"),n.day=1))}},{key:"validateColumn",value:function(t,e,i,n,r,o,a){var s=t.find((function(t){return t.name===e}));if(!s)return 0;for(var c=o.slice(),l=a.slice(),d=s.options,p=d.length-1,u=0,m=0;m<d.length;m++){var f=d[m],g=f.value;c[i]=f.value,l[i]=f.value,(f.disabled=g<o[i]||g>a[i]||b(l[0],l[1],l[2],l[3],l[4])<n||b(c[0],c[1],c[2],c[3],c[4])>r)||(p=Math.min(p,m),u=Math.max(u,m))}var v=s.selectedIndex=Object(h.j)(p,s.selectedIndex,u),k=s.options[v];return k?k.value:0}},{key:"text",get:function(){if(null!=this.value&&0!==this.value.length)return function(t,e,i){if(void 0!==e){var n=[],r=!1;if(U.forEach((function(o,a){if(t.indexOf(o.f)>-1){var s="{"+a+"}",c=g(o.f,e[o.k],e,i);r||void 0===c||null==e[o.k]||(r=!0),n.push(s,c||""),t=t.replace(o.f,s)}})),r){for(var o=0;o<n.length;o+=2)t=t.replace(n[o],n[o+1]);return t}}}(this.displayFormat||this.pickerFormat||tt,this.datetimeValue,this.locale)}},{key:"hasValue",value:function(){return void 0!==this.text}},{key:"setFocus",value:function(){this.buttonEl&&this.buttonEl.focus()}},{key:"render",value:function(){var t,i=this,n=this.inputId,r=this.text,o=this.disabled,a=this.readonly,s=this.isExpanded,l=this.el,p=this.placeholder,m=Object(d.b)(this),f=n+"-lbl",g=Object(h.h)(l),b=void 0===r&&null!=p,v=void 0===r?null!=p?p:"":r,k=void 0===r?null!=p?"placeholder":void 0:"text";return g&&(g.id=f),Object(h.e)(!0,l,this.name,this.value,this.disabled),Object(c.j)(c.c,{onClick:this.onClick,"aria-disabled":o?"true":null,"aria-expanded":""+s,"aria-haspopup":"true","aria-labelledby":g?f:null,class:(t={},e(t,m,!0),e(t,"datetime-disabled",o),e(t,"datetime-readonly",a),e(t,"datetime-placeholder",b),e(t,"in-item",Object(u.c)("ion-item",l)),t)},Object(c.j)("div",{class:"datetime-text",part:k},v),Object(c.j)("button",{type:"button",onFocus:this.onFocus,onBlur:this.onBlur,disabled:this.disabled,ref:function(t){return i.buttonEl=t}}))}},{key:"el",get:function(){return Object(c.k)(this)}}],[{key:"watchers",get:function(){return{disabled:["disabledChanged"],value:["valueChanged"]}}}]),t}(),Q=function(e){for(var i,n,r=[],o=0;o<e.length;o++){i=e[o],r.push(0);var a,s=t(i.options);try{for(s.s();!(a=s.n()).done;){(n=a.value.text.length)>r[o]&&(r[o]=n)}}catch(c){s.e(c)}finally{s.f()}}return 2===r.length?(n=Math.max(r[0],r[1]),e[0].align="right",e[1].align="left",e[0].optionsWidth=e[1].optionsWidth=17*n+"px"):3===r.length&&(n=Math.max(r[0],r[2]),e[0].align="right",e[1].columnWidth=17*r[1]+"px",e[0].optionsWidth=e[2].optionsWidth=17*n+"px",e[2].align="left"),e},tt="MMM D, YYYY",et=0;X.style={ios:":host{padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;position:relative;min-width:16px;min-height:1.2em;font-family:var(--ion-font-family, inherit);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;z-index:2}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}:host(.in-item){position:static}:host(.datetime-placeholder){color:var(--placeholder-color)}:host(.datetime-disabled){opacity:0.3;pointer-events:none}:host(.datetime-readonly){pointer-events:none}button{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none}[dir=rtl] button,:host-context([dir=rtl]) button{left:unset;right:unset;right:0}button::-moz-focus-inner{border:0}.datetime-text{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;-ms-flex:1;flex:1;min-height:inherit;direction:ltr;overflow:inherit}[dir=rtl] .datetime-text,:host-context([dir=rtl]) .datetime-text{direction:rtl}:host{--placeholder-color:var(--ion-color-step-400, #999999);--padding-top:10px;--padding-end:10px;--padding-bottom:10px;--padding-start:20px}",md:":host{padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;position:relative;min-width:16px;min-height:1.2em;font-family:var(--ion-font-family, inherit);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;z-index:2}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}:host(.in-item){position:static}:host(.datetime-placeholder){color:var(--placeholder-color)}:host(.datetime-disabled){opacity:0.3;pointer-events:none}:host(.datetime-readonly){pointer-events:none}button{left:0;top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none}[dir=rtl] button,:host-context([dir=rtl]) button{left:unset;right:unset;right:0}button::-moz-focus-inner{border:0}.datetime-text{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;-ms-flex:1;flex:1;min-height:inherit;direction:ltr;overflow:inherit}[dir=rtl] .datetime-text,:host-context([dir=rtl]) .datetime-text{direction:rtl}:host{--placeholder-color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));--padding-top:10px;--padding-end:0;--padding-bottom:11px;--padding-start:16px}"};var it=function(t){var e=Object(m.a)(),i=Object(m.a)(),n=Object(m.a)();return i.addElement(t.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),n.addElement(t.querySelector(".picker-wrapper")).fromTo("transform","translateY(100%)","translateY(0%)"),e.addElement(t).easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation([i,n])},nt=function(t){var e=Object(m.a)(),i=Object(m.a)(),n=Object(m.a)();return i.addElement(t.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",.01),n.addElement(t.querySelector(".picker-wrapper")).fromTo("transform","translateY(0%)","translateY(100%)"),e.addElement(t).easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation([i,n])},rt=function(){function t(e){var i=this;s(this,t),Object(c.o)(this,e),this.didPresent=Object(c.g)(this,"ionPickerDidPresent",7),this.willPresent=Object(c.g)(this,"ionPickerWillPresent",7),this.willDismiss=Object(c.g)(this,"ionPickerWillDismiss",7),this.didDismiss=Object(c.g)(this,"ionPickerDidDismiss",7),this.presented=!1,this.keyboardClose=!0,this.buttons=[],this.columns=[],this.duration=0,this.showBackdrop=!0,this.backdropDismiss=!0,this.animated=!0,this.onBackdropTap=function(){i.dismiss(void 0,p.a)},this.dispatchCancelHandler=function(t){var e=t.detail.role;if(Object(p.j)(e)){var n=i.buttons.find((function(t){return"cancel"===t.role}));i.callButtonHandler(n)}}}var i,n,r;return l(t,[{key:"connectedCallback",value:function(){Object(p.f)(this.el)}},{key:"present",value:(r=a(regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(p.e)(this,"pickerEnter",it,it,void 0);case 2:this.duration>0&&(this.durationTimeout=setTimeout((function(){return e.dismiss()}),this.duration));case 3:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"dismiss",value:function(t,e){return this.durationTimeout&&clearTimeout(this.durationTimeout),Object(p.g)(this,t,e,"pickerLeave",nt,nt)}},{key:"onDidDismiss",value:function(){return Object(p.h)(this.el,"ionPickerDidDismiss")}},{key:"onWillDismiss",value:function(){return Object(p.h)(this.el,"ionPickerWillDismiss")}},{key:"getColumn",value:function(t){return Promise.resolve(this.columns.find((function(e){return e.name===t})))}},{key:"buttonClick",value:(n=a(regeneratorRuntime.mark((function t(e){var i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=e.role,!Object(p.j)(i)){t.next=5;break}t.t0=this.dismiss(void 0,i),t.next=13;break;case 5:return t.next=7,this.callButtonHandler(e);case 7:if(!t.sent){t.next=11;break}t.t1=this.dismiss(this.getSelected(),e.role),t.next=12;break;case 11:t.t1=Promise.resolve();case 12:t.t0=t.t1;case 13:return t.abrupt("return",t.t0);case 14:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"callButtonHandler",value:(i=a(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=!e,t.t0){t.next=7;break}return t.t1=!1,t.next=5,Object(p.n)(e.handler,this.getSelected());case 5:t.t2=t.sent,t.t0=t.t1!==t.t2;case 7:return t.abrupt("return",t.t0);case 8:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"getSelected",value:function(){var t={};return this.columns.forEach((function(e,i){var n=void 0!==e.selectedIndex?e.options[e.selectedIndex]:void 0;t[e.name]={text:n?n.text:void 0,value:n?n.value:void 0,columnIndex:i}})),t}},{key:"render",value:function(){var t,i=this,n=Object(d.b)(this);return Object(c.j)(c.c,{"aria-modal":"true",tabindex:"-1",class:Object.assign((t={},e(t,n,!0),e(t,"picker-"+n,!0),t),Object(u.b)(this.cssClass)),style:{zIndex:""+(2e4+this.overlayIndex)},onIonBackdropTap:this.onBackdropTap,onIonPickerWillDismiss:this.dispatchCancelHandler},Object(c.j)("ion-backdrop",{visible:this.showBackdrop,tappable:this.backdropDismiss}),Object(c.j)("div",{tabindex:"0"}),Object(c.j)("div",{class:"picker-wrapper ion-overlay-wrapper",role:"dialog"},Object(c.j)("div",{class:"picker-toolbar"},this.buttons.map((function(t){return Object(c.j)("div",{class:ot(t)},Object(c.j)("button",{type:"button",onClick:function(){return i.buttonClick(t)},class:at(t)},t.text))}))),Object(c.j)("div",{class:"picker-columns"},Object(c.j)("div",{class:"picker-above-highlight"}),this.presented&&this.columns.map((function(t){return Object(c.j)("ion-picker-column",{col:t})})),Object(c.j)("div",{class:"picker-below-highlight"}))),Object(c.j)("div",{tabindex:"0"}))}},{key:"el",get:function(){return Object(c.k)(this)}}]),t}(),ot=function(t){var i;return e(i={},"picker-toolbar-"+t.role,void 0!==t.role),e(i,"picker-toolbar-button",!0),i},at=function(t){return Object.assign({"picker-button":!0,"ion-activatable":!0},Object(u.b)(t.cssClass))};rt.style={ios:".sc-ion-picker-ios-h{--border-radius:0;--border-style:solid;--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--max-height:auto;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}[dir=rtl].sc-ion-picker-ios-h,[dir=rtl] .sc-ion-picker-ios-h{left:unset;right:unset;right:0}.overlay-hidden.sc-ion-picker-ios-h{display:none}.picker-wrapper.sc-ion-picker-ios{border-radius:var(--border-radius);left:0;right:0;bottom:0;margin-left:auto;margin-right:auto;margin-top:auto;margin-bottom:auto;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;overflow:hidden;z-index:10}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.picker-wrapper.sc-ion-picker-ios{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}.picker-toolbar.sc-ion-picker-ios{width:100%;background:transparent;contain:strict;z-index:1}.picker-button.sc-ion-picker-ios{border:0;font-family:inherit}.picker-button.sc-ion-picker-ios:active,.picker-button.sc-ion-picker-ios:focus{outline:none}.picker-columns.sc-ion-picker-ios{display:-ms-flexbox;display:flex;position:relative;-ms-flex-pack:center;justify-content:center;margin-bottom:var(--ion-safe-area-bottom, 0);contain:strict;direction:ltr;overflow:hidden}.picker-above-highlight.sc-ion-picker-ios,.picker-below-highlight.sc-ion-picker-ios{display:none;pointer-events:none}.sc-ion-picker-ios-h{--background:var(--ion-background-color, #fff);--border-width:1px 0 0;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));--height:260px;--backdrop-opacity:var(--ion-backdrop-opacity, 0.26);color:var(--ion-item-color, var(--ion-text-color, #000))}.picker-toolbar.sc-ion-picker-ios{display:-ms-flexbox;display:flex;height:44px;border-bottom:0.55px solid var(--border-color)}.picker-toolbar-button.sc-ion-picker-ios{-ms-flex:1;flex:1;text-align:end}.picker-toolbar-button.sc-ion-picker-ios:last-child .picker-button.sc-ion-picker-ios{font-weight:600}.picker-toolbar-button.sc-ion-picker-ios:first-child{font-weight:normal;text-align:start}.picker-button.sc-ion-picker-ios,.picker-button.ion-activated.sc-ion-picker-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:1em;padding-right:1em;padding-top:0;padding-bottom:0;height:44px;background:transparent;color:var(--ion-color-primary, #3880ff);font-size:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.picker-button.sc-ion-picker-ios,.picker-button.ion-activated.sc-ion-picker-ios{padding-left:unset;padding-right:unset;-webkit-padding-start:1em;padding-inline-start:1em;-webkit-padding-end:1em;padding-inline-end:1em}}.picker-columns.sc-ion-picker-ios{height:215px;-webkit-perspective:1000px;perspective:1000px}.picker-above-highlight.sc-ion-picker-ios{left:0;top:0;-webkit-transform:translate3d(0, 0, 90px);transform:translate3d(0, 0, 90px);display:block;position:absolute;width:100%;height:81px;border-bottom:1px solid var(--border-color);background:-webkit-gradient(linear, left top, left bottom, color-stop(20%, var(--background, var(--ion-background-color, #fff))), to(rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8)));background:linear-gradient(to bottom, var(--background, var(--ion-background-color, #fff)) 20%, rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8) 100%);z-index:10}[dir=rtl].sc-ion-picker-ios .picker-above-highlight.sc-ion-picker-ios,[dir=rtl].sc-ion-picker-ios-h .picker-above-highlight.sc-ion-picker-ios,[dir=rtl] .sc-ion-picker-ios-h .picker-above-highlight.sc-ion-picker-ios{left:unset;right:unset;right:0}.picker-below-highlight.sc-ion-picker-ios{left:0;top:115px;-webkit-transform:translate3d(0, 0, 90px);transform:translate3d(0, 0, 90px);display:block;position:absolute;width:100%;height:119px;border-top:1px solid var(--border-color);background:-webkit-gradient(linear, left bottom, left top, color-stop(30%, var(--background, var(--ion-background-color, #fff))), to(rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8)));background:linear-gradient(to top, var(--background, var(--ion-background-color, #fff)) 30%, rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8) 100%);z-index:11}[dir=rtl].sc-ion-picker-ios .picker-below-highlight.sc-ion-picker-ios,[dir=rtl].sc-ion-picker-ios-h .picker-below-highlight.sc-ion-picker-ios,[dir=rtl] .sc-ion-picker-ios-h .picker-below-highlight.sc-ion-picker-ios{left:unset;right:unset;right:0}",md:".sc-ion-picker-md-h{--border-radius:0;--border-style:solid;--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--max-height:auto;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}[dir=rtl].sc-ion-picker-md-h,[dir=rtl] .sc-ion-picker-md-h{left:unset;right:unset;right:0}.overlay-hidden.sc-ion-picker-md-h{display:none}.picker-wrapper.sc-ion-picker-md{border-radius:var(--border-radius);left:0;right:0;bottom:0;margin-left:auto;margin-right:auto;margin-top:auto;margin-bottom:auto;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;overflow:hidden;z-index:10}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.picker-wrapper.sc-ion-picker-md{margin-left:unset;margin-right:unset;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}}.picker-toolbar.sc-ion-picker-md{width:100%;background:transparent;contain:strict;z-index:1}.picker-button.sc-ion-picker-md{border:0;font-family:inherit}.picker-button.sc-ion-picker-md:active,.picker-button.sc-ion-picker-md:focus{outline:none}.picker-columns.sc-ion-picker-md{display:-ms-flexbox;display:flex;position:relative;-ms-flex-pack:center;justify-content:center;margin-bottom:var(--ion-safe-area-bottom, 0);contain:strict;direction:ltr;overflow:hidden}.picker-above-highlight.sc-ion-picker-md,.picker-below-highlight.sc-ion-picker-md{display:none;pointer-events:none}.sc-ion-picker-md-h{--background:var(--ion-background-color, #fff);--border-width:0.55px 0 0;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));--height:260px;--backdrop-opacity:var(--ion-backdrop-opacity, 0.26);color:var(--ion-item-color, var(--ion-text-color, #000))}.picker-toolbar.sc-ion-picker-md{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;height:44px}.picker-button.sc-ion-picker-md,.picker-button.ion-activated.sc-ion-picker-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:1.1em;padding-right:1.1em;padding-top:0;padding-bottom:0;height:44px;background:transparent;color:var(--ion-color-primary, #3880ff);font-size:14px;font-weight:500;text-transform:uppercase;-webkit-box-shadow:none;box-shadow:none}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.picker-button.sc-ion-picker-md,.picker-button.ion-activated.sc-ion-picker-md{padding-left:unset;padding-right:unset;-webkit-padding-start:1.1em;padding-inline-start:1.1em;-webkit-padding-end:1.1em;padding-inline-end:1.1em}}.picker-columns.sc-ion-picker-md{height:216px;-webkit-perspective:1800px;perspective:1800px}.picker-above-highlight.sc-ion-picker-md{left:0;top:0;-webkit-transform:translate3d(0, 0, 90px);transform:translate3d(0, 0, 90px);position:absolute;width:100%;height:81px;border-bottom:1px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));background:-webkit-gradient(linear, left top, left bottom, color-stop(20%, var(--ion-background-color, #fff)), to(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)));background:linear-gradient(to bottom, var(--ion-background-color, #fff) 20%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 100%);z-index:10}[dir=rtl].sc-ion-picker-md .picker-above-highlight.sc-ion-picker-md,[dir=rtl].sc-ion-picker-md-h .picker-above-highlight.sc-ion-picker-md,[dir=rtl] .sc-ion-picker-md-h .picker-above-highlight.sc-ion-picker-md{left:unset;right:unset;right:0}.picker-below-highlight.sc-ion-picker-md{left:0;top:115px;-webkit-transform:translate3d(0, 0, 90px);transform:translate3d(0, 0, 90px);position:absolute;width:100%;height:119px;border-top:1px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));background:-webkit-gradient(linear, left bottom, left top, color-stop(30%, var(--ion-background-color, #fff)), to(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)));background:linear-gradient(to top, var(--ion-background-color, #fff) 30%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 100%);z-index:11}[dir=rtl].sc-ion-picker-md .picker-below-highlight.sc-ion-picker-md,[dir=rtl].sc-ion-picker-md-h .picker-below-highlight.sc-ion-picker-md,[dir=rtl] .sc-ion-picker-md-h .picker-below-highlight.sc-ion-picker-md{left:unset;right:unset;right:0}"};var st=function(){function t(e){s(this,t),Object(c.o)(this,e),this.ionPickerColChange=Object(c.g)(this,"ionPickerColChange",7),this.optHeight=0,this.rotateFactor=0,this.scaleFactor=1,this.velocity=0,this.y=0,this.noAnimate=!0}var i;return l(t,[{key:"colChanged",value:function(){this.refresh()}},{key:"connectedCallback",value:(i=a(regeneratorRuntime.mark((function t(){var e,i,n=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=0,i=.81,"ios"===Object(d.b)(this)&&(e=-.46,i=1),this.rotateFactor=e,this.scaleFactor=i,t.next=6,Promise.resolve().then(o.bind(null,"KF81"));case 6:this.gesture=t.sent.createGesture({el:this.el,gestureName:"picker-swipe",gesturePriority:100,threshold:0,passive:!1,onStart:function(t){return n.onStart(t)},onMove:function(t){return n.onMove(t)},onEnd:function(t){return n.onEnd(t)}}),this.gesture.enable(),this.tmrId=setTimeout((function(){n.noAnimate=!1,n.refresh(!0)}),250);case 9:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"componentDidLoad",value:function(){var t=this.optsEl;t&&(this.optHeight=t.firstElementChild?t.firstElementChild.clientHeight:0),this.refresh()}},{key:"disconnectedCallback",value:function(){cancelAnimationFrame(this.rafId),clearTimeout(this.tmrId),this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}},{key:"emitColChange",value:function(){this.ionPickerColChange.emit(this.col)}},{key:"setSelected",value:function(t,e){var i=t>-1?-t*this.optHeight:0;this.velocity=0,cancelAnimationFrame(this.rafId),this.update(i,e,!0),this.emitColChange()}},{key:"update",value:function(t,e,i){if(this.optsEl){for(var n=0,r=0,o=this.col,a=this.rotateFactor,s=o.selectedIndex=this.indexForY(-t),c=0===e?"":e+"ms",l="scale(".concat(this.scaleFactor,")"),d=this.optsEl.children,h=0;h<d.length;h++){var p=d[h],u=o.options[h],m=h*this.optHeight+t,g="";if(0!==a){var b=m*a;Math.abs(b)<=90?(n=0,r=90,g="rotateX(".concat(b,"deg) ")):n=-9999}else r=0,n=m;var v=s===h;g+="translate3d(0px,".concat(n,"px,").concat(r,"px) "),1===this.scaleFactor||v||(g+=l),this.noAnimate?(u.duration=0,p.style.transitionDuration=""):e!==u.duration&&(u.duration=e,p.style.transitionDuration=c),g!==u.transform&&(u.transform=g,p.style.transform=g),v!==u.selected&&(u.selected=v,v?p.classList.add(ct):p.classList.remove(ct))}this.col.prevSelected=s,i&&(this.y=t),this.lastIndex!==s&&(Object(f.b)(),this.lastIndex=s)}}},{key:"decelerate",value:function(){var t=this;if(0!==this.velocity){this.velocity*=lt,this.velocity=this.velocity>0?Math.max(this.velocity,1):Math.min(this.velocity,-1);var e=this.y+this.velocity;e>this.minY?(e=this.minY,this.velocity=0):e<this.maxY&&(e=this.maxY,this.velocity=0),this.update(e,0,!0),Math.round(e)%this.optHeight!=0||Math.abs(this.velocity)>1?this.rafId=requestAnimationFrame((function(){return t.decelerate()})):(this.velocity=0,this.emitColChange(),Object(f.e)())}else if(this.y%this.optHeight!=0){var i=Math.abs(this.y%this.optHeight);this.velocity=i>this.optHeight/2?1:-1,this.decelerate()}}},{key:"indexForY",value:function(t){return Math.min(Math.max(Math.abs(Math.round(t/this.optHeight)),0),this.col.options.length-1)}},{key:"onStart",value:function(t){t.event.cancelable&&t.event.preventDefault(),t.event.stopPropagation(),Object(f.a)(),cancelAnimationFrame(this.rafId);for(var e=this.col.options,i=e.length-1,n=0,r=0;r<e.length;r++)e[r].disabled||(i=Math.min(i,r),n=Math.max(n,r));this.minY=-i*this.optHeight,this.maxY=-n*this.optHeight}},{key:"onMove",value:function(t){t.event.cancelable&&t.event.preventDefault(),t.event.stopPropagation();var e=this.y+t.deltaY;e>this.minY?(e=Math.pow(e,.8),this.bounceFrom=e):e<this.maxY?(e+=Math.pow(this.maxY-e,.9),this.bounceFrom=e):this.bounceFrom=0,this.update(e,0,!1)}},{key:"onEnd",value:function(t){if(this.bounceFrom>0)return this.update(this.minY,100,!0),void this.emitColChange();if(this.bounceFrom<0)return this.update(this.maxY,100,!0),void this.emitColChange();if(this.velocity=Object(h.j)(-dt,23*t.velocityY,dt),0===this.velocity&&0===t.deltaY){var e=t.event.target.closest(".picker-opt");e&&e.hasAttribute("opt-index")&&this.setSelected(parseInt(e.getAttribute("opt-index"),10),ht)}else{if(this.y+=t.deltaY,Math.abs(t.velocityY)<.05){var i=t.deltaY>0,n=Math.abs(this.y)%this.optHeight/this.optHeight;i&&n>.5?this.velocity=-1*Math.abs(this.velocity):!i&&n<=.5&&(this.velocity=Math.abs(this.velocity))}this.decelerate()}}},{key:"refresh",value:function(t){for(var e=this.col.options.length-1,i=0,n=this.col.options,r=0;r<n.length;r++)n[r].disabled||(e=Math.min(e,r),i=Math.max(i,r));if(0===this.velocity){var o=Object(h.j)(e,this.col.selectedIndex||0,i);if(this.col.prevSelected!==o||t){var a=o*this.optHeight*-1;this.velocity=0,this.update(a,ht,!0)}}}},{key:"render",value:function(){var t,i=this,n=this.col,r=Object(d.b)(this);return Object(c.j)(c.c,{class:(t={},e(t,r,!0),e(t,"picker-col",!0),e(t,"picker-opts-left","left"===this.col.align),e(t,"picker-opts-right","right"===this.col.align),t),style:{"max-width":this.col.columnWidth}},n.prefix&&Object(c.j)("div",{class:"picker-prefix",style:{width:n.prefixWidth}},n.prefix),Object(c.j)("div",{class:"picker-opts",style:{maxWidth:n.optionsWidth},ref:function(t){return i.optsEl=t}},n.options.map((function(t,e){return Object(c.j)("button",{type:"button",class:{"picker-opt":!0,"picker-opt-disabled":!!t.disabled},"opt-index":e},t.text)}))),n.suffix&&Object(c.j)("div",{class:"picker-suffix",style:{width:n.suffixWidth}},n.suffix))}},{key:"el",get:function(){return Object(c.k)(this)}}],[{key:"watchers",get:function(){return{col:["colChanged"]}}}]),t}(),ct="picker-opt-selected",lt=.97,dt=90,ht=150;st.style={ios:".picker-col{display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-pack:center;justify-content:center;height:100%;-webkit-box-sizing:content-box;box-sizing:content-box;contain:content}.picker-opts{position:relative;-ms-flex:1;flex:1;max-width:100%}.picker-opt{left:0;top:0;display:block;position:absolute;width:100%;border:0;text-align:center;text-overflow:ellipsis;white-space:nowrap;contain:strict;overflow:hidden;will-change:transform}[dir=rtl] .picker-opt,:host-context([dir=rtl]) .picker-opt{left:unset;right:unset;right:0}.picker-opt.picker-opt-disabled{pointer-events:none}.picker-opt-disabled{opacity:0}.picker-opts-left{-ms-flex-pack:start;justify-content:flex-start}.picker-opts-right{-ms-flex-pack:end;justify-content:flex-end}.picker-opt:active,.picker-opt:focus{outline:none}.picker-prefix{position:relative;-ms-flex:1;flex:1;text-align:end;white-space:nowrap}.picker-suffix{position:relative;-ms-flex:1;flex:1;text-align:start;white-space:nowrap}.picker-col{padding-left:4px;padding-right:4px;padding-top:0;padding-bottom:0;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.picker-col{padding-left:unset;padding-right:unset;-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px}}.picker-prefix,.picker-suffix,.picker-opts{top:77px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;color:inherit;font-size:20px;line-height:42px;pointer-events:none}.picker-opt{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-transform-origin:center center;transform-origin:center center;height:46px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;background:transparent;color:inherit;font-size:20px;line-height:42px;-webkit-backface-visibility:hidden;backface-visibility:hidden;pointer-events:auto}[dir=rtl] .picker-opt,:host-context([dir=rtl]) .picker-opt{-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}",md:".picker-col{display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-pack:center;justify-content:center;height:100%;-webkit-box-sizing:content-box;box-sizing:content-box;contain:content}.picker-opts{position:relative;-ms-flex:1;flex:1;max-width:100%}.picker-opt{left:0;top:0;display:block;position:absolute;width:100%;border:0;text-align:center;text-overflow:ellipsis;white-space:nowrap;contain:strict;overflow:hidden;will-change:transform}[dir=rtl] .picker-opt,:host-context([dir=rtl]) .picker-opt{left:unset;right:unset;right:0}.picker-opt.picker-opt-disabled{pointer-events:none}.picker-opt-disabled{opacity:0}.picker-opts-left{-ms-flex-pack:start;justify-content:flex-start}.picker-opts-right{-ms-flex-pack:end;justify-content:flex-end}.picker-opt:active,.picker-opt:focus{outline:none}.picker-prefix{position:relative;-ms-flex:1;flex:1;text-align:end;white-space:nowrap}.picker-suffix{position:relative;-ms-flex:1;flex:1;text-align:start;white-space:nowrap}.picker-col{padding-left:8px;padding-right:8px;padding-top:0;padding-bottom:0;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.picker-col{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px}}.picker-prefix,.picker-suffix,.picker-opts{top:77px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;color:inherit;font-size:22px;line-height:42px;pointer-events:none}.picker-opt{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;height:43px;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;background:transparent;color:inherit;font-size:22px;line-height:42px;-webkit-backface-visibility:hidden;backface-visibility:hidden;pointer-events:auto}.picker-prefix,.picker-suffix,.picker-opt.picker-opt-selected{color:var(--ion-color-primary, #3880ff)}"}}}])}();