(self.webpackChunkhws_provider_authentication=self.webpackChunkhws_provider_authentication||[]).push([[856],{3085:function(){},3936:function(e,t,n){"use strict";n.r(t);var r=n(8757),u=n(4585),i=n(7868),s=n(9434),a=n(7921),o=n(7006);t.default=function(){let e;let t=(0,o.Z)(),n=t?.brandLogo,c=(0,a.A)();return(0,s.useEffect)(()=>{c&&c.signOut&&c.signOut()},[c]),(0,r.jsx)("div",{className:"flex min-w-0 flex-auto flex-col items-center sm:justify-center",children:(0,r.jsx)(i.A,{className:"flex min-h-full w-full items-center rounded-0 px-16 py-32 sm:min-h-auto sm:w-auto sm:rounded-2xl sm:p-48 sm:shadow",children:(0,r.jsxs)("div",{className:"mx-auto w-full max-w-320 sm:mx-0 sm:w-320",children:[n&&(0,r.jsx)("img",{className:"logo-icon h-32 w-32",src:n,alt:"logo"}),(0,r.jsx)(u.A,{className:"mt-32 text-center text-4xl font-extrabold leading-tight tracking-tight",children:(e="HWS_PROVIDER_AUTHENTICATION_YOU_HAVE_SIGNED_OUT",window?.HWS?.I18n?.t(e)??e)})]})})})}},7006:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(9434);function u(){let e=window.HWS?.Branding,t=()=>{let t=e?.getBrandingData?.()??{};return{brandName:t.brandName??"",brandLogo:t.brandLogo??"",brandDescription:t.brandDescription,brandBackground:t.brandBackground}},[n,u]=(0,r.useState)(t);return(0,r.useEffect)(()=>{if(!e?.subscribe){u(t());return}let n=e.subscribe(()=>{u(t())});return u(t()),()=>{"function"==typeof n&&n()}},[e]),n}},7921:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var r=n(9434);n(3085);let u=(0,r.createContext)({loading:!0});function i(){return(0,r.useContext)(u)}function s(){let[e,t]=(0,r.useState)(()=>i);return(0,r.useEffect)(()=>{let e=()=>{let e=window?.HWS?.Hooks;if(e){let n=e.get("useAuth");if(n)return t(()=>n),!0}return!1};if(!e()){let t=()=>e();return document.addEventListener("auth-hook-ready",t),()=>document.removeEventListener("auth-hook-ready",t)}},[]),e()}}}]);