1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[6405],{7776:(e,t,o)=>{o.r(t),o.d(t,{default:()=>I});var n=o(85893),i=o(67294),r=o(86706),d=o(4894),l=o(22157),a=o(93882),s=o(32412),c=o(73342);let u="protectedRouteSignIn-modal-testId";var g=o(33526);let C=(0,r.$j)(e=>({isMobileApp:e.cms.cmsRenderInMobileApp}))(e=>{let t=i.useContext(c.q),{t:o}=t,r=e.isMobileApp?((e,t)=>{try{let o=`mobile_app_action=${t}`;if(e.includes("?"))return`${e}&${o}`;return`${e}?${o}`}catch{return e}})(window.location.origin,g.f8U):window.location.origin;return(0,n.jsx)(s.p,{"data-testid":u,title:o("global.protectedRoute.title"),description:o("global.protectedRoute.subtitle"),firstBtn:{BtnContent:o("global.protectedRoute.signIn"),dataTestId:`${u}-firstBtn`,handleClick:()=>{(0,a.Z)("ProtectedRoute")&&e.SignInFunction({context:t})}},secondBtn:{BtnContent:o("global.protectedRoute.goHome"),dataTestId:`${u}-secondBtn`,handleClick:()=>e.redirectTo(r)}})}),h="SecondTierAuthModal-testId",m=e=>{let t=i.useContext(c.q),{t:o}=t;return(0,n.jsx)(s.p,{"data-testid":h,title:o("global.secondTierAuth.title"),description:o("global.secondTierAuth.subtitle"),firstBtn:{BtnContent:o("global.secondTierAuth.signIn"),dataTestId:`${h}-firstBtn`,handleClick:()=>{(0,a.Z)("SecondTierAuthModal")&&e.Get2TierAuthorization({context:t})}},secondBtn:{BtnContent:o("global.secondTierAuth.goHome"),dataTestId:`${h}-secondBtn`,handleClick:()=>e.redirectTo(window.location.origin)}})};var p=o(88587),b=o(29163),T=o(51667),A=o(55977);let k=(0,b.ZP)(T.$j).withConfig({displayName:"UnknownCustomerModalSpinner",componentId:"-__sc-8d6869e0-0"})(["margin-top:",";"],A.W0.md);var w=o(52306);let x=e=>{let t=i.useContext(c.q);return i.useEffect(()=>{let o=w.ZP.getCookieBeginningWith(document.cookie,e.oidcCookieName);return o?Array.isArray(o)&&!o.length?e.redirectTo(window.location.origin):e.SignOutFunction({context:t}):e.redirectTo(window.location.origin)},[]),(0,n.jsx)(s.p,{title:t.t("global.unknownCustomer.headline"),"data-testid":"UnknownCustomerModalTestId",description:t.t("global.unknownCustomer.message"),children:(0,n.jsx)(k,{width:A.W0.lgr,height:A.W0.lgr})})};var B=o(15009);let I=(0,r.$j)(e=>({openedSections:e.ui.informationModal.openedSections,deletingCustomer:e.customer.deletingCustomer,oidcCookieName:(0,B.X7)(e),IsLoggedIn:(0,l.n)(e)}))(e=>{let{t}=i.useContext(c.q);return(0,n.jsxs)(i.Fragment,{children:[e.openedSections.secondTierAuth&&(0,n.jsx)(p.Z,{ExternalClick:()=>({}),hideHeader:!0,ariaLabel:t("modals.ariaLabel.secondTierAuth"),children:(0,n.jsx)(m,{Get2TierAuthorization:l.Og,redirectTo:d.gB})}),e.openedSections.unknownCustomer&&(0,n.jsx)(p.Z,{ExternalClick:()=>({}),hideHeader:!0,ariaLabel:t("modals.ariaLabel.unknownCustomer"),children:(0,n.jsx)(x,{SignOutFunction:l.$N,redirectTo:d.gB,oidcCookieName:e.oidcCookieName})}),!e.deletingCustomer&&e.openedSections.protectedRoute&&!e.IsLoggedIn&&(0,n.jsx)(p.Z,{ExternalClick:()=>({}),hideHeader:!0,ariaLabel:t("modals.ariaLabel.protectedRoute"),children:(0,n.jsx)(C,{SignInFunction:l.$v,redirectTo:d.gB})})]})})}}]);
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.