1(self.webpackChunkinsight_timer=self.webpackChunkinsight_timer||[]).push([[1886,1991,3999,4498],{1345:(e,r,t)=>{"use strict";t.d(r,{q:()=>n});const n=()=>({detail:{userRegisteredRoute:window.location.pathname}})},4565:(e,r,t)=>{"use strict";t.d(r,{A:()=>n});const n=(e,r)=>{var t;const n=new CustomEvent(e,null!==r&&void 0!==r?r:{});null!==(t=window)&&void 0!==t&&t.dispatchEvent&&window.dispatchEvent(n)}},25325:(e,r,t)=>{"use strict";t.d(r,{A:()=>o});var n=t(4021),s=t(7869),i=(t(95254),t(64582));const o=e=>{let{loaderProps:r,...t}=e;const o=null!==r&&void 0!==r?r:{};return(0,i.jsx)(n.a,{width:"100%",minHeight:"150px",display:"flex",justifyContent:"center",alignItems:"center",color:"neutral.700",...t,children:(0,i.jsx)(s.y,{size:"lg",color:"inherit",thickness:"3px",...o})})}},33390:(e,r,t)=>{"use strict";t.d(r,{A:()=>n});const n=e=>{var r,t,n,s;return"string"===typeof e?e:null!==(r=null!==(t=null===e||void 0===e||null===(n=e.response)||void 0===n||null===(s=n.data)||void 0===s?void 0:s.message)&&void 0!==t?t:null===e||void 0===e?void 0:e.message)&&void 0!==r?r:null}},34969:function(e){e.exports=function(){"use strict";return function(e,r,t){e=e||{};var n=r.prototype,s={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function i(e,r,t,s){return n.fromToBase(e,r,t,s)}t.en.relativeTime=s,n.fromToBase=function(r,n,i,o,a){for(var u,c,d,l=i.$locale().relativeTime||s,h=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],f=h.length,g=0;g<f;g+=1){var m=h[g];m.d&&(u=o?t(r).diff(i,m.d,!0):i.diff(r,m.d,!0));var p=(e.rounding||Math.round)(Math.abs(u));if(d=u>0,p<=m.r||!m.r){p<=1&&g>0&&(m=h[g-1]);var y=l[m.l];a&&(p=a(""+p)),c="string"==typeof y?y.replace("%d",p):y(p,n,m.l,d);break}}if(n)return c;var w=d?l.future:l.past;return"function"==typeof w?w(c):w.replace("%s",c)},n.to=function(e,r){return i(e,r,this,!0)},n.from=function(e,r){return i(e,r,this)};var o=function(e){return e.$u?t.utc():t()};n.toNow=function(e){return this.to(o(this),e)},n.fromNow=function(e){return this.from(o(this),e)}}}()},61991:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>o,firebaseAuth:()=>i});var n=t(92284),s=t(69033);const i=(0,n.Nu)(s.default,{persistence:[n.F0,n.iM]}),o=i},73999:function(e){e.exports=function(){"use strict";var e=1e3,r=6e4,t=36e5,n="millisecond",s="second",i="minute",o="hour",a="day",u="week",c="month",d="quarter",l="year",h="date",f="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var r=["th","st","nd","rd"],t=e%100;return"["+e+(r[(t-20)%10]||r[t]||r[0])+"]"}},y=function(e,r,t){var n=String(e);return!n||n.length>=r?e:""+Array(r+1-n.length).join(t)+e},w={s:y,z:function(e){var r=-e.utcOffset(),t=Math.abs(r),n=Math.floor(t/60),s=t%60;return(r<=0?"+":"-")+y(n,2,"0")+":"+y(s,2,"0")},m:function e(r,t){if(r.date()<t.date())return-e(t,r);var n=12*(t.year()-r.year())+(t.month()-r.month()),s=r.clone().add(n,c),i=t-s<0,o=r.clone().add(n+(i?-1:1),c);return+(-(n+(t-s)/(i?s-o:o-s))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:l,w:u,d:a,D:h,h:o,m:i,s:s,ms:n,Q:d}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",$={};$[v]=p;var _="$isDayjsObject",k=function(e){return e instanceof A||!(!e||!e[_])},S=function e(r,t,n){var s;if(!r)return v;if("string"==typeof r){var i=r.toLowerCase();$[i]&&(s=i),t&&($[i]=t,s=i);var o=r.split("-");if(!s&&o.length>1)return e(o[0])}else{var a=r.name;$[a]=r,s=a}return!n&&s&&(v=s),s||!n&&v},b=function(e,r){if(k(e))return e.clone();var t="object"==typeof r?r:{};return t.date=e,t.args=arguments,new A(t)},E=w;E.l=S,E.i=k,E.w=function(e,r){return b(e,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var A=function(){function p(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[_]=!0}var y=p.prototype;return y.parse=function(e){this.$d=function(e){var r=e.date,t=e.utc;if(null===r)return new Date(NaN);if(E.u(r))return new Date;if(r instanceof Date)return new Date(r);if("string"==typeof r&&!/Z$/i.test(r)){var n=r.match(g);if(n){var s=n[2]-1||0,i=(n[7]||"0").substring(0,3);return t?new Date(Date.UTC(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(r)}(e),this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return E},y.isValid=function(){return!(this.$d.toString()===f)},y.isSame=function(e,r){var t=b(e);return this.startOf(r)<=t&&t<=this.endOf(r)},y.isAfter=function(e,r){return b(e)<this.startOf(r)},y.isBefore=function(e,r){return this.endOf(r)<b(e)},y.$g=function(e,r,t){return E.u(e)?this[r]:this.set(t,e)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(e,r){var t=this,n=!!E.u(r)||r,d=E.p(e),f=function(e,r){var s=E.w(t.$u?Date.UTC(t.$y,r,e):new Date(t.$y,r,e),t);return n?s:s.endOf(a)},g=function(e,r){return E.w(t.toDate()[e].apply(t.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(r)),t)},m=this.$W,p=this.$M,y=this.$D,w="set"+(this.$u?"UTC":"");switch(d){case l:return n?f(1,0):f(31,11);case c:return n?f(1,p):f(0,p+1);case u:var v=this.$locale().weekStart||0,$=(m<v?m+7:m)-v;return f(n?y-$:y+(6-$),p);case a:case h:return g(w+"Hours",0);case o:return g(w+"Minutes",1);case i:return g(w+"Seconds",2);case s:return g(w+"Milliseconds",3);default:return this.clone()}},y.endOf=function(e){return this.startOf(e,!1)},y.$set=function(e,r){var t,u=E.p(e),d="set"+(this.$u?"UTC":""),f=(t={},t[a]=d+"Date",t[h]=d+"Date",t[c]=d+"Month",t[l]=d+"FullYear",t[o]=d+"Hours",t[i]=d+"Minutes",t[s]=d+"Seconds",t[n]=d+"Milliseconds",t)[u],g=u===a?this.$D+(r-this.$W):r;if(u===c||u===l){var m=this.clone().set(h,1);
1m.$d[f](g),m.init(),this.$d=m.set(h,Math.min(this.$D,m.daysInMonth())).$d}else f&&this.$d[f](g);return this.init(),this},y.set=function(e,r){return this.clone().$set(e,r)},y.get=function(e){return this[E.p(e)]()},y.add=function(n,d){var h,f=this;n=Number(n);var g=E.p(d),m=function(e){var r=b(f);return E.w(r.date(r.date()+Math.round(e*n)),f)};if(g===c)return this.set(c,this.$M+n);if(g===l)return this.set(l,this.$y+n);if(g===a)return m(1);if(g===u)return m(7);var p=(h={},h[i]=r,h[o]=t,h[s]=e,h)[g]||1,y=this.$d.getTime()+n*p;return E.w(y,this)},y.subtract=function(e,r){return this.add(-1*e,r)},y.format=function(e){var r=this,t=this.$locale();if(!this.isValid())return t.invalidDate||f;var n=e||"YYYY-MM-DDTHH:mm:ssZ",s=E.z(this),i=this.$H,o=this.$m,a=this.$M,u=t.weekdays,c=t.months,d=t.meridiem,l=function(e,t,s,i){return e&&(e[t]||e(r,n))||s[t].slice(0,i)},h=function(e){return E.s(i%12||12,e,"0")},g=d||function(e,r,t){var n=e<12?"AM":"PM";return t?n.toLowerCase():n};return n.replace(m,(function(e,n){return n||function(e){switch(e){case"YY":return String(r.$y).slice(-2);case"YYYY":return E.s(r.$y,4,"0");case"M":return a+1;case"MM":return E.s(a+1,2,"0");case"MMM":return l(t.monthsShort,a,c,3);case"MMMM":return l(c,a);case"D":return r.$D;case"DD":return E.s(r.$D,2,"0");case"d":return String(r.$W);case"dd":return l(t.weekdaysMin,r.$W,u,2);case"ddd":return l(t.weekdaysShort,r.$W,u,3);case"dddd":return u[r.$W];case"H":return String(i);case"HH":return E.s(i,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return g(i,o,!0);case"A":return g(i,o,!1);case"m":return String(o);case"mm":return E.s(o,2,"0");case"s":return String(r.$s);case"ss":return E.s(r.$s,2,"0");case"SSS":return E.s(r.$ms,3,"0");case"Z":return s}return null}(e)||s.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(n,h,f){var g,m=this,p=E.p(h),y=b(n),w=(y.utcOffset()-this.utcOffset())*r,v=this-y,$=function(){return E.m(m,y)};switch(p){case l:g=$()/12;break;case c:g=$();break;case d:g=$()/3;break;case u:g=(v-w)/6048e5;break;case a:g=(v-w)/864e5;break;case o:g=v/t;break;case i:g=v/r;break;case s:g=v/e;break;default:g=v}return f?g:E.a(g)},y.daysInMonth=function(){return this.endOf(c).$D},y.$locale=function(){return $[this.$L]},y.locale=function(e,r){if(!e)return this.$L;var t=this.clone(),n=S(e,r,!0);return n&&(t.$L=n),t},y.clone=function(){return E.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},p}(),D=A.prototype;return b.prototype=D,[["$ms",n],["$s",s],["$m",i],["$H",o],["$W",a],["$M",c],["$y",l],["$D",h]].forEach((function(e){D[e[1]]=function(r){return this.$g(r,e[0],e[1])}})),b.extend=function(e,r){return e.$i||(e(r,A,b),e.$i=!0),b},b.locale=S,b.isDayjs=k,b.unix=function(e){return b(1e3*e)},b.en=$[v],b.Ls=$,b.p={},b}()},74756:(e,r,t)=>{"use strict";t.d(r,{Ds:()=>d,Jq:()=>a,PI:()=>l,QZ:()=>c,uj:()=>u});var n=t(73999),s=t.n(n),i=t(34969),o=t.n(i);s().extend(o());const a=(e,r)=>{if(e){const t=Math.floor(e/60);return e>59?`${t} min${t>1&&r?"s":""}`:`${e} sec`}return""},u=()=>{const e=s()();return{epoch:e.valueOf(),iso_8601_datetime_tz:e.toISOString()}},c=e=>s()().year()===s()(e).year(),d=e=>{if(0===e)return"00:00";const r=e=>`0${e}`.slice(-2),t=new Date(1e3*e),n=t.getUTCHours(),s=r(t.getUTCMinutes().toString()),i=r(t.getUTCSeconds().toString());return n?`${n}:${s}:${i}`:`${s}:${i}`},l=e=>s()(e).fromNow()},81886:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>l});var n=t(25325),s=t(32104),i=t(95254),o=t(92709),a=t(94498),u=t(33390);const c=()=>{const[e,r]=(0,i.useState)(!1),[t,n]=(0,i.useState)();return{isCheckingSession:e,sessionError:t,isHasSessionCookieMissing:!!t&&"SESSION_COOKIE_NOT_AVAILABLE"===t,verifySessionAndLogin:(0,i.useCallback)((()=>(r(!0),n(void 0),(0,a.signInWithSessionCookie)().catch((e=>{throw n((0,u.A)(e)),e})).finally((()=>{r(!1)})))),[])}};var d=t(64582);const l=()=>{var e;const{isCheckingSession:r,verifySessionAndLogin:t,isHasSessionCookieMissing:a,sessionError:u}=c(),l=(0,o.W6)(),h=null!==(e=new URLSearchParams(window.location.search).get("to"))&&void 0!==e?e:"/",{authState:f}=(0,s.t7)(),g=r||f===s.kj.PENDING;return(0,i.useEffect)((()=>
1{f===s.kj.UNAUTHORIZED&&t().then((e=>{e&&l.push(h)}))}),[t,l,h,f]),g?(0,d.jsx)(n.A,{minHeight:"500px"}):f===s.kj.AUTHORIZED?(0,d.jsx)(o.rd,{to:h}):u||a?(0,d.jsx)(o.rd,{to:`/login?success=${h}`}):null}},94498:(e,r,t)=>{"use strict";t.r(r),t.d(r,{changePassword:()=>O,convertBranchDataToOnBoardingData:()=>P,createFacebookCredential:()=>_,getAuthHeaders:()=>S,getIdToken:()=>k,loginWithEmailAndPassword:()=>y,logout:()=>C,removeSessionCookies:()=>D,sendPasswordResetEmail:()=>I,sessionLogin:()=>b,setUserOnboardingData:()=>x,setUserPrivateSettings:()=>g,signInApple:()=>v,signInAsGuestUser:()=>p,signInFacebook:()=>w,signInGoogle:()=>$,signInWithCredentialFirebase:()=>T,signInWithCustomTokenFirebase:()=>B,signInWithSessionCookie:()=>A,signupWithEmailAndPassword:()=>m});var n=t(23868),s=t(92284);const i=e=>{document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`};var o=t(4565);const a=e=>{const r=document.cookie.split("; ").find((r=>r.includes(`${e}=`)));return null===r||void 0===r?void 0:r.split("=")[1]},u=86400,c=e=>{let{key:r,value:t,maxAge:n=u}=e;document.cookie=`${r}=${t}; domain=.insighttimer.com; max-age=${n};path=/`};var d=t(74756),l=t(61991),h=t(1345),f=t(95679);const g=async e=>{let{uid:r,name:t,firstName:n,lastName:s,email:i,tosChecked:o=!1}=e;const a={name:t,first_name:n,last_name:s,email:i};if(o){const e=(0,d.uj)();a.accepted_privacy_policy_version="3.0",a.accepted_terms_of_service_version="4.0",a.tos_date_accepted=e,a.privacy_policy_accepted_at=e}const u=await(0,f.createDocRef)(`/users/${r}/private/settings`);return(0,f.setDocument)(u,a,{merge:!0}).catch((e=>{console.error("userRepository: failed to write to firestore private settings",e)}))},m=async e=>{let{email:r,firstName:t,lastName:n,password:i,tosChecked:a}=e;const u=`${t.trim()} ${n.trim()}`;if(u.length<3)throw new Error("The name must be minimum 3 characters.");try{const e=(0,h.q)();return await(0,s.eJ)(l.firebaseAuth,r,i).then((async s=>{let{user:i}=s;if(i){const s=x(i.uid),c=g({uid:i.uid,name:u,firstName:t,lastName:n,email:r,tosChecked:a});await Promise.allSettled([c,s]).then((()=>{(0,o.A)("user-details-created",e)}))}return i}))}catch(c){switch(null===c||void 0===c?void 0:c.code){case"auth/invalid-email":throw new Error("Email address is not valid");case"auth/weak-password":throw new Error("The password must be 6 characters long or more.");case"auth/email-already-in-use":throw new Error("Email address is taken");default:throw new Error("Unable to signup. Please try again")}}},p=async()=>(0,s.zK)(l.firebaseAuth),y=async(e,r)=>{try{return await(0,s.x9)(l.firebaseAuth,e,r).then((e=>e))}catch(t){switch(t.code){case"auth/wrong-password":throw new Error("Unable to login. Please check your password and try again");case"auth/invalid-email":throw new Error("Your email address format is incorrect. Please check it and try again");case"auth/user-not-found":throw new Error("Your email address is not recognized. Please try again");default:throw new Error("Unable to login. Please try again")}}};async function w(){const e=new s.sk;return e.addScope("public_profile,email"),e.setCustomParameters({display:"popup"}),(0,s.df)(l.firebaseAuth,e,s.hk).then((async e=>{if(e.user)return console.info(`signInWithFacebook:SUCCESS - ${e.user.uid}`),e;throw console.info("signInWithFacebook:!user"),new Error("user is null")})).catch((e=>{throw console.error(`signInWithFacebook:FAILED - ${e.code}, ${e.message}`),e.message}))}async function v(){const e=new s.LD("apple.com");return e.addScope("email"),e.addScope("name"),e.setCustomParameters({display:"popup"}),(0,s.df)(l.firebaseAuth,e,s.hk).then((async e=>{if(e.user)return console.info(`signInWithApple:SUCCESS - ${e.user.uid}`),e;throw console.info("signInWithApple:!user"),new Error("An unexpected error occurred during the process. Please try again.")})).catch((e=>{if(console.error(`signInWithApple:FAILED - ${e.code}, ${e.message}`),"auth/popup-closed-by-user"===e.code){throw new Error("The process was canceled. Please try again.").message}throw new Error("An error occurred during the process. Please try again later.").message}))}async function $(){const e=new s.HF;return(0,s.df)(l.firebaseAuth,e,s.hk).then((e=>{if(e.user)return console.info(`signInWithGoogle:SUCCESS - ${e.user.uid}`),e;throw console.info("signInWithGoogle:!user"),new Error("An unexpected error occurred during the process. Please try again.")})).catch((e=>{if(console.error(`signInWithGoogle:FAILED - ${e.code}, ${e.message}`),"auth/popup-closed-by-user"===e.code){throw new Error("The process was canceled. Please try again.").message}throw new Error("An error occurred during the process. Please try again later.").message}))}function _(e){return s.sk.credential(e)}async function k(){if(l.firebaseAuth.currentUser)return l.firebaseAuth.currentUser.getIdToken();throw new Error("not logged in")}function S(e){return{headers:{Authorization:`Bearer ${e}`}}}async function b(e){var r;const n=(await Promise.all([t.e(705),t.e(8491)]).then(t.bind(t,38491))).default;return null===(r=l.firebaseAuth.currentUser)||void 0===r?void 0:r.getIdToken().then((e=>n.post("https://shared-auth-api.insighttimer.com/api/v1/session_login",{idToken:e},{withCredentials:!0}))).then((r=>r?(c({key:"hasSessionCookie",value:"true"}),null!==e&&void 0!==e&&e.redirectUrl&&window.location.replace(e.redirectUrl),r):r))}const E=async()=>(await Promise.all([t.e(705),t.e(8491)]).then(t.bind(t,38491))).default.post("https://shared-auth-api.insighttimer.com/api/v1/session_verify",void 0,{withCredentials:!0}).then((e=>(0,s.p)(l.firebaseAuth,null===e||void 0===e?void 0:e.data))).then((e=>{if(null!==e&&void 0!==e&&e.user)return e;throw new Error("user is null")}));
1async function A(){if(a("hasSessionCookie"))return E();throw new Error("SESSION_COOKIE_NOT_AVAILABLE")}const D=()=>(i("hasSessionCookie"),(async()=>(await Promise.all([t.e(705),t.e(8491)]).then(t.bind(t,38491))).default.post("https://shared-auth-api.insighttimer.com/api/v1/session_logout",void 0,{withCredentials:!0}))()),M=()=>new Promise(((e,r)=>{try{const t=indexedDB.open("firebaseLocalStorageDb");t.onsuccess=function(t){try{if(null===t||void 0===t||!t.target)return r(new Error("No event target"));const n=t.target.result.transaction("firebaseLocalStorage","readwrite"),s=n.objectStore("firebaseLocalStorage").clear();s.onsuccess=function(){console.log("All Firebase local storage data cleared!"),e()},s.onerror=function(e){const t=e.target.error;console.error("Error clearing store:",t),r(t)}}catch(n){console.error("Error during IndexedDB transaction:",n),r(n)}},t.onerror=function(e){const t=e.target.error;console.error("Error opening IndexedDB:",t),r(t)}}catch(t){console.error("Error initializing IndexedDB:",t),r(t)}}));async function C(){return await D(),await l.firebaseAuth.signOut(),M()}async function I(e){return(0,s.J1)(l.firebaseAuth,e).then((async function(){console.info("sendPasswordResetEmail:SUCCEED - true")})).catch((function(e){throw console.error(`sendPasswordResetEmail:FAILED - ${e.code}, ${e.message}`),e.message}))}const O=async(e,r,t)=>{const n=l.firebaseAuth.currentUser;if(!n)throw new Error("Not logged in");if(""===e)throw new Error("Current password required");if(""===r)throw new Error("New password required");if(""===t)throw new Error("Confirm password required");if(r!==t)throw new Error("New passwords do not match");if(e===r)throw new Error("New Password should not same as current password");const{email:i}=n;try{const t=s.IX.credential(i||"",e);l.firebaseAuth.currentUser&&await(0,s.kZ)(l.firebaseAuth.currentUser,t).catch((()=>{throw new Error("Current password is incorrect")})),l.firebaseAuth.currentUser&&await(0,s.f3)(l.firebaseAuth.currentUser,r).catch((e=>{throw new Error(e.message)}))}catch(o){throw new Error(null===o||void 0===o?void 0:o.message)}};async function T(e){return(0,s.eN)(l.firebaseAuth,e)}async function B(e){return(0,s.p)(l.firebaseAuth,e)}const U=[{key:"app_version",onBoardingKey:"referrals_app_version"},{key:"app_build_number",onBoardingKey:"referrals_app_build_number"},{key:"utm_campaign",onBoardingKey:"referrals_campaign"},{key:"$canonical_url",onBoardingKey:"referrals_canonical_url"},{key:"~channel",onBoardingKey:"referrals_channel"},{key:"$share_created_date",onBoardingKey:"referrals_created_date"},{key:"$deeplink",onBoardingKey:"referrals_deeplink"},{key:"description",onBoardingKey:"referrals_description"},{key:"~feature",onBoardingKey:"referrals_feature"},{key:"$link_type",onBoardingKey:"referrals_link_type"},{key:"platform",onBoardingKey:"referrals_platform"},{key:"referrer",onBoardingKey:"referrals_referrer"},{key:"~referring_link",onBoardingKey:"referrals_share_link",format:e=>e?e.replace(/\?.*/gi,""):null},{key:"$share_link_id",onBoardingKey:"referrals_share_link_id"},{key:"$sharer_user_id",onBoardingKey:"referrals_sharer_user_id"},{key:"$sharer_pseudo_id",onBoardingKey:"referrals_sharer_pseudo_id"},{key:"$sharer_user_pseudo_id",onBoardingKey:"referrals_sharer_user_pseudo_id"},{key:"title",onBoardingKey:"referrals_title"},{key:"utm_campaign",onBoardingKey:"referrals_utm_campaign"},{key:"utm_medium",onBoardingKey:"referrals_utm_medium"},{key:"utm_source",onBoardingKey:"referrals_utm_source"}],P=e=>{const r={};return U.forEach((t=>{let{key:n,onBoardingKey:s,format:i}=t;const o=i?i(null===e||void 0===e?void 0:e[n]):null===e||void 0===e?void 0:e[n];void 0!==o&&null!==o&&(r[s]=o)})),r};async function x(e){const r=(0,n.UT)(),t=null===r||void 0===r?void 0:r.parsedData;if(!t||!Object.keys(t).length)return;const s=await(0,f.createDocRef)(`/users/${e}/private/onboarding`),i=P(t);return i.referrals_updated_at=(0,d.uj)(),(0,f.setDocument)(s,i,{merge:!0})}}}]); 2//# sourceMappingURL=1886.137405fb.chunk.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.