1"use strict";(self.webpackChunkinsight_timer=self.webpackChunkinsight_timer||[]).push([[1514,1991,8491],{1345:(e,r,t)=>{t.d(r,{q:()=>n});const n=()=>({detail:{userRegisteredRoute:window.location.pathname}})},4565:(e,r,t)=>{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)}},18057:(e,r,t)=>{t.d(r,{Cj:()=>h,Du:()=>f,Lo:()=>c,QW:()=>d,VZ:()=>u,WW:()=>o,dP:()=>g,gf:()=>m,hE:()=>s,mc:()=>a,wM:()=>p,x9:()=>l});var n=t(97141),i=t(83395);const a=n.A.section` 2 max-width: 1200px; 3 margin: auto; 4 width: 100%; 5 padding-left: 64px; 6 padding-right: 64px; 7 8 @media (max-width: 1681px) { 9 padding-left: 40px; 10 padding-right: 40px; 11 } 12 13 @media (max-width: 600px) { 14 padding-left: 13px; 15 padding-right: 13px; 16 } 17`,s=n.A.h2` 18 font-family: ProximaNova; 19 font-size: 24px; 20 font-weight: 700; 21 margin: 0; 22 23 @media (max-width: 600px) { 24 font-size: 20px; 25 } 26`,o=(0,n.A)(i.A)` 27 font-weight: 600; 28 font-family: ProximaNova; 29 height: ${e=>e.height||45}px; 30 transition: 0.7s; 31 border-radius: 6px; 32 letter-spacing: 0.22px; 33 padding-left: 24px; 34 padding-right: 24px; 35 line-height: 1; 36 background: #181818; 37 color: #fff; 38 font-size: 18px; 39 width: ${e=>e.full?"100%":"auto"}; 40 &:hover { 41 opacity: 0.75; 42 background: #181818; 43 } 44 &:focus { 45 outline: none; 46 box-shadow: none; 47 } 48 @media (max-width: 600px) { 49 padding-left: 20px; 50 padding-right: 20px; 51 font-size: 14px; 52 } 53`,d=(0,n.A)(i.A)` 54 height: 34px; 55 font-size: 14px; 56 font-family: ProximaNova; 57 color: #8d8d8d; 58 transition: 0.5s; 59 border-radius: 30px; 60 padding-left: 14px; 61 padding-right: 14px; 62 padding-top: 4px; 63 padding-bottom: 4px; 64 65 &:focus { 66 outline: none; 67 } 68`,c=n.A.div` 69 display: none; 70 @media (max-width: 600px) { 71 display: block; 72 } 73`,l=n.A.div` 74 display: block; 75 @media (max-width: 600px) { 76 display: none; 77 } 78`,u=n.A.div` 79 background-color: #f5f5f5; 80 height: 24px; 81 width: 50%; 82 max-width: 200px; 83`,h=n.A.div` 84 background-color: #f5f5f5; 85 height: ${e=>e.height||90}px; 86 width: 100%; 87`,p=n.A.div` 88 background-color: #f2f2f2; 89 position: relative; 90 border-radius: 8px; 91 display: flex; 92 flex-wrap: wrap; 93 padding: 6px 14px; 94 95 @media (max-width: 600px) { 96 padding: 0px 7px; 97 } 98`,g=n.A.div` 99 padding: 12px 10px; 100 width: calc(100% / 3); 101 102 @media (max-width: 600px) { 103 width: 50%; 104 } 105`,m=n.A.label` 106 font-family: ProximaNova; 107 color: #999; 108 font-size: 12px; 109 font-weight: 700; 110 text-transform: uppercase; 111 112 @media (max-width: 600px) { 113 font-size: 10px; 114 } 115`,f=n.A.div` 116 text-transform: capitalize; 117 font-size: 21px; 118 font-family: ProximaNova; 119 font-weight: 400; 120 color: #4a4a4a; 121 display: flex; 122 align-items: center; 123 124 img { 125 margin-right: 8px; 126 } 127 128 @media (max-width: 600px) { 129 font-size: 16px; 130 131 img { 132 width: 19px; 133 } 134 } 135`},38491:(e,r,t)=>{t.r(r),t.d(r,{default:()=>s});var n=t(70705),i=t.n(n),a={};for(const o in n)"default"!==o&&(a[o]=()=>n[o]);t.d(r,a);const s=i().create({timeout:3e3})},51514:(e,r,t)=>{t.r(r),t.d(r,{default:()=>A});var n=t(12867),i=t(67576),a=t(8367),s=t(32104),o=t(95254),d=t(80288),c=t(18057),l=t(73999),u=t.n(l),h=t(97141),p=t(42046);const g=(0,h.A)(p.NavLink)` 136 color: #888; 137 font-family: ProximaNova; 138 transition: 0.5s; 139 &:hover { 140 opacity: 0.75; 141 } 142`,m=h.A.div` 143 background-color: #f2f2f2; 144 position: relative; 145 border-radius: 8px; 146 padding: 0 14px 6px; 147 @media (max-width: 600px) { 148 padding: 0px 7px; 149 border-bottom: solid 1px #ddd; 150 } 151`,f=(0,h.A)(n.A)` 152 padding: 12px 10px; 153`,x=(0,h.A)(n.A)` 154 padding: 12px 10px 12px 0; 155`,w=h.A.div` 156 font-family: ProximaNova; 157 font-size: 20px; 158 color: #4a4a4a; 159 @media (max-width: 600px) { 160 font-size: 16px; 161 margin-bottom: 12px; 162 } 163`,y=h.A.div` 164 @media (max-width: 600px) { 165 margin-left: -14px; 166 margin-top: -25px; 167 } 168`;var _=t(64582);function v(e){let{invoice:r}=e;const t=0===r.amount_paid&&0===r.amount_remaining;return(0,_.jsxs)(n.A,{container:!0,alignContent:"space-between",children:[(0,_.jsx)(f,{item:!0,xs:6,sm:4,children:(0,_.jsxs)(n.A,{container:!0,alignContent:"space-between",children:[(0,_.jsx)(n.A,{item:!0,xs:12,sm:12,children:(0,_.jsxs)(w,{children:[(0,_.jsx)(c.Lo,{children:(0,_.jsx)(c.gf,{children:"Date"})}),(0,_.jsx)(c.Lo,{children:u()(1e3*r.created).format("YYYY/MM/DD")}),(0,_.jsx)(c.x9,{children:u()(1e3*r.created).format("YYYY/MM/DD")})]})}),(0,_.jsx)(n.A,{item:!0,xs:12,sm:12,children:(0,_.jsxs)(w,{children:[(0,_.jsx)(c.Lo,{children:(0,_.jsx)(c.gf,{children:"Invoice #"})}),r.number]})})]})}),(0,_.jsx)(f,{item:!0,xs:4,sm:6,children:(0,_.jsxs)(n.A,{container:!0,alignContent:"space-between",children:[(0,_.jsx)(n.A,{item:!0,xs:12,sm:6,children:(0,_.jsxs)(w,{children:[(0,_.jsx)(c.Lo,{children:(0,_.jsx)(c.gf,{children:"Type"})}),t?"Free Trial":"Premium"]})}),(0,_.jsx)(n.A,{item:!0,xs:12,sm:6,children:(0,_.jsxs)(w,{children:[(0,_.jsx)(c.Lo,{children:(0,_.jsx)(c.gf,{children:"Amount"})}),t?"-":`${r.currency.toUpperCase()}${(r.amount_paid/100).toFixed(2)}`]})})]})}),(0,_.jsx)(f,{item:!0,xs:3,sm:2,children:r.hosted_invoice_url&&(0,_.jsx)(y,{children:(0,_.jsx)(c.QW,{href:`${r.hosted_invoice_url}`,children:"Details"})})})]})}const A=e=>{let{history:r}=e;const[t,l]=(0,o.useState)(!0),[u,h]=(0,o.useState)(),{authState:p}=(0,s.t7)(),y=!t&&p===s.kj.AUTHORIZED&&!(null!==u&&void 0!==u&&u.length);return(0,o.useEffect)((()=>{p===s.kj.AUTHORIZED&&(0,d.jh)().then((e=>{h(e)})).finally((()=>
168{l(!1)}))}),[p]),(0,o.useEffect)((()=>{p===s.kj.UNAUTHORIZED&&r.push(`/login?success=${window.location.pathname}`)}),[r,p]),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(i.A,{height:[100,100,120,160]}),(0,_.jsxs)(c.mc,{children:[t&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(i.A,{height:[46,46,46,46]}),(0,_.jsx)(c.VZ,{}),(0,_.jsx)(i.A,{height:[20,20,20,20]}),(0,_.jsx)(c.Cj,{})]}),!t&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(g,{to:"/manage-subscription",children:"\u2190 Back to Subscriptions"}),(0,_.jsx)(i.A,{height:[20,20,20,20]}),(0,_.jsx)(c.hE,{children:"Payment history"}),(0,_.jsx)(i.A,{height:[20,20,20,20]}),u&&u.length>0&&(0,_.jsxs)(m,{children:[(0,_.jsx)(c.x9,{children:(0,_.jsxs)(n.A,{container:!0,alignContent:"space-between",children:[(0,_.jsx)(f,{item:!0,xs:12,sm:4,children:(0,_.jsx)(w,{children:(0,_.jsx)(c.gf,{children:"Date"})})}),(0,_.jsx)(f,{item:!0,xs:12,sm:3,children:(0,_.jsx)(w,{children:(0,_.jsx)(c.gf,{children:"Type"})})}),(0,_.jsx)(x,{item:!0,xs:12,sm:5,children:(0,_.jsx)(w,{children:(0,_.jsx)(c.gf,{children:"Amount"})})})]})}),u.map((e=>(0,_.jsx)(v,{invoice:e},e.id)))]})]}),y&&(0,_.jsx)("p",{children:"No invoices avaliable"})]}),(0,_.jsx)(i.A,{height:[100,100,100,100]}),(0,_.jsx)(a.default,{})]})}},61991:(e,r,t)=>{t.r(r),t.d(r,{default:()=>s,firebaseAuth:()=>a});var n=t(92284),i=t(69033);const a=(0,n.Nu)(i.default,{persistence:[n.F0,n.iM]}),s=a},67576:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(4021),i=(t(95254),t(64582));const a=e=>{let{height:r}=e;return(0,i.jsx)(n.a,{height:Array.isArray(r)?r.map((e=>`${e}px`)):`${r}px`})}},74756:(e,r,t)=>{t.d(r,{Ds:()=>l,Jq:()=>o,PI:()=>u,QZ:()=>c,uj:()=>d});var n=t(73999),i=t.n(n),a=t(34969),s=t.n(a);i().extend(s());const o=(e,r)=>{if(e){const t=Math.floor(e/60);return e>59?`${t} min${t>1&&r?"s":""}`:`${e} sec`}return""},d=()=>{const e=i()();return{epoch:e.valueOf(),iso_8601_datetime_tz:e.toISOString()}},c=e=>i()().year()===i()(e).year(),l=e=>{if(0===e)return"00:00";const r=e=>`0${e}`.slice(-2),t=new Date(1e3*e),n=t.getUTCHours(),i=r(t.getUTCMinutes().toString()),a=r(t.getUTCSeconds().toString());return n?`${n}:${i}:${a}`:`${i}:${a}`},u=e=>i()(e).fromNow()},80288:(e,r,t)=>{t.d(r,{A0:()=>g,B1:()=>u,I:()=>o,SN:()=>p,ZJ:()=>c,jh:()=>x,l8:()=>d,mu:()=>w,pU:()=>f,ps:()=>m,qL:()=>h,ql:()=>l});var n=t(38491),i=t(39046),a=t(94498),s=t(19919);const o="premium_annual",d="7fmC8Uu4vG",c="7Dt2Uv3I9m",l="4ayU2GhBvl";async function u(e,r,t,s,o,d,c){return(0,a.getIdToken)().then((l=>{const u=o||{},h={plan_id:t,token:r,email:e,trial_code:s,coupon_id:c,action:"SUBSCRIBE",is_stripe_sandbox_env:!i.KV,...u},p={...(0,a.getAuthHeaders)(l).headers,...d};return i.KV||(h.is_stripe_sandbox_env=!0),n.default.post("https://user-subscription-api.insighttimer-api.net/api/v1/stripe",h,{headers:p,timeout:1e4})}))}const h=async()=>{try{const e=await(0,a.getIdToken)(),r=(0,a.getAuthHeaders)(e);let t="https://user-subscription-api.insighttimer-api.net/api/v1/stripe";i.KV||(t+="?is_stripe_sandbox_env=true");const s=await n.default.get(t,{...r,timeout:1e4});return null===s||void 0===s?void 0:s.data}catch(e){console.error(e)}},p=async e=>{let{promoCode:r}=e;return(0,a.getIdToken)().then((async e=>{const t={promocode:r},i=(0,a.getAuthHeaders)(e),{headers:s}=i,o={headers:s},d=await n.default.post("https://user-subscription-api.insighttimer-api.net/api/v1/gifts",t,o);return null===d||void 0===d?void 0:d.data}))},g=async()=>{const e=await(0,a.getIdToken)(),r=(0,a.getAuthHeaders)(e),t=!i.KV,o=t?s.stringify({is_stripe_sandbox_env:t}):null;return(await n.default.get("https://user-subscription-api.insighttimer-api.net/api/v1/stripe/cards"+(o?`?${o}`:""),{headers:r.headers,timeout:1e4})).data},m=async e=>{let{stripeToken:r,captchaToken:t}=e;const s=await(0,a.getIdToken)(),o=(0,a.getAuthHeaders)(s),d={action:"UPDATE_PAYMENT_DETAILS",token:r};i.KV||(d.is_stripe_sandbox_env=!0);const c={...o.headers,"g-recaptcha-token":t};await n.default.post("https://user-subscription-api.insighttimer-api.net/api/v1/stripe",d,{headers:c,timeout:1e4})},f=async e=>{const r=await(0,a.getIdToken)(),t=(0,a.getAuthHeaders)(r),s={action:"CANCEL"};i.KV||(s.is_stripe_sandbox_env=!0);const o={...t.headers,"g-recaptcha-token":e};await n.default.post("https://user-subscription-api.insighttimer-api.net/api/v1/stripe",s,{headers:o,timeout:1e4})},x=async()=>{const e=await(0,a.getIdToken)(),r=(0,a.getAuthHeaders)(e),t={};i.KV||(t.is_stripe_sandbox_env=!0);const s=await n.default.get("https://user-subscription-api.insighttimer-api.net/api/v1/stripe/invoices",{headers:r.headers,params:t,timeout:1e4});return null===s||void 0===s?void 0:s.data},w=async e=>
168{const r=new URLSearchParams;i.KV||r.append("is_stripe_sandbox_env","true");const t=await n.default.get(`https://user-subscription-api.insighttimer-api.net/api/v1/stripe/checkout/sessions/${e}/verify`,{params:r,timeout:1e4});return null===t||void 0===t?void 0:t.data}},94498:(e,r,t)=>{t.r(r),t.d(r,{changePassword:()=>P,convertBranchDataToOnBoardingData:()=>T,createFacebookCredential:()=>v,getAuthHeaders:()=>b,getIdToken:()=>A,loginWithEmailAndPassword:()=>x,logout:()=>I,removeSessionCookies:()=>$,sendPasswordResetEmail:()=>S,sessionLogin:()=>k,setUserOnboardingData:()=>K,setUserPrivateSettings:()=>g,signInApple:()=>y,signInAsGuestUser:()=>f,signInFacebook:()=>w,signInGoogle:()=>_,signInWithCredentialFirebase:()=>U,signInWithCustomTokenFirebase:()=>B,signInWithSessionCookie:()=>E,signupWithEmailAndPassword:()=>m});var n=t(23868),i=t(92284);const a=e=>{document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`};var s=t(4565);const o=e=>{const r=document.cookie.split("; ").find((r=>r.includes(`${e}=`)));return null===r||void 0===r?void 0:r.split("=")[1]},d=86400,c=e=>{let{key:r,value:t,maxAge:n=d}=e;document.cookie=`${r}=${t}; domain=.insighttimer.com; max-age=${n};path=/`};var l=t(74756),u=t(61991),h=t(1345),p=t(95679);const g=async e=>{let{uid:r,name:t,firstName:n,lastName:i,email:a,tosChecked:s=!1}=e;const o={name:t,first_name:n,last_name:i,email:a};if(s){const e=(0,l.uj)();o.accepted_privacy_policy_version="3.0",o.accepted_terms_of_service_version="4.0",o.tos_date_accepted=e,o.privacy_policy_accepted_at=e}const d=await(0,p.createDocRef)(`/users/${r}/private/settings`);return(0,p.setDocument)(d,o,{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:a,tosChecked:o}=e;const d=`${t.trim()} ${n.trim()}`;if(d.length<3)throw new Error("The name must be minimum 3 characters.");try{const e=(0,h.q)();return await(0,i.eJ)(u.firebaseAuth,r,a).then((async i=>{let{user:a}=i;if(a){const i=K(a.uid),c=g({uid:a.uid,name:d,firstName:t,lastName:n,email:r,tosChecked:o});await Promise.allSettled([c,i]).then((()=>{(0,s.A)("user-details-created",e)}))}return a}))}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")}}},f=async()=>(0,i.zK)(u.firebaseAuth),x=async(e,r)=>{try{return await(0,i.x9)(u.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 i.sk;return e.addScope("public_profile,email"),e.setCustomParameters({display:"popup"}),(0,i.df)(u.firebaseAuth,e,i.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 y(){const e=new i.LD("apple.com");return e.addScope("email"),e.addScope("name"),e.setCustomParameters({display:"popup"}),(0,i.df)(u.firebaseAuth,e,i.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 i.HF;return(0,i.df)(u.firebaseAuth,e,i.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 v(e){return i.sk.credential(e)}async function A(){if(u.firebaseAuth.currentUser)return u.firebaseAuth.currentUser.getIdToken();throw new Error("not logged in")}function b(e){return{headers:{Authorization:`Bearer ${e}`}}}async function k(e){var r;const n=(await Promise.all([t.e(705),t.e(8491)]).then(t.bind(t,38491))).default;return null===(r=u.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 j=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,i.p)(u.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")}));
168async function E(){if(o("hasSessionCookie"))return j();throw new Error("SESSION_COOKIE_NOT_AVAILABLE")}const $=()=>(a("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}))()),C=()=>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"),i=n.objectStore("firebaseLocalStorage").clear();i.onsuccess=function(){console.log("All Firebase local storage data cleared!"),e()},i.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 I(){return await $(),await u.firebaseAuth.signOut(),C()}async function S(e){return(0,i.J1)(u.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 P=async(e,r,t)=>{const n=u.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:a}=n;try{const t=i.IX.credential(a||"",e);u.firebaseAuth.currentUser&&await(0,i.kZ)(u.firebaseAuth.currentUser,t).catch((()=>{throw new Error("Current password is incorrect")})),u.firebaseAuth.currentUser&&await(0,i.f3)(u.firebaseAuth.currentUser,r).catch((e=>{throw new Error(e.message)}))}catch(s){throw new Error(null===s||void 0===s?void 0:s.message)}};async function U(e){return(0,i.eN)(u.firebaseAuth,e)}async function B(e){return(0,i.p)(u.firebaseAuth,e)}const D=[{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"}],T=e=>{const r={};return D.forEach((t=>{let{key:n,onBoardingKey:i,format:a}=t;const s=a?a(null===e||void 0===e?void 0:e[n]):null===e||void 0===e?void 0:e[n];void 0!==s&&null!==s&&(r[i]=s)})),r};async function K(e){const r=(0,n.UT)(),t=null===r||void 0===r?void 0:r.parsedData;if(!t||!Object.keys(t).length)return;const i=await(0,p.createDocRef)(`/users/${e}/private/onboarding`),a=T(t);return a.referrals_updated_at=(0,l.uj)(),(0,p.setDocument)(i,a,{merge:!0})}}}]); 169//# sourceMappingURL=1514.51d60b01.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.