1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4219],{4422:(e,t,n)=>{"use strict";n.d(t,{A:()=>c,w:()=>p});var a=n(54568),r=n(7620),s=n(46524),i=n.n(s),o=n(8139),d=n(9267),u=n(81959);let l=r.createContext({get beacon(){throw Error("You forgot to wrap your app in <BeaconProvider>")}});function c(e){let{children:t}=e,[n,s]=r.useState({beacon:null,error:null});return(0,a.jsxs)(l.Provider,{value:n,children:[(0,a.jsx)(o.default,{id:"helpscout-beacon",src:"https://beacon-v2.helpscout.net",onLoad:()=>{window.Beacon=(e,t,n)=>{window.Beacon.readyQueue.push({method:e,options:t,data:n})},window.Beacon.readyQueue=[],window.Beacon("init","dcf01a3f-a24a-4e37-9e2f-195ed9f0b3b8"),window.Beacon("on","ready",()=>{s({beacon:window.Beacon})})},onError:()=>{s({error:"Beacon failed to load"}),d.A.notify({name:"Beacon failed to load",message:"Helpscout beacon had an issue"})}}),t]})}function p(){let{beacon:e,error:t}=r.useContext(l),{user:n}=(0,u.Jd)();return r.useEffect(()=>{n&&n.isLoggedIn&&e&&e("prefill",{email:n.email})},[n,e]),{open:r.useCallback(()=>{e&&e("open")},[e]),error:t}}l.displayName="BeaconContext",c.propTypes={children:i().oneOfType([i().arrayOf(i().node),i().node])}},34577:(e,t,n)=>{"use strict";n.d(t,{HydrationBoundary:()=>u});var a=n(7620),r=n(22153),s=n(7703);function i(e){return e}function o(e,t,n){if("object"!=typeof t||null===t)return;let a=e.getMutationCache(),o=e.getQueryCache(),d=n?.defaultOptions?.deserializeData??e.getDefaultOptions().hydrate?.deserializeData??i,u=t.mutations||[],l=t.queries||[];u.forEach(({state:t,...r})=>{a.build(e,{...e.getDefaultOptions().hydrate?.mutations,...n?.defaultOptions?.mutations,...r},t)}),l.forEach(({queryKey:t,state:a,queryHash:i,meta:u,promise:l,dehydratedAt:c})=>{let p=l?(0,r.b)(l):void 0,f=void 0===a.data?p?.data:a.data,h=void 0===f?f:d(f),g=o.get(i),m=g?.state.status==="pending",y=g?.state.fetchStatus==="fetching";if(g){let e=p&&void 0!==c&&c>g.state.dataUpdatedAt;if(a.dataUpdatedAt>g.state.dataUpdatedAt||e){let{fetchStatus:e,...t}=a;g.setState({...t,data:h})}}else g=o.build(e,{...e.getDefaultOptions().hydrate?.queries,...n?.defaultOptions?.queries,queryKey:t,queryHash:i,meta:u},{...a,data:h,fetchStatus:"idle",status:void 0!==h?"success":a.status});l&&!m&&!y&&(void 0===c||c>g.state.dataUpdatedAt)&&g.fetch(void 0,{initialPromise:Promise.resolve(l).then(d)}).catch(s.lQ)})}var d=n(87606),u=e=>{let{children:t,options:n={},state:r,queryClient:s}=e,i=(0,d.useQueryClient)(s),u=a.useRef(n);a.useEffect(()=>{u.current=n});let l=a.useMemo(()=>{if(r){if("object"!=typeof r)return;let e=i.getQueryCache(),t=r.queries||[],n=[],a=[];for(let r of t){let t=e.get(r.queryHash);t?(r.state.dataUpdatedAt>t.state.dataUpdatedAt||r.promise&&"pending"!==t.state.status&&"fetching"!==t.state.fetchStatus&&void 0!==r.dehydratedAt&&r.dehydratedAt>t.state.dataUpdatedAt)&&a.push(r):n.push(r)}if(n.length>0&&o(i,{queries:n},u.current),a.length>0)return a}},[i,r]);return a.useEffect(()=>{l&&o(i,{queries:l},u.current)},[i,l]),t}},44830:(e,t,n)=>{"use strict";let a;n.d(t,{default:()=>D});var r=n(54568),s=n(7620),i=n(87606),o=n(34577),d=n(82099),u=n(23775),l=n(40326),c=n(34984),p=n(89515),f=n(35847),h=n(81959),g=n(46524),m=n.n(g),y=n(8139),v=n(16258),w=n(62942),E=n(9267),x=n(96838);let A=(0,n(83594).A)();function j(e){let{children:t}=e,{user:n}=(0,h.Jd)(),a=(0,w.usePathname)(),o=(0,w.useSearchParams)(),d=(0,i.useQueryClient)(),[u,l]=s.useState(!1),c=o.get("contractId"),{mutate:p}=(0,v.useMutation)({mutationFn:()=>A.redeemContract(c),onSuccess:()=>{d.invalidateQueries({queryKey:[x.es.USER,x.es.USER_ACCESSES]})}});return s.useEffect(()=>{window.tp=window.tp||[]},[]),s.useEffect(()=>{window.tp.push(["setComposerHost","https://c2.gonoodle.com"]),window.tp.push(["setPianoIdUrl","https://auth.gonoodle.com"]),window.tp.push(["setEndpoint","https://vx.gonoodle.com"]),window.tp.push(["setStaticDomain","https://cdn.gonoodle.com"])},[]),s.useEffect(()=>{n.pianoAuthToken||window.tp.push(["setExternalJWT",void 0])},[n.pianoAuthToken]),s.useEffect(()=>{let e=Object.values(x.Cy).find(e=>e.id===n.userTypeId);n.features.pianoReceiveUserData&&window.tp.push(["setCustomVariable","userType",null==e?void 0:e.name])},[n.userTypeId,n.features.pianoReceiveUserData]),s.useEffect(()=>{n.features.pianoReceiveUserData&&window.tp.push(["setExternalJWT",n.pianoAuthToken]),window.tp.push(["init",()=>{window.tp.experience.init(),l(!0)}])},[]),s.useEffect(()=>{u&&(n.features.pianoReceiveUserData&&window.tp.push(["setExternalJWT",n.pianoAuthToken]),window.tp.experience.execute())},[a,u,n.pianoAuthToken,n.features.pianoReceiveUserData]),s.useEffect(()=>{let e;
1return n.features.piano&&n.isLoggedIn&&a===x.Zt.HOME&&c&&((e=document.createElement("script")).src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.22/angular.min.js",e.async=!0,e.onerror=()=>{p(c)},document.body.appendChild(e)),()=>{e&&document.body.removeChild(e)}},[p,n.isLoggedIn,a,n.features.piano,c]),(0,r.jsxs)(r.Fragment,{children:[n.features.piano?(0,r.jsx)(y.default,{src:"".concat("https://c2.gonoodle.com/xbuilder/experience/load","?aid=").concat("E0P3aMREpu"),onError:e=>{E.A.notify({name:"Piano script failed to load",message:"".concat(e.target.src," failed to load")})},strategy:"afterInteractive"}):null,t]})}j.propTypes={children:m().oneOfType([m().arrayOf(m().node),m().node])};var P=n(41167),b=n(4422),S=n(46003),C=n(73920),O=n(89240),T=n(86509);function B(e){let{children:t}=e;return s.useEffect(()=>{C.Ay.init("phc_dEWMaAQM4HqCDf8yT5eqw1JEcoYbp2iFuFIWZHLviLo",(0,T.decamelizeKeys)({apiHost:"/ingest",uiHost:"https://us.posthog.com",capturePageview:!1,capturePageleave:!1,captureExceptions:!1,persistence:"memory",debug:!1}))},[]),(0,r.jsx)(O.so,{client:C.Ay,children:t})}var I=n(5633),R=n.n(I),U=n(75299);let q=e=>{var t;let{children:n}=e,{splashScreen:a,onLoadComplete:s}=(0,U.dt)(),{appConfig:i}=(0,f.r)(),{adProductSplashScreen:o}=i,d=(0,U.WI)(),u=(0,U.$V)({properties:{impressionType:x.gs.LOGO,adProductType:"splash_screen",partnerName:null==a?void 0:a.partnerName,partnerId:null==a?void 0:a.partnerId,adProductPartnerId:null==a?void 0:a.id},threshold:.5,enabled:!!a&&!d});return d?n:(0,r.jsx)(r.Fragment,{children:!R()(a)&&o.visible?(0,r.jsx)(l.St,{ref:u,src:null==a||null==(t=a.images)?void 0:t.splashScreenImage,alt:null==a?void 0:a.partnerName,onLoad:s,onError:s}):n})};q.propTypes={children:m().node.isRequired};var k=n(31354),L=n(7703);function H(){return new k.E({defaultOptions:{queries:{staleTime:6e4}}})}let _={assetsUrl:x.tl.GN_ASSETS_BASE_URL};function D(e){let{children:t,queryClient:n=L.S$?H():(!a&&(a=H()),a),dehydratedState:g}=e,[m,y]=s.useState(null);return s.useEffect(()=>{let e=()=>{let e=document.getElementById(x.GH.NAVBAR);e?y(e.getBoundingClientRect().bottom):y(null)};e(),window.addEventListener("resize",e);let t=document.getElementById(x.GH.NAVBAR),n=t?new ResizeObserver(e):null;return n&&n.observe(t),()=>{window.removeEventListener("resize",e),n&&n.disconnect()}},[]),(0,r.jsx)(B,{children:(0,r.jsx)(u.G3,{reCaptchaKey:"6LdkemsgAAAAAJuWHV0sSJKicZNRnlou-fQ9t9tx",scriptProps:{async:!0,useEnterprise:!0},children:(0,r.jsx)(c.Ay,{children:(0,r.jsxs)(i.QueryClientProvider,{client:n,children:[(0,r.jsx)(p.A,{children:(0,r.jsx)(o.HydrationBoundary,{state:g,children:(0,r.jsx)(l.Fc.Provider,{offset:0!==m?m+10:20,children:(0,r.jsx)(f.A,{children:(0,r.jsx)(h.Ay,{children:(0,r.jsx)(j,{children:(0,r.jsx)(P.Ay,{children:(0,r.jsx)(l.so,{children:(0,r.jsx)(b.A,{children:(0,r.jsx)(l.z,{value:_,children:(0,r.jsx)(q,{children:(0,r.jsx)(l.m_.Provider,{children:(0,r.jsx)(S.Ay,{children:t})})})})})})})})})})})})}),(0,r.jsx)(d.E,{initialIsOpen:!1})]})})})})}},75608:(e,t,n)=>{"use strict";n.d(t,{PL:()=>r,RQ:()=>d,rB:()=>o});var a=n(7703);function r(e){return{onFetch:(t,n)=>{let r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,d=t.state.data?.pages||[],u=t.state.data?.pageParams||[],l={pages:[],pageParams:[]},c=0,p=async()=>{let n=!1,p=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",()=>{n=!0}),t.signal)})},f=(0,a.ZM)(t.options,t.fetchOptions),h=async(e,r,s)=>{if(n)return Promise.reject();if(null==r&&e.pages.length)return Promise.resolve(e);let i=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:s?"backward":"forward",meta:t.options.meta};return p(e),e})(),o=await f(i),{maxPages:d}=t.options,u=s?a.ZZ:a.y9;return{pages:u(e.pages,o,d),pageParams:u(e.pageParams,r,d)}};if(o&&d.length){let e="backward"===o,t={pages:d,pageParams:u},n=(e?i:s)(r,t);l=await h(t,n,e)}else{let t=e??d.length;do{let e=0===c?u[0]??r.initialPageParam:s(r,l);if(c>0&&null==e)break;l=await h(l,e),c++}while(c<t)}return l};t.options.persister?t.fetchFn=()=>t.options.persister?.(p,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=p}}}function s(e,{pages:t,pageParams:n}){let a=t.length-1;return t.length>0?e.getNextPageParam(t[a],t,n[a],n):void 0}function i(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function o(e,t){return!!t&&null!=s(e,t)}function d(e,t){return!!t&&!!e.getPreviousPageParam&&null!=i(e,t)}},77513:(e,t,n)=>{Promise.resolve().then(n.bind(n,98564))}
1,98564:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var a=n(54568),r=n(7620),s=n(40326),i=n(45365),o=n(44830),d=n(9267);function u(e){let{error:t}=e;return r.useEffect(()=>{d.A.notify(t)},[t]),(0,a.jsx)("html",{children:(0,a.jsx)("body",{children:(0,a.jsxs)(o.default,{children:[(0,a.jsx)(i.default,{}),(0,a.jsx)(s.$2,{})]})})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[2726,1046,803,6826,1773,9900,304,6429,5299,6003,5365,587,8315,7358],()=>t(77513)),_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.