PageSourceSearch

https://wizad.ai/_next/static/chunks/app/(brand-challenge)/layout-216d3fc7fda7c257.js

js wizad.ai collected 2026-10-05 13:19:03 UTC 2,500 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5722],{55620:function(e,t,l){Promise.resolve().then(l.bind(l,9288)),Promise.resolve().then(l.bind(l,29992)),Promise.resolve().then(l.bind(l,62032))},62032:function(e,t,l){"use strict";l.d(t,{AuthProvider:function(){return s},a:function(){return i}});var n=l(26014),u=l(76590),r=l(47237);let a=(0,u.createContext)(null),o="bc_user_type";function s(e){let{children:t}=e,[l,s]=(0,u.useState)(!1),[i,c]=(0,u.useState)(null),[d,f]=(0,u.useState)(null),[v,h]=(0,u.useState)(null),[b,P]=(0,u.useState)(!0);(0,u.useEffect)(()=>{let e=(0,r.hP)(),t=localStorage.getItem(o);e&&t&&(s(!0),c(t)),P(!1)},[]),(0,u.useEffect)(()=>{let e=()=>{(0,r.yE)(),localStorage.removeItem(o),s(!1),c(null),f(null),h(null),window.location.replace("/")};return window.addEventListener("auth:session-expired",e),()=>window.removeEventListener("auth:session-expired",e)},[]),(0,u.useEffect)(()=>{if(!l){f(null),h(null);return}let e=(0,r.hP)();e&&Promise.allSettled([(0,r.pl)(e),(0,r.E_)(e)]).then(e=>{let t=e[0],l=e[1];"fulfilled"===t.status?f(t.value):f(null),"fulfilled"===l.status?h((0,r.PM)(l.value)):h(null)})},[l,i]);let m=(0,u.useCallback)(async()=>{let e=(0,r.hP)();e&&f(await (0,r.pl)(e))},[]),E=(0,u.useCallback)(async()=>{let e=(0,r.hP)();if(!e)return;let t=await (0,r.E_)(e);h((0,r.PM)(t))},[]),k=(0,u.useCallback)(()=>{localStorage.setItem(o,"brand"),s(!0),c("brand")},[]),w=(0,u.useCallback)(()=>{localStorage.setItem(o,"creator"),s(!0),c("creator")},[]),C=(0,u.useCallback)(()=>{(0,r.yE)(),localStorage.removeItem(o),s(!1),c(null),f(null),h(null)},[]);return(0,n.jsx)(a.Provider,{value:{isSignedIn:l,userType:i,creatorProfile:d,businessProfile:v,authLoading:b,signInAsBrand:k,signInAsCreator:w,signOut:C,refreshCreatorProfile:m,refreshBusinessProfile:E},children:t})}function i(){let e=(0,u.useContext)(a);if(!e)throw Error("useAuth must be used inside AuthProvider");return e}},29992:function(e,t,l){"use strict";l.d(t,{H:function(){return o},VideoPlaybackProvider:function(){return a}});var n=l(26014),u=l(76590);let r=(0,u.createContext)(void 0);function a(e){let{children:t}=e,[l,a]=(0,u.useState)(null),o=(0,u.useCallback)(e=>{a(e)},[]);return(0,n.jsx)(r.Provider,{value:{currentPlayingId:l,setCurrentPlaying:o},children:t})}function o(){let e=(0,u.useContext)(r);if(void 0===e)throw Error("useVideoPlayback must be used within a VideoPlaybackProvider");return e}}},function(e){e.O(0,[9288,7237,82,9881,1744],function(){return e(e.s=55620)}),_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.