PageSourceSearch

https://www.getepic.com/default-src_app_website_services_account-create-logging_service_ts.f92eeda1189743c0.js

js getepic.com collected 2026-09-24 08:39:13 UTC 9,710 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkng_up=self.webpackChunkng_up||[]).push([["default-src_app_website_services_account-create-logging_service_ts"],{95447:(D,E,o)=>{o.d(E,{EJ:()=>u,NS:()=>L,ZW:()=>h,_S:()=>S,vv:()=>C,zw:()=>n});const u="age_verification_success",h="age_verification_view",n="age_verification_fail",S="account_create_checkbox_clicked",C="account_create_set_password",L="account_create_popup_closed"},83472:(D,E,o)=>{o.d(E,{A:()=>h,L:()=>u});var u=(()=>{return(n=u||(u={})).VIEW="age_verification_view",n.FAIL="age_verification_fail",n.SUCCESS="age_verification_success",n.CLOSE="age_gate_close",u;var n})(),h=(()=>((h||(h={})).BACK="age_verification_back",h))()},679:(D,E,o)=>{o.d(E,{Wf:()=>a,ij:()=>i,j0:()=>B});var u=o(34929),h=o(2279),n=o(46599),S=o(23489),C=o(83472),L=o(11377),d=o(67274),T=o(38102),y=o(68951),b=o(87260),m=o(50253),c=o(3839),M=o(16872),v=o(95447),l=o(3184),W=o(98476),P=o(1146),R=o(41752),w=o(44687),U=o(77902),j=o(12379),N=o(14045);const I="fd_email_sep_login_click";var a=(()=>{return(r=a||(a={})).FFA="ffa",r.E2C="e2c",a;var r})(),i=(()=>{return(r=i||(i={})).ARCHIVED_CLASS_FLOW="archivedClassFlow",r.DIRECT_UNLIMITED_FLOW="directUnlimitedFlow",r.UNLIMITED_CONNECT_FLOW="unlimitedConnectFlow",i;var r})();let B=(()=>{class r{constructor(e,t,s,_,g,p,F,H){var A,f;this._bigQuery=e,this._accountService=t,this._router=s,this._env=_,this._injector=g,this._store=p,this._profileService=F,this._sessionStorageService=H,this._accountType={[a.FFA]:!1,[a.E2C]:!1},this._activeFlows={},this.flowDataMap={},this._isVoucherCodeFlow=!1,this._promoCode="",this._promoCodeType="",this.destroy$=new m.x,this.is_new_user=null,this.lastSegment="";try{const O=this._router.url;this.lastSegment=null!==(f=null===(A=null==O?void 0:O.split("/"))||void 0===A?void 0:A.pop())&&void 0!==f?f:""}catch(O){this.lastSegment=""}}logAccountCreateViewed(e){var t,s;if(this._checkForVoucherFlow(),this._accountType[a.FFA])this._bigQuery.log(M.Ac+"_start",Object.assign(Object.assign({account_type:this._accountService.ACCOUNT_TYPE_STANDARD,nufType:"consumer"},e),{page:null!==(t=this.lastSegment)&&void 0!==t?t:""}));else if(this._accountType[a.E2C]){let g={};this._activeFlows[i.ARCHIVED_CLASS_FLOW]&&(g=this._getBigQueryParamsForFlow(i.ARCHIVED_CLASS_FLOW)),this._bigQuery.log(c.zn,Object.assign(Object.assign({},g),e))}let _={};this._activeFlows[i.DIRECT_UNLIMITED_FLOW]&&(_=this._getBigQueryParamsForFlow(i.DIRECT_UNLIMITED_FLOW)),this._isVoucherCodeFlow&&(_={code_type:this._promoCodeType,code:this._promoCode}),this._bigQuery.log(c.lT,Object.assign(Object.assign(Object.assign({},_),e),{page:null!==(s=this.lastSegment)&&void 0!==s?s:""}))}logAccountCreateSubmitClick(){if(this._accountType[a.E2C]){let e={};this._activeFlows[i.ARCHIVED_CLASS_FLOW]&&(e=this._getBigQueryParamsForFlow(i.ARCHIVED_CLASS_FLOW)),this._bigQuery.log(c.p9,e)}else this._isVoucherCodeFlow&&this.logAccountCreateSsoClick({sso_type:S.c.EMAIL},!1)}_checkForVoucherFlow(){if(!this._isVoucherCodeFlow){try{const e=this._sessionStorageService.getSessionStorageWithKey("voucherCodeApplied");if(e){const t=JSON.parse(e);this._isVoucherCodeFlow=!!(null==t?void 0:t.couponCode),this._isVoucherCodeFlow&&(this._promoCode=t.couponCode,this._promoCodeType=(null==t?void 0:t.promoCodeType)||"")}}catch(e){}this._isVoucherCodeFlow||this._injector.get(L.F).voucher$.subscribe(t=>{this._isVoucherCodeFlow=!!(null==t?void 0:t.couponCode),this._isVoucherCodeFlow&&(null==t?void 0:t.promoCodeType)&&(this._promoCode=t.couponCode,this._promoCodeType=t.promoCodeType)})}}logAccountCreateSubmit(e){let t={};this._activeFlows[i.DIRECT_UNLIMITED_FLOW]&&(t=this._getBigQueryParamsForFlow(i.DIRECT_UNLIMITED_FLOW)),this._bigQuery.log(c.iH,t)}logAccountCreateSuccess(e,t=!1){return(0,u.mG)(this,void 0,void 0,function*(){const s={};if((null==e?void 0:e.registration_page)&&(s.registration_page=e.registration_page),(null==e?void 0:e.registration_button)&&(s.registration_button=e.registration_button),(null==e?void 0:e.component_source)&&(s.component_source=e.component_source),console.log("[AccountCreateLoggingService] BigQuery",{isNewSignUpFlow:t,registration_page:s.registration_page,registration_button:s.registration_button,component_source:s.component_source,additionalBqParams:e,sourceParams:s}),!t){if(this._checkForVoucherFlow(),this._getExperimentDataForTrialDuration(),this._accountType[a.E2C]){let p={};this._activeFlows[i.ARCHIVED_CLASS_FLOW]&&(p=this._getBigQueryParamsForFlow(i.ARCHIVED_CLASS_FLOW));const F=Object.assign(Object.assign({eduv:this._accountService.eduv},e),s);return this._bigQuery.log(c.Xg,F)}let _={};this._isVoucherCodeFlow&&(_={code_type:this._promoCodeType,code:this._promoCode});const g=Object.assign(Object.assign(Object.assign({eduv:this._accountService.eduv},e),_),s);return this._bigQuery.log(c.Xg,g)}{this._getExperimentDataForTrialDuration();const _=Object.assign({page:this._router.url},s);this.logCreateAccountNewSignupEvents(c.Xg,_)}})}logAccountCreateFailure(e){var t;let s=null===(t=e.result)||void 0===t?void 0:t.error;if(this._accountType[a.E2C]){let _={};this._activeFlows[i.ARCHIVED_CLASS_FLOW]&&(_=this._getBigQueryParamsForFlow(i.ARCHIVED_CLASS_FLOW)),this._bigQuery.log(c.Zc,Object.assign(Object.assign({},_),{fail_reason:s}))}}_getExperimentDataForTrialDuration(){this._store.select(d.Yi).pipe((0,y.R)(this.destroy$),(0,b.T)(1)).subscribe(t=>{var s,_;if(t){this._trialDurationExperiment=t.flagsmithData[T.H.TRIAL_DURATION];const g=t.flagsmithData[T.H.CONACT_PREVIEW_MODE_TEST];this._profileService.setTrialVariant(null===(s=this._trialDurationExperiment)||void 0===s?void 0:s.value),this._profileService.setPreviewVariant(null==g?void 0:g.value),null===(_=this.destroy$)||void 0===_||_.next()}})}logAccountCreateAgeGateEvent(e){return(0,u.mG)(this,void 0,void 0,function*(){let t={[C.L.VIEW]:c.rX,[C.L.SUCCESS]:c.yl,[C.L.FAIL]:c.pY,[C.L.CLOSE]:c.Uh},s={};return this._activeFlows[i.ARCHIVED_CLASS_FLOW]&&(s=this._getBigQueryParamsForFlow(i.ARCHIVED_CLASS_FLOW)),this._activeFlows[i.DIRECT_UNLIMITED_FLOW]&&(s=this._getBigQueryParamsForFlow(i.DIRECT_UNLIMITED_FLOW)),this._activeFlows[i.UNLIMITED_CONNECT_FLOW]&&(s=this._getBigQueryParamsForFlow(i.UNLIMITED_CONNECT_FLOW)),this._isVoucherCodeFlow&&(s=Object.assign(Object.assign({}
1,s),{code_type:this._promoCodeType,code:this._promoCode})),this.is_new_user&&(s=Object.assign(Object.assign({},s),{is_new_user:this.is_new_user})),this._bigQuery.log(t[e],s)})}logAccountCreateLoginClick(e){let t={};this._activeFlows[i.ARCHIVED_CLASS_FLOW]&&(t=this._getBigQueryParamsForFlow(i.ARCHIVED_CLASS_FLOW)),this._activeFlows[i.DIRECT_UNLIMITED_FLOW]&&(t=this._getBigQueryParamsForFlow(i.DIRECT_UNLIMITED_FLOW)),this._bigQuery.log(n.RW,t),e&&this._bigQuery.log(I)}logTosCheckboxSelect(){let e={};this.lastSegment.includes("sketch-flyer")&&(e=Object.assign(Object.assign({},e),{sketch_id:this._sessionStorageService.getSessionStorageWithKey("sketch_flyer_id")})),this._bigQuery.log("tos_checkbox_select",e)}setAccountCreateType(e){this._accountType[e]=!0}setFlowActive(e,t){this._activeFlows[e]=!0,t&&(this.flowDataMap[e]=t)}resetActiveFlows(){this._activeFlows={}}logAccountCreateStart(e){this._bigQuery.log(c.Xh,Object.assign({},e))}logAccountCreateEmailSepContinueClick(e){this._bigQuery.log("fd_email_sep_continue_click",Object.assign({},e))}createPasswordScreenEvents(e,t){e&&this._bigQuery.log(e,Object.assign({},t))}logAccountCreateEmailSepLoginClick(){this._bigQuery.log(I)}logEmailButtonClickedSignupView(e){this._bigQuery.log("fd_email_signup_view",Object.assign({},e))}_getBigQueryParamsForFlow(e){var t;switch(e){case i.ARCHIVED_CLASS_FLOW:let s=this.flowDataMap[i.ARCHIVED_CLASS_FLOW];if(s)return{user_id:null===(t=s.profile)||void 0===t?void 0:t.id,class_code:s.classCode,[h.y.FLOW_SOURCE]:h.E4.ARCHIVED_CLASS_CODE};break;case i.DIRECT_UNLIMITED_FLOW:return{direct_unlimited_flow:n.Qk.TRUE};case i.UNLIMITED_CONNECT_FLOW:return Object.assign({},this.flowDataMap[i.UNLIMITED_CONNECT_FLOW])}return{}}_resetAccountCreateStatus(){this._accountType={ffa:!1,e2c:!1},this._activeFlows={}}logAccountAgeGate(e){let t=v.ZW;switch(e){case C.L.SUCCESS:t=v.EJ;break;case C.L.FAIL:t=v.zw;break;default:t=v.ZW}let s={page:this._router.url,flow:this._env.isKidsSubdomain()?"Kids":"Parents"};this.lastSegment.includes("sketch-flyer")&&(s=Object.assign(Object.assign({},s),{sketch_id:this._sessionStorageService.getSessionStorageWithKey("sketch_flyer_id")})),this._bigQuery.log(t,s)}logCreateAccountNewSignupEvents(e,t){this.lastSegment.includes("sketch-flyer")&&(t=Object.assign(Object.assign({},t),{sketch_id:this._sessionStorageService.getSessionStorageWithKey("sketch_flyer_id")})),this._bigQuery.log(e,Object.assign({page:this._router.url,flow:this._env.isKidsSubdomain()?"Kids":"Parents"},t))}logLoginNewSignupEvents(e,t){this._bigQuery.log(e,Object.assign({page:this._router.url,flow:this._env.isKidsSubdomain()?"Kids":"Parents"},t))}logCreateAccountNewSignupNoParamEvents(e){this._bigQuery.log(e)}logAccountCreateSsoClick(e,t=!1){if(t){let s=Object.assign({},e);this.lastSegment.includes("sketch-flyer")&&(s=Object.assign(Object.assign({},s),{sketch_id:this._sessionStorageService.getSessionStorageWithKey("sketch_flyer_id")})),this._bigQuery.log(c.rZ,Object.assign(Object.assign({},s),{page:this._router.url,flow:this._env.isKidsSubdomain()?"Kids":"Parents"}))}else this._bigQuery.log(c.rZ,this._isVoucherCodeFlow?Object.assign(Object.assign({},e),{code_type:this._promoCodeType,code:this._promoCode}):Object.assign({},e))}}return r.\u0275fac=function(e){return new(e||r)(l.LFG(W.p),l.LFG(P.B),l.LFG(j.F0),l.LFG(R.DJ),l.LFG
1(l.zs3),l.LFG(N.yh),l.LFG(w.ProfileService),l.LFG(U.u))},r.\u0275prov=l.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})()}}]);

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.