@stlhorizon/vue-ui 3.23.8 → 3.23.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +108 -103
- package/dist/index.js +1 -1
- package/dist/src/components/EventsCalendar.vue.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/vue-ui.css +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -17469,66 +17469,26 @@ function W1(e, a, t, n, s, o) {
|
|
|
17469
17469
|
])) : h("", !0)
|
|
17470
17470
|
])
|
|
17471
17471
|
]),
|
|
17472
|
-
|
|
17473
|
-
|
|
17474
|
-
|
|
17475
|
-
|
|
17476
|
-
|
|
17477
|
-
|
|
17478
|
-
|
|
17479
|
-
|
|
17480
|
-
|
|
17481
|
-
|
|
17482
|
-
|
|
17483
|
-
|
|
17484
|
-
|
|
17485
|
-
|
|
17486
|
-
l("
|
|
17487
|
-
class: "
|
|
17488
|
-
|
|
17489
|
-
|
|
17490
|
-
|
|
17491
|
-
|
|
17492
|
-
l("path", {
|
|
17493
|
-
"stroke-linecap": "round",
|
|
17494
|
-
"stroke-linejoin": "round",
|
|
17495
|
-
"stroke-width": "2",
|
|
17496
|
-
d: "M6 18L18 6M6 6l12 12"
|
|
17497
|
-
})
|
|
17498
|
-
], -1)
|
|
17499
|
-
])])
|
|
17500
|
-
]),
|
|
17501
|
-
l("div", M1, [
|
|
17502
|
-
l("div", {
|
|
17503
|
-
class: g(["h-1 w-full rounded-full", o.getEventColorClass(s.selectedEvent.color)])
|
|
17504
|
-
}, null, 2),
|
|
17505
|
-
l("div", null, [
|
|
17506
|
-
l("h4", V1, y(s.selectedEvent.title), 1)
|
|
17507
|
-
]),
|
|
17508
|
-
s.selectedEvent.status ? (r(), i("div", F1, [
|
|
17509
|
-
l("span", {
|
|
17510
|
-
class: g(["inline-flex items-center px-3 py-1.5 rounded-full text-sm font-medium", s.selectedEvent.status === "complied" ? "bg-green-100 text-green-800 border border-green-200" : "bg-orange-100 text-orange-800 border border-orange-200"])
|
|
17511
|
-
}, [
|
|
17512
|
-
s.selectedEvent.status === "complied" ? (r(), i("svg", T1, [...a[14] || (a[14] = [
|
|
17513
|
-
l("path", {
|
|
17514
|
-
"fill-rule": "evenodd",
|
|
17515
|
-
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",
|
|
17516
|
-
"clip-rule": "evenodd"
|
|
17517
|
-
}, null, -1)
|
|
17518
|
-
])])) : (r(), i("svg", B1, [...a[15] || (a[15] = [
|
|
17519
|
-
l("path", {
|
|
17520
|
-
"fill-rule": "evenodd",
|
|
17521
|
-
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm1-12a1 1 0 10-2 0v4a1 1 0 00.293.707l2.828 2.829a1 1 0 101.415-1.415L11 9.586V6z",
|
|
17522
|
-
"clip-rule": "evenodd"
|
|
17523
|
-
}, null, -1)
|
|
17524
|
-
])])),
|
|
17525
|
-
oe(" " + y(s.selectedEvent.status === "complied" ? "Complied" : "Pending"), 1)
|
|
17526
|
-
], 2)
|
|
17527
|
-
])) : h("", !0),
|
|
17528
|
-
l("div", P1, [
|
|
17529
|
-
l("div", j1, [
|
|
17530
|
-
a[16] || (a[16] = l("svg", {
|
|
17531
|
-
class: "w-5 h-5 text-gray-400 mt-0.5",
|
|
17472
|
+
U(e.$slots, "sidebar", {
|
|
17473
|
+
selectedEvent: s.selectedEvent,
|
|
17474
|
+
closeEvent: () => s.selectedEvent = null
|
|
17475
|
+
}, () => [
|
|
17476
|
+
P(we, {
|
|
17477
|
+
"enter-active-class": "transition-all duration-200",
|
|
17478
|
+
"leave-active-class": "transition-all duration-200",
|
|
17479
|
+
"enter-from-class": "opacity-0 translate-x-4",
|
|
17480
|
+
"leave-to-class": "opacity-0 translate-x-4"
|
|
17481
|
+
}, {
|
|
17482
|
+
default: Y(() => [
|
|
17483
|
+
s.selectedEvent ? (r(), i("div", A1, [
|
|
17484
|
+
l("div", D1, [
|
|
17485
|
+
a[13] || (a[13] = l("h3", { class: "text-lg font-semibold text-gray-900" }, " Event Details ", -1)),
|
|
17486
|
+
l("button", {
|
|
17487
|
+
class: "text-gray-400 hover:text-gray-600 transition-colors",
|
|
17488
|
+
onClick: a[6] || (a[6] = (u) => s.selectedEvent = null)
|
|
17489
|
+
}, [...a[12] || (a[12] = [
|
|
17490
|
+
l("svg", {
|
|
17491
|
+
class: "w-5 h-5",
|
|
17532
17492
|
fill: "none",
|
|
17533
17493
|
stroke: "currentColor",
|
|
17534
17494
|
viewBox: "0 0 24 24"
|
|
@@ -17537,56 +17497,101 @@ function W1(e, a, t, n, s, o) {
|
|
|
17537
17497
|
"stroke-linecap": "round",
|
|
17538
17498
|
"stroke-linejoin": "round",
|
|
17539
17499
|
"stroke-width": "2",
|
|
17540
|
-
d: "
|
|
17500
|
+
d: "M6 18L18 6M6 6l12 12"
|
|
17541
17501
|
})
|
|
17542
|
-
], -1)
|
|
17543
|
-
|
|
17544
|
-
|
|
17545
|
-
|
|
17502
|
+
], -1)
|
|
17503
|
+
])])
|
|
17504
|
+
]),
|
|
17505
|
+
l("div", M1, [
|
|
17506
|
+
l("div", {
|
|
17507
|
+
class: g(["h-1 w-full rounded-full", o.getEventColorClass(s.selectedEvent.color)])
|
|
17508
|
+
}, null, 2),
|
|
17509
|
+
l("div", null, [
|
|
17510
|
+
l("h4", V1, y(s.selectedEvent.title), 1)
|
|
17546
17511
|
]),
|
|
17547
|
-
|
|
17548
|
-
|
|
17549
|
-
class: "
|
|
17550
|
-
fill: "none",
|
|
17551
|
-
stroke: "currentColor",
|
|
17552
|
-
viewBox: "0 0 24 24"
|
|
17512
|
+
s.selectedEvent.status ? (r(), i("div", F1, [
|
|
17513
|
+
l("span", {
|
|
17514
|
+
class: g(["inline-flex items-center px-3 py-1.5 rounded-full text-sm font-medium", s.selectedEvent.status === "complied" ? "bg-green-100 text-green-800 border border-green-200" : "bg-orange-100 text-orange-800 border border-orange-200"])
|
|
17553
17515
|
}, [
|
|
17554
|
-
|
|
17555
|
-
"
|
|
17556
|
-
|
|
17557
|
-
|
|
17558
|
-
|
|
17559
|
-
|
|
17560
|
-
|
|
17561
|
-
|
|
17562
|
-
|
|
17563
|
-
|
|
17564
|
-
|
|
17565
|
-
|
|
17566
|
-
|
|
17567
|
-
|
|
17568
|
-
|
|
17569
|
-
a[21] || (a[21] = l("h5", { class: "text-sm font-semibold text-gray-900 mb-2" }, " Compliance Details ", -1)),
|
|
17570
|
-
s.selectedEvent.compliance.remarks ? (r(), i("div", R1, [
|
|
17571
|
-
a[19] || (a[19] = l("span", { class: "font-medium text-gray-700" }, "Remarks:", -1)),
|
|
17572
|
-
l("p", U1, y(s.selectedEvent.compliance.remarks), 1)
|
|
17516
|
+
s.selectedEvent.status === "complied" ? (r(), i("svg", T1, [...a[14] || (a[14] = [
|
|
17517
|
+
l("path", {
|
|
17518
|
+
"fill-rule": "evenodd",
|
|
17519
|
+
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",
|
|
17520
|
+
"clip-rule": "evenodd"
|
|
17521
|
+
}, null, -1)
|
|
17522
|
+
])])) : (r(), i("svg", B1, [...a[15] || (a[15] = [
|
|
17523
|
+
l("path", {
|
|
17524
|
+
"fill-rule": "evenodd",
|
|
17525
|
+
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm1-12a1 1 0 10-2 0v4a1 1 0 00.293.707l2.828 2.829a1 1 0 101.415-1.415L11 9.586V6z",
|
|
17526
|
+
"clip-rule": "evenodd"
|
|
17527
|
+
}, null, -1)
|
|
17528
|
+
])])),
|
|
17529
|
+
oe(" " + y(s.selectedEvent.status === "complied" ? "Complied" : "Pending"), 1)
|
|
17530
|
+
], 2)
|
|
17573
17531
|
])) : h("", !0),
|
|
17574
|
-
|
|
17575
|
-
|
|
17576
|
-
|
|
17532
|
+
l("div", P1, [
|
|
17533
|
+
l("div", j1, [
|
|
17534
|
+
a[16] || (a[16] = l("svg", {
|
|
17535
|
+
class: "w-5 h-5 text-gray-400 mt-0.5",
|
|
17536
|
+
fill: "none",
|
|
17537
|
+
stroke: "currentColor",
|
|
17538
|
+
viewBox: "0 0 24 24"
|
|
17539
|
+
}, [
|
|
17540
|
+
l("path", {
|
|
17541
|
+
"stroke-linecap": "round",
|
|
17542
|
+
"stroke-linejoin": "round",
|
|
17543
|
+
"stroke-width": "2",
|
|
17544
|
+
d: "M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"
|
|
17545
|
+
})
|
|
17546
|
+
], -1)),
|
|
17547
|
+
l("div", null, [
|
|
17548
|
+
l("p", O1, y(o.formatEventDate(s.selectedEvent.date, "full")), 1)
|
|
17549
|
+
])
|
|
17550
|
+
]),
|
|
17551
|
+
l("div", I1, [
|
|
17552
|
+
a[17] || (a[17] = l("svg", {
|
|
17553
|
+
class: "w-5 h-5 text-gray-400 mt-0.5",
|
|
17554
|
+
fill: "none",
|
|
17555
|
+
stroke: "currentColor",
|
|
17556
|
+
viewBox: "0 0 24 24"
|
|
17557
|
+
}, [
|
|
17558
|
+
l("path", {
|
|
17559
|
+
"stroke-linecap": "round",
|
|
17560
|
+
"stroke-linejoin": "round",
|
|
17561
|
+
"stroke-width": "2",
|
|
17562
|
+
d: "M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
17563
|
+
})
|
|
17564
|
+
], -1)),
|
|
17565
|
+
l("p", E1, y(s.selectedEvent.time), 1)
|
|
17566
|
+
])
|
|
17567
|
+
]),
|
|
17568
|
+
s.selectedEvent.description ? (r(), i("div", L1, [
|
|
17569
|
+
a[18] || (a[18] = l("h5", { class: "text-sm font-semibold text-gray-900 mb-2" }, " Description ", -1)),
|
|
17570
|
+
l("p", _1, y(s.selectedEvent.description), 1)
|
|
17571
|
+
])) : h("", !0),
|
|
17572
|
+
s.selectedEvent.compliance ? (r(), i("div", N1, [
|
|
17573
|
+
a[21] || (a[21] = l("h5", { class: "text-sm font-semibold text-gray-900 mb-2" }, " Compliance Details ", -1)),
|
|
17574
|
+
s.selectedEvent.compliance.remarks ? (r(), i("div", R1, [
|
|
17575
|
+
a[19] || (a[19] = l("span", { class: "font-medium text-gray-700" }, "Remarks:", -1)),
|
|
17576
|
+
l("p", U1, y(s.selectedEvent.compliance.remarks), 1)
|
|
17577
|
+
])) : h("", !0),
|
|
17578
|
+
s.selectedEvent.compliance.compliance_documents?.length ? (r(), i("div", q1, [
|
|
17579
|
+
a[20] || (a[20] = l("span", { class: "font-medium text-gray-700" }, "Documents:", -1)),
|
|
17580
|
+
l("p", H1, y(s.selectedEvent.compliance.compliance_documents.length) + " document(s) attached ", 1)
|
|
17581
|
+
])) : h("", !0)
|
|
17577
17582
|
])) : h("", !0)
|
|
17578
|
-
])
|
|
17579
|
-
|
|
17580
|
-
|
|
17581
|
-
|
|
17582
|
-
],
|
|
17583
|
-
])
|
|
17584
|
-
|
|
17585
|
-
|
|
17586
|
-
|
|
17583
|
+
]),
|
|
17584
|
+
a[22] || (a[22] = l("div", { class: "px-6 py-4 border-t border-gray-200 space-y-2" }, [
|
|
17585
|
+
l("button", { class: "w-full px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors font-medium text-sm" }, " View Full Details ")
|
|
17586
|
+
], -1))
|
|
17587
|
+
])) : h("", !0)
|
|
17588
|
+
]),
|
|
17589
|
+
_: 1
|
|
17590
|
+
})
|
|
17591
|
+
], !0)
|
|
17587
17592
|
]);
|
|
17588
17593
|
}
|
|
17589
|
-
const Y1 = /* @__PURE__ */ Vt(jy, [["render", W1], ["__scopeId", "data-v-
|
|
17594
|
+
const Y1 = /* @__PURE__ */ Vt(jy, [["render", W1], ["__scopeId", "data-v-8a8edc30"]]), Vn = {
|
|
17590
17595
|
Avatar: Ci,
|
|
17591
17596
|
Badge: Ir,
|
|
17592
17597
|
Button: Se,
|
package/dist/index.js
CHANGED
|
@@ -602,4 +602,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
602
602
|
bottom: -5px;
|
|
603
603
|
left: 50%;
|
|
604
604
|
transform: translateX(-50%);
|
|
605
|
-
`}},i=()=>{document.body.appendChild(o),s(),l(),setTimeout(()=>{o.style.opacity="1"},10),window.addEventListener("scroll",l,!0),window.addEventListener("resize",l)},c=()=>{o.style.opacity="0",window.removeEventListener("scroll",l,!0),window.removeEventListener("resize",l),setTimeout(()=>{o.parentNode&&document.body.removeChild(o)},200)};t.addEventListener("mouseenter",i),t.addEventListener("mouseleave",c),t.addEventListener("click",c),t._tooltipShowFn=i,t._tooltipHideFn=c,t._tooltipRepositionFn=l},updated(t,n){if(t._tooltipEl){const a=t._tooltipEl.firstChild;a&&a.nodeType===Node.TEXT_NODE&&(a.textContent=n.value||"")}},unmounted(t){t._tooltipEl&&t._tooltipEl.parentNode&&document.body.removeChild(t._tooltipEl),t._tooltipShowFn&&t.removeEventListener("mouseenter",t._tooltipShowFn),t._tooltipHideFn&&(t.removeEventListener("mouseleave",t._tooltipHideFn),t.removeEventListener("click",t._tooltipHideFn)),t._tooltipRepositionFn&&(window.removeEventListener("scroll",t._tooltipRepositionFn,!0),window.removeEventListener("resize",t._tooltipRepositionFn))}};function Se(t){if(typeof t=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(t))return t;if(t instanceof Date){const n=t.getFullYear(),a=String(t.getMonth()+1).padStart(2,"0"),o=String(t.getDate()).padStart(2,"0");return`${n}-${a}-${o}`}return null}function Hy(t){if(!t)return null;if(/^\d{4}-\d{2}-\d{2}$/.test(t)){const[n,a,o]=t.split("-").map(Number);return new Date(n,a-1,o)}return new Date(t)}function ut(){return Se(new Date)}function fr(t){const n=t.getDay(),a=new Date(t);a.setDate(t.getDate()-n);const o=new Date(a);return o.setDate(a.getDate()+6),{startDate:a,endDate:o}}function Wy(t){const{startDate:n}=fr(t),a=[];for(let o=0;o<7;o++){const r=new Date(n);r.setDate(n.getDate()+o),a.push(r)}return a}function Yy(t){const n=t.getFullYear(),a=t.getMonth(),o=new Date(n,a,1),r=new Date(n,a+1,0),l=o.getDay(),s=r.getDate(),i=[],c=ut(),f=new Date(n,a,0).getDate();for(let k=l-1;k>=0;k--){const $=f-k,B=new Date(n,a-1,$),V=Se(B);i.push({dayNumber:$,date:V,dateObj:B,isCurrentMonth:!1,isToday:V===c})}for(let k=1;k<=s;k++){const $=new Date(n,a,k),B=Se($);i.push({dayNumber:k,date:B,dateObj:$,isCurrentMonth:!0,isToday:B===c})}const x=42-i.length;for(let k=1;k<=x;k++){const $=new Date(n,a+1,k),B=Se($);i.push({dayNumber:k,date:B,dateObj:$,isCurrentMonth:!1,isToday:B===c})}return i}function an(t,n="full"){if(!t)return"";const a=Hy(t);if(!a)return String(t);const o={full:{weekday:"long",year:"numeric",month:"long",day:"numeric"},short:{month:"short",day:"numeric",year:"numeric"},time:{hour:"2-digit",minute:"2-digit"}};return a.toLocaleDateString("en-US",o[n]||o.full)}function Gy(t=0,n=23,a=60){const o=[];for(let r=t;r<=n;r++)for(let l=0;l<60;l+=a){const s=String(r).padStart(2,"0"),i=String(l).padStart(2,"0"),c=`${s}:${i}`,f=r===0?12:r>12?r-12:r,x=r<12?"AM":"PM",k=`${f}:${i} ${x}`;o.push({time:c,display:k})}return o}function nn(t,n){const a=Se(t),o=Se(n);return a===o}function Pt(t,n="long"){return t.toLocaleDateString("en-US",{month:n})}function on(t){return t.getFullYear()}const Ky={name:"EventsCalendar",props:{events:{type:Array,default:()=>[]},size:{type:String,default:"default"}},emits:["select-date","select-event"],data(){return{currentDate:new Date,selectedDate:null,viewMode:"month",selectedEvent:null,weekDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekDaysShort:["S","M","T","W","T","F","S"],timeSlots:Gy(0,23,60)}},computed:{displayTitle(){if(this.viewMode==="day")return an(this.currentDate,"full");if(this.viewMode==="week"){const{startDate:t,endDate:n}=fr(this.currentDate),a=Pt(t,"short"),o=Pt(n,"short"),r=on(this.currentDate);return t.getMonth()===n.getMonth()?`${a} ${t.getDate()} - ${n.getDate()}, ${r}`:`${a} ${t.getDate()} - ${o} ${n.getDate()}, ${r}`}else return`${Pt(this.currentDate)} ${on(this.currentDate)}`},calendarDays(){return Yy(this.currentDate).map(n=>({...n,events:this.getEventsForDate(n.date)}))},weekViewDays(){return Wy(this.currentDate).map(n=>{const a=Se(n);return{dateObj:n,date:a,dayNumber:n.getDate(),dayName:this.weekDays[n.getDay()],isToday:nn(n,ut()),events:this.getEventsForDate(a)}})},dayViewDate(){const t=Se(this.currentDate);return{dateObj:this.currentDate,date:t,dayNumber:this.currentDate.getDate(),dayName:this.weekDays[this.currentDate.getDay()],isToday:nn(this.currentDate,ut()),events:this.getEventsForDate(t)}}},methods:{formatEventDate:an,getEventsForDate(t){return this.events.filter(n=>n.date===t)},previousPeriod(){this.viewMode==="day"?this.currentDate=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth(),this.currentDate.getDate()-1):this.viewMode==="week"?this.currentDate=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth(),this.currentDate.getDate()-7):this.currentDate=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth()-1,1)},nextPeriod(){this.viewMode==="day"?this.currentDate=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth(),this.currentDate.getDate()+1):this.viewMode==="week"?this.currentDate=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth(),this.currentDate.getDate()+7):this.currentDate=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth()+1,1)},goToToday(){this.currentDate=new Date,this.selectedDate=ut(),this.$emit("select-date",{date:this.selectedDate,events:this.getEventsForDate(this.selectedDate)})},selectDay(t){this.selectedDate=t.date,this.$emit("select-date",{date:t.date,events:t.events})},selectEvent(t,n){this.selectedEvent=t,this.selectedDate=n.date,this.$emit("select-event",t)},getEventColorClass(t){return{blue:"bg-blue-500 border-blue-600",red:"bg-red-500 border-red-600",green:"bg-green-500 border-green-600",purple:"bg-purple-500 border-purple-600",orange:"bg-orange-500 border-orange-600"}[t]||"bg-gray-500 border-gray-600"},getEventsAtTime(t,n){return t.filter(o=>{if(!o.time||!/^\d{1,2}:\d{2}/.test(o.time))return!1;const r=o.time.split(":")[0].padStart(2,"0");return n.time.startsWith(r)})},getAllDayEvents(t){return t.filter(n=>n.time?!/^\d{1,2}:\d{2}/.test(n.time):!0)}}},Xy={class:"flex gap-0 h-full bg-white rounded-lg shadow-sm border border-gray-200"},Qy={class:"flex-1 flex flex-col"},Jy={class:"flex items-center justify-between px-6 py-4 border-b border-gray-200"},Zy={class:"flex items-center gap-3"},eb={class:"flex items-center gap-1"},tb={class:"text-xl font-semibold text-gray-900 ml-2"},ab={class:"flex items-center gap-2"},nb={class:"flex-1 flex flex-col p-4"},ob={key:0,class:"flex-1 flex flex-col"},rb={class:"grid grid-cols-7 border-b border-gray-200"},lb={class:"grid grid-cols-7 flex-1 border-l border-t border-gray-200"},sb=["onClick"],ib={class:"flex items-center justify-between mb-1 px-1"},cb={class:"space-y-1"},db=["onClick"],ub={key:0,class:"text-xs px-2 py-1 text-gray-600 font-medium cursor-pointer hover:text-gray-900"},mb={key:1,class:"flex-1 flex flex-col overflow-hidden"},fb={class:"grid grid-cols-8 border-b border-gray-200 bg-gray-50"},pb={class:"text-xs font-semibold text-gray-600 uppercase"},gb={class:"grid grid-cols-8 border-b border-gray-200 bg-gray-50 min-h-[60px]"},vb=["onClick"],hb={class:"font-semibold truncate"},yb={class:"flex-1 overflow-y-auto"},bb={class:"grid grid-cols-8"},xb={class:"border-r border-gray-200 bg-gray-50"},kb=["onClick"],wb={class:"font-semibold truncate"},Cb={class:"text-xs opacity-90 truncate"},Bb={key:2,class:"flex-1 flex flex-col overflow-hidden"},Vb={class:"border-b border-gray-200 bg-gray-50 p-4"},Eb={class:"text-center"},Nb={class:"text-sm font-semibold text-gray-600 uppercase"},Sb={key:0,class:"border-b border-gray-200 bg-gray-50 p-4"},$b={class:"space-y-2"},zb=["onClick"],Db={class:"font-semibold"},Tb={key:0,class:"text-xs opacity-80 mt-1"},Fb={class:"flex-1 overflow-y-auto"},Mb={class:"flex"},Ab={class:"w-24 border-r border-gray-200 bg-gray-50 flex-shrink-0"},Lb={class:"flex-1 relative"},Pb=["onClick"],jb={class:"font-semibold"},Ob={class:"text-xs opacity-90 mt-1"},Ib={key:0,class:"text-xs opacity-80 mt-1 line-clamp-2"},_b={key:0,class:"w-80 border-l border-gray-200 bg-white flex flex-col"},Rb={class:"px-6 py-4 border-b border-gray-200 flex items-start justify-between"},Ub={class:"flex-1 overflow-y-auto px-6 py-4 space-y-4"},qb={class:"text-xl font-bold text-gray-900"},Hb={key:0},Wb={key:0,class:"w-4 h-4 mr-1.5",fill:"currentColor",viewBox:"0 0 20 20"},Yb={key:1,class:"w-4 h-4 mr-1.5",fill:"currentColor",viewBox:"0 0 20 20"},Gb={class:"space-y-3 pt-2"},Kb={class:"flex items-start gap-3"},Xb={class:"text-sm font-medium text-gray-900"},Qb={class:"flex items-start gap-3"},Jb={class:"text-sm text-gray-600"},Zb={key:1,class:"pt-4 border-t border-gray-200"},ex={class:"text-sm text-gray-600 leading-relaxed"},tx={key:2,class:"pt-4 border-t border-gray-200 space-y-3"},ax={key:0,class:"text-sm"},nx={class:"text-gray-600 mt-1"},ox={key:1,class:"text-sm"},rx={class:"text-gray-600 mt-1"};function lx(t,n,a,o,r,l){return e.openBlock(),e.createElementBlock("div",Xy,[e.createElementVNode("div",Qy,[e.createElementVNode("div",Jy,[e.createElementVNode("div",Zy,[e.createElementVNode("button",{class:"px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded hover:bg-gray-50 transition-colors",onClick:n[0]||(n[0]=(...s)=>l.goToToday&&l.goToToday(...s))}," Today "),e.createElementVNode("div",eb,[e.createElementVNode("button",{class:"p-2 text-gray-600 hover:bg-gray-100 rounded transition-colors",onClick:n[1]||(n[1]=(...s)=>l.previousPeriod&&l.previousPeriod(...s))},[...n[7]||(n[7]=[e.createElementVNode("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1)])]),e.createElementVNode("button",{class:"p-2 text-gray-600 hover:bg-gray-100 rounded transition-colors",onClick:n[2]||(n[2]=(...s)=>l.nextPeriod&&l.nextPeriod(...s))},[...n[8]||(n[8]=[e.createElementVNode("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})],-1)])])]),e.createElementVNode("h2",tb,e.toDisplayString(l.displayTitle),1)]),e.createElementVNode("div",ab,[e.createElementVNode("button",{class:e.normalizeClass(["px-3 py-2 text-sm font-medium rounded transition-colors",r.viewMode==="month"?"bg-blue-100 text-blue-700":"text-gray-700 hover:bg-gray-100"]),onClick:n[3]||(n[3]=s=>r.viewMode="month")}," Month ",2),e.createElementVNode("button",{class:e.normalizeClass(["px-3 py-2 text-sm font-medium rounded transition-colors",r.viewMode==="week"?"bg-blue-100 text-blue-700":"text-gray-700 hover:bg-gray-100"]),onClick:n[4]||(n[4]=s=>r.viewMode="week")}," Week ",2),e.createElementVNode("button",{class:e.normalizeClass(["px-3 py-2 text-sm font-medium rounded transition-colors",r.viewMode==="day"?"bg-blue-100 text-blue-700":"text-gray-700 hover:bg-gray-100"]),onClick:n[5]||(n[5]=s=>r.viewMode="day")}," Day ",2)])]),e.createElementVNode("div",nb,[r.viewMode==="month"?(e.openBlock(),e.createElementBlock("div",ob,[e.createElementVNode("div",rb,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.weekDays,s=>(e.openBlock(),e.createElementBlock("div",{key:s,class:"text-center text-xs font-semibold text-gray-600 py-3 uppercase tracking-wider"},e.toDisplayString(s),1))),128))]),e.createElementVNode("div",lb,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.calendarDays,(s,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:e.normalizeClass(["border-r border-b border-gray-200 p-1 min-h-[120px] relative cursor-pointer hover:bg-gray-50 transition-colors",[s.isCurrentMonth?"bg-white":"bg-gray-50",s.isToday?"bg-blue-50":"",r.selectedDate===s.date?"ring-2 ring-blue-500 ring-inset":""]]),onClick:c=>l.selectDay(s)},[e.createElementVNode("div",ib,[e.createElementVNode("span",{class:e.normalizeClass(["text-sm font-medium",[s.isCurrentMonth?"text-gray-900":"text-gray-400",s.isToday?"bg-blue-600 text-white w-6 h-6 flex items-center justify-center rounded-full text-xs":""]])},e.toDisplayString(s.dayNumber),3)]),e.createElementVNode("div",cb,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.events.slice(0,3),(c,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:e.normalizeClass(["text-xs px-2 py-1 rounded cursor-pointer truncate border-l-2 text-white font-medium hover:opacity-90 transition-opacity",l.getEventColorClass(c.color)]),onClick:e.withModifiers(x=>l.selectEvent(c,s),["stop"])},e.toDisplayString(c.title),11,db))),128)),s.events.length>3?(e.openBlock(),e.createElementBlock("div",ub," +"+e.toDisplayString(s.events.length-3)+" more ",1)):e.createCommentVNode("",!0)])],10,sb))),128))])])):r.viewMode==="week"?(e.openBlock(),e.createElementBlock("div",mb,[e.createElementVNode("div",fb,[n[9]||(n[9]=e.createElementVNode("div",{class:"border-r border-gray-200 p-2"},null,-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.weekViewDays,s=>(e.openBlock(),e.createElementBlock("div",{key:s.date,class:e.normalizeClass(["text-center p-2 border-r border-gray-200",s.isToday?"bg-blue-50":""])},[e.createElementVNode("div",pb,e.toDisplayString(s.dayName),1),e.createElementVNode("div",{class:e.normalizeClass(["text-lg font-bold mt-1",[s.isToday?"bg-blue-600 text-white w-8 h-8 flex items-center justify-center rounded-full mx-auto":"text-gray-900"]])},e.toDisplayString(s.dayNumber),3)],2))),128))]),e.createElementVNode("div",gb,[n[10]||(n[10]=e.createElementVNode("div",{class:"border-r border-gray-200 px-2 py-1 text-xs text-gray-600 text-right flex items-center justify-end"}," All Day ",-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.weekViewDays,s=>(e.openBlock(),e.createElementBlock("div",{key:"allday-"+s.date,class:e.normalizeClass(["border-r border-gray-200 p-1 space-y-1",s.isToday?"bg-blue-50 bg-opacity-30":""])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.getAllDayEvents(s.events),i=>(e.openBlock(),e.createElementBlock("div",{key:i.id,class:e.normalizeClass(["rounded border-l-2 p-1 text-xs font-medium text-white cursor-pointer hover:opacity-90 transition-opacity",l.getEventColorClass(i.color)]),onClick:c=>l.selectEvent(i,s)},[e.createElementVNode("div",hb,e.toDisplayString(i.title),1)],10,vb))),128))],2))),128))]),e.createElementVNode("div",yb,[e.createElementVNode("div",bb,[e.createElementVNode("div",xb,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.timeSlots,s=>(e.openBlock(),e.createElementBlock("div",{key:s.time,class:"h-16 border-b border-gray-200 px-2 py-1 text-xs text-gray-600 text-right"},e.toDisplayString(s.display),1))),128))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.weekViewDays,s=>(e.openBlock(),e.createElementBlock("div",{key:s.date,class:"border-r border-gray-200 relative"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.timeSlots,i=>(e.openBlock(),e.createElementBlock("div",{key:i.time,class:e.normalizeClass(["h-16 border-b border-gray-200 hover:bg-gray-50 transition-colors cursor-pointer relative",s.isToday?"bg-blue-50 bg-opacity-30":""])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.getEventsAtTime(s.events,i),c=>(e.openBlock(),e.createElementBlock("div",{key:c.id,class:e.normalizeClass(["absolute inset-x-1 top-1 bottom-1 rounded border-l-2 p-1 text-xs font-medium text-white cursor-pointer hover:opacity-90 transition-opacity overflow-hidden",l.getEventColorClass(c.color)]),onClick:f=>l.selectEvent(c,s)},[e.createElementVNode("div",wb,e.toDisplayString(c.title),1),e.createElementVNode("div",Cb,e.toDisplayString(c.time),1)],10,kb))),128))],2))),128))]))),128))])])])):r.viewMode==="day"?(e.openBlock(),e.createElementBlock("div",Bb,[e.createElementVNode("div",Vb,[e.createElementVNode("div",Eb,[e.createElementVNode("div",Nb,e.toDisplayString(l.dayViewDate.dayName),1),e.createElementVNode("div",{class:e.normalizeClass(["text-3xl font-bold mt-2",[l.dayViewDate.isToday?"text-blue-600":"text-gray-900"]])},e.toDisplayString(l.dayViewDate.dayNumber),3)])]),l.getAllDayEvents(l.dayViewDate.events).length>0?(e.openBlock(),e.createElementBlock("div",Sb,[n[11]||(n[11]=e.createElementVNode("h4",{class:"text-xs font-semibold text-gray-600 uppercase tracking-wide mb-2"}," All Day Events ",-1)),e.createElementVNode("div",$b,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.getAllDayEvents(l.dayViewDate.events),s=>(e.openBlock(),e.createElementBlock("div",{key:s.id,class:e.normalizeClass(["rounded border-l-4 p-3 text-sm font-medium text-white cursor-pointer hover:opacity-90 transition-opacity shadow-sm",l.getEventColorClass(s.color)]),onClick:i=>l.selectEvent(s,l.dayViewDate)},[e.createElementVNode("div",Db,e.toDisplayString(s.title),1),s.description?(e.openBlock(),e.createElementBlock("div",Tb,e.toDisplayString(s.description),1)):e.createCommentVNode("",!0)],10,zb))),128))])])):e.createCommentVNode("",!0),e.createElementVNode("div",Fb,[e.createElementVNode("div",Mb,[e.createElementVNode("div",Ab,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.timeSlots,s=>(e.openBlock(),e.createElementBlock("div",{key:s.time,class:"h-16 border-b border-gray-200 px-2 py-1 text-xs text-gray-600 text-right"},e.toDisplayString(s.display),1))),128))]),e.createElementVNode("div",Lb,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.timeSlots,s=>(e.openBlock(),e.createElementBlock("div",{key:s.time,class:e.normalizeClass(["h-16 border-b border-gray-200 hover:bg-gray-50 transition-colors cursor-pointer relative",l.dayViewDate.isToday?"bg-blue-50 bg-opacity-30":""])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.getEventsAtTime(l.dayViewDate.events,s),i=>(e.openBlock(),e.createElementBlock("div",{key:i.id,class:e.normalizeClass(["absolute inset-x-2 top-1 bottom-1 rounded border-l-4 p-2 text-sm font-medium text-white cursor-pointer hover:opacity-90 transition-opacity shadow-sm",l.getEventColorClass(i.color)]),onClick:c=>l.selectEvent(i,l.dayViewDate)},[e.createElementVNode("div",jb,e.toDisplayString(i.title),1),e.createElementVNode("div",Ob,e.toDisplayString(i.time),1),i.description?(e.openBlock(),e.createElementBlock("div",Ib,e.toDisplayString(i.description),1)):e.createCommentVNode("",!0)],10,Pb))),128))],2))),128))])])])])):e.createCommentVNode("",!0)])]),e.createVNode(e.Transition,{"enter-active-class":"transition-all duration-200","leave-active-class":"transition-all duration-200","enter-from-class":"opacity-0 translate-x-4","leave-to-class":"opacity-0 translate-x-4"},{default:e.withCtx(()=>[r.selectedEvent?(e.openBlock(),e.createElementBlock("div",_b,[e.createElementVNode("div",Rb,[n[13]||(n[13]=e.createElementVNode("h3",{class:"text-lg font-semibold text-gray-900"}," Event Details ",-1)),e.createElementVNode("button",{class:"text-gray-400 hover:text-gray-600 transition-colors",onClick:n[6]||(n[6]=s=>r.selectedEvent=null)},[...n[12]||(n[12]=[e.createElementVNode("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)])])]),e.createElementVNode("div",Ub,[e.createElementVNode("div",{class:e.normalizeClass(["h-1 w-full rounded-full",l.getEventColorClass(r.selectedEvent.color)])},null,2),e.createElementVNode("div",null,[e.createElementVNode("h4",qb,e.toDisplayString(r.selectedEvent.title),1)]),r.selectedEvent.status?(e.openBlock(),e.createElementBlock("div",Hb,[e.createElementVNode("span",{class:e.normalizeClass(["inline-flex items-center px-3 py-1.5 rounded-full text-sm font-medium",r.selectedEvent.status==="complied"?"bg-green-100 text-green-800 border border-green-200":"bg-orange-100 text-orange-800 border border-orange-200"])},[r.selectedEvent.status==="complied"?(e.openBlock(),e.createElementBlock("svg",Wb,[...n[14]||(n[14]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z","clip-rule":"evenodd"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",Yb,[...n[15]||(n[15]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-12a1 1 0 10-2 0v4a1 1 0 00.293.707l2.828 2.829a1 1 0 101.415-1.415L11 9.586V6z","clip-rule":"evenodd"},null,-1)])])),e.createTextVNode(" "+e.toDisplayString(r.selectedEvent.status==="complied"?"Complied":"Pending"),1)],2)])):e.createCommentVNode("",!0),e.createElementVNode("div",Gb,[e.createElementVNode("div",Kb,[n[16]||(n[16]=e.createElementVNode("svg",{class:"w-5 h-5 text-gray-400 mt-0.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})],-1)),e.createElementVNode("div",null,[e.createElementVNode("p",Xb,e.toDisplayString(l.formatEventDate(r.selectedEvent.date,"full")),1)])]),e.createElementVNode("div",Qb,[n[17]||(n[17]=e.createElementVNode("svg",{class:"w-5 h-5 text-gray-400 mt-0.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)),e.createElementVNode("p",Jb,e.toDisplayString(r.selectedEvent.time),1)])]),r.selectedEvent.description?(e.openBlock(),e.createElementBlock("div",Zb,[n[18]||(n[18]=e.createElementVNode("h5",{class:"text-sm font-semibold text-gray-900 mb-2"}," Description ",-1)),e.createElementVNode("p",ex,e.toDisplayString(r.selectedEvent.description),1)])):e.createCommentVNode("",!0),r.selectedEvent.compliance?(e.openBlock(),e.createElementBlock("div",tx,[n[21]||(n[21]=e.createElementVNode("h5",{class:"text-sm font-semibold text-gray-900 mb-2"}," Compliance Details ",-1)),r.selectedEvent.compliance.remarks?(e.openBlock(),e.createElementBlock("div",ax,[n[19]||(n[19]=e.createElementVNode("span",{class:"font-medium text-gray-700"},"Remarks:",-1)),e.createElementVNode("p",nx,e.toDisplayString(r.selectedEvent.compliance.remarks),1)])):e.createCommentVNode("",!0),r.selectedEvent.compliance.compliance_documents?.length?(e.openBlock(),e.createElementBlock("div",ox,[n[20]||(n[20]=e.createElementVNode("span",{class:"font-medium text-gray-700"},"Documents:",-1)),e.createElementVNode("p",rx,e.toDisplayString(r.selectedEvent.compliance.compliance_documents.length)+" document(s) attached ",1)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),n[22]||(n[22]=e.createElementVNode("div",{class:"px-6 py-4 border-t border-gray-200 space-y-2"},[e.createElementVNode("button",{class:"w-full px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors font-medium text-sm"}," View Full Details ")],-1))])):e.createCommentVNode("",!0)]),_:1})])}const pr=ot(Ky,[["render",lx],["__scopeId","data-v-789e2a60"]]),rn={Avatar:io,Badge:ga,Button:oe,Checkbox:Qe,Divider:co,Icon:H,Image:uo,Input:re,Label:Be,Link:mo,Logo:fo,Option:va,CircularProgress:ha,Progress:po,ProgressBar:go,Radio:vo,Select:he,Spinner:Ct,Switch:ho,Text:yo,Textarea:Bt,Tooltip:ya,Typography:ht,Loader:Ie,Alert:bo,Breadcrumb:xo,ButtonGroup:ko,Card:wo,CardHeader:Co,CardBody:Bo,CardFooter:Vo,CardContent:Eo,CardTitle:No,DatePicker:nt,Dropdown:So,DropdownItem:$o,FileUpload:Je,FormField:Vt,InputGroup:zo,ListItem:Do,MenuItem:To,Modal:Et,ModalHeader:Fo,ModalBody:Mo,ModalFooter:Ao,Notification:Lo,Toast:Oo,Search:Io,Slider:Nt,Stepper:_o,StepperItem:Ro,Tab:Uo,TabPanel:qo,BarChart:ba,LineChart:xa,GraphFilters:Ko,Accordion:Ho,AccordionItem:Wo,Graph:Go,Calendar:Yo,EventsCalendar:pr,DataTable:Xo,DataTableHeader:ka,DataTableRow:Qo,DataTableCell:Jo,DataTablePagination:wa,DataTableFilters:Zo,DataTableToolBar:er,Footer:tr,Header:ar,ReusableFormModal:or,ReusableForm:rr,Sidebar:lr,Timeline:sr,TimelineItem:ir,AuthLayout:cr,DefaultLayout:dr,ErrorLayout:ur,DashboardWidget:mr},sx={install(t,n={}){const{prefix:a=""}=n;Object.keys(rn).forEach(o=>{const r=a?`${a}${o}`:o;t.component(r,rn[o])}),t.config.globalProperties.$toast=se,t.provide("toast",se),t.config.globalProperties.$tooltip=ta,t.provide("tooltip",ta)}};exports.Accordion=Ho;exports.AccordionItem=Wo;exports.Alert=bo;exports.AuthLayout=cr;exports.Avatar=io;exports.Badge=ga;exports.BarChart=ba;exports.Breadcrumb=xo;exports.Button=oe;exports.ButtonGroup=ko;exports.Calendar=Yo;exports.Card=wo;exports.CardBody=Bo;exports.CardContent=Eo;exports.CardFooter=Vo;exports.CardHeader=Co;exports.CardTitle=No;exports.Checkbox=Qe;exports.CircularProgress=ha;exports.DashboardWidget=mr;exports.DataTable=Xo;exports.DataTableCell=Jo;exports.DataTableFilters=Zo;exports.DataTableHeader=ka;exports.DataTablePagination=wa;exports.DataTableRow=Qo;exports.DataTableToolBar=er;exports.DatePicker=nt;exports.DefaultLayout=dr;exports.Divider=co;exports.Dropdown=So;exports.DropdownItem=$o;exports.ErrorLayout=ur;exports.EventsCalendar=pr;exports.FileUpload=Je;exports.Footer=tr;exports.FormField=Vt;exports.Graph=Go;exports.GraphFilters=Ko;exports.Header=ar;exports.Icon=H;exports.Image=uo;exports.Input=re;exports.InputGroup=zo;exports.Label=Be;exports.LineChart=xa;exports.Link=mo;exports.ListItem=Do;exports.Loader=Ie;exports.Logo=fo;exports.MenuItem=To;exports.Modal=Et;exports.ModalBody=Mo;exports.ModalFooter=Ao;exports.ModalHeader=Fo;exports.Notification=Lo;exports.Option=va;exports.Progress=po;exports.ProgressBar=go;exports.Radio=vo;exports.ReusableForm=rr;exports.ReusableFormModal=or;exports.Search=Io;exports.Select=he;exports.Sidebar=lr;exports.Slider=Nt;exports.Spinner=Ct;exports.Stepper=_o;exports.StepperItem=Ro;exports.Switch=ho;exports.Tab=Uo;exports.TabPanel=qo;exports.Text=yo;exports.Textarea=Bt;exports.Timeline=sr;exports.TimelineItem=ir;exports.Toast=Oo;exports.Tooltip=ya;exports.Typography=ht;exports.cn=S;exports.default=sx;exports.toast=se;exports.tooltip=ta;exports.useToaster=jo;
|
|
605
|
+
`}},i=()=>{document.body.appendChild(o),s(),l(),setTimeout(()=>{o.style.opacity="1"},10),window.addEventListener("scroll",l,!0),window.addEventListener("resize",l)},c=()=>{o.style.opacity="0",window.removeEventListener("scroll",l,!0),window.removeEventListener("resize",l),setTimeout(()=>{o.parentNode&&document.body.removeChild(o)},200)};t.addEventListener("mouseenter",i),t.addEventListener("mouseleave",c),t.addEventListener("click",c),t._tooltipShowFn=i,t._tooltipHideFn=c,t._tooltipRepositionFn=l},updated(t,n){if(t._tooltipEl){const a=t._tooltipEl.firstChild;a&&a.nodeType===Node.TEXT_NODE&&(a.textContent=n.value||"")}},unmounted(t){t._tooltipEl&&t._tooltipEl.parentNode&&document.body.removeChild(t._tooltipEl),t._tooltipShowFn&&t.removeEventListener("mouseenter",t._tooltipShowFn),t._tooltipHideFn&&(t.removeEventListener("mouseleave",t._tooltipHideFn),t.removeEventListener("click",t._tooltipHideFn)),t._tooltipRepositionFn&&(window.removeEventListener("scroll",t._tooltipRepositionFn,!0),window.removeEventListener("resize",t._tooltipRepositionFn))}};function Se(t){if(typeof t=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(t))return t;if(t instanceof Date){const n=t.getFullYear(),a=String(t.getMonth()+1).padStart(2,"0"),o=String(t.getDate()).padStart(2,"0");return`${n}-${a}-${o}`}return null}function Hy(t){if(!t)return null;if(/^\d{4}-\d{2}-\d{2}$/.test(t)){const[n,a,o]=t.split("-").map(Number);return new Date(n,a-1,o)}return new Date(t)}function ut(){return Se(new Date)}function fr(t){const n=t.getDay(),a=new Date(t);a.setDate(t.getDate()-n);const o=new Date(a);return o.setDate(a.getDate()+6),{startDate:a,endDate:o}}function Wy(t){const{startDate:n}=fr(t),a=[];for(let o=0;o<7;o++){const r=new Date(n);r.setDate(n.getDate()+o),a.push(r)}return a}function Yy(t){const n=t.getFullYear(),a=t.getMonth(),o=new Date(n,a,1),r=new Date(n,a+1,0),l=o.getDay(),s=r.getDate(),i=[],c=ut(),f=new Date(n,a,0).getDate();for(let k=l-1;k>=0;k--){const $=f-k,B=new Date(n,a-1,$),V=Se(B);i.push({dayNumber:$,date:V,dateObj:B,isCurrentMonth:!1,isToday:V===c})}for(let k=1;k<=s;k++){const $=new Date(n,a,k),B=Se($);i.push({dayNumber:k,date:B,dateObj:$,isCurrentMonth:!0,isToday:B===c})}const x=42-i.length;for(let k=1;k<=x;k++){const $=new Date(n,a+1,k),B=Se($);i.push({dayNumber:k,date:B,dateObj:$,isCurrentMonth:!1,isToday:B===c})}return i}function an(t,n="full"){if(!t)return"";const a=Hy(t);if(!a)return String(t);const o={full:{weekday:"long",year:"numeric",month:"long",day:"numeric"},short:{month:"short",day:"numeric",year:"numeric"},time:{hour:"2-digit",minute:"2-digit"}};return a.toLocaleDateString("en-US",o[n]||o.full)}function Gy(t=0,n=23,a=60){const o=[];for(let r=t;r<=n;r++)for(let l=0;l<60;l+=a){const s=String(r).padStart(2,"0"),i=String(l).padStart(2,"0"),c=`${s}:${i}`,f=r===0?12:r>12?r-12:r,x=r<12?"AM":"PM",k=`${f}:${i} ${x}`;o.push({time:c,display:k})}return o}function nn(t,n){const a=Se(t),o=Se(n);return a===o}function Pt(t,n="long"){return t.toLocaleDateString("en-US",{month:n})}function on(t){return t.getFullYear()}const Ky={name:"EventsCalendar",props:{events:{type:Array,default:()=>[]},size:{type:String,default:"default"}},emits:["select-date","select-event"],data(){return{currentDate:new Date,selectedDate:null,viewMode:"month",selectedEvent:null,weekDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekDaysShort:["S","M","T","W","T","F","S"],timeSlots:Gy(0,23,60)}},computed:{displayTitle(){if(this.viewMode==="day")return an(this.currentDate,"full");if(this.viewMode==="week"){const{startDate:t,endDate:n}=fr(this.currentDate),a=Pt(t,"short"),o=Pt(n,"short"),r=on(this.currentDate);return t.getMonth()===n.getMonth()?`${a} ${t.getDate()} - ${n.getDate()}, ${r}`:`${a} ${t.getDate()} - ${o} ${n.getDate()}, ${r}`}else return`${Pt(this.currentDate)} ${on(this.currentDate)}`},calendarDays(){return Yy(this.currentDate).map(n=>({...n,events:this.getEventsForDate(n.date)}))},weekViewDays(){return Wy(this.currentDate).map(n=>{const a=Se(n);return{dateObj:n,date:a,dayNumber:n.getDate(),dayName:this.weekDays[n.getDay()],isToday:nn(n,ut()),events:this.getEventsForDate(a)}})},dayViewDate(){const t=Se(this.currentDate);return{dateObj:this.currentDate,date:t,dayNumber:this.currentDate.getDate(),dayName:this.weekDays[this.currentDate.getDay()],isToday:nn(this.currentDate,ut()),events:this.getEventsForDate(t)}}},methods:{formatEventDate:an,getEventsForDate(t){return this.events.filter(n=>n.date===t)},previousPeriod(){this.viewMode==="day"?this.currentDate=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth(),this.currentDate.getDate()-1):this.viewMode==="week"?this.currentDate=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth(),this.currentDate.getDate()-7):this.currentDate=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth()-1,1)},nextPeriod(){this.viewMode==="day"?this.currentDate=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth(),this.currentDate.getDate()+1):this.viewMode==="week"?this.currentDate=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth(),this.currentDate.getDate()+7):this.currentDate=new Date(this.currentDate.getFullYear(),this.currentDate.getMonth()+1,1)},goToToday(){this.currentDate=new Date,this.selectedDate=ut(),this.$emit("select-date",{date:this.selectedDate,events:this.getEventsForDate(this.selectedDate)})},selectDay(t){this.selectedDate=t.date,this.$emit("select-date",{date:t.date,events:t.events})},selectEvent(t,n){this.selectedEvent=t,this.selectedDate=n.date,this.$emit("select-event",t)},getEventColorClass(t){return{blue:"bg-blue-500 border-blue-600",red:"bg-red-500 border-red-600",green:"bg-green-500 border-green-600",purple:"bg-purple-500 border-purple-600",orange:"bg-orange-500 border-orange-600"}[t]||"bg-gray-500 border-gray-600"},getEventsAtTime(t,n){return t.filter(o=>{if(!o.time||!/^\d{1,2}:\d{2}/.test(o.time))return!1;const r=o.time.split(":")[0].padStart(2,"0");return n.time.startsWith(r)})},getAllDayEvents(t){return t.filter(n=>n.time?!/^\d{1,2}:\d{2}/.test(n.time):!0)}}},Xy={class:"flex gap-0 h-full bg-white rounded-lg shadow-sm border border-gray-200"},Qy={class:"flex-1 flex flex-col"},Jy={class:"flex items-center justify-between px-6 py-4 border-b border-gray-200"},Zy={class:"flex items-center gap-3"},eb={class:"flex items-center gap-1"},tb={class:"text-xl font-semibold text-gray-900 ml-2"},ab={class:"flex items-center gap-2"},nb={class:"flex-1 flex flex-col p-4"},ob={key:0,class:"flex-1 flex flex-col"},rb={class:"grid grid-cols-7 border-b border-gray-200"},lb={class:"grid grid-cols-7 flex-1 border-l border-t border-gray-200"},sb=["onClick"],ib={class:"flex items-center justify-between mb-1 px-1"},cb={class:"space-y-1"},db=["onClick"],ub={key:0,class:"text-xs px-2 py-1 text-gray-600 font-medium cursor-pointer hover:text-gray-900"},mb={key:1,class:"flex-1 flex flex-col overflow-hidden"},fb={class:"grid grid-cols-8 border-b border-gray-200 bg-gray-50"},pb={class:"text-xs font-semibold text-gray-600 uppercase"},gb={class:"grid grid-cols-8 border-b border-gray-200 bg-gray-50 min-h-[60px]"},vb=["onClick"],hb={class:"font-semibold truncate"},yb={class:"flex-1 overflow-y-auto"},bb={class:"grid grid-cols-8"},xb={class:"border-r border-gray-200 bg-gray-50"},kb=["onClick"],wb={class:"font-semibold truncate"},Cb={class:"text-xs opacity-90 truncate"},Bb={key:2,class:"flex-1 flex flex-col overflow-hidden"},Vb={class:"border-b border-gray-200 bg-gray-50 p-4"},Eb={class:"text-center"},Nb={class:"text-sm font-semibold text-gray-600 uppercase"},Sb={key:0,class:"border-b border-gray-200 bg-gray-50 p-4"},$b={class:"space-y-2"},zb=["onClick"],Db={class:"font-semibold"},Tb={key:0,class:"text-xs opacity-80 mt-1"},Fb={class:"flex-1 overflow-y-auto"},Mb={class:"flex"},Ab={class:"w-24 border-r border-gray-200 bg-gray-50 flex-shrink-0"},Lb={class:"flex-1 relative"},Pb=["onClick"],jb={class:"font-semibold"},Ob={class:"text-xs opacity-90 mt-1"},Ib={key:0,class:"text-xs opacity-80 mt-1 line-clamp-2"},_b={key:0,class:"w-80 border-l border-gray-200 bg-white flex flex-col"},Rb={class:"px-6 py-4 border-b border-gray-200 flex items-start justify-between"},Ub={class:"flex-1 overflow-y-auto px-6 py-4 space-y-4"},qb={class:"text-xl font-bold text-gray-900"},Hb={key:0},Wb={key:0,class:"w-4 h-4 mr-1.5",fill:"currentColor",viewBox:"0 0 20 20"},Yb={key:1,class:"w-4 h-4 mr-1.5",fill:"currentColor",viewBox:"0 0 20 20"},Gb={class:"space-y-3 pt-2"},Kb={class:"flex items-start gap-3"},Xb={class:"text-sm font-medium text-gray-900"},Qb={class:"flex items-start gap-3"},Jb={class:"text-sm text-gray-600"},Zb={key:1,class:"pt-4 border-t border-gray-200"},ex={class:"text-sm text-gray-600 leading-relaxed"},tx={key:2,class:"pt-4 border-t border-gray-200 space-y-3"},ax={key:0,class:"text-sm"},nx={class:"text-gray-600 mt-1"},ox={key:1,class:"text-sm"},rx={class:"text-gray-600 mt-1"};function lx(t,n,a,o,r,l){return e.openBlock(),e.createElementBlock("div",Xy,[e.createElementVNode("div",Qy,[e.createElementVNode("div",Jy,[e.createElementVNode("div",Zy,[e.createElementVNode("button",{class:"px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded hover:bg-gray-50 transition-colors",onClick:n[0]||(n[0]=(...s)=>l.goToToday&&l.goToToday(...s))}," Today "),e.createElementVNode("div",eb,[e.createElementVNode("button",{class:"p-2 text-gray-600 hover:bg-gray-100 rounded transition-colors",onClick:n[1]||(n[1]=(...s)=>l.previousPeriod&&l.previousPeriod(...s))},[...n[7]||(n[7]=[e.createElementVNode("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1)])]),e.createElementVNode("button",{class:"p-2 text-gray-600 hover:bg-gray-100 rounded transition-colors",onClick:n[2]||(n[2]=(...s)=>l.nextPeriod&&l.nextPeriod(...s))},[...n[8]||(n[8]=[e.createElementVNode("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})],-1)])])]),e.createElementVNode("h2",tb,e.toDisplayString(l.displayTitle),1)]),e.createElementVNode("div",ab,[e.createElementVNode("button",{class:e.normalizeClass(["px-3 py-2 text-sm font-medium rounded transition-colors",r.viewMode==="month"?"bg-blue-100 text-blue-700":"text-gray-700 hover:bg-gray-100"]),onClick:n[3]||(n[3]=s=>r.viewMode="month")}," Month ",2),e.createElementVNode("button",{class:e.normalizeClass(["px-3 py-2 text-sm font-medium rounded transition-colors",r.viewMode==="week"?"bg-blue-100 text-blue-700":"text-gray-700 hover:bg-gray-100"]),onClick:n[4]||(n[4]=s=>r.viewMode="week")}," Week ",2),e.createElementVNode("button",{class:e.normalizeClass(["px-3 py-2 text-sm font-medium rounded transition-colors",r.viewMode==="day"?"bg-blue-100 text-blue-700":"text-gray-700 hover:bg-gray-100"]),onClick:n[5]||(n[5]=s=>r.viewMode="day")}," Day ",2)])]),e.createElementVNode("div",nb,[r.viewMode==="month"?(e.openBlock(),e.createElementBlock("div",ob,[e.createElementVNode("div",rb,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.weekDays,s=>(e.openBlock(),e.createElementBlock("div",{key:s,class:"text-center text-xs font-semibold text-gray-600 py-3 uppercase tracking-wider"},e.toDisplayString(s),1))),128))]),e.createElementVNode("div",lb,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.calendarDays,(s,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:e.normalizeClass(["border-r border-b border-gray-200 p-1 min-h-[120px] relative cursor-pointer hover:bg-gray-50 transition-colors",[s.isCurrentMonth?"bg-white":"bg-gray-50",s.isToday?"bg-blue-50":"",r.selectedDate===s.date?"ring-2 ring-blue-500 ring-inset":""]]),onClick:c=>l.selectDay(s)},[e.createElementVNode("div",ib,[e.createElementVNode("span",{class:e.normalizeClass(["text-sm font-medium",[s.isCurrentMonth?"text-gray-900":"text-gray-400",s.isToday?"bg-blue-600 text-white w-6 h-6 flex items-center justify-center rounded-full text-xs":""]])},e.toDisplayString(s.dayNumber),3)]),e.createElementVNode("div",cb,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.events.slice(0,3),(c,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:e.normalizeClass(["text-xs px-2 py-1 rounded cursor-pointer truncate border-l-2 text-white font-medium hover:opacity-90 transition-opacity",l.getEventColorClass(c.color)]),onClick:e.withModifiers(x=>l.selectEvent(c,s),["stop"])},e.toDisplayString(c.title),11,db))),128)),s.events.length>3?(e.openBlock(),e.createElementBlock("div",ub," +"+e.toDisplayString(s.events.length-3)+" more ",1)):e.createCommentVNode("",!0)])],10,sb))),128))])])):r.viewMode==="week"?(e.openBlock(),e.createElementBlock("div",mb,[e.createElementVNode("div",fb,[n[9]||(n[9]=e.createElementVNode("div",{class:"border-r border-gray-200 p-2"},null,-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.weekViewDays,s=>(e.openBlock(),e.createElementBlock("div",{key:s.date,class:e.normalizeClass(["text-center p-2 border-r border-gray-200",s.isToday?"bg-blue-50":""])},[e.createElementVNode("div",pb,e.toDisplayString(s.dayName),1),e.createElementVNode("div",{class:e.normalizeClass(["text-lg font-bold mt-1",[s.isToday?"bg-blue-600 text-white w-8 h-8 flex items-center justify-center rounded-full mx-auto":"text-gray-900"]])},e.toDisplayString(s.dayNumber),3)],2))),128))]),e.createElementVNode("div",gb,[n[10]||(n[10]=e.createElementVNode("div",{class:"border-r border-gray-200 px-2 py-1 text-xs text-gray-600 text-right flex items-center justify-end"}," All Day ",-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.weekViewDays,s=>(e.openBlock(),e.createElementBlock("div",{key:"allday-"+s.date,class:e.normalizeClass(["border-r border-gray-200 p-1 space-y-1",s.isToday?"bg-blue-50 bg-opacity-30":""])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.getAllDayEvents(s.events),i=>(e.openBlock(),e.createElementBlock("div",{key:i.id,class:e.normalizeClass(["rounded border-l-2 p-1 text-xs font-medium text-white cursor-pointer hover:opacity-90 transition-opacity",l.getEventColorClass(i.color)]),onClick:c=>l.selectEvent(i,s)},[e.createElementVNode("div",hb,e.toDisplayString(i.title),1)],10,vb))),128))],2))),128))]),e.createElementVNode("div",yb,[e.createElementVNode("div",bb,[e.createElementVNode("div",xb,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.timeSlots,s=>(e.openBlock(),e.createElementBlock("div",{key:s.time,class:"h-16 border-b border-gray-200 px-2 py-1 text-xs text-gray-600 text-right"},e.toDisplayString(s.display),1))),128))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.weekViewDays,s=>(e.openBlock(),e.createElementBlock("div",{key:s.date,class:"border-r border-gray-200 relative"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.timeSlots,i=>(e.openBlock(),e.createElementBlock("div",{key:i.time,class:e.normalizeClass(["h-16 border-b border-gray-200 hover:bg-gray-50 transition-colors cursor-pointer relative",s.isToday?"bg-blue-50 bg-opacity-30":""])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.getEventsAtTime(s.events,i),c=>(e.openBlock(),e.createElementBlock("div",{key:c.id,class:e.normalizeClass(["absolute inset-x-1 top-1 bottom-1 rounded border-l-2 p-1 text-xs font-medium text-white cursor-pointer hover:opacity-90 transition-opacity overflow-hidden",l.getEventColorClass(c.color)]),onClick:f=>l.selectEvent(c,s)},[e.createElementVNode("div",wb,e.toDisplayString(c.title),1),e.createElementVNode("div",Cb,e.toDisplayString(c.time),1)],10,kb))),128))],2))),128))]))),128))])])])):r.viewMode==="day"?(e.openBlock(),e.createElementBlock("div",Bb,[e.createElementVNode("div",Vb,[e.createElementVNode("div",Eb,[e.createElementVNode("div",Nb,e.toDisplayString(l.dayViewDate.dayName),1),e.createElementVNode("div",{class:e.normalizeClass(["text-3xl font-bold mt-2",[l.dayViewDate.isToday?"text-blue-600":"text-gray-900"]])},e.toDisplayString(l.dayViewDate.dayNumber),3)])]),l.getAllDayEvents(l.dayViewDate.events).length>0?(e.openBlock(),e.createElementBlock("div",Sb,[n[11]||(n[11]=e.createElementVNode("h4",{class:"text-xs font-semibold text-gray-600 uppercase tracking-wide mb-2"}," All Day Events ",-1)),e.createElementVNode("div",$b,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.getAllDayEvents(l.dayViewDate.events),s=>(e.openBlock(),e.createElementBlock("div",{key:s.id,class:e.normalizeClass(["rounded border-l-4 p-3 text-sm font-medium text-white cursor-pointer hover:opacity-90 transition-opacity shadow-sm",l.getEventColorClass(s.color)]),onClick:i=>l.selectEvent(s,l.dayViewDate)},[e.createElementVNode("div",Db,e.toDisplayString(s.title),1),s.description?(e.openBlock(),e.createElementBlock("div",Tb,e.toDisplayString(s.description),1)):e.createCommentVNode("",!0)],10,zb))),128))])])):e.createCommentVNode("",!0),e.createElementVNode("div",Fb,[e.createElementVNode("div",Mb,[e.createElementVNode("div",Ab,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.timeSlots,s=>(e.openBlock(),e.createElementBlock("div",{key:s.time,class:"h-16 border-b border-gray-200 px-2 py-1 text-xs text-gray-600 text-right"},e.toDisplayString(s.display),1))),128))]),e.createElementVNode("div",Lb,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.timeSlots,s=>(e.openBlock(),e.createElementBlock("div",{key:s.time,class:e.normalizeClass(["h-16 border-b border-gray-200 hover:bg-gray-50 transition-colors cursor-pointer relative",l.dayViewDate.isToday?"bg-blue-50 bg-opacity-30":""])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.getEventsAtTime(l.dayViewDate.events,s),i=>(e.openBlock(),e.createElementBlock("div",{key:i.id,class:e.normalizeClass(["absolute inset-x-2 top-1 bottom-1 rounded border-l-4 p-2 text-sm font-medium text-white cursor-pointer hover:opacity-90 transition-opacity shadow-sm",l.getEventColorClass(i.color)]),onClick:c=>l.selectEvent(i,l.dayViewDate)},[e.createElementVNode("div",jb,e.toDisplayString(i.title),1),e.createElementVNode("div",Ob,e.toDisplayString(i.time),1),i.description?(e.openBlock(),e.createElementBlock("div",Ib,e.toDisplayString(i.description),1)):e.createCommentVNode("",!0)],10,Pb))),128))],2))),128))])])])])):e.createCommentVNode("",!0)])]),e.renderSlot(t.$slots,"sidebar",{selectedEvent:r.selectedEvent,closeEvent:()=>r.selectedEvent=null},()=>[e.createVNode(e.Transition,{"enter-active-class":"transition-all duration-200","leave-active-class":"transition-all duration-200","enter-from-class":"opacity-0 translate-x-4","leave-to-class":"opacity-0 translate-x-4"},{default:e.withCtx(()=>[r.selectedEvent?(e.openBlock(),e.createElementBlock("div",_b,[e.createElementVNode("div",Rb,[n[13]||(n[13]=e.createElementVNode("h3",{class:"text-lg font-semibold text-gray-900"}," Event Details ",-1)),e.createElementVNode("button",{class:"text-gray-400 hover:text-gray-600 transition-colors",onClick:n[6]||(n[6]=s=>r.selectedEvent=null)},[...n[12]||(n[12]=[e.createElementVNode("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)])])]),e.createElementVNode("div",Ub,[e.createElementVNode("div",{class:e.normalizeClass(["h-1 w-full rounded-full",l.getEventColorClass(r.selectedEvent.color)])},null,2),e.createElementVNode("div",null,[e.createElementVNode("h4",qb,e.toDisplayString(r.selectedEvent.title),1)]),r.selectedEvent.status?(e.openBlock(),e.createElementBlock("div",Hb,[e.createElementVNode("span",{class:e.normalizeClass(["inline-flex items-center px-3 py-1.5 rounded-full text-sm font-medium",r.selectedEvent.status==="complied"?"bg-green-100 text-green-800 border border-green-200":"bg-orange-100 text-orange-800 border border-orange-200"])},[r.selectedEvent.status==="complied"?(e.openBlock(),e.createElementBlock("svg",Wb,[...n[14]||(n[14]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z","clip-rule":"evenodd"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",Yb,[...n[15]||(n[15]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-12a1 1 0 10-2 0v4a1 1 0 00.293.707l2.828 2.829a1 1 0 101.415-1.415L11 9.586V6z","clip-rule":"evenodd"},null,-1)])])),e.createTextVNode(" "+e.toDisplayString(r.selectedEvent.status==="complied"?"Complied":"Pending"),1)],2)])):e.createCommentVNode("",!0),e.createElementVNode("div",Gb,[e.createElementVNode("div",Kb,[n[16]||(n[16]=e.createElementVNode("svg",{class:"w-5 h-5 text-gray-400 mt-0.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})],-1)),e.createElementVNode("div",null,[e.createElementVNode("p",Xb,e.toDisplayString(l.formatEventDate(r.selectedEvent.date,"full")),1)])]),e.createElementVNode("div",Qb,[n[17]||(n[17]=e.createElementVNode("svg",{class:"w-5 h-5 text-gray-400 mt-0.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)),e.createElementVNode("p",Jb,e.toDisplayString(r.selectedEvent.time),1)])]),r.selectedEvent.description?(e.openBlock(),e.createElementBlock("div",Zb,[n[18]||(n[18]=e.createElementVNode("h5",{class:"text-sm font-semibold text-gray-900 mb-2"}," Description ",-1)),e.createElementVNode("p",ex,e.toDisplayString(r.selectedEvent.description),1)])):e.createCommentVNode("",!0),r.selectedEvent.compliance?(e.openBlock(),e.createElementBlock("div",tx,[n[21]||(n[21]=e.createElementVNode("h5",{class:"text-sm font-semibold text-gray-900 mb-2"}," Compliance Details ",-1)),r.selectedEvent.compliance.remarks?(e.openBlock(),e.createElementBlock("div",ax,[n[19]||(n[19]=e.createElementVNode("span",{class:"font-medium text-gray-700"},"Remarks:",-1)),e.createElementVNode("p",nx,e.toDisplayString(r.selectedEvent.compliance.remarks),1)])):e.createCommentVNode("",!0),r.selectedEvent.compliance.compliance_documents?.length?(e.openBlock(),e.createElementBlock("div",ox,[n[20]||(n[20]=e.createElementVNode("span",{class:"font-medium text-gray-700"},"Documents:",-1)),e.createElementVNode("p",rx,e.toDisplayString(r.selectedEvent.compliance.compliance_documents.length)+" document(s) attached ",1)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),n[22]||(n[22]=e.createElementVNode("div",{class:"px-6 py-4 border-t border-gray-200 space-y-2"},[e.createElementVNode("button",{class:"w-full px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors font-medium text-sm"}," View Full Details ")],-1))])):e.createCommentVNode("",!0)]),_:1})],!0)])}const pr=ot(Ky,[["render",lx],["__scopeId","data-v-8a8edc30"]]),rn={Avatar:io,Badge:ga,Button:oe,Checkbox:Qe,Divider:co,Icon:H,Image:uo,Input:re,Label:Be,Link:mo,Logo:fo,Option:va,CircularProgress:ha,Progress:po,ProgressBar:go,Radio:vo,Select:he,Spinner:Ct,Switch:ho,Text:yo,Textarea:Bt,Tooltip:ya,Typography:ht,Loader:Ie,Alert:bo,Breadcrumb:xo,ButtonGroup:ko,Card:wo,CardHeader:Co,CardBody:Bo,CardFooter:Vo,CardContent:Eo,CardTitle:No,DatePicker:nt,Dropdown:So,DropdownItem:$o,FileUpload:Je,FormField:Vt,InputGroup:zo,ListItem:Do,MenuItem:To,Modal:Et,ModalHeader:Fo,ModalBody:Mo,ModalFooter:Ao,Notification:Lo,Toast:Oo,Search:Io,Slider:Nt,Stepper:_o,StepperItem:Ro,Tab:Uo,TabPanel:qo,BarChart:ba,LineChart:xa,GraphFilters:Ko,Accordion:Ho,AccordionItem:Wo,Graph:Go,Calendar:Yo,EventsCalendar:pr,DataTable:Xo,DataTableHeader:ka,DataTableRow:Qo,DataTableCell:Jo,DataTablePagination:wa,DataTableFilters:Zo,DataTableToolBar:er,Footer:tr,Header:ar,ReusableFormModal:or,ReusableForm:rr,Sidebar:lr,Timeline:sr,TimelineItem:ir,AuthLayout:cr,DefaultLayout:dr,ErrorLayout:ur,DashboardWidget:mr},sx={install(t,n={}){const{prefix:a=""}=n;Object.keys(rn).forEach(o=>{const r=a?`${a}${o}`:o;t.component(r,rn[o])}),t.config.globalProperties.$toast=se,t.provide("toast",se),t.config.globalProperties.$tooltip=ta,t.provide("tooltip",ta)}};exports.Accordion=Ho;exports.AccordionItem=Wo;exports.Alert=bo;exports.AuthLayout=cr;exports.Avatar=io;exports.Badge=ga;exports.BarChart=ba;exports.Breadcrumb=xo;exports.Button=oe;exports.ButtonGroup=ko;exports.Calendar=Yo;exports.Card=wo;exports.CardBody=Bo;exports.CardContent=Eo;exports.CardFooter=Vo;exports.CardHeader=Co;exports.CardTitle=No;exports.Checkbox=Qe;exports.CircularProgress=ha;exports.DashboardWidget=mr;exports.DataTable=Xo;exports.DataTableCell=Jo;exports.DataTableFilters=Zo;exports.DataTableHeader=ka;exports.DataTablePagination=wa;exports.DataTableRow=Qo;exports.DataTableToolBar=er;exports.DatePicker=nt;exports.DefaultLayout=dr;exports.Divider=co;exports.Dropdown=So;exports.DropdownItem=$o;exports.ErrorLayout=ur;exports.EventsCalendar=pr;exports.FileUpload=Je;exports.Footer=tr;exports.FormField=Vt;exports.Graph=Go;exports.GraphFilters=Ko;exports.Header=ar;exports.Icon=H;exports.Image=uo;exports.Input=re;exports.InputGroup=zo;exports.Label=Be;exports.LineChart=xa;exports.Link=mo;exports.ListItem=Do;exports.Loader=Ie;exports.Logo=fo;exports.MenuItem=To;exports.Modal=Et;exports.ModalBody=Mo;exports.ModalFooter=Ao;exports.ModalHeader=Fo;exports.Notification=Lo;exports.Option=va;exports.Progress=po;exports.ProgressBar=go;exports.Radio=vo;exports.ReusableForm=rr;exports.ReusableFormModal=or;exports.Search=Io;exports.Select=he;exports.Sidebar=lr;exports.Slider=Nt;exports.Spinner=Ct;exports.Stepper=_o;exports.StepperItem=Ro;exports.Switch=ho;exports.Tab=Uo;exports.TabPanel=qo;exports.Text=yo;exports.Textarea=Bt;exports.Timeline=sr;exports.TimelineItem=ir;exports.Toast=Oo;exports.Tooltip=ya;exports.Typography=ht;exports.cn=S;exports.default=sx;exports.toast=se;exports.tooltip=ta;exports.useToaster=jo;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventsCalendar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/EventsCalendar.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"EventsCalendar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/EventsCalendar.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAyjBO,8BAA8B"}
|