text: (this["webpackJsonpbiorhythm-calculator"]=this["webpackJsonpbiorhythm-calculator"]||[]).push([[35],{398:function(t,e,n){"use strict";n.r(e),n.d(e,"ion_select",(function(){return p})),n.d(e,"ion_select_option",(function(){return x})),n.d(e,"ion_select_popover",(function(){return j}));var i=n(2),o=n(28),r=n(29),a=n(25),s=(n(81),n(54)),l=n(419),c=function(t,e){var n;return t.forEach((function(t){for(var i=0;i<t.addedNodes.length;i++)n=d(t.addedNodes[i],e)||n})),n},d=function(t,e){if(1===t.nodeType)return(t.tagName===e.toUpperCase()?[t]:Array.from(t.querySelectorAll(e))).find((function(e){return e.value===t.value}))},p=function(){function t(t){var e=this;Object(o.o)(this,t),this.ionChange=Object(o.g)(this,"ionChange",7),this.ionCancel=Object(o.g)(this,"ionCancel",7),this.ionFocus=Object(o.g)(this,"ionFocus",7),this.ionBlur=Object(o.g)(this,"ionBlur",7),this.ionStyle=Object(o.g)(this,"ionStyle",7),this.inputId="ion-sel-"+m++,this.didInit=!1,this.isExpanded=!1,this.disabled=!1,this.cancelText="Cancel",this.okText="OK",this.name=this.inputId,this.multiple=!1,this.interface="alert",this.interfaceOptions={},this.onClick=function(t){e.setFocus(),e.open(t)},this.onFocus=function(){e.ionFocus.emit()},this.onBlur=function(){e.ionBlur.emit()}}return t.prototype.disabledChanged=function(){this.emitStyle()},t.prototype.valueChanged=function(){this.emitStyle(),this.didInit&&this.ionChange.emit({value:this.value})},t.prototype.connectedCallback=function(){return Object(i.a)(this,void 0,void 0,(function(){var t=this;return Object(i.c)(this,(function(e){return this.updateOverlayOptions(),this.emitStyle(),this.mutationO=function(t,e,n){if("undefined"!==typeof MutationObserver){var i=new MutationObserver((function(t){n(c(t,e))}));return i.observe(t,{childList:!0,subtree:!0}),i}}(this.el,"ion-select-option",(function(){return Object(i.a)(t,void 0,void 0,(function(){return Object(i.c)(this,(function(t){return this.updateOverlayOptions(),[2]}))}))})),[2]}))}))},t.prototype.disconnectedCallback=function(){this.mutationO&&(this.mutationO.disconnect(),this.mutationO=void 0)},t.prototype.componentDidLoad=function(){this.didInit=!0},t.prototype.open=function(t){return Object(i.a)(this,void 0,void 0,(function(){var e,n,o=this;return Object(i.c)(this,(function(i){switch(i.label){case 0:return this.disabled||this.isExpanded?[2,void 0]:(n=this,[4,this.createOverlay(t)]);case 1:return e=n.overlay=i.sent(),this.isExpanded=!0,e.onDidDismiss().then((function(){o.overlay=void 0,o.isExpanded=!1,o.setFocus()})),[4,e.present()];case 2:return i.sent(),[2,e]}}))}))},t.prototype.createOverlay=function(t){var e=this.interface;return"action-sheet"!==e&&"popover"!==e||!this.multiple||(console.warn('Select interface cannot be "'+e+'" with a multi-value select. Using the "alert" interface instead.'),e="alert"),"popover"!==e||t||(console.warn('Select interface cannot be a "popover" without passing an event. Using the "alert" interface instead.'),e="alert"),"popover"===e?this.openPopover(t):"action-sheet"===e?this.openActionSheet():this.openAlert()},t.prototype.updateOverlayOptions=function(){var t=this.overlay;if(t){var e=this.childOpts,n=this.value;switch(this.interface){case"action-sheet":t.buttons=this.createActionSheetButtons(e,n);break;case"popover":var i=t.querySelector("ion-select-popover");i&&(i.options=this.createPopoverOptions(e,n));break;case"alert":var o=this.multiple?"checkbox":"radio";t.inputs=this.createAlertInputs(e,o,n)}}},t.prototype.createActionSheetButtons=function(t,e){var n=this,i=t.map((function(t){var i=h(t),o=Array.from(t.classList).filter((function(t){return"hydrated"!==t})).join(" "),r=y+" "+o;return{role:u(i,e,n.compareWith)?"selected":"",text:t.textContent,cssClass:r,handler:function(){n.value=i}}}));return i.push({text:this.cancelText,role:"cancel",handler:function(){n.ionCancel.emit()}}),i},t.prototype.createAlertInputs=function(t,e,n){var i=this;return t.map((function(t){var o=h(t),r=Array.from(t.classList).filter((function(t){return"hydrated"!==t})).join(" ");return{type:e,cssClass:y+" "+r,label:t.textContent||"",value:o,checked:u(o,n,i.compareWith),disabled:t.disabled}}))},t.prototype.createPopoverOptions=function(t,e){var n=this;return t.map((function(t){var i=h(t),o=Array.from(t.classList).filter((function(t){return"hydrated"!==t})).join(" "),r=y+" "+o;return{text:t.textContent||"",cssClass:r,value:i,checked:u(i,e,n.compareWith),disabled:t.disabled,handler:function(){n.value=i,n.close()}}}))},t.prototype.openPopover=function(t){return Object(i.a)(this,void 0,void 0,(function(){var e,n,o,a;return Object(i.c)(this,(function(i){return e=this.interfaceOptions,n=Object(r.b)(this),o=this.value,a=Object.assign(Object.assign({mode:n},e),{component:"ion-select-popover",cssClass:["select-popover",e.cssClass],event:t,componentProps:{header:e.header,subHeader:e.subHeader,message:e.message,value:o,options:this.createPopoverOptions(this.childOpts,o)}}),[2,s.d.create(a)]}))}))},t.prototype.openActionSheet=function(){return Object(i.a)(this,void 0,void 0,(function(){var t,e,n;return Object(i.c)(this,(function(i){return t=Object(r.b)(this),e=this.interfaceOptions,n=Object.assign(Object.assign({mode:t},e),{buttons:this.createActionSheetButtons(this.childOpts,this.value),cssClass:["select-action-sheet",e.cssClass]}),[2,s.c.create(n)]}))}))},t.prototype.openAlert=function(){return Object(i.a)(this,void 0,void 0,(function(){var t,e,n,o,a,l,c=this;return Object(i.c)(this,(function(i){return t=this.getLabel(),e=t?t.textContent:null,n=this.interfaceOptions,o=this.multiple?"checkbox":"radio",a=Object(r.b)(this),l=Object.assign(Object.assign({mode:a},n),{header:n.header?n.header:e,inputs:this.createAlertInputs(this.childOpts,o,this.value),buttons:[{text:this.cancelText,role:"cancel",handler:function(){c.ionCancel.emit()}},{text:this.okText,handler:function(t){c.value=t}}],cssClass:["select-alert",n.cssClass,this.multiple?"multiple-select-alert":"single-select-alert"]}),[2,s.b.create(l)]}))}))},t.prototype.close=function(){return this.overlay?this.overlay.dismiss():Promise.resolve(!1)},t.prototype.getLabel=function(){return Object(a.h)(this.el)},t.prototype.hasValue=function(){return""!==this.getText()},Object.defineProperty(t.prototype,"childOpts",{get:function(){return Array.from(this.el.querySelectorAll("ion-select-option"))},enumerable:!1,configurable:!0}),t.prototype.getText=function(){var t=this.selectedText;return null!=t&&""!==t?t:v(this.childOpts,this.value,this.compareWith)},t.prototype.setFocus=function(){this.focusEl&&this.focusEl.focus()},t.prototype.emitStyle=function(){this.ionStyle.emit({interactive:!0,select:!0,"has-placeholder":null!=this.placeholder,"has-value":this.hasValue(),"interactive-disabled":this.disabled,"select-disabled":this.disabled})},t.prototype.render=function(){var t,e=this,n=this,i=n.disabled,s=n.el,c=n.inputId,d=n.isExpanded,p=n.name,u=n.placeholder,h=n.value,b=Object(r.b)(this),v=Object(a.d)(s,c),g=v.labelText,m=v.labelId;Object(a.e)(!0,s,p,f(h),i);var y=!1,x=this.getText();""===x&&null!=u&&(x=u,y=!0);var O={"select-text":!0,"select-placeholder":y},j=y?"placeholder":"text",w=void 0!==g?""!==x?x+", "+g:g:x;return Object(o.j)(o.c,{onClick:this.onClick,role:"button","aria-haspopup":"listbox","aria-disabled":i?"true":null,"aria-label":w,class:(t={},t[b]=!0,t["in-item"]=Object(l.c)("ion-item",s),t["select-disabled"]=i,t["select-expanded"]=d,t)},Object(o.j)("div",{"aria-hidden":"true",class:O,part:j},x),Object(o.j)("div",{class:"select-icon",role:"presentation",part:"icon"},Object(o.j)("div",{class:"select-icon-inner"})),Object(o.j)("label",{id:m},w),Object(o.j)("button",{type:"button",disabled:i,id:c,"aria-labelledby":m,"aria-haspopup":"listbox","aria-expanded":""+d,onFocus:this.onFocus,onBlur:this.onBlur,ref:function(t){return e.focusEl=t}}))},Object.defineProperty(t.prototype,"el",{get:function(){return Object(o.k)(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"watchers",{get:function(){return{disabled:["disabledChanged"],placeholder:["disabledChanged"],value:["valueChanged"]}},enumerable:!1,configurable:!0}),t}(),u=function(t,e,n){return void 0!==t&&(Array.isArray(t)?t.some((function(t){return b(t,e,n)})):b(t,e,n))},h=function(t){var e=t.value;return void 0===e?t.textContent||"":e},f=function(t){if(null!=t)return Array.isArray(t)?t.join(","):t.toString()},b=function(t,e,n){return"function"===typeof n?n(t,e):"string"===typeof n?t[n]===e[n]:Array.isArray(e)?e.includes(t):t===e},v=function(t,e,n){return void 0===e?"":Array.isArray(e)?e.map((function(e){return g(t,e,n)})).filter((function(t){return null!==t})).join(", "):g(t,e,n)||""},g=function(t,e,n){var i=t.find((function(t){return b(h(t),e,n)}));return i?i.textContent:null},m=0,y="select-interface-option";p.style={ios:":host{--placeholder-color:currentColor;--placeholder-opacity:0.33;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;-ms-flex-align:center;align-items:center;font-family:var(--ion-font-family, inherit);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;max-width:45%}:host(.select-disabled){opacity:0.4;pointer-events:none}:host(.ion-focused) button{border:2px solid #5e9ed6}.select-placeholder{color:var(--placeholder-color);opacity:var(--placeholder-opacity)}label{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;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}button{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.select-icon{position:relative;opacity:0.33}.select-text{-ms-flex:1;flex:1;min-width:16px;font-size:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.select-icon-inner{left:5px;top:50%;margin-top:-2px;position:absolute;width:0;height:0;border-top:5px solid;border-right:5px solid transparent;border-left:5px solid transparent;color:currentColor;pointer-events:none}[dir=rtl] .select-icon-inner,:host-context([dir=rtl]) .select-icon-inner{left:unset;right:unset;right:5px}:host{--padding-top:10px;--padding-end:10px;--padding-bottom:10px;--padding-start:20px}.select-icon{width:12px;height:18px}",md:":host{--placeholder-color:currentColor;--placeholder-opacity:0.33;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;-ms-flex-align:center;align-items:center;font-family:var(--ion-font-family, inherit);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;max-width:45%}:host(.select-disabled){opacity:0.4;pointer-events:none}:host(.ion-focused) button{border:2px solid #5e9ed6}.select-placeholder{color:var(--placeholder-color);opacity:var(--placeholder-opacity)}label{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;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}[dir=rtl] label,:host-context([dir=rtl]) label{left:unset;right:unset;right:0}label::-moz-focus-inner{border:0}button{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.select-icon{position:relative;opacity:0.33}.select-text{-ms-flex:1;flex:1;min-width:16px;font-size:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.select-icon-inner{left:5px;top:50%;margin-top:-2px;position:absolute;width:0;height:0;border-top:5px solid;border-right:5px solid transparent;border-left:5px solid transparent;color:currentColor;pointer-events:none}[dir=rtl] .select-icon-inner,:host-context([dir=rtl]) .select-icon-inner{left:unset;right:unset;right:5px}:host{--padding-top:10px;--padding-end:0;--padding-bottom:10px;--padding-start:16px}.select-icon{width:19px;height:19px}:host-context(.item-label-floating) .select-icon{-webkit-transform:translate3d(0,  -9px,  0);transform:translate3d(0,  -9px,  0)}"};var x=function(){function t(t){Object(o.o)(this,t),this.inputId="ion-selopt-"+O++,this.disabled=!1}return t.prototype.render=function(){return Object(o.j)(o.c,{role:"option",id:this.inputId,class:Object(r.b)(this)})},Object.defineProperty(t.prototype,"el",{get:function(){return Object(o.k)(this)},enumerable:!1,configurable:!0}),t}(),O=0;x.style=":host{display:none}";var j=function(){function t(t){Object(o.o)(this,t),this.options=[]}return t.prototype.onSelect=function(t){var e=this.options.find((function(e){return e.value===t.target.value}));e&&Object(s.n)(e.handler)},t.prototype.render=function(){var t=this.options.find((function(t){return t.checked})),e=t?t.value:void 0;return Object(o.j)(o.c,{class:Object(r.b)(this)},Object(o.j)("ion-list",null,void 0!==this.header&&Object(o.j)("ion-list-header",null,this.header),(void 0!==this.subHeader||void 0!==this.message)&&Object(o.j)("ion-item",null,Object(o.j)("ion-label",{class:"ion-text-wrap"},void 0!==this.subHeader&&Object(o.j)("h3",null,this.subHeader),void 0!==this.message&&Object(o.j)("p",null,this.message))),Object(o.j)("ion-radio-group",{value:e},this.options.map((function(t){return Object(o.j)("ion-item",{class:Object(l.b)(t.cssClass)},Object(o.j)("ion-label",null,t.text),Object(o.j)("ion-radio",{value:t.value,disabled:t.disabled}))})))))},t}();j.style=".sc-ion-select-popover-h ion-list.sc-ion-select-popover{margin-left:0;margin-right:0;margin-top:-1px;margin-bottom:-1px}.sc-ion-select-popover-h ion-list-header.sc-ion-select-popover,.sc-ion-select-popover-h ion-label.sc-ion-select-popover{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}"},419:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return l}));var i=n(2),o=function(t,e){return null!==e.closest(t)},r=function(t,e){var n;return"string"===typeof t&&t.length>0?Object.assign(((n={"ion-color":!0})["ion-color-"+t]=!0,n),e):e},a=function(t){var e={};return function(t){return void 0!==t?(Array.isArray(t)?t:t.split(" ")).filter((function(t){return null!=t})).map((function(t){return t.trim()})).filter((function(t){return""!==t})):[]}(t).forEach((function(t){return e[t]=!0})),e},s=/^[a-z][a-z0-9+\-.]*:/,l=function(t,e,n,o){return Object(i.a)(void 0,void 0,void 0,(function(){var r;return Object(i.c)(this,(function(i){return null!=t&&"#"!==t[0]&&!s.test(t)&&(r=document.querySelector("ion-router"))?(null!=e&&e.preventDefault(),[2,r.push(t,n,o)]):[2,!1]}))}))}}}]);
  //# sourceMappingURL=35.05c0ced9.chunk.js.map