PageSourceSearch

https://kennahstays.com/_nuxt/BvFtjxFo.js

js kennahstays.com collected 2026-10-08 10:44:07 UTC 4,383 bytes, 1 lines download raw bytes

1import{_ as A}from"./D_Eogjmi.js";import{aK as B,aL as x,aN as C,bh as F,aP as h,aS as d,aU as c,aR as s,aQ as I,aV as K,aT as r,aM as U,bc as T,b5 as m,a$ as N,a_ as _,aX as z,aJ as O,aO as w}from"./D5V0YTTi.js";import{u as L}from"./LLoj_qSh.js";import{V as M}from"./DrsL0AHB.js";import{V as S}from"./D8uD8K1s.js";import"./D4ASZpZ1.js";import"./U6Vwky11.js";import"./H25sA6Ze.js";import"./DUGuu0ut.js";import"./D2WEl5kl.js";import"./hdPqLcsX.js";import"./C69phyQL.js";import"./BL1unfFh.js";import"./D1ZR9v46.js";import"./D8QKQeYv.js";import"./CSaPBoKG.js";import"./B2eZLTPJ.js";import"./wHSkpj89.js";import"./C-nqkqy0.js";import"./Dpfl30kC.js";import"./BBRCaXK2.js";import"./H696g9Ma.js";import"./BWAD52SL.js";import"./Bu6g2SmM.js";import"./k6Wkf0fY.js";(function(){try{var u=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new u.Error().stack;t&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[t]="99a263ad-ed20-4800-ad20-b0f9fa7817ef",u._sentryDebugIdIdentifier="sentry-dbid-99a263ad-ed20-4800-ad20-b0f9fa7817ef")}catch{}})();const P={class:"font-bold mb-0"},W={class:"w-full text-sm text-left text-gray-500 table-striped"},X={class:"GuestsDetails bg-white border-b"},j={scope:"row",class:"text-left pr-6 py-1 font-medium text-gray-900 whitespace-nowrap dark:text-white"},H={class:"d-flex d-lg-none ga-2 py-1 ga-2"},J={class:"d-none d-lg-flex ga-2 py-1 ga-2"},$t=B({__name:"index",async setup(u){let t,p;const n=([t,p]=x(()=>U()),t=await t,p(),t).GUESTSThemeColors,f=C(n==null?void 0:n.MainColor),$=C(n==null?void 0:n.SecondColor),g=C(n==null?void 0:n.ThirdColor),i=O(),{snackError:k,snackSuccess:v}=L(),{data:V}=([t,p]=x(()=>{var a;return T("/api/admin/Guests",{headers:{Authorization:`Bearer ${(a=i==null?void 0:i.public)==null?void 0:a.SECRET_TOKEN}`}},"$adYl9ib51x")}),t=await t,p(),t),{data:R}=([t,p]=x(()=>{var a;return T("/api/admin/Guests/count",{headers:{Authorization:`Bearer ${(a=i==null?void 0:i.public)==null?void 0:a.SECRET_TOKEN}`}},"$wCuAUHfXPN")}),t=await t,p(),t),D=F(),E=a=>{D.push(`/dashboard/Guests/${a}`)};async function G(a){var e;try{const o=await $fetch(a,{method:"delete",headers:{Authorization:`Bearer ${(e=i==null?void 0:i.public)==null?void 0:e.SECRET_TOKEN}`}});(o==null?void 0:o.message)==="Guest removed"?v("Guest has Removed Successful"):k((o==null?void 0:o.message)||"We Catch Error")}catch(o){k((o==null?void 0:o.message)||"We Catch Error")}finally{setTimeout(()=>{window.open("/dashboard/Guests","_self")},3e3)}}return(a,e)=>{const o=A,b=z;return w(),h("div",null,[d(M,{class:"d-flex flex-column aligns-center justify-space-between ga-2 mb-8 w-100"},{default:c(()=>[d(S,{cols:"12",md:"3"},{default:c(()=>[s("p",P,[e[0]||(e[0]=m("Number of Guests: ")),s("span",null,N(r(R)),1)])]),_:1}),d(S,{cols:"12"},{default:c(()=>[d(o,{apiUrlExport:"/api/admin/Guests/export",apiUrlFields:"/api/admin/Guests/fields",formType:"guests"})]),_:1})]),_:1}),s("table",W,[e[5]||(e[5]=s("thead",{class:"text-xs text-gray-700 uppercase bg-gray-50"},[s("tr",null,[s("th",{scope:"col",class:"text-left pr-6 py-3 mr-2"},"guest Name"),s("th",{scope:"col",class:"text-left d-lg-flex d-none pr-6 py-3"},"Action")])],-1)),(w(!0),h(I,null,K(r(V),l=>(w(),h("tbody",null,[s("tr",X,[s("th",j,[s("p",null,N(l.userName),1),s("div",H,[d(b,{style:_(`background-color: ${r(g)}; color: ${r(f)}`),class:"pointer text-decoration-none py-3 px-9 mb-0 rounded-lg text-button cursor-pointer",onClick:y=>E(l==null?void 0:l._id)},{default:c(()=>e[1]||(e[1]=[m("edit")])),_:2},1032,["style","onClick"]),d(b,{style:_(`background-color: ${r($)}; color: ${r(f)}`),class:"pointer text-decoration-none py-3 px-9 mb-0 rounded-lg text-button",onClick:y=>G(`/api/admin/Guests/${l._id}`)},{default:c(()=>e[2]||(e[2]=[m("delete")])),_:2},1032,["style","onClick"])])]),s("td",J,[d(b,{style:_(`background-color: ${r(g)}; color: ${r(f)}`),class:"pointer text-decoration-none py-3 px-9 mb-0 rounded-lg text-button cursor-pointer",onClick:y=>E(l==null?void 0:l._id)},{default:c(()=>e[3]||(e[3]=[m("edit")])),_:2},1032,["style","onClick"]),d(b,{style:_(`background-color: ${r($)}; color: ${r(f)}`),class:"pointer text-decoration-none py-3 px-9 mb-0 rounded-lg text-button",onClick:y=>G(`/api/admin/Guests/${l._id}`)},{default:c(()=>e[4]||(e[4]=[m("delete")])),_:2}
1,1032,["style","onClick"])])])]))),256))])])}}});export{$t 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.