1"use strict";(self.webpackChunklogin=self.webpackChunklogin||[]).push([[5919],{5919(p,l,t){t.r(l),t.d(l,{nwcc_select_input:()=>s});var e=t(1409),i=t(2723),r=t(2909),o=t(6889),a=t(7754);t(5250);const s=class{constructor(c){(0,e.r)(this,c),this.nwccBlur=(0,e.c)(this,"nwccBlur",3),this.nwccValueChange=(0,e.c)(this,"nwccValueChange",3)}label="";mobileSelect=!1;mobileActionLabel="";locale;value=void 0;options=[];name="";note="";error="";disabled=!1;hint="";required=!0;announceError=!0;nwccBlur;nwccValueChange;modalState;internalValue;selectDescribedBy;onValueChange(c){this.internalValue=c}onHintChange(){this.updateSelectDescribedBy()}componentDidLoad(){this.internalValue=this.value,this.updateSelectDescribedBy()}updateSelectDescribedBy(){this.selectDescribedBy=this.hint?`${this.uniqueId}-hint`:void 0}onChange(c){const n=this.options.find(u=>u.value===c);this.internalValue=n?n.value:void 0,this.nwccValueChange.emit({value:n?n.value:void 0})}uniqueId=(0,a.g)();get selectedOptionLabel(){return this.options?.find(c=>c.value===this.internalValue)?.label||this.mobileActionLabel}connectedCallback(){this.modalState=this.mobileSelect?i.M.DISABLED:i.M.CLOSED_ON_MOBILE}render(){return(0,e.h)(e.H,{key:"5fb783d9b1cb72a76f5596952a23fae610c528e2"},!this.mobileSelect&&(0,e.h)("nwcc-list-item",{key:"edc7e88d08520d083df08d150c1dac3596e4edbb",airy:!0,chevron:!this.disabled,interactive:!this.disabled,interactiveRole:"button",class:"ncc-select-action-item",secondaryLabelFirst:!0,secondaryLabel:this.label,firstColumnAssistiveLabel:this.selectedOptionLabel,secondColumnAssistiveLabel:this.label,onNwccListItemClick:()=>this.modalState=i.M.OPEN_ON_MOBILE},(0,e.h)("span",{key:"5a0cd211c935df50545ccac5a1c362c0ef463a87",slot:"primary-label",class:{"ncc-select-action-item--error":!!this.error}},this.selectedOptionLabel)),!this.mobileSelect&&(0,e.h)("nwcc-portal",{key:"e10c8116b9cb946e83214dbc9d4a972bde997767"},(0,e.h)("nwcc-mobile-only-modal",{key:"c3244651fc870252ca3672ba677cd4b401225af7",heading:this.label,locale:this.locale,inert:this.modalState!==i.M.OPEN_ON_MOBILE,modalState:this.modalState,onNwccModalClose:()=>this.modalState=i.M.CLOSED_ON_MOBILE,"data-origin":"nwcc-select-input"},(0,e.h)("div",{key:"a2dbe799a50f80df3aa98a3b9b3a7a4d73524fa7"},this.options?.map(c=>(0,e.h)("nwcc-radio-input-item",{tabindex:c.disabled?"-1":"0",disabled:!!c.disabled,checked:c.value===this.internalValue,role:"radio","aria-checked":`${c.value===this.internalValue}`,onClick:()=>{c.disabled||this.onChange(c.value)},onKeyUp:n=>{("Space"===n.code||" "===n.key)&&!c.disabled&&this.onChange(c.value)}},c.label,c.secondaryLabel&&(0,e.h)("span",{slot:"secondary-label"},c.secondaryLabel)))),this.modalState===i.M.OPEN_ON_MOBILE&&this.error&&(0,e.h)("nwcc-input-error",{key:"6011d717f9b8979fa5076d7f27602b43665259e0",error:this.error,adaptive:!0,announceError:this.announceError}))),(0,e.h)("div",{key:"b1c5f932737fe6d4b5ae272ad71639bf067ab755",class:"ncc-select-input-wrapper"},(0,e.h)("label",{key:"576f8241f99942d0858f3b4b6ac6d9eda2038149",class:{"ncc-select-input":!0,"ncc-select-input--error":null!=this.error&&""!=this.error,"ncc-select-input--disabled":this.disabled}},(0,e.h)("div",{key:"1bc3956d29e812c209f508f1325f9146af500574",class:"ncc-select-input__header"},(0,e.h)("div",{key:"3834768490380ad9d4823e69a9402ab417fa860f",class:"ncc-select-input__label"},this.label),(this.note||!this.required)&&(0,e.h)("div",{key:"5a340c1bca7a5b820901c4c4490f8c4d82f06952",class:{"ncc-select-input__note":!0,"ncc-select-input__note--capitalize":!this.required}},this.required?this.note:(0,r.t)(r.K.ndw_ui_general_optional,this.locale))),(0,e.h)("div",{key:"10f81ff415cf67e373394ea05f9dd984f1137671",class:"ncc-select-input__field-container"},(0,e.h)("select",{key:"72efad2122ffbd8556bbc372b6e7cf61ebba3072",onBlur:()=>this.nwccBlur.emit({value:this.internalValue}),onInput:c=>this.onChange(c.target.value),"aria-invalid":this.error?"true":void 0,"aria-errormessage":this.error&&`${this.uniqueId}-error`,"aria-describedby":this.selectDescribedBy,"aria-required":this.required?"true":"false",class:"ncc-select-input__field",name:this.name,disabled:this.disabled},this.options?.map(c=>(0,e.h)("option",{value:c.value,disabled:c.disabled,"aria-label":c.ariaLabel,selected:c.value===this.internalValue},c.label))),(0,e.h)("div",{key:"50d5d0292e5ef3945add1998dce71e3c649bdcd3",class:"ncc-select-input__icon"},(0,e.h)("nwcc-icon2",{key:"0b635c801ae84d2ded8346f35831257a790cf870",icon:o.e})))),(this.error||this.hint)&&(0,e.h)("div",{key:"9b1376dfd85ab7d635f29b4a48b246fe930828b9",class:"ncc-select-input__footer"},(0,e.h)("div",{key:"c1f2f9fee43410e7d869fb0aa246d6bc61d13f8d",class:{"ncc-space-top-s":this.mobileSelect}},this.error&&(0,e.h)("nwcc-input-error",{key:"e9b55ce8918d7831fc4bedff7380931ec268cc8e",error:this.error,errorId:`${this.uniqueId}-error`,adaptive:!this.mobileSelect,announceError:this.announceError})),this.hint&&(0,e.h)("div",{key:"0d4b03278d25c009e96a69efb417090b04e02c21",id:`${this.uniqueId}-hint`,class:{"ncc-select-input__hint":!0,"ncc-select-input__hint--mobile-select":this.mobileSelect}},this.hint))))}static get watchers(){return{value:[{onValueChange:0}
1],hint:[{onHintChange:0}]}}};s.style="nwcc-select-input{display:block;--input-text-color:rgb(0, 0, 0);--input-text-color-disabled:rgb(201, 199, 199);--input-text-color-read-only:rgb(56, 56, 56);--input-text-color-secondary:rgb(90, 87, 92);--input-focus-color:rgb(0, 0, 160);--input-error-color:rgb(231, 4, 4);--input-success-color:rgb(13, 130, 104);--input-border-color:rgb(139, 138, 141);--input-border-color-disabled:rgb(227, 227, 227);--input-background-color:rgb(255, 255, 255);--input-background-color-disabled:rgb(241, 242, 244);--input-border-width:1px;--input-focus-border-width:2px}.ncc-enforce-dark-mode nwcc-select-input{--input-text-color:rgb(255, 255, 255);--input-text-color-disabled:rgb(90, 87, 92);--input-text-color-read-only:rgb(227, 227, 227);--input-text-color-secondary:rgb(201, 199, 199);--input-focus-color:rgb(255, 255, 255);--input-error-color:rgb(252, 97, 97);--input-success-color:rgb(64, 191, 163);--input-border-color-disabled:rgb(56, 56, 56);--input-background-color:rgb(33, 33, 33);--input-background-color-disabled:rgb(0, 0, 0)}@media (prefers-color-scheme: dark){.ncc-enable-dark-mode nwcc-select-input{--input-text-color:rgb(255, 255, 255);--input-text-color-disabled:rgb(90, 87, 92);--input-text-color-read-only:rgb(227, 227, 227);--input-text-color-secondary:rgb(201, 199, 199);--input-focus-color:rgb(255, 255, 255);--input-error-color:rgb(252, 97, 97);--input-success-color:rgb(64, 191, 163);--input-border-color-disabled:rgb(56, 56, 56);--input-background-color:rgb(33, 33, 33);--input-background-color-disabled:rgb(0, 0, 0)}}nwcc-select-input[mobile-select] .ncc-select-input-wrapper{min-height:5.375rem}@media (min-width: 75em){nwcc-select-input .ncc-select-input-wrapper{min-height:5.375rem}}nwcc-select-input .ncc-list-item.ncc-list-item--disabled .ncc-list-item__primary-label,nwcc-select-input .ncc-list-item.ncc-list-item--disabled .ncc-list-item__primary-content{color:var(--input-text-color-disabled)}nwcc-select-input .ncc-select-action-item--error{color:var(--input-error-color)}nwcc-select-input .ncc-select-input{display:block;max-width:30rem}nwcc-select-input .ncc-select-input__header{display:flex;align-items:flex-end;margin-bottom:4px;font-size:0.875rem;line-height:1.25rem}nwcc-select-input .ncc-select-input__label{flex:1;color:var(--input-text-color)}nwcc-select-input .ncc-select-input__note{margin-left:8px;color:var(--input-text-color-secondary)}nwcc-select-input .ncc-select-input__note--capitalize{text-transform:capitalize}nwcc-select-input .ncc-select-input__field-container{position:relative}nwcc-select-input .ncc-select-input__field{display:none;width:100%;color:var(--input-text-color);background-color:var(--input-background-color);border:none;box-shadow:0 0 0 var(--input-border-width) var(--input-border-color);border-radius:4px;font-size:1rem;font-family:inherit;line-height:40px;height:40px;padding:0 42px 0 12px;cursor:pointer;overflow:hidden;appearance:none;-webkit-appearance:none;-moz-appearance:none}nwcc-select-input .ncc-select-input__field:focus{outline:none;box-shadow:0 0 0 var(--input-border-width) var(--input-focus-color)}nwcc-select-input .ncc-select-input__field::-ms-expand{display:none}nwcc-select-input .ncc-select-input__field .ncc-select-input--disabled .ncc-select-input__field,nwcc-select-input .ncc-select-input__field:disabled{color:rgb(158, 158, 158);background-color:var(--input-background-color-disabled);cursor:auto}nwcc-select-input .ncc-select-input__field:disabled+.ncc-select-input__icon{color:var(--input-text-color-disabled)}nwcc-select-input .ncc-select-input__field:first-child{display:block}nwcc-select-input .ncc-select-input__hint{font-size:0.875rem;color:var(--input-text-color-secondary);margin:8px 16px}@media (min-width: 75em){nwcc-select-input .ncc-select-input__hint{margin-left:0;margin-right:0}}nwcc-select-input .ncc-select-input__hint--mobile-select{margin-left:0;margin-right:0}nwcc-select-input .ncc-select-input__icon{position:absolute;top:5px;right:5px;pointer-events:none;user-select:none;width:30px;height:30px;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:4px;color:var(--input-text-color)}nwcc-select-input .ncc-select-input.ncc-select-input--error .ncc-select-input__field{box-shadow:0 0 0 var(--input-border-width) var(--input-error-color)}nwcc-select-input .ncc-select-input.ncc-select-input--error:focus-within .ncc-select-input__field-container,nwcc-select-input .ncc-select-input.ncc-select-input--error:focus-within .ncc-select-input__field{box-shadow:0 0 0 var(--input-focus-border-width) var(--input-error-color)}nwcc-select-input .ncc-select-input:focus-within .ncc-select-input__field-container,nwcc-select-input .ncc-select-input:focus-within .ncc-select-input__field{border-radius:4px;box-shadow:0 0 0 var(--input-focus-border-width) var(--input-focus-color)}nwcc-select-input .ncc-select-input.ncc-select-input--disabled .ncc-select-input__label{color:var(--input-text-color-disabled)}nwcc-select-input .ncc-select-input:not(.ncc-select-input--error):focus-within .ncc-select-input__field-container,nwcc-select-input .ncc-select-input:not(.ncc-select-input--error):focus-within .ncc-select-input__field{box-shadow:0 0 0 var(--input-focus-border-width) var(--input-focus-color)}nwcc-select-input .ncc-select-input--disabled .ncc-select-input__field{color:var(--input-text-color-disabled);background:var(--input-background-color-disabled);box-shadow:0 0 0 var(--input-border-width) var(--input-border-color-disabled);cursor:auto}nwcc-select-input .ncc-select-input--disabled .ncc-multi-select__icon nwcc-icon2{--color:var(--input-text-color-disabled)}nwcc-select-input:not([mobile-select]) .ncc-select-input{display:none}@media (min-width: 75em){nwcc-select-input:not([mobile-select]) .ncc-select-input{display:block}}nwcc-select-input:not([mobile-select]) .ncc-select-action-item{display:block}@media (min-width: 75em){nwcc-select-input:not([mobile-select]) .ncc-select-action-item{display:none}}@media (min-width: 75em){:root:not([mobile-select]) nwcc-mobile-only-modal[data-origin=nwcc-select-input]{dis
1play:none}}"}}]);
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.