1"use strict";(self.webpackChunklogin=self.webpackChunklogin||[]).push([[8827],{1837(C,u,e){e.d(u,{E:()=>o,a:()=>m,b:()=>n,h:()=>_,i:()=>f});const o={DEV:"DEV",LOCAL:"LOCAL",MOCK:"MOCK",PREPROD:"PREPROD",PROD:"PROD",RTEST:"RTEST",TEST:"TEST"};function n(){return[o.MOCK,o.DEV,o.TEST,o.LOCAL].includes(function a(){if(!1===_())return function E(){return f()?(console.warn("getEnvironment is callend in server context where window is undefined thus defaulting to PROD "),o.PROD):function p(c){return c.includes("localhost")||c.includes("127.0.0.1")?o.LOCAL:c.includes("dev")||c.includes("test")?o.TEST:o.PROD}(window.location.hostname)}();if(f())return console.warn("ENV not set, defaulting to prod"),o.PROD;switch(window.ENV){case o.MOCK:return o.MOCK;case o.LOCAL:return o.LOCAL;case o.DEV:return o.DEV;case o.TEST:return o.TEST;case o.RTEST:return o.RTEST;case o.PREPROD:return o.PREPROD;case o.PROD:return o.PROD;default:return console.warn("ENV not set, defaulting to prod"),o.PROD}}())}function _(){return m()&&(void 0!==window.SEGMENT||void 0!==window.COUNTRY)}function m(){return typeof window<"u"}function f(){return typeof window>"u"}},8827(C,u,e){e.r(u),e.d(u,{nwcc_sheet_modal:()=>T});var o=e(467),n=e(9842),a=e(8381),_=e(348),m=e(4911),E=(e(5250),e(2012)),p=e(6863),c=e(3128),A=(e(668),e(5637),e(7296),e(1082),e(2723),e(2481),e(8892),e(681)),M=(e(4634),e(5617),e(4630),e(8576),e(3856),e(7556),e(222),e(5881),e(7346),e(7736),e(2996),e(4751),e(7277),e(2745),e(7599),e(9873),e(7332),e(6399),e(1697),e(5882),e(2610)),D=e(2926),P=e(1837);e(8241);const T=class{constructor(i){(0,n.A)(this,"locale",void 0),(0,n.A)(this,"heading",void 0),(0,n.A)(this,"closeActionButtonLabel",void 0),(0,n.A)(this,"closeActionButtonAriaLabel",void 0),(0,n.A)(this,"customActionButtonLabel",void 0),(0,n.A)(this,"customActionButtonAriaLabel",void 0),(0,n.A)(this,"open",!1),(0,n.A)(this,"fitModalToContent",!1),(0,n.A)(this,"fullWidth",!1),(0,n.A)(this,"closeOnClickOutside",!0),(0,n.A)(this,"fullHeightOnMobile",!1),(0,n.A)(this,"childComponentSuffix",""),(0,n.A)(this,"attachToBodyTop",!1),(0,n.A)(this,"focusHeadingOnOpen",!1),(0,n.A)(this,"isOpenInternal",!1),(0,n.A)(this,"isFullyOpen",!1),(0,n.A)(this,"desktop",!1),(0,n.A)(this,"nwccSheetStateChange",void 0),(0,n.A)(this,"nwccCloseActionButtonClick",void 0),(0,n.A)(this,"nwccCustomActionButtonClick",void 0),(0,n.A)(this,"NwccButton2",""),(0,n.A)(this,"NwccIconButton",""),(0,n.A)(this,"draggableElm",void 0),(0,n.A)(this,"wrapper",void 0),(0,n.A)(this,"modalRoot",void 0),(0,n.A)(this,"innerElm",void 0),(0,n.A)(this,"openerElement",void 0),(0,n.A)(this,"headingElement",void 0),(0,n.A)(this,"touchStartY",null),(0,n.A)(this,"closedOnTouch",!1),(0,n.A)(this,"isTransitioning",!1),(0,n.A)(this,"activeTouchId",null),(0,n.A)(this,"swipeThreshold",24),(0,n.A)(this,"boundResizeHandler",void 0),(0,n.A)(this,"mobilyOnlyModalTag","NWCC-MOBILE-ONLY-MODAL"),(0,n.A)(this,"focusFirstElement",(0,m.d)(()=>{var t;this.focusHeadingOnOpen?null===(t=this.headingElement)||void 0===t||t.focus():this.modalRoot&&c.F.focus(this.modalRoot)},10)),(0,n.A)(this,"onTransitionEnd",()=>{var t;this.open?(this.focusFirstElement(),this.isFullyOpen=!0):null===(t=this.openerElement)||void 0===t||t.focus(),this.isTransitioning=!1}),(0,n.A)(this,"onHeadingTouchStart",t=>{if(!this.isOpenInternal||this.desktop)return;const s=t.touches[0];s&&(this.activeTouchId=s.identifier,this.touchStartY=s.clientY,this.closedOnTouch=!1)}),(0,n.A)(this,"onHeadingTouchMove",t=>{if(null==this.touchStartY||this.closedOnTouch||this.desktop)return;const s=Array.from(t.touches).find(r=>r.identifier===this.activeTouchId);s&&s.clientY-this.touchStartY>this.swipeThreshold&&(this.closedOnTouch=!0,this.toggleSheet(!1))}),(0,n.A)(this,"onHeadingTouchEnd",()=>{this.desktop||(this.touchStartY=null,this.closedOnTouch=!1,this.activeTouchId=null)}),(0,n.A)(this,"_closeOnOutsideEvent",t=>{if(!this.open||!this.isFullyOpen||!this.closeOnClickOutside)return;const s=("function"==typeof t.composedPath?t.composedPath():[])||[];if(s.some(h=>h instanceof HTMLElement&&h.tagName===this.mobilyOnlyModalTag))return;let r=!1;if(!this.desktop&&this.innerElm){var v;const h=s.some(l=>{var d;return l instanceof HTMLElement&&(l===this.innerElm||(null===(d=this.innerElm)||void 0===d?void 0:d.contains(l)))}),O=t.target instanceof Node&&(null===(v=this.innerElm)||void 0===v?void 0:v.contains(t.target));r=h||O}else if(this.desktop&&this.draggableElm){var g;const h=s.some(l=>{var d;return l instanceof HTMLElement&&(l===this.draggableElm||(null===(d=this.draggableElm)||void 0===d?void 0:d.contains(l)))}),O=t.target instanceof Node&&(null===(g=this.draggableElm)||void 0===g?void 0:g.contains(t.target));r=h||O}r||this.toggleSheet(!1)}),(0,a.r)(this,i),this.nwccSheetStateChange=(0,a.c)(this,"nwccSheetStateChange",7),this.nwccCloseA
1ctionButtonClick=(0,a.c)(this,"nwccCloseActionButtonClick",7),this.nwccCustomActionButtonClick=(0,a.c)(this,"nwccCustomActionButtonClick",7)}get el(){return(0,a.a)(this)}validateLocale(i){(0,p.v)({value:i,name:"locale",elementRef:this.el})}onChildComponentSuffixChange(){this.updateChildComponentSuffix()}onKeyDown(i){this.open&&("Tab"===i.key&&this.draggableElm?c.F.catch(i,this.draggableElm,this.getDeepActiveElement()):"Escape"===i.key&&this.toggleSheet(!1))}componentWillLoad(){this.updateChildComponentSuffix(),this.isOpenInternal=this.open,this.desktop=this.isDesktop(),(0,P.b)()&&((this.customActionButtonLabel||this.customActionButtonAriaLabel)&&console.warn("[nwcc-sheet-modal] `customActionButton*` props are deprecated and will be removed in 22.5.2026. Use secondary footer action instead."),this.fitModalToContent&&console.warn("[nwcc-sheet-modal] `fitModalToContent` prop is deprecated and will be removed in 22.5.2026. According to latest design, modal always fit to content on mobile."))}componentDidLoad(){if(this.validateLocale(this.locale),!this.open){var i;const t=null!==(i=this.getSheetSize())&&void 0!==i?i:0;this.setTranslate(t)}this.attachToBodyTop||this.onModalLoaded()}updateChildComponentSuffix(){this.NwccButton2="nwcc-button2".concat(this.childComponentSuffix),this.NwccIconButton="nwcc-icon-button".concat(this.childComponentSuffix)}onModalLoaded(){this.handleSheetStateChange(this.open),this.boundResizeHandler=this.setViewMode(),window.addEventListener("resize",this.boundResizeHandler)}setTranslate(i){var t;null===(t=this.draggableElm)||void 0===t||t.style.setProperty("transform","translate3d(".concat(this.desktop?i:0,"px, ").concat(this.desktop?0:i,"px, 0px)"))}setViewMode(){return(0,E.t)(()=>this.desktop=this.isDesktop(),150)}isDesktop(){return window.matchMedia(D.M.DesktopS).matches}getSheetSize(){if(this.draggableElm)return this.isDesktop()?this.draggableElm.offsetWidth:this.draggableElm.offsetHeight}isOpen(){var i=this;return(0,o.A)(function*(){return i.isOpenInternal})()}handleSheetStateChange(i){var t;this.isTransitioning=!0,this.toggleSheet(i);const s=null!==(t=this.draggableElm)&&void 0!==t?t:this.modalRoot;null==s||s.addEventListener("transitionend",this.onTransitionEnd,{once:!0}),i||(this.touchStartY=null,this.closedOnTouch=!1,this.activeTouchId=null),i&&requestAnimationFrame(()=>{this.isFullyOpen||(this.isFullyOpen=!0,this.isTransitioning=!1)})}handlePointerDownOutside(i){this._closeOnOutsideEvent(i)}handleClickOutside(i){this._closeOnOutsideEvent(i)}toggleSheet(i=!0){var t;if(this.isTransitioning&&this.isOpenInternal===i)return;const s=document.querySelector("body");i?(null==s||s.classList.add("ncc-sheet-modal--no-scroll"),this.openerElement=this.getDeepActiveElement()):(null==s||s.classList.remove("ncc-sheet-modal--no-scroll"),this.isFullyOpen=!1),this.isOpenInternal=i,this.setTranslate(i?0:null!==(t=this.getSheetSize())&&void 0!==t?t:0),this.nwccSheetStateChange.emit({isOpen:i})}closeButtonClickHandler(){this.closeActionButtonLabel||(this.open=!1),this.nwccCloseActionButtonClick.emit()}getDeepActiveElement(){let i=document.activeElement;for(;null!==(t=i)&&void 0!==t&&t.shadowRoot;){var t;i=i.shadowRoot.activeElement}return i}disconnectedCallback(){var i,t,s;this.boundResizeHandler&&window.removeEventListener("resize",this.boundResizeHandler),null===(i=document.querySelector("body"))||void 0===i||i.classList.remove("ncc-sheet-modal--no-scroll"),null===(t=this.modalRoot)||void 0===t||t.removeEventListener("transitionend",this.onTransitionEnd),this.attachToBodyTop&&(this.open=!1),null===(s=this.openerElement)||void 0===s||s.focus()}render(){return this.attachToBodyTop?(0,a.h)("nwcc-portal",{onNwccPortalLoaded:()=>this.onModalLoaded()},this.renderSheetModal()):this.renderSheetModal()}renderSheetModal(){var i;return(0,a.h)("div",{ref:t=>this.modalRoot=t,class:{"ncc-sheet-modal":!0,"ncc-sheet-modal__open":this.isOpenInternal,"ncc-sheet-modal--desktop":this.desktop,"ncc-sheet-modal--full-width":this.fullWidth}},(0,a.h)("div",{ref:t=>this.wrapper=t,class:{"ncc-sheet-modal__wrapper":!0}},(0,a.h)("div",{ref:t=>this.draggableElm=t,class:"ncc-sheet-modal__content ncc-sheet-modal__animate",role:"dialog","aria-modal":"true","aria-label":this.heading},(0,a.h)("div",{ref:t=>this.innerElm=t,class:{"ncc-sheet-modal__inner":!0,"ncc-sheet-modal--fit-to-content":this.fitModalToContent,"ncc-s
1heet-modal--full-height":this.fullHeightOnMobile}},(0,a.h)("div",{class:"ncc-sheet-modal__header",...this.desktop?{}:{onTouchStart:this.onHeadingTouchStart,onTouchMove:this.onHeadingTouchMove,onTouchEnd:this.onHeadingTouchEnd,onTouchCancel:this.onHeadingTouchEnd}},(0,a.h)("div",{class:"ncc-sheet-modal__close-action"},(0,a.h)(this.NwccIconButton,{icon:M.h,class:"ncc-svg-container ncc-svg-container--medium ncc-svg-container--current-color","data-testid":"modal__close",iconButtonAriaLabel:null!==(i=this.closeActionButtonAriaLabel)&&void 0!==i?i:(0,_.t)(_.K.ndw_ui_assistiveText_modal_close,this.locale),onClick:()=>this.closeButtonClickHandler(),"child-component-suffix":this.childComponentSuffix})),(0,a.h)("div",{class:"ncc-sheet-modal__heading"},(0,a.h)("h1",{id:"ncc-sheet-modal-title",class:"ncc-assistive-content-focus",tabindex:"-1",ref:t=>this.headingElement=t},this.heading),this.customActionButtonLabel&&(0,a.h)("div",{class:"ncc-sheet-modal__custom-action"},(0,a.h)(this.NwccButton2,{locale:this.locale,variation:A.N.TERTIARYCOMPACT,onClick:()=>this.nwccCustomActionButtonClick.emit(),hostAriaLabel:this.customActionButtonAriaLabel},this.customActionButtonLabel)))),(0,a.h)("div",{class:"ncc-sheet-modal__body"},(0,a.h)("slot",{name:"body"})),(0,a.h)("footer",{class:"ncc-sheet-modal__footer"},(0,a.h)("slot",{name:"footer"}))))))}static get watchers(){return{locale:[{validateLocale:0}],childComponentSuffix:[{onChildComponentSuffixChange:0}],open:[{handleSheetStateChange:0}]}}};T.style='.ncc-sheet-modal{position:fixed;top:0;left:0;bottom:0;right:0;z-index:-1;overflow:hidden;background-color:transparent;transition:all 400ms cubic-bezier(0.075, 0.82, 0.165, 1);visibility:hidden;padding-top:var(--ncc-safe-area-inset-top, 0)}.ncc-sheet-modal__wrapper{height:100%;width:100%;position:relative}.ncc-sheet-modal__content{display:flex;justify-content:flex-end;flex-direction:column;height:100%;user-select:none;position:relative;border-radius:16px 16px 0 0;will-change:transform;backface-visibility:hidden;transform:translate3d(0, 100%, 0);}.ncc-sheet-modal__inner{display:flex;flex-direction:column;background-color:rgb(255, 255, 255);border-radius:inherit;padding-bottom:var(--ncc-safe-area-inset-bottom, 0);padding-left:var(--ncc-safe-area-inset-left, 0);padding-right:var(--ncc-safe-area-inset-right, 0);width:100%;max-width:792px;margin:auto 0 0;height:auto;max-height:100%;position:relative;left:50%;transform:translateX(-50%);bottom:0}@media screen and (min-width: 75em){.ncc-sheet-modal__inner{height:calc(100% - var(--ncc-safe-area-inset-bottom, 0))}}.ncc-sheet-modal__inner.ncc-sheet-modal--full-height{height:calc(100% - var(--ncc-safe-area-inset-bottom, 0))}.ncc-sheet-modal__inner.ncc-sheet-modal--fit-to-content{height:auto}@media (min-width: 481px){.ncc-sheet-modal__inner.ncc-sheet-modal--fit-to-content{height:100%}}
1.ncc-enforce-dark-mode .ncc-sheet-modal__inner{background-color:rgb(33, 33, 33)}@media (prefers-color-scheme: dark){.ncc-enable-dark-mode .ncc-sheet-modal__inner{background-color:rgb(33, 33, 33)}}.ncc-sheet-modal__header{display:flex;align-items:center;padding:16px;touch-action:pan-y;gap:8px}.ncc-sheet-modal__header ::before{content:"";display:block;width:48px;height:4px;background-color:rgb(139, 138, 141);border-radius:8px;pointer-events:none;position:absolute;left:50%;top:4px;transform:translateX(-50%)}@media (min-width: 75em){.ncc-sheet-modal__header ::before{content:none}.ncc-sheet-modal__header{padding:12px 24px}}.ncc-sheet-modal__body{padding:16px;height:100%;overflow-y:auto}@media (min-width: 75em){.ncc-sheet-modal__body{padding:12px 24px}}@supports (padding: max(0px)){.ncc-sheet-modal__body{padding-bottom:16px}}.ncc-sheet-modal__footer{padding:16px}@media (min-width: 75em){.ncc-sheet-modal__footer{padding:12px 24px}}.ncc-sheet-modal__close-action{display:flex;justify-content:right;align-items:center}.ncc-sheet-modal__heading{text-align:center;margin:0;display:flex;width:100%}.ncc-sheet-modal__heading h1{font-size:1.125rem;font-weight:500;display:inline;flex:1;padding-right:40px}
1.ncc-enforce-dark-mode .ncc-sheet-modal__heading{color:rgb(255, 255, 255)}@media (prefers-color-scheme: dark){.ncc-enable-dark-mode .ncc-sheet-modal__heading{color:rgb(255, 255, 255)}}.ncc-sheet-modal__custom-action{display:flex;justify-content:left;align-items:center}@media (max-width: 48em){.ncc-sheet-modal__custom-action{justify-content:right}}.ncc-sheet-modal__open{background-color:rgba(0, 0, 0, 0.5);z-index:13000;visibility:initial;pointer-events:auto;}.ncc-sheet-modal__open .ncc-sheet-modal__content{transform:translate3d(0, 0, 0)}.ncc-sheet-modal__hide{display:none}.ncc-sheet-modal__invisible{visibility:hidden}.ncc-sheet-modal__animate{transition:transform 400ms cubic-bezier(0.075, 0.82, 0.165, 1)}.ncc-sheet-modal--desktop .ncc-sheet-modal__wrapper{display:flex;justify-content:flex-end}.ncc-sheet-modal--desktop .ncc-sheet-modal__content{width:480px;height:unset;margin:24px}.ncc-sheet-modal--desktop .ncc-sheet-modal__inner{border-radius:16px}.ncc-sheet-modal--full-width .ncc-sheet-modal__body{padding-left:0;padding-right:0}.ncc-sheet-modal--no-scroll{overflow:hidden}'}}]);
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.