(function(e,t,n){var r=document.createElement(`style`);r.textContent=`/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}:root,:host{--color-primary-600:#179970}@layer utilities{.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.relative{position:relative}.static{position:static}.inset-y-0{inset-block:0}.right-0{right:0}.mt-3{margin-top:calc(var(--spacing,.25rem) * 3)}.mb-3{margin-bottom:calc(var(--spacing,.25rem) * 3)}.mb-4{margin-bottom:calc(var(--spacing,.25rem) * 4)}.flex{display:flex}.table{display:table}.w-9{width:calc(var(--spacing,.25rem) * 9)}.w-full{width:100%}.min-w-3xl{min-width:var(--container-3xl,48rem)}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.overflow-x-auto{overflow-x:auto}.rounded-lg{border-radius:var(--radius-lg,.5rem)}.border{border-style:var(--tw-border-style);border-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-slate-50{border-color:var(--color-slate-50,oklch(98.4% .003 247.858))}.border-slate-100{border-color:var(--color-slate-100,oklch(96.8% .007 247.896))}.border-slate-200{border-color:var(--color-slate-200,oklch(92.9% .013 255.508))}.bg-white{background-color:var(--color-white,#fff)}.p-6{padding:calc(var(--spacing,.25rem) * 6)}.px-3{padding-inline:calc(var(--spacing,.25rem) * 3)}.px-4{padding-inline:calc(var(--spacing,.25rem) * 4)}.px-6{padding-inline:calc(var(--spacing,.25rem) * 6)}.py-3{padding-block:calc(var(--spacing,.25rem) * 3)}.py-4{padding-block:calc(var(--spacing,.25rem) * 4)}.py-6{padding-block:calc(var(--spacing,.25rem) * 6)}.pt-4{padding-top:calc(var(--spacing,.25rem) * 4)}.pr-9{padding-right:calc(var(--spacing,.25rem) * 9)}.pb-4{padding-bottom:calc(var(--spacing,.25rem) * 4)}.text-center{text-align:center}.text-left{text-align:left}.font-light{--tw-font-weight:var(--font-weight-light,300);font-weight:var(--font-weight-light,300)}.font-medium{--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500)}.text-primary-600{color:var(--color-primary-600)}.text-slate-400{color:var(--color-slate-400,oklch(70.4% .04 256.788))}.text-slate-500{color:var(--color-slate-500,oklch(55.4% .046 257.417))}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.odd\\:bg-slate-50\\/60:nth-child(odd){background-color:#f8fafc99}@supports (color:color-mix(in lab, red, red)){.odd\\:bg-slate-50\\/60:nth-child(odd){background-color:color-mix(in oklab, var(--color-slate-50,oklch(98.4% .003 247.858)) 60%, transparent)}}@media (hover:hover){.hover\\:text-slate-600:hover{color:var(--color-slate-600,oklch(44.6% .043 257.281))}.hover\\:underline:hover{text-decoration-line:underline}}@media (width>=48rem){.md\\:w-96{width:calc(var(--spacing,.25rem) * 96)}}}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000} /*$vite$:1*/`,document.head.appendChild(r);var i={class:`rounded-lg border border-slate-200 bg-white shadow-sm`},a={class:`border-b border-slate-100 px-6 py-4 font-medium`},o={class:`px-4 py-6`},s=(0,e.defineComponent)({__name:`ActivityWidget`,props:{title:{},labels:{},values:{},units:{}},setup(n){let r=n;function s(e){return`${e} ${e===1?r.units.action:r.units.actions}`}return(r,c)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,i,[(0,e.createElementVNode)(`h6`,a,(0,e.toDisplayString)(n.title),1),(0,e.createElementVNode)(`div`,o,[(0,e.createVNode)((0,e.unref)(t.LineChart),{labels:n.labels,values:n.values,label:n.title,"format-value":s},null,8,[`labels`,`values`,`label`])])]))}}),c={class:`rounded-lg border border-slate-200 bg-white shadow-sm`},l={class:`flex items-center justify-between border-b border-slate-100 px-6 py-4 font-medium`},u={key:0},d={class:`p-6`},f={key:0,class:`w-full text-left`},p={class:`border-b border-slate-100`},m={class:`px-4 py-3 font-medium`},h={class:`px-4 py-3 font-medium`},g={class:`px-4 py-3`},_={class:`px-4 py-3`},v={key:1,class:`font-light text-slate-500`},y=(0,e.defineComponent)({__name:`RecentActivity`,props:{activities:{},viewAllUrl:{}},setup(r){let{__:i}=(0,t.useTranslations)();return(a,o)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,c,[(0,e.createElementVNode)(`h6`,l,[(0,e.createTextVNode)((0,e.toDisplayString)((0,e.unref)(i)(`Latest Activity`))+` `,1),r.activities.length&&r.viewAllUrl?((0,e.openBlock)(),(0,e.createElementBlock)(`small`,u,[(0,e.createVNode)((0,e.unref)(t.Tooltip),{text:(0,e.unref)(i)(`Complete Activity Log`)},{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(n.Link),{href:r.viewAllUrl,class:`text-primary-600 hover:underline`},{default:(0,e.withCtx)(()=>[(0,e.createTextVNode)((0,e.toDisplayString)((0,e.unref)(i)(`View All`)),1)]),_:1},8,[`href`])]),_:1},8,[`text`])])):(0,e.createCommentVNode)(``,!0)]),(0,e.createElementVNode)(`div`,d,[r.activities.length?((0,e.openBlock)(),(0,e.createElementBlock)(`table`,f,[(0,e.createElementVNode)(`thead`,null,[(0,e.createElementVNode)(`tr`,p,[(0,e.createElementVNode)(`th`,m,(0,e.toDisplayString)((0,e.unref)(i)(`Action`)),1),(0,e.createElementVNode)(`th`,h,(0,e.toDisplayString)((0,e.unref)(i)(`Date`)),1)])]),(0,e.createElementVNode)(`tbody`,null,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(r.activities,t=>((0,e.openBlock)(),(0,e.createElementBlock)(`tr`,{key:t.id,class:`border-b border-slate-50 odd:bg-slate-50/60`},[(0,e.createElementVNode)(`td`,g,(0,e.toDisplayString)(t.description),1),(0,e.createElementVNode)(`td`,_,(0,e.toDisplayString)(t.createdAt),1)]))),128))])])):((0,e.openBlock)(),(0,e.createElementBlock)(`p`,v,[(0,e.createElementVNode)(`em`,null,(0,e.toDisplayString)((0,e.unref)(i)(`No activity from this user yet.`)),1)]))])]))}}),b={class:`rounded-lg border border-slate-200 bg-white p-6 shadow-sm`},x={class:`mb-4 border-b border-slate-100 pb-4`},S={class:`relative md:w-96`},C={for:`search`,class:`sr-only`},w=[`aria-label`],T={class:`overflow-x-auto`},E={class:`w-full min-w-3xl text-left`},D={class:`border-b border-slate-100`},O={key:0,class:`px-4 py-3 font-medium`},k={class:`px-4 py-3 font-medium`},A={class:`px-4 py-3 font-medium`},j={class:`px-4 py-3 font-medium`},M={class:`px-4 py-3 text-center font-medium`},N={key:0},P=[`colspan`],F={class:`text-slate-500`},I={key:0,class:`px-4 py-3`},L={class:`px-4 py-3`},R={class:`px-4 py-3`},z={class:`px-4 py-3`},B={class:`px-4 py-3 text-center`},V=[`aria-label`],H=(0,e.defineComponent)({__name:`Index`,props:{activities:{},adminView:{type:Boolean},user:{},filters:{}},setup(r){let i=r,{__:a}=(0,t.useTranslations)(),o=(0,e.ref)(i.filters.search),s;(0,e.watch)(o,()=>{clearTimeout(s),s=setTimeout(()=>{n.router.get(window.location.pathname,{search:o.value||void 0},{preserveState:!0,replace:!0})},300)});let c=i.adminView&&i.user?[{label:a(`Activity Log`),href:route(`activity.index`)},{label:i.user.nameOrEmail}]:[{label:a(`Activity Log`)}];return(i,s)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.AppLayout),{title:(0,e.unref)(a)(`Activity Log`),heading:r.user?r.user.nameOrEmail:(0,e.unref)(a)(`Activity Log`),breadcrumbs:(0,e.unref)(c)},{default:(0,e.withCtx)(()=>[(0,e.createElementVNode)(`div`,b,[(0,e.createElementVNode)(`div`,x,[(0,e.createElementVNode)(`div`,S,[(0,e.createElementVNode)(`label`,C,(0,e.toDisplayString)((0,e.unref)(a)(`Search for Action`)),1),(0,e.createVNode)((0,e.unref)(t.Input),{id:`search`,modelValue:o.value,"onUpdate:modelValue":s[0]||=e=>o.value=e,class:`w-full pr-9`,placeholder:(0,e.unref)(a)(`Search for Action`)},null,8,[`modelValue`,`placeholder`]),o.value?((0,e.openBlock)(),(0,e.createElementBlock)(`button`,{key:0,type:`button`,class:`absolute inset-y-0 right-0 flex w-9 cursor-pointer items-center justify-center text-slate-400 hover:text-slate-600`,"aria-label":(0,e.unref)(a)(`Cancel`),onClick:s[1]||=e=>o.value=``},[...s[2]||=[(0,e.createElementVNode)(`i`,{class:`fas fa-times`,"aria-hidden":`true`},null,-1)]],8,w)):(0,e.createCommentVNode)(``,!0)])]),(0,e.createElementVNode)(`div`,T,[(0,e.createElementVNode)(`table`,E,[(0,e.createElementVNode)(`thead`,null,[(0,e.createElementVNode)(`tr`,D,[r.adminView?((0,e.openBlock)(),(0,e.createElementBlock)(`th`,O,(0,e.toDisplayString)((0,e.unref)(a)(`User`)),1)):(0,e.createCommentVNode)(``,!0),(0,e.createElementVNode)(`th`,k,(0,e.toDisplayString)((0,e.unref)(a)(`IP Address`)),1),(0,e.createElementVNode)(`th`,A,(0,e.toDisplayString)((0,e.unref)(a)(`Message`)),1),(0,e.createElementVNode)(`th`,j,(0,e.toDisplayString)((0,e.unref)(a)(`Log Time`)),1),(0,e.createElementVNode)(`th`,M,(0,e.toDisplayString)((0,e.unref)(a)(`More Info`)),1)])]),(0,e.createElementVNode)(`tbody`,null,[r.activities.data.length?(0,e.createCommentVNode)(``,!0):((0,e.openBlock)(),(0,e.createElementBlock)(`tr`,N,[(0,e.createElementVNode)(`td`,{colspan:r.adminView?5:4,class:`px-4 py-3`},[(0,e.createElementVNode)(`em`,F,(0,e.toDisplayString)((0,e.unref)(a)(`No records found.`)),1)],8,P)])),((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(r.activities.data,i=>((0,e.openBlock)(),(0,e.createElementBlock)(`tr`,{key:i.id,class:`border-b border-slate-50 odd:bg-slate-50/60`},[r.adminView?((0,e.openBlock)(),(0,e.createElementBlock)(`td`,I,[i.userUrl?((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.Tooltip),{key:0,text:(0,e.unref)(a)(`View Activity Log`)},{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(n.Link),{href:i.userUrl,class:`text-primary-600 hover:underline`},{default:(0,e.withCtx)(()=>[(0,e.createTextVNode)((0,e.toDisplayString)(i.userName),1)]),_:2},1032,[`href`])]),_:2},1032,[`text`])):((0,e.openBlock)(),(0,e.createElementBlock)(e.Fragment,{key:1},[(0,e.createTextVNode)((0,e.toDisplayString)(i.userName),1)],64))])):(0,e.createCommentVNode)(``,!0),(0,e.createElementVNode)(`td`,L,(0,e.toDisplayString)(i.ipAddress),1),(0,e.createElementVNode)(`td`,R,(0,e.toDisplayString)(i.description),1),(0,e.createElementVNode)(`td`,z,(0,e.toDisplayString)(i.createdAt),1),(0,e.createElementVNode)(`td`,B,[(0,e.createVNode)((0,e.unref)(t.Tooltip),{text:i.userAgent},{default:(0,e.withCtx)(()=>[(0,e.createElementVNode)(`button`,{type:`button`,class:`cursor-pointer text-slate-400 hover:text-slate-600`,"aria-label":(0,e.unref)(a)(`User Agent`)},[...s[3]||=[(0,e.createElementVNode)(`i`,{class:`fas fa-info-circle`,"aria-hidden":`true`},null,-1)]],8,V)]),_:1},8,[`text`])])]))),128))])])]),(0,e.createVNode)((0,e.unref)(t.Pagination),{links:r.activities.links},null,8,[`links`])])]),_:1},8,[`title`,`heading`,`breadcrumbs`]))}});window.Vanguard.plugin(`user-activity`,e=>{e.page(`user-activity::Index`,H),e.slot(`user-activity::RecentActivity`,y),e.widget(`user-activity::ActivityWidget`,s)})})(Vanguard.vue,Vanguard.ui,Vanguard.inertia);