Files
ppeasy_vg12/public/vendor/plugins/announcements/js/plugin-CETIRp3B.js
T
2026-10-09 08:21:06 +02:00

3 lines
21 KiB
JavaScript

(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-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--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{.absolute{position:absolute}.relative{position:relative}.static{position:static}.top-0{top:0}.right-2{right:calc(var(--spacing,.25rem) * 2)}.mx-auto{margin-inline:auto}.mb-1{margin-bottom:var(--spacing,.25rem)}.mb-3{margin-bottom:calc(var(--spacing,.25rem) * 3)}.mb-4{margin-bottom:calc(var(--spacing,.25rem) * 4)}.block{display:block}.flex{display:flex}.table{display:table}.size-2{width:calc(var(--spacing,.25rem) * 2);height:calc(var(--spacing,.25rem) * 2)}.size-10{width:calc(var(--spacing,.25rem) * 10);height:calc(var(--spacing,.25rem) * 10)}.size-\\[50px\\]{width:50px;height:50px}.max-h-\\[350px\\]{max-height:350px}.w-14{width:calc(var(--spacing,.25rem) * 14)}.w-\\[380px\\]{width:380px}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl,42rem)}.min-w-2xl{min-width:var(--container-2xl,42rem)}.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-2{gap:calc(var(--spacing,.25rem) * 2)}.gap-3{gap:calc(var(--spacing,.25rem) * 3)}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing,.25rem) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing,.25rem) * 4) * calc(1 - var(--tw-space-y-reverse)))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:2147483647px}.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-red-500{background-color:var(--color-red-500,oklch(63.7% .237 25.331))}.bg-white{background-color:var(--color-white,#fff)}.object-cover{object-fit:cover}.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)}.text-center{text-align:center}.text-left{text-align:left}.text-lg{font-size:var(--text-lg,1.125rem);line-height:var(--tw-leading,var(--text-lg--line-height,calc(1.75 / 1.125)))}.text-xl{font-size:var(--text-xl,1.25rem);line-height:var(--tw-leading,var(--text-xl--line-height,calc(1.75 / 1.25)))}.leading-tight{--tw-leading:var(--leading-tight,1.25);line-height:var(--leading-tight,1.25)}.font-medium{--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500)}.font-semibold{--tw-font-weight:var(--font-weight-semibold,600);font-weight:var(--font-weight-semibold,600)}.whitespace-nowrap{white-space:nowrap}.text-primary-600{color:var(--color-primary-600)}.text-red-600{color:var(--color-red-600,oklch(57.7% .245 27.325))}.text-slate-500{color:var(--color-slate-500,oklch(55.4% .046 257.417))}.text-slate-700{color:var(--color-slate-700,oklch(37.2% .044 257.287))}.text-slate-800{color:var(--color-slate-800,oklch(27.9% .041 260.031))}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px 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)}.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\\:bg-white:hover{background-color:var(--color-white,#fff)}.hover\\:text-slate-700:hover{color:var(--color-slate-700,oklch(37.2% .044 257.287))}.hover\\:underline:hover{text-decoration-line:underline}}}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@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:"<percentage>";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:"<percentage>";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:"<length>";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}.prose-vanguard :is(h1,h2,h3,h4,h5,h6){margin-block:.75em .4em;font-weight:600}.prose-vanguard p{margin-block:.5em}.prose-vanguard a{color:var(--color-primary-600);text-decoration:underline}.prose-vanguard ul,.prose-vanguard ol{list-style:revert;margin-block:.5em;padding-inline-start:1.5em}.prose-vanguard code{background:var(--color-slate-100);border-radius:.25rem;padding:.1em .3em}.prose-vanguard pre{background:var(--color-slate-100);border-radius:.375rem;padding:.75rem;overflow-x:auto}.prose-vanguard table{border-collapse:collapse;width:100%}.prose-vanguard :is(th,td){border:1px solid var(--color-slate-200);padding:.375rem .5rem}.prose-vanguard blockquote{border-inline-start:3px solid var(--color-slate-200);color:var(--color-slate-500);padding-inline-start:.75rem}
/*$vite$:1*/`,document.head.appendChild(r);var i=[`aria-label`],a={key:0,class:`absolute top-0 right-2 size-2 rounded-full bg-red-500`,"aria-hidden":`true`},o={class:`max-h-[350px] w-[380px] overflow-y-auto`},s={class:`bg-white p-6 text-center`},c={class:`text-slate-500`},l=[`href`],u={class:`bg-lighter`},d=[`href`],f=[`src`,`alt`],ee={class:`w-full`},te={class:`flex items-start justify-between gap-2`},p={class:`font-semibold`},m={class:`shrink-0 text-slate-500`},h={class:`text-primary-600`},g={key:0,class:`p-6 text-center text-slate-500`},_=(0,e.defineComponent)({__name:`NavbarBell`,props:{announcements:{},unread:{type:Boolean},listUrl:{},readUrl:{}},setup(r){let _=r,{__:v}=(0,n.useTranslations)(),y=(0,e.ref)(!_.unread);function b(e){!e||y.value||(y.value=!0,t.router.post(_.readUrl,{},{preserveScroll:!0,preserveState:!0,only:[]}))}return(t,_)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(n.Menu),{"onUpdate:open":b},{trigger:(0,e.withCtx)(()=>[(0,e.createElementVNode)(`button`,{type:`button`,class:`relative cursor-pointer px-3 text-slate-500 hover:text-slate-700`,"aria-label":(0,e.unref)(v)(`Announcements`)},[y.value?(0,e.createCommentVNode)(``,!0):((0,e.openBlock)(),(0,e.createElementBlock)(`span`,a)),_[0]||=(0,e.createElementVNode)(`i`,{class:`fas fa-bullhorn`,"aria-hidden":`true`},null,-1)],8,i)]),default:(0,e.withCtx)(()=>[(0,e.createElementVNode)(`div`,o,[(0,e.createElementVNode)(`div`,s,[(0,e.createElementVNode)(`h5`,c,(0,e.toDisplayString)((0,e.unref)(v)(`Announcements`)),1),r.announcements.length?((0,e.openBlock)(),(0,e.createElementBlock)(`a`,{key:0,href:r.listUrl,class:`text-primary-600 hover:underline`},(0,e.toDisplayString)((0,e.unref)(v)(`View All`)),9,l)):(0,e.createCommentVNode)(``,!0)]),(0,e.createElementVNode)(`div`,u,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(r.announcements,t=>((0,e.openBlock)(),(0,e.createElementBlock)(`a`,{key:t.id,href:t.url,class:`flex items-start gap-3 px-6 py-4 hover:bg-white`},[(0,e.createElementVNode)(`img`,{src:t.avatar,alt:t.creator,width:`50`,height:`50`,class:`size-[50px] shrink-0 rounded-full object-cover`},null,8,f),(0,e.createElementVNode)(`div`,ee,[(0,e.createElementVNode)(`div`,te,[(0,e.createElementVNode)(`span`,p,(0,e.toDisplayString)(t.creator),1),(0,e.createElementVNode)(`span`,m,(0,e.toDisplayString)(t.createdAt),1)]),(0,e.createElementVNode)(`span`,h,(0,e.toDisplayString)(t.title),1)])],8,d))),128)),r.announcements.length?(0,e.createCommentVNode)(``,!0):((0,e.openBlock)(),(0,e.createElementBlock)(`p`,g,(0,e.toDisplayString)((0,e.unref)(v)(`No new announcements at the moment.`)),1))])])]),_:1}))}}),v={class:`rounded-lg border border-slate-200 bg-white shadow-sm`},y={class:`border-b border-slate-100 px-6 py-4 font-medium`},b={class:`space-y-4 p-6`},x={for:`title`,class:`mb-1 block text-slate-700`},S={key:0,class:`text-red-600`},C={for:`body`,class:`mb-1 block text-slate-700`},w={key:0,class:`text-red-600`},T={key:0,class:`flex items-start gap-2`},E={for:`email_notification`,class:`cursor-pointer`},D={class:`block text-slate-700`},O={class:`text-slate-500`},k=(0,e.defineComponent)({__name:`Form`,props:{edit:{type:Boolean},announcement:{}},setup(r){let i=r,{__:a}=(0,n.useTranslations)(),o=(0,t.useForm)({title:i.announcement?.title??``,body:i.announcement?.body??``,email_notification:!1});function s(){if(i.edit&&i.announcement){o.put(route(`announcements.update`,i.announcement.id));return}o.post(route(`announcements.store`))}let c=i.edit?a(`Update Announcement`):a(`New Announcement`);return(t,i)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(n.AppLayout),{title:(0,e.unref)(c),heading:(0,e.unref)(c),breadcrumbs:[{label:(0,e.unref)(a)(`Announcements`),href:t.route(`announcements.index`)},{label:r.edit?(0,e.unref)(a)(`Update`):(0,e.unref)(a)(`Create`)}]},{default:(0,e.withCtx)(()=>[(0,e.createElementVNode)(`form`,{class:`mx-auto max-w-2xl space-y-4`,onSubmit:(0,e.withModifiers)(s,[`prevent`])},[(0,e.createElementVNode)(`div`,v,[(0,e.createElementVNode)(`h6`,y,(0,e.toDisplayString)(r.edit?(0,e.unref)(a)(`Update Announcement`):(0,e.unref)(a)(`Create an Announcement`)),1),(0,e.createElementVNode)(`div`,b,[(0,e.createElementVNode)(`div`,null,[(0,e.createElementVNode)(`label`,x,(0,e.toDisplayString)((0,e.unref)(a)(`Title`)),1),(0,e.createVNode)((0,e.unref)(n.Input),{id:`title`,modelValue:(0,e.unref)(o).title,"onUpdate:modelValue":i[0]||=t=>(0,e.unref)(o).title=t,class:`w-full`,placeholder:(0,e.unref)(a)(`What are you announcing?`),invalid:!!(0,e.unref)(o).errors.title},null,8,[`modelValue`,`placeholder`,`invalid`]),(0,e.unref)(o).errors.title?((0,e.openBlock)(),(0,e.createElementBlock)(`small`,S,(0,e.toDisplayString)((0,e.unref)(o).errors.title),1)):(0,e.createCommentVNode)(``,!0)]),(0,e.createElementVNode)(`div`,null,[(0,e.createElementVNode)(`label`,C,(0,e.toDisplayString)((0,e.unref)(a)(`Body`)),1),(0,e.createVNode)((0,e.unref)(n.Textarea),{id:`body`,modelValue:(0,e.unref)(o).body,"onUpdate:modelValue":i[1]||=t=>(0,e.unref)(o).body=t,class:`w-full`,rows:10,placeholder:(0,e.unref)(a)(`Describe your announcement using markdown...`),invalid:!!(0,e.unref)(o).errors.body},null,8,[`modelValue`,`placeholder`,`invalid`]),(0,e.unref)(o).errors.body?((0,e.openBlock)(),(0,e.createElementBlock)(`small`,w,(0,e.toDisplayString)((0,e.unref)(o).errors.body),1)):(0,e.createCommentVNode)(``,!0)]),r.edit?(0,e.createCommentVNode)(``,!0):((0,e.openBlock)(),(0,e.createElementBlock)(`div`,T,[(0,e.createVNode)((0,e.unref)(n.Checkbox),{id:`email_notification`,modelValue:(0,e.unref)(o).email_notification,"onUpdate:modelValue":i[2]||=t=>(0,e.unref)(o).email_notification=t},null,8,[`modelValue`]),(0,e.createElementVNode)(`label`,E,[(0,e.createElementVNode)(`span`,D,(0,e.toDisplayString)((0,e.unref)(a)(`E-Mail Notification`)),1),(0,e.createElementVNode)(`small`,O,(0,e.toDisplayString)((0,e.unref)(a)(`Send email notification about the announcement to all users.`)),1)])]))])]),(0,e.createVNode)((0,e.unref)(n.Button),{type:`submit`,label:r.edit?(0,e.unref)(a)(`Update Announcement`):(0,e.unref)(a)(`Create Announcement`),loading:(0,e.unref)(o).processing},null,8,[`label`,`loading`])],32)]),_:1},8,[`title`,`heading`,`breadcrumbs`]))}}),A={class:`mb-4 flex justify-end`},j={class:`rounded-lg border border-slate-200 bg-white p-6 shadow-sm`},M={class:`overflow-x-auto`},N={class:`w-full min-w-2xl text-left`},P={class:`border-b border-slate-100`},F={class:`px-4 py-3 font-medium`},I={class:`px-4 py-3 font-medium`},ne={class:`px-4 py-3 font-medium`},L={class:`px-4 py-3 text-center font-medium`},R={key:0},z={colspan:`5`,class:`px-4 py-3`},B={class:`text-slate-500`},V=[`src`,`alt`],H={class:`px-4 py-3`},U={key:1},W={class:`px-4 py-3`},G={class:`px-4 py-3`},K={class:`px-4 py-3 text-center whitespace-nowrap`},q=(0,e.defineComponent)({__name:`Index`,props:{announcements:{}},setup(r){let{__:i}=(0,n.useTranslations)(),{confirmDelete:a}=(0,n.useConfirmDelete)();function o(e){a({url:e.deleteUrl,message:i(`Are you sure that you want to delete this announcement?`)})}return(a,s)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(n.AppLayout),{title:(0,e.unref)(i)(`Announcements`),heading:(0,e.unref)(i)(`Announcements`),breadcrumbs:[{label:(0,e.unref)(i)(`Announcements`)}]},{default:(0,e.withCtx)(()=>[(0,e.createElementVNode)(`div`,A,[(0,e.createVNode)((0,e.unref)(t.Link),{href:a.route(`announcements.create`)},{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(n.Button),{label:(0,e.unref)(i)(`Create Announcement`),icon:`fas fa-plus`,rounded:``},null,8,[`label`])]),_:1},8,[`href`])]),(0,e.createElementVNode)(`div`,j,[(0,e.createElementVNode)(`div`,M,[(0,e.createElementVNode)(`table`,N,[(0,e.createElementVNode)(`thead`,null,[(0,e.createElementVNode)(`tr`,P,[s[0]||=(0,e.createElementVNode)(`th`,{class:`w-14 px-4 py-3`},null,-1),(0,e.createElementVNode)(`th`,F,(0,e.toDisplayString)((0,e.unref)(i)(`Creator`)),1),(0,e.createElementVNode)(`th`,I,(0,e.toDisplayString)((0,e.unref)(i)(`Title`)),1),(0,e.createElementVNode)(`th`,ne,(0,e.toDisplayString)((0,e.unref)(i)(`Created At`)),1),(0,e.createElementVNode)(`th`,L,(0,e.toDisplayString)((0,e.unref)(i)(`Action`)),1)])]),(0,e.createElementVNode)(`tbody`,null,[r.announcements.data.length?(0,e.createCommentVNode)(``,!0):((0,e.openBlock)(),(0,e.createElementBlock)(`tr`,R,[(0,e.createElementVNode)(`td`,z,[(0,e.createElementVNode)(`em`,B,(0,e.toDisplayString)((0,e.unref)(i)(`No announcements found.`)),1)])])),((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(r.announcements.data,r=>((0,e.openBlock)(),(0,e.createElementBlock)(`tr`,{key:r.id,class:`border-b border-slate-50 odd:bg-slate-50/60`},[(0,e.createElementVNode)(`td`,null,[((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)(r.creatorUrl?(0,e.unref)(t.Link):`div`),{href:r.creatorUrl,class:`flex items-center justify-center`},{default:(0,e.withCtx)(()=>[(0,e.createElementVNode)(`img`,{src:r.creatorAvatar,alt:r.creator,width:`40`,height:`40`,class:`size-10 rounded-full object-cover`},null,8,V)]),_:2},1032,[`href`]))]),(0,e.createElementVNode)(`td`,H,[r.creatorUrl?((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.Link),{key:0,href:r.creatorUrl,class:`text-primary-600 hover:underline`},{default:(0,e.withCtx)(()=>[(0,e.createTextVNode)((0,e.toDisplayString)(r.creator),1)]),_:2},1032,[`href`])):((0,e.openBlock)(),(0,e.createElementBlock)(`span`,U,(0,e.toDisplayString)(r.creator),1))]),(0,e.createElementVNode)(`td`,W,[(0,e.createVNode)((0,e.unref)(t.Link),{href:r.showUrl,class:`text-primary-600 hover:underline`},{default:(0,e.withCtx)(()=>[(0,e.createTextVNode)((0,e.toDisplayString)(r.title),1)]),_:2},1032,[`href`])]),(0,e.createElementVNode)(`td`,G,(0,e.toDisplayString)(r.createdAt),1),(0,e.createElementVNode)(`td`,K,[(0,e.createVNode)((0,e.unref)(n.Tooltip),{text:(0,e.unref)(i)(`Edit Announcement`)},{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(t.Link),{href:r.editUrl},{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(n.Button),{icon:`fas fa-edit`,text:``,rounded:``,severity:`secondary`,"aria-label":(0,e.unref)(i)(`Edit Announcement`)},null,8,[`aria-label`])]),_:1},8,[`href`])]),_:2},1032,[`text`]),(0,e.createVNode)((0,e.unref)(n.Tooltip),{text:(0,e.unref)(i)(`Delete Announcement`)},{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(n.Button),{icon:`fas fa-trash`,text:``,rounded:``,severity:`secondary`,"aria-label":(0,e.unref)(i)(`Delete Announcement`),onClick:e=>o(r)},null,8,[`aria-label`,`onClick`])]),_:2},1032,[`text`])])]))),128))])])]),(0,e.createVNode)((0,e.unref)(n.Pagination),{links:r.announcements.links},null,8,[`links`])])]),_:1},8,[`title`,`heading`,`breadcrumbs`]))}}),J={class:`overflow-hidden rounded-lg border border-slate-200 bg-white shadow-lg`},Y={class:`p-6`},X={class:`mb-3 text-xl font-medium text-slate-800`},Z=[`innerHTML`],re={class:`bg-lighter flex items-center justify-between px-6 py-4`},ie={class:`flex items-center gap-3`},ae=[`src`,`alt`],oe={class:`leading-tight`},se={class:`text-slate-500`},Q=(0,e.defineComponent)({__name:`AnnouncementCard`,props:{announcement:{}},setup(r){let{__:i}=(0,n.useTranslations)(),{can:a}=(0,n.usePermissions)();return(o,s)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,J,[(0,e.createElementVNode)(`div`,Y,[(0,e.createElementVNode)(`h4`,X,(0,e.toDisplayString)(r.announcement.title),1),(0,e.createElementVNode)(`div`,{class:`prose-vanguard`,innerHTML:r.announcement.parsedBody},null,8,Z)]),(0,e.createElementVNode)(`div`,re,[(0,e.createElementVNode)(`div`,ie,[(0,e.createElementVNode)(`img`,{src:r.announcement.avatar,alt:r.announcement.creator,width:`40`,height:`40`,class:`size-10 rounded-full object-cover`},null,8,ae),(0,e.createElementVNode)(`div`,null,[(0,e.createElementVNode)(`div`,oe,(0,e.toDisplayString)(r.announcement.creator),1),(0,e.createElementVNode)(`div`,se,(0,e.toDisplayString)(r.announcement.shortDate),1)])]),(0,e.unref)(a)(`announcements.manage`)?((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(t.Link),{key:0,href:r.announcement.editUrl},{default:(0,e.withCtx)(()=>[(0,e.createVNode)((0,e.unref)(n.Button),{label:(0,e.unref)(i)(`Edit`),severity:`secondary`,size:`small`},null,8,[`label`])]),_:1},8,[`href`])):(0,e.createCommentVNode)(``,!0)])]))}}),ce={class:`mx-auto max-w-2xl space-y-4`},le={key:0,class:`rounded-lg border border-slate-200 bg-white p-6 shadow-sm`},$={class:`text-center text-lg`},ue=(0,e.defineComponent)({__name:`List`,props:{announcements:{}},setup(t){let{__:r}=(0,n.useTranslations)();return(i,a)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(n.AppLayout),{title:(0,e.unref)(r)(`Announcements`),heading:(0,e.unref)(r)(`Announcements`),breadcrumbs:[{label:(0,e.unref)(r)(`Announcements`)}]},{default:(0,e.withCtx)(()=>[(0,e.createElementVNode)(`div`,ce,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(t.announcements.data,t=>((0,e.openBlock)(),(0,e.createBlock)(Q,{key:t.id,announcement:t},null,8,[`announcement`]))),128)),t.announcements.data.length?(0,e.createCommentVNode)(``,!0):((0,e.openBlock)(),(0,e.createElementBlock)(`div`,le,[(0,e.createElementVNode)(`p`,$,(0,e.toDisplayString)((0,e.unref)(r)(`No new announcements at the moment.`)),1)])),(0,e.createVNode)((0,e.unref)(n.Pagination),{links:t.announcements.links},null,8,[`links`])])]),_:1},8,[`title`,`heading`,`breadcrumbs`]))}}),de={class:`mx-auto max-w-2xl`},fe=(0,e.defineComponent)({__name:`Show`,props:{announcement:{}},setup(t){let r=t,{__:i}=(0,n.useTranslations)();return(a,o)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.unref)(n.AppLayout),{title:`${(0,e.unref)(i)(`Announcement`)}:${r.announcement.title}`,heading:(0,e.unref)(i)(`Announcement Details`),breadcrumbs:[{label:(0,e.unref)(i)(`Announcements`),href:a.route(`announcements.list`)},{label:(0,e.unref)(i)(`Announcement Details`)}]},{default:(0,e.withCtx)(()=>[(0,e.createElementVNode)(`div`,de,[(0,e.createVNode)(Q,{announcement:t.announcement},null,8,[`announcement`])])]),_:1},8,[`title`,`heading`,`breadcrumbs`]))}});window.Vanguard.plugin(`announcements`,e=>{e.page(`announcements::Index`,q),e.page(`announcements::List`,ue),e.page(`announcements::Show`,fe),e.page(`announcements::Form`,k),e.slot(`announcements::NavbarBell`,_)})})(Vanguard.vue,Vanguard.inertia,Vanguard.ui);