@opengis/widgets 0.0.1
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/README.md +285 -0
- package/package.json +24 -0
- package/vite.svg +1 -0
- package/widget.css +1 -0
- package/widget.js +1901 -0
- package/widget.umd.cjs +136 -0
package/widget.umd.cjs
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
(function(k,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(k=typeof globalThis<"u"?globalThis:k||self,e(k.WidgetLib={},k.Vue))})(this,function(k,e){"use strict";/**
|
|
2
|
+
* @license lucide-vue-next v0.535.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const C=c=>c.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),j=c=>c.replace(/^([A-Z])|[\s-_]+(\w)/g,(s,n,o)=>o?o.toUpperCase():n.toLowerCase()),F=c=>{const s=j(c);return s.charAt(0).toUpperCase()+s.slice(1)},A=(...c)=>c.filter((s,n,o)=>!!s&&s.trim()!==""&&o.indexOf(s)===n).join(" ").trim();/**
|
|
7
|
+
* @license lucide-vue-next v0.535.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/var N={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/**
|
|
12
|
+
* @license lucide-vue-next v0.535.0 - ISC
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the ISC license.
|
|
15
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/const H=({size:c,strokeWidth:s=2,absoluteStrokeWidth:n,color:o,iconNode:t,name:a,class:l,...i},{slots:r})=>e.h("svg",{...N,width:c||N.width,height:c||N.height,stroke:o||N.stroke,"stroke-width":n?Number(s)*24/Number(c):s,class:A("lucide",...a?[`lucide-${C(F(a))}-icon`,`lucide-${C(a)}`]:["lucide-icon"]),...i},[...t.map(f=>e.h(...f)),...r.default?[r.default()]:[]]);/**
|
|
17
|
+
* @license lucide-vue-next v0.535.0 - ISC
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the ISC license.
|
|
20
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/const y=(c,s)=>(n,{slots:o})=>e.h(H,{...n,iconNode:s,name:c},o);/**
|
|
22
|
+
* @license lucide-vue-next v0.535.0 - ISC
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the ISC license.
|
|
25
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/const R=y("archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);/**
|
|
27
|
+
* @license lucide-vue-next v0.535.0 - ISC
|
|
28
|
+
*
|
|
29
|
+
* This source code is licensed under the ISC license.
|
|
30
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
+
*/const U=y("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
|
|
32
|
+
* @license lucide-vue-next v0.535.0 - ISC
|
|
33
|
+
*
|
|
34
|
+
* This source code is licensed under the ISC license.
|
|
35
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
+
*/const O=y("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
|
37
|
+
* @license lucide-vue-next v0.535.0 - ISC
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the ISC license.
|
|
40
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/const B=y("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);/**
|
|
42
|
+
* @license lucide-vue-next v0.535.0 - ISC
|
|
43
|
+
*
|
|
44
|
+
* This source code is licensed under the ISC license.
|
|
45
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
+
*/const P=y("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
|
|
47
|
+
* @license lucide-vue-next v0.535.0 - ISC
|
|
48
|
+
*
|
|
49
|
+
* This source code is licensed under the ISC license.
|
|
50
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
51
|
+
*/const q=y("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
52
|
+
* @license lucide-vue-next v0.535.0 - ISC
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the ISC license.
|
|
55
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
+
*/const x=y("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
|
57
|
+
* @license lucide-vue-next v0.535.0 - ISC
|
|
58
|
+
*
|
|
59
|
+
* This source code is licensed under the ISC license.
|
|
60
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
+
*/const W=y("file",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);/**
|
|
62
|
+
* @license lucide-vue-next v0.535.0 - ISC
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the ISC license.
|
|
65
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
+
*/const G=y("grid-3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);/**
|
|
67
|
+
* @license lucide-vue-next v0.535.0 - ISC
|
|
68
|
+
*
|
|
69
|
+
* This source code is licensed under the ISC license.
|
|
70
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
+
*/const K=y("heart",[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]]);/**
|
|
72
|
+
* @license lucide-vue-next v0.535.0 - ISC
|
|
73
|
+
*
|
|
74
|
+
* This source code is licensed under the ISC license.
|
|
75
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
+
*/const Z=y("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
|
|
77
|
+
* @license lucide-vue-next v0.535.0 - ISC
|
|
78
|
+
*
|
|
79
|
+
* This source code is licensed under the ISC license.
|
|
80
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
+
*/const J=y("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
|
|
82
|
+
* @license lucide-vue-next v0.535.0 - ISC
|
|
83
|
+
*
|
|
84
|
+
* This source code is licensed under the ISC license.
|
|
85
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
+
*/const X=y("list",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);/**
|
|
87
|
+
* @license lucide-vue-next v0.535.0 - ISC
|
|
88
|
+
*
|
|
89
|
+
* This source code is licensed under the ISC license.
|
|
90
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
+
*/const Q=y("reply",[["path",{d:"M20 18v-2a4 4 0 0 0-4-4H4",key:"5vmcpk"}],["path",{d:"m9 17-5-5 5-5",key:"nvlc11"}]]);/**
|
|
92
|
+
* @license lucide-vue-next v0.535.0 - ISC
|
|
93
|
+
*
|
|
94
|
+
* This source code is licensed under the ISC license.
|
|
95
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
+
*/const D=y("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
|
97
|
+
* @license lucide-vue-next v0.535.0 - ISC
|
|
98
|
+
*
|
|
99
|
+
* This source code is licensed under the ISC license.
|
|
100
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
+
*/const Y=y("share",[["path",{d:"M12 2v13",key:"1km8f5"}],["path",{d:"m16 6-4-4-4 4",key:"13yo43"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}]]);/**
|
|
102
|
+
* @license lucide-vue-next v0.535.0 - ISC
|
|
103
|
+
*
|
|
104
|
+
* This source code is licensed under the ISC license.
|
|
105
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
+
*/const v=y("sheet",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]]);/**
|
|
107
|
+
* @license lucide-vue-next v0.535.0 - ISC
|
|
108
|
+
*
|
|
109
|
+
* This source code is licensed under the ISC license.
|
|
110
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
+
*/const ee=y("square-pen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);/**
|
|
112
|
+
* @license lucide-vue-next v0.535.0 - ISC
|
|
113
|
+
*
|
|
114
|
+
* This source code is licensed under the ISC license.
|
|
115
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
+
*/const V=y("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);/**
|
|
117
|
+
* @license lucide-vue-next v0.535.0 - ISC
|
|
118
|
+
*
|
|
119
|
+
* This source code is licensed under the ISC license.
|
|
120
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
+
*/const te=y("user-check",[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]);/**
|
|
122
|
+
* @license lucide-vue-next v0.535.0 - ISC
|
|
123
|
+
*
|
|
124
|
+
* This source code is licensed under the ISC license.
|
|
125
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
+
*/const $=y("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
|
|
127
|
+
* @license lucide-vue-next v0.535.0 - ISC
|
|
128
|
+
*
|
|
129
|
+
* This source code is licensed under the ISC license.
|
|
130
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
+
*/const oe=y("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);/**
|
|
132
|
+
* @license lucide-vue-next v0.535.0 - ISC
|
|
133
|
+
*
|
|
134
|
+
* This source code is licensed under the ISC license.
|
|
135
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
+
*/const E=y("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),ne={class:"border-t pt-3 mt-4"},se={class:"flex gap-2"},ae={class:"relative flex items-center justify-center shrink-0 overflow-hidden rounded-full h-5 w-5 bg-gray-200"},re={class:"flex-1 space-y-2"},le={class:"flex justify-between items-center"},ie={class:"flex gap-2"},ce=["disabled"],T=e.defineComponent({__name:"CommentInputZone",props:{isReply:{type:Boolean,required:!1,default:!1},isReplyModifiers:{}},emits:e.mergeModels(["sendComment"],["update:isReply"]),setup(c,{emit:s}){const n=e.useModel(c,"isReply"),o=e.ref(""),t=s,a=()=>{o.value.trim()&&(t("sendComment",o.value),o.value="")},l=i=>{(i.ctrlKey||i.metaKey)&&i.key==="Enter"&&(i.preventDefault(),a())};return(i,r)=>(e.openBlock(),e.createElementBlock("div",ne,[e.createElementVNode("div",se,[e.createElementVNode("span",ae,[e.createVNode(e.unref($),{class:"h-3 w-3 text-gray-500"})]),e.createElementVNode("div",re,[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":r[0]||(r[0]=f=>o.value=f),onKeydown:l,placeholder:"Add a comment...",class:"w-full min-h-[60px] p-2 border border-gray-200 rounded text-xs resize-none focus:outline-none focus:ring-1 focus:ring-blue-500 focus:border-transparent"},null,544),[[e.vModelText,o.value]]),e.createElementVNode("div",le,[r[4]||(r[4]=e.createElementVNode("span",{class:"text-xs text-gray-500 hidden sm:inline"},"Cmd+Enter to send",-1)),e.createElementVNode("div",ie,[n.value?(e.openBlock(),e.createElementBlock("button",{key:0,class:"inline-flex items-center justify-center gap-2 text-white whitespace-nowrap font-medium transition-colors disabled:pointer-events-none disabled:opacity-50 bg-red-500 hover:bg-opacity-80 rounded-md h-6 text-xs px-2",onClick:r[1]||(r[1]=f=>n.value=!1)},[e.createVNode(e.unref(E),{class:"h-3 w-3"}),r[2]||(r[2]=e.createTextVNode(" Cancel ",-1))])):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"inline-flex items-center justify-center gap-2 text-white whitespace-nowrap font-medium transition-colors disabled:pointer-events-none disabled:opacity-50 bg-black text-primary-foreground hover:bg-opacity-80 rounded-md h-6 text-xs px-2",disabled:!o.value.trim(),onClick:a},[e.createVNode(e.unref(D),{class:"h-3 w-3 mr-1"}),r[3]||(r[3]=e.createTextVNode(" Send ",-1))],8,ce)])])])])]))}}),de={class:"z-50 min-w-32 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md w-32 outline-none pointer-events-auto"},me=e.defineComponent({__name:"CommentDetails",props:{showMoreOptions:{type:Boolean,required:!0,default:!1},showMoreOptionsModifiers:{}},emits:e.mergeModels(["edit","delete"],["update:showMoreOptions"]),setup(c,{emit:s}){const n=s,o=e.useModel(c,"showMoreOptions"),t=e.ref(),a=e.ref(!0),l=async f=>{o.value&&t.value&&!t.value.contains(f.target)&&!a.value&&(o.value=!1),a.value=!1},i=()=>{o.value=!1,n("edit")},r=()=>{o.value=!1,n("delete")};return e.onMounted(()=>{document.addEventListener("click",l)}),e.onUnmounted(()=>{document.removeEventListener("click",l)}),(f,d)=>(e.openBlock(),e.createElementBlock("div",{class:"absolute bg-white left-0 top-full transform min-w-max z-50",ref_key:"moreOptionsRef",ref:t},[e.createElementVNode("div",de,[e.createElementVNode("div",{class:"relative cursor-pointer flex select-none items-center gap-2 rounded-sm px-2 py-2 outline-hidden transition-colors disabled:pointer-events-none disabled:opacity-50 text-xs hover:bg-gray-100 transition-colors duration-300",onClick:i},[e.createVNode(e.unref(ee),{class:"h-3 w-3 mr-2"}),d[0]||(d[0]=e.createTextVNode(" Edit ",-1))]),e.createElementVNode("div",{class:"relative cursor-pointer flex select-none items-center gap-2 rounded-sm px-2 py-2 outline-hidden transition-colors disabled:pointer-events-none disabled:opacity-50 text-xs text-red-600 hover:bg-gray-100 transition-colors duration-300",onClick:r},[e.createVNode(e.unref(V),{class:"h-3 w-3 mr-2"}),d[1]||(d[1]=e.createTextVNode(" Delete ",-1))])])],512))}}),pe={class:"space-y-2"},fe={class:"relative flex items-center justify-center shrink-0 overflow-hidden rounded-full h-5 w-5 bg-gray-200"},ye={class:"flex-1 min-w-0 space-y-1 relative"},ge={class:"flex items-center gap-2"},he={class:"font-medium text-xs"},ke={class:"text-xs text-gray-500"},be={key:0,class:"text-xs text-gray-700 leading-relaxed"},ue={class:"flex justify-between text-xs"},xe={class:"flex items-center gap-2"},_e={key:0,class:"flex gap-2"},we=["disabled"],Ne={key:0,class:"ml-8 space-y-1 border-l-2 border-gray-100 pl-3"},Ve=e.defineComponent({__name:"CommentItem",props:{comment:{},isInside:{type:Boolean}},emits:["like","reply","edit","delete"],setup(c,{emit:s}){const n=s,o=c,t=e.ref(o.comment.text),a=e.ref("w-full p-2 rounded text-xs resize-none bg-transparent outline-none"),l=e.ref("w-full min-h-[60px] p-2 border border-gray-200 rounded text-xs resize-none focus:outline-none focus:ring-1 focus:ring-blue-500 focus:border-transparent"),i=e.ref(!1),r=e.ref(!1),f=e.ref(!1),d=e.ref(!1),m=g=>{const p=new Date,_=Math.floor((p.getTime()-g.getTime())/(1e3*60*60));return _<1?`${Math.floor((p.getTime()-g.getTime())/6e4)}m`:_<24?`${_}h`:`${Math.floor(_/24)}d`},u=()=>{d.value=!d.value,d.value?n("like",o.comment.id,"add"):n("like",o.comment.id,"delete")},z=()=>{n("edit",o.comment.id,t.value),f.value=!1},Zo=(g,p)=>{n("like",g,p)},Jo=(g,p)=>{n("edit",g,p)};return(g,p)=>{const _=e.resolveComponent("CommentItem",!0);return e.openBlock(),e.createElementBlock("div",pe,[e.createElementVNode("div",{class:e.normalizeClass(["group flex gap-2 p-2 rounded hover:bg-gray-50 transition-colors relative",f.value?"bg-gray-50":""])},[e.createElementVNode("span",fe,[e.createVNode(e.unref($),{class:"h-3 w-3 text-gray-500"})]),e.createElementVNode("div",ye,[e.createElementVNode("div",ge,[e.createElementVNode("span",he,e.toDisplayString(g.comment?.author),1),e.createElementVNode("span",ke,e.toDisplayString(m(g.comment?.createdAt)),1)]),f.value?e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:1,"onUpdate:modelValue":p[0]||(p[0]=h=>t.value=h),class:e.normalizeClass(f.value?l.value:a.value)},null,2)),[[e.vModelText,t.value]]):(e.openBlock(),e.createElementBlock("p",be,e.toDisplayString(g.comment?.text),1)),e.createElementVNode("div",ue,[e.createElementVNode("div",xe,[e.createElementVNode("button",{class:e.normalizeClass(["flex items-center gap-1",d.value?"text-blue-600":"text-gray-500 hover:text-blue-600 transition-colors"]),onClick:p[1]||(p[1]=h=>u())},[e.createVNode(e.unref(K),{class:e.normalizeClass(["h-3 w-3",d.value?"fill-blue-600":""])},null,8,["class"]),e.createTextVNode(" "+e.toDisplayString(g.comment?.likes),1)],2),g.isInside?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,class:"text-gray-500 hover:text-blue-600 transition-colors",onClick:p[2]||(p[2]=h=>r.value=!0)},[e.createVNode(e.unref(Q),{class:"h-3 w-3"})])),e.createElementVNode("button",{class:"text-gray-400 hover:text-gray-600 transition-colors opacity-0 group-hover:opacity-100",type:"button",onClick:p[3]||(p[3]=h=>i.value=!0)},[e.createVNode(e.unref(P),{class:"h-3 w-3"})])]),f.value?(e.openBlock(),e.createElementBlock("div",_e,[e.createElementVNode("button",{class:"inline-flex items-center justify-center gap-2 text-white whitespace-nowrap font-medium transition-colors disabled:pointer-events-none disabled:opacity-50 bg-red-500 hover:bg-opacity-80 rounded-md h-6 text-xs px-2",onClick:p[4]||(p[4]=h=>f.value=!1)},[e.createVNode(e.unref(E),{class:"h-3 w-3"}),p[11]||(p[11]=e.createTextVNode(" Cancel ",-1))]),e.createElementVNode("button",{class:"inline-flex items-center justify-center gap-2 text-white whitespace-nowrap font-medium transition-colors disabled:pointer-events-none disabled:opacity-50 bg-black text-primary-foreground hover:bg-opacity-80 rounded-md h-6 text-xs px-2",disabled:!t.value.trim(),onClick:p[5]||(p[5]=h=>z())},[e.createVNode(e.unref(D),{class:"h-3 w-3 mr-1"}),p[12]||(p[12]=e.createTextVNode(" Send ",-1))],8,we)])):e.createCommentVNode("",!0)])]),i.value?(e.openBlock(),e.createBlock(me,{key:0,showMoreOptions:i.value,"onUpdate:showMoreOptions":p[6]||(p[6]=h=>i.value=h),onEdit:p[7]||(p[7]=h=>f.value=!0),onDelete:p[8]||(p[8]=h=>g.$emit("delete",g.comment?.id)),comment:g.comment},null,8,["showMoreOptions","comment"])):e.createCommentVNode("",!0)],2),g.isInside?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ne,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.comment?.replies,h=>(e.openBlock(),e.createBlock(_,{key:h.id,comment:h,isInside:!0,onDelete:sn=>g.$emit("delete",h.id),onLike:Zo,onEdit:Jo},null,8,["comment","onDelete"]))),128)),r.value&&!g.isInside?(e.openBlock(),e.createBlock(T,{key:0,onSendComment:p[9]||(p[9]=h=>g.$emit("reply",g.comment?.id,h)),isReply:r.value,"onUpdate:isReply":p[10]||(p[10]=h=>r.value=h)},null,8,["isReply"])):e.createCommentVNode("",!0)]))])}}}),Ee=["id"],Be={class:"mb-4"},$e={class:"rounded-lg border bg-card text-card-foreground shadow-2xs"},Ce={class:"p-6 pt-0"},De={class:"space-y-3"},Te=e.defineComponent({__name:"CommentsWidget",props:{comments:{},onAddComment:{type:Function},onReply:{type:Function},onLike:{type:Function},onDelete:{type:Function},onEdit:{type:Function},id:{},className:{},style:{}},emits:["add","reply","like","delete","edit"],setup(c,{emit:s}){const n=s,o=(l,i)=>{n("like",l,i)},t=(l,i)=>{n("reply",l,i)},a=(l,i)=>{n("edit",l,i)};return(l,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["max-w-4xl mx-auto font-sans",l.className]),id:l.id,style:e.normalizeStyle(l.style)},[e.createElementVNode("div",Be,[e.createElementVNode("div",$e,[i[2]||(i[2]=e.createElementVNode("div",{class:"flex flex-col space-y-1.5 p-6 pb-2"},[e.createElementVNode("h3",{class:"font-semibold tracking-tight text-base"}," Comments ")],-1)),e.createElementVNode("div",Ce,[e.createElementVNode("div",De,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.comments,r=>(e.openBlock(),e.createBlock(Ve,{key:r.id,comment:r,onReply:t,onLike:o,onDelete:i[0]||(i[0]=f=>l.$emit("delete",f)),onEdit:a},null,8,["comment"]))),128))]),e.createVNode(T,{onSendComment:i[1]||(i[1]=r=>l.$emit("add",r))})])])])],14,Ee))}}),Me=[{id:"1",entityId:"project-001",entityType:"file",action:"created",userId:"user-001",userName:"Sarah Chen",timestamp:new Date("2024-01-15T14:30:00"),description:"Project proposal document created",status:"success"},{id:"2",entityId:"design-002",entityType:"file",action:"updated",userId:"user-002",userName:"Mike Wilson",timestamp:new Date("2024-01-15T13:45:00"),description:"Design system updated",changes:{"design-002":{old:"v1.0",new:"v1.1"}},status:"success"},{id:"3",entityId:"presentation-003",entityType:"file",action:"deleted",userId:"user-003",userName:"Alex Johnson",timestamp:new Date("2024-01-15T12:20:00"),description:"Old presentation removed",status:"success"},{id:"4",entityId:"assets-004",entityType:"file",action:"moved",userId:"user-004",userName:"Emma Davis",timestamp:new Date("2024-01-15T11:15:00"),description:"Assets moved to archive",changes:{"assets-004":{old:"/active/",new:"/archive/"}},status:"success"},{id:"5",entityId:"logo-005",entityType:"file",action:"renamed",userId:"user-005",userName:"David Kim",timestamp:new Date("2024-01-15T10:45:00"),description:"Logo file renamed",changes:{"logo-005":{old:"logo_old.png",new:"logo_final.png"}},status:"success"},{id:"6",entityId:"blog-post-001",entityType:"post",action:"created",userId:"user-006",userName:"Lisa Park",timestamp:new Date("2024-01-15T09:30:00"),description:"New blog post published",status:"success"},{id:"7",entityId:"announcement-002",entityType:"post",action:"updated",userId:"user-007",userName:"Tom Rodriguez",timestamp:new Date("2024-01-15T08:45:00"),description:"Announcement content updated",changes:{"announcement-002":{old:"Draft",new:"Published"}},status:"success"},{id:"8",entityId:"news-003",entityType:"post",action:"deleted",userId:"user-008",userName:"Maria Garcia",timestamp:new Date("2024-01-15T07:20:00"),description:"Outdated news post removed",status:"success"},{id:"9",entityId:"article-004",entityType:"post",action:"moved",userId:"user-009",userName:"John Smith",timestamp:new Date("2024-01-15T06:15:00"),description:"Article moved to featured section",changes:{"article-004":{old:"General",new:"Featured"}},status:"success"},{id:"10",entityId:"tutorial-005",entityType:"post",action:"renamed",userId:"user-010",userName:"Anna Lee",timestamp:new Date("2024-01-15T05:30:00"),description:"Tutorial title updated",changes:{"tutorial-005":{old:"Basic Guide",new:"Complete Tutorial"}},status:"success"},{id:"11",entityId:"new-user-001",entityType:"user",action:"created",userId:"user-011",userName:"Admin System",timestamp:new Date("2024-01-15T04:45:00"),description:"New user account created",status:"success"},{id:"12",entityId:"user-profile-002",entityType:"user",action:"updated",userId:"user-012",userName:"HR Manager",timestamp:new Date("2024-01-15T03:20:00"),description:"User profile information updated",changes:{"user-profile-002":{old:"Junior",new:"Senior"}},status:"success"},{id:"13",entityId:"inactive-user-003",entityType:"user",action:"deleted",userId:"user-013",userName:"System Admin",timestamp:new Date("2024-01-15T02:15:00"),description:"Inactive user account removed",status:"success"},{id:"14",entityId:"user-department-004",entityType:"user",action:"moved",userId:"user-014",userName:"Department Head",timestamp:new Date("2024-01-15T01:30:00"),description:"User transferred to different department",changes:{"user-department-004":{old:"Marketing",new:"Sales"}},status:"success"},{id:"15",entityId:"username-005",entityType:"user",action:"renamed",userId:"user-015",userName:"User Support",timestamp:new Date("2024-01-15T00:45:00"),description:"Username changed",changes:{"username-005":{old:"john.doe",new:"john.smith"}},status:"success"},{id:"16",entityId:"project-task-001",entityType:"custom",action:"created",userId:"user-016",userName:"Project Manager",timestamp:new Date("2024-01-14T23:30:00"),description:"New project task created",status:"success"},{id:"17",entityId:"meeting-002",entityType:"custom",action:"updated",userId:"user-017",userName:"Team Lead",timestamp:new Date("2024-01-14T22:15:00"),description:"Meeting details updated",changes:{"meeting-002":{old:"10:00 AM",new:"2:00 PM"}},status:"success"},{id:"18",entityId:"bug-report-003",entityType:"custom",action:"deleted",userId:"user-018",userName:"QA Engineer",timestamp:new Date("2024-01-14T21:00:00"),description:"Duplicate bug report removed",status:"success"},{id:"19",entityId:"feature-004",entityType:"custom",action:"moved",userId:"user-019",userName:"Product Owner",timestamp:new Date("2024-01-14T20:30:00"),description:"Feature moved to different sprint",changes:{"feature-004":{old:"Sprint 1",new:"Sprint 2"}},status:"success"},{id:"20",entityId:"document-005",entityType:"custom",action:"renamed",userId:"user-020",userName:"Technical Writer",timestamp:new Date("2024-01-14T19:45:00"),description:"Document title updated",changes:{"document-005":{old:"API Spec",new:"API Documentation"}},status:"success"}],M=new Map([["file",{name:"File",color:"bg-green-100 text-green-700 border-green-200",icon:x}],["post",{name:"Post",color:"bg-blue-100 text-blue-700 border-blue-200",icon:v}],["user",{name:"User",color:"bg-purple-100 text-purple-700 border-purple-200",icon:te}],["custom",{name:"Custom",color:"bg-gray-100 text-gray-700 border-gray-200",icon:Z}]]),Ie={class:"max-w-4xl mx-auto font-sans"},Se={class:"mb-6"},Le={class:"rounded-lg border bg-card text-card-foreground shadow-2xs","data-v0-t":"card"},ze={class:"relative"},je={class:"space-y-3"},Fe={class:"flex-1 min-w-0 pb-2"},Ae={class:"flex items-center gap-1.5 mb-1 mt-0.5"},He={class:"relative flex items-center justify-center shrink-0 overflow-hidden rounded-full h-5 w-5 bg-gray-200"},Re={class:"font-medium text-xs"},Ue={class:"text-xs text-gray-500"},Oe={class:"space-y-1"},Pe={class:"text-xs text-gray-700"},qe={class:"capitalize mr-1"},We={key:0,class:"inline-flex items-center rounded-full border py-0.5 font-semibold transition-colors text-foreground text-xs h-4 px-1 capitalize"},Ge={key:0,class:"flex items-center gap-1 text-xs"},Ke={key:0,class:"bg-red-50 text-red-600 px-1.5 py-0.5 rounded text-xs border border-red-200"},Ze={key:2,class:"bg-green-50 text-green-600 px-1.5 py-0.5 rounded text-xs border border-green-200"},Je=e.defineComponent({__name:"HistoryWidget",props:{maxHeight:{default:400},historyItems:{}},setup(c){const s=e.ref(Me),n=c;return(o,t)=>(e.openBlock(),e.createElementBlock("div",Ie,[e.createElementVNode("div",Se,[e.createElementVNode("div",Le,[t[1]||(t[1]=e.createElementVNode("div",{class:"flex flex-col space-y-1.5 p-6 pb-3"},[e.createElementVNode("h3",{class:"font-semibold tracking-tight text-base"},"Basic Timeline View")],-1)),e.createElementVNode("div",{class:"p-6 pt-0 overflow-y-auto",style:e.normalizeStyle({maxHeight:n.maxHeight+"px"})},[e.createElementVNode("div",ze,[t[0]||(t[0]=e.createElementVNode("div",{class:"absolute left-3 top-0 bottom-0 w-0.5 bg-gray-200"},null,-1)),e.createElementVNode("div",je,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,a=>(e.openBlock(),e.createElementBlock("div",{class:"relative flex items-start gap-2",key:a?.id},[e.createElementVNode("div",{class:e.normalizeClass(`flex-shrink-0 w-6 h-6 rounded-full flex items-center justify-center border bg-white relative z-10 ${e.unref(M).get(a?.entityType)?.color}`)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(M).get(a?.entityType)?.icon),{class:"h-3 w-3"}))],2),e.createElementVNode("div",Fe,[e.createElementVNode("div",Ae,[e.createElementVNode("span",He,[e.createVNode(e.unref($),{class:"h-3 w-3 text-gray-500"})]),e.createElementVNode("span",Re,e.toDisplayString(a?.userName),1),e.createElementVNode("span",Ue,e.toDisplayString(a?.timestamp.toLocaleTimeString("ua-UA",{hour:"2-digit",minute:"2-digit"})),1)]),e.createElementVNode("div",Oe,[e.createElementVNode("div",Pe,[e.createElementVNode("span",qe,e.toDisplayString(a?.action),1),a?.entityId?(e.openBlock(),e.createElementBlock("span",We,e.toDisplayString(a?.entityId),1)):e.createCommentVNode("",!0)]),a?.changes?.[a?.entityId]?(e.openBlock(),e.createElementBlock("div",Ge,[a?.changes?.[a?.entityId]?.old?(e.openBlock(),e.createElementBlock("span",Ke,e.toDisplayString(a?.changes?.[a?.entityId]?.old),1)):e.createCommentVNode("",!0),a?.changes?.[a?.entityId]?.old&&a?.changes?.[a?.entityId]?.new?(e.openBlock(),e.createBlock(e.unref(U),{key:1,class:"h-2 w-2 text-gray-400"})):e.createCommentVNode("",!0),a?.changes?.[a?.entityId]?.new?(e.openBlock(),e.createElementBlock("span",Ze,e.toDisplayString(a?.changes?.[a?.entityId]?.new),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])])]))),128))])])],4)])])]))}}),Xe={class:"flex flex-col sm:flex-row justify-between items-start sm:items-center gap-3"},Qe={class:"text-xl font-semibold"},Ye={class:"flex gap-1"},ve=e.defineComponent({__name:"FileHeader",props:e.mergeModels({title:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(c){const s=e.useModel(c,"modelValue"),n={active:"bg-black text-white hover:bg-black",inactive:"bg-white text-black hover:bg-gray-100"};return(o,t)=>(e.openBlock(),e.createElementBlock("div",Xe,[e.createElementVNode("h2",Qe,e.toDisplayString(o.title),1),e.createElementVNode("div",Ye,[e.createElementVNode("button",{class:e.normalizeClass(["ring-offset-background inline-flex items-center justify-center gap-2 whitespace-nowrap font-medium transition-colors border-input border rounded-md text-xs h-7 px-2",s.value==="list"?n.active:n.inactive]),onClick:t[0]||(t[0]=a=>s.value="list")},[e.createVNode(e.unref(X),{class:"h-3 w-3 mr-1"}),t[3]||(t[3]=e.createTextVNode(" List ",-1))],2),e.createElementVNode("button",{class:e.normalizeClass(["ring-offset-background inline-flex items-center justify-center gap-2 whitespace-nowrap font-medium transition-colors border-input border rounded-md text-xs h-7 px-2",s.value==="grid"?n.active:n.inactive]),onClick:t[1]||(t[1]=a=>s.value="grid")},[e.createVNode(e.unref(G),{class:"h-3 w-3 mr-1"}),t[4]||(t[4]=e.createTextVNode(" Grid ",-1))],2),e.createElementVNode("button",{class:e.normalizeClass(["ring-offset-background inline-flex items-center justify-center gap-2 whitespace-nowrap font-medium transition-colors border-input border rounded-md text-xs h-7 px-2",s.value==="compact"?n.active:n.inactive]),onClick:t[2]||(t[2]=a=>s.value="compact")},[e.createVNode(e.unref(q),{class:"h-3 w-3 mr-1"}),t[5]||(t[5]=e.createTextVNode(" Compact ",-1))],2)])]))}}),w={pdf:{color:"bg-red-100 text-red-700 border-red-200",icon:x,label:"PDF"},sketch:{color:"bg-gray-100 text-gray-700 border-gray-200",icon:W,label:"SKETCH"},mp4:{color:"bg-purple-100 text-purple-700 border-purple-200",icon:oe,label:"VIDEO"},docx:{color:"bg-blue-100 text-blue-700 border-blue-200",icon:x,label:"DOC"},zip:{color:"bg-orange-100 text-orange-700 border-orange-200",icon:R,label:"ARCHIVE"},png:{color:"bg-green-100 text-green-700 border-green-200",icon:J,label:"IMAGE"},xlsx:{color:"bg-emerald-100 text-emerald-700 border-emerald-200",icon:x,label:"EXCEL"},pptx:{color:"bg-amber-100 text-amber-700 border-amber-200",icon:x,label:"PPT"}};function I(c,s="en"){const n={month:"short",day:"numeric"};return new Intl.DateTimeFormat(s,n).format(c)}function S(c){if(c===0)return"0 B";const s=1024,n=["B","KB","MB","GB","TB"],o=Math.floor(Math.log(c)/Math.log(s));return`${parseFloat((c/Math.pow(s,o)).toFixed(1))} ${n[o]}`}const et={class:"p-6 pt-0"},tt={class:"space-y-0.5"},ot={class:"flex-1 min-w-0 cursor-pointer"},nt={class:"flex items-center gap-2"},st={class:"font-medium text-xs truncate hover:text-blue-600"},at={class:"hidden sm:block text-xs text-gray-500 w-16 text-right"},rt={class:"hidden md:block text-xs text-gray-500 w-12 text-right"},lt={class:"flex items-center gap-1"},it=["href"],ct=["onClick"],dt=e.defineComponent({__name:"FileList",props:{files:{}},emits:["delete"],setup(c){return(s,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[n[0]||(n[0]=e.createElementVNode("div",{class:"flex flex-col space-y-1.5 p-6 pb-2"},[e.createElementVNode("h3",{class:"font-semibold tracking-tight text-base"}," Compact List View ")],-1)),e.createElementVNode("div",et,[e.createElementVNode("div",tt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.files,o=>(e.openBlock(),e.createElementBlock("div",{class:"flex items-center gap-2 p-1.5 rounded hover:bg-gray-50 group border-b border-gray-100 last:border-b-0",key:o.id},[e.createElementVNode("div",{class:e.normalizeClass(["p-1 rounded",e.unref(w)[o.type].color])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(w)[o.type].icon),{class:"h-3 w-3"}))],2),e.createElementVNode("div",ot,[e.createElementVNode("div",nt,[e.createElementVNode("span",st,e.toDisplayString(o.name),1),e.createElementVNode("div",{class:e.normalizeClass(["inline-flex items-center rounded-full border py-0.5 font-semibold text-xs px-1",e.unref(w)[o.type].color])},e.toDisplayString(o.type),3)])]),e.createElementVNode("div",at,e.toDisplayString(e.unref(S)(o.size)),1),e.createElementVNode("div",rt,e.toDisplayString(e.unref(I)(o.createdAt)),1),e.createElementVNode("div",lt,[e.createElementVNode("a",{href:o.path,target:"_blank",download:"",class:"ring-offset-background focus-visible:outline-hidden focus-visible:ring-ring inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 hover:bg-accent hover:text-accent-foreground rounded-md h-6 w-6 p-0 opacity-0 group-hover:opacity-100 transition-opacity"},[e.createVNode(e.unref(B),{class:"h-3 w-3"})],8,it),e.createElementVNode("button",{class:"ring-offset-background focus-visible:outline-hidden focus-visible:ring-ring inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 hover:bg-accent rounded-md h-6 w-6 p-0 opacity-0 group-hover:opacity-100 transition-opacity text-red-600 hover:text-red-700",onClick:t=>s.$emit("delete",o.id)},[e.createVNode(e.unref(V),{class:"h-3 w-3"})],8,ct)])]))),128))])])],64))}}),mt={class:"p-6 pt-0"},pt={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-3"},ft={class:"space-y-2"},yt={class:"flex justify-center items-center w-full aspect-[4/3] bg-gray-100 rounded overflow-hidden"},gt={class:"space-y-1"},ht=["title"],kt={class:"text-xs text-gray-500 text-left"},bt=["onClick"],ut=e.defineComponent({__name:"FileGrid",props:{files:{}},emits:["delete"],setup(c){return(s,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[n[0]||(n[0]=e.createElementVNode("div",{class:"flex flex-col space-y-1.5 p-6 pb-2"},[e.createElementVNode("h3",{class:"font-semibold tracking-tight text-base"},"Grid View")],-1)),e.createElementVNode("div",mt,[e.createElementVNode("div",pt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.files,o=>(e.openBlock(),e.createElementBlock("div",{key:o.id,class:"group relative border rounded-lg p-2 hover:shadow-md transition-all bg-white hover:bg-gray-50 cursor-pointer"},[e.createElementVNode("div",ft,[e.createElementVNode("div",yt,[e.createVNode(e.unref(x),{class:"h-10 w-10 text-gray-500"})]),e.createElementVNode("div",gt,[e.createElementVNode("h3",{class:"font-medium text-xs leading-tight text-left",title:o.name},e.toDisplayString(o.name),9,ht),e.createElementVNode("p",kt,e.toDisplayString(e.unref(I)(o.createdAt))+", "+e.toDisplayString(e.unref(S)(o.size)),1)])]),e.createElementVNode("a",{class:"ring-offset-background focus-visible:outline-hidden focus-visible:ring-ring inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 rounded-md absolute top-2 right-2 h-6 w-6 p-0 opacity-0 group-hover:opacity-100 transition-opacity text-red-600 hover:text-red-700 hover:bg-red-50",onClick:t=>s.$emit("delete",o.id)},[e.createVNode(e.unref(V),{class:"h-3 w-3"})],8,bt)]))),128))])])],64))}}),xt={class:"p-6 pt-0"},_t={class:"flex flex-wrap gap-1"},wt=["title"],Nt={class:"flex items-center gap-0.5 opacity-0 group-hover:opacity-100 transition-opacity ml-1"},Vt=["href"],Et=["onClick"],Bt=e.defineComponent({__name:"FileCompact",props:{files:{}},emits:["delete"],setup(c){return(s,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[n[0]||(n[0]=e.createElementVNode("div",{class:"flex flex-col space-y-1.5 p-6 pb-2"},[e.createElementVNode("h3",{class:"font-semibold tracking-tight text-base"},"Ultra Compact View")],-1)),e.createElementVNode("div",xt,[e.createElementVNode("div",_t,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.files,o=>(e.openBlock(),e.createElementBlock("div",{key:o.id,class:"group flex items-center gap-1 p-1 rounded border hover:bg-gray-50 hover:shadow-sm transition-all"},[e.createElementVNode("div",{class:e.normalizeClass(["p-0.5 rounded",e.unref(w)[o.type].color])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(w)[o.type].icon),{class:"h-3 w-3"}))],2),e.createElementVNode("span",{class:"text-xs font-medium truncate max-w-24",title:o.name},e.toDisplayString(o.name),9,wt),e.createElementVNode("div",Nt,[e.createElementVNode("a",{class:"ring-offset-background inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground rounded-md h-4 w-4 p-0",href:o.path,target:"_blank",download:""},[e.createVNode(e.unref(B),{class:"h-2.5 w-2.5"})],8,Vt),e.createElementVNode("button",{class:"ring-offset-background inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium transition-colors hover:bg-accent rounded-md h-4 w-4 p-0 text-red-600 hover:text-red-700",onClick:t=>s.$emit("delete",o.id)},[e.createVNode(e.unref(V),{class:"h-2.5 w-2.5"})],8,Et)])]))),128))])])],64))}}),$t={class:"max-w-4xl mx-auto font-sans"},Ct={class:"mb-6"},Dt={class:"space-y-4"},Tt={class:"rounded-lg border bg-card text-card-foreground shadow-2xs"},Mt=e.defineComponent({__name:"FilesWidget",props:{title:{},view:{},files:{}},emits:["delete"],setup(c){const s=c,n=e.ref(s.view||"list");return(o,t)=>(e.openBlock(),e.createElementBlock("div",$t,[e.createElementVNode("div",Ct,[e.createElementVNode("div",Dt,[e.createVNode(ve,{modelValue:n.value,"onUpdate:modelValue":t[0]||(t[0]=a=>n.value=a),title:s.title||"File List"},null,8,["modelValue","title"]),e.createElementVNode("div",Tt,[n.value==="list"?(e.openBlock(),e.createBlock(dt,{key:0,onDelete:t[1]||(t[1]=a=>o.$emit("delete",a)),files:s.files},null,8,["files"])):e.createCommentVNode("",!0),n.value==="grid"?(e.openBlock(),e.createBlock(ut,{key:1,onDelete:t[2]||(t[2]=a=>o.$emit("delete",a)),files:s.files},null,8,["files"])):e.createCommentVNode("",!0),n.value==="compact"?(e.openBlock(),e.createBlock(Bt,{key:2,onDelete:t[3]||(t[3]=a=>o.$emit("delete",a)),files:s.files},null,8,["files"])):e.createCommentVNode("",!0)])])])]))}}),It=["onClick"],St=e.defineComponent({__name:"CopyNotification",setup(c,{expose:s}){const n=e.ref([]);let o=1;const t=()=>{if(n.value.length>=10){const i=n.value[0];clearTimeout(i.timer),n.value.shift()}const l={id:o++,timer:setTimeout(()=>{a(l.id)},1500)};n.value.push(l)},a=l=>{const i=n.value.findIndex(r=>r.id===l);if(i!==-1){const r=n.value[i];clearTimeout(r.timer),n.value.splice(i,1)}};return s({addNotification:t}),e.onUnmounted(()=>{n.value.forEach(l=>{clearTimeout(l.timer)})}),(l,i)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.TransitionGroup,{name:"notification",tag:"div",class:"fixed top-4 right-4 z-50 space-y-2"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,r=>(e.openBlock(),e.createElementBlock("div",{key:r.id,class:"bg-green-500 text-white px-4 py-3 rounded-lg shadow-lg flex items-center gap-3 min-w-64 max-w-sm"},[e.createVNode(e.unref(O),{class:"h-5 w-5 text-green-100 flex-shrink-0"}),i[0]||(i[0]=e.createElementVNode("div",{class:"flex-1"},[e.createElementVNode("p",{class:"font-medium text-sm"},"Ссылка скопирована!"),e.createElementVNode("p",{class:"text-xs text-green-100 opacity-90"},"Файл добавлен в буфер обмена")],-1)),e.createElementVNode("button",{onClick:f=>a(r.id),class:"text-green-100 hover:text-white transition-colors flex-shrink-0"},[e.createVNode(e.unref(E),{class:"h-4 w-4"})],8,It)]))),128))]),_:1})]))}}),b=(c,s)=>{const n=c.__vccOpts||c;for(const[o,t]of s)n[o]=t;return n},L=b(St,[["__scopeId","data-v-7b0d3ace"]]),Lt={class:"fixed inset-0 z-50 bg-black/80"},zt={class:"fixed bg-white left-[50%] top-[50%] z-50 grid w-full translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background shadow-lg duration-200 sm:rounded-lg max-w-4xl max-h-[90vh] p-0"},jt={class:"flex flex-col space-y-1.5 text-center sm:text-left p-4 pb-2"},Ft={class:"flex items-center justify-between"},At={class:"flex items-center gap-2"},Ht={class:"tracking-tight text-base font-medium"},Rt={class:"p-4 pt-0"},Ut={class:"flex flex-col items-center"},Ot=["src","alt"],Pt={class:"mt-3 flex items-center gap-4 text-sm text-gray-600"},qt={class:"mt-3 flex gap-2"},Wt=e.defineComponent({__name:"GalleryModal",props:{item:{}},emits:["close"],setup(c){const s=e.ref(),n=l=>new Date(l).toLocaleDateString("uk-UA",{day:"2-digit",month:"2-digit",year:"numeric"}),o=l=>l>=1024*1024*1024?(l/(1024*1024*1024)).toFixed(2)+" GB":l>=1024*1024?(l/(1024*1024)).toFixed(2)+" MB":l>=1024?(l/1024).toFixed(2)+" KB":l+" B",t=l=>{navigator.clipboard.writeText(l),s.value?.addNotification()},a=async(l,i)=>{try{const f=await(await fetch(l)).blob(),d=window.URL.createObjectURL(f),m=document.createElement("a");m.href=d,m.download=i,document.body.appendChild(m),m.click(),window.URL.revokeObjectURL(d),document.body.removeChild(m)}catch(r){console.error("Download failed:",r),alert("Download failed. Please try opening the image in a new tab.")}};return(l,i)=>(e.openBlock(),e.createElementBlock("div",Lt,[e.createElementVNode("div",zt,[e.createElementVNode("div",jt,[e.createElementVNode("div",Ft,[e.createElementVNode("div",At,[e.createElementVNode("h2",Ht,e.toDisplayString(l.item.name),1)])])]),e.createElementVNode("div",Rt,[e.createElementVNode("div",Ut,[e.createElementVNode("img",{src:l.item.path,alt:l.item.name,class:"max-w-full max-h-[60vh] object-contain rounded border"},null,8,Ot),e.createElementVNode("div",Pt,[e.createElementVNode("span",null,"Size: "+e.toDisplayString(o(l.item.size)),1),i[3]||(i[3]=e.createElementVNode("span",null,"•",-1)),e.createElementVNode("span",null,"Date: "+e.toDisplayString(n(l.item.createdAt)),1)]),e.createElementVNode("div",qt,[e.createElementVNode("button",{onClick:i[0]||(i[0]=r=>a(l.item.path,l.item.name)),class:"ring-offset-background focus-visible:outline-hidden focus-visible:ring-ring inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 border-input bg-background hover:bg-accent hover:text-accent-foreground border h-9 rounded-md px-3"},[e.createVNode(e.unref(B),{class:"h-3 w-3 mr-1"}),i[4]||(i[4]=e.createTextVNode(" Download ",-1))]),e.createElementVNode("button",{onClick:i[1]||(i[1]=r=>t(l.item.path)),class:"ring-offset-background focus-visible:outline-hidden focus-visible:ring-ring inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 border-input bg-background hover:bg-accent hover:text-accent-foreground border h-9 rounded-md px-3"},[e.createVNode(e.unref(Y),{class:"h-3 w-3 mr-1"}),i[5]||(i[5]=e.createTextVNode(" Share ",-1))])])])]),e.createElementVNode("button",{type:"button",onClick:i[2]||(i[2]=r=>l.$emit("close")),class:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground"},[e.createVNode(e.unref(E),{class:"h-4 w-4"}),i[6]||(i[6]=e.createElementVNode("span",{class:"sr-only"},"Close",-1))])]),e.createVNode(L,{ref_key:"copyNotificationRef",ref:s},null,512)]))}}),Gt=["onClick"],Kt=["src","alt"],Zt=e.defineComponent({__name:"GalleryWidget",props:{items:{},columns:{default:4},maxHeight:{default:800},id:{},className:{},style:{}},setup(c){const s=c,n=e.ref(!1),o=e.ref(null),t=e.ref(),a=e.ref(0);let l=null;const i=e.computed(()=>{const d=s.columns||4;return a.value>=1440?d:a.value>=1024?Math.max(1,d-1):a.value>=768?Math.max(1,d-2):a.value>=640?Math.max(1,d-3):1}),r=()=>{t.value&&(a.value=t.value.offsetWidth)};e.onMounted(()=>{e.nextTick(()=>{t.value&&(l=new ResizeObserver(d=>{for(const m of d)m.target===t.value&&(a.value=m.contentRect.width)}),l.observe(t.value),r())})}),e.onUnmounted(()=>{l&&l.disconnect()});const f=d=>{o.value=d,n.value=!0};return(d,m)=>(e.openBlock(),e.createElementBlock("div",{class:"max-w-4xl w-full mx-auto font-sans",ref_key:"containerRef",ref:t},[m[3]||(m[3]=e.createElementVNode("h3",{class:"text-xl font-semibold text-gray-900 mb-4"},"Галерея",-1)),e.createElementVNode("div",{class:"overflow-y-auto",style:e.normalizeStyle({maxHeight:s.maxHeight+"px"})},[e.createElementVNode("div",{style:e.normalizeStyle({columns:i.value+" auto",gap:"12px"}),class:"space-y-3"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.items,u=>(e.openBlock(),e.createElementBlock("div",{key:u.id,onClick:z=>f(u),class:"group relative break-inside-avoid bg-gray-200 rounded-lg overflow-hidden cursor-pointer hover:shadow-md transition-all mb-3"},[e.createElementVNode("img",{src:u.path,alt:u.name,class:"w-full h-auto min-h-40 rounded-md object-contain"},null,8,Kt),m[1]||(m[1]=e.createElementVNode("div",{class:"absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/80 via-black/40 to-transparent p-4 pt-12"},[e.createElementVNode("h3",{class:"text-white font-medium text-base leading-tight mb-1"},"Mountain Landscape"),e.createElementVNode("p",{class:"text-white/90 text-sm"},"2.4 MB")],-1)),m[2]||(m[2]=e.createElementVNode("div",{class:"absolute inset-0 bg-black/0 group-hover:bg-black/10 transition-colors duration-200"},null,-1))],8,Gt))),128))],4)],4),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[n.value&&o.value?(e.openBlock(),e.createBlock(Wt,{key:0,item:o.value,onClose:m[0]||(m[0]=u=>n.value=!1)},null,8,["item"])):e.createCommentVNode("",!0)]))],512))}}),Jt={key:0,class:"card-tabs"},Xt={class:"tabs-header"},Qt=["onClick"],Yt={class:"tab-content"},vt=["innerHTML"],eo={key:1,class:"card-plain"},to={class:"grid grid-cols-12 gap-4"},oo={key:0,class:"panel-header"},no={class:"panel-title"},so=["innerHTML"],ao=b(e.defineComponent({__name:"Card",props:{panels:{default:()=>[]},data:{default:()=>({})},view:{default:"plain"},id:{},className:{},style:{}},setup(c){const s=c,n=e.ref(0),o=e.computed(()=>s.panels&&s.panels.length>0?s.panels:s.data&&Array.isArray(s.data)?s.data.filter(f=>f.type==="tabs")[0]?.items||[]:[]),t=e.computed(()=>s.panels&&s.panels.length>0?s.panels:s.data&&Array.isArray(s.data)?s.data:[]),a=e.computed(()=>({"card-wrapper":!0,[`view-${s.view}`]:!0})),l=r=>{const f={};return r.count&&(f.count=r.count),r.col&&(f.col=r.col),f.data&&(f.data=f.data),f},i=r=>r.width?{gridColumn:`span ${r.width}`}:{};return(r,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["card-wrapper",a.value])},[r.view==="tab"?(e.openBlock(),e.createElementBlock("div",Jt,[e.createElementVNode("div",Xt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(d,m)=>(e.openBlock(),e.createElementBlock("button",{key:d.name||m,onClick:u=>n.value=m,class:e.normalizeClass(["tab-button",{active:n.value===m}])},e.toDisplayString(d.title||d.label||d.name||`Tab ${m+1}`),11,Qt))),128))]),e.createElementVNode("div",Yt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(d,m)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:d.name||m,class:e.normalizeClass(["tab-panel",`col-${d.col||12}`])},[d.html?(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:d.html,class:"html-content"},null,8,vt)):r.$slots[`tab-${m}`]?e.renderSlot(r.$slots,`tab-${m}`,{key:1,item:d,data:r.data},void 0,!0):d.component?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d.component),e.mergeProps({key:2,ref_for:!0},l(d),{class:"component-content"}),null,16)):e.renderSlot(r.$slots,d.slot||`tab-${m}`,{key:3,item:d,data:r.data},void 0,!0)],2)),[[e.vShow,n.value===m]])),128))])])):(e.openBlock(),e.createElementBlock("div",eo,[e.createElementVNode("div",to,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(d,m)=>(e.openBlock(),e.createElementBlock("div",{key:d.name||m,class:e.normalizeClass(["plain-panel",`col-span-${d.col||12}`]),style:e.normalizeStyle(i(d))},[d.title||d.label?(e.openBlock(),e.createElementBlock("div",oo,[e.createElementVNode("h3",no,e.toDisplayString(d.title||d.label),1)])):e.createCommentVNode("",!0),d.html?(e.openBlock(),e.createElementBlock("div",{key:1,innerHTML:d.html,class:"html-content"},null,8,so)):r.$slots[`panel-${m}`]?e.renderSlot(r.$slots,`panel-${m}`,{key:2,item:d,data:r.data},void 0,!0):d.component?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d.component),e.mergeProps({key:3,ref_for:!0},l(d),{class:"component-content"}),null,16)):e.renderSlot(r.$slots,d.slot||`panel-${m}`,{key:4,item:d,data:r.data},void 0,!0)],6))),128))])]))],2))}}),[["__scopeId","data-v-ae6b1cea"]]),ro=["innerHTML"],lo=b(e.defineComponent({__name:"CardItem",props:{name:{},label:{},component:{},slot:{},col:{default:12},html:{},title:{},id:{},className:{},style:{}},setup(c){const s=c,n=e.computed(()=>({"card-item":!0,[`col-span-${s.col}`]:!0})),o=e.computed(()=>{const t={};return t.col&&(t.col=t.col),t});return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["card-item",n.value])},[t.html?(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:t.html,class:"html-content"},null,8,ro)):t.component?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.component),e.mergeProps({key:1},o.value,{class:"component-content"}),null,16)):e.renderSlot(t.$slots,"default",{key:2},void 0,!0)],2))}}),[["__scopeId","data-v-087bdd29"]]),io={class:"text-value"},co={class:"text-sm text-gray-900"},mo=b(e.defineComponent({__name:"TextValue",props:{item:{}},setup(c){const s=c,n=e.computed(()=>{const o=s.item.value;return typeof o=="boolean"?o?"Так":"Ні":o==null?"—":String(o)});return(o,t)=>(e.openBlock(),e.createElementBlock("div",io,[e.createElementVNode("span",co,e.toDisplayString(n.value),1)]))}}),[["__scopeId","data-v-c14550b7"]]),po={class:"link-value"},fo=["href"],yo=b(e.defineComponent({__name:"LinkValue",props:{item:{}},setup(c){const s=c,n=e.computed(()=>{const o=String(s.item.value);try{const t=new URL(o);return t.hostname+t.pathname}catch{return o}});return(o,t)=>(e.openBlock(),e.createElementBlock("div",po,[e.createElementVNode("a",{href:String(o.item.value),target:"_blank",rel:"noopener noreferrer",class:"text-blue-600 hover:text-blue-800 underline text-sm"},[e.createTextVNode(e.toDisplayString(n.value)+" ",1),t[0]||(t[0]=e.createElementVNode("i",{class:"fas fa-external-link-alt ml-1 text-xs"},null,-1))],8,fo)]))}}),[["__scopeId","data-v-e6eb07a6"]]),go={class:"date-value"},ho={class:"text-sm text-gray-900"},ko=b(e.defineComponent({__name:"DateValue",props:{item:{}},setup(c){const s=c,n=e.computed(()=>{const o=s.item.value;if(o instanceof Date)return o.toLocaleDateString("uk-UA",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"});if(typeof o=="string"){const t=new Date(o);if(!isNaN(t.getTime()))return t.toLocaleDateString("uk-UA",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})}return String(o)});return(o,t)=>(e.openBlock(),e.createElementBlock("div",go,[e.createElementVNode("span",ho,e.toDisplayString(n.value),1)]))}}),[["__scopeId","data-v-b9600618"]]),bo={class:"status-value"},uo={key:0,class:"mr-1"},xo=b(e.defineComponent({__name:"StatusValue",props:{item:{}},setup(c){const s=c,n=e.computed(()=>{switch(String(s.item.value).toLowerCase()){case"active":case"активний":case"успішно":case"success":return"bg-green-100 text-green-800";case"inactive":case"неактивний":case"pending":case"очікує":return"bg-yellow-100 text-yellow-800";case"error":case"помилка":case"failed":case"неуспішно":return"bg-red-100 text-red-800";case"draft":case"чернетка":return"bg-gray-100 text-gray-800";default:return"bg-blue-100 text-blue-800"}}),o=e.computed(()=>{switch(String(s.item.value).toLowerCase()){case"active":case"активний":case"успішно":case"success":return"fas fa-check-circle";case"inactive":case"неактивний":case"pending":case"очікує":return"fas fa-clock";case"error":case"помилка":case"failed":case"неуспішно":return"fas fa-exclamation-circle";case"draft":case"чернетка":return"fas fa-edit";default:return"fas fa-info-circle"}});return(t,a)=>(e.openBlock(),e.createElementBlock("div",bo,[e.createElementVNode("span",{class:e.normalizeClass(["inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",n.value])},[o.value?(e.openBlock(),e.createElementBlock("span",uo,[e.createElementVNode("i",{class:e.normalizeClass(o.value)},null,2)])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(String(t.item.value)),1)],2)]))}}),[["__scopeId","data-v-c72e0b01"]]),_o={class:"custom-value"},wo={class:"text-sm text-gray-900"},No=b(e.defineComponent({__name:"CustomValue",props:{item:{}},setup(c){return(s,n)=>(e.openBlock(),e.createElementBlock("div",_o,[e.renderSlot(s.$slots,"default",{item:s.item,value:s.item.value},()=>[e.createElementVNode("span",wo,e.toDisplayString(String(s.item.value)),1)],!0)]))}}),[["__scopeId","data-v-11a73810"]]),Vo=["id"],Eo={key:0,class:"text-xl font-semibold text-gray-900 mb-4"},Bo={key:1,class:"overflow-x-auto"},$o={class:"min-w-full divide-y divide-gray-200"},Co={class:"bg-white divide-y divide-gray-200"},Do={class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},To={class:"flex items-center gap-2"},Mo=["title"],Io={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},So={key:2,class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4"},Lo={class:"flex items-start gap-3"},zo={key:0,class:"flex-shrink-0"},jo={class:"flex-1 min-w-0"},Fo={class:"flex items-center gap-2 mb-2"},Ao={class:"text-sm font-medium text-gray-900"},Ho=["title"],Ro={key:3,class:"overflow-x-auto"},Uo={class:"min-w-full divide-y divide-gray-200"},Oo={class:"bg-white divide-y divide-gray-200"},Po={class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},qo={class:"flex items-center gap-2"},Wo=["title"],Go={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},Ko=b(e.defineComponent({__name:"DescriptionListWidget",props:{title:{},items:{},view:{},id:{},className:{},style:{}},setup(c){const s=n=>{switch(n.type){case"link":return yo;case"date":return ko;case"status":return xo;case"custom":return No;default:return mo}};return(n,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["description-list-widget",n.className]),id:n.id,style:e.normalizeStyle(n.style)},[n.title?(e.openBlock(),e.createElementBlock("h3",Eo,e.toDisplayString(n.title),1)):e.createCommentVNode("",!0),n.view==="table"?(e.openBlock(),e.createElementBlock("div",Bo,[e.createElementVNode("table",$o,[e.createElementVNode("tbody",Co,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,t=>(e.openBlock(),e.createElementBlock("tr",{key:t.id||t.label},[e.createElementVNode("td",Do,[e.createElementVNode("div",To,[t.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass([t.icon,"text-gray-500"])},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(t.label)+" ",1),t.tooltip?(e.openBlock(),e.createElementBlock("span",{key:1,class:"text-gray-400 cursor-help",title:t.tooltip},o[0]||(o[0]=[e.createElementVNode("i",{class:"fas fa-info-circle text-xs"},null,-1)]),8,Mo)):e.createCommentVNode("",!0)])]),e.createElementVNode("td",Io,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s(t)),{item:t},null,8,["item"]))])]))),128))])])])):n.view==="grid"?(e.openBlock(),e.createElementBlock("div",So,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,t=>(e.openBlock(),e.createElementBlock("div",{key:t.id||t.label,class:"description-item-card bg-white border border-gray-200 rounded-lg p-4"},[e.createElementVNode("div",Lo,[t.icon?(e.openBlock(),e.createElementBlock("div",zo,[e.createElementVNode("i",{class:e.normalizeClass([t.icon,"text-gray-500 text-lg"])},null,2)])):e.createCommentVNode("",!0),e.createElementVNode("div",jo,[e.createElementVNode("div",Fo,[e.createElementVNode("h4",Ao,e.toDisplayString(t.label),1),t.tooltip?(e.openBlock(),e.createElementBlock("span",{key:0,class:"text-gray-400 cursor-help",title:t.tooltip},o[1]||(o[1]=[e.createElementVNode("i",{class:"fas fa-info-circle text-xs"},null,-1)]),8,Ho)):e.createCommentVNode("",!0)]),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s(t)),{item:t},null,8,["item"]))])])]))),128))])):(e.openBlock(),e.createElementBlock("div",Ro,[e.createElementVNode("table",Uo,[e.createElementVNode("tbody",Oo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,t=>(e.openBlock(),e.createElementBlock("tr",{key:t.id||t.label},[e.createElementVNode("td",Po,[e.createElementVNode("div",qo,[t.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass([t.icon,"text-gray-500"])},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(t.label)+" ",1),t.tooltip?(e.openBlock(),e.createElementBlock("span",{key:1,class:"text-gray-400 cursor-help",title:t.tooltip},o[2]||(o[2]=[e.createElementVNode("i",{class:"fas fa-info-circle text-xs"},null,-1)]),8,Wo)):e.createCommentVNode("",!0)])]),e.createElementVNode("td",Go,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s(t)),{item:t},null,8,["item"]))])]))),128))])])]))],14,Vo))}}),[["__scopeId","data-v-c1f51d80"]]);k.Card=ao,k.CardItem=lo,k.CommentsWidget=Te,k.CopyNotification=L,k.DescriptionListWidget=Ko,k.FilesWidget=Mt,k.GalleryWidget=Zt,k.HistoryWidget=Je,Object.defineProperty(k,Symbol.toStringTag,{value:"Module"})});
|