Module 669874

929 characters · in 4d2a8f4300617f0d.js
Dependencies
Required by (2)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){n.d(t,{j:()=>s,v:()=>r.v});var l=n(260447),i=n(174459),r=n(71804),a=n(652215);class s extends l.z{getSentryAppContext(){return"billing"}getSentryTags(e,t){return{...super.getSentryTags(e,t),checkout_error:"true",billing_context:"checkout"}}getSentryExtras(e){let{loadId:t,selectedSkuId:n,selectedPlanId:l,skuIds:i,isGift:a,purchaseType:s,locationStack:o,checkoutStepsHistory:u}=this.props;return{loadId:t,selectedSkuId:n,selectedPlanId:l,isGift:a,purchaseType:s,skuIds:i,locationStack:o,checkoutStepsHistory:u,...e instanceof r.v?{checkoutErrorExtraInformation:e.extraSentryInformation}:{}}}onErrorCaught(e){this.emitPaymentFlowErrorAnalytics(e)}emitPaymentFlowErrorAnalytics(e){let t=this.getCrashedFlag(e),{loadId:n,locationStack:l,additionalAnalyticsData:r}=this.props,s="string"==typeof e?e:e.message;i.default.track(a.HAw.PAYMENT_FLOW_ERROR,{load_id:n,crashed:t,error_message:s,location_stack:l??[],...r})}}}