(self.webpackChunkhws_provider_authentication=self.webpackChunkhws_provider_authentication||[]).push([[331],{2934:function(e,t,r){"use strict";r.r(t);var n=r(8757),u=r(5793),o=r(9434),i=r(7921),s=r(6701);t.default=(0,o.memo)(()=>{let e=(0,i.A)(),[t]=(0,u.useSearchParams)(),r=t.get("token");return(0,o.useEffect)(()=>{e?.verifyUser&&e?.verifyUser(r??"")},[e]),(0,n.jsx)(s.Eb,{})})},3085:function(){},6701:function(e,t,r){"use strict";function n(e){let t=window;if(!t.core||!t.core[e]){console.warn(`[coreExports] window.core.${String(e)} not ready`);return}return t.core[e]}r.d(t,{BZ:function(){return f},Eb:function(){return o},Jb:function(){return s},RL:function(){return c},TN:function(){return a},XE:function(){return l},mg:function(){return u},ri:function(){return i}});let u=n("Error404Page");n("FusePageCarded");let o=n("FuseLoading");n("FuseDialog");let i=n("FuseSvgIcon");n("FusePageSimple");let s=n("FuseSplashScreen");n("NavLinkAdapter"),n("Store");let c=n("UnAuthorized");n("useThemeMediaQuery"),n("ErrorBoundary"),n("FuseLayout"),n("FuseTheme"),n("ThemeLayouts"),n("BrowserRouter");let a=n("FuseUtils");n("WithRouter");let f=n("History");n("HUIDynamic"),n("HWSRoutes"),n("HWSContext"),n("HorizechWorkspaceProvider"),n("useHorizechWorkspace"),n("RunAction"),n("RunFormAction");let l=n("InvokeAction");n("APIResult")},7921:function(e,t,r){"use strict";r.d(t,{A:function(){return i}});var n=r(9434);r(3085);let u=(0,n.createContext)({loading:!0});function o(){return(0,n.useContext)(u)}function i(){let[e,t]=(0,n.useState)(()=>o);return(0,n.useEffect)(()=>{let e=()=>{let e=window?.HWS?.Hooks;if(e){let r=e.get("useAuth");if(r)return t(()=>r),!0}return!1};if(!e()){let t=()=>e();return document.addEventListener("auth-hook-ready",t),()=>document.removeEventListener("auth-hook-ready",t)}},[]),e()}}}]);