1import{d as T,r as s,o as w,S as U,c as N,e as k,s as a,t as o,x as n,h,i as v,j as y}from"./app-BQ-43nIL.js";import{_ as f}from"./dihk-button.vue_vue_type_script_setup_true_lang-CMVXMAoq.js";const I={class:"b-change-account-status member-portal-page"},E={class:"member-profile-edit__header"},S=["href"],A={class:"member-portal-page__title"},C={class:"member-portal-page__body"},V={class:"member-portal-page__card"},z={class:"mb-3"},L={class:"b-change-account-status__user-name"},M={class:"b-change-account-status__description"},$={class:"member-profile-edit__actions mt-5"},P=T({__name:"change-account-status",props:{title:{default:"Activate account"},heading:{default:"Are you sure you want to activate"},description:{default:"This person will be able to log in to the Member Portal."},userName:{},submitButtonText:{},submitButtonUrl:{},discardButtonText:{},discardButtonUrl:{},memberId:{}},setup(B){const t=B,u=s(t.title),d=s(t.heading),c=s(t.description),r=s(t.userName),l=s(t.submitButtonText),m=s(t.submitButtonUrl),b=s(t.discardButtonText),_=s(t.discardButtonUrl),g=s(t.memberId),x=y(()=>d.value.replace(/\s*\?+\s*$/,"")),p=i=>{if(!(i instanceof CustomEvent))return;const e=i.detail;u.value=e.title??t.title,d.value=e.heading??t.heading,c.value=e.description??t.description,r.value=e.userName??t.userName,l.value=e.submitButtonText??t.submitButtonText,m.value=e.submitButtonUrl??t.submitButtonUrl,b.value=e.discardButtonText??t.discardButtonText,_.value=e.discardButtonUrl??t.discardButtonUrl,g.value=e.memberId??t.memberId};return w(()=>{window.addEventListener("member-account-status:show",p)}),U(()=>{window.removeEventListener("member-account-status:show",p)}),(i,e)=>(N(),k("div",I,[a("div",E,[a("a",{class:"member-profile-edit__back",href:_.value,"aria-label":"Back to members"},[...e[0]||(e[0]=[a("svg",{class:"member-profile-edit__back-icon","aria-hidden":"true"},[a("use",{"xlink:href":"#arrow-back"})],-1)])],8,S),a("h1",A,o(u.value),1)]),e[2]||(e[2]=a("div",{class:"member-portal-page__divider"},null,-1)),a("div",C,[a("div",V,[a("h5",z,[n(o(x.value)+" ",1),a("span",L,o(r.value),1),e[1]||(e[1]=n("? ",-1))]),a("p",M,o(c.value),1),a("div",$,[h(f,{brand:"primary",size:"lg",element:"a",href:m.value,"data-member-account-status-submit":"","data-member-name":r.value},{default:v(()=>[n(o(l.value),1)]),_:1},8,["href","data-member-name"]),h(f,{id:"profile-edit-discard-button",brand:"tertiary",size:"lg",element:"a"},{default:v(()=>[n(o(b.value),1)]),_:1})])])])]))}});export{P 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.