1"use strict"; 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="7403d500-d3ab-54cb-8625-438fe2f9b4fb")}catch(e){}}(); 3(self.webpackChunkclient=self.webpackChunkclient||[]).push([["5050"],{2874(e,s,t){t.d(s,{a:()=>v});var i=t(50846),r=t(15526),n=t(79942),a=t(30495),o=t(38107),d=t(34578),l=t(97983),c=t(40554),u=t(56177),p=t(28138),h=t(86977);class v extends i.Q{constructor(e){super("dialogs.introductory.email.template",e,()=>(0,a.p6)(s=>a.jI.shared().v2.dialogs.automation.productions.introductory.get(e,s,{accept:"application/json+videos"})).pipe((0,n.vV)(e=>{var{data:s,xhr:t}=e;return{data:s,ttl:0}}))),this.refreshSubject=new o.m(1),this.userId=e}shouldRefreshData(){return this.refreshSubject.pipe((0,l.u)(()=>!0))}dataUpdates(e){return(0,d.h)(h.I.shared(this.userId).events("event.dialogs.automation.productions.moderated").pipe((0,c.H)(s=>e(void 0).pipe((0,u.s)(1),(0,p.T)(e=>({data:Object.assign({},(null==e?void 0:e.data)||{},{approval:s.approval}),ttl:0}))))),h.I.shared(this.userId).events("event.dialogs.automation.productions.changed").pipe((0,c.H)(s=>e(void 0).pipe((0,u.s)(1),(0,p.T)(e=>({data:Object.assign({},(null==e?void 0:e.data)||{},{approval:s.approval}),ttl:0}))))))}add(e){return(0,a.Yq)(a.jI.shared().v2.dialogs.automation.productions.introductory.post,this.userId,e).pipe((0,n.ex)(()=>{this.refreshSubject.next()}))}update(e){return(0,a.Yq)(a.jI.shared().v2.dialogs.automation.productions.introductory.patch,this.userId,e.id,e).pipe((0,n.ex)(()=>{this.refreshSubject.next()}))}delete(e){return(0,a.Yq)(a.jI.shared().v2.dialogs.automation.productions.introductory.delete,this.userId,e).pipe((0,n.ex)(()=>{this.refreshSubject.next()}))}}v.shared=(0,r.G)(e=>new v(e))},17624(e,s,t){t.d(s,{o:()=>I});var i=t(38107),r=t(34578),n=t(17524),a=t(44383),o=t(92453),d=t(97983),l=t(40554),c=t(56177),u=t(28138),p=t(53940),h=t(39971),v=t(4938),g=t(30495),b=t(79942),m=t(15526),S=t(50846),f=t(86977);class I extends S.Q{fetchData(){return(0,g.p6)(g.jI.shared().v2.dialogs.automation.productions.mingle.get,this.userId).pipe((0,b.vV)(e=>{var s,{data:t,xhr:i}=e;return{data:Object.assign({},t,{consumers:null==t||null==(s=t.consumers)?void 0:s.reverse()}),ttl:Number.MAX_SAFE_INTEGER}}),(0,b.ZC)(e=>404===e.status?h.v.just({data:{},ttl:0}):h.v.error(e)))}constructor(e){super("dialogs.mingle",e,()=>this.fetchData()),this.userId=e,this.mingleEndEventSubject=new i.m(1),this.refreshPeriodicalSubject=new i.m(1),this.mingleEndEventTimeout=null}update(e){var s={};return"text"in e&&e.text?s.text=e.text:"texts"in e&&e.texts&&(s.texts=e.texts.map(e=>({language:e.language,values:Object.entries(e.values).reduce((e,s)=>{var[t,i]=s;return i?Object.assign({},e,{["moods/"+t]:i}):e},{})}))),void 0!==e.allow_modification&&(s.allow_modification=e.allow_modification),(0,g.Yq)(g.jI.shared().v2.dialogs.automation.productions.mingle.put,this.userId,s).pipe((0,b.ex)(()=>this.refreshPeriodicalSubject.next()))}delete(){return(0,g.Yq)(g.jI.shared().v2.dialogs.automation.productions.mingle.delete,this.userId).pipe((0,b.ex)(()=>{this.mingleEndEventSubject.next({active:!1,completionReason:"canceled"})}))}prepareMingle(e,s){if(!s)return e;var t=Object.assign({},s,{active:s.active||!1,consumers:s.consumers||[],amount:s.amount||null});return e.active&&s.active&&(void 0===s.amount&&(t.amount=e.amount),void 0===s.consumers&&(t.consumers=e.consumers)),0===t.amount&&(t.active=!1,t.completionReason="consumers-found"),t}data(){return super.data().pipe((0,a.S)(this.prepareMingle,{}),(0,o.M)(e=>{this.mingleEndEventTimeout&&clearTimeout(this.mingleEndEventTimeout),e.active&&e.lifetime&&v.E.shared().now(s=>{var t=new Date(e.lifetime).getTime()-s;this.mingleEndEventTimeout=setTimeout(()=>{this.mingleEndEventSubject.next({active:!1,completionReason:"lifetime-reached"})},t)})}))}shouldRefreshData(){return f.I.shared(this.userId).realtimeDataShouldBeInvalidated.pipe((0,d.u)(()=>!0))}dataUpdates(e){return(0,r.h)(this.mingleEndEventSubject.pipe((0,l.H)(s=>e(void 0).pipe((0,c.s)(1),(0,u.T)(e=>({data:Object.assign({},(null==e?void 0:e.data)||{},s),ttl:Number.MAX_SAFE_INTEGER}))))),f.I.shared(this.userId).events("event.dialogs.automation.productions.added").pipe((0,p.p)(e=>!!(e["user-id"]&&e.product&&"invitation"===e.product)),(0,l.H)(s=>e(void 0).pipe((0,c.s)(1),(0,u.T)(e=>({data:Object.assign({},(null==e?void 0:e.data)||{},{consumers:[],active:"approved"===s.approval,amount:s.amount,lifetime:s.lifetime}),ttl:Number.MAX_SAFE_INTEGER}))))),f.I.shared(this.userId).events("event.dialogs.automation.productions.removed").pipe((0,p.p)(e=>!!(e["user-id"]&&e.product&&"invitation"===e.product)),(0,l.H)(s=>e(void 0).pipe((0,c.s)(1),(0,u.T)(e=>({data:Object.assign({},(null==e?void 0:e.data)||{},{active:!1}),ttl:Number.MAX_SAFE_INTEGER}))))),f.I.shared(this.userId).events("event.dialogs.automation.productions.found").pipe((0,p.p)(e=>!!(e["user-id"]&&e["consumer-id"]&&e.product&&"invitation"===e.product)),(0,l.H)(s=>e(void 0).pipe((0,c.s)(1),(0,u.T)(e=>{var t=(null==e?void 0:e.data)||{},i=(t.consumers||[]).slice();i.push(s["consumer-id"]);var r=t.amount;r&&r--;var n=Object.assign({},t,{consumers:i,amount:r});return 0===r&&(n.active=!1,n.completionReason="consumers-found"),{data:n,ttl:Number.MAX_SAFE_INTEGER}})))),this.refreshPeriodicalSubject.pipe((0,l.H)(()=>(0,n.z)([this.fetchData(),e(void 0)]).toSingle().pipe((0,b.vV)(e=>{var[s,t]=e;return{data:Object.assign({},(null==t?void 0:t.data)||{},{periodical:null==s?void 0:s.data.periodical,texts:null==s?void 0:s.data.texts}),ttl:Number.MAX_SAFE_INTEGER}})))))}}I.shared=(0,m.G)(e=>new I(e))},96960(e,s,t){t.d(s,{q:()=>d});var i=t(97156),r=t(8733),n=t(15526),a=t(15654),o=t(98153);
3class d{constructor(){this.visibleSubject=new i.t(!1),this.menuItemClickedSubject=new r.B,this.visible=this.visibleSubject.asObservable().pipe((0,a.F)()),this.menuItemClicked=this.menuItemClickedSubject.asObservable();var e=()=>this.setVisible(!0),s=()=>this.setVisible(!1);o.A.states("event.menu.opened",e,"event.menu.closed",s)}setVisible(e){this.visibleSubject.next(e)}notifyMenuItemClicked(){this.menuItemClickedSubject.next()}}d.shared=(0,n.G)(()=>new d)},90814(e,s,t){t.d(s,{c:()=>p});var i=t(43751),r=t(79760),n=t(39971),a=t(50626),o=t(53940),d=t(28138),l=t(91885),c=t(34578),u="change-subscription-plan",p=()=>n.v.defer(()=>{var e=i.Y.shared().get(r.A),s=e.store.rxState().pipe((0,a.J)(),(0,o.p)(e=>{var[s,t]=e;return(null==s?void 0:s.name)===u&&(null==t?void 0:t.name)!==u}),(0,d.T)(()=>l.Q.failure("cancelled"))),t=new n.v(s=>{e.actions.open(u,[{props:{onSubscriptionChanged:()=>{s.success(l.Q.success())}},disableManualClose:!0}])});return(0,c.h)(t,s).toSingle()})},51773(e,s,t){t.d(s,{O:()=>l});var i=t(39971),r=t(79942),n=t(26578),a=t(43751),o=t(45482),d=t(79760),l=()=>o.Session.shared().userIsUsual.toSingle().pipe((0,r.Fg)(e=>e?(a.Y.shared().get(d.A).actions.open("presents-orders-client-modal",[{props:{onClose:()=>a.Y.shared().get(d.A).actions.close("presents-orders-client-modal")},disableManualClose:!0}]),i.v.just()):n.t.shared().activeRoles.toSingle().pipe((0,r.ex)(e=>{e.includes("agencies-operator")?a.Y.shared().get(d.A).actions.open("presents-orders-moderator-modal",[{props:{}}]):a.Y.shared().get(d.A).actions.open("presents-orders",[{props:{}}])}),(0,r.AB)(void 0))))},30152(e,s,t){t.d(s,{V:()=>a,r:()=>n});var i=t(43751),r=t(79760),n=e=>{i.Y.shared().get(r.A).actions.open("settings",[{props:{ownerId:e}}])},a=()=>{i.Y.shared().get(r.A).actions.close("settings")}},42960(e,s,t){t.d(s,{k:()=>p});var i=t(97156),r=t(15526),n=t(17624),a=t(39971),o=t(28280),d=t(85285),l=t(79942),c=t(87902);class u{constructor(e){this.userId=e}notifyUser(e){return(e instanceof Error||"object"==typeof e&&null!==e)&&"status"in e&&"number"==typeof e.status&&402===e.status?a.v.just(void 0).pipe((0,l.Fg)(()=>c.t.shared().model(this.userId).toSingle()),(0,l.ex)(e=>{"services"===e&&o.X.shared().notifyUser({type:d._.MingleLimitReached,payload:{}},d.A.Normal)}),(0,l.Fg)(()=>a.v.error(e))):a.v.error(e)}}u.shared=(0,r.G)(e=>new u(e));class p{constructor(e){this.stepSubject=new i.t("welcome"),this.mingleModeSubject=new i.t(void 0),this.userId=e,this.mingle=n.o.shared(e).data(),this.step=this.stepSubject.asObservable(),this.mingleMode=this.mingleModeSubject.asObservable()}startMingle(e){return n.o.shared(this.userId).update(e)}stopMingle(){return n.o.shared(this.userId).delete()}setStep(e){"welcome"===e&&this.mingleModeSubject.next(void 0),this.stepSubject.next(e)}setMingleMode(e){this.mingleModeSubject.next(e)}}p.shared=(0,r.G)(e=>{var s,t;return s=new p(e),t=u.shared(e),Object.assign({},s,{stopMingle:()=>s.stopMingle(),setStep:e=>s.setStep(e),setMingleMode:e=>s.setMingleMode(e),startMingle:e=>s.startMingle(e).pipe((0,l.ZC)(e=>t.notifyUser(e)))})})},84879(e,s,t){t.d(s,{p:()=>a});var i=t(43751),r=t(79760),n=t(39971),a=e=>n.v.defer(()=>(i.Y.shared().get(r.A).actions.open("mingle",[{props:{cta:e}}]),n.v.just()))},71534(e,s,t){t.d(s,{t:()=>u});var i=t(48830),r=t(15526),n=t(28138),a=t(15654),o=t(36580),d=t(65052),l=t(75992),c=t(98153);class u{constructor(){this.paymentInProcess=l.u$.shared().paymentsStatus.pipe((0,n.T)(e=>Object.keys(e).length>0&&Object.values(e).some(e=>"finished"!==e.name)),(0,a.F)(),(0,o.t)(1)),this.visible=new i.c(e=>{var s=()=>e.next(!0),t=()=>e.next(!1);return c.A.states("event.overlay.purchase.opened",s,"event.overlay.purchase.closed",t),()=>{c.A.removeStates("event.overlay.purchase.opened",s,"event.overlay.purchase.closed",t)}}).pipe((0,d.Z)(!1),(0,a.F)(),(0,o.t)(1))}}u.shared=(0,r.G)(()=>new u)},16095(e,s,t){t.d(s,{s:()=>u});var i=t(39971),r=t(43751),n=t(79760),a=t(34578),o=t(50626),d=t(53940),l=t(28138),c="discounted-subscription-proposal",u=(e,s)=>i.v.defer(()=>{var t=r.Y.shared().get(n.A),u=t.store.rxState().pipe((0,o.J)(),(0,d.p)(e=>{var[s,t]=e;return(null==s?void 0:s.name)===c&&(null==t?void 0:t.name)!==c}),(0,l.T)(()=>"closed")),p=new i.v(i=>{t.actions.open(c,[{props:{renewalPackage:e,source:s,onGetDiscount:()=>{i.success("accepted"),t.actions.close(c)},onContinueToCancel:()=>{i.success("rejected"),t.actions.close(c)}}}])});return(0,a.h)(p,u).toSingle()})},50636(e,s,t){t.d(s,{W:()=>h});var i=t(56177),r=t(15526),n=t(12640),a=t(37418),o=t(13462),d=t(47443),l=t(85338),c=t(53170),u=["discovery","connection","closeness"];function p(e,s){if(e){var t,i,r,n,a,o=(0,d.sR)(e)===l.jB.week,p=Math.round((null!=(t=null!=(i=null==(r=e.recurringPrice)?void 0:r.netPrice)?i:e.price.netPrice)?t:0)/(o?7:30)*100)/100,h=null!=(n=(0,c.I)({price:void 0,recurringPrice:void 0,benefitsAmount:e.benefitsAmount},u,s))?n:"";return{sku_id:e.sku,plan_name:h,price_per_day:p,period_type:o?"week":"month",price:null!=(a=e.price.netPrice)?a:0}}}class h{constructor(e){this.logSubscriptionChanged=(e,s)=>{a.V.shared().logEvent("subscription","view","subscription_plan_changed",void 0),n._.shared(this.userId).logEvent("subscriptions/limited-subscription-changed",{from:e,to:s}).safeSubscribe()},this.logSubscriptionCancellationRequested=(e,s)=>
3{n._.shared(this.userId).logEvent("user-subscription-cancel-requested",{"user-id":this.userId,reason:e,shop:s}).safeSubscribe()},this.logCancellationSubscriptionStarted=()=>{n._.shared(this.userId).logEvent("cancellation-subscription-started",{}).safeSubscribe()},this.logSubscriptionReactivationButtonClicked=()=>{a.V.shared().logEvent("burger_menu","click","reactivate_subscription",void 0)},this.logSubscriptionChangeOpenButtonClicked=()=>{a.V.shared().logEvent("subscription","click","change_subscription_button",void 0)},this.logSubscriptionChangeInSettingsClicked=()=>{a.V.shared().logEvent("subscription","click","change_subscription_in_settings",void 0)},this.logSubscriptionUpgradeOpenButtonClicked=()=>{a.V.shared().logEvent("subscription","click","upgrade_subscription_button",void 0)},this.logSubscriptionChangeOpened=e=>{this.logWithChangePlanPayload(e,e=>{a.V.shared().logEvent("subscription","view","change_subscription_plan",e)})},this.logSubscriptionChangeClosed=()=>{a.V.shared().logEvent("subscription","click","change_subscription_closed",void 0)},this.logSubscriptionChangePlanClicked=e=>{this.logWithChangePlanPayload(e,e=>{a.V.shared().logEvent("subscription","click","plan",e)})},this.logSubscriptionChangeSubmitted=e=>{this.logWithChangePlanPayload(e,e=>{a.V.shared().logEvent("subscription","click","change_plan_button",e)})},this.logSubscriptionChangePeriodChanged=(e,s)=>{this.logWithChangePlanPayload(s,s=>{a.V.shared().logEvent("subscription","click","change_plan_period",Object.assign({period_type:e},s))})},this.userId=e}logRetrySubscriptionPaymentButtonVisible(){a.V.shared().logEvent("burger_menu","view","retry_subscription_payment",void 0)}logRetrySubscriptionPaymentButtonClicked(){a.V.shared().logEvent("burger_menu","click","retry_subscription_payment",void 0)}logWithChangePlanPayload(e,s){o.T.shared().purchaseChooseSubscriptionPackageBadges.pipe((0,i.s)(1)).safeSubscribe(t=>{s({current_plan:p(e.currentPackage,t),updated_plan:p(e.selectedPackage,t)})})}}h.shared=(0,r.G)(e=>new h(e))},63802(e,s,t){t.d(s,{c:()=>i.c});var i=t(90814)},98464(e,s,t){t.d(s,{u:()=>m});var i=t(17524),r=t(46662),n=t(28138),a=t(15654),o=t(36580),d=t(15526),l=t(40753),c=t(33702),u=t.n(c),p=t(39971),h=t(79942),v=t(13462),g=t(28280),b=t(85285);class m{constructor(e){this.userId=e,this.renewalPackage=(0,i.z)([r.he.shared(e).subscriptionRenewalPackages,l.h.shared(e).data()]).pipe((0,n.T)(e=>{var[s,t]=e;return t?s.find(e=>{var s,i;if(e.sku===t.sku)return!0;if(t.sameness&&("meta"in e?null==(i=e.meta.recurring)?void 0:i.sameness:e.sameness)===t.sameness)return!0;return!!(null!=(s=e.benefits)&&s.some(e=>"subscription"===e.type&&e.recurrentSku===t.recurringSku))})||null:null}),(0,a.F)(u()),(0,o.t)({refCount:!0,bufferSize:1}))}renew(e){var s;return l.h.shared(this.userId).renewSubscription({sku:e.sku,shop:e.shop,currency:e.price.currency,price:String(null!=(s=e.price.netPrice)?s:e.price.includingTax)}).pipe((0,h.Fg)(e=>e.isSuccessful?v.T.shared().cancelSubscriptionOfferEnabled.toSingle().pipe((0,h.ex)(e=>{e&&g.X.shared().notifyUser({type:b._.SubscriptionRenewalActivated},b.A.Normal)}),(0,h.AB)(e)):p.v.just(e)))}activateDiscount(e){var s;return l.h.shared(this.userId).applyDiscount({sku:e.sku,shop:e.shop,currency:e.price.currency,price:String(null!=(s=e.price.netPrice)?s:e.price.includingTax)})}}m.shared=(0,d.G)(e=>new m(e))},83707(e,s,t){t.d(s,{G:()=>c});var i=t(39971),r=t(43751),n=t(79760),a=t(98464),o=t(40961),d=t(27888),l=t(79942),c=e=>a.u.shared(e).renewalPackage.toSingle().pipe((0,l.Fg)(e=>e?i.v.defer(()=>(r.Y.shared().get(n.A).actions.open("subscription-renewal",[{props:{renewalPackage:e}}]),i.v.just())):o.J.shared().refillBalance({name:d.N.SubscriptionRenewal},"subscription").toSingle().pipe((0,l.AB)(void 0))))},7222(e,s,t){t.d(s,{e:()=>U});var i,r,n,a=t(16183),o=t(22897),d=t(39971),l=t(91885),c=t(79942),u=t(99524),p=t(63802),h=t(64766),v=t(34578),g=t(53940),b=t(92453),m=t(18909),S=t(21433),f=t(81891),I="subscription-upgrade",k=t(84190),P=t(56177),C=t(65615),E=t(71534),j=t(98050),x=a.x.Immediate,_=t(97983),w=t(81831),y=t(13462),T=t(27888),A=t(40961),F=t(47307),M=(i=(e,s)=>F.Y.shared(e).immediatePackages.toSingle().pipe((0,c.Fg)(e=>e.length?y.T.shared().primeVipPackagesEnabled.toSingle().pipe((0,c.Fg)(e=>A.J.shared().refillBalance({name:e?j.W[s.name]:T.N.SubscriptionUpgradeToday},"subscription").toSingle()),(0,c.Fg)(e=>E.t.shared().visible.pipe((0,g.p)(e=>!e),(0,P.s)(1),(0,_.u)(void 0),(0,w.c)(0)).toSingle().pipe((0,c.AB)(e.isSuccessful?l.Q.success():l.Q.failure("declined"===e.error.name?"dismissed":"closed"))))):d.v.just(l.Q.failure("failure")))),(e,s)=>u.i.shared(e).subscription.toSingle().pipe((0,c.Fg)(t=>{var r,n=f.m.shared(),a={reason:s,activeSubscriptionSku:null!=(r=null==t?void 0:t.sku)?r:"",variant:x},o=C.Q.shared().balanceRefillingIntent.pipe((0,g.p)(e=>{var{reason:s}=e;return(0,j.D)(s.name)}),(0,k.n)(()=>E.t.shared().visible.pipe((0,g.p)(e=>e),(0,P.s)(1))),(0,P.s)(1),(0,b.M)(()=>n.logPromptView(a)),(0,m.w)()),d=i(e,s).pipe((0,c.ex)(e=>{if(e.isSuccessful)return void n.logPromptCtaClick(a);switch(e.error){case"dismissed":n.logPromptDismissClick(a);break;case"closed":n.logPromptCloseClick(a)}}));return(0,v.h)(o,d.asObservable()).toSingle()}))),O=a.x.NextBilling,R=t(43751),V=t(79760),B=t(50626),G="payment-subscription-upgrade",N=(r=e=>F.Y.shared(e).nextBillingPackages.toSingle().pipe((0,c.Fg)(e=>e.length?d.v.defer(()=>{var s=R.Y.shared().get(V.A),t=s.store.rxState().pipe((0,B.J)(),(0,g.p)(e=>{var[s,t]=e;return(null==s?void 0:s.name)===G&&(null==t?void 0:t.name)!==G}),(0,_.u)(l.Q.failure("closed"))),i=new d.v(t=>{s.actions.addToQueue(G,[{props:{upgradedPackages:e,onUpgrade:()=>{t.success(l.Q.success()),s.actions.close(G)},onDismiss:()=>{t.success(l.Q.failure("dismissed")),s.actions.close(G)},onClose:()=>{t.success(l.Q.failure("closed")),s.actions.close(G)}},disableManualClose:!0}])});return(0,v.h)(i,t).toSingle()}):d.v.just(l.Q.failure("failure")))),(e,s)=>u.i.shared(e).subscription.toSingle().pipe((0,c.Fg)(t=>{var i,n=f.m.shared(),a={reason:s,activeSubscriptionSku:null!=(i=null==t?void 0:t.sku)?i:"",variant:O};return n.logPromptView(a),r(e,s).pipe((0,c.ex)(e=>{if(e.isSuccessful)return void n.logPromptCtaClick(a);switch(e.error){case"dismissed":n.logPromptDismissClick(a);break;case"closed":n.logPromptCloseClick(a)}}))}))),Q=t(17524),Y=e=>e,D=()=>"closed";function H(e,s,t){return s.isSuccessful?l.Q.success({step:e}):l.Q.failure({step:e,error:t(s.error)})}var U=(0,h.L)((n=(e,s)=>M(e,s).pipe((0,c.Fg)(t=>t.isSuccessful?d.v.just(H(a.x.Immediate,t,Y)):(0,o.$)(s)?(0,Q.z)([u.i.shared(e).subscription,y.T.shared().primeVipPackagesEnabled]).toSingle().pipe((0,c.Fg)(i=>{var r,[n,o]=i;return o||(null==n?void 0:n.sameness)!==(null==n||null==(r=n.recurringPackage)?void 0:r.sameness)?"failure"!==t.error?d.v.just(H(a.x.Immediate,t,Y)):(0,p.c)().pipe((0,c.vV)(e=>H(a.x.ChangeSubscriptionForm,e,D))):N(e,s).pipe((0,c.vV)(e=>H(a.x.NextBilling,e,Y)))})):N(e,s).pipe((0,c.vV)(e=>H(a.x.NextBilling,e,Y))))),(e,s)=>u.i.shared(e).subscription.toSingle().pipe((0,c.Fg)(t=>{var i,r=f.m.shared(),a={reason:s,activeSubscriptionSku:null!=(i=null==t?void 0:t.sku)?i:"",variant:I};r.logPromptView(a);var o=S.r.shared().name.pipe((0,g.p)(e=>"string"==typeof e&&"payment-subscription-upgrade"!==e&&"purchase"!==e&&"change-subscription-plan"!==e),(0,b.M)(e=>r.logPromptOverlappedView({reason:s,overlayName:e,variant:I})),(0,m.w)()),d=n(e,s).pipe((0,c.ex)(e=>{if(e.isSuccessful)return void r.logPromptCtaClick(a);switch(e.error.error){case"dismissed":r.logPromptDismissClick(a);break;case"closed":r.logPromptCloseClick(a)}}));return(0,v.h)(o,d.asObservable()).toSingle()}))))},64766(e,s,t){t.d(s,{B:()=>o,L:()=>d});var i=t(8733),r=t(15526),n=t(39971),a=t(79942);
3class o{constructor(){this.upgradeIntentSubject=new i.B,this.upgradeResultSubject=new i.B,this.upgradeIntent=this.upgradeIntentSubject.asObservable(),this.upgradeResult=this.upgradeResultSubject.asObservable()}interceptIntent(e){this.upgradeIntentSubject.next(e)}interceptResult(e,s){this.upgradeResultSubject.next({reason:e,result:s})}}function d(e){return(s,t)=>n.v.defer(()=>(o.shared().interceptIntent(t),e(s,t).pipe((0,a.ex)(e=>o.shared().interceptResult(t,e)))))}o.shared=(0,r.G)(()=>new o)},54589(e,s,t){t.d(s,{B:()=>p});var i=t(39971),r=t(43751),n=t(79760),a=t(91885),o=t(34578),d=t(50626),l=t(53940),c=t(28138),u="email-confirmation-remind",p=e=>i.v.defer(()=>{var s=r.Y.shared().get(n.A),t=s.store.rxState().pipe((0,d.J)(),(0,l.p)(e=>{var[s,t]=e;return(null==s?void 0:s.name)===u&&(null==t?void 0:t.name)!==u}),(0,c.T)(()=>a.Q.failure("canceled"))),p=new i.v(t=>{s.actions.open(u,[{props:{cta:e,onClose:()=>t.success(a.Q.failure("canceled")),onConfirmationRequested:()=>t.success(a.Q.success(void 0))},disableManualClose:!0,pinnedToTop:!0}])});return(0,o.h)(p,t).toSingle()})},57682(e,s,t){t.d(s,{v:()=>v});var i=t(75841),r=t(17524),n=t(15526),a=t(84190),o=t(15654),d=t(28138),l=t(36580),c=t(45482),u=t(26578),p=t(22081),h=t(13462);class v{constructor(){this.presentReceivingAvailableCache={},this.available=h.T.shared().presentsEnabled.pipe((0,a.n)(e=>e?(0,r.z)([c.Session.shared().userId,u.t.shared().activeRoles]).pipe((0,a.n)(e=>{var[s,t]=e;return s?t.includes("promoter")?this.presentReceivingAvailable(s):(0,i.of)(!0):(0,i.of)(!1)})):(0,i.of)(!1)),(0,o.F)())}presentReceivingAvailable(e){return this.presentReceivingAvailableCache[e]||(this.presentReceivingAvailableCache[e]=p.x.shared(e).tags.pipe((0,d.T)(e=>e.includes("presents.available")),(0,l.t)(1))),this.presentReceivingAvailableCache[e]}}v.shared=(0,n.G)(()=>new v)},90071(e,s,t){t.d(s,{x:()=>o});var i=t(15526),r=t(12640),n=t(37418),a=t(42618);class o{constructor(e){this.userId=e;var s=(0,a.operatingSystem)();this.platform=["ios","android"].includes(s)?"mobile":"desktop"}logPresentClicked(e,s,t){r._.shared(this.userId).logEvent("present-clicked",{receiverId:e,present:s,inWishlist:t}).safeSubscribe()}logPresentDisplayed(e,s,t){r._.shared(this.userId).logEvent("present-displayed",{receiverId:e,present:s,inWishlist:t}).safeSubscribe()}logPresentDescriptionClicked(e,s,t){r._.shared(this.userId).logEvent("present-description-clicked",{receiverId:e,present:s,inWishlist:t}).safeSubscribe()}logChoosePresentClicked(e,s){r._.shared(this.userId).logEvent("choose-present-clicked",{receiverId:e,source:null==s?void 0:s.source,platform:this.platform}).safeSubscribe()}logChoosePresentCategoryClicked(e,s){r._.shared(this.userId).logEvent("choose-present-category-clicked",{receiverId:e,category:s,platform:this.platform}).safeSubscribe()}
3logProfileChoosePresentButtonClicked(e){n.V.getCandidateInfo(e).safeSubscribe(e=>{n.V.shared().logEvent("profile","click","choose_presents_button",{candidate_info:e})})}logCompletePresentsOrderClicked(e,s){r._.shared(this.userId).logEvent("complete-presents-order-clicked",{receiverId:e,chosenItems:s}).safeSubscribe()}logSendPresentsClicked(e,s,t){r._.shared(this.userId).logEvent("send-presents-clicked",{receiverId:e,chosenItems:s,text:t}).safeSubscribe()}logPresentsOverlayClosed(e,s){r._.shared(this.userId).logEvent("presents-overlay-close",{receiverId:s,overlay:e}).safeSubscribe()}logPresentsMenuItemClicked(){r._.shared(this.userId).logEvent("presents-menu-item-clicked",{}).safeSubscribe()}logPresentRemoved(e,s,t){r._.shared(this.userId).logEvent("present-removed",{receiverId:e,present:s,price:t}).safeSubscribe()}logPresentLetterSent(e,s,t){r._.shared(this.userId).logEvent("present-letter-sent",{receiverId:e,text:s,chosenItems:t}).safeSubscribe()}}o.shared=(0,i.G)(e=>new o(e))},39500(e,s,t){t.d(s,{$:()=>h});var i=t(15526),r=t(75841),n=t(84190),a=t(28138),o=t(15654),d=t(36580),l=t(13462),c=t(91654),u=t(22081),p=t(17232);class h{constructor(e){this.status=l.T.shared().primeVipPackagesEnabled.pipe((0,n.n)(s=>s?c.e.shared(e).hasActiveSubscription.pipe((0,n.n)(s=>s?u.x.shared(e).tags.pipe((0,a.T)(e=>e.includes("credits.accounts.subscription.vip.full")?p.T.Prime:e.includes("credits.accounts.subscription.vip")?p.T.PrePrime:p.T.Essential)):(0,r.of)(p.T.NoSubscription))):(0,r.of)(null)),(0,o.F)(),(0,d.t)({bufferSize:1,refCount:!0}))}}h.shared=(0,i.G)(e=>new h(e))},17232(e,s,t){t.d(s,{T:()=>r});var i,r=((i={}).NoSubscription="no-subscription",i.Essential="essentials",i.PrePrime="pre-prime",i.Prime="prime",i)},74423(e,s,t){t.d(s,{E:()=>I});var i=t(28138),r=t(15654),n=t(36580),a=t(84190),o=t(22081),d=t(15526),l=t(75841),c=t(79942),u=t(64716),p=t(22998),h=t(4938),v=t(94375),g="hidden",b="hidden.from.search",m="dialogs.automation.paused",S="user-privacy",f="invites-pause";class I{constructor(e){this.userId=e,this.presentInFeed=o.x.shared(this.userId).tags.pipe((0,i.T)(e=>!e.includes(g)),(0,r.F)(),(0,n.t)(1)),this.hiddenFromSearch=o.x.shared(this.userId).tags.pipe((0,i.T)(e=>e.includes(b)),(0,r.F)(),(0,n.t)(1)),this.invitesPaused=o.x.shared(this.userId).tags.pipe((0,i.T)(e=>e.includes(m)),(0,r.F)(),(0,n.t)(1)),this.invitesPauseDaysLeft=p.w.shared(S,e).data().pipe((0,a.n)(e=>{var s,t=null==(s=e[S])?void 0:s[f];return t?h.E.shared().currentTime().asObservable().pipe((0,i.T)(e=>Math.max(Math.ceil((t.endsAtTimestamp-e)/v.b.day),0))):(0,l.of)(null)}),(0,r.F)(),(0,n.t)(1))}setPresentInFeed(e){return o.x.shared(this.userId).setTagEnabled(g,!e).pipe((0,c.AB)(void 0)).asObservable()}setHiddenFromSearch(e){return o.x.shared(this.userId).setTagEnabled(b,e).pipe((0,c.AB)(void 0)).asObservable()}setInvitesPaused(e){return e?h.E.shared().currentTime().pipe((0,c.Fg)(e=>p.w.shared(S,this.userId).store(f,{endsAtTimestamp:e+v.b.week})),(0,c.Fg)(()=>o.x.shared(this.userId).setTagEnabled(m,e)),(0,c.AB)(void 0)).asObservable():o.x.shared(this.userId).setTagEnabled(m,e).pipe((0,c.AB)(void 0)).asObservable()}}I.shared=(0,d.G)(e=>(0,u.K)(new I(e),u.T.shared(e)))},64716(e,s,t){t.d(s,{K:()=>o,T:()=>a});var i=t(8733),r=t(15526),n=t(92453);class a{constructor(e){this.setPresentInFeedIntentSubject=new i.B,this.setPresentInFeedIntent=this.setPresentInFeedIntentSubject.asObservable()}interceptSetPresentInFeed(e){this.setPresentInFeedIntentSubject.next({present:e})}}function o(e,s){return Object.assign({},e,{setPresentInFeed:t=>e.setPresentInFeed(t).pipe((0,n.M)(()=>void 0,()=>void 0,()=>s.interceptSetPresentInFeed(t))),setHiddenFromSearch:s=>e.setHiddenFromSearch(s),setInvitesPaused:s=>e.setInvitesPaused(s)})}a.shared=(0,r.G)(e=>new a(e))},32524(e,s,t){t.d(s,{V:()=>i.V,r:()=>i.r});var i=t(30152)}}]); 4//# sourceMappingURL=sourcemaps/5050.2580c9cd5d7ce5d3.js.map 5//# debugId=7403d500-d3ab-54cb-8625-438fe2f9b4fb
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.