1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[2050],{70393:function(e,r,n){n.r(r),n.d(r,{DisneyplusActivationPage:function(){return ev}});var t=n(64558),i=n(53292),a=n(80914),s=n(75730),o=n(13571),c=n(38960),u=n(62906),l=n(57215),_=n(49304),d=n(29122),p=function(e){function r(){var e;return(0,u._)(this,r),e=(0,c._)(this,r,arguments),(0,l._)(e,"name","AlreadyActivatedError"),e}return(0,_._)(r,e),r}((0,d._)(Error)),v=function(e){function r(){var e;return(0,u._)(this,r),e=(0,c._)(this,r,arguments),(0,l._)(e,"name","AlreadyActivatedPageError"),e}return(0,_._)(r,e),r}((0,d._)(Error)),h=function(e){function r(){var e;return(0,u._)(this,r),e=(0,c._)(this,r,arguments),(0,l._)(e,"name","HaveNotPurchasedError"),e}return(0,_._)(r,e),r}((0,d._)(Error)),m=function(e){function r(){var e;return(0,u._)(this,r),e=(0,c._)(this,r,arguments),(0,l._)(e,"name","HaveNotPurchasedPageError"),e}return(0,_._)(r,e),r}((0,d._)(Error)),g=function(e){function r(){var e;return(0,u._)(this,r),e=(0,c._)(this,r,arguments),(0,l._)(e,"name","ServerError"),e}return(0,_._)(r,e),r}((0,d._)(Error)),f=function(e){function r(){var e;return(0,u._)(this,r),e=(0,c._)(this,r,arguments),(0,l._)(e,"name","UnknownPageError"),e}return(0,_._)(r,e),r}((0,d._)(Error)),y=n(87007),x=n(74284),b="/v1/userSubscriptions:generateDPlanBundleActivationLink",j=n(46060),P=n(89599),A=n(29441),E=n(80213),w=n(93099),C=n(99536),N=n(43312),k=(0,N.R_)(function(e){var r=e(E.l),n=e(j.Y),t=e(w.N);return function(e){var i=e.userId;return(0,a._)(function(){return(0,o._)(this,function(e){return[2,t({queryKey:[b,i],queryFn:function(){return(0,a._)(function(){var e,t,i,a;return(0,o._)(this,function(s){switch(s.label){case 0:return[4,r.get(A.Z.ABEMA_ACCESS_TOKEN,{allowNull:!1})];case 1:if(!(e=s.sent()).ok)return[2,(0,C.KC)(new g("failed to get access token from storage",{cause:e.err}))];return t=new URL(b,x.FH.apiOrigin),[4,n.post({url:t.toString(),payload:null,headers:{accept:"application/json",authorization:"Bearer ".concat(e.val),"content-type":P.A},options:{}})];case 2:if(i=s.sent(),(0,C.ys)(i))switch(i.err.statusCode){case 409:return[2,(0,C.KC)(new p)];case 404:return[2,(0,C.KC)(new h)];default:return[2,(0,C.KC)(new g)]}return a=y.aF.fromJSON(i.val),[2,(0,C.TC)(a)]}})})()}})]})})()}}),U=n(20888),O=n(12668),S=n(75523),L=(0,O.R_)(function(e){var r=e(k),n=e(U.r);return(0,S.eU)(function(e){return(0,a._)(function(){var t,i,a;return(0,o._)(this,function(o){switch(o.label){case 0:return[4,r({userId:null!=(t=null==(i=e(n).profile)?void 0:i.userId)?t:""})];case 1:if(a=o.sent(),(0,C.ys)(a))switch(!0){case(0,s._)(a.err,p):throw new v("This User has already activated.",{cause:a.err});case(0,s._)(a.err,h):throw new m("This User has not purchased.",{cause:a.err});case(0,s._)(a.err,g):case(0,s._)(a.err,Error):throw new f("Unexpected server error is occurred.",{cause:a.err});default:throw a.err,new f("Unexpected server error is occurred.",{cause:a.err})}return[2,a.val.activationLink]}})})()})}),T=n(73267),B=n(44065),D=n(11654),H=(0,O.R_)(function(e,r){r(T.s);var n=(0,B.oA)(e(L));return(0,D.$)(function(e){var r=e(n);if(null!=r){location.href=r;return}})}),I=n(95885),K=n(42204),M=n(11794),R=n(30395),q=n.n(R),F=n(1102);function Q(e){var r=e.children,n=(0,F.useContext)(I.m)===K.b.MOBILE;return(0,t.jsx)(M.$,{children:(0,t.jsx)("section",{className:q()("com-pages-disneyplus-activation-DisneyplusActivationPageErrorWrapper",{"com-pages-disneyplus-activation-DisneyplusActivationPageErrorWrapper--mobile":n}),children:r})})}var W=n(18616),$=n(63002);function z(e){var r=e.description,n=F.useContext(I.m)===K.b.MOBILE;return(0,t.jsx)("p",{className:q()("com-shared-payment-error-ErrorDescription",{"com-shared-payment-error-ErrorDescription--mobile":n}),children:(0,t.jsx)($.P,{content:r})})}var J=n(27060),Y=n(1892),Z=n(10715);function G(){var e=(0,F.useContext)(I.m)===K.b.MOBILE;return(0,t.jsxs)(Q,{children:[(0,t.jsx)("div",{className:q()("com-pages-disneyplus-activation-AlreadyActivatedPage__error-page-title",{"com-pages-disneyplus-activation-AlreadyActivatedPage__error-page-title--mobile":e}),children:(0,t.jsx)(J.e,{title:W.u.subscription_disneyplus_activation_already_activated_error_title})}),(0,t.jsx)("div",{className:q()("com-pages-disneyplus-activation-AlreadyActivatedPage__error_description",{"com-pages-disneyplus-activation-AlreadyActivatedPage__error_description--mobile":e}),children:(0,t.jsx)(z,{description:W.u.subscription_disneyplus_activation_already_activated_error_description})}),(0,t.jsx)("div",{className:q()("com-pages-disneyplus-activation-AlreadyActivatedPage__button",{"com-pages-disneyplus-activation-AlreadyActivatedPage__button--mobile":e}),children:(0,t.jsx)(Z.pq,{href:Y.C.SUBSCRIPTION_STATUS,children:W.u.subscription_complete_change_plan_error_button_label})})]})}var V=n(54114),X=n(22590),ee=(0,O.R_)(function(e,r){r(T.s);var n=(0,B.t_)(function(){return null});return(0,S.eU)(function(e){return e(n)},function(e,r,t){r(n,t)})}),er=n(37804),en=n(66811),et=function(){};function ei(){var e=(0,F.useContext)(I.m)===K.b.MOBILE,r=(0,V._)((0,en.fp)((0,N.c5)(ee)),2),n=r[0],i=r[1],a=(0,en.md)((0,N.c5)(er.Q)),s=a.location.pathname+a.location.search;return(0,t.jsxs)(Q,{children:[(0,t.jsx)("div",{className:q()("com-pages-disneyplus-activation-HaveNotPurchasedPage__error-page-title",{"com-pages-disneyplus-activation-HaveNotPurchasedPage__error-page-title--mobile":e}),children:(0,t.jsx)(J.e,{title:W.u.subscription_disneyplus_activation_have_not_purchased_error_title})}),(0,t.jsx)("div",{className:q()("com-pages-disneyplus-activation-HaveNotPurchasedPage__error_description",{"com-pages-disneyplus-activation-HaveNotPurchasedPage__error_description--mobile":e}),children:(0,t.jsx)(z,{description:W.u.subscription_disneyplus_activation_have_not_purchased_error_description})}),(0,t.jsx)("div",{className:q()("com-pages-disneyplus-activation-HaveNotPurchasedPage__button",{"com-pages-disneyplus-activation-HaveNotPurchasedPage__button--mobile":e}),children:(0,t.jsx)(Z.pq,{onClick:function(){return i(X.Qq.AccountChangeEmail)},children:W.u.subscription_disneyplus_activation_have_not_purchased_button_label})}),(0,t.jsx)(X.xW,{isShow:n===X.Qq.AccountChangeEmail,step:X.Qq.AccountChangeEmail,onClose:function(){return i(null)},onChangeStep:et,onAccountChangeSuccess:et,shouldCloseOnOverlayClick:e,showAttentionMessage:!0,ssoReturnUrl:s,ssoFailureReturnUrl:s})]})}var ea=n(78919);function es(){var e=(0,F.useContext)(I.m)===K.b.MOBILE;return(0,t.jsxs)(Q,{children:[(0,t.jsx)("div",{className:q()("com-pages-disneyplus-activation-UnknownPage__error-page-title",{"com-pages-disneyplus-activation-UnknownPage__error-page-title--mobile":e}),children:(0,t.jsx)(J.e,{title:W.u.subscription_disneyplus_activation_unknown_error_title})}),(0,t.jsx)("div",{className:q()("com-pages-disneyplus-activation-UnknownPage__error-attention-block",{"com-pages-disneyplus-activation-UnknownPage__error-attention-block--mobile":e}),children:(0,t.jsx)(ea.O,{content:(0,t.jsx)("p",{className:q()("com-pages-disneyplus-activation-UnknownPage__error-attention-block-text",{"com-pages-disneyplus-activation-UnknownPage__error-attention-block-text--mobile":e}),children:W.u.subscription_disneyplus_activation_unknown_error_attention_text})})})]})}function eo(e){var r=e.error;switch(!0){case(0,s._)(r,m):return(0,t.jsx)(ei,{});case(0,s._)(r,v):return(0,t.jsx)(G,{});case(0,s._)(r,f):default:return(0,t.jsx)(es,{})}}var ec=n(39503),eu=n(3845),el=n(49116),e_=n(24365);function ed(){return null!=(0,en.md)((0,N.c5)(L))?(0,t.jsx)(ep,{}):(0,t.jsx)(i.g,{})}function ep(){return(0,en.md)((0,N.c5)(H)),(0,t.jsx)(i.g,{})}function ev(){var e,r=(0,en.md)((0,N.c5)(U.r));return(0,t.jsx)(ec.p,{scrollToTopOnPageTransition:!0,locationType:null,children:(0,t.jsx)(e_.tH,{FallbackComponent:eo,onError:function(){},children:(0,t.jsxs)(F.Suspense,{fallback:(0,t.jsx)(i.g,{}),children:[(0,t.jsx)(eu.O,{title:(0,el.u)()}),(0,t.jsx)(ed,{})]})},null==(e=r.profile)?void 0:e.userId)})}},27060:function(e,r,n){n.d(r,{e:function(){return u}});var t=n(64558),i=n(95885),a=n(42204),s=n(30395),o=n.n(s),c=n(1102);function u(e){var r=e.title,n=c.useContext(i.m)===a.b.MOBILE;return(0,t.jsx)("h1",{className:o()("com-shared-payment-error-ErrorPageTitle",{"com-shared-payment-error-ErrorPageTitle--mobile":n}),children: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.