1import{_ as d}from"./DVbzITnn.js";import{E as o,J as s,L as h,F as f,X as g,G as l,M as i,H as p,C as _}from"./Dq9Y5d1N.js";const m={props:{delegates:{typeof:Array,default:[]}},methods:{getInitials(t){const e=t.split(" ");return e.length===1?e[0].charAt(0).toUpperCase():(e[0].charAt(0)+e[e.length-1].charAt(0)).toUpperCase()},unregisterUser(t){if(console.log("Unregistering user:",t),!this.$filterCollection("checkin","id",t.id)){console.error("User not found in the collection");return}try{this.$archiveDocument("checkin",t.id),console.log("User unregistered successfully")}catch(r){console.error("Error unregistering user:",r)}}}},v={class:"min-h-screen"},y={class:"w-full p-6 bg-white rounded-lg shadow-md"},x={key:0,class:"flex flex-col"},U={class:"register-list grid gap-3 py-6"},b={class:"flex items-start"},k={class:"initials"},w={class:"name"},$={class:"flex flex-col justify-between items-start px-2 mb-2 py-2"},C={class:"flex flex-col justify-between items-start px-2 mb-2 py-2"},I={class:"flex justify-between"},j={class:"flex flex-col justify-between items-start px-2 mb-2 py-2"};function A(t,e,r,u,c,a){return l(),o("div",v,[s("div",y,[e[4]||(e[4]=s("h5",null,"Registered In Users",-1)),r.delegates.length>0?(l(),o("div",x,[s("div",U,[(l(!0),o(f,null,g(r.delegates,n=>(l(),o("div",{class:"register-item grid grid-cols-4 border-b",key:n.id},[s("div",b,[s("div",null,[s("div",k,[s("span",null,i(a.getInitials(n.delegate)),1)])]),s("div",w,i(n.delegate),1)]),s("div",$,[e[0]||(e[0]=s("div",null,"Organization:",-1)),s("div",null,i(n.organization),1)]),s("div",C,[e[1]||(e[1]=s("div",null,"Designation:",-1)),s("div",null,i(n.designation),1)]),s("div",I,[s("div",j,[e[2]||(e[2]=s("div",null,"Country:",-1)),s("div",null,i(n.country),1)]),e[3]||(e[3]=s("div",null,[s("div",{class:"button small-button"},"unregister")],-1))])]))),128))])])):h("",!0)])])}const B=d(m,[["render",A],["__scopeId","data-v-f378faaf"]]),D={components:{checkedInUsers:B},data(){return{users:[],loading:!0,error:null}},methods:{async clearMessage(){this.error=null,this.success=null},async getUsers(){this.loading=!0;try{this.users=await this.$getCollection("checkin"),this.loading=!1}catch{this.error="Failed to load users.",this.loading=!1}}},async mounted(){this.users=await this.$getCollection("checkin")||[]}},E={class:"max-width-wrapper"};function F(t,e,r,u,c,a){const n=_("checkedInUsers");return l(),o("div",null,[s("div",E,[p(n,{delegates:c.users},null,8,["delegates"])])])}const z=d(D,[["render",F]]);export{z 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.