1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3189],{8853:(e,t,n)=>{n.d(t,{Ai:()=>a,Ob:()=>c,Uy:()=>o,fs:()=>i,ob:()=>l,pb:()=>u});let r=null;function i(e){r=e}function o(){r=null}function a(){return r}class c extends Error{constructor(e){super("Guests can look but not change a hunt"),this.url=e,this.name="GuestRequestBlockedError"}}function l(e){return e instanceof c||"object"==typeof e&&null!==e&&"GuestRequestBlockedError"===e.name}function u(e,t,n){let r=t.toUpperCase(),i=`/dashboard/job-hunts/${e.huntId}`,[o,a]=n.split("?");if("GET"===r&&(o===i||o.startsWith(`${i}/`))){let t=o.slice(i.length);return{url:`/public/share/${encodeURIComponent(e.token)}/hunt/${e.huntId}${t}${a?`?${a}`:""}`}}return"GET"===r&&(o.startsWith("/public/")||"/dashboard/health"===o)?{url:n}:{blocked:!0}}},12658:(e,t,n)=>{n.d(t,{CU:()=>i,UL:()=>r,uF:()=>o});let r="x-amd-client";function i(){return"0.2.72".trim()||"dev"}function o(){return`web/${i()}`}},13542:(e,t,n)=>{n.d(t,{z:()=>c});var r=n(49908);async function i(){return fetch("/api/auth/slide",{method:"POST",credentials:"include",cache:"no-store"})}async function o(){return fetch("/api/auth/refresh",{method:"POST",credentials:"include",cache:"no-store"})}let a=null;async function c(){return a||(a=(async()=>{try{let e=await i();if(e.ok)return(0,r.QH)(),{ok:!0};if(401!==e.status)return{ok:!1,status:e.status};let t=await o();if(t.ok)return(0,r.QH)(),{ok:!0};return{ok:!1,status:t.status}}catch{return{ok:!1,status:0}}finally{a=null}})())}},17471:(e,t,n)=>{n.d(t,{q:()=>o});var r=n(96887),i=n(92538);let o=new r.E({defaultOptions:{queries:{staleTime:i.SJ.default,gcTime:i.dm.default,refetchOnWindowFocus:!1,refetchOnReconnect:!0,retry:1},mutations:{retry:0}}})},26433:(e,t,n)=>{n.d(t,{DT:()=>r,jZ:()=>o,vK:()=>a});let r=(0,n(93474).A)({locales:["en-GB","fr","de","es","it"],defaultLocale:"en-GB",localePrefix:"as-needed",localeDetection:!1}),i=["en-GB"];function o(e){return i.includes(e)}let a={"en-GB":"English",fr:"French",de:"German",es:"Spanish",it:"Italian"}},29833:(e,t,n)=>{n.d(t,{e:()=>o});var r=n(41463);function i(e){return e.replace(/\/$/,"")}function o(){let e=r.env.API_INTERNAL_URL?.trim(),t="https://api.acrossmydesk.co.uk".trim();return e&&!function(e){let t=e?.trim();if(!t)return!0;try{var n;return n=new URL(t).hostname,"localhost"===n||"127.0.0.1"===n||"[::1]"===n}catch{return!0}}(e)?i(e):t?i(t):e?i(e):"http://localhost:8000"}},49908:(e,t,n)=>{n.d(t,{Kf:()=>a,Pf:()=>c,QH:()=>o});let r=null,i=null;function o(){r=null}async function a(e){return!e?.force&&r?r:i||(i=fetch("/api/auth/bearer-token",{credentials:"include",cache:"no-store"}).then(async e=>{let t;if(!e.ok)return r=null,null;let n=await e.text();if(!n.trim())return r=null,null;try{t=JSON.parse(n)}catch{return r=null,null}return r=t.token?.trim()||null}).catch(()=>(r=null,null)).finally(()=>{i=null}))}function c(){try{return new URL("https://api.acrossmydesk.co.uk".trim()||"http://localhost:8000").origin!==window.location.origin}catch{return!1}}},63176:(e,t,n)=>{n.d(t,{A9:()=>i,Ri:()=>c,Z6:()=>a,Zq:()=>o});let r="__amdGtagInit";function i(){let e=window.gtag;"function"==typeof e&&e("consent","update",{analytics_storage:"denied"})}function o(e,t){let n=window;if(n[r])return;n[r]=!0,window.dataLayer=window.dataLayer??[],window.gtag||(window.gtag=function(){window.dataLayer.push(arguments)});let i=window.gtag;i("consent","default",{analytics_storage:"granted"}),i("js",new Date);let o=t&&Object.keys(t).length>0;for(let n of e)o?i("config",n,t):i("config",n)}function a(e){let t=window.gtag;"function"==typeof t&&t("config",e)}function c(e){let t=!1,n=0,i=()=>{t||(window[r]&&"function"==typeof window.gtag?e():(n+=1)>=50||window.setTimeout(i,100))};return i(),()=>{t=!0}}},71619:(e,t,n)=>{n.d(t,{RV:()=>a,jk:()=>c});var r=n(26433);let i=/^\/([a-z]{2}(?:-[A-Za-z0-9]+)?)(?=\/|$)/,o=RegExp(`^/(${r.DT.locales.map(e=>e.replace("-","\\-")).join("|")})(?=\\/|$)`);function a(e){let t=e.replace(o,"");if(t!==e)return""===t?"/":t;let n=e.replace(i,"");return""===n?"/":n}function c(e){let t=e.match(o);if(t?.[1])return t[1];let n=e.match(i);return n?.[1]?n[1]:r.DT.defaultLocale}},72930:(e,t,n)=>{n.d(t,{FH:()=>f,SU:()=>h,t9:()=>m,xN:()=>p});var r=n(61766),i=n(39564);let o="sentacross_device_id",a="device_id";
1var c=n(49908),l=n(13542),u=n(71619);n(29833);var s=n(8853),d=n(12658);let f=r.A.create({baseURL:"https://api.acrossmydesk.co.uk",withCredentials:!0});function h(e,t){if(function(e){if(!e||"object"!=typeof e||e.response)return!1;if("ECONNREFUSED"===e.code||"ENOTFOUND"===e.code||"ECONNABORTED"===e.code)return!0;let t="string"==typeof e.message?e.message:"";return/ECONNREFUSED|fetch failed|Network Error/i.test(t)}(e))return"We couldn't reach the server. Check your connection and try again in a moment.";let n=e&&"object"==typeof e&&"response"in e?e.response:void 0,r=n?.data?.error;if("string"==typeof r&&r.trim())return r.trim();if(r&&"object"==typeof r&&"message"in r){let e=String(r.message??"").trim();if(e)return e}return t}function m(e){let t=e&&"object"==typeof e&&"response"in e?e.response:void 0,n=t?.data?.errorCode;return"ONBOARDING_INCOMPLETE"!==n&&"CV_SETUP_INCOMPLETE"!==n?null:{code:n,message:h(e,"Complete account setup on the web first.")}}function p(e){let t=e&&"object"==typeof e&&"response"in e?e.response:void 0,n=t?.data?.error;return n&&"object"==typeof n?"PLAN_LIMIT_EXCEEDED"!==n.code&&"FEATURE_REQUIRES_UPGRADE"!==n.code?null:{code:n.code,message:String(n.message??"").trim()||"Plan limit reached",details:n.details}:null}f.interceptors.request.use(async e=>{let t=(0,s.Ai)();if(t){let n=(0,s.pb)(t,e.method??"get",e.url??"");if("blocked"in n)throw new s.Ob(e.url??"");return e.url=n.url,e.headers=i.$t.from(e.headers??{}).set(d.UL,(0,d.uF)()),e}e.headers=i.$t.from(e.headers??{}).set(d.UL,(0,d.uF)());{let t,n=((t=localStorage.getItem(o)?.trim()??"")||(t=(function(e){if("u"<typeof document)return null;let t=document.cookie.match(RegExp(`(?:^|;\\s*)${e}=([^;]*)`));return t?decodeURIComponent(t[1].trim()):null})(a)?.trim()??""),t||(t=crypto.randomUUID()),localStorage.setItem(o,t),document.cookie=`${a}=${encodeURIComponent(t)};path=/;SameSite=Lax;Max-Age=31536000`,t);if(n&&(e.headers=i.$t.from(e.headers??{}).set("x-device-id",n)),e.headers=i.$t.from(e.headers??{}).set("Accept-Language",(0,u.jk)(window.location.pathname)),(0,c.Pf)()){let t=i.$t.from(e.headers??{});if(!t.get("Authorization")){let n=await (0,c.Kf)();n&&(e.headers=t.set("Authorization",`Bearer ${n}`))}}}return e}),f.interceptors.response.use(e=>e,async e=>{let t=e.config;if((0,s.Ai)()||(0,s.ob)(e)||e.response?.status!==401)return Promise.reject(e);if(t._retried)return window.location.href="/login",Promise.reject(e);try{if(!(await (0,l.z)()).ok)return window.location.href="/login",Promise.reject(e)}catch{return window.location.href="/login",Promise.reject(e)}return t._retried=!0,f.request(t)})},77890:(e,t,n)=>{n.d(t,{l:()=>i,s:()=>o});var r=n(63176);let i={SIGN_UP:"sign_up",TRIAL_STARTED:"trial_started",ONBOARDING_COMPLETED:"onboarding_completed",FIRST_JOB_TRACKED:"first_job_tracked",BEGIN_CHECKOUT:"begin_checkout"};function o(e,t={}){(0,r.Ri)(()=>{window.gtag?.("event",e,t)})}},92538:(e,t,n)=>{n.d(t,{Fj:()=>s,G7:()=>f,SJ:()=>i,TX:()=>u,dm:()=>o,dy:()=>a,nQ:()=>c,qS:()=>d,w2:()=>l});var r=n(9846);let i={static:36e5,list:12e4,detail:9e4,analytics:3e5,aiInsight:6048e5,default:6e4},o={default:9e5,list:12e5,detail:18e5};function a(e){return{staleTime:i.static,gcTime:o.default,...e}}function c(e){return{staleTime:i.list,gcTime:o.list,...e}}function l(e){return{staleTime:i.detail,gcTime:o.detail,...e}}function u(e){return{staleTime:i.analytics,gcTime:o.default,...e}}function s(e){return{staleTime:i.aiInsight,gcTime:o.detail,...e}}function d(e,t=5e3){return("processing"===e||"partial"===e)&&t}function f(e,t){e.invalidateQueries(t).catch(e=>{e instanceof r.cc||console.error("invalidateQueries failed",e)})}}}]); 2//# sourceMappingURL=3189-f007a8e707788b24.js.map
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.