PageSourceSearch

https://tickets.empiretheatre.com.au/web/_next/static/chunks/pages…/[id]/auth/redirect-82c8ec5a5bb26136.js

js empiretheatre.com.au collected 2026-09-25 19:53:35 UTC 3,154 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5105],{10061:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/seller/[id]/auth/redirect",function(){return r(82096)}])},47349:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(62900),s=r(38234);class i extends s.Ay{static async fetchOrganizationInfo(e){let t=n.J.BASE_URL()+"/api/organizations/"+e+"/info";return await this.fetchApi(s.U0.get,t)}}},82096:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>y,default:()=>A,getRedirectProps:()=>p});var n=r(50979),s=r(70365),i=r(55450),a=r(25963),l=r(53447),o=r(62900),c=r(38234);class d extends c.Ay{static async getAccessToken(e){return this.fetchApi(c.U0.post,o.J.BASE_URL()+"/api/auth/token",{exchangeToken:e})}}var u=r(4142),h=r(36040),g=function(e){return e.loading="loading",e.error="error",e.success="success",e}(g||{});let f=e=>{let{seller:t,organization:r}=e,{t:o}=(0,s.Bd)(["common","auth","transactions"]),c=(0,i.useRouter)(),[g,f]=(0,a.useState)("loading");return(0,a.useLayoutEffect)(()=>{u.v.applyCheckoutStyling({theme:"white",sellerInfo:t})},[]),(0,a.useEffect)(()=>{if("error"===g){let e=setTimeout(()=>{t&&(window.location.href="/seller/".concat(t.url||t._id))},2500);return()=>clearTimeout(e)}},[g]),(0,a.useEffect)(()=>{let e=t?"/seller/".concat(t.url||t._id):null,{exchangeToken:r,redirect_uri:n=e}=c.query;if(!r||!n)return void f("error");let s=new URL(decodeURIComponent(n)).toString();if(!s.startsWith("https")&&!s.startsWith("http")&&s!==e)return void f("error");(async()=>{try{let e=await d.getAccessToken(String(r));f("success"),l.A.get().setToken(e.token),window.location.href=s}catch(e){l.A.get().isLoggedIn()&&(f("success"),window.location.href=s),f("error")}})()},[c.query.exchangeToken,c.query.redirect_uri]),(0,n.jsx)(h.v,{hideAccountPill:!0,children:(0,n.jsx)("div",{className:"fallback-holder",children:(0,n.jsx)("div",{className:"fallback-box",children:(0,n.jsxs)("div",{className:"fallback-box-content",children:[(0,n.jsx)("h2",{children:o("common:login")}),(0,n.jsx)("div",{className:"mt-24",children:(0,n.jsxs)("div",{className:"text info",children:["loading"===g&&(0,n.jsx)(n.Fragment,{children:o("auth:ssoRedirectPage.waitYouWillBeLoggedIn")}),"success"===g&&(0,n.jsx)(n.Fragment,{children:o("auth:ssoRedirectPage.successfullyLoggedIn")}),"error"===g&&(0,n.jsx)(n.Fragment,{children:o("auth:ssoRedirectPage.somethingWentWrongTryAgain")})]})})]})})})})};var m=r(78077),w=r(48474),x=r(49232),_=r(47349),v=r(1017),y=!0;let p=async(e,t,r)=>{try{let n=await v.A.fetchSellerInfo(r,e.detectedLocale),s=await (0,x.Wq)(t.domainCtx,n._id,n.orgId),i=null;return(null==n?void 0:n.orgId)&&(i=await _.A.fetchOrganizationInfo(n.orgId)),t.domainCtx=await s,{seller:n,organization:i}}catch(e){}return{seller:null,organization:null}},A=e=>{var t;let{t:r}=(0,s.Bd)("seller");return e.seller?(0,n.jsx)(w.O3,{seller:e.seller,organization:null!=(t=e.organization)?t:void 0,children:(0,n.jsx)(f,{seller:e.seller,organization:e.organization})}):(0,n.jsx)(m.M,{code:404,message:r("seller:sellerCouldNotBeFound")})}}},e=>{e.O(0,[7310,95,589,885,6762,5358,5418,3148,2864,7621,639,6957,636,6593,8792],()=>e(e.s=10061)),_N_E=e.O()}]);

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.