1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([["src_app_pages_promotion-shop_promotion-shop_module_ts"],{49733(K,F,a){a.d(F,{PromotionShopPageModule:()=>Ie});var x=a(79748),D=a(496),T=a(23123),I=a(46264),L=a(89204),G=a(20948),H=a(58222),V=a(47030),R=a(47115),b=a(45312),U=a(34966),E=a(59888),w=a(45381),P=a(20777),k=a(3271),Y=a(28683),C=a(38299),r=a(96861),d=a(4749),S=a(14070),M=a(14876),y=a(84712),O=a(11691),N=a(26515),B=a(12870),e=a(36124),j=a(66563),Z=a(61811),Q=a(24138),J=a(10409),$=a(29659),q=a(72002),ee=a(12091),ne=a(64769);const z=i=>({web:i});function te(i,c){1&i&&e.nrm(0,"ion-icon",25)}function ie(i,c){1&i&&e.nrm(0,"ion-icon",26)}function oe(i,c){if(1&i&&(e.j41(0,"span",27),e.EFF(1),e.k0s()),2&i){const s=e.XpG();e.R7$(),e.JRh(s.languageService.label.txt_promotional_offer_heading)}}function re(i,c){if(1&i&&(e.j41(0,"span",27),e.EFF(1),e.k0s()),2&i){const s=e.XpG();e.R7$(),e.JRh(s.languageService.label.txt_promotional_offer_heading_trial)}}function ae(i,c){if(1&i&&(e.nrm(0,"span",28),e.nI1(1,"safeHtml")),2&i){const s=e.XpG();e.Y8G("innerHTML",e.bMT(1,1,s.languageService.label.txt_promotional_offer_subheading),e.npT)}}function se(i,c){if(1&i&&(e.nrm(0,"span",28),e.nI1(1,"safeHtml")),2&i){const s=e.XpG();e.Y8G("innerHTML",e.bMT(1,1,s.languageService.label.txt_promotional_offer_subheading_1month_trial),e.npT)}}function ce(i,c){if(1&i&&(e.nrm(0,"span",28),e.nI1(1,"safeHtml")),2&i){const s=e.XpG();e.Y8G("innerHTML",e.bMT(1,1,s.languageService.label.txt_promotional_offer_subheading_3month_trial),e.npT)}}function le(i,c){if(1&i&&(e.j41(0,"section")(1,"div",13),e.EFF(2,"\u2600\ufe0f"),e.k0s(),e.nrm(3,"div",14),e.k0s()),2&i){const s=e.XpG();e.R7$(3),e.Y8G("innerHTML",s.languageService.label.txt_onboarding_shop_benefit_emoji_1,e.npT)}}function pe(i,c){if(1&i&&(e.j41(0,"section")(1,"div",13),e.EFF(2,"\u{1f3a7}"),e.k0s(),e.nrm(3,"div",14),e.k0s()),2&i){const s=e.XpG();e.R7$(3),e.Y8G("innerHTML",s.languageService.label.txt_onboarding_shop_benefit_emoji_3,e.npT)}}function ge(i,c){if(1&i&&(e.j41(0,"section")(1,"div",13),e.EFF(2,"\u{1f3a7}"),e.k0s(),e.nrm(3,"div",14),e.k0s()),2&i){const s=e.XpG();e.R7$(3),e.Y8G("innerHTML",s.languageService.label.txt_onboarding_shop_benefit_emoji_3_podcast,e.npT)}}function ue(i,c){if(1&i&&(e.j41(0,"section")(1,"div",13),e.EFF(2,"\u{1f9e0}"),e.k0s(),e.nrm(3,"div",14),e.k0s()),2&i){const s=e.XpG();e.R7$(3),e.Y8G("innerHTML",s.languageService.label.txt_onboarding_shop_benefit_emoji_4,e.npT)}}function de(i,c){if(1&i&&(e.j41(0,"section")(1,"div",13),e.EFF(2,"\u{1f3c6}"),e.k0s(),e.nrm(3,"div",14),e.k0s()),2&i){const s=e.XpG();e.R7$(3),e.Y8G("innerHTML",s.languageService.label.txt_onboarding_shop_benefit_emoji_5,e.npT)}}function fe(i,c){if(1&i&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&i){const s=e.XpG(2);e.R7$(),e.JRh(s.languageService.label.txt_promotional_offer_cta)}}function ve(i,c){if(1&i&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&i){const s=e.XpG(2);e.R7$(),e.JRh(s.languageService.label.txt_promotional_offer_cta_3month_trial)}}function me(i,c){if(1&i&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&i){const s=e.XpG(2);e.R7$(),e.JRh(s.languageService.label.txt_promotional_offer_cta_1month_trial)}}function he(i,c){if(1&i&&(e.qex(0),e.DNE(1,fe,2,1,"span",12)(2,ve,2,1,"span",12)(3,me,2,1,"span",12),e.bVm()),2&i){const s=e.XpG();e.R7$(),e.Y8G("ngIf",s.special.includes("30")),e.R7$(),e.Y8G("ngIf","promotion"===s.offerType&&s.special.includes("month")),e.R7$(),e.Y8G("ngIf",("winback"===s.offerType||"organic-socials"===s.offerType)&&s.special.includes("month"))}}function _e(i,c){1&i&&e.nrm(0,"ion-spinner",30)}function Pe(i,c){if(1&i&&(e.qex(0),e.DNE(1,_e,1,0,"ion-spinner",29),e.bVm()),2&i){const s=e.XpG();e.R7$(),e.Y8G("ngIf",s.isLoading)}}function Ce(i,c){if(1&i&&(e.j41(0,"div",31),e.nrm(1,"ion-icon",32),e.EFF(2),e.k0s()),2&i){const s=e.XpG();e.R7$(2),e.SpI(" ",s.languageService.label.txt_shop_secured_AS," ")}}function Se(i,c){if(1&i&&(e.j41(0,"div",31),e.nrm(1,"ion-icon",32),e.EFF(2),e.k0s()),2&i){const s=e.XpG();e.R7$(2),e.SpI(" ",s.languageService.label.txt_shop_secured_GP," ")}}function be(i,c){1&i&&(e.j41(0,"div",31),j.qSk(),e.j41(1,"svg",33),e.nrm(2,"path",34)(3,"path",35),e.k0s()())}let Me=(()=>{var i;class c{constructor(n,t,o,l,u,f,m,v,h,_,g,p,W,A,X,Le){this.languageService=n,this.purchaseService=t,this.transformCurrencyAmount=o,this.insertMultiplePrice
1sPipe=l,this.storageService=u,this.navCtrl=f,this.platform=m,this.utilsService=v,this.loadingController=h,this.screensizeService=_,this.authService=g,this.gtmService=p,this.onboardingService=W,this.route=A,this.settingsService=X,this.loginManagerService=Le,this.environment=b.c,this.isLoading=!1,this.seeAllPlans=!1,this.seeLinks=!1,this.selected="yearly",this.yearlySelected=!0,this.lifetimeSelected=!1,this.monthlySelected=!1,this.quarterlySelected=!1,this.freeTrial=!0,this.isReady=!1,this.isDesktop=!1,this.offerType="",this.special="",this.showPodcastLabel=!1,this.isIOS=this.platform.is("cordova")&&this.platform.is("ios"),this.isAndroid=this.platform.is("cordova")&&this.platform.is("android"),this.screensizeService.isDesktopView().subscribe(Re=>{this.isDesktop=Re}),this.af=S.Ii.isNativePlatform()?Y.XH:void 0}get annualRate(){var n,t,o,l;if(null===(n=this.annualPackage)||void 0===n||null===(n=n.product)||void 0===n||!n.price)return"";let u=null===(t=this.annualPackage)||void 0===t||null===(t=t.product)||void 0===t?void 0:t.priceString;return("TWD"===(null===(o=this.annualPackage)||void 0===o||null===(o=o.product)||void 0===o?void 0:o.currencyCode)||"VND"===(null===(l=this.annualPackage)||void 0===l||null===(l=l.product)||void 0===l?void 0:l.currencyCode))&&(u=u.substring(0,u.length-3)),u}get annualRatePerMonth(){if(this.special.includes("month")){var n,t;if(null===(n=this.annualPackage)||void 0===n||null===(n=n.product)||void 0===n||!n.price)return"";const h=null===(t=this.annualPackage)||void 0===t||null===(t=t.product)||void 0===t?void 0:t.priceString;return this.insertMultiplePricesPipe.annualRatePerMonth(h)}let o;if(this.platform.is("ios")){var l,u,f;if(null===(l=this.annualPackage)||void 0===l||null===(l=l.product)||void 0===l||!l.discounts)return"";const h=(null===(u=this.annualPackage)||void 0===u||null===(u=u.product)||void 0===u?void 0:u.discounts)||[];let _;var m;"promotion"===this.offerType&&"30percent"===this.special&&(_=h.findIndex(g=>"promo_30_percent_off_email"===g.identifier)),"promotion"===this.offerType&&"home30"===this.special&&(_=h.findIndex(g=>"promo_home_30_percent_off"===g.identifier)),"winback"===this.offerType&&(_=h.findIndex(g=>"promo_30_percent_off_email"===g.identifier)),o=-1!==_?h[_].priceString:"","IDR"===(null===(f=this.annualPackage)||void 0===f||null===(f=f.product)||void 0===f?void 0:f.currencyCode)&&(o="Rp"+((null===(m=this.annualPackage)||void 0===m||null===(m=m.product)||void 0===m?void 0:m.price.toString())||""))}else{var v;o=(null===(v=this.googleOffer)||void 0===v||null===(v=v.introPhase)||void 0===v||null===(v=v.price)||void 0===v?void 0:v.formatted)||""}return this.insertMultiplePricesPipe.annualRatePerMonth(o)}get discountedRate(){var n,f;if(this.platform.is("ios")){var t,o,l,u;if(null===(t=this.annualPackage)||void 0===t||null===(t=t.product)||void 0===t||!t.discounts)return"";const m=(null===(o=this.annualPackage)||void 0===o||null===(o=o.product)||void 0===o?void 0:o.discounts)||[];let v;"promotion"===this.offerType&&"30percent"===this.special&&(v=m.findIndex(_=>"promo_30_percent_off_email"===_.identifier)),"promotion"===this.offerType&&"home30"===this.special&&(v=m.findIndex(_=>"promo_home_30_percent_off"===_.identifier)),"winback"===this.offerType&&(v=m.findIndex(_=>"promo_30_percent_off_email"===_.identifier));let h=-1!==v?m[v].priceString:"";return("TWD"===(null===(l=this.annualPackage)||void 0===l||null===(l=l.product)||void 0===l?void 0:l.currencyCode)||"VND"===(null===(u=this.annualPackage)||void 0===u||null===(u=u.product)||void 0===u?void 0:u.currencyCode))&&(h=h.substring(0,h.length-3)),h}return null!==(n=this.googleOffer)&&void 0!==n&&null!==(n=n.introPhase)&&void 0!==n&&null!==(n=n.price)&&void 0!==n&&n.formatted?null===(f=this.googleOffer)||void 0===f||null===(f=f.introPhase)||void 0===f||null===(f=f.price)||void 0===f?void 0:f.formatted:""}get currency(){var n;return this.purchaseService.getCurrencySymbolFromCurrencyCode(null===(n=this.purchaseService.getUserCurrency())||void 0===n?void 0:n.toUpperCase())}get webYearlyPrice(){var n;const t=this.purchaseService.webProductYear;if(!t)return;let o=null==t?void 0:t.default_price.currency_options[null===(n=this.purchaseService.getUserCurrency())||void 0===n?void 0:n.toLowerCase()];return o||(o=null==t?void 0:t.default_price.currency_options.usd),this.transformCurrencyAmount.transform(o.unit_amount)}get webYearlyPriceMonthly(){var n;const t=this.purchaseService.webProductYear;if(!t)return;let o=null==t?void 0:t.default_price.currency_options[null===(n=this.purchaseService.getUserCurrency())||void 0===n?void 0:n.toLowerCase()];return o||(o=null==t?void 0:t.default_price.currency_options.usd),this.transformCurrencyAmount.transform(o.unit_amount/12)}get discountedPriceLabel(){if(this.special.includes("30")){let n=this.languageService.label.txt_promotional_offer_price_desc;return n=this.utilsService.isWebVersion?n.replace("[monthlyPrice]",this.webYearlyPriceMonthly).replace("[annualPrice]",this.webYearlyPrice).replace("[discountPrice]",this.discountedRate):n.replace("[monthlyPrice]",this.annualRatePerMonth).replace("[annualPrice]",this.annualRate).replace("[discountPrice]",this.discountedRate),n}if(this.special.includes("month")){let n=this.languageService.label.txt_promotional_offer_price_desc_1month_trial;return"promotion"===this.offerType&&(n=this.languageService.label.txt_promotional_offer_price_desc_3month_trial),("winback"===this.offerType||"organic-socials"===this.offerType)&&(n=this.languageService.label.txt_promotional_offer_price_desc_1month_trial),this.utilsService.isWebVersion&&n?n=n.replace("[monthlyPrice]",this.webYearlyPriceMonthly).replace("[annualPrice]",this.webYearlyPrice):n&&(n=n.replace("[monthlyPrice]",this.annualRatePerMonth).replace("[annualPrice]",this.annualRate)),n}return""}ngOnInit(){var n=this;return(0,L.A)(function*(){n.setShowPodcastLabel(),n.utilsService.isWebVersion||!n.purchaseService.offerType?n.route.queryParams.subscribe(o=>{o.offer&&(n.offerType=o.offer),o.special&&(n.special=o.special),o.purchaseSuccess&&n.navCtrl.navigateRoot("/purchase")}):(n.purchaseService.offerType&&(n.offerType=n.purchaseService.offerType),n.purchaseService.specialDiscount&&(n.special=n.purchaseService.specialDiscount)),"winback"===n.offerType?C.gT.setCurrentScreen({screenName:"screen_winback_offer"}):"promotion"===n.offerType?C.gT.setCurrentScreen({screenName:"screen_promotional_offer"}):"organic-socials"===n.offerType&&C.gT.setCurrentScreen({screenName:"screen_organic_socials_offer"}),n.isReady=!0;const t=yield n.loadingController.create({message:n.languageService.label.txt_loader_label});t.present(),P.P.getOfferings().then(function(){var o=(0,L.A)(function*(l){if(n.isReady=!0,n.annualPackage=l.all["premium.universal"].availablePackages.find(g=>g.packageType===P.iE.ANNUAL),t.dismiss(),n.platform.is("ios")){if(n.platform.is("ios")){let g;const A={"promotion-30percent":"promo_30_percent_off_email","promotion-home30":"promo_home_30_percent_off","promotion-3months":"promo_3_month_free","organic-socials-1month":"socials_1_month_free"}["".concat(n.offerType,"-").concat(n.special)];g=-1,A&&(g=n.annualPackage.product.discounts.findIndex(X=>X.identifier===A)),-1!==g&&(n.getPromotionalOfferOptions={product:n.annualPackage.product,discount:n.annualPackage.product.discounts[g]},n.paymentDiscount=yield P.P.getPromotionalOffer(n.getPromotionalOfferOptions)),t.isOpen&&t.dismiss()}}else if("winback"===n.offerType)if("30percent"===n.special){var u;n.googleOffer=null===(u=n.annualPackage.product.subscriptionOptions)||void 0===u?void 0:u.find(g=>{var p;return null===(p=g.tags)||void 0===p?void 0:p.includes("win-back-30-off")})}else{var f;n.googleOffer=null===(f=n.annualPackage.product.subscriptionOptions)||void 0===f?void 0:f.find(g=>{var p;return null===(p=g.tags)||void 0===p?void 0:p.includes("winback-free-month")})}else if("30percent"===n.special){var m;n.googleOffer=null===(m=n.annualPackage.product.subscriptionOptions)||void 0===m?void 0:m.find(g=>{var p;return null===(p=g.tags)||void 0===p?void 0:p.includes("promo-30-off-email")})}else if("home30"===n.special){var v;n.googleOffer=null===(v=n.annualPackage.product.subscriptionOptions)||void 0===v?void 0:v.find(g=>{var p;return null===(p=g.tags)||void 0===p?void 0:p.includes("promotional-home-30")})}else if("1month"===n.special&&"organic-socials"===n.offerType){var h;n.googleOffer=null===(h=n.annualPackage.product.subscriptionOptions)||void 0===h?void 0:h.find(g=>{var p;return null===(p=g.tags)||void 0===p?void 0:p.includes("social-free-month")})}else{var _;n.googleOffer=null===(_=n.annualPackage.product.subscriptionOptions)||void 0===_?void 0:_.find(g=>{var p;return null===(p=g.tags)||void 0===p?void 0:p.includes("promo-3-months-free")})}});return function(l){return o.apply(this,arguments)}}()).catch(o=>{console.log(o)}),n.initPane()})()}initPane(){const n={fitHeight:!0,backdrop:!0,topperOverflow:!1,backdropOpacity:.8,bottomClose:!0,showDraggable:!1,upperThanTop:!0,bottomOffset:20+this.utilsService.getAndroidBottomSafeArea(),cssClass:"bulletin-
1pane",events:{onDidDismiss:()=>{this.goToNextPage()}}};this.bulletIn=new k.U(".bulletin",n)}purchase(){var n=this;return(0,L.A)(function*(){var t;if(n.utilsService.isWebVersion||(C.gT.logEvent({name:"click_promotional_shop_button_cta",params:{level:n.storageService.userLevel}}),null===(t=n.af)||void 0===t||t.logEvent({eventName:"click_promotional_shop_button_cta",eventValue:{level:n.storageService.userLevel}})),n.platform.is("ios")){if("promotion"===n.offerType||"organic-socials"===n.offerType){const o=yield n.loadingController.create({message:n.languageService.label.txt_loader_label});o.present(),console.log("Purchasing with Apple promo offer",n.paymentDiscount),n.paymentDiscount||(yield P.P.getPromotionalOffer(n.getPromotionalOfferOptions).then(l=>{n.paymentDiscount=l}).catch(()=>{alert("Ineligible for this promotional offer. Please contact [email protected] ")})),yield n.purchaseService.awaitAttributesReadyForPurchase(),yield P.P.purchaseDiscountedPackage({aPackage:n.annualPackage,discount:n.paymentDiscount}).then(()=>{console.log("Purchase successful",n.paymentDiscount),"promotion"===n.offerType?(n.utilsService.trackingString=r.nW.PROMOTION,n.sendEvent(r.mN.PROMOTION)):"organic-socials"===n.offerType&&(n.utilsService.trackingString=r.nW.ORGANICSOCIALS,n.sendEvent(r.mN.ORGANICSOCIALS)),n.onboardingService.isActive&&(n.onboardingService.didPurchase=!0),n.purchaseService.makeUserPremium({}),n.onboardingService.isActive?n.showPurchaseSuccess():n.purchaseService.succesfullPurchase(),n.sendEvents(),o.dismiss()}).catch(l=>{o.dismiss(),console.log("Purchase was not successful",JSON.stringify(l))})}else if("winback"===n.offerType){const o="30percent"===n.special?"https://apps.apple.com/win-back/6753331442":"https://apps.apple.com/win-back/6753332103";return n.utilsService.isWebVersion?window.open(o,"_blank"):(yield P.P.showInAppMessages(),yield N.P.open({url:o})),setTimeout((0,L.A)(function*(){n.navCtrl.navigateRoot("/home"),n.sendEvents(),yield P.P.syncPurchases()}),2e3),n.utilsService.trackingString=r.nW.WINBACK,void n.sendEvent(r.mN.WINBACK)}}else if(!n.platform.is("ios"))try{yield n.purchaseService.awaitAttributesReadyForPurchase(),P.P.purchaseSubscriptionOption({subscriptionOption:n.googleOffer}).then(()=>{"promotion"===n.offerType?(n.utilsService.trackingString=r.nW.PROMOTION,n.sendEvent(r.mN.PROMOTION)):"organic-socials"===n.offerType?(n.utilsService.trackingString=r.nW.ORGANICSOCIALS,n.sendEvent(r.mN.ORGANICSOCIALS)):"winback"===n.offerType&&(n.utilsService.trackingString=r.nW.WINBACK,n.sendEvent(r.mN.WINBACK)),n.purchaseService.makeUserPremium({}),n.onboardingService.isActive?n.showPurchaseSuccess():n.purchaseService.succesfullPurchase(),n.sendEvents()}).catch(o=>{console.log("Purchase was not successful",JSON.stringify(o))})}catch(o){o.userCancelled?console.log("User cancelled win-back purchase"):alert("Win-back purchase failed: "+o)}if(!n.authService.token&&n.utilsService.isWebVersion)return n.navCtrl.navigateForward("/create-account"),void n.authService.setLoginPageOrigin(E.P.WEB_SHOP);if(n.utilsService.isWebVersion){if(n.isLoading)return;n.isLoading=!0,n.purchaseWeb()}})()}purchaseWeb(){var n=this;return(0,L.A)(function*(){const t=yield n.authService.loadUserFromStorage(),o=yield n.authService.loadTokenFromStorage();if(!t||!o)return n.authService.webShopRegistration=!0,void C.gT.setCurrentScreen({screenName:"web_shop_create_account"});n.isLoading=!0,n.purchaseService.changeWebAppPlan(n.activeProduct),setTimeout(()=>{n.navCtrl.navigateForward("start-learning")},1e3),n.exit()})()}sendEvent(n){var t;C.gT.logEvent({name:n,params:{}}),null===(t=this.af)||void 0===t||t.logEvent({eventName:n})}exit(){if(this.onboardingService.isActive)return this.sendOnboardingCompletedEvent(),void this.goToNextPage();this.navCtrl.navigateRoot("/home")}sendOnboardingCompletedEvent(){var n,t;null===(n=this.af)||void 0===n||n.logEvent({eventName:"promo_onboarding_completed_".concat(this.languageService.origin),eventValue:{}}),C.gT.logEvent({name:"promo_onboarding_completed_".concat(this.languageService.origin),params:{}}),null===(t=this.af)||void 0===t||t.logEvent({eventName:"promo_onboarding_completed",eventValue:{}}),C.gT.logEvent({name:"promo_onboarding_completed",params:{}})}showPurchaseSuccess(){this.bulletIn.present({animate:!0}),this.sendConfetti(),this.sendOnboardingCompletedEvent()}sendEvents(){let n;n=this.onboardingService.isActive?{promotion:"screen_promotion_onboarding_thank_you_purchase",winback:"screen_winback_onboarding_thank_you_purchase"}:{promotion:"screen_promotion_thank_you_purchase",winback:"screen_winback_thank_you_purchase"};const t=n[this.offerType];t&&(C.gT.setCurrentScreen({screenName:t}),this.gtmService.pushTag({event:"successful_purchase_origin",category:t}))}hapticFeedback(){R.dn.impact({style:R.kn.Medium})}redirectToCheckout(n){Stripe(b.c.stripe.key).redirectToCheckout({sessionId:n})}goToNextPage(){if(this.utilsService.isWebVersion)this.navCtrl.navigateRoot("/home");else if(this.authService.user){if(this.platform.is("ios"))return void("apple-sso"===this.authService.signupMethod&&this.authService.user.email.includes("privaterelay")?this.navCtrl.navigateForward("/complete-profile"):this.navCtrl.navigateForward("/permission-notification"));if(this.platform.is("android"))return void this.navCtrl.navigateForward(this.onboardingService.isAndroidPermission?"/permission-notification":"/home");this.navCtrl.navigateForward("/permission-notification")}else this.navCtrl.navigateRoot("/onboarding-register")}closePane(){this.settingsService.loginPane.hide(),(0,M.O)(1500).subscribe(()=>{this.settingsService.loginPane.destroy()})}successLogin(n){this.loginManagerService.handleSuccessfulLogin(n),this.closePane()}setShowPodcastLabel(){("es"===this.languageService.origin||"de"===this.languageService.origin)&&"en"===this.languageService.target&&(this.showPodcastLabel=!0),"en"===this.languageService.origin&&"zh-hant"===this.languageService.target&&(this.showPodcastLabel=!0)}sendConfetti(){O.A({particleCount:100,spread:70,colors:["#21a5a3","#1c9694","#15A9C6"],origin:{y:.6}}),R.dn.impact({style:R.kn.Heavy})}}return(i=c).\u0275fac=function(n){return new(n||i)(e.rXU(G.g),e.rXU(H.zZ),e.rXU(w.I),e.rXU(d.Y),e.rXU(V.n),e.rXU(Z.q9),e.rXU(Z.OD),e.rXU(U.T),e.rXU(T.Xi),e.rXU(Q.P),e.rXU(E.u),e.rXU(J.AR),e.rXU(B.x),e.rXU($.nX),e.rXU(q.h),e.rXU(y.G))},i.\u0275cmp=e.VBU({type:i,selectors:[["app-promotion-shop"]],standalone:!1,decls:56,vars:33,consts:[["scroll-y","false",2,"position","relative"],[1,"back-close",3,"click"],["name","close-outline",4,"ngIf"],["name","arrow-forward-outline",4,"ngIf"],[1,"container"],[1,"headline"],[1,"logo",3,"ngClass"],["src","../../../assets/svg/logo-vertical-light.svg","alt",""],[1,"left-align",3,"ngClass"],["class","mini top-lower",4,"ngIf"],["class","orange",3,"innerHTML",4,"ngIf"],[1,"list"],[4,"ngIf"],[1,"emoji"],[3,"innerHTML"],[1,"info",3,"innerHTML"],[1,"cta-area"],[3,"touchstart","click"],["class","secured",4,"ngIf"],[1,"bulletin"],[1,"element-wrapper"],[1,"element"],[1,"number"],[1,"text",3,"innerHTML"],[1,"cta",3,"click"],["name","close-outline"],["name","arrow-forward-outline"],[1,"mini","top-lower"],[1,"orange",3,"innerHTML"],["name","crescent",4,"ngIf"],["name","crescent"],[1,"secured"],["name","shield-checkmark-outline"],["width","120","height","28","viewBox","0 0 120 28","fill","none","xmlns","http://www.w3.org/2000/svg"],["opacity","0.5","fill-rule","evenodd","clip-rule","evenodd","d","M113.95 27.5555H6.05042C2.70857 27.5555 0 24.7326 0 21.2498V6.53625C0 3.05336 2.70857 0.230469 6.05042 0.230469H113.95C117.291 0.230469 120 3.05336 120 6.53625V21.2498C120 24.7326 117.291 27.5555 113.95 27.5555ZM118.992 6.53625C118.992 3.63454 116.734 1.28143 113.95 1.28143H6.05042C3.26622 1.28143 1.0084 3.63454 1.0084 6.53625V21.2498C1.0084 24.1515 3.26622 26.5046 6.05042 26.5046H113.95C116.734 26.5046 118.992 24.1515 118.992 21.2498V6.53625Z","fill","#424770"],["opacity","0.8","fill-rule","evenodd","clip-rule","evenodd","d","M61.2096 19.6068H59.8937L60.9122 16.9857L58.8853 11.6552H60.2759L61.5495 15.2832L62.8332 11.6552H64.2238L61.2096 19.6068ZM56.1575 17.3178C55.7017 17.3178 55.2338 17.1413 54.8103 16.7976V17.1854H53.452V9.23276H54.8103V12.0315C55.2338 11.6994 55.7017 11.5228 56.1575 11.5228C57.5794 11.5228 58.5555 12.7167 58.5555 14.4203C58.5555 16.1229 57.5794 17.3178 56.1575 17.3178ZM55.8712 12.7388C55.5001 12.7388 55.128 12.9048 54.8103 13.2369V15.6037C55.128 15.9348 55.5001 16.1008 55.8712 16.1008C56.6355 16.1008 57.1659 15.4156 57.1659 14.4203C57.1659 13.4251 56.6355 12.7388 55.8712 12.7388ZM47.9532 16.7976C47.5397 17.1413 47.0728 17.3178 46.6059 17.3178C45.1942 17.3178 44.208 16.1229 44.208 14.4203C44.208 12.7167 45.1942 11.5228 46.6059 11.5228C47.0728 11.5228 47.5397 11.6994 47.9532 12.0315V9.23276H49.3226V17.1854H47.9532V16.7976ZM47.9532 13.2369C47.6456 12.9048 47.2745 12.7388 46.9034
112.7388C46.128 12.7388 45.5975 13.4251 45.5975 14.4203C45.5975 15.4156 46.128 16.1008 46.9034 16.1008C47.2745 16.1008 47.6456 15.9348 47.9532 15.6037V13.2369ZM39.8668 14.8071C39.9515 15.6478 40.5888 16.2227 41.4792 16.2227C41.9683 16.2227 42.5088 16.0346 43.0604 15.7025V16.8869C42.4564 17.1738 41.8513 17.3178 41.2564 17.3178C39.654 17.3178 38.5296 16.1008 38.5296 14.3762C38.5296 12.7062 39.6328 11.5228 41.1505 11.5228C42.5411 11.5228 43.4849 12.6621 43.4849 14.2868C43.4849 14.4424 43.4849 14.619 43.4638 14.8071H39.8668ZM41.098 12.6169C40.4396 12.6169 39.9303 13.1266 39.8668 13.8896H42.1801C42.1377 13.1371 41.7031 12.6169 41.098 12.6169ZM36.29 13.4913V17.1854H34.9317V11.6552H36.29V12.208C36.6722 11.7656 37.1391 11.5228 37.5949 11.5228C37.7441 11.5228 37.8923 11.5333 38.0406 11.5775V12.8386C37.8923 12.7945 37.7229 12.7724 37.5636 12.7724C37.1179 12.7724 36.6399 13.0267 36.29 13.4913ZM30.2305 14.8071C30.3152 15.6478 30.9515 16.2227 31.8429 16.2227C32.331 16.2227 32.8725 16.0346 33.4241 15.7025V16.8869C32.8191 17.1738 32.214 17.3178 31.6201 17.3178C30.0177 17.3178 28.8933 16.1008 28.8933 14.3762C28.8933 12.7062 29.9965 11.5228 31.5142 11.5228C32.9038 11.5228 33.8486 12.6621 33.8486 14.2868C33.8486 14.4424 33.8486 14.619 33.8275 14.8071H30.2305ZM31.4607 12.6169C30.8033 12.6169 30.294 13.1266 30.2305 13.8896H32.5438C32.5014 13.1371 32.0658 12.6169 31.4607 12.6169ZM25.4859 17.1854L24.4029 13.4251L23.331 17.1854H22.1108L20.2856 11.6552H21.6439L22.7159 15.4156L23.7878 11.6552H25.018L26.09 15.4156L27.1619 11.6552H28.5202L26.7061 17.1854H25.4859ZM17.1858 17.3178C15.5834 17.3178 14.448 16.1124 14.448 14.4203C14.448 12.7167 15.5834 11.5228 17.1858 11.5228C18.7881 11.5228 19.9135 12.7167 19.9135 14.4203C19.9135 16.1124 18.7881 17.3178 17.1858 17.3178ZM17.1858 12.7062C16.3901 12.7062 15.8385 13.403 15.8385 14.4203C15.8385 15.4377 16.3901 16.1344 17.1858 16.1344C17.9713 16.1344 18.5229 15.4377 18.5229 14.4203C18.5229 13.403 17.9713 12.7062 17.1858 12.7062ZM11.2211 14.4529H10.0009V17.1854H8.64258V9.57538H11.2211C12.7075 9.57538 13.7683 10.5822 13.7683 12.0199C13.7683 13.4576 12.7075 14.4529 11.2211 14.4529ZM11.0305 10.7262H10.0009V13.3031H11.0305C11.816 13.3031 12.3676 12.7829 12.3676 12.0199C12.3676 11.2464 11.816 10.7262 11.0305 10.7262ZM112.049 14.9973H106.444C106.572 16.3961 107.555 16.8081 108.671 16.8081C109.808 16.8081 110.703 16.558 111.484 16.1481V18.5517C110.706 19.0015 109.679 19.3252 108.31 19.3252C105.521 19.3252 103.567 17.5049 103.567 13.9064C103.567 10.867 105.224 8.454 107.948 8.454C110.668 8.454 112.088 10.866 112.088 13.9222C112.088 14.2112 112.062 14.8365 112.049 14.9973ZM107.93 10.887C107.214 10.887 106.418 11.4503 106.418 12.7945H109.379C109.379 11.4513 108.633 10.887 107.93 10.887ZM98.932 19.3252C97.9296 19.3252 97.3175 18.8848 96.9061 18.5706L96.9001 21.9473L94.0372 22.5821L94.0362 8.65263H96.5572L96.7065 9.38936C97.1017 9.0047 97.8268 8.454 98.9491 8.454C100.96 8.454 102.854 10.3415 102.854 13.816C102.854 17.6079 100.98 19.3252 98.932 19.3252ZM98.2644 11.0972C97.608 11.0972 97.1955 11.3473 96.897 11.6889L96.9142 16.1229C97.1925 16.4371 97.5928 16.6894 98.2644 16.6894C99.3233 16.6894 100.033 15.4881 100.033 13.8812C100.033 12.3205 99.3122 11.0972 98.2644 11.0972ZM89.8977 8.65263H92.7717V19.1118H89.8977V8.65263ZM89.8977 5.31267L92.7717 4.67578V7.10666L89.8977 7.74355V5.31267ZM86.8332 12.021V19.1118H83.9713V8.65263H86.447L86.6264 9.53439C87.297 8.25011 88.6352 8.51075 89.0164 8.65368V11.3967C88.6523 11.2737 87.5098 11.0951 86.8332 12.021ZM80.696 15.4429C80.696 17.2012 82.5031 16.6536 82.8691 16.5012V18.93C82.488 19.1486 81.7962 19.3252 80.8604 19.3252C79.1612 19.3252 77.8856 18.0209 77.8856 16.2543L77.8987 6.68102L80.694 6.06095L80.696 8.65263H82.8701V11.197H80.696V15.4429ZM77.1273 15.9516C77.1273 18.0997 75.4866 19.3252 73.1058 19.3252C72.1185 19.3252 71.0396 19.1255 69.9747 18.6484V15.7992C70.9357 16.3436 72.1599 16.7524 73.1088 16.7524C73.7471 16.7524 74.2069 16.5737 74.2069 16.022C74.2069 14.5979 69.8547 15.1339 69.8547 11.8307C69.8547 9.71831 71.4026 8.454 73.7249 8.454C74.6738 8.454 75.6217 8.60534 76.5706 8.99945V11.8108C75.6994 11.32 74.5932 11.0425 73.7229 11.0425C73.1229 11.0425 72.7498 11.2233 72.7498 11.6889C72.7498 13.032 77.1273 12.393 77.1273 15.9516Z","fill","#424770"]],template:function(n,t){1&n&&(e.j41(0,"ion-content",0)(1,"div",1),e.bIt("click",function(){return t.exit()}),e.DNE(2,te,1,0,"ion-icon",2)(3,ie,1,0,"ion-icon",3),e.k0s(),e.j41(4,"div",4)(5,"div")(6,"div",5)(7,"div",6),e.nrm(8,"img",7),e.k0s(),e.j41(9,"h1",8),e.DNE(10,oe,2,1,"span",9)(11,re,2,1,"span",9),e.nrm(12,"br"),e.DNE(13,ae,2,3,"span",10)(14,se,2,3,"span",10)(15,ce,2,3,"span",10),e.k0s()(),e.j41(16,"div",11),e.DNE(17,le,4,1,"section",12),e.j41(18,"section")(19,"div",13),e.EFF(20,"\u{1f30d}"),e.k0s(),e.nrm(21,"div",14),e.k0s(),e.DNE(22,pe,4,1,"section",12)(23,ge,4,1,"section",12)(24,ue,4,1,"section",12)(25,de,4,1,"section",12),e.k0s(),e.nrm(26,"div",15),e.k0s(),e.j41(27,"div",16)(28,"button",17),e.bIt("touchstart",function(){return t.hapticFeedback()})("click",function(){return t.purchase()}),e.DNE(29,he,4,3,"ng-container",12)(30,Pe,2,1,"ng-container",12),e.k0s(),e.DNE(31,Ce,3,1,"div",18)(32,Se,3,1,"div",18)(33,be,4,0,"div",18),e.k0s()(),e.j41(34,"div",19),e.nrm(35,"h1",14),e.j41(36,"div",20)(37,"div",21)(38,"div",22),e.EFF(39,"1"),e.k0s(),e.nrm(40,"div",23),e.k0s(),e.j41(41,"div",21)(42,"div",22),e.EFF(43,"2"),e.k0s(),e.nrm(44,"div",23),e.k0s(),e.j41(45,"div",21)(46,"div",22),e.EFF(47,"3"),e.k0s(),e.nrm(48,"div",23),e.k0s(),e.j41(49,"div",21)(50,"div",22),e.EFF(51,"4"),e.k0s(),e.nrm(52,"div",23),e.nI1(53,"insertCEFR"),e.k0s()(),e.j41(54,"button",24),e.bIt("click",function(){return t.goToNextPage()}),e.EFF(55),e.k0s()()()),2&n&&(e.R7$(2),e.Y8G("ngIf",!t.onboardingService.isActive),e.R7$(),e.Y8G("ngIf",t.onboardingService.isActive),e.R7$(4),e.Y8G("ngClass",e.eq3(29,z,t.utilsService.isWebVersion&&!t.isDesktop)),e.R7$(2),e.Y8G("ngClass",e.eq3(31,z,t.utilsService.isWebVersion&&!t.isDesktop)),e.R7$(),e.Y8G("ngIf",t.special.includes("30")),e.R7$(),e.Y8G("ngIf",t.special.includes("month")),e.R7$(2),e.Y8G("ngIf",t.special.includes("30")),e.R7$(),e.Y8G("ngIf",("organic-socials"===t.offerType||"winback"===t.offerType)&&t.special.includes("month")),e.R7$(),e.Y8G("ngIf","promotion"===t.offerType&&t.special.includes("month")),e.R7$(2),e.Y8G("ngIf",t.languageService.label.txt_onboarding_shop_benefit_emoji_1),e.R7$(4),e.Y8G("innerHTML",t.languageService.label.txt_onboarding_shop_benefit_emoji_2,e.npT),e.R7$(),e.Y8G("ngIf",t.languageService.label.txt_onboarding_shop_benefit_emoji_3&&!t.showPodcastLabel),e.R7$(),e.Y8G("ngIf",t.languageService.label.txt_onboarding_shop_benefit_emoji_3_podcast&&t.showPodcastLabel),e.R7$(),e.Y8G("ngIf",t.languageService.label.txt_onboarding_shop_benefit_emoji_4),e.R7$(),e.Y8G("ngIf",t.languageService.label.txt_onboarding_shop_benefit_emoji_5),e.R7$(),e.Y8G("innerHTML",t.discountedPriceLabel+"<br>"+t.languageService.label.txt_promotional_offer_cancel,e.npT),e.R7$(3),e.Y8G("ngIf",!t.isLoading),e.R7$(),e.Y8G("ngIf",t.isLoading),e.R7$(),e.Y8G("ngIf",t.platform.is("ios")),e.R7$(),e.Y8G("ngIf",t.isAndroid),e.R7$(),e.Y8G("ngIf",t.utilsService.isWebVersion),e.R7$(2),e.Y8G("innerHTML",t.languageService.label.txt_onboarding_purchase_bulletin_title||"txt_onboarding_purchase_bulletin_title",e.npT),e.R7$(5),e.Y8G("innerHTML",t.languageService.label.txt_onboarding_purchase_bulletin_step1,e.npT),e.R7$(4),e.Y8G("innerHTML",t.languageService.label.txt_onboarding_purchase_bulletin_step2,e.npT),e.R7$(4),e.Y8G("innerHTML",t.languageService.label.txt_onboarding_purchase_bulletin_step3,e.npT),e.R7$(4),e.Y8G("innerHTML",e.bMT(53,27,t.languageService.label["txt_onboarding_purchase_bulletin_step4_"+t.languageService.origin]),e.npT),e.R7$(3),e.JRh(t.languageService.label.txt_onboarding_purchase_cta))},dependencies:[x.YU,x.bT,T.W9,T.iq,T.w2,ee.$,ne.I],styles:['@charset "UTF-8";ion-content[_ngcontent-%COMP%]{--background: var(--shop-bg)}.check[_ngcontent-%COMP%]{font-size:20px;color:#fff;display:flex;position:absolute;bottom:7px;right:7px}.container[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.container[_ngcontent-%COMP%]{scrollbar-width:none;-ms-overflow-style:none;color:#fff;padding:calc(var(--ion-safe-area-top) + 40px) 20px 170px 20px;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;height:100%;max-width:450px;margin:0 auto;overflow:scroll}.container.noscroll[_ngcontent-%COMP%]{overflow:hidden}@media(max-height:750px){.container[_ngcontent-%COMP%]{padding-top:calc(var(--ion-safe-area-top) + 25px);height:100%;overflow-y:scroll}}.container[_ngcontent-%COMP%] .info[_ngcontent-%COMP%]{font-size:18px;margin-bottom:15px;margin-top:25px;color:#fff;text-align:left}.container[_ngcontent-%COMP%] .headline[_ngcontent-%COMP%]{display:block}.container[_ngcontent-%COMP%] .headline[_ngcontent-%COMP%] .mini[_ngcontent-%COMP%]{font-size:17px}.container[_ngcontent-%COMP%] .headline[_ngcontent-%COMP%] .mini.top-lower[_ngcontent-%COMP%]{position:relative;bottom:-5px}.container[_ngcontent-%COMP%] .headline[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:30px}.container[_ngcontent-%COMP%] .headline[_ngcontent-%COMP%] .logo.web[_ngcontent-%COMP%]{display:none}.container[_ngcontent-%COMP%] .headline[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:40px}@media(max-height:700px){.container[_ngcontent-%COMP%] .headline[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:none}}.container[_ngcontent-%COMP%] .headline[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:28px;font-family:var(--font-bold);line-height:38px;margin:unset;text-align:center;position:relative;z-index:2}.container[_ngcontent-%COMP%] .headline[_ngcontent-%COMP%] h1.web[_ngcontent-%COMP%]{margin-top:30px!important}.container[_ngcontent-%COMP%] .headline[_ngcontent-%COMP%] h1.left-align[_ngcontent-%COMP%]{margin-top:10px;text-align:left}@media(min-height:900px){.container[_ngcontent-%COMP%] .headline[_ngcontent-%COMP%] h1.cart-iPad[_ngcontent-%COMP%]{margin-bottom:50px}}@media(max-height:700px){.container[_ngcontent-%COMP%] .headline[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:22px;line-height:26px}}.container[_ngcontent-%COMP%] .headline[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .orange[_ngcontent-%COMP%]{background:var(--shop-headline-highlight);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.container[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] .emoji[_ngcontent-%COMP%]{margin-right:12px;font-size:20px}.container[_ngcontent-%COMP%] .list[_ngcontent-%COMP%]{margin-top:25px}.container[_ngcontent-%COMP%] .list.web[_ngcontent-%COMP%]{margin-bottom:35px}@media(max-height:700px){.container[_ngcontent-%COMP%] .list[_ngcontent-%COMP%]{margin-top:15px}.container[_ngcontent-%COMP%] .list.web[_ngcontent-%COMP%]{margin-bottom:25px}}
1.container[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:10px;font-size:18px}@media(max-height:750px){.container[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{margin-bottom:5px}}.container[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .orange[_ngcontent-%COMP%]{color:#ffb904}.container[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] section[_ngcontent-%COMP%]:last-of-type{margin-bottom:unset}.back-close[_ngcontent-%COMP%]{position:absolute;top:calc(15px + var(--ion-safe-area-top));color:#fff;font-size:22px;right:15px;width:36px;height:36px;background-color:var(--shop-exit-bg);border-radius:50%;display:flex;justify-content:center;align-items:center;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);z-index:10000}.cta-area[_ngcontent-%COMP%]{width:100%;bottom:0;position:absolute;background:var(--shop-cta-area-bg);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:10px 20px calc(var(--ion-safe-area-bottom) + 10px) 20px;margin:0 -20px;text-align:center;z-index:11}@media(max-height:700px){.cta-area[_ngcontent-%COMP%]{padding:0 20px calc(var(--ion-safe-area-bottom) + 5px) 20px}}.cta-area[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#fff;background:var(--shop-cta-bg, #f1ad03);font-family:var(--font-bold);border-radius:12px;padding:12px;text-align:center;margin:0 auto;width:100%;font-size:16px;min-height:45px;max-width:410px}.cta-area[_ngcontent-%COMP%] button[_ngcontent-%COMP%] ion-spinner[_ngcontent-%COMP%]{color:#fff;height:18px}.cta-area[_ngcontent-%COMP%] button.btn-alt[_ngcontent-%COMP%]{background-color:unset;color:var(--ion-color-primary);margin-top:8px}.cta-area[_ngcontent-%COMP%] button.lifetime-web-btn[_ngcontent-%COMP%]{background:none;color:#fff;text-decoration:underline;font-size:14px;min-height:unset;padding:8px}.cta-area[_ngcontent-%COMP%] .secured[_ngcontent-%COMP%]{font-size:13px;display:flex;margin:10px auto 0;padding:2px 10px;width:-moz-max-content;width:max-content;align-items:center;color:#fff}@media(max-height:700px){.cta-area[_ngcontent-%COMP%] .secured.web[_ngcontent-%COMP%]{scale:.9;margin:5px auto 0}}.cta-area[_ngcontent-%COMP%] .secured[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{margin-right:5px;width:18px;height:18px}.cta-area[_ngcontent-%COMP%] .secured[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:#fff}.pane[_ngcontent-%COMP%]{border-radius:30px!important;width:calc(100% - 16px)!important;margin:auto;left:0;right:0;height:auto!important}.bulletin[_ngcontent-%COMP%]{padding:15px;text-align:center}.bulletin[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:20px;font-family:var(--font-bold);margin:unset;margin-bottom:10px;color:var(--readle-font-color-main)}.bulletin[_ngcontent-%COMP%] .element-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;margin-bottom:25px;margin-top:25px;position:relative;z-index:1}.bulletin[_ngcontent-%COMP%] .element-wrapper[_ngcontent-%COMP%] .element[_ngcontent-%COMP%]{display:flex;gap:20px;background:var(--shop-purchase-element-background);padding:10px 16px;border-radius:12px;position:relative;z-index:4}.bulletin[_ngcontent-%COMP%] .element-wrapper[_ngcontent-%COMP%] .element[_ngcontent-%COMP%] .number[_ngcontent-%COMP%]{color:#fff;position:relative;z-index:1}.bulletin[_ngcontent-%COMP%] .element-wrapper[_ngcontent-%COMP%] .element[_ngcontent-%COMP%] .number[_ngcontent-%COMP%]:after{content:"";position:absolute;width:23px;height:23px;background:var(--ion-color-primary);border-radius:50%;top:50%;left:-7px;transform:translateY(-50%);z-index:-1}.bulletin[_ngcontent-%COMP%] .element-wrapper[_ngcontent-%COMP%] .element[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{color:var(--readle-font-color-main)}.bulletin[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#fff;background-color:var(--ion-color-primary);font-family:var(--font-bold);border-radius:12px;padding:12px;text-align:center;margin:0 auto;width:100%;font-size:16px;min-height:46px}']}),c})();const ye=[{path:"",component:Me}];let Oe=(()=>{var i;class c{}return(i=c).\u0275fac=function(n){return new(n||i)},i.\u0275mod=e.$C({type:i}),i.\u0275inj=j.G2t({imports:[I.iI.forChild(ye),I.iI]}),c})();var xe=a(41683),Te=a(55553);let Ie=(()=>{var i;class c{}return(i=c).\u0275fac=function(n){return new(n||i)},i.\u0275mod=e.$C({type:i}),i.\u0275inj=j.G2t({providers:[w.I,d.Y],imports:[x.MD,D.YN,T.bv,Oe,xe.Y,Te.h]}),c})()},84712(K,F,a){a.d(F,{G:()=>w});var x=a(89204),D=a(38299),T=a(13151),I=a(77320),L=a(59888),G=a(20948),H=a(58222),V=a(22821),R=a(47030),b=a(66563),U=a(23123),E=a(61811);let w=(()=>{var P;class k{constructor(C,r,d,S,M,y,O,N){this.authService=C,this.purchaseService=r,this.storageService=d,this.languageService=S,this.loadingController=M,this.platform=y,this.navCtrl=O,this.sqliteService=N}handleSuccessfulLogin(C){var r=this;return(0,x.A)(function*(){r.purchaseService.switchUserAccount().c
1atch(S=>{console.error("There was an error configuring purchasing",S)});const d=C.data.user;if(d){if(!d.userId){yield r.authService.storeUserData({userId:r.authService.anonymousUserId});const S=d;S.userId=r.authService.anonymousUserId,d.userId=S.userId,r.authService.setUser(S)}if(r.platform.is("cordova")&&(d.email&&I.Ay.User.addEmail(d.email),d.userId&&(I.Ay.login(d.userId),r.purchaseService.syncOnesignalUser())),d){if(d.selectedLanguage||d.selectedLevel){const M=r.storageService.userLevel;r.languageService.origin!==d.selectedLanguage&&(yield(yield r.loadingController.create({spinner:"lines-small",duration:3e3,message:r.languageService.label.change_lang_loading_message,translucent:!0,cssClass:"custom-class custom-loading",backdropDismiss:!1})).present(),r.languageService.setOrigin(d.selectedLanguage,!1)),M!==d.selectedLevel&&(r.storageService.storeUserLevel(d.selectedLevel,!1),D.gT.setUserProperty({key:"level",value:d.selectedLevel}));try{I.Ay.User.addTag("language",d.selectedLanguage),I.Ay.User.addTag("level",d.selectedLevel)}catch(y){console.log("Cordova possibly not available")}}else r.authService.storeUserData({selectedLanguage:r.languageService.origin,selectedLevel:r.storageService.userLevel}).then(()=>{console.log("Stored local data into database")},y=>{console.log("Error storing local data into database",y)});r.authService.loadCompleteUserData(r.languageService.origin).then(function(){var S=(0,x.A)(function*(M){var y;r.authService.trackAccountCreated(),r.authService.setUser(M),setTimeout((0,x.A)(function*(){if(r.authService.newAccount){let O=yield r.sqliteService.getItem((0,T._P)(r.languageService.origin));O=O?JSON.parse(O):[],console.log(O,"openedStories"),console.log(M),yield r.storageService.storeInitUserDataOnServer()}r.authService.newAccount&&"apple-sso"===r.authService.signupMethod&&r.authService.user.email.includes("privaterelay")&&r.navCtrl.navigateRoot("/complete-profile")}),500),(!r.authService.user.data||0===(null===(y=r.authService.user.data)||void 0===y?void 0:y.length)||r.authService.user.data&&!r.authService.user.data[0].training)&&(r.storageService.importLoading||(yield r.storageService.importTrainingDataToServer())),r.purchaseService.checkStripeSubscription(M),r.storageService.initUserDataFromServer(),r.authService.storeUserData({selectedLanguage:r.languageService.origin,selectedLevel:r.storageService.userLevel,userLanguage:r.languageService.target})});return function(M){return S.apply(this,arguments)}}())}D.gT.setUserProperty({key:"loggedin",value:"true"})}})()}}return(P=k).\u0275fac=function(C){return new(C||P)(b.KVO(L.u),b.KVO(H.zZ),b.KVO(R.n),b.KVO(G.g),b.KVO(U.Xi),b.KVO(E.OD),b.KVO(E.q9),b.KVO(V.A))},P.\u0275prov=b.jDH({token:P,factory:P.\u0275fac,providedIn:"root"}),k})()}}]); 2//# sourceMappingURL=src_app_pages_promotion-shop_promotion-shop_module_ts.ff3e79852659d797.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.