1import{y as g,r as x,a as k,S as v,z as w,l as a,o as e,f as n,h as M,i as t,p as l,k as S,g as c,t as h,F as f,m as V}from"./index-DkHxERqz.js";import{_ as $}from"./EmptyState-Cg3uhZp2.js";import{_ as C,a as F}from"./MemberPlan.vue_vue_type_script_setup_true_lang-U4Cbd59r.js";import{_ as B}from"./NoPermission-BUYAH3BZ.js";import{_ as N}from"./VmmsPortalCard-D7ReHQN-.js";import{m as D}from"./membership-B6dwX_b7.js";import"./Badge.vue_vue_type_script_setup_true_lang-CmbQrfGE.js";import"./Uploader-sX7X5YRQ.js";import"./FormControl.vue_vue_type_script_setup_true_lang-Dc-cNXff.js";import"./form-mfsyIw-y.js";import"./PaymentStatus-Dsd808A2.js";import"./volunteer-GgeCYVIx.js";const T={key:1,class:"space-y-4 mx-auto px-4"},j={key:1,class:"w-full flex flex-col items-center md:mt-10"},z={key:2,class:"p-2 pt-2 md:p-8 bg-gray-50 rounded-2xl shadow-md text-center mb-20 max-w-7xl mx-auto"},K={class:"flex flex-col md:flex-row justify-center items-center gap-2 text-xl md:text-3xl font-semibold text-red-600"},L={key:0},R={key:0,class:"mt-10"},U={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-8"},ee={__name:"Membership",setup(E){const{membershipTypes:p,currentMembership:r}=D(),{isLoggedIn:y}=g(),m=x(!1),o=k({membership_type:"",amount:0});function d(){m.value=!1,o.membership_type="",o.amount=0}function b(s){o.membership_type=s.membership_type,o.amount=s.amount,m.value=!0}return v(m,s=>{s===!1&&d()}),w({title:"Manage Membership | Kenya Red Cross VMMS",meta:[{name:"description",content:"View your current Kenya Red Cross membership status, renew your existing plan, or select a new membership type to join the organization."}]}),(s,u)=>{var _;return e(),a(f,null,[t(y)?(e(),a("div",T,[t(r).error||t(p).error?(e(),n(t(S),{key:0,class:"text-center border rounded-md p-2 border-red-500 bg-red-50 text-sm my-auto mt-20",message:s.__("Failed to get Membership Details")},null,8,["message"])):t(r).data?(e(),a("div",j,[t(r).data.length>0?(e(),n(C,{key:0,membershipStatus:t(r).data},null,8,["membershipStatus"])):l("",!0)])):l("",!0),t(r).data?(e(),a("div",z,[c("h1",K,[c("span",null,h(s.__("Select a New Plan")),1),t(r).data.length?l("",!0):(e(),a("span",L,h(s.__("to become a member")),1))]),(_=t(p).data)!=null&&_.length?(e(),a("div",R,[c("div",U,[(e(!0),a(f,null,V(t(p).data,i=>(e(),n(N,{class:"w-full max-w-sm transition hover:shadow-lg cursor-pointer",membershipType:i,onClick:H=>b(i)},null,8,["membershipType","onClick"]))),256))])])):(e(),n($,{key:1,type:s.__("Membership Type"),class:"mt-10"},null,8,["type"]))])):l("",!0)])):(e(),n(B,{key:0,page:s.__("Membership")},null,8,["page"])),M(F,{modelValue:m.value,"onUpdate:modelValue":u[0]||(u[0]=i=>m.value=i),membership_type:o.membership_type,amount:o.amount,onClose:d},null,8,["modelValue","membership_type","amount"])],64)}}};export{ee as default}; 2//# sourceMappingURL=Membership-Dc4jcGxP.js.map
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.