1"use strict";(self.webpackChunktrader=self.webpackChunktrader||[]).push([[7428],{7428:($,N,k)=>{k.r(N),k.d(N,{ion_datetime_button:()=>V});var R=k(4467),A=k(467),Q=k(3029),H=k(2901),p=k(4620),F=k(1371),J=k(4576),X=k(7887),E=k(3254);function x(){var b,o,a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",n=a.toStringTag||"@@toStringTag";function d(g,C,K,I){var B=Object.create((C&&C.prototype instanceof l?C:l).prototype);return h(B,"_invoke",function(D,M,G){var y,u,f,L=0,z=G||[],j=!1,P={p:0,n:0,v:b,a:W,f:W.bind(b,4),d:function(_,T){return y=_,u=0,f=b,P.n=T,e}};function W(w,_){for(u=w,f=_,o=0;!j&&L&&!T&&o<z.length;o++){var T,v=z[o],U=P.p,S=v[2];w>3?(T=S===_)&&(f=v[(u=v[4])?5:(u=3,3)],v[4]=v[5]=b):v[0]<=U&&((T=w<2&&U<v[1])?(u=0,P.v=_,P.n=v[1]):U<S&&(T=w<3||v[0]>_||_>S)&&(v[4]=w,v[5]=_,P.n=S,u=0))}if(T||w>1)return e;throw j=!0,_}return function(w,_,T){if(L>1)throw TypeError("Generator is already running");for(j&&1===_&&W(_,T),u=_,f=T;(o=u<2?b:f)||!j;){y||(u?u<3?(u>1&&(P.n=-1),W(u,f)):P.n=f:P.v=f);try{if(L=2,y){if(u||(w="next"),o=y[w]){if(!(o=o.call(y,f)))throw TypeError("iterator result is not an object");if(!o.done)return o;f=o.value,u<2&&(u=0)}else 1===u&&(o=y.return)&&o.call(y),u<2&&(f=TypeError("The iterator does not provide a '"+w+"' method"),u=1);y=b}else if((o=(j=P.n<0)?f:D.call(M,P))!==e)break}catch(v){y=b,u=1,f=v}finally{L=1}}return{value:o,done:j}}}(g,K,I),!0),B}var e={};function l(){}function r(){}function t(){}o=Object.getPrototypeOf;var m=[][s]?o(o([][s]())):(h(o={},s,function(){return this}),o),i=t.prototype=l.prototype=Object.create(m);function c(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,t):(g.__proto__=t,h(g,n,"GeneratorFunction")),g.prototype=Object.create(i),g}return r.prototype=t,h(i,"constructor",t),h(t,"constructor",r),r.displayName="GeneratorFunction",h(t,n,"GeneratorFunction"),h(i),h(i,n,"Generator"),h(i,s,function(){return this}),h(i,"toString",function(){return"[object Generator]"}),(x=function(){return{w:d,m:c}})()}function h(b,o,a,s){var n=Object.defineProperty;try{n({},"",{})}catch{n=0}(h=function(e,l,r,t){function m(i,c){h(e,i,function(g){return this._invoke(i,c,g)})}l?n?n(e,l,{value:r,enumerable:!t,configurable:!t,writable:!t}):e[l]=r:(m("next",0),m("throw",1),m("return",2))})(b,o,a,s)}var V=function(){return(0,H.A)(function b(o){var a=this;(0,Q.A)(this,b),(0,p.r)(this,o),this.datetimeEl=null,this.overlayEl=null,this.datetimePresentation="date-time",this.datetimeActive=!1,this.color="primary",this.disabled=!1,this.getParsedDateValues=function(s){return null==s?[]:Array.isArray(s)?s:[s]},this.setDateTimeText=function(){var s,n,d,e,l,r=a.datetimeEl,t=a.datetimePresentation;if(r){var i=r.locale,c=r.formatOptions,g=r.hourCycle,C=r.preferWheel,K=r.multiple,I=r.titleSelectedDatesFormatter,O=a.getParsedDateValues(r.value),B=(0,E.s)(O.length>0?O:[(0,E.z)()]);if(B){var D=B[0],M=(0,E.O)(i,g);switch(a.dateText=a.timeText=void 0,t){case"date-time":case"time-date":var G=(0,E.Q)(i,D,null!==(s=c?.date)&&void 0!==s?s:{month:"short",day:"numeric",year:"numeric"}),y=(0,E.P)(i,D,M,c?.time);C?a.dateText="".concat(G," ").concat(y):(a.dateText=G,a.timeText=y);break;case"date":if(K&&1!==O.length){var u="".concat(O.length," days");if(void 0!==I)try{u=I(O)}catch(f){(0,p.j)("[ion-datetime-button] - Exception in provided `titleSelectedDatesFormatter`:",f)}a.dateText=u}else a.dateText=(0,E.Q)(i,D,null!==(n=c?.date)&&void 0!==n?n:{month:"short",day:"numeric",year:"numeric"});break;case"time":a.timeText=(0,E.P)(i,D,M,c?.time);break;case"month-year":a.dateText=(0,E.Q)(i,D,null!==(d=c?.date)&&void 0!==d?d:{month:"long",year:"numeric"});break;case"month":a.dateText=(0,E.Q)(i,D,null!==(e=c?.time)&&void 0!==e?e:{month:"long"});break;case"year":a.dateText=(0,E.Q)(i,D,null!==(l=c?.time)&&void 0!==l?l:{year:"numeric"})}}}},this.waitForDatetimeChanges=(0,A.A)(x().m(function s(){var n;return x().w(function(d){for(;;)switch(d.n){case 0:if(n=a.datetimeEl){d.n=1;break}return d.a(2,Promise.resolve());case 1:return d.a(2,new Promise(function(e){(0,F.f)(n,"ionRender",e,{once:!0})}))}},s)})),this.handleDateClick=function(){var s=(0,A.A)(x().m(function n(d){var e,l,r,t,m;return x().w(function(i){for(;;)switch(i.n){case 0:if(l=a.datetimePresentation,e=a.datetimeEl){i.n=1;break}return i.a(2);case 1:r=!1,i.n="date-time"===(m=l)||"time-date"===m?2:3;break;case 2:return t="date"!==e.presentation,!e.preferWheel&&t&&(e.presentation="date",r=!0),i.a(3,3);case 3:a.selectedButton="date",a.presentOverlay(d,r,a.dateTargetEl);case 4:return i.a(2)}},n)}));return function(n){return s.apply(this,arguments)}}(),this.handleTimeClick=function(s){var n=a.datetimeEl;if(n){var e=!1;switch(a.datetimePresentation){case"date-time":case"time-date":"time"!==n.presentation&&(n.presentation="time",e=!0)}a.selectedButton="time",a.presentOverlay(s,e,a.timeTargetEl)}},this.presentOverlay=function(){var s=(0,A.A)(x().m(function n(d,e,l){var r;return x().w(function(t){for(;;)switch(t.n){case 0:if(r=a.overlayEl){t.n=1;break}return t.a(2);case 1:if("ION-POPOVER"!==r.tagName){t.n=3;break}if(!e){t.n=2;break}return t.n=2,a.waitForDatetimeChanges();case 2:r.present(Object.assign(Object.assign({},d),{detail:{ionShadowTarget:l}})),t.n=4;break;case 3:r.present();case 4:return t.a(2)}},n)}));return function(n,d,e){return s.apply(this,arguments)}}()}
1,[{key:"componentWillLoad",value:(o=(0,A.A)(x().m(function s(){var d,e,r,n=this;return x().w(function(t){for(;;)switch(t.n){case 0:if(d=this.datetime){t.n=1;break}return(0,p.j)("[ion-datetime-button] - An ID associated with an ion-datetime instance is required to function properly.",this.el),t.a(2);case 1:if(e=this.datetimeEl=document.getElementById(d)){t.n=2;break}return(0,p.j)("[ion-datetime-button] - No ion-datetime instance found for ID '".concat(d,"'."),this.el),t.a(2);case 2:if("ION-DATETIME"===e.tagName){t.n=3;break}return(0,p.j)("[ion-datetime-button] - Expected an ion-datetime instance for ID '".concat(d,"' but received '").concat(e.tagName.toLowerCase(),"' instead."),e),t.a(2);case 3:new IntersectionObserver(function(m){n.datetimeActive=m[0].isIntersecting},{threshold:.01}).observe(e),(r=this.overlayEl=e.closest("ion-modal, ion-popover"))&&r.classList.add("ion-datetime-button-overlay"),(0,F.c)(e,function(){var m=n.datetimePresentation=e.presentation||"date-time";switch(n.setDateTimeText(),(0,F.f)(e,"ionValueChange",n.setDateTimeText),m){case"date-time":case"date":case"month-year":case"month":case"year":n.selectedButton="date";break;case"time-date":case"time":n.selectedButton="time"}});case 4:return t.a(2)}},s,this)})),function a(){return o.apply(this,arguments)})},{key:"render",value:function(){var a=this,s=this.color,n=this.dateText,d=this.timeText,e=this.selectedButton,l=this.datetimeActive,r=this.disabled,t=(0,X.b)(this);return(0,p.h)(p.d,{key:"11d037e6ab061e5116842970760b04850b42f2c7",class:(0,J.c)(s,(0,R.A)((0,R.A)((0,R.A)({},t,!0),"".concat(e,"-active"),l),"datetime-button-disabled",r))},n&&(0,p.h)("button",{key:"08ecb62da0fcbf7466a1f2403276712a3ff17fbc",class:"ion-activatable",id:"date-button","aria-expanded":l?"true":"false",onClick:this.handleDateClick,disabled:r,part:"native",ref:function(i){return a.dateTargetEl=i}},(0,p.h)("slot",{key:"1c04853d4d23c0f1a594602bde44511c98355644",name:"date-target"},n),"md"===t&&(0,p.h)("ion-ripple-effect",{key:"5fc566cd4bc885bcf983ce99e3dc65d7f485bf9b"})),d&&(0,p.h)("button",{key:"c9c5c34ac338badf8659da22bea5829d62c51169",class:"ion-activatable",id:"time-button","aria-expanded":l?"true":"false",onClick:this.handleTimeClick,disabled:r,part:"native",ref:function(i){return a.timeTargetEl=i}},(0,p.h)("slot",{key:"147a9d2069dbf737f6fc64787823d6d5af5aa653",name:"time-target"},d),"md"===t&&(0,p.h)("ion-ripple-effect",{key:"70a5e25b75ed90ac6bba003468435f67aa9d8f0a"})))}},{key:"el",get:function(){return(0,p.g)(this)}}]);var o}();V.style={ios:":host{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}:host button{border-radius:8px;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;margin-top:0px;margin-bottom:0px;position:relative;-webkit-transition:150ms color ease-in-out;transition:150ms color ease-in-out;border:none;background:var(--ion-color-step-300, var(--ion-background-color-step-300, #edeef0));color:var(--ion-text-color, #000);font-family:inherit;font-size:1rem;cursor:pointer;overflow:hidden;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host(.time-active) #time-button,:host(.date-active) #date-button{color:var(--ion-color-base)}:host(.datetime-button-disabled){pointer-events:none}:host(.datetime-button-disabled) button{opacity:0.4}:host button{-webkit-padding-start:13px;padding-inline-start:13px;-webkit-padding-end:13px;padding-inline-end:13px;padding-top:7px;padding-bottom:7px}:host button.ion-activated{color:var(--ion-color-step-600, var(--ion-text-color-step-400, #666666))}",md:":host{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}:host button{border-radius:8px;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;margin-top:0px;margin-bottom:0px;position:relative;-webkit-transition:150ms color ease-in-out;transition:150ms color ease-in-out;border:none;background:var(--ion-color-step-300, var(--ion-background-color-step-300, #edeef0));color:var(--ion-text-color, #000);font-family:inherit;font-size:1rem;cursor:pointer;overflow:hidden;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host(.time-active) #time-button,:host(.date-active) #date-button{color:var(--ion-color-base)}:host(.datetime-button-disabled){pointer-events:none}:host(.datetime-button-disabled) button{opacity:0.4}:host button{-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px}"}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.