@expcat/tigercat-vue 0.3.69 → 0.3.70

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.
Files changed (221) hide show
  1. package/dist/chunk-53M2BTB5.mjs +22 -0
  2. package/dist/chunk-7AFJ7TKW.js +266 -0
  3. package/dist/chunk-GNKXBRXH.js +189 -0
  4. package/dist/chunk-HTMTOXUO.mjs +186 -0
  5. package/dist/chunk-K2U3FEL7.js +373 -0
  6. package/dist/chunk-K6HDRMPN.js +197 -0
  7. package/dist/chunk-LDCTSE6Y.mjs +60 -0
  8. package/dist/chunk-LNWRZKX2.js +64 -0
  9. package/dist/chunk-MB7W46IY.mjs +193 -0
  10. package/dist/chunk-MMQ34S5M.mjs +263 -0
  11. package/dist/chunk-PNKVD2UK.js +26 -0
  12. package/dist/chunk-T77L326M.mjs +370 -0
  13. package/dist/components/ActivityFeed.js +5 -4
  14. package/dist/components/ActivityFeed.mjs +3 -2
  15. package/dist/components/Alert.js +1 -0
  16. package/dist/components/Alert.mjs +1 -0
  17. package/dist/components/Anchor.js +1 -0
  18. package/dist/components/Anchor.mjs +1 -0
  19. package/dist/components/AnchorLink.js +1 -0
  20. package/dist/components/AnchorLink.mjs +1 -0
  21. package/dist/components/AreaChart.js +1 -0
  22. package/dist/components/AreaChart.mjs +1 -0
  23. package/dist/components/Avatar.js +1 -0
  24. package/dist/components/Avatar.mjs +1 -0
  25. package/dist/components/BackTop.js +1 -0
  26. package/dist/components/BackTop.mjs +1 -0
  27. package/dist/components/Badge.js +1 -0
  28. package/dist/components/Badge.mjs +1 -0
  29. package/dist/components/BarChart.js +1 -0
  30. package/dist/components/BarChart.mjs +1 -0
  31. package/dist/components/Breadcrumb.js +1 -0
  32. package/dist/components/Breadcrumb.mjs +1 -0
  33. package/dist/components/BreadcrumbItem.js +1 -0
  34. package/dist/components/BreadcrumbItem.mjs +1 -0
  35. package/dist/components/Button.js +1 -0
  36. package/dist/components/Button.mjs +1 -0
  37. package/dist/components/Card.js +1 -0
  38. package/dist/components/Card.mjs +1 -0
  39. package/dist/components/Carousel.js +1 -0
  40. package/dist/components/Carousel.mjs +1 -0
  41. package/dist/components/ChartAxis.js +1 -0
  42. package/dist/components/ChartAxis.mjs +1 -0
  43. package/dist/components/ChartCanvas.js +1 -0
  44. package/dist/components/ChartCanvas.mjs +1 -0
  45. package/dist/components/ChartGrid.js +1 -0
  46. package/dist/components/ChartGrid.mjs +1 -0
  47. package/dist/components/ChartLegend.js +1 -0
  48. package/dist/components/ChartLegend.mjs +1 -0
  49. package/dist/components/ChartSeries.js +1 -0
  50. package/dist/components/ChartSeries.mjs +1 -0
  51. package/dist/components/ChartTooltip.js +1 -0
  52. package/dist/components/ChartTooltip.mjs +1 -0
  53. package/dist/components/ChatWindow.js +1 -0
  54. package/dist/components/ChatWindow.mjs +1 -0
  55. package/dist/components/Checkbox.js +1 -0
  56. package/dist/components/Checkbox.mjs +1 -0
  57. package/dist/components/CheckboxGroup.js +1 -0
  58. package/dist/components/CheckboxGroup.mjs +1 -0
  59. package/dist/components/Code.js +1 -0
  60. package/dist/components/Code.mjs +1 -0
  61. package/dist/components/Col.js +1 -0
  62. package/dist/components/Col.mjs +1 -0
  63. package/dist/components/Collapse.js +1 -0
  64. package/dist/components/Collapse.mjs +1 -0
  65. package/dist/components/CollapsePanel.js +1 -0
  66. package/dist/components/CollapsePanel.mjs +1 -0
  67. package/dist/components/CommentThread.js +1 -0
  68. package/dist/components/CommentThread.mjs +1 -0
  69. package/dist/components/ConfigProvider.js +1 -0
  70. package/dist/components/ConfigProvider.mjs +1 -0
  71. package/dist/components/Container.js +1 -0
  72. package/dist/components/Container.mjs +1 -0
  73. package/dist/components/Content.js +1 -0
  74. package/dist/components/Content.mjs +1 -0
  75. package/dist/components/CropUpload.d.mts +97 -0
  76. package/dist/components/CropUpload.d.ts +97 -0
  77. package/dist/components/CropUpload.js +20 -0
  78. package/dist/components/CropUpload.mjs +5 -0
  79. package/dist/components/DataTableWithToolbar.js +1 -0
  80. package/dist/components/DataTableWithToolbar.mjs +1 -0
  81. package/dist/components/DatePicker.js +1 -0
  82. package/dist/components/DatePicker.mjs +1 -0
  83. package/dist/components/Descriptions.js +1 -0
  84. package/dist/components/Descriptions.mjs +1 -0
  85. package/dist/components/Divider.js +1 -0
  86. package/dist/components/Divider.mjs +1 -0
  87. package/dist/components/DonutChart.js +1 -0
  88. package/dist/components/DonutChart.mjs +1 -0
  89. package/dist/components/Drawer.d.mts +2 -2
  90. package/dist/components/Drawer.d.ts +2 -2
  91. package/dist/components/Drawer.js +1 -0
  92. package/dist/components/Drawer.mjs +1 -0
  93. package/dist/components/Dropdown.js +1 -0
  94. package/dist/components/Dropdown.mjs +1 -0
  95. package/dist/components/DropdownItem.js +1 -0
  96. package/dist/components/DropdownItem.mjs +1 -0
  97. package/dist/components/DropdownMenu.js +1 -0
  98. package/dist/components/DropdownMenu.mjs +1 -0
  99. package/dist/components/Footer.js +1 -0
  100. package/dist/components/Footer.mjs +1 -0
  101. package/dist/components/Form.js +1 -0
  102. package/dist/components/Form.mjs +1 -0
  103. package/dist/components/FormItem.js +1 -0
  104. package/dist/components/FormItem.mjs +1 -0
  105. package/dist/components/FormWizard.js +1 -0
  106. package/dist/components/FormWizard.mjs +1 -0
  107. package/dist/components/Header.js +1 -0
  108. package/dist/components/Header.mjs +1 -0
  109. package/dist/components/Icon.js +1 -0
  110. package/dist/components/Icon.mjs +1 -0
  111. package/dist/components/Image.d.mts +119 -0
  112. package/dist/components/Image.d.ts +119 -0
  113. package/dist/components/Image.js +22 -0
  114. package/dist/components/Image.mjs +3 -0
  115. package/dist/components/ImageCropper.d.mts +105 -0
  116. package/dist/components/ImageCropper.d.ts +105 -0
  117. package/dist/components/ImageCropper.js +17 -0
  118. package/dist/components/ImageCropper.mjs +2 -0
  119. package/dist/components/ImageGroup.d.mts +30 -0
  120. package/dist/components/ImageGroup.d.ts +30 -0
  121. package/dist/components/ImageGroup.js +22 -0
  122. package/dist/components/ImageGroup.mjs +3 -0
  123. package/dist/components/ImagePreview.d.mts +97 -0
  124. package/dist/components/ImagePreview.d.ts +97 -0
  125. package/dist/components/ImagePreview.js +17 -0
  126. package/dist/components/ImagePreview.mjs +5 -0
  127. package/dist/components/Input.js +1 -0
  128. package/dist/components/Input.mjs +1 -0
  129. package/dist/components/Layout.js +1 -0
  130. package/dist/components/Layout.mjs +1 -0
  131. package/dist/components/LineChart.js +1 -0
  132. package/dist/components/LineChart.mjs +1 -0
  133. package/dist/components/Link.js +1 -0
  134. package/dist/components/Link.mjs +1 -0
  135. package/dist/components/List.js +1 -0
  136. package/dist/components/List.mjs +1 -0
  137. package/dist/components/Loading.js +1 -0
  138. package/dist/components/Loading.mjs +1 -0
  139. package/dist/components/Menu.js +1 -0
  140. package/dist/components/Menu.mjs +1 -0
  141. package/dist/components/MenuItem.js +1 -0
  142. package/dist/components/MenuItem.mjs +1 -0
  143. package/dist/components/MenuItemGroup.js +1 -0
  144. package/dist/components/MenuItemGroup.mjs +1 -0
  145. package/dist/components/Message.js +1 -0
  146. package/dist/components/Message.mjs +1 -0
  147. package/dist/components/Modal.d.mts +2 -2
  148. package/dist/components/Modal.d.ts +2 -2
  149. package/dist/components/Modal.js +1 -0
  150. package/dist/components/Modal.mjs +1 -0
  151. package/dist/components/Notification.js +1 -0
  152. package/dist/components/Notification.mjs +1 -0
  153. package/dist/components/NotificationCenter.js +1 -0
  154. package/dist/components/NotificationCenter.mjs +1 -0
  155. package/dist/components/Pagination.js +1 -0
  156. package/dist/components/Pagination.mjs +1 -0
  157. package/dist/components/PieChart.js +1 -0
  158. package/dist/components/PieChart.mjs +1 -0
  159. package/dist/components/Popconfirm.js +1 -0
  160. package/dist/components/Popconfirm.mjs +1 -0
  161. package/dist/components/Popover.js +1 -0
  162. package/dist/components/Popover.mjs +1 -0
  163. package/dist/components/Progress.js +1 -0
  164. package/dist/components/Progress.mjs +1 -0
  165. package/dist/components/RadarChart.js +1 -0
  166. package/dist/components/RadarChart.mjs +1 -0
  167. package/dist/components/Radio.js +1 -0
  168. package/dist/components/Radio.mjs +1 -0
  169. package/dist/components/RadioGroup.js +1 -0
  170. package/dist/components/RadioGroup.mjs +1 -0
  171. package/dist/components/Row.js +1 -0
  172. package/dist/components/Row.mjs +1 -0
  173. package/dist/components/ScatterChart.js +1 -0
  174. package/dist/components/ScatterChart.mjs +1 -0
  175. package/dist/components/Select.js +1 -0
  176. package/dist/components/Select.mjs +1 -0
  177. package/dist/components/Sidebar.js +1 -0
  178. package/dist/components/Sidebar.mjs +1 -0
  179. package/dist/components/Skeleton.js +1 -0
  180. package/dist/components/Skeleton.mjs +1 -0
  181. package/dist/components/Slider.js +1 -0
  182. package/dist/components/Slider.mjs +1 -0
  183. package/dist/components/Space.js +1 -0
  184. package/dist/components/Space.mjs +1 -0
  185. package/dist/components/Steps.js +1 -0
  186. package/dist/components/Steps.mjs +1 -0
  187. package/dist/components/StepsItem.js +1 -0
  188. package/dist/components/StepsItem.mjs +1 -0
  189. package/dist/components/SubMenu.js +1 -0
  190. package/dist/components/SubMenu.mjs +1 -0
  191. package/dist/components/Switch.js +1 -0
  192. package/dist/components/Switch.mjs +1 -0
  193. package/dist/components/TabPane.js +1 -0
  194. package/dist/components/TabPane.mjs +1 -0
  195. package/dist/components/Table.js +1 -0
  196. package/dist/components/Table.mjs +1 -0
  197. package/dist/components/Tabs.js +1 -0
  198. package/dist/components/Tabs.mjs +1 -0
  199. package/dist/components/Tag.js +1 -0
  200. package/dist/components/Tag.mjs +1 -0
  201. package/dist/components/Text.js +1 -0
  202. package/dist/components/Text.mjs +1 -0
  203. package/dist/components/Textarea.js +1 -0
  204. package/dist/components/Textarea.mjs +1 -0
  205. package/dist/components/TimePicker.js +1 -0
  206. package/dist/components/TimePicker.mjs +1 -0
  207. package/dist/components/Timeline.js +1 -0
  208. package/dist/components/Timeline.mjs +1 -0
  209. package/dist/components/Tooltip.js +1 -0
  210. package/dist/components/Tooltip.mjs +1 -0
  211. package/dist/components/Tree.js +1 -0
  212. package/dist/components/Tree.mjs +1 -0
  213. package/dist/components/Upload.js +1 -0
  214. package/dist/components/Upload.mjs +1 -0
  215. package/dist/index.d.mts +5 -0
  216. package/dist/index.d.ts +5 -0
  217. package/dist/index.js +98 -70
  218. package/dist/index.mjs +26 -17
  219. package/package.json +2 -2
  220. package/dist/{chunk-RVEEEDJQ.mjs → chunk-D7VMY6WX.mjs} +1 -1
  221. package/dist/{chunk-EBTLMVDJ.js → chunk-NGW5UMAN.js} +1 -1
@@ -0,0 +1,370 @@
1
+ import { defineComponent, ref, watch, onMounted, computed, h } from 'vue';
2
+ import { classNames, imageCropperContainerClasses, coerceClassValue, mergeStyleValues, imageCropperImgClasses, imageCropperMaskClasses, imageCropperSelectionClasses, imageCropperDragAreaClasses, imageCropperGuideClasses, CROP_HANDLES, getCropperHandleClasses, getInitialCropRect, cropCanvas, moveCropRect, resizeCropRect } from '@expcat/tigercat-core';
3
+
4
+ // src/components/ImageCropper.ts
5
+ var ImageCropper = defineComponent({
6
+ name: "TigerImageCropper",
7
+ inheritAttrs: false,
8
+ props: {
9
+ src: { type: String, required: true },
10
+ aspectRatio: { type: Number, default: void 0 },
11
+ minWidth: { type: Number, default: 20 },
12
+ minHeight: { type: Number, default: 20 },
13
+ outputType: {
14
+ type: String,
15
+ default: "image/png"
16
+ },
17
+ quality: { type: Number, default: 0.92 },
18
+ guides: { type: Boolean, default: true },
19
+ className: { type: String, default: void 0 },
20
+ style: {
21
+ type: Object,
22
+ default: void 0
23
+ }
24
+ },
25
+ emits: ["crop-change", "ready"],
26
+ setup(props, { emit, attrs, expose }) {
27
+ const containerRef = ref(null);
28
+ const imageRef = ref(null);
29
+ const imageLoaded = ref(false);
30
+ const displayWidth = ref(0);
31
+ const displayHeight = ref(0);
32
+ const cropRect = ref({ x: 0, y: 0, width: 0, height: 0 });
33
+ const dragMode = ref("none");
34
+ const activeHandle = ref(null);
35
+ const dragStartPos = ref({ x: 0, y: 0 });
36
+ const dragStartRect = ref({ x: 0, y: 0, width: 0, height: 0 });
37
+ const loadImage = () => {
38
+ const img = new window.Image();
39
+ img.crossOrigin = "anonymous";
40
+ img.onload = () => {
41
+ imageRef.value = img;
42
+ if (containerRef.value) {
43
+ const containerW = containerRef.value.clientWidth;
44
+ const containerH = containerRef.value.clientHeight || 400;
45
+ const ratio = Math.min(containerW / img.naturalWidth, containerH / img.naturalHeight, 1);
46
+ displayWidth.value = img.naturalWidth * ratio;
47
+ displayHeight.value = img.naturalHeight * ratio;
48
+ } else {
49
+ displayWidth.value = img.naturalWidth;
50
+ displayHeight.value = img.naturalHeight;
51
+ }
52
+ cropRect.value = getInitialCropRect(
53
+ displayWidth.value,
54
+ displayHeight.value,
55
+ props.aspectRatio
56
+ );
57
+ imageLoaded.value = true;
58
+ emit("ready");
59
+ };
60
+ img.src = props.src;
61
+ };
62
+ watch(
63
+ () => props.src,
64
+ () => {
65
+ imageLoaded.value = false;
66
+ loadImage();
67
+ }
68
+ );
69
+ onMounted(() => {
70
+ loadImage();
71
+ });
72
+ const handleMouseDown = (e, mode, handle) => {
73
+ e.preventDefault();
74
+ e.stopPropagation();
75
+ dragMode.value = mode;
76
+ activeHandle.value = handle || null;
77
+ dragStartPos.value = { x: e.clientX, y: e.clientY };
78
+ dragStartRect.value = { ...cropRect.value };
79
+ const onMouseMove = (ev) => {
80
+ const dx = ev.clientX - dragStartPos.value.x;
81
+ const dy = ev.clientY - dragStartPos.value.y;
82
+ if (dragMode.value === "move") {
83
+ cropRect.value = moveCropRect(
84
+ dragStartRect.value,
85
+ dx,
86
+ dy,
87
+ displayWidth.value,
88
+ displayHeight.value
89
+ );
90
+ } else if (dragMode.value === "resize" && activeHandle.value) {
91
+ cropRect.value = resizeCropRect(
92
+ dragStartRect.value,
93
+ activeHandle.value,
94
+ dx,
95
+ dy,
96
+ displayWidth.value,
97
+ displayHeight.value,
98
+ props.aspectRatio,
99
+ props.minWidth,
100
+ props.minHeight
101
+ );
102
+ }
103
+ emit("crop-change", cropRect.value);
104
+ };
105
+ const onMouseUp = () => {
106
+ dragMode.value = "none";
107
+ activeHandle.value = null;
108
+ document.removeEventListener("mousemove", onMouseMove);
109
+ document.removeEventListener("mouseup", onMouseUp);
110
+ };
111
+ document.addEventListener("mousemove", onMouseMove);
112
+ document.addEventListener("mouseup", onMouseUp);
113
+ };
114
+ const handleTouchStart = (e, mode, handle) => {
115
+ if (e.touches.length !== 1) return;
116
+ e.preventDefault();
117
+ e.stopPropagation();
118
+ const touch = e.touches[0];
119
+ dragMode.value = mode;
120
+ activeHandle.value = handle || null;
121
+ dragStartPos.value = { x: touch.clientX, y: touch.clientY };
122
+ dragStartRect.value = { ...cropRect.value };
123
+ const onTouchMove = (ev) => {
124
+ if (ev.touches.length !== 1) return;
125
+ const t = ev.touches[0];
126
+ const dx = t.clientX - dragStartPos.value.x;
127
+ const dy = t.clientY - dragStartPos.value.y;
128
+ if (dragMode.value === "move") {
129
+ cropRect.value = moveCropRect(
130
+ dragStartRect.value,
131
+ dx,
132
+ dy,
133
+ displayWidth.value,
134
+ displayHeight.value
135
+ );
136
+ } else if (dragMode.value === "resize" && activeHandle.value) {
137
+ cropRect.value = resizeCropRect(
138
+ dragStartRect.value,
139
+ activeHandle.value,
140
+ dx,
141
+ dy,
142
+ displayWidth.value,
143
+ displayHeight.value,
144
+ props.aspectRatio,
145
+ props.minWidth,
146
+ props.minHeight
147
+ );
148
+ }
149
+ emit("crop-change", cropRect.value);
150
+ };
151
+ const onTouchEnd = () => {
152
+ dragMode.value = "none";
153
+ activeHandle.value = null;
154
+ document.removeEventListener("touchmove", onTouchMove);
155
+ document.removeEventListener("touchend", onTouchEnd);
156
+ };
157
+ document.addEventListener("touchmove", onTouchMove, { passive: false });
158
+ document.addEventListener("touchend", onTouchEnd);
159
+ };
160
+ const getCropResult = () => {
161
+ return new Promise((resolve, reject) => {
162
+ if (!imageRef.value) {
163
+ reject(new Error("Image not loaded"));
164
+ return;
165
+ }
166
+ const { canvas, dataUrl } = cropCanvas(
167
+ imageRef.value,
168
+ cropRect.value,
169
+ displayWidth.value,
170
+ displayHeight.value,
171
+ props.outputType,
172
+ props.quality
173
+ );
174
+ canvas.toBlob(
175
+ (blob) => {
176
+ if (blob) {
177
+ resolve({ canvas, blob, dataUrl, cropRect: { ...cropRect.value } });
178
+ } else {
179
+ reject(new Error("Failed to create blob"));
180
+ }
181
+ },
182
+ props.outputType,
183
+ props.quality
184
+ );
185
+ });
186
+ };
187
+ expose({ getCropResult });
188
+ const containerClasses = computed(
189
+ () => classNames(
190
+ imageCropperContainerClasses,
191
+ props.className,
192
+ coerceClassValue(attrs.class)
193
+ )
194
+ );
195
+ const containerStyle = computed(
196
+ () => mergeStyleValues(attrs.style, props.style)
197
+ );
198
+ return () => {
199
+ const forwardedAttrs = Object.fromEntries(
200
+ Object.entries(attrs).filter(([key]) => key !== "class" && key !== "style")
201
+ );
202
+ if (!imageLoaded.value) {
203
+ return h(
204
+ "div",
205
+ {
206
+ ...forwardedAttrs,
207
+ ref: containerRef,
208
+ class: classNames(containerClasses.value, "flex items-center justify-center"),
209
+ style: Object.assign({}, containerStyle.value, {
210
+ minHeight: "200px"
211
+ }),
212
+ role: "img",
213
+ "aria-label": "Loading image for cropping"
214
+ },
215
+ [
216
+ h("div", {
217
+ class: "w-8 h-8 border-2 border-white/30 border-t-white rounded-full animate-spin"
218
+ })
219
+ ]
220
+ );
221
+ }
222
+ const cr = cropRect.value;
223
+ const img = h("img", {
224
+ src: props.src,
225
+ class: imageCropperImgClasses,
226
+ style: {
227
+ width: `${displayWidth.value}px`,
228
+ height: `${displayHeight.value}px`
229
+ },
230
+ draggable: false,
231
+ alt: "Image to crop"
232
+ });
233
+ const mask = h(
234
+ "svg",
235
+ {
236
+ class: imageCropperMaskClasses,
237
+ width: displayWidth.value,
238
+ height: displayHeight.value,
239
+ xmlns: "http://www.w3.org/2000/svg"
240
+ },
241
+ [
242
+ h("defs", null, [
243
+ h("mask", { id: "crop-mask" }, [
244
+ h("rect", {
245
+ width: displayWidth.value,
246
+ height: displayHeight.value,
247
+ fill: "white"
248
+ }),
249
+ h("rect", {
250
+ x: cr.x,
251
+ y: cr.y,
252
+ width: cr.width,
253
+ height: cr.height,
254
+ fill: "black"
255
+ })
256
+ ])
257
+ ]),
258
+ h("rect", {
259
+ width: displayWidth.value,
260
+ height: displayHeight.value,
261
+ fill: "var(--tiger-image-cropper-mask, rgba(0,0,0,0.55))",
262
+ mask: "url(#crop-mask)"
263
+ })
264
+ ]
265
+ );
266
+ const selection = h("div", {
267
+ class: imageCropperSelectionClasses,
268
+ style: {
269
+ left: `${cr.x}px`,
270
+ top: `${cr.y}px`,
271
+ width: `${cr.width}px`,
272
+ height: `${cr.height}px`
273
+ }
274
+ });
275
+ const dragArea = h("div", {
276
+ class: imageCropperDragAreaClasses,
277
+ style: {
278
+ left: `${cr.x}px`,
279
+ top: `${cr.y}px`,
280
+ width: `${cr.width}px`,
281
+ height: `${cr.height}px`
282
+ },
283
+ onMousedown: (e) => handleMouseDown(e, "move"),
284
+ onTouchstart: (e) => handleTouchStart(e, "move")
285
+ });
286
+ const guideLines = props.guides ? [
287
+ // Horizontal lines
288
+ h("div", {
289
+ class: imageCropperGuideClasses,
290
+ style: {
291
+ left: `${cr.x}px`,
292
+ top: `${cr.y + cr.height / 3}px`,
293
+ width: `${cr.width}px`,
294
+ height: "0px",
295
+ borderTopWidth: "1px",
296
+ borderTopStyle: "dashed"
297
+ }
298
+ }),
299
+ h("div", {
300
+ class: imageCropperGuideClasses,
301
+ style: {
302
+ left: `${cr.x}px`,
303
+ top: `${cr.y + cr.height * 2 / 3}px`,
304
+ width: `${cr.width}px`,
305
+ height: "0px",
306
+ borderTopWidth: "1px",
307
+ borderTopStyle: "dashed"
308
+ }
309
+ }),
310
+ // Vertical lines
311
+ h("div", {
312
+ class: imageCropperGuideClasses,
313
+ style: {
314
+ left: `${cr.x + cr.width / 3}px`,
315
+ top: `${cr.y}px`,
316
+ width: "0px",
317
+ height: `${cr.height}px`,
318
+ borderLeftWidth: "1px",
319
+ borderLeftStyle: "dashed"
320
+ }
321
+ }),
322
+ h("div", {
323
+ class: imageCropperGuideClasses,
324
+ style: {
325
+ left: `${cr.x + cr.width * 2 / 3}px`,
326
+ top: `${cr.y}px`,
327
+ width: "0px",
328
+ height: `${cr.height}px`,
329
+ borderLeftWidth: "1px",
330
+ borderLeftStyle: "dashed"
331
+ }
332
+ })
333
+ ] : [];
334
+ const handles = CROP_HANDLES.map((handle) => {
335
+ const pos = {};
336
+ if (handle.includes("n")) pos.top = `${cr.y}px`;
337
+ if (handle.includes("s")) pos.top = `${cr.y + cr.height}px`;
338
+ if (handle === "e" || handle === "w") pos.top = `${cr.y + cr.height / 2}px`;
339
+ if (handle.includes("w")) pos.left = `${cr.x}px`;
340
+ if (handle.includes("e")) pos.left = `${cr.x + cr.width}px`;
341
+ if (handle === "n" || handle === "s") pos.left = `${cr.x + cr.width / 2}px`;
342
+ return h("div", {
343
+ class: getCropperHandleClasses(handle),
344
+ style: pos,
345
+ onMousedown: (e) => handleMouseDown(e, "resize", handle),
346
+ onTouchstart: (e) => handleTouchStart(e, "resize", handle)
347
+ });
348
+ });
349
+ return h(
350
+ "div",
351
+ {
352
+ ...forwardedAttrs,
353
+ ref: containerRef,
354
+ class: containerClasses.value,
355
+ style: Object.assign({}, containerStyle.value, {
356
+ width: `${displayWidth.value}px`,
357
+ height: `${displayHeight.value}px`
358
+ }),
359
+ role: "application",
360
+ "aria-label": "Image cropper",
361
+ "aria-roledescription": "image cropper"
362
+ },
363
+ [img, mask, selection, dragArea, ...guideLines, ...handles]
364
+ );
365
+ };
366
+ }
367
+ });
368
+ var ImageCropper_default = ImageCropper;
369
+
370
+ export { ImageCropper, ImageCropper_default };
@@ -2,22 +2,23 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkEBTLMVDJ_js = require('../chunk-EBTLMVDJ.js');
5
+ var chunkNGW5UMAN_js = require('../chunk-NGW5UMAN.js');
6
6
  require('../chunk-27T3QDSF.js');
7
- require('../chunk-ZED7TU62.js');
8
7
  require('../chunk-DN5GU5PC.js');
8
+ require('../chunk-ZED7TU62.js');
9
9
  require('../chunk-2KDSHEZT.js');
10
10
  require('../chunk-DUQ7Q2GO.js');
11
11
  require('../chunk-WEFQCJAG.js');
12
12
  require('../chunk-WPIDP6IG.js');
13
+ require('../chunk-PNKVD2UK.js');
13
14
 
14
15
 
15
16
 
16
17
  Object.defineProperty(exports, "ActivityFeed", {
17
18
  enumerable: true,
18
- get: function () { return chunkEBTLMVDJ_js.ActivityFeed; }
19
+ get: function () { return chunkNGW5UMAN_js.ActivityFeed; }
19
20
  });
20
21
  Object.defineProperty(exports, "default", {
21
22
  enumerable: true,
22
- get: function () { return chunkEBTLMVDJ_js.ActivityFeed_default; }
23
+ get: function () { return chunkNGW5UMAN_js.ActivityFeed_default; }
23
24
  });
@@ -1,8 +1,9 @@
1
- export { ActivityFeed, ActivityFeed_default as default } from '../chunk-RVEEEDJQ.mjs';
1
+ export { ActivityFeed, ActivityFeed_default as default } from '../chunk-D7VMY6WX.mjs';
2
2
  import '../chunk-LBGTABIU.mjs';
3
- import '../chunk-4YHOD7LT.mjs';
4
3
  import '../chunk-Q6OYCTQO.mjs';
4
+ import '../chunk-4YHOD7LT.mjs';
5
5
  import '../chunk-3G4VPV4D.mjs';
6
6
  import '../chunk-6V7XCCXN.mjs';
7
7
  import '../chunk-YXN3YY5Y.mjs';
8
8
  import '../chunk-COCECPMG.mjs';
9
+ import '../chunk-53M2BTB5.mjs';
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var chunkSKV2HHBC_js = require('../chunk-SKV2HHBC.js');
6
6
  require('../chunk-OOKS4KMK.js');
7
+ require('../chunk-PNKVD2UK.js');
7
8
 
8
9
 
9
10
 
@@ -1,2 +1,3 @@
1
1
  export { Alert, Alert_default as default } from '../chunk-J5J4UYGP.mjs';
2
2
  import '../chunk-7RRA3TIG.mjs';
3
+ import '../chunk-53M2BTB5.mjs';
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var chunkR77ZKZ5F_js = require('../chunk-R77ZKZ5F.js');
6
+ require('../chunk-PNKVD2UK.js');
6
7
 
7
8
 
8
9
 
@@ -1 +1,2 @@
1
1
  export { Anchor, AnchorContextKey, Anchor_default as default } from '../chunk-LRHJZP2C.mjs';
2
+ import '../chunk-53M2BTB5.mjs';
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var chunkEBQ4WSQS_js = require('../chunk-EBQ4WSQS.js');
6
6
  require('../chunk-R77ZKZ5F.js');
7
+ require('../chunk-PNKVD2UK.js');
7
8
 
8
9
 
9
10
 
@@ -1,2 +1,3 @@
1
1
  export { AnchorLink, AnchorLink_default as default } from '../chunk-BMW2Z3G3.mjs';
2
2
  import '../chunk-LRHJZP2C.mjs';
3
+ import '../chunk-53M2BTB5.mjs';
@@ -10,6 +10,7 @@ require('../chunk-BKTQ6RWR.js');
10
10
  require('../chunk-HBFFINAI.js');
11
11
  require('../chunk-EPE6OOV7.js');
12
12
  require('../chunk-5PXTMXXS.js');
13
+ require('../chunk-PNKVD2UK.js');
13
14
 
14
15
 
15
16
 
@@ -6,3 +6,4 @@ import '../chunk-F5HOHSFH.mjs';
6
6
  import '../chunk-2ZUEXCVJ.mjs';
7
7
  import '../chunk-FXGIIFGN.mjs';
8
8
  import '../chunk-ZWVA7HT3.mjs';
9
+ import '../chunk-53M2BTB5.mjs';
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var chunkWPIDP6IG_js = require('../chunk-WPIDP6IG.js');
6
+ require('../chunk-PNKVD2UK.js');
6
7
 
7
8
 
8
9
 
@@ -1 +1,2 @@
1
1
  export { Avatar, Avatar_default as default } from '../chunk-COCECPMG.mjs';
2
+ import '../chunk-53M2BTB5.mjs';
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var chunkUUGAOKYR_js = require('../chunk-UUGAOKYR.js');
6
+ require('../chunk-PNKVD2UK.js');
6
7
 
7
8
 
8
9
 
@@ -1 +1,2 @@
1
1
  export { BackTop, BackTop_default as default } from '../chunk-URYEEQD7.mjs';
2
+ import '../chunk-53M2BTB5.mjs';
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var chunkPQMZ3YN3_js = require('../chunk-PQMZ3YN3.js');
6
+ require('../chunk-PNKVD2UK.js');
6
7
 
7
8
 
8
9
 
@@ -1 +1,2 @@
1
1
  export { Badge, Badge_default as default } from '../chunk-HVVPFQW2.mjs';
2
+ import '../chunk-53M2BTB5.mjs';
@@ -10,6 +10,7 @@ require('../chunk-BKTQ6RWR.js');
10
10
  require('../chunk-HBFFINAI.js');
11
11
  require('../chunk-EPE6OOV7.js');
12
12
  require('../chunk-5PXTMXXS.js');
13
+ require('../chunk-PNKVD2UK.js');
13
14
 
14
15
 
15
16
 
@@ -6,3 +6,4 @@ import '../chunk-F5HOHSFH.mjs';
6
6
  import '../chunk-2ZUEXCVJ.mjs';
7
7
  import '../chunk-FXGIIFGN.mjs';
8
8
  import '../chunk-ZWVA7HT3.mjs';
9
+ import '../chunk-53M2BTB5.mjs';
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var chunkVTLTKTCK_js = require('../chunk-VTLTKTCK.js');
6
+ require('../chunk-PNKVD2UK.js');
6
7
 
7
8
 
8
9
 
@@ -1 +1,2 @@
1
1
  export { Breadcrumb, BreadcrumbContextKey, Breadcrumb_default as default } from '../chunk-U6WHPSWN.mjs';
2
+ import '../chunk-53M2BTB5.mjs';
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var chunkPCGHIFIJ_js = require('../chunk-PCGHIFIJ.js');
6
6
  require('../chunk-VTLTKTCK.js');
7
+ require('../chunk-PNKVD2UK.js');
7
8
 
8
9
 
9
10
 
@@ -1,2 +1,3 @@
1
1
  export { BreadcrumbItem, BreadcrumbItem_default as default } from '../chunk-TG4PXQKX.mjs';
2
2
  import '../chunk-U6WHPSWN.mjs';
3
+ import '../chunk-53M2BTB5.mjs';
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var chunkDELTFEEJ_js = require('../chunk-DELTFEEJ.js');
6
+ require('../chunk-PNKVD2UK.js');
6
7
 
7
8
 
8
9
 
@@ -1 +1,2 @@
1
1
  export { Button, Button_default as default } from '../chunk-D6MR5YRE.mjs';
2
+ import '../chunk-53M2BTB5.mjs';
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var chunkWEFQCJAG_js = require('../chunk-WEFQCJAG.js');
6
+ require('../chunk-PNKVD2UK.js');
6
7
 
7
8
 
8
9
 
@@ -1 +1,2 @@
1
1
  export { Card, Card_default as default } from '../chunk-YXN3YY5Y.mjs';
2
+ import '../chunk-53M2BTB5.mjs';
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var chunkXV5DEK27_js = require('../chunk-XV5DEK27.js');
6
+ require('../chunk-PNKVD2UK.js');
6
7
 
7
8
 
8
9
 
@@ -1 +1,2 @@
1
1
  export { Carousel, Carousel_default as default } from '../chunk-FDYZ7NTQ.mjs';
2
+ import '../chunk-53M2BTB5.mjs';
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var chunk5PXTMXXS_js = require('../chunk-5PXTMXXS.js');
6
+ require('../chunk-PNKVD2UK.js');
6
7
 
7
8
 
8
9
 
@@ -1 +1,2 @@
1
1
  export { ChartAxis, ChartAxis_default as default } from '../chunk-ZWVA7HT3.mjs';
2
+ import '../chunk-53M2BTB5.mjs';
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var chunkFCV4ML6I_js = require('../chunk-FCV4ML6I.js');
6
+ require('../chunk-PNKVD2UK.js');
6
7
 
7
8
 
8
9
 
@@ -1 +1,2 @@
1
1
  export { ChartCanvas, ChartCanvas_default as default } from '../chunk-5WHLXWWT.mjs';
2
+ import '../chunk-53M2BTB5.mjs';
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var chunk57MJTNDL_js = require('../chunk-57MJTNDL.js');
6
+ require('../chunk-PNKVD2UK.js');
6
7
 
7
8
 
8
9
 
@@ -1 +1,2 @@
1
1
  export { ChartGrid, ChartGrid_default as default } from '../chunk-MI6TL3CQ.mjs';
2
+ import '../chunk-53M2BTB5.mjs';
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var chunkBKTQ6RWR_js = require('../chunk-BKTQ6RWR.js');
6
+ require('../chunk-PNKVD2UK.js');
6
7
 
7
8
 
8
9
 
@@ -1 +1,2 @@
1
1
  export { ChartLegend, ChartLegend_default as default } from '../chunk-F5HOHSFH.mjs';
2
+ import '../chunk-53M2BTB5.mjs';
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var chunkHBFFINAI_js = require('../chunk-HBFFINAI.js');
6
+ require('../chunk-PNKVD2UK.js');
6
7
 
7
8
 
8
9
 
@@ -1 +1,2 @@
1
1
  export { ChartSeries, ChartSeries_default as default } from '../chunk-2ZUEXCVJ.mjs';
2
+ import '../chunk-53M2BTB5.mjs';
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var chunkEPE6OOV7_js = require('../chunk-EPE6OOV7.js');
6
+ require('../chunk-PNKVD2UK.js');
6
7
 
7
8
 
8
9