1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[92516],{28736:(e,t,r)=>{r.d(t,{p:()=>u});let n=new Map;function u(e,t,r=1){if(null==e||!t)return null;try{let u,l=(u=n.get(t),void 0===u&&(u=new Intl.NumberFormat(void 0,{style:"currency",currency:t}).resolvedOptions().maximumFractionDigits??2,n.set(t,u)),u),c=e/Math.pow(10,l)/r,o=1e-9>Math.abs(c-Math.round(c));return new Intl.NumberFormat(void 0,{style:"currency",currency:t,currencyDisplay:"narrowSymbol",...o?{maximumFractionDigits:0}:{}}).format(c)}catch{return null}}},67847:(e,t,r)=>{r.d(t,{j:()=>u});let n={accessibility:["de"],cookies:["de"],privacy:["de"],terms:["de"]};function u(e,t){if("en"===t)return e;let[r,u]=e.split("#"),l=/^\/legal\/([a-z0-9-]+)$/.exec(r);if(!l)return e;let c=l[1];return n[c]?.includes(t)?`/legal/${t}/${c}${u?`#${u}`:""}`:e}},83846:(e,t,r)=>{r.d(t,{A1:()=>C,Ar:()=>f,W$:()=>A,Wo:()=>l,cc:()=>a,f2:()=>g,g5:()=>h,o8:()=>D,xb:()=>I,yP:()=>b,yY:()=>y});var n=r(28736);let u="scoutsocial_referral",l="scoutsocial:referral-changed";function c(){try{window.dispatchEvent(new Event(l))}catch{}}let o="scoutsocial_referral_pending",i=/^[a-zA-Z0-9]{1,32}$/,a=["ref","via"];function d(e){if(!e)return null;let t=e.trim();return i.test(t)?t:null}function s(){try{window.localStorage.removeItem(o)}catch{}}function f(){try{window.localStorage.removeItem(u)}catch{}s(),c()}function p(){let e,t=null;try{t=window.localStorage.getItem(o)}catch{return null}if(!t)return null;try{e=JSON.parse(t)}catch{return s(),null}let r=d(e.code);return!r||!e.capturedAt||Date.now()-e.capturedAt>5184e6?(s(),null):{code:r,capturedAt:e.capturedAt}}function m(e){try{window.localStorage.setItem(u,JSON.stringify(e))}catch{}c()}function w(){let e,t=null;try{t=window.localStorage.getItem(u)}catch{return null}if(!t)return null;try{e=JSON.parse(t)}catch{return f(),null}return d(e.code)?(void 0===e.discountId&&(e.discountId=null),!e.capturedAt||Date.now()-e.capturedAt>5184e6||function(e){if(!e)return!1;let t=Date.parse(e);return Number.isFinite(t)&&t<=Date.now()}(e.expiresAt??null))?(f(),null):e:(f(),null)}function y(){return w()}function g(){return y()?.code??p()?.code??null}function A(e,t){return!!e&&(!e.restrictTo||!!t&&e.restrictTo.includes(t))}function h(e){if(!e?.amount)return null;if("percentage"===e.type){let t=Number(e.amount);return Number.isFinite(t)?`${Number(t.toFixed(2))}%`:null}return"flat"===e.type||"flat_per_seat"===e.type?(0,n.p)(Number(e.amount),e.currencyCode):null}function v(e){if(e)for(let t of a){let r=d(e.get(t));if(r)return r}return g()}function b(e){let t=v(e);return t?`/onboarding?ref=${encodeURIComponent(t)}`:"/onboarding"}function I(e){let t=v(e);return t?`/sign-up?ref=${encodeURIComponent(t)}`:"/sign-up"}async function _(e){try{let t=await fetch(`/api/referrals/${encodeURIComponent(e)}`,{headers:{Accept:"application/json"}});if(!t.ok)return{terms:null,rejected:!1};let r=await t.json();if(!r?.valid||!r.code)return{terms:null,rejected:!0};return{terms:{code:r.code,discountId:r.discount_id??null,type:r.type??null,amount:r.amount??null,currencyCode:r.currency_code??null,recur:!!r.recur,maximumRecurringIntervals:r.maximum_recurring_intervals??null,restrictTo:r.restrict_to??null,expiresAt:r.expires_at??null},rejected:!1}}catch{return{terms:null,rejected:!1}}}async function C(e){if(!e)return null;let t=null;for(let r of a)if(t=d(e.get(r)))break;if(!t)return null;!function(e,t=Date.now()){try{window.localStorage.setItem(o,JSON.stringify({code:e,capturedAt:t}))}catch{}}(t);let r=w();if(r&&r.code.toLowerCase()===t.toLowerCase()&&r.discountId&&Date.now()-r.validatedAt<216e5)return s(),r;let{terms:n,rejected:u}=await _(t);if(!n){if(u){let e=p();e&&e.code.toLowerCase()===t.toLowerCase()&&s()}return null}let l=Date.now(),c=p(),i=c&&c.code.toLowerCase()===t.toLowerCase()?c.capturedAt:l;return m({...n,capturedAt:i,validatedAt:l}),s(),n}async function D(e){if(!e)return null;let t=w();if(t){if(Date.now()-t.validatedAt>216e5){let{terms:e}=await _(t.code);if(!e)return f(),null;m(t={...e,capturedAt:t.capturedAt,validatedAt:Date.now()})}}else{let e=p();if(!e)return null;let{terms:r,rejected:n}=await _(e.code);
1if(!r)return n&&s(),null;m(t={...r,capturedAt:e.capturedAt,validatedAt:Date.now()}),s()}return t.restrictTo&&!t.restrictTo.includes(e)?null:t}}}]);
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.