PageSourceSearch

https://abema.tv/assets/compat/546dd78a90f2961f.9591.bundle.js

js abema.tv collected 2026-09-24 08:32:43 UTC 59,645 bytes, 1 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[9591],{58458:function(e,n,t){t.d(n,{S:function(){return U}});var a=t(6222),i=t(64558),c=t(74284),o=t(39305),s=t(34516),r=t(54114),u=t(46929),l=t(28255);function _(e){var n=e.positionIndex,t=e.linkingType,a=e.pageId,i=e.linkingPage;l.h.setDataLayer4GTM((0,u.h)({event:"click_module",module_name:"account_setting_list",position_index:n,module_index:0,module_location:"screen",linking_type:t,linking_id:a,linking_page:i,abema_hash:"",is_firstview:!0,is_horizontal_scroll:!1}))}var m=t(18662),d=t(97820),p=t(11054),h=t(27761),f=t(1892),g=t(61603),b=t(91542),v=t(15479),x=t(43312),N=t(30395),I=t.n(N),C=t(66811),w=t(1102),j=function(e){var n=e.activePath,t=e.giftsCount,a=e.onClickSidebarItem,c=new Map([[f.C.ACCOUNT_MANAGEMENT,{label:p.w.account_setting_sidebar_label_management,isExternalLink:!1,trackingParams:{linkingType:"page",pageId:g.s.AccountManagement,linkingPage:d.NW}}],[f.C.GIFTS,{label:p.w.account_setting_sidebar_label_gifts,isExternalLink:!1,notifCount:t,trackingParams:{linkingType:"page",pageId:g.s.Gifts,linkingPage:d.NW}}],[f.C.COUPON_CODE_REGISTRATION,{label:p.w.account_setting_sidebar_label_coupon_code,isExternalLink:!1,trackingParams:{linkingType:"page",pageId:g.s.CouponCodeRegistration,linkingPage:d.NW}}],[f.C.MAILNOTIFY,{label:p.w.account_setting_sidebar_label_mail_notify,isExternalLink:!1,trackingParams:{linkingType:"page",pageId:g.s.MailNotify,linkingPage:d.NW}}],[h.$.NOTIFICATIONS,{label:p.w.account_setting_sidebar_label_notification,isExternalLink:!0,trackingParams:{linkingType:d.NW,pageId:d.NW,linkingPage:h.$.NOTIFICATIONS}}],[h.$.HELP,{label:p.w.account_setting_sidebar_label_help,isExternalLink:!0,trackingParams:{linkingType:d.NW,pageId:d.NW,linkingPage:h.$.HELP}}]]);return(0,i.jsx)("div",{className:"c-account-AccountSettingSidebar",children:Array.from(c.entries()).map(function(e,t){var c=(0,r._)(e,2),s=c[0],u=c[1];return(0,i.jsx)(E,{path:s,label:u.label,isActive:n===s,isExternalLink:u.isExternalLink,notifCount:u.notifCount,onClick:function(){return a((0,o._)({positionIndex:t},u.trackingParams))}},s)})})},E=function(e){var n=e.path,t=e.label,a=e.isActive,c=e.isExternalLink,o=e.notifCount,s=void 0===o?0:o,r=e.onClick;return(0,i.jsxs)(b.N,{className:I()("c-account-AccountSettingSidebar__item",{"c-account-AccountSettingSidebar__item--active":a}),designType:b.v.NONE,to:n,target:c?"_blank":void 0,rel:c?"noopener noreferrer":void 0,onClick:r,children:[t,c&&(0,i.jsx)("div",{className:"c-account-AccountSettingSidebar__external-link-icon",children:(0,i.jsx)(v.x,{symbolType:v.B.ICONS_ACTION_EXTERNAL_LINK,"aria-label":"","aria-hidden":!0})}),s>0&&(0,i.jsx)("div",{className:"c-account-AccountSettingSidebar__notif-count",children:s})]})},T=function(e){var n=(0,C.md)((0,x.c5)(m.k));return(0,i.jsx)(j,(0,s._)((0,o._)({},e),{giftsCount:n,onClickSidebarItem:_}))},S=t(95885),k=t(42204),y=t(24147),O=t(21391),A=t(81571),P=t(11794),U=function(e){var n=e.activePath,t=e.breadcrumbs,o=e.children,s=[{label:y.P.navigation_breadcrumb_home,path:f.C.HOME},{label:y.P.navigation_breadcrumb_account_setting,path:f.C.ACCOUNT_MANAGEMENT}].concat((0,a._)(t)),r=w.useContext(S.m)===k.b.DESKTOP,u=(0,w.useId)();return(0,i.jsx)(P.$,{children:r?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(O.A,{baseUrl:c.OZ.base,list:s}),(0,i.jsxs)("section",{"aria-labelledby":u,className:"c-account-AccountSettingLayout__section",children:[(0,i.jsx)(A.s,{id:u,children:p.w.account_setting_title}),(0,i.jsxs)("div",{className:"c-account-AccountSettingLayout__content",children:[(0,i.jsx)("div",{className:"c-account-AccountSettingLayout__sidebar",children:(0,i.jsx)(T,{activePath:n})}),(0,i.jsx)("div",{className:"c-account-AccountSettingLayout__separator"}),(0,i.jsx)("div",{className:"c-account-AccountSettingLayout__main",children:o})]})]})]}):o})}},22361:function(e,n,t){t.d(n,{j:function(){return u}});var a=t(64558),i=t(47356),c=t(42204),o=t(30395),s=t.n(o),r=t(1102),u=function(e){var n=e.children,t=r.useContext(i.m)===c.b.MOBILE;return(0,a.jsx)("h2",{className:s()("c-account-AccountSettingPageTitle",{"c-account-AccountSettingPageTitle--mobile":t}),children:n})}},80058:function(e,n,t){t.r(n),t.d(n,{AccountManagementContainerMolecule:function(){return tu}});var a,i,c,o,s,r=t(39305),u=t(34516),l=t(54114),_=t(64558),m=t(29260),d=t(81588),p=t(2953),h=t(74284),f=t(58458),g=t(22361),b=t(47356),v=t(42204),x=t(91542),N=t(30395),I=t.n(N),C=t(1102),w=function(e){var n=e.button,t=e.icon,a=e.children,i=e.onClick,c=e.href,o=e.iconAlignItems,s=void 0===o?"center":o,r=C.useContext(b.m),u=r===v.b.MOBILE,l=(0,_.jsxs)(C.Fragment,{children:[(0,_.jsxs)("div",{className:I()("com-a-account-management-card__main","com-a-account-management-card__main--".concat(r)),children:[void 0!==t&&(0,_.jsx)("div",{className:I()("com-a-account-management-card__icon-wrapper","com-a-account-management-card__icon-wrapper--align-items-".concat(s),{"com-a-account-management-card__icon-wrapper--shrink":u}),children:t}),(0,_.jsx)("div",{className:"com-a-account-management-card__main-text",children:a})]}),void 0!==n&&(0,_.jsx)("div",{className:"com-a-account-management-card__button-wrapper",children:n})]});return(i||c)&&u?(0,_.jsx)(x.N,{className:I()("com-a-account-management-card","com-a-account-management-card--clickable"),onClick:i,to:c,designType:x.v.NONE,children:l}):(0,_.jsx)("div",{className:I()("com-a-account-management-card","com-a-account-management-card--align-items-".concat(s)),children:l})},j=t(12668),E=t(75523),T=t(44065),S=t(14291),k=t(57011),y=t(79101),O=(0,j.R_)(function(e){var n,t=e(m.accountManagementContainerStoreMolecule);return(0,T.zx)(function(){return t.state$.pipe((0,S.T)(function(e){return e.state}),(0,k.p)(function(e){return null!=e}),(0,S.T)(function(e){return e.userProfileValue}),(0,y.F)())},{initialValue:null==(n=t.get())?void 0:n.userProfileValue})}),A=(0,j.R_)(function(e){var n,t=e(m.accountManagementContainerStoreMolecule);return(0,T.zx)(function(){return t.state$.pipe((0,S.T)(function(e){return e.state}),(0,k.p)(function(e){return null!=e}),(0,S.T)(function(e){return e.userEmailValue}),(0,y.F)())},{initialValue:(null==(n=t.get())?void 0:n.userEmailValue)||null})}),P=(0,j.R_)(function(e){var n=e(m.accountManagementContainerStoreMolecule),t=(0,T.zx)(function(){return n.state$.pipe((0,S.T)(function(e){return e.state}),(0,k.p)(function(e){return null!=e}),(0,S.T)(function(e){return e.modalType}),(0,y.F)())},{initialValue:d.q.None});return(0,E.eU)(function(e){return e(t)},function(e,t,a){n.updateModalType(a)})}),U=(0,j.R_)(function(e){var n=e(m.accountManagementContainerStoreMolecule);return(0,E.eU)(null,function(){n.fetch()})}),M=(0,j.R_)(function(e){var n,t,a=e(m.accountManagementContainerStoreMolecule);return(0,T.zx)(function(){return a.state$.pipe((0,S.T)(function(e){return e.state}),(0,k.p)(function(e){return null!=e}),(0,S.T)(function(e){return e.premiumPlanName}),(0,y.F)())},{initialValue:null!=(n=null==(t=a.get())?void 0:t.premiumPlanName)?n:""})}),R=t(95885),L=t(10715),V=function(e){var n=e.children,t=e.onClick,a=e.href,i=(0,C.useContext)(R.m)===v.b.MOBILE;return(0,_.jsx)("div",{className:"c-account-management__action-button-wrapper",children:i?(0,_.jsx)("span",{className:"c-account-management__action-button-label",children:n}):(0,_.jsx)(L.tA,{onClick:t,href:a,children:n})})},B=t(77399),D=function(e){var n=e.alt,t=e.src,a=e.size,i=e.rotation,c=e.hasHover,o=e.onClick,s=null;return""!==t&&(s=(0,_.jsx)("span",{role:"img","aria-label":n,className:"com-m-UserThumbnail__image",style:{transform:"rotate(".concat(void 0===i?0:i,"deg)"),backgroundImage:"url(".concat(t,")")}}
1)),(0,_.jsx)("span",{className:I()("com-m-UserThumbnail",{"com-m-UserThumbnail--has-hover":c}),style:{height:"".concat(a,"px"),width:"".concat(a,"px"),backgroundImage:""!==t?"none":"url(/assets/images/placeholder/profile_default.png)"},onClick:o,children:s})},F=t(11054),H=t(64837),q=t(43312),G=t(66811),$=function(){var e=(0,C.useContext)(R.m)===v.b.MOBILE,n=(0,G.md)((0,q.c5)(O)),t=(0,G.Xr)((0,q.c5)(P)),a=n.name||F.w.account_empty_nickname,i=(0,C.useCallback)(function(){t(d.q.EditAccount)},[t]);return(0,_.jsx)(w,{onClick:i,button:(0,_.jsx)(V,{onClick:i,children:F.w.account_edit_information}),iconAlignItems:B.n.Center,icon:(0,_.jsx)("div",{className:"c-account-management__account-thumbnail-wrapper",children:(0,_.jsx)(D,{alt:a,src:n.thumbImage.url||"",size:e?60:80})}),children:(0,_.jsxs)("div",{className:I()("c-account-management__account-content",{"c-account-management__account-content--sm":e,"c-account-management__account-content--lg":!e}),children:[(0,_.jsx)("p",{className:I()("c-account-management__account-content-paragraph",{"c-account-management__account-content-paragraph--sm":e,"c-account-management__account-content-paragraph--lg":!e}),children:(0,H.H)(F.w.account_id,{userId:n.userId})}),(0,_.jsx)("p",{className:I()("c-account-management__account-content-name",{"c-account-management__account-content-name--md":e,"c-account-management__account-content-name--lg":!e,"c-account-management__account-content-name--empty":null===n.name}),children:a})]})})},K=t(27713),z=t(1892),W=t(61603),Y=t(85606),X=t(14425),Q=t(59228),Z=t(57215),J=t(45501),ee=t(23065),en=t(74344),et=t(86169),ea=t(62906),ei=t(90563),ec=t(4025),eo=function(){function e(n){(0,ea._)(this,e),(0,Z._)(this,"_subject",void 0),this._subject=new ec.t(n)}return(0,ei._)(e,[{key:"current",value:function(){return this._subject.getValue()}},{key:"onUpdate",value:function(){return this._subject.asObservable().pipe((0,k.p)(function(e){return null!=e}))}},{key:"write",value:function(e){this._subject.next(e)}}]),e}(),es=function(){function e(n,t){(0,ea._)(this,e),(0,Z._)(this,"_fileIdSubject",void 0),(0,Z._)(this,"_statusSubject",void 0),this._statusSubject=new ec.t(n),this._fileIdSubject=new ec.t(t)}return(0,ei._)(e,[{key:"currentFileId",value:function(){return this._fileIdSubject.getValue()}},{key:"onUpdateFileId",value:function(){return this._fileIdSubject.asObservable().pipe((0,k.p)(function(e){return null!=e}))}},{key:"writeFileId",value:function(e){this._fileIdSubject.next(e)}},{key:"currentStatus",value:function(){return this._statusSubject.getValue()}},{key:"onUpdateStatus",value:function(){return this._statusSubject.asObservable().pipe((0,k.p)(function(e){return null!=e}))}},{key:"writeStatus",value:function(e){this._statusSubject.next(e)}}]),e}(),er=function(){function e(n){(0,ea._)(this,e),(0,Z._)(this,"_subject",void 0),this._subject=new ec.t(n)}return(0,ei._)(e,[{key:"current",value:function(){return this._subject.getValue()}},{key:"onUpdate",value:function(){return this._subject.asObservable().pipe((0,k.p)(function(e){return null!=e}))}},{key:"write",value:function(e){this._subject.next(e)}}]),e}(),eu=function(){function e(n){(0,ea._)(this,e),(0,Z._)(this,"_subject",void 0),this._subject=new ec.t(n)}return(0,ei._)(e,[{key:"current",value:function(){return this._subject.getValue()}},{key:"onUpdate",value:function(){return this._subject.asObservable().pipe((0,k.p)(function(e){return null!=e}))}},{key:"write",value:function(e){this._subject.next(e)}}]),e}(),el=function(){function e(n){(0,ea._)(this,e),(0,Z._)(this,"_subject",void 0),this._subject=new ec.t(n)}return(0,ei._)(e,[{key:"current",value:function(){return this._subject.getValue()}},{key:"onUpdate",value:function(){return this._subject.asObservable().pipe((0,k.p)(function(e){return null!=e}))}},{key:"write",value:function(e){this._subject.next(e)}}]),e}(),e_=t(21790),em=t(61541),ed=t(97188),ep=t(11310),eh=((a={})[a.TOO_LONG_NICKNAME=1]="TOO_LONG_NICKNAME",a[a.CONTAIN_UNUSABLE_CHAR=2]="CONTAIN_UNUSABLE_CHAR",a[a.CONTAIN_NG_WORD=3]="CONTAIN_NG_WORD",a[a.FAILURE_UPLOAD_THUMBNAIL=4]="FAILURE_UPLOAD_THUMBNAIL",a[a.EDIT_FILE_ERROR=5]="EDIT_FILE_ERROR",a[a.REQUEST_ENTITY_TOO_LARGE=6]="REQUEST_ENTITY_TOO_LARGE",a[a.TOO_MANY_REQUESTS=7]="TOO_MANY_REQUESTS",a[a.NONE=8]="NONE",a),ef=function(){function e(n,t,a,i,c,o,s){(0,ea._)(this,e),(0,Z._)(this,"_intent",void 0),(0,Z._)(this,"_gateway",void 0),(0,Z._)(this,"_updateRepository",void 0),(0,Z._)(this,"_fetchUploadPoliciesRepository",void 0),(0,Z._)(this,"_postThumbImageRepository",void 0),(0,Z._)(this,"_failureUpdateUserProfileRepository",void 0),(0,Z._)(this,"_uploadImageStatusRepository",void 0),this._intent=n,this._gateway=t,this._updateRepository=a,this._fetchUploadPoliciesRepository=i,this._postThumbImageRepository=c,this._failureUpdateUserProfileRepository=o,this._uploadImageStatusRepository=s}return(0,ei._)(e,[{key:"activate",value:function(){var e,n,t,a,i,c,o,s,r,u,l=this._intent,_=this._gateway,m=this._updateRepository,d=this._fetchUploadPoliciesRepository,p=this._postThumbImageRepository,h=this._failureUpdateUserProfileRepository,f=this._uploadImageStatusRepository,g=new ed.yU;return g.add((e=l.dispatcher(),n=_,t=m,a=h,e.updateUserProfile$.pipe((0,ep.Z)(function(e){return n.updateProfile(e)})).subscribe({next:function(e){(0,em.B)(e,function(e){var n=e.userProfileValue,i=e.failureUpdateUserProfileValue;if(n)(0,e_.qE)().write(n),t.write(J.OK);else if(i){var c=i.code;t.write(J.qH),a.write(c)}},function(e){var n=Number(e.message)||J.n;t.write(n)})},error:en.H}))),g.add((i=l.dispatcher(),c=_,o=d,s=p,r=h,u=f,i.uploadThumb$.pipe((0,ep.Z)(function(e){return u.write(!1),c.fetchUploadPolicies(e).then(function(n){var t="",a=0,i=e.file;return(0,em.B)(n,function(e){var n=e.uploadUrl,i=e.fileId;t=n,a=J.OK,o.writeFileId(i),o.writeStatus(a),r.write(8)},function(e){a=Number(e.message)||J.n,o.writeStatus(a),a===J.qH?r.write(5):a===J.Wm&&r.write(7)}),{url:t,file:i,status:a}})}),(0,k.p)(function(e){var n=e.status,t=e.file.size<=3145728;return t||r.write(6),n===J.OK&&t||u.write(!0),n===J.OK&&t}),(0,ep.Z)(function(e){var n=e.file,t=e.url;return c.postThumbImage({file:n,url:t})})).subscribe({next:function(e){u.write(!0),(0,em.B)(e,function(e){var n=e.status;s.write(n),r.write(8)},function(e){var n=Number(e.message)||J.n;s.write(n),n===J.Pf?r.write(6):n===J.S?r.write(5):n===J.Wm&&r.write(7)})},error:en.H}))),g}}]),e}(),eg=t(90312),eb=function(){function e(n){(0,ea._)(this,e),(0,Z._)(this,"code",void 0),(0,Z._)(this,"message",void 0),this.code=n.code,this.message=n.message,Object.freeze(this)}return(0,ei._)(e,null,[{key:"fromObject",value:function(n){return new e(n)}}]),e}(),ev=t(49859),ex=t(61945),eN=t(51029);function eI(e){var n=e.profile,t=e.code,a=e.message,i=null,c=null;if(n){var o,s=void 0!==n.thumbImage?n.thumbImage:{},r=void 0!==n.concealedTargets?n.concealedTargets:{},u=void 0!==n.studentVerification?n.studentVerification:{};i=eg.i.fromObject({userId:ev.V.of(n.userId),name:void 0!==(o=n.name)?o:(0,ex.n)(null,eN.QH),thumbImage:{fileId:void 0!==s.fileId?s.fileId:null,url:void 0!==s.url?s.url:null},createdAt:n.createdAt,concealedTargets:{name:void 0!==r.name&&r.name,thumbImage:void 0!==r.thumbImage&&r.thumbImage}
1,studentVerification:{id:void 0!==u.id?u.id:null,status:void 0!==u.status?u.status:null,expiresAt:void 0!==u.expiresAt?u.expiresAt:null,reverifiableAt:void 0!==u.reverifiableAt?u.reverifiableAt:null}})}else t&&a&&(c=eb.fromObject({code:void 0!==t?t:0,message:void 0!==a?a:""}));return{userProfileValue:i,failureUpdateUserProfileValue:c}}var eC=function(){function e(n){(0,ea._)(this,e),(0,Z._)(this,"uploadUrl",void 0),(0,Z._)(this,"fileId",void 0),this.uploadUrl=n.uploadUrl,this.fileId=n.fileId,Object.freeze(this)}return(0,ei._)(e,null,[{key:"fromObject",value:function(n){return new e(n)}}]),e}(),ew=t(9355),ej=t(54818),eE=t(69797),eT=t(2787),eS=function(){function e(n,t){(0,ea._)(this,e),(0,Z._)(this,"_driver",void 0),(0,Z._)(this,"_externalDriver",void 0),this._driver=n,this._externalDriver=t||null}return(0,ei._)(e,[{key:"updateProfile",value:function(e){var n=e.userId,t=e.name,a=e.thumbImageId;return this._driver.put("/v1/users/".concat(n,"/profile"),JSON.stringify({name:t,thumbImageId:a}),{}).then(function(e){var n=e.status;switch(n){case J.OK:case J.qH:return e;default:throw Error(String(n))}}).then(ej.z).then(eI).then(eT.TC,eT.KC)}},{key:"fetchUploadPolicies",value:function(e){var n=e.userId,t=e.format,a=e.type,i="/v1/users/".concat(n,"/uploadPolicies?type=").concat(a,"&format=").concat(t);return this._driver.getWithCacheInvalidation(i,{}).then(function(e){var n=e.status;if(n===J.OK)return e;throw Error(String(n))}).then(ej.z).then(function(e){return eC.fromObject({fileId:e.fileId,uploadUrl:e.uploadUrl})}).then(eT.TC,eT.KC)}},{key:"postThumbImage",value:function(e){var n,t,a=e.url,i=e.file,c=new URL(a),o=c.origin,s=c.pathname,r=c.search,u=this._externalDriver?this._externalDriver:(0,eE.Le)({origin:o,fetcher:ew.GO}),l=(n=new FormData,t=i,n.append("file",t,"file"),n);return u.post(s+r,l,{},null).then(function(e){var n=e.status;if(n===J.iq)return e;throw Error(String(n))}).then(eT.TC,eT.KC)}}]),e}(),ek=t(7927),ey=((i={}).THUMB="thumb",i),eO=((c={}).JPEG="jpeg",c),eA=t(86862),eP=t(11700),eU=function(){function e(){var n,t,a,i,c;(0,ea._)(this,e),(0,Z._)(this,"_intent",void 0),(0,Z._)(this,"_gateway",void 0),(0,Z._)(this,"_updateRepository",void 0),(0,Z._)(this,"_fetchUploadPoliciesRepository",void 0),(0,Z._)(this,"_postThumbImageRepository",void 0),(0,Z._)(this,"_failureUpdateUserProfileRepository",void 0),(0,Z._)(this,"_uploadImageStatusRepository",void 0),(0,Z._)(this,"_store",void 0),(0,Z._)(this,"_subscription",void 0),this._intent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{updateUserProfile$:new ek.B,uploadThumb$:new ek.B};return{dispatcher:function(){return e},updateUserProfile:function(n){e.updateUserProfile$.next(n)},uploadThumb:function(n){e.uploadThumb$.next(n)}}}(),this._gateway=new eS(eA.bx,void 0),this._updateRepository=new eu(null),this._fetchUploadPoliciesRepository=new es(null,null),this._postThumbImageRepository=new er(null),this._failureUpdateUserProfileRepository=new eo(null),this._uploadImageStatusRepository=new el(null),this._store=(n=this._updateRepository,t=this._fetchUploadPoliciesRepository,a=this._postThumbImageRepository,i=this._failureUpdateUserProfileRepository,c=this._uploadImageStatusRepository,{get updateUserProfileStatus(){return n.current()},get updateUserProfileStatus$(){return n.onUpdate()},get fetchUploadPoliciesStatus(){return t.currentStatus()},get fetchUploadPoliciesStatus$(){return t.onUpdateStatus()},get fetchUploadPoliciesFileId(){return t.currentFileId()},get fetchUploadPoliciesFileId$(){return t.onUpdateFileId()},get postThumbImageStatus(){return a.current()},get postThumbImageStatus$(){return a.onUpdate()},get failureUpdateCode$(){return i.onUpdate()},get uploadImageStatus$(){return c.onUpdate()}}),this._subscription=null}return(0,ei._)(e,[{key:"activate",value:function(){if(this._subscription)throw Error(eP.A$);var e=this._intent,n=this._gateway,t=this._updateRepository,a=this._fetchUploadPoliciesRepository,i=this._postThumbImageRepository,c=this._failureUpdateUserProfileRepository,o=this._uploadImageStatusRepository;this._subscription=new ef(e,n,t,a,i,c,o).activate()}},{key:"destroy",value:function(){if(null==this._subscription)throw Error(eP.i$);this._subscription.unsubscribe(),this._subscription=null}},{key:"intent",get:function(){return this._intent}},{key:"store",get:function(){return this._store}}]),e}(),eM=t(50822),eR=t(91970),eL=(s={},(0,Z._)(s,0,0),(0,Z._)(s,1,0),(0,Z._)(s,3,180),(0,Z._)(s,6,90),(0,Z._)(s,8,270),s),eV=function(e){if(!e)return 0;var n=new DataView(e),t=2;if(65505!==n.getUint16(t)&&(t+=n.getUint16(4)+2),65505!==n.getUint16(t))return 0;for(var a=73===n.getUint8(t+10),i=n.getUint16(t+18,a),c=0;c<i;c++){var o=t+20+12*c;if(274===n.getUint16(o,a))return n.getUint16(o+8,a)}return 0},eB=t(38765),eD=t(68588),eF=t(65495),eH=t(21046),eq=function(e){var n,t,a,i,c,o,s,r,u,m,d,p,h,f,g,b,x,N,w,j,E,T,S,k,y,O,A,P,U,M,L,V,B,H,G,$,K,z=e.userName,W=e.thumbnailUrl,Y=e.fileId,Z=e.onSuccess,ea=e.onClickCancelButton,ei=(t=(n={userName:z,thumbnailUrl:W,initialFileId:Y,onSuccess:Z}).userName,a=n.thumbnailUrl,i=n.initialFileId,c=n.onSuccess,s=(o=(0,l._)((0,C.useState)(t),2))[0],r=o[1],m=(u=(0,l._)((0,C.useState)(a),2))[0],d=u[1],h=(p=(0,l._)((0,C.useState)(""),2))[0],f=p[1],b=(g=(0,l._)((0,C.useState)(!1),2))[0],x=g[1],w=(N=(0,l._)((0,C.useState)(eh.NONE),2))[0],j=N[1],T=(E=(0,l._)((0,C.useState)(0),2))[0],S=E[1],y=(k=(0,l._)((0,C.useState)(i),2))[0],O=k[1],P=(A=(0,l._)((0,C.useState)(!0),2))[0],U=A[1],M=(0,ee.N)(function(){return new eU}
1),L=(0,q.c5)(eR.Z9),V=(0,C.useCallback)(function(e){null==e.target||null!=e.target.result&&f(e.target.result)},[]),B=(0,C.useCallback)(function(e){r(e.currentTarget.value)},[]),H=(0,C.useCallback)(function(e){var n,t,a=new FileReader,i=null==(t=e.target.files)?void 0:t[0];if(null!=i){var c=0;a.readAsArrayBuffer(i),a.addEventListener("load",function(e){if("string"==typeof a.result)V(e),S(c);else{var n;c=eL[n=eV(a.result)]?eL[n]:0,a.readAsDataURL(i)}});var o=null!=(n=L.getUserId().val)?n:"";M.intent.uploadThumb({userId:o,type:ey.THUMB,format:eO.JPEG,file:i}),x(!1)}},[V,M.intent,L]),G=(0,C.useCallback)(function(){d(""),f(""),O(""),x(!1)},[]),$=(0,C.useCallback)(function(){x(!b)},[b]),K=(0,C.useCallback)(function(){var e,n=null!=(e=L.getUserId().val)?e:"";M.intent.updateUserProfile({userId:n,name:s,thumbImageId:y})},[y,s,M.intent,L]),(0,C.useEffect)(function(){M.activate();var e,n,t,a,i,o,s,r,u,l,_,m,d,p,h=(e=M.store,n=O,t=j,a=U,i=c,(o=new ed.yU).add((s=e,r=n,s.fetchUploadPoliciesFileId$.subscribe({next:function(e){r(e)},error:en.H}))),o.add((u=e,l=i,u.updateUserProfileStatus$.subscribe({next:function(e){var n;e===J.OK&&(n=(0,eM.b)().twitterId,(0,et.$j)(et.bx.UpdateProfile,+(null!=n)),l())},error:en.H}))),o.add((_=e,m=t,_.failureUpdateCode$.subscribe({next:function(e){m(e)},error:en.H}))),o.add((d=e,p=a,d.uploadImageStatus$.subscribe({next:function(e){p(e)},error:en.H}))),o);return function(){h.unsubscribe(),M.destroy()}},[c,M]),{userName:s,userImage:m,isMenuShown:b,uploadImage:h,failureUpdateProfileMessageCode:w,rotation:T,isCompletedUploadThumb:P,onChangeNickName:B,onChangeThumbnail:H,onToggleMenu:$,onClickDeleteImage:G,onSubmit:K}),ec=ei.userName,eo=ei.userImage,es=ei.uploadImage,er=ei.isMenuShown,eu=ei.rotation,el=ei.failureUpdateProfileMessageCode,e_=ei.isCompletedUploadThumb,em=ei.onChangeNickName,ep=ei.onChangeThumbnail,ef=ei.onToggleMenu,eg=ei.onClickDeleteImage,eb=ei.onSubmit,ev=C.useContext(R.m)===v.b.MOBILE;return(0,_.jsxs)("div",{className:I()("com-o-account-EditAccountModalView",{"com-o-account-EditAccountModalView--mobile":ev}),children:[(0,_.jsxs)(Q.l,{title:F.w.account_edit_title,submittable:!0,submitLabel:F.w.account_submit_finish,onClickCancelButton:ea,onClickSubmitButton:eb,children:[(0,_.jsxs)("div",{className:"com-o-account-EditAccountModalView__uploader",children:[(0,_.jsxs)("button",{type:"button",className:"com-o-account-EditAccountModalView__uploader__button",onClick:ef,children:[(0,_.jsx)(D,{alt:ec,rotation:eu,src:es||eo,size:120}),(0,_.jsx)(eF.xp,{label:F.w.account_edit_select_image,className:"com-o-account-EditAccountModalView__uploader__icon"})]}),er&&(0,_.jsxs)("ul",{className:"com-o-account-EditAccountModalView__uploader__actions",children:[(0,_.jsxs)("li",{className:"com-o-account-EditAccountModalView__uploader__action",children:[(0,_.jsx)("span",{className:"com-o-account-EditAccountModalView__uploader__action-text",children:(0,_.jsx)(eD.yC,{children:F.w.account_edit_select_image})}),(0,_.jsx)("input",{className:"com-o-account-EditAccountModalView__uploader__input",type:"file",onChange:ep})]}),(0,_.jsx)("li",{className:"com-o-account-EditAccountModalView__uploader__action",children:(0,_.jsx)("button",{type:"button",className:"com-o-account-EditAccountModalView__uploader__action-text",onClick:eg,children:(0,_.jsx)(eD.nx,{children:F.w.account_edit_delete_image})})})]})]}),(0,_.jsx)("p",{className:"com-o-account-EditAccountModalView__description",children:(0,_.jsx)(eD.yC,{size:ev?"s":"m",children:F.w.account_edit_description})}),(0,_.jsx)(eB.r,{className:"com-o-account-EditAccountModalView__input",onChange:em,placeholder:F.w.account_edit_input_nickname,value:ec,maxLength:15}),(0,_.jsxs)("div",{className:"com-o-account-EditAccountModalView__error-text",children:[el===eh.TOO_LONG_NICKNAME&&(0,_.jsx)(X.d,{text:F.w.account_edit_name_error_too_long_nickname}),el===eh.CONTAIN_UNUSABLE_CHAR&&(0,_.jsx)(X.d,{text:F.w.account_edit_name_error_contain_unusable_char}),el===eh.CONTAIN_NG_WORD&&(0,_.jsx)(X.d,{text:F.w.account_edit_name_error_contain_ng_word}),el===eh.FAILURE_UPLOAD_THUMBNAIL&&(0,_.jsx)(X.d,{text:F.w.account_edit_name_error_failure_upload_thumbnail}),el===eh.EDIT_FILE_ERROR&&(0,_.jsx)(X.d,{text:F.w.account_edit_file_error}),el===eh.REQUEST_ENTITY_TOO_LARGE&&(0,_.jsx)(X.d,{text:F.w.account_edit_file_too_large_error}),el===eh.TOO_MANY_REQUESTS&&(0,_.jsx)(X.d,{text:F.w.account_edit_too_many_requests})]})]}),(0,_.jsx)(eH.p,{visible:!e_,text:""})]})},eG=t(97394);t(19998),t(57917),t(2450),(0,eG.sd)(function(){return function(){}});var e$=((o={}).S="s",o.M="m",o.L="l",o),eK=function(e){var n=e.userName,t=e.thumbnailUrl,a=e.onClose,i=e.isShow,c=e.fileId,o=(0,C.useCallback)(function(){a()},[a]);return(0,C.useEffect)(function(){var e;
1i&&(e=W.s.AccountEditProfile,(0,K.N)({props:{location:{pathname:"/account/edit/profile"},pageId:e,path:z.C.ACCOUNT_MANAGEMENT,trackingPageViewPath:"/account/edit/profile"},shouldUpdateTitle:!1}))},[i]),(0,_.jsx)(Y.U,{isShow:i,modalSize:e$.L,onClose:a,children:(0,_.jsx)(eq,{onSuccess:o,userName:n,thumbnailUrl:t,onClickCancelButton:a,fileId:c})})},ez=t(83598),eW=t(2861),eY=t(766),eX=t(26246),eQ=(0,j.R_)(function(){return(0,E.eU)(null,function(e,n,t){var a,i;return a=t.password,i=t.userId,(0,eP.G5)(new eY.i,function(e){var n=e.intent,t=e.store;n.issueOneTimePassword({userId:i,password:a});var c=t.issueOneTimePasswordStatus$,o=c.pipe((0,k.p)(function(e){return e===J.iq})),s=c.pipe((0,k.p)(function(e){return e!==J.iq}));return(0,eX.g)(o,s)})})}),eZ=t(33396),eJ=function(e){var n,t,a,i,c,o,s,r,u,m,d,p,h,f,g,b=e.onClickCancelButton,x=(t=(n=(0,l._)((0,C.useState)(""),2))[0],a=n[1],c=(i=(0,l._)((0,C.useState)(eW.h.of("")),2))[0],o=i[1],r=(s=(0,l._)((0,C.useState)(null),2))[0],u=s[1],m=(0,C.useRef)(null),p=(d=(0,l._)((0,C.useState)(!0),2))[0],h=d[1],f=(0,q.c5)(eR.Z9),(0,ez.f)(m),(0,C.useEffect)(function(){var e;a(null!=(e=f.getUserId().val)?e:"")},[f]),g=(0,G.Xr)((0,q.c5)(eQ)),{userId:t,inputRef:m,responseStatus:r,onSubmit:function(){g({password:c,userId:t}).then(function(e){e.ok?u(e.val):u(e.err)},en.H)},disableSubmit:p,onChangeOneTimePassword:function(e){var n=e.currentTarget.value;h(n.length<6),o(eW.h.of(n))}}),N=x.userId,w=x.inputRef,j=x.responseStatus,E=x.onSubmit,T=x.disableSubmit,S=x.onChangeOneTimePassword,k=C.useContext(R.m)===v.b.MOBILE,y=j===J.iq;return(0,_.jsx)("div",{className:I()("com-o-account-IssueOneTimePasswordModalView",{"com-o-account-IssueOneTimePasswordModalView--mobile":k}),children:(0,_.jsxs)(Q.l,{title:F.w.account_one_time_password_title,submittable:!1,onClickSubmitButton:E,onClickCancelButton:b,children:[(0,_.jsx)("p",{className:"com-o-account-IssueOneTimePasswordModalView__description",children:(0,_.jsx)(eD.yC,{children:F.w.account_one_time_password_description})}),(0,_.jsx)("p",{className:"com-o-account-IssueOneTimePasswordModalView__label com-o-account-IssueOneTimePasswordModalView__label--id",children:(0,_.jsx)(eD.yC,{children:F.w.account_one_time_password_label_id})}),(0,_.jsx)("p",{className:"com-o-account-IssueOneTimePasswordModalView__id",children:(0,_.jsx)(eD.yC,{size:"xl",children:N})}),(0,_.jsx)("p",{className:"com-o-account-IssueOneTimePasswordModalView__label",children:(0,_.jsx)(eD.yC,{children:F.w.account_one_time_password_label_input})}),(0,_.jsxs)("div",{className:"com-o-account-IssueOneTimePasswordModalView__one-time-password",children:[(0,_.jsx)(eB.r,{className:"com-o-account-IssueOneTimePasswordModalView__input",inputRef:w,disabled:y,onChange:S,placeholder:F.w.account_one_time_password_input_placeholder}),(0,_.jsx)(eZ.A,{type:"submit",className:"com-o-account-IssueOneTimePasswordModalView__button",disabled:T||y,children:F.w.account_one_time_password_submit})]}),(0,_.jsxs)("div",{className:"com-o-account-IssueOneTimePasswordModalView__response",children:[!y&&j===J.qH&&(0,_.jsx)(X.d,{text:F.w.account_one_time_password_error}),!y&&j===J.p9&&(0,_.jsx)(X.d,{text:F.w.account_one_time_password_error_conflict}),y&&(0,_.jsx)(eD.S7,{children:F.w.account_one_time_password_success})]}),(0,_.jsxs)("ul",{className:"com-o-account-IssueOneTimePasswordModalView__notes",children:[(0,_.jsx)("li",{className:"com-o-account-IssueOneTimePasswordModalView__notes-item",children:(0,_.jsx)(eD.yB,{size:k?"xs":"m",children:F.w.account_one_time_password_note_text_length})}),(0,_.jsx)("li",{className:"com-o-account-IssueOneTimePasswordModalView__notes-item",children:(0,_.jsx)(eD.yB,{size:k?"xs":"m",children:F.w.account_one_time_password_note_same_text})}),(0,_.jsx)("li",{className:"com-o-account-IssueOneTimePasswordModalView__notes-item",children:(0,_.jsx)(eD.yB,{size:k?"xs":"m",children:F.w.account_one_time_password_note_serial_text})}),(0,_.jsx)("li",{className:"com-o-account-IssueOneTimePasswordModalView__notes-item",children:(0,_.jsx)(eD.yB,{size:k?"xs":"m",children:F.w.account_one_time_password_note_expired})})]})]})})},e0=function(e){var n=e.onClose,t=e.isShow;return(0,C.useEffect)(function(){var e;t&&(e=W.s.AccountOtp,(0,K.N)({props:{location:{pathname:"/account/otp"},pageId:e,path:z.C.ACCOUNT_MANAGEMENT,trackingPageViewPath:"/account/otp"},shouldUpdateTitle:!1}))},[t]),(0,_.jsx)(Y.U,{isShow:t,onClose:n,children:(0,_.jsx)(eJ,{onClickCancelButton:n})})},e1=t(36667),e5=t(10445),e2=t(87328),e4=t(33355),e9=t(50530);function e6(e){var n=(0,e5.u)(e);null!==n&&(0,e4.vl)({pathname:n.pathname,clientId:(0,e9.f)(),pageId:n.pageId,isMobile:(0,e2.Fr)()})}function e8(e){var n=(0,e5.u)(e);null!==n&&(0,e4.vl)({pathname:n.pathname,clientId:(0,e9.f)(),pageId:n.pageId,isMobile:(0,e2.Fr)()})}var e3=t(43059),e7=t(57014),ne=t(22590),nn=t(90536),nt=t(55243),na=t(9175),ni=t(76787),nc=function(e){var n=e.shouldShowPrevLink,t=e.onClickPrevButton,a=e.onClickCancelButton,i=e.onSuccess,c=e.hasEmail,o=(0,l._)((0,C.useState)(""),2),s=o[0],r=o[1],u=(0,l._)((0,C.useState)(!1),2),m=u[0],d=u[1],p=(0,l._)((0,C.useState)(!1),2),h=p[0],f=p[1],g=(0,l._)((0,C.useState)(null),2),b=g[0],v=g[1],x=(0,G.Xr)((0,q.c5)(na.l)),N=(0,C.useRef)(null);(0,ez.f)(N);var I=0===s.length,w=(0,nt.e)({showEmailInputErrorMessage:h,requestEmailResultHttpStatusCode:b}),j=c?F.w.account_email_edit:F.w.account_email_setting_title,E=c?F.w.account_email_setting_description_for_update:F.w.account_email_setting_description;return(0,_.jsx)("div",{className:"com-o-account-AccountEditEmailModalView",children:(0,_.jsxs)(Q.l,{title:j,shouldShowPrevLink:n,onClickPrevButton:t,submittable:!0,submitButtonDisabled:I,onClickCancelButton:a,onClickSubmitButton:function(){m?f(!0):(f(!1),x({email:s,shouldShowRequestAcceptedNotification:!1,shouldShowErrorNotification:!0}
1).then(function(e){e.ok?(v(e.val),i(s)):v(e.err)}))},children:[(0,_.jsx)("p",{className:"com-o-account-AccountEditEmailModalView__description",children:(0,_.jsx)(eD.yC,{children:E})}),(0,_.jsx)("div",{className:"com-o-account-AccountEditEmailModalView__input",children:(0,_.jsx)(ni.Sm,{ref:N,type:"email",name:"email",autoCapitalize:"off",autoComplete:"email",colorType:ni.Zf.LIGHT,sizeType:ni.XH.MEDIUM,onChange:function(e){var n=e.currentTarget.value;r(n),d(!(0,nn.B)(n))},placeholder:F.w.account_email_setting_placeholder_email})}),(0,_.jsx)("div",{className:"com-o-account-AccountEditEmailModalView__error-text",children:null!=w&&(0,_.jsx)(X.d,{text:w})})]})})},no=t(5357),ns=t(82771),nr=t(31263),nu=t(7621),nl=function(e){var n=e.isShow,t=e.onClose,a=e.onSuccess,i=e.onChangeStep,c=(0,l._)((0,C.useState)(ns.M.INPUT_EMAIL),2),o=c[0],s=c[1],r=(0,l._)((0,C.useState)(""),2),u=r[0],m=r[1],d=(0,C.useCallback)(function(){s(ns.M.INPUT_EMAIL),m("")},[]),p=(0,C.useCallback)(function(){t()},[t]),h=(0,C.useCallback)(function(){s(ns.M.INPUT_EMAIL)},[]);(0,C.useEffect)(function(){n&&i(o)},[o,n,i]),(0,C.useEffect)(function(){n&&d()},[n,d]);var f=o===ns.M.CONFIRM_TOKEN;return(0,_.jsxs)(Y.U,{isShow:n,onClose:p,children:[o===ns.M.INPUT_EMAIL&&(0,_.jsx)(nc,{hasEmail:!0,shouldShowPrevLink:!1,onClickPrevButton:h,onClickCancelButton:p,onSuccess:function(e){m(e),s(ns.M.CONFIRM_TOKEN)}}),o===ns.M.CONFIRM_TOKEN&&(0,_.jsx)(no.Q,{email:u,shouldShowPrevLink:f,onClickPrevButton:h,onClickCancelButton:p,onSuccess:function(){p(),a(),(0,nr.OZ)().onOpen({timeoutCount:4e3,kind:nu.I.ChangedEmail})}})]})},n_=t(1171),nm=t(37804),nd=function(){var e=(0,G.md)((0,q.c5)(O)),n=(0,G.md)((0,q.c5)(P)),t=(0,G.Xr)((0,q.c5)(P)),a=(0,G.Xr)((0,q.c5)(U)),i=(0,G.md)((0,q.c5)(nm.Q)),c=e.name||"",o=e.thumbImage.fileId,s=i.location.pathname+i.location.search,r=(0,C.useCallback)(function(){t(d.q.None)},[t]),u=(0,C.useCallback)(function(){if(a(),r(),n===d.q.EmailRegistrationBeforeStudentVerification){var e=new URLSearchParams(i.location.search),t=(0,n_.H)({path:z.C.STUDENT_VERIFICATION,currentSearchParams:e,subscriptionFlowQueryParams:{planGroupId:null,subscriptionPageId:null,couponPlanId:null}});i.push(t.toString())}},[a,r,i,n]),l=(0,C.useCallback)(function(){r()},[r]),m=(0,C.useCallback)(function(){t(d.q.ChangeAccount)},[t]);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(eK,{isShow:n===d.q.EditAccount,onClose:r,userName:c,thumbnailUrl:e.thumbImage.url||"",fileId:o||""}),(0,_.jsx)(nl,{isShow:n===d.q.EmailUpdate,onClose:r,onSuccess:u,onChangeStep:e8}),(0,_.jsx)(e3.s,{email:null,step:n===d.q.EmailRegistration||n===d.q.EmailRegistrationBeforeStudentVerification?e7.z.INPUT_EMAIL_FOR_FIRST_STEP:e7.z.NONE,onChangeAccountButtonClick:m,onRequestClose:r,onSuccess:u,onCancel:r,onChangeStep:e6}),(0,_.jsx)(ne.xW,{step:ne.Qq.AccountChangeMethodSelect,onClose:r,isShow:n===d.q.ChangeAccount,onChangeStep:e1.t,onAccountChangeSuccess:l,showAttentionMessage:!0,ssoReturnUrl:s,ssoFailureReturnUrl:s}),(0,_.jsx)(e0,{onClose:r,isShow:n===d.q.CreateOneTimePassword})]})},np=t(15479),nh=function(){var e=(0,C.useContext)(R.m)===v.b.MOBILE,n=(0,G.Xr)((0,q.c5)(P)),t=(0,C.useCallback)(function(){n(d.q.ChangeAccount)},[n]);return(0,_.jsxs)("button",{type:"button",className:I()("c-account-management__change-account-link",{"c-account-management__change-account-link--mobile":e}),onClick:t,children:[(0,_.jsx)("span",{className:"c-account-management__change-account-link-text",children:e?F.w.account_change_account_title:F.w.account_change_account}),!e&&(0,_.jsx)("span",{className:"c-account-management__change-account-link-icon",children:(0,_.jsx)(np.x,{symbolType:np.B.ICONS_NAVIGATION_CHEVRON_RIGHT,"aria-label":"","aria-hidden":!0})})]})},nf=function(){var e=(0,C.useContext)(R.m)===v.b.MOBILE,n=(0,G.md)((0,q.c5)(A)),t=(0,G.Xr)((0,q.c5)(P)),a=null!=n?n.email:F.w.account_not_set,i=null!=n&&!!n.email,c=(0,C.useCallback)(function(){t(i?d.q.EmailUpdate:d.q.EmailRegistration)},[t,i]);return(0,_.jsx)(w,{icon:(0,_.jsx)("div",{className:"c-account-management__email-icon-wrapper",children:(0,_.jsx)("div",{className:"c-account-management__email-icon-inner",children:(0,_.jsx)(np.x,{symbolType:np.B.ICONS_CONDITION_MAIL,"aria-label":"","aria-hidden":!0})})}),onClick:c,button:(0,_.jsx)(V,{onClick:c,children:i?F.w.account_management_change_email_action_name:F.w.account_management_register_email_action_name}),iconAlignItems:B.n.Center,children:(0,_.jsxs)("div",{className:I()("c-account-management__account-content",{"c-account-management__account-content--sm":e,"c-account-management__account-content--lg":!e}),children:[(0,_.jsx)("p",{className:I()("c-account-management__account-content-name",{"c-account-management__account-content-name--sm":e,"c-account-management__account-content-name--md":!e}),children:F.w.account_email}),(0,_.jsx)("p",{className:I()("c-account-management__account-content-paragraph",{"c-account-management__account-content-paragraph--sm":e,"c-account-management__account-content-paragraph--lg":!e}),children:a})]})})},ng=function(){var e=(0,C.useContext)(R.m)===v.b.MOBILE,n=(0,G.Xr)((0,q.c5)(P)),t=(0,C.useCallback)(function(){n(d.q.CreateOneTimePassword)},[n]);return(0,_.jsx)(w,{icon:(0,_.jsx)("div",{className:"c-account-management__link-icon-wrapper",children:(0,_.jsx)("div",{className:"c-account-management__link-icon-inner",children:(0,_.jsx)(np.x,{symbolType:np.B.ICONS_CONDITION_LINK,"aria-label":"","aria-hidden":!0})})}),onClick:t,button:(0,_.jsx)(V,{onClick:t,children:F.w.account_management_one_time_pass_section_action_name}),iconAlignItems:B.n.Center,children:(0,_.jsx)("p",{className:I()("c-account-management__account-content-name",{"c-account-management__account-content-name--sm":e,"c-account-management__account-content-name--md":!e}),children:F.w.account_one_time_password})})},nb=t(46929),nv=t(28255),nx=t(6381),nN=t(24147),nI=t(26483),nC=t(71919),nw="HAS_MULTIPLE_PLAN",nj=function(){var e=(0,C.useContext)(R.m)===v.b.MOBILE,n=(0,C.useContext)(nI.P),t=(0,G.md)((0,q.c5)(nx.d)),a=(0,G.md)((0,q.c5)(M)),i=t.length,c=(0,C.useMemo)(function(){var e;return e={},(0,Z._)(e,nC.O.FREE,F.w.account_plan_value_free),(0,Z._)(e,nC.O.PREMIUM,a),(0,Z._)(e,nw,(0,H.H)(nN.P.n
1avigation_sidebar_account_setting_plan_multiple,{planCount:String(i)})),e},[i,a]),o=(0,C.useMemo)(function(){return t.length>=2?c[nw]:t.length>0?t[0].planName:c[n]},[c,n,t]),s=(0,C.useCallback)(function(){nv.h.setDataLayer4GTM((0,nb.h)({event:"click_module",module_name:"plan_status_check_button",position_index:0,module_index:0,module_location:"screen",abema_hash:"",is_firstview:!0,is_horizontal_scroll:!1}))},[]);return(0,_.jsx)(w,{href:z.C.SUBSCRIPTION_STATUS,button:(0,_.jsx)(V,{href:z.C.SUBSCRIPTION_STATUS,onClick:s,children:F.w.account_management_plan_section_action_name}),iconAlignItems:B.n.Center,icon:(0,_.jsx)("div",{className:I()("c-account-management__plan-icon-wrapper",{"c-account-management__plan-icon-wrapper--mobile":e}),children:(0,_.jsx)("div",{className:"c-account-management__plan-icon-inner",children:(0,_.jsx)(np.x,{symbolType:np.B.ICONS_CONDITION_CREDIT_CARD,"aria-label":"","aria-hidden":!0})})}),children:(0,_.jsxs)("div",{className:I()("c-account-management__account-content",{"c-account-management__account-content--sm":e,"c-account-management__account-content--lg":!e}),children:[(0,_.jsx)("p",{className:I()("c-account-management__account-content-name",{"c-account-management__account-content-name--md":e,"c-account-management__account-content-name--lg":!e}),children:F.w.account_management_plan_section_name}),(0,_.jsx)("p",{className:I()("c-account-management__account-content-paragraph",{"c-account-management__account-content-paragraph--sm":e,"c-account-management__account-content-paragraph--lg":!e}),children:o})]})})},nE=t(80914),nT=t(75730),nS=t(13571),nk=t(26479),ny=t(10322),nO=t(6878),nA=t(51189),nP=t(55425),nU=t(66356);function nM(e){var n=e.title,t=e.onClose,a=e.children,i=e.wrapperClassName,c=e.closeAriaLabel,o=void 0===c?ny.M.sso_cancel_button:c;return(0,C.useContext)(R.m)===v.b.MOBILE?(0,_.jsx)(nU.aF,{modalSize:nU.rI.Full,backgroundDesignType:nU.oR.Basic,onClose:t,children:(0,_.jsxs)("div",{className:I()("c-sso-confirm-modal__wrapper","c-sso-confirm-modal__wrapper--mobile",i),children:[(0,_.jsxs)("div",{className:"c-sso-confirm-modal__header",children:[(0,_.jsx)("h2",{className:"c-sso-confirm-modal__header-title",children:n}),(0,_.jsx)("button",{type:"button",className:"c-sso-confirm-modal__header-close",onClick:t,"aria-label":o,children:(0,_.jsx)(np.x,{symbolType:np.B.ICONS_NAVIGATION_CLOSE,"aria-hidden":!0,"aria-label":""})})]}),(0,_.jsx)("div",{className:"c-sso-confirm-modal__content c-sso-confirm-modal__content--mobile",children:a})]})}):(0,_.jsx)(nU.aF,{modalSize:nU.rI.FitContent,backgroundDesignType:nU.oR.Basic,onClose:t,children:(0,_.jsx)("div",{className:I()("c-sso-confirm-modal__wrapper",i),children:(0,_.jsxs)("div",{className:"c-sso-confirm-modal__content",children:[(0,_.jsx)("h2",{className:"c-sso-confirm-modal__title",children:n}),a]})})})}var nR=t(1002),nL=t(43233),nV=t(57088),nB=t(57508),nD=t(99536);function nF(e){var n=e.description,t=e.isMobile;return(0,_.jsx)("div",{className:I()("c-sso-link-confirm-modal__description",{"c-sso-link-confirm-modal__description--mobile":t}),children:(0,_.jsxs)("p",{className:I()("c-sso-link-confirm-modal__description-text",{"c-sso-link-confirm-modal__description-text--mobile":t}),children:[n,(0,_.jsx)("br",{}),(0,_.jsx)(x.N,{designType:x.v.INLINE,to:nP.p.TERMS,target:"_blank",rel:"noopener",className:"c-sso-link-confirm-modal__description-link",children:ny.M.sso_terms_link}),ny.M.sso_link_confirm_terms_and,(0,_.jsx)(x.N,{designType:x.v.INLINE,to:nP.p.PRIVACYPOLICY,target:"_blank",rel:"noopener",className:"c-sso-link-confirm-modal__description-link",children:ny.M.sso_privacy_link}),ny.M.sso_link_confirm_terms_suffix]})})}function nH(e){var n=e.iconType,t=e.label,a=e.onClick;return(0,_.jsxs)("button",{type:"button",className:"c-sso-link-confirm-modal__continue-button",onClick:a,children:[(0,_.jsx)("span",{className:"c-sso-link-confirm-modal__continue-button-icon",children:(0,_.jsx)(np.x,{symbolType:n,"aria-hidden":!0,"aria-label":""})}),t]})}function nq(e){var n=e.idpType,t=e.onClose,a=(0,C.useContext)(R.m)===v.b.MOBILE,i=(0,G.Xr)((0,q.c5)(nB.h)),c=(0,q.c5)(nA.w),o=(0,nR.v)(n),s=ny.M.sso_link_confirm_title.replace("{{idpName}}",o),r=ny.M.sso_link_confirm_description.replace("{{idpName}}",o),u=ny.M.sso_continue_with_idp.replace("{{idpName}}",o),l=(0,nL.I)(n);(0,C.useEffect)(function(){var e;e=function(e){switch(e){case p.SI.IDP_TYPE_GOOGLE:return{pathname:"/account/link/google",pageId:W.s.AccountLinkGoogle};case p.SI.IDP_TYPE_APPLE:return{pathname:"/account/link/apple",pageId:W.s.AccountLinkApple};default:throw Error("Unexpected idpType: ".concat(e))}}(n),(0,e4.vl)({pathname:e.pathname,clientId:(0,e9.f)(),pageId:e.pageId,isMobile:(0,e2.Fr)()})},[n]);var m=(0,C.useCallback)(function(){return(0,nE._)(function(){var e,a;return(0,nS._)(this,function(o){switch(o.label){case 0:return[4,i({idpType:n,returnUrl:z.C.ACCOUNT_MANAGEMENT,failureReturnUrl:z.C.ACCOUNT_MANAGEMENT,actionType:p.X2.ACTION_TYPE_LINKING})];case 1:if(e=o.sent(),(0,nD.ys)(e))return a=(0,nT._)(e.err,nk.s)?e.err.statusCode:0,c.onOpen({timeoutCount:nO.yp,kind:(0,nV.t)(a,p.X2.ACTION_TYPE_LINKING)}),[2];return t(),[2]}})})()},[n,c,t,i]);return(0,_.jsxs)(nM,{title:s,onClose:t,wrapperClassName:"c-sso-confirm-modal__wrapper--link",closeAriaLabel:ny.M.sso_cancel_button,children:[(0,_.jsx)(nF,{description:r,isMobile:a}),(0,_.jsxs)("div",{className:I()("c-sso-link-confirm-modal__buttons",{"c-sso-link-confirm-modal__buttons--mobile":a}),children:[!a&&(0,_.jsx)("div",{className:"c-sso-link-confirm-modal__button",children:(0,_.jsx)("button",{type:"button",className:"c-sso-link-confirm-modal__cancel-button",onClick:t,children:ny.M.sso_cancel_button})}),(0,_.jsx)("div",{className:I()("c-sso-link-confirm-modal__button",{"c-sso-link-confirm-modal__button--mobile":a}),children:(0,_.jsx)(nH,{iconType:l,label:u,onClick:m})})]})]})}var nG=t(73267),n$=t(46060),nK=t(93099),nz=t(24968),nW=(0,j.R_)(function(e){var n=e(n$.Y),t=e(nK.N);return function(){return(0,nE._)(function(){return(0,nS._)(this,function(e){return[2,t({queryKey:[nz.T.IDPS],queryFn:function(){return(0,nE._)(function(){var e,t,a;return(0,nS._)(this,function(i){switch(i.label){case 0:return e=new URL(nz.T.IDPS,location.origin),[4,n.get({url:e.toString(),headers:{accept:"application/json"},options:{credentials:"include"}})];case 1:if(t=i.sent(),(0,nD.ys)(t))return[2,(0,nD.KC)(t.err)];return a=p.Gd.fromJSON(t.val),[2,(0,nD.TC)(a)]}})})()}})]})})()}}
1),nY=t(57680),nX=(0,j.R_)(function(e,n){n(nG.s);var t=e(nW),a=e(nA.w),i=(0,E.eU)(0),c=(0,E.eU)(function(e){return(0,nE._)(function(){var n;return(0,nS._)(this,function(c){switch(c.label){case 0:return e(i),[4,t()];case 1:return n=c.sent(),(0,nD.ys)(n)&&a.onOpen({timeoutCount:nO.yp,kind:nu.I.SSOLinkedIdpListFailed}),[2,n]}})})()});return(0,nY.I)(function(e){return(0,E.eU)(function(n){return(0,nE._)(function(){var t,a;return(0,nS._)(this,function(i){switch(i.label){case 0:return[4,n(c)];case 1:if(t=i.sent(),!(0,nD.HQ)(t))throw t.err;if(a=t.val.idps.find(function(n){return n.idpType===e}))return[2,{email:a.externalEmail||null}];return[2,null]}})})()},function(e,n,t){t===T.Ut&&n(i,function(e){return e+1})})})}),nQ=t(50052),nZ=t(51996),nJ=(0,j.R_)(function(e){var n=e(n$.Y),t=e(eR.Z9),a=e(nK.N);return function(e){return(0,nE._)(function(){return(0,nS._)(this,function(i){return[2,a({queryKey:[nz.T.IDPS_UNLINK,e.idpType],queryFn:function(){return(0,nE._)(function(){var a,i,c,o;return(0,nS._)(this,function(s){switch(s.label){case 0:return a=new URL(nz.T.IDPS_UNLINK,location.origin),i=p.ml.toJSON({idpType:e.idpType,deviceType:nQ.bq.DEVICE_TYPE_WEB}),[4,n.delete({url:a.toString(),payload:JSON.stringify(i),headers:{accept:"application/json","content-type":"application/json"},options:{credentials:"include"}})];case 1:if(c=s.sent(),(0,nD.ys)(c))return[2,(0,nD.KC)(c.err)];return o=p.Iy.fromJSON(c.val),t.set({accessToken:nZ.m.of(o.accessToken)}),[2,(0,nD.TC)(o)]}})})()}})]})})()}}),n0=(0,j.R_)(function(e){var n=e(nJ),t=e(nX);return(0,E.eU)(null,function(e,a,i){return(0,nE._)(function(){var e;return(0,nS._)(this,function(c){switch(c.label){case 0:return[4,n({idpType:i})];case 1:if(e=c.sent(),(0,nD.ys)(e))return[2,(0,nD.KC)(e.err)];return a(t(i),T.Ut),[2,(0,nD.TC)(void 0)]}})})()})});function n1(e){var n=e.idpType,t=e.onClose,a=(0,C.useContext)(R.m)===v.b.MOBILE,i=(0,G.Xr)((0,q.c5)(n0)),c=(0,q.c5)(nA.w),o=(0,nR.v)(n),s=ny.M.sso_unlink_confirm_description.replace("{{idpName}}",o),r=(0,C.useCallback)(function(){return(0,nE._)(function(){var e,a;return(0,nS._)(this,function(o){switch(o.label){case 0:return[4,i(n)];case 1:if(e=o.sent(),(0,nD.ys)(e))return a=(0,nT._)(e.err,nk.s)?e.err.statusCode:0,c.onOpen({timeoutCount:nO.yp,kind:function(e){switch(e){case 429:return nu.I.SSOUnlinkFailed429;case 500:return nu.I.SSOUnlinkFailed500;default:return nu.I.SSOUnlinkFailed}}(a)}),[2];return t(),c.onOpen({timeoutCount:nO.yp,kind:nu.I.SSOUnlinkSuccess}),[2]}})})()},[i,n,t,c]);return(0,_.jsxs)(nM,{title:ny.M.sso_unlink_confirm_title,onClose:t,wrapperClassName:"c-sso-confirm-modal__wrapper--unlink",closeAriaLabel:ny.M.sso_cancel_button,children:[(0,_.jsx)("div",{className:I()("c-sso-unlink-confirm-modal__text",{"c-sso-unlink-confirm-modal__text--mobile":a}),children:(0,_.jsx)("p",{className:"c-sso-unlink-confirm-modal__description",children:s})}),(0,_.jsxs)("div",{className:I()("c-sso-unlink-confirm-modal__buttons",{"c-sso-unlink-confirm-modal__buttons--mobile":a}),children:[!a&&(0,_.jsx)("div",{className:"c-sso-unlink-confirm-modal__button",children:(0,_.jsx)("button",{type:"button",className:"c-sso-unlink-confirm-modal__cancel-button",onClick:t,children:ny.M.sso_cancel_button})}),(0,_.jsx)("div",{className:I()("c-sso-unlink-confirm-modal__button",{"c-sso-unlink-confirm-modal__button--mobile":a}),children:(0,_.jsx)("button",{type:"button",className:"c-sso-unlink-confirm-modal__confirm-button",onClick:r,children:ny.M.sso_unlink_confirm_button})})]})]})}var n5="NONE",n2="LINK",n4="UNLINK",n9=(0,j.R_)(function(e,n){return n(nG.s),(0,nY.I)(function(e){return(0,E.eU)(n5)})});function n6(e){var n=e.idpType,t=(0,G.md)((0,q.c5)(A));return null!=t&&t.email?(0,_.jsx)(n8,{idpType:n}):null}function n8(e){var n=e.idpType,t=(0,C.useContext)(R.m)===v.b.MOBILE,a=n===p.SI.IDP_TYPE_APPLE,i=(0,G.md)((0,T.Rq)((0,q.c5)(nX)(n))),c="loading"===i.state,o="hasError"===i.state,s="hasData"===i.state?i.data:null,r=null!=s,u=null==s?void 0:s.email,m=!c&&!o,d=(0,l._)((0,G.fp)((0,q.c5)(n9)(n)),2),h=d[0],f=d[1],g=(0,C.useCallback)(function(){f(r?n4:n2)},[f,r]),b=(0,C.useCallback)(function(){return f(n5)},[f]);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:I()("c-account-management__sso-card",{"c-account-management__sso-card--mobile":t}),children:(0,_.jsx)(w,{icon:(0,_.jsx)("div",{className:"c-account-management__sso-icon-wrapper",children:(0,_.jsx)("div",{className:I()("c-account-management__sso-icon-inner",{"c-account-management__sso-icon-inner--apple":a}),children:(0,_.jsx)(np.x,{symbolType:(0,nL.I)(n),"aria-label":"","aria-hidden":!0})})}),onClick:m?g:void 0,button:m?(0,_.jsx)(V,{onClick:g,children:r?ny.M.sso_unlink_action_label:ny.M.sso_link_action_label}):void 0,iconAlignItems:B.n.Center,children:(0,_.jsxs)("div",{className:I()("c-account-management__account-content",{"c-account-management__account-content--sm":t,"c-account-management__account-content--lg":!t}),children:[(0,_.jsx)("p",{className:I()("c-account-management__account-content-name",{"c-account-management__account-content-name--sm":t,"c-account-management__account-content-name--md":!t}),children:ny.M.sso_idp_label.replace("{{idpName}}",(0,nR.v)(n))}),(0,_.jsx)("p",{className:I()("c-account-management__account-content-paragraph",{"c-account-management__account-content-paragraph--sm":t,"c-account-management__account-content-paragraph--lg":!t}),"aria-hidden":c,children:c?"\xa0":o?ny.M.sso_status_error:r?null!=u?u:ny.M.sso_status_linked:ny.M.sso_status_not_linked})]})})}),h===n2&&(0,_.jsx)(nq,{idpType:n,onClose:b}),h===n4&&(0,_.jsx)(n1,{idpType:n,onClose:b})]})}var n3=t(39001),n7=t(32746),te=function(){var e=(0,C.useContext)(R.m)===v.b.MOBILE,n=(0,G.md)((0,q.c5)(O)),t=(0,G.md)((0,q.c5)(A)),a=(0,l._)((0,G.fp)((0,q.c5)(P)),2)[1],i=function(e){var n=(0,n7.Yr)(e.expiresAt*n7.zR);switch(e.status){case n3.d2.PENDING:return{message:F.w.account_student_verification_pending,isWarning:!1,shouldShowButton:!0};case n3.d2.VERIFIED:var t=(0,n7._g)();if(t>e.expiresAt)return{message:F.w.account_student_verification_expired,isWarning:!0,shouldShowButton:!0};if(t>e.reverifiableAt)return{message:(0,H.H)(F.w.account_student_verification_reverifiable,{expiresAt:n}),isWarning:!0,shouldShowButton:!0};return{message:(0,H.H)(F.w.account_student_verification_verified,{expiresAt:n}),isWarning:!1,shouldShowButton:!1};case n3.d2.EXPIRED:return{message:F.w.account_student_verification_expired,isWarning:!0,shouldShowButton:!0};case n3.d2.REJECTED:return{message:F.w.account_student_verification_rejected,isWarning:!0,shouldShowButton:!0};case n3.d2.REVOKED:case n3.d2.STUDENT_VERIFICATION_STATUS_NONE:case n3.d2.UNRECOGNIZED:return{message:F.w.account_student_verification_none,isWarning:!1,shouldShowButton:!0};default:return e.status,{message:F.w.account_student_verification_none,isWarning:!1,shouldShowButton:!0}}}(n3.kq.fromJSON(n.studentVerification)),c=i.message,o=i.isWarning,s=i.shouldShowButton,r=(0,C.useCallback)(function(e){(null==t||""===t.email)&&(e.preventDefault(),a(d.q.EmailRegistrationBeforeStudentVerification))},[a,t]),u=new URLSearchParams(location.search),m=(0,n_.H)({path:z.C.STUDENT_VERIFICATION,currentSearchParams:u,subscriptionFlowQueryParams:{planGroupId:null,
1subscriptionPageId:null,couponPlanId:null}});return(0,_.jsx)(w,{icon:(0,_.jsx)("div",{className:"c-account-management__email-icon-wrapper",children:(0,_.jsx)("div",{className:"c-account-management__email-icon-inner",children:(0,_.jsx)(np.x,{symbolType:np.B.ICONS_CONDITION_CHECKED,"aria-label":"","aria-hidden":!0})})}),href:m.toString(),onClick:r,button:s?(0,_.jsx)(V,{href:m.toString(),onClick:r,children:F.w.account_management_student_verification_action_name}):(0,_.jsx)(_.Fragment,{}),iconAlignItems:B.n.Center,children:(0,_.jsxs)("div",{className:I()("c-account-management__account-content",{"c-account-management__account-content--sm":e,"c-account-management__account-content--lg":!e}),children:[(0,_.jsx)("p",{className:I()("c-account-management__account-content-name",{"c-account-management__account-content-name--sm":e,"c-account-management__account-content-name--md":!e}),children:F.w.account_student_verification}),(0,_.jsx)("p",{className:I()("c-account-management__account-content-paragraph",{"c-account-management__account-content-paragraph--sm":e,"c-account-management__account-content-paragraph--lg":!e,"c-account-management__account-content-paragraph--warning":o}),children:c})]})})},tn=t(21391),tt=[{label:nN.P.navigation_breadcrumb_home,path:z.C.HOME},{label:nN.P.navigation_breadcrumb_account_management,path:z.C.ACCOUNT_MANAGEMENT}],ta=function(){var e=(0,C.useContext)(R.m)===v.b.MOBILE;return(0,_.jsx)(f.S,{activePath:z.C.ACCOUNT_MANAGEMENT,breadcrumbs:[{label:nN.P.navigation_breadcrumb_account_management,path:z.C.ACCOUNT_MANAGEMENT}],children:(0,_.jsxs)("div",{className:I()({"c-account-management--mobile":e}),children:[(0,_.jsxs)("div",{className:"c-account-management__header",children:[(0,_.jsx)(g.j,{children:F.w.account_management_title}),(0,_.jsx)(nh,{})]}),(0,_.jsxs)("div",{className:"c-account-management__card-list",children:[(0,_.jsx)($,{}),(0,_.jsx)(nj,{}),(0,_.jsx)(nf,{}),(0,_.jsx)(n6,{idpType:p.SI.IDP_TYPE_GOOGLE}),(0,_.jsx)(n6,{idpType:p.SI.IDP_TYPE_APPLE}),(0,_.jsx)(ng,{}),(0,_.jsx)(te,{})]}),e&&(0,_.jsx)(tn.A,{baseUrl:h.OZ.base,list:tt}),(0,_.jsx)(nd,{})]})})},ti=t(98645),tc=t(49792),to=t(95779),ts=t(51633),tr=function(e){var n=(0,q.c5)(m.accountManagementContainerStoreMolecule),t=(0,tc.o)(n),a=function(e){switch(e){case d.q.EditAccount:case d.q.EmailRegistration:case d.q.EmailUpdate:case d.q.ChangeAccount:case d.q.CreateOneTimePassword:case d.q.EmailRegistrationBeforeStudentVerification:return!0;case d.q.None:return!1;default:throw Error("modalType ".concat(e," was not defined in `isModalVisible` function."))}}((0,l._)((0,G.fp)((0,q.c5)(P)),1)[0]),i=(0,ts.S)(a);return(0,ti.E)((0,u._)((0,r._)({},e,t),{pageId:W.s.AccountManagement}),{}),(0,C.useEffect)(function(){var n={pathname:e.location.pathname,clientId:(0,e9.f)(),pageId:W.s.AccountManagement,isMobile:(0,e2.Fr)(),extraParams:{}};i&&!a&&(0,e4.vl)(n)},[e.location.pathname,i,a]),(0,_.jsx)(ta,{})},tu=(0,q.R_)(function(e){var n=e(m.accountManagementContainerStoreMolecule);return(0,to.a)(tr,function(){return n})})},29260:function(e,n,t){t.r(n);var a=t(80914),i=t(38960),c=t(62906),o=t(90563),s=t(57215),r=t(68886),u=t(29971),l=t(49304),_=t(39305),m=t(34516),d=t(13571),p=t(81588),h=t(21790),f=t(26984),g=t(14915),b=t(45501),v=t(20666),x=t(3919),N=t(74344),I=t(12668),C=t(10803),w=t(69384),j=t(97188),E=t(57011),T=(0,I.R_)(function(e){return new(e(S))}),S=(0,I.R_)(function(e){var n=e(g.q),t=x.A;function I(){var e;return(0,c._)(this,I),e=(0,i._)(this,I,[v.oD.SINGLE]),(0,s._)(e,"_activated",void 0),(0,s._)(e,"_userEmailContext",void 0),(0,s._)(e,"_subscription",void 0),e._activated=!1,e._userEmailContext=new f.f,e._subscription=null,e}return(0,l._)(I,t),(0,o._)(I,[{key:"initialState",get:function(){return{userProfileValue:(0,h.z5)().userProfileValue,userEmailValue:null,modalType:p.q.None,premiumPlanName:""}}},{key:"onEnterRoute",value:function(e){var n=this,t=this;return(0,a._)(function(){var a,i;return(0,d._)(this,function(c){switch(c.label){case 0:return a=(0,w._)(this.ready$),i=(0,h.d0)().getLatestPremium().planName,this.set((0,m._)((0,_._)({},this.initialState),{premiumPlanName:i})),this._reactivate(),[4,Promise.all([(0,r._)((0,u._)(I.prototype),"onEnterRoute",n).call(t,e),a])];case 1:return c.sent(),[2]}})}).call(this)}},{key:"fetch",value:function(){this.get()&&this.fetchAccount()}},{key:"fetchAccount",value:function(){var e=this._userEmailContext.
1intent,n=(0,C.X)(this.get()).userProfileValue.userId;e.fetchUserEmail(n)}},{key:"updateModalType",value:function(e){this.set({modalType:e})}},{key:"_activate",value:function(){!1===this._activated&&(this._activated=!0,this._userEmailContext.activate(),this._subscribe())}},{key:"deactivate",value:function(){!0===this._activated&&(this._activated=!1,this._unsubscribe(),this._userEmailContext.destroy())}},{key:"_reactivate",value:function(){this.deactivate(),this._activate()}},{key:"_subscribe",value:function(){var e,t,a,i,c,o,s,r,u,l=this._userEmailContext.store;null==this._subscription&&(this._subscription=(e=l,t=this,(a=new j.yU).add((i=e,c=t,i.userEmailValue$.subscribe({next:function(e){c.set({userEmailValue:e}),c.ready$.next()},error:N.H}))),a.add((o=e,s=t,o.userEmailError$.subscribe({next:function(e){e===b.p2&&s.set({userEmailValue:null}),s.ready$.next()},error:N.H}))),a.add((r=t,(0,h.z5)().userProfileValue$.pipe((0,E.p)(function(e){var n=r.get();return!!n&&e&&(n.userProfileValue.userId!==e.userId||n.userProfileValue.userId===e.userId&&n.userProfileValue.name!==e.name||n.userProfileValue.userId===e.userId&&n.userProfileValue.thumbImage.fileId!==e.thumbImage.fileId)})).subscribe({next:function(e){r.set({userProfileValue:e}),r.ready$.next(),r.fetchAccount(),n.fetchUser(e.userId)},error:N.H}))),a.add((u=t,(0,h.z5)().userSubscriptions$.subscribe({next:function(){var e=(0,h.d0)().getLatestPremium().planName;u.set({premiumPlanName:e})},error:N.H}))),a))}},{key:"_unsubscribe",value:function(){null!=this._subscription&&(this._subscription.unsubscribe(),this._subscription=null)}}]),I});t.d(n,{AccountManagementContainerStoreMolecule:function(){return S},accountManagementContainerStoreMolecule:function(){return T}})},81588:function(e,n,t){var a={None:"none",EditAccount:"EditAccount",EmailRegistration:"EmailRegistration",EmailUpdate:"EmailUpdate",CreateOneTimePassword:"CreateOneTimePassword",ChangeAccount:"ChangeAccount",EmailRegistrationBeforeStudentVerification:"EmailRegistrationBeforeStudentVerification"};t.d(n,{q:function(){return a}})},55243:function(e,n,t){var a=t(45501),i=t(11054);function c(e){var n=e.showEmailInputErrorMessage,t=e.requestEmailResultHttpStatusCode;if(n)return i.w.account_email_setting_error_email;if(null==t)return null;switch(t){case a.OK:return null;case a.qH:return i.w.account_email_setting_error_email_400;case a.AY:return i.w.account_email_setting_error_email_403;case a.n:default:return i.w.account_email_setting_error_email_500}}t.d(n,{e:function(){return c}})},98645:function(e,n,t){var a=t(27713),i=t(1102);function c(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];i.useEffect(function(){(0,a.N)({props:e,data:n,extraPageView:{},shouldUpdateTitle:!0})},t)}t.d(n,{E:function(){return c}})},21391:function(e,n,t){t.d(n,{A:function(){return d}});var a=t(64558),i=t(95885),c=t(42204),o=t(96),s=t(9254),r=t(91542),u=t(15479),l=t(30395),_=t.n(l),m=t(1102),d=function(e){var n=e.baseUrl,t=e.list,l=m.useMemo(function(){return{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:t.map(function(e,t){return{"@type":"ListItem",position:t+1,name:e.label,item:n+e.path}})}},[t,n]),d=m.useContext(i.m)===c.b.MOBILE;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("ul",{className:_()("com-m-BreadcrumbList",{"com-m-BreadcrumbList--mobile":d}),children:t.map(function(e,n){return(0,a.jsxs)("li",{className:"com-m-BreadcrumbList__item",children:[0!==n?(0,a.jsx)("div",{className:"com-m-BreadcrumbList__arrow",children:(0,a.jsx)(u.x,{symbolType:u.B.ICONS_NAVIGATION_CHEVRON_RIGHT,"aria-label":"","aria-hidden":!0})}):null,(0,a.jsx)(r.N,{designType:r.v.INLINE,to:n===t.length-1?void 0:e.path,title:e.label,children:(0,a.jsx)("span",{className:"com-m-BreadcrumbList__link",children:(0,a.jsx)(o.t,{text:e.label,lineCount:1})})})]},n)})}),(0,a.jsx)(s.Z,{jsonLdData:l})]})}},95779:function(e,n,t){var a=t(39305),i=t(64558),c=t(17045),o=t(1102);function s(e,n){var t=function(t){var s=(0,o.useRef)(t.location);s.current=t.location;var r=n(),u=r.extractIdentity(t);return(0,c.E)(function(){return r.applyScrollTop("PUSH"===s.current.action?0:u),function(){r.setScrollTop(u)}},[r,u]),(0,i.jsx)(e,(0,a._)({},t))};return t.displayName="restoreScroll(".concat(e.displayName||e.name,")"),t}n.A=s,t.d(n,{a:function(){return s}})},51633:function(e,n,t){var a=t(54114),i=t(1102);function c(e,n){var t=(0,a._)((0,i.useState)(null!=n?n:e),2),c=t[0],o=t[1],s=(0,i.useRef)(c);return(0,i.useEffect)(function(){e!==s.current&&(o(s.current),s.current=e)},[e]),c}t.d(n,{S:function(){return c}})}}]);

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.