1import{af as m,g as $,a0 as W,bY as Re,b as be,aE as ie,V as Pe,l as De,au as Ie}from"./DOM-CwA5r8Mo.min.js";import{o as r,c as l,a as t,A as u,n as G,b as s,m as O,C as P,K as p,M,F as ee,y as te,B as h,d as A,J as ge,w,L as j,Q as Oe,v as N,z as Q,x as Z,u as E,U as fe,O as he,E as V,r as Fe,a3 as re,N as Ge,I as _e}from"./vendor-B_LRvXhc.min.js";import{_ as k,U as z,l as ke,K as Ee,X as se,u as pe,Y as Se,Z as K,$ as we,a0 as Le,a1 as Ue,a2 as $e,a3 as Ve,a4 as We,a5 as Be,a6 as He,a7 as Ye,a8 as ve,a9 as qe,aa as x,ab as q,ac as J,ad as X,d as ze,ae,af as le,ag as de,ah as ue,ai as ce,z as me,Q as F,aj as Ae,ak as xe,al as je}from"./utd-all-BwgxlrC6.min.js";const Qe={props:{userData:Array,isDisabled:{type:Boolean,default:!1}},computed:{getInfoTitle(){return this.userData[0].charAt(0).toUpperCase()+this.userData[0].slice(1)},getBlockContent(){return this.userData[0]==="email"?this.userData[1].emailAddress:this.userData[1]}}},Ke={class:"consolidate-merge__info-block"},Ze={class:"consolidate-merge__info-block-content"};function Je(o,e,C,T,a,i){return r(),l("div",Ke,[t("div",{class:G(["consolidate-merge__info-block-title",{disabled:C.isDisabled}])},u(i.getInfoTitle),3),e[0]||(e[0]=s()),t("div",Ze,u(i.getBlockContent),1)])}const Xe=k(Qe,[["render",Je],["__scopeId","data-v-5b2a0668"]]),et={components:{UtdNotificationAdapter:se,UtdNotification:Ee,UtdModalDialog:ke,ConsolidateAccountInfo:Xe,UtdButton:z},data(){return{message:{type:"error",title:"",content:""},isDisabled:!1,isNotification:!1,showCredits:!0,isMerged:!1,accounts:{accountToBeDeactivated:{},accountRemainsActive:{}}}},computed:{...O("account",["mergedData"]),deactivatedCreditInfo(){return[m.FORM_MESSAGING.MERGE_CME_MESSAGE,this.getCreditNumber(this.accounts.accountToBeDeactivated.credits)]},remainingCreditInfo(){return[m.FORM_MESSAGING.MERGE_CME_MESSAGE,this.getCreditNumber(this.accounts.accountRemainsActive.credits)]}},mounted(){if(this.mergedData&&(!this.mergedData.accountToBeDeactivated.userName&&this.mergedData.accountRemainsActive.userName?(this.accounts.status=this.mergedData.status,this.accounts.accountToBeDeactivated=this.mergedData.accountRemainsActive,this.accounts.accountRemainsActive=this.mergedData.accountToBeDeactivated):this.accounts=this.mergedData,this.mergedData.status!=="SUCCESS")){const o=this.mergedData.status.replace(/\./g,"_").toUpperCase(),e=o.indexOf("CANNOT_MERGE")>-1||o.indexOf("MERGE_NOT_ALLOWED")>-1?m.FORM_MESSAGING[o]+m.FORM_MESSAGING.CANNOT_MERGE_CONTACT:m.FORM_MESSAGING[o];this.setNotificationMessage(e);return}},methods:{mergeAccounts(){this.clearNotification(),this.$refs.consolidateDialog.open()},clearNotification(){this.isNotification=!1,this.message={content:"",title:""}},setNotificationMessage(o){this.message.title=m.FORM_MESSAGING.MERGE_DEFAULT_TITLE,this.message.content=o||m.FORM_MESSAGING.MERGE_DEFAULT_MESSAGE+m.FORM_MESSAGING.CANNOT_MERGE_CONTACT,this.isNotification=!0},closeModal(){this.$refs.consolidateDialog.close()},async consolidateAccounts(){try{await pe("mergeAccounts",void 0),this.isDisabled=!0,this.isMerged=!0,this.isNotification=!0,this.message={type:m.MESSAGE_TYPE.SUCCESS,title:m.FORM_MESSAGING.MERGE_SUCCESS_TITLE,content:m.FORM_MESSAGING.MERGE_SUCCESS_MESSAGE},this.showCredits=!1}catch{this.message={type:m.MESSAGE_TYPE.ERROR,title:m.FORM_MESSAGING.MERGE_DEFAULT_TITLE,content:m.FORM_MESSAGING.MERGE_FAILURE_MESSAGE+m.FORM_MESSAGING.CANNOT_MERGE_CONTACT}}this.$refs.consolidateDialog.close()},getAccountItems(o){return Object.keys(o).reduce((e,C,T)=>(T<3&&e.push([C,o[C]]),e),[])},getCreditNumber(o){const e=o==="Not Available"?0:(Math.round(o*100)/100).toFixed(2);return String(e).slice(-1)==="0"?Number(e).toFixed(1):e},getIdentifier(o){if(o)return o.userName||o.email&&o.email.emailAddress}}},tt={class:"consolidate-merge__steps"},st={id:"accountToRemainActiveConfirmation",class:"merge-plan-item-1"},ot={class:"merge-plan-content"},nt=["title"],it={id:"accountToBeDeactivatedConfirmation"},rt={class:"merge-plan-content"},at=["title"],lt={class:"consolidate-merge__description"},dt={class:"consolidate-merge__steps"},ut={id:"accountToRemainActiveDisclaimer",class:"merge-plan-item-1"},ct={class:"merge-plan-content"}
1,mt=["title"],gt={id:"accountToBeDeactivatedDisclaimer"},ft={class:"merge-plan-content"},_t=["title"],Et={class:"consolidate-merge__info"},pt={key:0,class:"consolidate-merge__credit-block"},St={class:"consolidate-merge__info"},wt={key:0,class:"consolidate-merge__credit-block"};function vt(o,e,C,T,a,i){const v=P("utd-notification"),d=P("utd-button"),D=P("utd-modal-dialog"),g=P("utd-notification-adapter"),R=P("consolidate-account-info");return r(),l("div",null,[p(D,{ref:"consolidateDialog","modal-classes":"consolidate-confirmation-modal"},{header:M(()=>e[3]||(e[3]=[t("div",{class:"consolidate-merge__modal-header"},` 2 Transfer CME credits and deactivate account? 3 `,-1)])),footer:M(()=>[p(d,{class:"form-button consolidate-merge__cancel-button","button-style":"ghost",onClick:e[0]||(e[0]=c=>i.closeModal())},{default:M(()=>e[16]||(e[16]=[s(` 4 Cancel 5 `)])),_:1,__:[16]}),e[18]||(e[18]=s()),p(d,{class:"form-button consolidate-merge__dialog-merge-button",onClick:e[1]||(e[1]=c=>i.consolidateAccounts())},{default:M(()=>e[17]||(e[17]=[s(` 6 Merge 7 `)])),_:1,__:[17]})]),default:M(()=>[e[19]||(e[19]=s()),t("div",tt,[e[13]||(e[13]=t("span",null,"You are about to complete the following actions:",-1)),e[14]||(e[14]=s()),t("ul",null,[t("li",st,[t("p",ot,[e[4]||(e[4]=t("b",null,"Transferring",-1)),e[5]||(e[5]=s(` all of your Continuing Medical Education (CME) credits 8 into your account: 9 `)),t("b",{class:"account-name",title:i.getIdentifier(a.accounts.accountRemainsActive)},u(i.getIdentifier(a.accounts.accountRemainsActive)),9,nt),e[6]||(e[6]=s(`. 10 `))])]),e[10]||(e[10]=s()),t("li",it,[t("p",rt,[e[7]||(e[7]=t("b",null,"Deactivating",-1)),e[8]||(e[8]=s(` the account: 11 `)),t("b",{title:i.getIdentifier(a.accounts.accountToBeDeactivated)},u(i.getIdentifier(a.accounts.accountToBeDeactivated)),9,at),e[9]||(e[9]=s(`. 12 `))])])]),e[15]||(e[15]=s()),p(v,{id:"nextStepsMergeConfirmationNotification","notification-mode":"warn"},{title:M(()=>e[11]||(e[11]=[s(` 13 Warning 14 `)])),default:M(()=>[e[12]||(e[12]=s(` 15 This action will be permanent and cannot be undone. 16 `))]),_:1,__:[12]})]),e[20]||(e[20]=s())]),_:1,__:[19,20]},512),e[48]||(e[48]=s()),t("div",lt,[e[43]||(e[43]=t("p",null,`Merging accounts will transfer your continuing education credits 17 from one account into another. 18 After the merge you will have one active account with all of your information. 19 The other account will be deactivated, and you will no longer be able to sign in to it. 20 This will allow you to keep all of your information in one account. 21 `,-1)),e[44]||(e[44]=s()),t("div",dt,[e[30]||(e[30]=t("span",null,[t("b",null,"Merging accounts will complete the following steps:")],-1)),e[31]||(e[31]=s()),t("ul",null,[t("li",ut,[t("p",ct,[e[21]||(e[21]=t("b",null,"Transferring",-1)),e[22]||(e[22]=s(` all of your Continuing Medical Education (CME) credits 22 into your account: 23 `)),t("b",{title:i.getIdentifier(a.accounts.accountRemainsActive)},u(i.getIdentifier(a.accounts.accountRemainsActive)),9,mt),e[23]||(e[23]=s(`. 24 `))])]),e[27]||(e[27]=s()),t("li",gt,[t("p",ft,[e[24]||(e[24]=t("b",null,"Deactivating",-1)),e[25]||(e[25]=s(` the account: 25 `)),t("b",{title:i.getIdentifier(a.accounts.accountToBeDeactivated)},u(i.getIdentifier(a.accounts.accountToBeDeactivated)),9,_t),e[26]||(e[26]=s(`. 26 `))])])]),e[32]||(e[32]=s()),p(v,{id:"nextStepsMergeNotification","notification-mode":"warn"},{title:M(()=>e[28]||(e[28]=[s(` 27 Warning 28 `)])),default:M(()=>[e[29]||(e[29]=s(` 29 This action will be permanent and cannot be undone. 30 `))]),_:1,__:[29]}),e[33]||(e[33]=s()),p(g,{id:"mergeNotification","notification-mode":a.message.type,"notification-title":a.message.title,"notification-content":a.message.content},null,8,["notification-mode","notification-title","notification-content"])]),e[45]||(e[45]=s()),t("div",Et,[e[34]||(e[34]=t("div",{class:"consolidate-merge__info-title-block"},"Account To Be Deactivated",-1)),e[35]||(e[35]=s()),(r(!0),l(ee,null,te(i.getAccountItems(a.accounts.accountToBeDeactivated),(c,S)=>(r(),h(R,{key:S,"user-data":c,"is-disabled":a.isDisabled},null,8,["user-data","is-disabled"]))),128)),e[36]||(e[36]=s()),a.showCredits?(r(),l("div",pt,[p(R,{class:"consolidate-merge__credit-block-item","user-data":i.deactivatedCreditInfo},null,8,["user-data"])])):A("",!0)]),e[46]||(e[46]=s()),t("div",{class:G(["consolidate-merge__arrow-row",{"account-merged":a.isMerged}])},e[37]||(e[37]=[t("div",{class:"consolidate-merge__arrow-down"},[t("i",{class:"wk-icon-arrow-down"})],-1)]),2),e[47]||(e[47]=s()),t("div",St,[e[39]||(e[39]=t("div",{class:"consolidate-merge__info-title-block remaining"},"Account Remaining",-1)),e[40]||(e[40]=s()),(r(!0),l(ee,null,te(i.getAccountItems(a.accounts.accountRemainsActive),(c,S)=>(r(),h(R,{key:S,"user-data":c},null,8,["user-data"]))),128)),e[41]||(e[41]=s()),a.showCredits?(r(),l("div",wt,[p(R,{class:"consolidate-merge__credit-block-item","user-data":i.remainingCreditInfo},null,8,["user-data"])])):A("",!0),e[42]||(e[42]=s()),t("div",null,[p(d,{class:"form-button consolidate-merge__merge-button",disabled:a.isNotification,onClick:e[2]||(e[2]=c=>i.mergeAccounts())},{default:M(()=>e[38]||(e[38]=[s("Merge Accounts")])),_:1,__:[38]},8,["disabled"])])])])])}const At=k(et,[["render",vt],["__scopeId","data-v-e8f13648"]]),Ct={components:{UtdNotificationAdapter:se,UtdButton:z,ForgotPasswordModal:Se},data(){return{userName:"",password:"",isActive:!0,showPassword:!1,capsOn:!1,message:{error:"",title:""}}},computed:{...O("login",["form"]),...O("account",["mergedData"]),...O("device",["noNativeCapsLock"])},methods:{...ge("account",["findNewAccount"]),findAccount(){if(this.form.isSubmitting)return;this.form.isSubmitting=!0,this.clearError();
30const o=$().document.querySelector(":focus");if(o&&o.blur(),this.validateEntry()){const e=`consolidateUserName=${this.form.userName}&consolidatePassword=${this.form.password}`;this.form.isSubmitting=!0,this.findNewAccount(e).then(()=>{this.form.isSubmitting=!1,this.mergedData.error&&this.setErrorMessage("FIND_ACCOUNT_DEFAULT_MESSAGE")}).catch(()=>{this.form.isSubmitting=!1,this.setErrorMessage("FIND_ACCOUNT_DEFAULT_MESSAGE")})}this.form.isSubmitting=!1},validateEntry(){return this.form.userName===""||this.form.userName===void 0?(this.setErrorMessage("USERNAME_ERROR"),this.setElementFocus("#userName"),!1):this.form.password===""||this.form.password===void 0?(this.setErrorMessage("PASSWORD_ERROR"),this.setElementFocus("#password"),!1):!0},setElementFocus(o){const e=this.$el&&this.$el.querySelector(o);e&&e.focus()},clearError(){this.message={error:"",title:""}},setErrorMessage(o,e){this.message.title=e?m.FORM_MESSAGING[e]:m.FORM_MESSAGING.ERROR_TITLE,this.message.error=m.FORM_MESSAGING[o]},togglePasswordVisibility(){this.showPassword=!this.showPassword},checkCase(o){this.noNativeCapsLock&&(this.capsOn=o.getModifierState&&o.getModifierState("CapsLock"))},resetCaps(){this.capsOn=!1},openForgotPassword(){this.$refs.forgotPassword.open()}}},Mt={class:"consolidate-account__login-description"},yt={class:"form-row form-break"},Nt={class:"label-above"},Tt={class:"form-row"},Rt={class:"form-links"},bt={class:"consolidate-account__form-label"},Pt={class:"consolidate-account__show-hide-label"},Dt=["type"],It={class:"wkce-icon-filled-shift input-icon"},Ot={class:"form-break form-row"},ht={class:"form-control"};function Ft(o,e,C,T,a,i){const v=P("utd-notification-adapter"),d=P("utd-button"),D=P("forgot-password-modal");return r(),l("div",null,[e[20]||(e[20]=t("div",{class:"consolidate-account__description"},[t("p",null,`Merging accounts will transfer your continuing education credits 31 from one account into another. 32 After the merge you will have one active account with all of your information. 33 The other account will be deactivated, and you will no longer be able to log in to it. 34 This will allow you to keep all of your information in one account. 35 `)],-1)),e[21]||(e[21]=s()),t("form",{id:"loginForm",class:G(["consolidate-account__login-form form-login jumpstart-form",{isActive:a.isActive}]),name:"loginForm",onSubmit:e[7]||(e[7]=Q((...g)=>i.findAccount&&i.findAccount(...g),["prevent"]))},[t("fieldset",null,[e[14]||(e[14]=t("h3",{class:"consolidate-account__login-form-title"},"Find Second Account",-1)),e[15]||(e[15]=s()),t("div",Mt,[e[8]||(e[8]=s(`Enter credentials for 36 second account. `)),t("a",{href:"#",onClick:e[0]||(e[0]=g=>i.openForgotPassword())},"Log-In Help")]),e[16]||(e[16]=s()),p(v,{"notification-mode":"error","notification-content":a.message.error,"notification-title":a.message.title},null,8,["notification-content","notification-title"]),e[17]||(e[17]=s()),t("label",yt,[t("span",Nt,u(o.$t("LOGIN.USER_NAME")),1),e[9]||(e[9]=s()),w(t("input",{id:"userName","onUpdate:modelValue":e[1]||(e[1]=g=>o.form.userName=g),class:"form-field jumpstart-input",type:"text",autocapitalize:"off",autocorrect:"off",maxlength:"50"},null,512),[[j,o.form.userName,void 0,{trim:!0}]])]),e[18]||(e[18]=s()),t("label",Tt,[t("div",Rt,[t("span",bt,u(o.$t("LOGIN.PASSWORD")),1),e[10]||(e[10]=s()),t("span",{class:"consolidate-account__icon wkce-icon-visible",onClick:e[2]||(e[2]=(...g)=>i.togglePasswordVisibility&&i.togglePasswordVisibility(...g))},[t("span",Pt,u(o.$t(a.showPassword?"HIDE":"SHOW")),1)])]),e[12]||(e[12]=s()),t("div",null,[w(t("input",{id:"password","onUpdate:modelValue":e[3]||(e[3]=g=>o.form.password=g),name:"password",class:"form-field jumpstart-input",maxlength:"24",type:a.showPassword?"text":"password",onKeyup:e[4]||(e[4]=g=>i.checkCase(g)),onFocus:e[5]||(e[5]=g=>i.checkCase(g)),onBlur:e[6]||(e[6]=g=>i.resetCaps())},null,40,Dt),[[Oe,o.form.password]]),e[11]||(e[11]=s()),w(t("span",It,null,512),[[N,a.capsOn]])])]),e[19]||(e[19]=s()),t("div",Ot,[t("span",ht,[p(d,{id:"btnLoginSubmit",class:G(["form-button login-button consolidate-account__login-button",{isActive:a.isActive}])},{default:M(()=>[w(t("span",null,u(o.$t("PLEASE_WAIT")),513),[[N,o.form.isSubmitting]]),e[13]||(e[13]=s()),w(t("span",null,"Find Account",512),[[N,!o.form.isSubmitting]])]),_:1,__:[13]},8,["class"])])])])],34),e[22]||(e[22]=s()),p(D,{ref:"forgotPassword"},null,512)])}const Gt=k(Ct,[["render",Ft],["__scopeId","data-v-54be5d9b"]]),kt={class:"consolidate-accounts__container"},Lt={class:"consolidate-accounts__header"},Ut={class:"consolidate-accounts__header-list"},$t=["innerHTML"],Vt={class:"consolidate-accounts__username-password"},Wt={__name:"ConsolidateAccountsMergeForm",emits:["forgot-password","merge-success"],setup(o,{emit:e}){const{userName:C,password:T,isMerging:a,mergeError:i,mergeData:v,handleFindAccountError:d,setSubmitting:D,findConsolidateAccount:g,checkConsolidateErrorStatus:R,resetMerge:c}=K(),S=Z(),I=e,y=b=>{const{navigateToSso:f}=K();f(b,W.CONSOLIDATE_MERGE_TYPE)},B=async b=>{await Fe(),R(b)&&(i.message=b,i.title=m.FORM_MESSAGING.MERGE_ERROR_TITLE,v.error=!0)},H=E(()=>S.getters["login/oidcMergeStatus"]);fe(H,b=>{b!==""&&b!==W.OIDC_MERGE_SUCCESS&&B(b)},{immediate:!0});const L=async()=>
36{if(!a.value){D(!0);try{const b=re.sanitize(C.value.trim()),f=re.sanitize(T.value.trim()),U=new URLSearchParams({consolidateUserName:b,consolidatePassword:f}).toString();await g(U)}catch(b){d(b)}finally{D(!1)}}};return he(()=>{v.findAccountSuccess||(c(),S.commit(`login/${we}`,""))}),(b,f)=>(r(),l("div",kt,[t("div",Lt,[f[1]||(f[1]=t("h3",{class:"consolidate-accounts__subheader"},"Important Information",-1)),f[2]||(f[2]=s()),t("ul",Ut,[(r(!0),l(ee,null,te(V(Re),(U,Y)=>(r(),l("li",{key:Y,class:"ds1-mb-1"},[t("p",{class:"ds1-reset-p",innerHTML:U},null,8,$t)]))),128))])]),f[5]||(f[5]=s()),t("div",Vt,[f[3]||(f[3]=t("h3",{class:"consolidate-accounts__subheader"},` 37 Find your existing account using the options below: 38 `,-1)),f[4]||(f[4]=s()),p(Le,{class:"consolidate-form-controls","show-searchable-institutions":!0,"merge-source":V(W).CONSOLIDATE_MERGE_TYPE,onFindAccount:L,onOpenForgotPassword:f[0]||(f[0]=U=>I("forgot-password")),onNavigateToSso:y},null,8,["merge-source"])])]))}},Bt=k(Wt,[["__scopeId","data-v-43fcca82"]]),Ht={class:"merge-accounts-panel"},Yt={class:"merge-accounts__content-grid"},qt={class:"merge-accounts__section-title"},zt={key:0,class:"merge-accounts__section-title-note"},xt={key:0,class:"merge-accounts__section-content"},jt={class:"merge-accounts__credits-grid"},Qt={class:"merge-accounts__credit-item"},Kt={key:0},Zt={key:1},Jt={key:2},Xt={key:3},es={class:"merge-accounts__credit-item"},ts={key:0},ss={key:1},os={key:2},ns={key:0,class:"merge-accounts__credit-item total"},is={key:1,class:"merge-accounts__section-content"},rs={class:"merge-accounts__section-content"},as={key:0},ls={key:1},ds={key:2},us={key:3,class:"merge-accounts__email"},cs={class:"merge-accounts__section-content"},ms={key:0},gs={class:"merge-accounts__email"},fs={key:1},_s={class:"merge-accounts__section-content"},Es={key:0,class:"merge-accounts__sign-in-note"},ps={class:"merge-accounts__email"},Ss={key:1,class:"merge-accounts__sign-in-note"},ws={key:0,class:"merge-accounts__email"},vs={key:1,class:"merge-accounts__email"},As={key:2,class:"merge-accounts__sign-in-note"},Cs={class:"merge-accounts__actions"},Ms={__name:"ConsolidateAccountsSummaryPanel",emits:["cancel","merge"],setup(o,{emit:e}){const C=e,T=Z(),{getOrgCredits:a,getActiveCredits:i,getTotalCredits:v,mergeData:d}=K(),D=E(()=>{var _;return((_=T.getters["login/oidcMergePreviewSummary"])==null?void 0:_.mergeProfile)||T.getters["login/mergeProfile"]||{}}),g=E(()=>parseFloat(a())||0),R=E(()=>parseFloat(i())||0),c=m.FORM_MESSAGING.MERGE_TYPES,S=E(()=>d.mergeType===c.NON_SSO),I=E(()=>d.mergeType===c.NON_SSO_AND_SSO||d.mergeType===c.INDIVIDUAL||d.mergeType===c.SSO_WINNER),y=E(()=>d.mergeType===c.SSO_AND_SSO),B=E(()=>d.mergeType===c.INDIVIDUAL),H=E(()=>d.mergeType===c.SSO_WINNER),L=E(()=>d.mergeType===c.TARGET_SSO_WINNER),b=E(()=>I.value&&!B.value||L.value),f=E(()=>{var _;return(_=d.accountRemainsActive)==null?void 0:_.userName}),U=E(()=>{var _;return(_=d.accountToBeDeactivated)==null?void 0:_.userName}),Y=_=>_%1===0?_.toString():parseFloat(_.toFixed(2)).toString(),oe=E(()=>v()||0),ne=E(()=>g.value>0||R.value>0),Ce=E(()=>{const _=Y(g.value);return _==="1"?`${_} credit`:`${_} credits`}),Me=E(()=>{const _=Y(R.value);return _==="1"?`${_} credit`:`${_} credits`}),ye=E(()=>{const _=Y(oe.value);return _==="1"?`${_} combined credit`:`${_} combined credits`}),Ne=()=>{C("merge")},Te=()=>{C("cancel")};return(_,n)=>(r(),l("div",Ht,[n[33]||(n[33]=t("h3",{class:"merge-accounts-subheading"},"Note:",-1)),n[34]||(n[34]=s()),n[35]||(n[35]=t("ul",null,[t("li",{class:"merge-accounts__note"},[t("b",null,"The following merge of your accounts"),s(` 39 will create just one account for you moving forward. 40 `)])],-1)),n[36]||(n[36]=s()),n[37]||(n[37]=t("h3",{class:"merge-accounts-subheading"},` 41 After the merge your single account will have: 42 `,-1)),n[38]||(n[38]=s()),t("div",Yt,[t("div",qt,[n[0]||(n[0]=t("p",{class:"ds1-reset-p"},` 43 CME Credits 44 `,-1)),n[1]||(n[1]=s()),ne.value?(r(),l("p",zt,` 45 (Credits from each account will be combined in the merged account.) 46 `)):A("",!0)]),n[20]||(n[20]=s()),ne.value?(r(),l("div",xt,[t("div",jt,[t("div",Qt,[L.value?(r(),l("p",Kt,` 47 From your account with username `+u(f.value)+`: 48 `,1)):S.value||H.value?(r(),l("p",Zt,` 49 From your account with username `+u(U.value)+`: 50 `,1)):I.value?(r(),l("p",Jt,` 51 From your account accessed with your organization's sign-in page: 52 `)):y.value?(r(),l("p",Xt,` 53 From your newer account: 54 `)):A("",!0),n[2]||(n[2]=s()),t("p",null,[t("b",null,u(Ce.value),1)])]),n[6]||(n[6]=s()),t("div",es,[L.value?(r(),l("p",ts,` 55 From your account accessed with your organization's sign-in page: 56 `)):S.value||I.value?(r(),l("p",ss,` 57 From your account with username `+u(f.value)+`: 58 `,1)):y.value?(r(),l("p",os,` 59 From your older account: 60 `)):A("",!0),n[3]||(n[3]=s()),t("p",null,[t("b",null,u(Me.value),1)])]),n[7]||(n[7]=s()),oe.value>0?(r(),l("div",ns,[n[4]||(n[4]=t("p",null,` 61 To your merged account: 62 `,-1)),n[5]||(n[5]=s()),t("p",null,[t("b",null,u(ye.value),1)])])):A("",!0)])])):(r(),l("div",is,` 63 None 64 `)),n[21]||(n[21]=s()),n[22]||(n[22]=t("div",{class:"merge-accounts__section-title"},"Bookmarks, History, CME/MOC Settings",-1)),n[23]||(n[23]=s()),t("div",rs,[L.value?(r(),l("p",as,` 65 From your account accessed with your organization's sign-in page 66 `)):S.value||I.value?(r(),l("p",ls,` 67 From your account with username: 68 `)):y.value?(r(),l("p",ds,` 69 From your older account 70 `)):A("",!0),n[8]||(n[8]=s()),f.value&&!L.value?(r(),l("p",us,u(f.value),1)):A("",!0)]),n[24]||(n[24]=s()),n[25]||
70(n[25]=t("div",{class:"merge-accounts__section-title"},[t("p",{class:"ds1-reset-p"},` 71 Your Profile 72 `),s(),t("p",{class:"merge-accounts__section-title-note"},` 73 (You will be able to update your profile after the merge if needed.) 74 `)],-1)),n[26]||(n[26]=s()),t("div",cs,[S.value||H.value?(r(),l("div",ms,[n[9]||(n[9]=t("p",null,"From your account with username:",-1)),n[10]||(n[10]=s()),t("p",gs,u(f.value),1)])):L.value?(r(),l("div",fs,n[11]||(n[11]=[t("p",null,"From your account accessed with your organization's sign-in page",-1)]))):I.value||y.value?(r(),h(Ue,{key:2,"merge-profile":D.value,"is-individual-subscriber":B.value},null,8,["merge-profile","is-individual-subscriber"])):A("",!0)]),n[27]||(n[27]=s()),n[28]||(n[28]=t("div",{class:"merge-accounts__section-title"},"Future Sign-in Instructions",-1)),n[29]||(n[29]=s()),t("div",_s,[S.value?(r(),l("div",Es,[t("p",null,[t("b",null,"Sign in as "+u(f.value)+".",1)]),n[12]||(n[12]=s()),n[13]||(n[13]=t("p",{class:"merge-accounts__mt-text"},"You will no longer be able to sign in as:",-1)),n[14]||(n[14]=s()),t("p",ps,u(U.value)+".",1)])):b.value?(r(),l("div",Ss,[n[15]||(n[15]=t("p",null,[t("b",null,"Sign in with your organization's sign-in page."),s(` 75 The UpToDate sign-in page will help you navigate to this process. 76 `)],-1)),n[16]||(n[16]=s()),n[17]||(n[17]=t("p",{class:"merge-accounts__mt-text"},"You will no longer be able to sign in as:",-1)),n[18]||(n[18]=s()),H.value?(r(),l("p",ws,u(U.value)+`. 77 `,1)):(r(),l("p",vs,u(f.value)+".",1))])):y.value||B.value?(r(),l("div",As,n[19]||(n[19]=[t("p",null,[t("b",null,"No changes"),s(` â 78 Continue signing in as usual. 79 `)],-1)]))):A("",!0)])]),n[39]||(n[39]=s()),V(d).error?(r(),h($e,{key:0,id:"mergeErrorNotification","error-title":V(m).FORM_MESSAGING.MERGE_ERROR_TITLE,"error-message":V(m).FORM_MESSAGING.MERGE_FAILURE_TYPE.MERGE_RULE_VIOLATION},null,8,["error-title","error-message"])):A("",!0),n[40]||(n[40]=s()),t("div",Cs,[p(z,{"button-style":"ghost","button-size":"large",onClick:Te},{default:M(()=>n[30]||(n[30]=[s(` 80 Cancel 81 `)])),_:1,__:[30]}),n[32]||(n[32]=s()),p(z,{class:"primary","button-size":"large",onClick:Ne},{default:M(()=>n[31]||(n[31]=[s(` 82 Merge accounts 83 `)])),_:1,__:[31]})])]))}},ys=k(Ms,[["__scopeId","data-v-1b038509"]]),Ns={class:"consolidate-accounts-redesign"},Ts={__name:"ConsolidateAccountsRedesign",setup(o){const{mergeData:e,resetMerge:C,handleSsoMergeAttempt:T,consolidateAccounts:a}=K(),i=Ge(null),v=()=>{We({uiElementName:"consolidateAccounts_forgotPasswordLink"}),i.value.open()},d=Z(),D=E(()=>d.getters["login/oidcMergePreviewSummary"]);fe(D,I=>{I&&T(I)},{immediate:!0});const g=E(()=>e.findAccountSuccess),R=()=>{C(),d.commit(`login/${we}`,"")},c=new Ve,S=async()=>{if(await a(),e.consolidateSuccess){const I=e.mergeType===m.FORM_MESSAGING.MERGE_TYPES.NON_SSO_AND_SSO?W.MESSAGES.SSO_MERGE.name:W.MESSAGES.GENERIC_MERGE.name,y=Be(be.DEFAULT_HOMEPAGE_PATH,W.REG_MERGE_SUCCESS_PARAM,`${I}_CONSOLIDATE`);c.removePersistent("ssoRedirectURL"),$().location.href=y}};return(I,y)=>(r(),l("div",Ns,[y[0]||(y[0]=t("h2",{class:"ds1-mv-3"},"Merge Accounts",-1)),y[1]||(y[1]=s()),g.value?(r(),h(ys,{key:1,onCancel:R,onMerge:S})):(r(),h(Bt,{key:0,onForgotPassword:v})),y[2]||(y[2]=s()),p(Se,{ref_key:"forgotPassword",ref:i},null,512)]))}},Rs=k(Ts,[["__scopeId","data-v-e829e47e"]]),bs={key:0,class:"consolidate-account__redesign"},Ps={key:1,class:"consolidate-account__legacy"},Ds={key:0,class:"consolidate-account__disaster-recovery"},Is={key:1},Os={key:2},hs=["innerHTML"],Fs={__name:"ConsolidateAccounts",emits:["cancel"],setup(o){const e=Z(),C=m.FORM_MESSAGING.MERGE_NOT_ALLOWED,T=ie.DEFAULT,a=ie.APOLOGY,i=E(()=>e.getters["account/mergedData"]),v=E(()=>e.getters["profile/permissions"]),d=E(()=>e.getters["app/isDisasterRecovery"]),D=E(()=>e.getters["feature/isSsoToSsoConsolidateAccountsEnabled"]),g=E(()=>[{"consolidate-account__no-permissions":!v.value.userCanMerge}]);return(R,c)=>(r(),l("div",{class:G(["consolidate-account__component",g.value])},[D.value?(r(),l("div",bs,[p(Rs,{onCancel:c[0]||(c[0]=S=>R.$emit("cancel"))})])):(r(),l("div",Ps,[c[2]||(c[2]=t("h2",null,"Merge Accounts",-1)),c[3]||(c[3]=s()),d.value?(r(),l("div",Ds,[t("p",null,u(V(T)),1),c[1]||(c[1]=s()),t("p",null,u(V(a)),1)])):v.value.userCanMerge?(r(),l("div",Is,[i.value.status?(r(),h(At,{key:1})):(r(),h(Gt,{key:0}))])):(r(),l("div",Os,[t("span",{innerHTML:V(C)},null,8,hs)]))]))],2))}},Gs=k(Fs,[["__scopeId","data-v-e90d1145"]]),ks={components:{UtdNotificationAdapter:se,UtdNotification:Ee,UtdLogo:ve,UtdCustomerSupport:Ye,UtdButton:z,UtdTextInput:He},data(){return{cancelResizeTimeout:null,hasEmailError:!1}},computed:{...O("app",["countryCode"]),...O("auth",["resetPwdEmailForm","resetPwdMessageCode","resetPwdMessageContent","resetPwdDisplayShowEmailForm","resetPwdDisplayShowEmailCtrls","resetPwdIsSendEmailDisabled","resetPwdIsSendEmailA
83ctive"]),...O("device",["isDesktopView","isNotDesktopView"]),emailFormModel:{get(){return this.resetPwdEmailForm.email},set(o){this[ae](o)}},isSubmitDisabled(){return this.resetPwdIsSendEmailDisabled||this.resetPwdEmailForm.email===""}},beforeUnmount(){this.resetForm()},methods:{...ge("auth",["sendResetRequestEmailAddress"]),..._e("auth",[q,ae,J,X,x]),triggerDelayedResizeEvent(){this.cancelResizeTimeout=Pe(()=>{ze("resize")},De.WINDOW_RESIZE_DELAY_MS,{cancelHook:!0}).cancelTimeout},sendEmailAddressRequest(){if(this.resetPwdEmailForm.email===""||this.resetPwdEmailForm.email===void 0)this[q](this.$t("LOGIN.RESET_PASSWORD_ERROR"));else{this[J](!0),this[X](!0);const o=$().document.querySelector(":focus");o&&o.blur(),this.sendResetRequestEmailAddress().finally(()=>{this[J](!1),this[X](!1),this.triggerDelayedResizeEvent()})}},resetEmailValidation(){this.hasEmailError=!1},resetForm(){this[x](),this.hasEmailError=!1},isValidEmail(o){return qe.isValidEmail(o)},submitForm(){this.isValidEmail(this.resetPwdEmailForm.email)?this.sendEmailAddressRequest():this.hasEmailError=!0}}},Ls={id:"resetPasswordView",class:"utd-form"},Us={class:"floating-labels-form"},$s=["textContent"],Vs=["innerHTML"],Ws=["textContent"],Bs={class:"dialog__input-container wk-js2"},Hs={class:"form-break form-row"},Ys={class:"form-control"},qs={class:"form-footer floating-labels-form"};function zs(o,e,C,T,a,i){const v=P("UtdLogo"),d=P("utd-notification-adapter"),D=P("utd-notification"),g=P("utd-text-input"),R=P("utd-button"),c=P("utd-customer-support");return r(),l("div",Ls,[t("div",Us,[o.isNotDesktopView?(r(),h(v,{key:0})):A("",!0),e[10]||(e[10]=s()),w(t("form",{name:"resetPasswordForm",class:G([{isActive:o.resetPwdIsSendEmailActive},"jumpstart-form"]),onSubmit:e[2]||(e[2]=Q((...S)=>i.sendEmailAddressRequest&&i.sendEmailAddressRequest(...S),["prevent"]))},[t("fieldset",null,[o.isDesktopView?w((r(),l("h3",{key:0,textContent:u(o.$t("LOGIN.RESET_PASSWORD_INTRO"))},null,8,$s)),[[N,o.resetPwdDisplayShowEmailCtrls]]):A("",!0),e[5]||(e[5]=s()),o.resetPwdMessageCode?(r(),h(d,{key:1,"notification-mode":"error","notification-content":o.$t("MYACCOUNT.ACCOUNT_GUID_MESSAGE"),"notification-title":o.$t(o.resetPwdMessageCode)},null,8,["notification-content","notification-title"])):A("",!0),e[6]||(e[6]=s()),o.resetPwdDisplayShowEmailCtrls?A("",!0):(r(),h(D,{key:2},{title:M(()=>e[3]||(e[3]=[s("Information")])),default:M(()=>[e[4]||(e[4]=s()),t("span",{class:"notification-text",innerHTML:o.resetPwdMessageContent},null,8,Vs)]),_:1,__:[4]})),e[7]||(e[7]=s()),w(t("p",{class:"form-break form-instruction",textContent:u(o.$t("LOGIN.RESET_PASSWORD_INSTRUCTIONS"))},null,8,Ws),[[N,o.resetPwdDisplayShowEmailCtrls]]),e[8]||(e[8]=s()),w(t("div",Bs,[p(g,{id:"resetPasswordMessageText",label:o.$t("LOGIN.EMAIL_ADDRESS"),"is-error":a.hasEmailError,"error-message":o.$t("MYACCOUNT.INVALID_EMAIL"),required:!0},{default:M(()=>[w(t("input",{id:"emailAddress","onUpdate:modelValue":e[0]||(e[0]=S=>i.emailFormModel=S),type:"email",class:"wk-field-input",required:"",onInput:e[1]||(e[1]=S=>i.resetEmailValidation())},null,544),[[j,i.emailFormModel,void 0,{trim:!0}]])]),_:1},8,["label","is-error","error-message"])],512),[[N,o.resetPwdDisplayShowEmailCtrls]]),e[9]||(e[9]=s()),t("div",Hs,[t("span",Ys,[w(p(R,{id:"btnResetRequest",disabled:i.isSubmitDisabled,class:G(["form-button login-button",{isActive:o.resetPwdIsSendEmailActive}]),onClick:Q(i.submitForm,["prevent"])},{default:M(()=>[s(u(o.$t("LOGIN.SEND_REQUEST")),1)]),_:1},8,["disabled","class","onClick"]),[[N,o.resetPwdDisplayShowEmailCtrls]])])])])],34),[[N,o.resetPwdDisplayShowEmailForm]])]),e[11]||(e[11]=s()),t("div",qs,[p(c)])])}const xs=k(ks,[["render",zs],["__scopeId","data-v-63776c09"]]),js={components:{UtdLogo:ve},data(){return{display:{showPasswordForm:!0,showPasswordCtrls:!0},clientForm:{confirm:""},isSendPwordDisabled:!1,isSendPwordActive:!1,serverError:""}},computed:{...O("device",["isNotDesktopView"]),...O("app",["router"]),...O("auth",["changePwdPasswordForm","changePwdMessage"]),...O("profile",["userProfileVisitor"]),userName(){return this.userProfileVisitor&&this.userProfileVisitor.userName},passwordValidator(){if(this.serverError)return this.serverError;const o=this.changePwdPasswordForm.password;if(o)return Ie(o,this.userName)},confirmValidator(){return this.changePwdPasswordForm.password!==this.clientForm.confirm?"MYACCOUNT.PASSWORD_INVALID_MISMATCH":""},shouldShowConfirmMessage(){return this.confirmValidator!==""&&this.passwordValidator===""&&this.clientForm.confirm!==""},isFormValid(){return this.passwordValidator===""&&this.confirmValidator===""},passwordFormModel:{get(){return this.changePwdPasswordForm.password},set(o){this[de](o)}}},created(){const o=me($().location.href,"guid");this[ue](o);const e=me($().location.href,"source");e&&this[ce](e),this.changePwdPasswordForm.appguid||this.router.url("/account/reset-password")},methods:{..._e("auth",[x,de,ue,ce,le,q]),sendChangePassword(){this.isSendPwordDisabled=!0,this.isSendPwordActive=!0;
83const o=$().document.querySelector(":focus");o&&o.blur(),this.sendChangePasswordRequest().finally(()=>{this.isSendPwordDisabled=!1,this.isSendPwordActive=!1})},sendChangePasswordRequest(){return pe("auth/changePassword",this.changePwdPasswordForm).then(()=>this.successChangePassword()).catch(o=>this.errorChangePassword(o))},successChangePassword(){this.display.showPasswordForm=!1,this.display.showPasswordCtrls=!1,this[le](this.$t("MYACCOUNT.PASSWORD_CHANGE_SUCCESS"))},errorChangePassword(o){const e=o.data;if(this[x](),e&&e.errors&&e.errors.length>0)if(e.errors[0].utdStatus==="INVALID_PASSWORD_SECURITY"){this.serverError="MYACCOUNT.PASSWORD_INVALID_SECURITY";return}else this[q](e.errors[0].message);else this[q]("Error processing your request to reset your password, please try again.");this.router.url("/account/reset-password?noreset=true")},clearServerError(){this.serverError=""}}},Qs={id:"changePasswordView",class:"authForm changeForm"},Ks={class:"utd-menu utd-menu-signin"},Zs={key:0,id:"utdLogo"},Js=["textContent"],Xs=["innerHTML"],eo=["placeholder"],to=["textContent"],so=["placeholder"],oo=["textContent"],no=["disabled","textContent"],io=["innerHTML"],ro=["innerHTML"],ao=["textContent"];function lo(o,e,C,T,a,i){const v=P("utd-logo");return r(),l("div",Qs,[t("ul",Ks,[o.isNotDesktopView?(r(),l("li",Zs,[p(v)])):A("",!0),e[13]||(e[13]=s()),t("li",null,[w(t("form",{class:G([{isActive:a.isSendPwordActive},"pure-form pure-form-stacked"]),name:"changePasswordForm",novalidate:"",onSubmit:e[3]||(e[3]=Q((...d)=>i.sendChangePassword&&i.sendChangePassword(...d),["prevent"]))},[t("fieldset",null,[w(t("b",{textContent:u(o.$t("MYACCOUNT.ENTER_NEW_PASSWORD"))},null,8,Js),[[N,a.display.showPasswordCtrls]]),e[4]||(e[4]=s()),w(t("dl",{id:"pwdRules",innerHTML:o.$t("MYACCOUNT.PASSWORD_RULES")},null,8,Xs),[[N,a.display.showPasswordCtrls]]),e[5]||(e[5]=s()),w(t("input",{id:"newPassword","onUpdate:modelValue":e[0]||(e[0]=d=>i.passwordFormModel=d),name:"newPassword",type:"password",placeholder:o.$t("MYACCOUNT.PASSWORD_NEW"),required:"",onBlur:e[1]||(e[1]=(...d)=>i.clearServerError&&i.clearServerError(...d))},null,40,eo),[[N,a.display.showPasswordCtrls],[j,i.passwordFormModel]]),e[6]||(e[6]=s()),i.passwordValidator!==""?(r(),l("label",{key:0,class:"control-label has-error validationMessage",textContent:u(o.$t(i.passwordValidator))},null,8,to)):A("",!0),e[7]||(e[7]=s()),w(t("input",{id:"confirmPassword","onUpdate:modelValue":e[2]||(e[2]=d=>a.clientForm.confirm=d),name:"confirmPassword",type:"password",class:"form-control",placeholder:o.$t("MYACCOUNT.PASSWORD_NEW_CONFIRM"),required:""},null,8,so),[[N,a.display.showPasswordCtrls],[j,a.clientForm.confirm]]),e[8]||(e[8]=s()),i.shouldShowConfirmMessage?(r(),l("label",{key:1,class:"control-label has-error validationMessage",textContent:u(o.$t(i.confirmValidator))},null,8,oo)):A("",!0),e[9]||(e[9]=s()),w(t("button",{id:"btnChangePassword",class:G([{isActive:a.isSendPwordActive},"pure-button pure-button-primary"]),disabled:!i.isFormValid,type:"submit",textContent:u(o.$t("MYACCOUNT.PASSWORD_NEW_SAVE_CHANGES"))},null,10,no),[[N,a.display.showPasswordCtrls]])])],34),[[N,a.display.showPasswordForm]]),e[11]||(e[11]=s()),w(t("p",{innerHTML:o.changePwdMessage.error},null,8,io),[[N,!a.display.showPasswordForm&&o.changePwdMessage.error]]),e[12]||(e[12]=s()),w(t("div",null,[t("p",{innerHTML:o.changePwdMessage.success},null,8,ro),e[10]||(e[10]=s()),t("a",{href:"/login",class:"utd-outline-button",textContent:u(o.$t("MISC.LOG_IN"))},null,8,ao)],512),[[N,o.changePwdMessage.success]])])])])}const uo=k(js,[["render",lo],["__scopeId","data-v-e707b9a7"]]),co=[{name:"account",abstract:!0,component:"account",data:{title:"My Account"}},{name:"consolidate",url:m.ROUTE_URLS.CONSOLIDATE_ACCOUNTS,component:Gs,resolve:{init:fo}},{name:"resetPassword",url:m.ROUTE_URLS.RESET_PASSWORD,component:xs,resolve:{init:["$stateParams",o=>{mo(o)}]}},{name:"changePassword",url:`${m.ROUTE_URLS.CHANGE_PASSWORD}?guid&source`,component:uo,resolve:{init:go}}];function mo(o){Ae("Forgot your password?"),F.getters["app/router"].search().noreset||F.commit(`auth/${x}`),o.status&&F.commit(`auth/${je}`,o.status)}function go(){F.getters["app/router"].search().type&&($().location.href=`${F.getters["app/router"].url()}&redirect=true`),Ae("Change Your Password"),F.commit(`auth/${xe}`)}function fo(){F.dispatch("app/delayExecuteUntilDataLoaded",()=>(F.getters["user/userLoggedIn"]||($().location.href="/login"),F.getters["user/userLoggedIn"]))}const So={states:co};export{So as default};
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.