@useupup/vue 3.3.0

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 (175) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +67 -0
  3. package/dist/AudioUploader-6ZMGQ3GT.cjs +376 -0
  4. package/dist/AudioUploader-6ZMGQ3GT.cjs.map +1 -0
  5. package/dist/AudioUploader-IEWPI3TS.js +376 -0
  6. package/dist/AudioUploader-IEWPI3TS.js.map +1 -0
  7. package/dist/BoxUploader-S6CGJLO7.cjs +214 -0
  8. package/dist/BoxUploader-S6CGJLO7.cjs.map +1 -0
  9. package/dist/BoxUploader-TIDCYWMC.js +214 -0
  10. package/dist/BoxUploader-TIDCYWMC.js.map +1 -0
  11. package/dist/CameraUploader-575RARRY.js +258 -0
  12. package/dist/CameraUploader-575RARRY.js.map +1 -0
  13. package/dist/CameraUploader-LBIVBECB.cjs +258 -0
  14. package/dist/CameraUploader-LBIVBECB.cjs.map +1 -0
  15. package/dist/DropboxUploader-HTGDBDTB.cjs +216 -0
  16. package/dist/DropboxUploader-HTGDBDTB.cjs.map +1 -0
  17. package/dist/DropboxUploader-M2LY2Q32.js +216 -0
  18. package/dist/DropboxUploader-M2LY2Q32.js.map +1 -0
  19. package/dist/GoogleDriveUploader-R3WJYLW7.cjs +220 -0
  20. package/dist/GoogleDriveUploader-R3WJYLW7.cjs.map +1 -0
  21. package/dist/GoogleDriveUploader-SAY4C2QY.js +220 -0
  22. package/dist/GoogleDriveUploader-SAY4C2QY.js.map +1 -0
  23. package/dist/OneDriveUploader-EDB3RJA4.js +219 -0
  24. package/dist/OneDriveUploader-EDB3RJA4.js.map +1 -0
  25. package/dist/OneDriveUploader-WYALTOCQ.cjs +219 -0
  26. package/dist/OneDriveUploader-WYALTOCQ.cjs.map +1 -0
  27. package/dist/ScreenCaptureUploader-F65CM6OA.js +334 -0
  28. package/dist/ScreenCaptureUploader-F65CM6OA.js.map +1 -0
  29. package/dist/ScreenCaptureUploader-TZ74W7WQ.cjs +334 -0
  30. package/dist/ScreenCaptureUploader-TZ74W7WQ.cjs.map +1 -0
  31. package/dist/UrlUploader-PXEGUBQ4.js +143 -0
  32. package/dist/UrlUploader-PXEGUBQ4.js.map +1 -0
  33. package/dist/UrlUploader-TLYGV433.cjs +143 -0
  34. package/dist/UrlUploader-TLYGV433.cjs.map +1 -0
  35. package/dist/assets/logos.d.ts +5 -0
  36. package/dist/assets/logos.d.ts.map +1 -0
  37. package/dist/chunk-D32QOALR.cjs +1083 -0
  38. package/dist/chunk-D32QOALR.cjs.map +1 -0
  39. package/dist/chunk-GG4ABGXB.cjs +62 -0
  40. package/dist/chunk-GG4ABGXB.cjs.map +1 -0
  41. package/dist/chunk-GVB7IFRP.cjs +0 -0
  42. package/dist/chunk-GVB7IFRP.cjs.map +1 -0
  43. package/dist/chunk-IXLKUMV2.cjs +55 -0
  44. package/dist/chunk-IXLKUMV2.cjs.map +1 -0
  45. package/dist/chunk-M6AHIQ3M.js +62 -0
  46. package/dist/chunk-M6AHIQ3M.js.map +1 -0
  47. package/dist/chunk-PPPFIWFQ.js +1083 -0
  48. package/dist/chunk-PPPFIWFQ.js.map +1 -0
  49. package/dist/chunk-RZ7RTSRZ.js +55 -0
  50. package/dist/chunk-RZ7RTSRZ.js.map +1 -0
  51. package/dist/chunk-X6FZTCNT.js +0 -0
  52. package/dist/chunk-X6FZTCNT.js.map +1 -0
  53. package/dist/components/AudioUploader.vue.d.ts +3 -0
  54. package/dist/components/AudioUploader.vue.d.ts.map +1 -0
  55. package/dist/components/AudioWaveform.vue.d.ts +16 -0
  56. package/dist/components/AudioWaveform.vue.d.ts.map +1 -0
  57. package/dist/components/BoxUploader.vue.d.ts +3 -0
  58. package/dist/components/BoxUploader.vue.d.ts.map +1 -0
  59. package/dist/components/CameraUploader.vue.d.ts +3 -0
  60. package/dist/components/CameraUploader.vue.d.ts.map +1 -0
  61. package/dist/components/ClientBoxUploader.vue.d.ts +3 -0
  62. package/dist/components/ClientBoxUploader.vue.d.ts.map +1 -0
  63. package/dist/components/ClientDropboxUploader.vue.d.ts +3 -0
  64. package/dist/components/ClientDropboxUploader.vue.d.ts.map +1 -0
  65. package/dist/components/ClientGoogleDriveUploader.vue.d.ts +3 -0
  66. package/dist/components/ClientGoogleDriveUploader.vue.d.ts.map +1 -0
  67. package/dist/components/ClientOneDriveUploader.vue.d.ts +3 -0
  68. package/dist/components/ClientOneDriveUploader.vue.d.ts.map +1 -0
  69. package/dist/components/DefaultLoaderIcon.vue.d.ts +3 -0
  70. package/dist/components/DefaultLoaderIcon.vue.d.ts.map +1 -0
  71. package/dist/components/DropboxUploader.vue.d.ts +3 -0
  72. package/dist/components/DropboxUploader.vue.d.ts.map +1 -0
  73. package/dist/components/FileHero.vue.d.ts +13 -0
  74. package/dist/components/FileHero.vue.d.ts.map +1 -0
  75. package/dist/components/FileIcon.vue.d.ts +9 -0
  76. package/dist/components/FileIcon.vue.d.ts.map +1 -0
  77. package/dist/components/FileItem.vue.d.ts +14 -0
  78. package/dist/components/FileItem.vue.d.ts.map +1 -0
  79. package/dist/components/FileList.vue.d.ts +3 -0
  80. package/dist/components/FileList.vue.d.ts.map +1 -0
  81. package/dist/components/FilePreview.vue.d.ts +22 -0
  82. package/dist/components/FilePreview.vue.d.ts.map +1 -0
  83. package/dist/components/FilePreviewPortal.vue.d.ts +15 -0
  84. package/dist/components/FilePreviewPortal.vue.d.ts.map +1 -0
  85. package/dist/components/FilePreviewThumbnail.vue.d.ts +19 -0
  86. package/dist/components/FilePreviewThumbnail.vue.d.ts.map +1 -0
  87. package/dist/components/FileRow.vue.d.ts +17 -0
  88. package/dist/components/FileRow.vue.d.ts.map +1 -0
  89. package/dist/components/GoogleDriveUploader.vue.d.ts +3 -0
  90. package/dist/components/GoogleDriveUploader.vue.d.ts.map +1 -0
  91. package/dist/components/Icon.d.ts +36 -0
  92. package/dist/components/Icon.d.ts.map +1 -0
  93. package/dist/components/Icons.d.ts +10 -0
  94. package/dist/components/Icons.d.ts.map +1 -0
  95. package/dist/components/ImageEditorStub.vue.d.ts +3 -0
  96. package/dist/components/ImageEditorStub.vue.d.ts.map +1 -0
  97. package/dist/components/OneDriveUploader.vue.d.ts +3 -0
  98. package/dist/components/OneDriveUploader.vue.d.ts.map +1 -0
  99. package/dist/components/ScreenCaptureUploader.vue.d.ts +3 -0
  100. package/dist/components/ScreenCaptureUploader.vue.d.ts.map +1 -0
  101. package/dist/components/ServerModeDriveUploader.vue.d.ts +9 -0
  102. package/dist/components/ServerModeDriveUploader.vue.d.ts.map +1 -0
  103. package/dist/components/SourceSelector.vue.d.ts +3 -0
  104. package/dist/components/SourceSelector.vue.d.ts.map +1 -0
  105. package/dist/components/SourceView.vue.d.ts +3 -0
  106. package/dist/components/SourceView.vue.d.ts.map +1 -0
  107. package/dist/components/UploaderPanel.vue.d.ts +3 -0
  108. package/dist/components/UploaderPanel.vue.d.ts.map +1 -0
  109. package/dist/components/UrlUploader.vue.d.ts +3 -0
  110. package/dist/components/UrlUploader.vue.d.ts.map +1 -0
  111. package/dist/components/shared/DriveAuthFallback.vue.d.ts +12 -0
  112. package/dist/components/shared/DriveAuthFallback.vue.d.ts.map +1 -0
  113. package/dist/components/shared/DriveBrowser.vue.d.ts +28 -0
  114. package/dist/components/shared/DriveBrowser.vue.d.ts.map +1 -0
  115. package/dist/components/shared/DriveBrowserHeader.vue.d.ts +13 -0
  116. package/dist/components/shared/DriveBrowserHeader.vue.d.ts.map +1 -0
  117. package/dist/components/shared/DriveBrowserIcon.vue.d.ts +7 -0
  118. package/dist/components/shared/DriveBrowserIcon.vue.d.ts.map +1 -0
  119. package/dist/components/shared/DriveBrowserItem.vue.d.ts +9 -0
  120. package/dist/components/shared/DriveBrowserItem.vue.d.ts.map +1 -0
  121. package/dist/components/shared/FileSuccessCheck.vue.d.ts +20 -0
  122. package/dist/components/shared/FileSuccessCheck.vue.d.ts.map +1 -0
  123. package/dist/components/shared/ProgressBar.vue.d.ts +11 -0
  124. package/dist/components/shared/ProgressBar.vue.d.ts.map +1 -0
  125. package/dist/components/shared/SourceViewContainer.vue.d.ts +18 -0
  126. package/dist/components/shared/SourceViewContainer.vue.d.ts.map +1 -0
  127. package/dist/components/shared/UploaderHeader.vue.d.ts +15 -0
  128. package/dist/components/shared/UploaderHeader.vue.d.ts.map +1 -0
  129. package/dist/composables/use-tiles-per-row.d.ts +10 -0
  130. package/dist/composables/use-tiles-per-row.d.ts.map +1 -0
  131. package/dist/composables/useBox.d.ts +28 -0
  132. package/dist/composables/useBox.d.ts.map +1 -0
  133. package/dist/composables/useCameraUploader.d.ts +25 -0
  134. package/dist/composables/useCameraUploader.d.ts.map +1 -0
  135. package/dist/composables/useDropbox.d.ts +28 -0
  136. package/dist/composables/useDropbox.d.ts.map +1 -0
  137. package/dist/composables/useFetchFileByUrl.d.ts +8 -0
  138. package/dist/composables/useFetchFileByUrl.d.ts.map +1 -0
  139. package/dist/composables/useGoogleDrive.d.ts +28 -0
  140. package/dist/composables/useGoogleDrive.d.ts.map +1 -0
  141. package/dist/composables/useOneDrive.d.ts +29 -0
  142. package/dist/composables/useOneDrive.d.ts.map +1 -0
  143. package/dist/composables/useSSEProcessing.d.ts +19 -0
  144. package/dist/composables/useSSEProcessing.d.ts.map +1 -0
  145. package/dist/composables/useServerModeDrive.d.ts +17 -0
  146. package/dist/composables/useServerModeDrive.d.ts.map +1 -0
  147. package/dist/composables/useSourceSelector.d.ts +13 -0
  148. package/dist/composables/useSourceSelector.d.ts.map +1 -0
  149. package/dist/composables/useUploaderController.d.ts +4 -0
  150. package/dist/composables/useUploaderController.d.ts.map +1 -0
  151. package/dist/composables/useUploaderPanel.d.ts +13 -0
  152. package/dist/composables/useUploaderPanel.d.ts.map +1 -0
  153. package/dist/context/source-view-header-extra.d.ts +4 -0
  154. package/dist/context/source-view-header-extra.d.ts.map +1 -0
  155. package/dist/context/uploader-context.d.ts +95 -0
  156. package/dist/context/uploader-context.d.ts.map +1 -0
  157. package/dist/index.cjs +4405 -0
  158. package/dist/index.cjs.map +1 -0
  159. package/dist/index.d.ts +9 -0
  160. package/dist/index.d.ts.map +1 -0
  161. package/dist/index.js +4405 -0
  162. package/dist/index.js.map +1 -0
  163. package/dist/lib/constants.d.ts +11 -0
  164. package/dist/lib/constants.d.ts.map +1 -0
  165. package/dist/lib/view-mode.d.ts +24 -0
  166. package/dist/lib/view-mode.d.ts.map +1 -0
  167. package/dist/shared/types.d.ts +15 -0
  168. package/dist/shared/types.d.ts.map +1 -0
  169. package/dist/styles.d.ts +4 -0
  170. package/dist/tailwind-prefixed.css +2508 -0
  171. package/dist/upup-uploader.vue.d.ts +18 -0
  172. package/dist/upup-uploader.vue.d.ts.map +1 -0
  173. package/dist/use-upup-upload.d.ts +38 -0
  174. package/dist/use-upup-upload.d.ts.map +1 -0
  175. package/package.json +100 -0
@@ -0,0 +1,334 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkGG4ABGXBcjs = require('./chunk-GG4ABGXB.cjs');
4
+
5
+
6
+
7
+
8
+
9
+ var _chunkGVB7IFRPcjs = require('./chunk-GVB7IFRP.cjs');
10
+
11
+ // src/components/ScreenCaptureUploader.vue
12
+ var _vue = require('vue');
13
+
14
+ var _internal = require('@useupup/core/internal');
15
+
16
+ var _sfc_main = /* @__PURE__ */ _vue.defineComponent.call(void 0, {
17
+ __name: "ScreenCaptureUploader",
18
+ setup(__props, { expose: __expose }) {
19
+ __expose();
20
+ const { setFiles } = _chunkGVB7IFRPcjs.useUploaderFiles.call(void 0, );
21
+ const { setActiveSource } = _chunkGVB7IFRPcjs.useUploaderSource.call(void 0, );
22
+ const { isDark: dark } = _chunkGVB7IFRPcjs.useUploaderTheme.call(void 0, );
23
+ const state = _vue.ref.call(void 0, "idle");
24
+ const duration = _vue.ref.call(void 0, 0);
25
+ const videoUrl = _vue.ref.call(void 0, null);
26
+ const error = _vue.ref.call(void 0, null);
27
+ const mediaRecorder = _vue.ref.call(void 0, null);
28
+ const chunks = [];
29
+ const timerRef = _vue.ref.call(void 0, null);
30
+ const streamRef = _vue.ref.call(void 0, null);
31
+ const videoRef = _vue.ref.call(void 0, null);
32
+ let previewRef = null;
33
+ _vue.onUnmounted.call(void 0, () => {
34
+ var _a;
35
+ if (timerRef.value) clearInterval(timerRef.value);
36
+ if (videoUrl.value) URL.revokeObjectURL(videoUrl.value);
37
+ (_a = streamRef.value) == null ? void 0 : _a.getTracks().forEach((t) => t.stop());
38
+ });
39
+ function bindPreview(el) {
40
+ var _a;
41
+ const video = el instanceof HTMLVideoElement ? el : null;
42
+ previewRef = video;
43
+ if (video && streamRef.value && video.srcObject !== streamRef.value) {
44
+ video.srcObject = streamRef.value;
45
+ void ((_a = video.play()) == null ? void 0 : _a.catch(() => {
46
+ }));
47
+ }
48
+ }
49
+ async function startRecording() {
50
+ try {
51
+ const stream = await navigator.mediaDevices.getDisplayMedia({
52
+ video: true,
53
+ audio: true
54
+ });
55
+ streamRef.value = stream;
56
+ chunks.length = 0;
57
+ const [videoTrack] = stream.getVideoTracks();
58
+ if (videoTrack) {
59
+ videoTrack.onended = () => {
60
+ if (mediaRecorder.value && mediaRecorder.value.state !== "inactive") {
61
+ mediaRecorder.value.stop();
62
+ }
63
+ if (timerRef.value) clearInterval(timerRef.value);
64
+ state.value = "recorded";
65
+ };
66
+ }
67
+ const recorder = new MediaRecorder(stream);
68
+ mediaRecorder.value = recorder;
69
+ recorder.ondataavailable = (e) => {
70
+ if (e.data.size > 0) chunks.push(e.data);
71
+ };
72
+ recorder.onstop = () => {
73
+ const blob = new Blob(chunks, { type: recorder.mimeType || "video/webm" });
74
+ videoUrl.value = URL.createObjectURL(blob);
75
+ stream.getTracks().forEach((t) => t.stop());
76
+ if (previewRef) previewRef.srcObject = null;
77
+ };
78
+ recorder.start();
79
+ state.value = "recording";
80
+ duration.value = 0;
81
+ timerRef.value = setInterval(() => {
82
+ duration.value++;
83
+ }, 1e3);
84
+ } catch (e2) {
85
+ error.value = "Screen sharing was cancelled or denied. Please try again.";
86
+ }
87
+ }
88
+ function stopRecording() {
89
+ var _a;
90
+ (_a = mediaRecorder.value) == null ? void 0 : _a.stop();
91
+ if (timerRef.value) clearInterval(timerRef.value);
92
+ state.value = "recorded";
93
+ }
94
+ function discardRecording() {
95
+ if (videoUrl.value) URL.revokeObjectURL(videoUrl.value);
96
+ videoUrl.value = null;
97
+ duration.value = 0;
98
+ state.value = "idle";
99
+ }
100
+ function addRecording() {
101
+ if (!videoUrl.value) return;
102
+ fetch(videoUrl.value).then((r) => r.blob()).then((blob) => {
103
+ const file = new File([blob], `screen-recording-${Date.now()}.webm`, { type: blob.type });
104
+ setFiles([file]);
105
+ setActiveSource(void 0);
106
+ }).catch(() => {
107
+ });
108
+ }
109
+ function retryRecording() {
110
+ error.value = null;
111
+ startRecording();
112
+ }
113
+ function formatTime(s) {
114
+ const m = Math.floor(s / 60);
115
+ const sec = s % 60;
116
+ return `${m}:${sec.toString().padStart(2, "0")}`;
117
+ }
118
+ const __returned__ = {
119
+ setFiles,
120
+ setActiveSource,
121
+ dark,
122
+ state,
123
+ duration,
124
+ videoUrl,
125
+ error,
126
+ mediaRecorder,
127
+ chunks,
128
+ timerRef,
129
+ streamRef,
130
+ videoRef,
131
+ get previewRef() {
132
+ return previewRef;
133
+ },
134
+ set previewRef(v) {
135
+ previewRef = v;
136
+ },
137
+ bindPreview,
138
+ startRecording,
139
+ stopRecording,
140
+ discardRecording,
141
+ addRecording,
142
+ retryRecording,
143
+ formatTime,
144
+ get cn() {
145
+ return _internal.cn;
146
+ },
147
+ SourceViewContainer: _chunkGG4ABGXBcjs.SourceViewContainer_default
148
+ };
149
+ Object.defineProperty(__returned__, "__isScriptSetup", {
150
+ enumerable: false,
151
+ value: true
152
+ });
153
+ return __returned__;
154
+ }
155
+ });
156
+ var _hoisted_1 = { class: "upup-flex upup-flex-col upup-items-center upup-gap-3 upup-p-6 upup-text-center" };
157
+ var _hoisted_2 = { class: "upup-flex upup-h-full upup-w-full upup-flex-col upup-items-center upup-justify-center upup-gap-4 upup-p-4" };
158
+ var _hoisted_3 = {
159
+ key: 0,
160
+ class: "upup-flex upup-flex-col upup-items-center upup-gap-4"
161
+ };
162
+ var _hoisted_4 = { class: "upup-flex upup-h-20 upup-w-20 upup-items-center upup-justify-center upup-rounded-full upup-bg-[#0ea5e9]/20" };
163
+ var _hoisted_5 = ["stroke"];
164
+ var _hoisted_6 = { class: "upup-relative upup-flex upup-min-h-0 upup-w-full upup-max-w-md upup-flex-1" };
165
+ var _hoisted_7 = {
166
+ "data-upup-slot": "screen-rec-chip",
167
+ class: "upup-absolute upup-left-2.5 upup-top-2.5 upup-flex upup-items-center upup-gap-1.5 upup-rounded-md upup-bg-[#04080f]/60 upup-px-2 upup-py-1 upup-font-mono upup-text-[11px] upup-tabular-nums upup-text-[#fecdd3]"
168
+ };
169
+ var _hoisted_8 = ["src"];
170
+ var _hoisted_9 = { class: "upup-flex upup-gap-3" };
171
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
172
+ return _vue.openBlock.call(void 0, ), _vue.createElementBlock.call(void 0,
173
+ _vue.Fragment,
174
+ null,
175
+ [_vue.createCommentVNode.call(void 0, " Error state "), $setup.error ? (_vue.openBlock.call(void 0, ), _vue.createBlock.call(void 0, $setup["SourceViewContainer"], {
176
+ key: 0,
177
+ "data-upup-slot": "screen-capture-uploader"
178
+ }, {
179
+ default: _vue.withCtx.call(void 0, () => [_vue.createElementVNode.call(void 0, "div", _hoisted_1, [_vue.createElementVNode.call(void 0,
180
+ "p",
181
+ { class: _vue.normalizeClass.call(void 0, $setup.cn("upup-text-sm upup-text-red-500", { "upup-text-red-400": $setup.dark })) },
182
+ _vue.toDisplayString.call(void 0, $setup.error),
183
+ 3
184
+ /* TEXT, CLASS */
185
+ ), _vue.createElementVNode.call(void 0,
186
+ "button",
187
+ {
188
+ type: "button",
189
+ class: _vue.normalizeClass.call(void 0, $setup.cn("upup-rounded-lg upup-bg-[#0ea5e9] upup-px-4 upup-py-2 upup-text-sm upup-font-medium upup-text-white", { "upup-bg-[#38bdf8] dark:upup-bg-[#38bdf8]": $setup.dark })),
190
+ onClick: $setup.retryRecording
191
+ },
192
+ " Try Again ",
193
+ 2
194
+ /* CLASS */
195
+ )])]),
196
+ _: 1
197
+ })) : (_vue.openBlock.call(void 0, ), _vue.createElementBlock.call(void 0,
198
+ _vue.Fragment,
199
+ { key: 1 },
200
+ [_vue.createCommentVNode.call(void 0, " Normal state "), _vue.createVNode.call(void 0, $setup["SourceViewContainer"], { "data-upup-slot": "screen-capture-uploader" }, {
201
+ default: _vue.withCtx.call(void 0, () => [_vue.createElementVNode.call(void 0, "div", _hoisted_2, [
202
+ _vue.createCommentVNode.call(void 0, " Idle "),
203
+ $setup.state === "idle" ? (_vue.openBlock.call(void 0, ), _vue.createElementBlock.call(void 0, "div", _hoisted_3, [_vue.createElementVNode.call(void 0, "div", _hoisted_4, [(_vue.openBlock.call(void 0, ), _vue.createElementBlock.call(void 0, "svg", {
204
+ xmlns: "http://www.w3.org/2000/svg",
205
+ width: "32",
206
+ height: "32",
207
+ viewBox: "0 0 24 24",
208
+ fill: "none",
209
+ stroke: $setup.dark ? "#38bdf8" : "#0284c7",
210
+ "stroke-width": "2",
211
+ "stroke-linecap": "round",
212
+ "stroke-linejoin": "round"
213
+ }, [..._cache[0] || (_cache[0] = [
214
+ _vue.createElementVNode.call(void 0,
215
+ "rect",
216
+ {
217
+ width: "20",
218
+ height: "15",
219
+ x: "2",
220
+ y: "3",
221
+ rx: "2"
222
+ },
223
+ null,
224
+ -1
225
+ /* CACHED */
226
+ ),
227
+ _vue.createElementVNode.call(void 0,
228
+ "polyline",
229
+ { points: "8 21 16 21" },
230
+ null,
231
+ -1
232
+ /* CACHED */
233
+ ),
234
+ _vue.createElementVNode.call(void 0,
235
+ "line",
236
+ {
237
+ x1: "12",
238
+ x2: "12",
239
+ y1: "18",
240
+ y2: "21"
241
+ },
242
+ null,
243
+ -1
244
+ /* CACHED */
245
+ )
246
+ ])], 8, _hoisted_5))]), _vue.createElementVNode.call(void 0,
247
+ "button",
248
+ {
249
+ type: "button",
250
+ class: _vue.normalizeClass.call(void 0, $setup.cn("upup-rounded-lg upup-bg-[#0ea5e9] upup-px-6 upup-py-2.5 upup-text-sm upup-font-medium upup-text-white upup-transition-colors hover:upup-bg-[#0284c7]", { "upup-bg-[#38bdf8] hover:upup-bg-[#0ea5e9] dark:upup-bg-[#38bdf8]": $setup.dark })),
251
+ onClick: $setup.startRecording
252
+ },
253
+ " Share Screen ",
254
+ 2
255
+ /* CLASS */
256
+ )])) : _vue.createCommentVNode.call(void 0, "v-if", true),
257
+ _vue.createCommentVNode.call(void 0, " Recording "),
258
+ $setup.state === "recording" ? (_vue.openBlock.call(void 0, ), _vue.createElementBlock.call(void 0,
259
+ _vue.Fragment,
260
+ { key: 1 },
261
+ [_vue.createElementVNode.call(void 0, "div", _hoisted_6, [
262
+ _vue.createElementVNode.call(void 0,
263
+ "video",
264
+ {
265
+ ref: $setup.bindPreview,
266
+ muted: "",
267
+ class: "upup-min-h-0 upup-w-full upup-flex-1 upup-rounded-lg upup-object-contain"
268
+ },
269
+ null,
270
+ 512
271
+ /* NEED_PATCH */
272
+ ),
273
+ _vue.createCommentVNode.call(void 0, " REC chip (states-tour-3 state E): red dot + label + timer.\r\n The dot's pulse is fx-gated \u2014 under motion-off the dot\r\n stays static so the recording status remains visible. "),
274
+ _vue.createElementVNode.call(void 0, "div", _hoisted_7, [_cache[1] || (_cache[1] = _vue.createElementVNode.call(void 0,
275
+ "span",
276
+ { class: "upup-animate-fx-rec-pulse upup-h-2 upup-w-2 upup-rounded-full upup-bg-red-500" },
277
+ null,
278
+ -1
279
+ /* CACHED */
280
+ )), _vue.createTextVNode.call(void 0,
281
+ " REC " + _vue.toDisplayString.call(void 0, $setup.formatTime($setup.duration)),
282
+ 1
283
+ /* TEXT */
284
+ )])
285
+ ]), _vue.createElementVNode.call(void 0, "button", {
286
+ type: "button",
287
+ class: "upup-fx-press upup-rounded-lg upup-bg-red-500 upup-px-6 upup-py-2.5 upup-text-sm upup-font-medium upup-text-white upup-transition-colors hover:upup-bg-red-600",
288
+ onClick: $setup.stopRecording
289
+ }, " Stop Recording ")],
290
+ 64
291
+ /* STABLE_FRAGMENT */
292
+ )) : _vue.createCommentVNode.call(void 0, "v-if", true),
293
+ _vue.createCommentVNode.call(void 0, " Recorded "),
294
+ $setup.state === "recorded" && $setup.videoUrl ? (_vue.openBlock.call(void 0, ), _vue.createElementBlock.call(void 0,
295
+ _vue.Fragment,
296
+ { key: 2 },
297
+ [_vue.createElementVNode.call(void 0, "video", {
298
+ ref: "videoRef",
299
+ controls: "",
300
+ src: $setup.videoUrl,
301
+ class: "upup-w-full upup-max-w-md upup-min-h-0 upup-flex-1 upup-rounded-lg upup-object-contain"
302
+ }, null, 8, _hoisted_8), _vue.createElementVNode.call(void 0, "div", _hoisted_9, [_vue.createElementVNode.call(void 0, "button", {
303
+ type: "button",
304
+ class: "upup-rounded-lg upup-bg-gray-500 upup-px-4 upup-py-2.5 upup-text-sm upup-font-medium upup-text-white upup-transition-colors hover:upup-bg-gray-600",
305
+ onClick: $setup.discardRecording
306
+ }, " Discard "), _vue.createElementVNode.call(void 0,
307
+ "button",
308
+ {
309
+ type: "button",
310
+ class: _vue.normalizeClass.call(void 0, $setup.cn("upup-rounded-lg upup-bg-[#0ea5e9] upup-px-4 upup-py-2.5 upup-text-sm upup-font-medium upup-text-white upup-transition-colors hover:upup-bg-[#0284c7]", { "upup-bg-[#38bdf8] hover:upup-bg-[#0ea5e9] dark:upup-bg-[#38bdf8]": $setup.dark })),
311
+ onClick: $setup.addRecording
312
+ },
313
+ " Add Recording ",
314
+ 2
315
+ /* CLASS */
316
+ )])],
317
+ 64
318
+ /* STABLE_FRAGMENT */
319
+ )) : _vue.createCommentVNode.call(void 0, "v-if", true)
320
+ ])]),
321
+ _: 1
322
+ })],
323
+ 2112
324
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
325
+ ))],
326
+ 2112
327
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
328
+ );
329
+ }
330
+ var ScreenCaptureUploader_default = /* @__PURE__ */ _chunkGVB7IFRPcjs.export_helper_default.call(void 0, _sfc_main, [["render", _sfc_render], ["__file", "C:\\Users\\amind\\OneDrive\\Desktop\\Projects\\INTERNAL\\upup\\packages\\vue\\src\\components\\ScreenCaptureUploader.vue"]]);
331
+
332
+
333
+ exports.default = ScreenCaptureUploader_default;
334
+ //# sourceMappingURL=ScreenCaptureUploader-TZ74W7WQ.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["c:\\Users\\amind\\OneDrive\\Desktop\\Projects\\INTERNAL\\upup\\packages\\vue\\dist\\ScreenCaptureUploader-TZ74W7WQ.cjs"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACA;AACA,0BAAyD;AACzD;AACA,kDAA2C;AAC3C;AACA,IAAI,UAAU,kBAAkB,kCAAgB;AAChD,EAAE,MAAM,EAAE,uBAAuB;AACjC,EAAE,KAAK,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE;AACvC,IAAI,QAAQ,CAAC,CAAC;AACd,IAAI,MAAM,EAAE,SAAS,EAAE,EAAE,gDAAgB,CAAE;AAC3C,IAAI,MAAM,EAAE,gBAAgB,EAAE,EAAE,iDAAiB,CAAE;AACnD,IAAI,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,gDAAgB,CAAE;AAC/C,IAAI,MAAM,MAAM,EAAE,sBAAG,MAAO,CAAC;AAC7B,IAAI,MAAM,SAAS,EAAE,sBAAG,CAAE,CAAC;AAC3B,IAAI,MAAM,SAAS,EAAE,sBAAG,IAAK,CAAC;AAC9B,IAAI,MAAM,MAAM,EAAE,sBAAG,IAAK,CAAC;AAC3B,IAAI,MAAM,cAAc,EAAE,sBAAG,IAAK,CAAC;AACnC,IAAI,MAAM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AACA,QAAA;AACA,MAAA;AACA,MAAA;AACA,MAAA;AACA,MAAA;AACA,MAAA;AACA,MAAA;AACA,MAAA;AACA,MAAA;AACA,MAAA;AACA,QAAA;AACA,MAAA;AACA,MAAA;AACA,IAAA;AACA,IAAA;AACA,MAAA;AACA,MAAA;AACA,IAAA;AACA,IAAA;AACA,EAAA;AACA;AACA;AACA;AACA;AACA,EAAA;AACA,EAAA;AACA;AACA;AACA;AACA;AACA;AACA,EAAA;AACA,EAAA;AACA;AACA;AACA;AACA;AACA,EAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,MAAA;AACA,MAAA;AACA,IAAA;AACA,MAAA;AACA,QAAA;AACA,QAAA;AACA,QAAA;AACA,QAAA;AACA;AACA,MAAA;AACA,QAAA;AACA,QAAA;AACA,UAAA;AACA,UAAA;AACA,UAAA;AACA,QAAA;AACA,QAAA;AACA,QAAA;AACA;AACA,MAAA;AACA,MAAA;AACA,IAAA;AACA,MAAA;AACA,MAAA;AACA,MAAA;AACA,QAAA;AACA,UAAA;AACA,UAAA;AACA,YAAA;AACA,YAAA;AACA,YAAA;AACA,YAAA;AACA,YAAA;AACA,YAAA;AACA,YAAA;AACA,YAAA;AACA,YAAA;AACA,UAAA;AACA,YAAA;AACA,cAAA;AACA,cAAA;AACA,gBAAA;AACA,gBAAA;AACA,gBAAA;AACA,gBAAA;AACA,gBAAA;AACA,cAAA;AACA,cAAA;AACA,cAAA;AACA;AACA,YAAA;AACA,YAAA;AACA,cAAA;AACA,cAAA;AACA,cAAA;AACA,cAAA;AACA;AACA,YAAA;AACA,YAAA;AACA,cAAA;AACA,cAAA;AACA,gBAAA;AACA,gBAAA;AACA,gBAAA;AACA,gBAAA;AACA,cAAA;AACA,cAAA;AACA,cAAA;AACA;AACA,YAAA;AACA,UAAA;AACA,YAAA;AACA,YAAA;AACA,cAAA;AACA,cAAA;AACA,cAAA;AACA,YAAA;AACA,YAAA;AACA,YAAA;AACA;AACA,UAAA;AACA,UAAA;AACA,UAAA;AACA,YAAA;AACA,YAAA;AACA,YAAA;AACA,cAAA;AACA,gBAAA;AACA,gBAAA;AACA,kBAAA;AACA,kBAAA;AACA,kBAAA;AACA,gBAAA;AACA,gBAAA;AACA,gBAAA;AACA;AACA,cAAA;AACA,cAAA;AACA,cAAA;AACA,gBAAA;AACA,gBAAA;AACA,gBAAA;AACA,gBAAA;AACA;AACA,cAAA;AACA,gBAAA;AACA,gBAAA;AACA;AACA,cAAA;AACA,YAAA;AACA,cAAA;AACA,cAAA;AACA,cAAA;AACA,YAAA;AACA,YAAA;AACA;AACA,UAAA;AACA,UAAA;AACA,UAAA;AACA,YAAA;AACA,YAAA;AACA,YAAA;AACA,cAAA;AACA,cAAA;AACA,cAAA;AACA,cAAA;AACA,YAAA;AACA,cAAA;AACA,cAAA;AACA,cAAA;AACA,YAAA;AACA,cAAA;AACA,cAAA;AACA,gBAAA;AACA,gBAAA;AACA,gBAAA;AACA,cAAA;AACA,cAAA;AACA,cAAA;AACA;AACA,YAAA;AACA,YAAA;AACA;AACA,UAAA;AACA,QAAA;AACA,QAAA;AACA,MAAA;AACA,MAAA;AACA;AACA,IAAA;AACA,IAAA;AACA;AACA,EAAA;AACA;AACA;AACA;AACA;AACA","file":"C:\\Users\\amind\\OneDrive\\Desktop\\Projects\\INTERNAL\\upup\\packages\\vue\\dist\\ScreenCaptureUploader-TZ74W7WQ.cjs","sourcesContent":[null]}
@@ -0,0 +1,143 @@
1
+ import {
2
+ SourceViewContainer_default
3
+ } from "./chunk-M6AHIQ3M.js";
4
+ import {
5
+ export_helper_default,
6
+ useUploaderFiles,
7
+ useUploaderI18n,
8
+ useUploaderOptions,
9
+ useUploaderRuntime,
10
+ useUploaderSource,
11
+ useUploaderTheme
12
+ } from "./chunk-X6FZTCNT.js";
13
+
14
+ // src/components/UrlUploader.vue
15
+ import { defineComponent as _defineComponent } from "vue";
16
+ import { ref as ref2 } from "vue";
17
+
18
+ // src/composables/useFetchFileByUrl.ts
19
+ import { ref } from "vue";
20
+ import { deriveFetchedFileName } from "@useupup/core/internal";
21
+ function useFetchFileByUrl() {
22
+ const { core } = useUploaderRuntime();
23
+ const { onError } = useUploaderOptions();
24
+ const loading = ref(false);
25
+ async function fetchImage(url) {
26
+ if (loading.value) return;
27
+ try {
28
+ loading.value = true;
29
+ const response = await fetch(url);
30
+ if (!response.ok) {
31
+ throw new Error(`Failed to fetch URL: ${response.status}`);
32
+ }
33
+ const blob = await response.blob();
34
+ const fileName = deriveFetchedFileName(url, response, blob);
35
+ const file = new File([blob], fileName, { type: blob.type });
36
+ core == null ? void 0 : core.emit("url-fetch", { file });
37
+ return file;
38
+ } catch (error) {
39
+ onError(error.message);
40
+ return void 0;
41
+ } finally {
42
+ loading.value = false;
43
+ }
44
+ }
45
+ return { loading, fetchImage };
46
+ }
47
+
48
+ // src/components/UrlUploader.vue
49
+ import { cn } from "@useupup/core/internal";
50
+ import { vModelText as _vModelText, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, withDirectives as _withDirectives, resolveDynamicComponent as _resolveDynamicComponent, openBlock as _openBlock, createBlock as _createBlock, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, Fragment as _Fragment, createElementBlock as _createElementBlock, withModifiers as _withModifiers, withCtx as _withCtx } from "vue";
51
+ var _sfc_main = /* @__PURE__ */ _defineComponent({
52
+ __name: "UrlUploader",
53
+ setup(__props, { expose: __expose }) {
54
+ __expose();
55
+ const { core } = useUploaderRuntime();
56
+ const { setFiles } = useUploaderFiles();
57
+ const { setActiveSource } = useUploaderSource();
58
+ const { translations: tr } = useUploaderI18n();
59
+ const { icons: { LoaderIcon } } = useUploaderOptions();
60
+ const { isDark: dark, slotOverrides: slotClasses } = useUploaderTheme();
61
+ const url = ref2("");
62
+ const { loading, fetchImage } = useFetchFileByUrl();
63
+ async function handleFormSubmit(e) {
64
+ e.preventDefault();
65
+ core == null ? void 0 : core.emit("url-submit", { url: url.value });
66
+ const file = await fetchImage(url.value);
67
+ if (file) {
68
+ Object.assign(file, { url: url.value });
69
+ setFiles([file]);
70
+ url.value = "";
71
+ setActiveSource(void 0);
72
+ }
73
+ }
74
+ const __returned__ = {
75
+ core,
76
+ setFiles,
77
+ setActiveSource,
78
+ tr,
79
+ LoaderIcon,
80
+ dark,
81
+ slotClasses,
82
+ url,
83
+ loading,
84
+ fetchImage,
85
+ handleFormSubmit,
86
+ get cn() {
87
+ return cn;
88
+ },
89
+ SourceViewContainer: SourceViewContainer_default
90
+ };
91
+ Object.defineProperty(__returned__, "__isScriptSetup", {
92
+ enumerable: false,
93
+ value: true
94
+ });
95
+ return __returned__;
96
+ }
97
+ });
98
+ var _hoisted_1 = ["aria-label", "placeholder"];
99
+ var _hoisted_2 = ["disabled"];
100
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
101
+ return _openBlock(), _createBlock($setup["SourceViewContainer"], {
102
+ "data-testid": "upup-url-uploader",
103
+ "data-upup-slot": "url-uploader"
104
+ }, {
105
+ default: _withCtx(() => [_createElementVNode(
106
+ "form",
107
+ {
108
+ onSubmit: _withModifiers($setup.handleFormSubmit, ["prevent"]),
109
+ class: "upup-px-3 upup-py-2"
110
+ },
111
+ [_withDirectives(_createElementVNode("input", {
112
+ type: "url",
113
+ name: "upup-url",
114
+ "aria-label": $setup.tr.enterFileUrl,
115
+ placeholder: $setup.tr.enterFileUrl,
116
+ class: _normalizeClass($setup.cn("upup-w-full upup-rounded-md upup-border-2 upup-border-[#e0e0e0] upup-bg-transparent upup-px-3 upup-py-2 upup-outline-none", { "upup-border-[#6D6D6D] upup-text-[#6D6D6D] dark:upup-border-[#6D6D6D] dark:upup-text-[#6D6D6D]": $setup.dark }, $setup.slotClasses.urlInput)),
117
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $setup.url = $event)
118
+ }, null, 10, _hoisted_1), [[_vModelText, $setup.url]]), _createElementVNode("button", {
119
+ class: _normalizeClass($setup.cn("upup-disabled:bg-[#e0e0e0] upup-mt-2 upup-w-full upup-rounded-md upup-bg-[#0ea5e9] upup-p-2 upup-text-white upup-transition-all upup-duration-300", { "upup-disabled:bg-[#6D6D6D] dark:upup-disabled:bg-[#6D6D6D] upup-bg-[#38bdf8] dark:upup-bg-[#38bdf8]": $setup.dark }, $setup.slotClasses.urlFetchButton)),
120
+ type: "submit",
121
+ disabled: !$setup.url
122
+ }, [$setup.loading ? (_openBlock(), _createBlock(_resolveDynamicComponent($setup.LoaderIcon), { key: 0 })) : (_openBlock(), _createElementBlock(
123
+ _Fragment,
124
+ { key: 1 },
125
+ [_createTextVNode(
126
+ _toDisplayString($setup.tr.fetch),
127
+ 1
128
+ /* TEXT */
129
+ )],
130
+ 64
131
+ /* STABLE_FRAGMENT */
132
+ ))], 10, _hoisted_2)],
133
+ 32
134
+ /* NEED_HYDRATION */
135
+ )]),
136
+ _: 1
137
+ });
138
+ }
139
+ var UrlUploader_default = /* @__PURE__ */ export_helper_default(_sfc_main, [["render", _sfc_render], ["__file", "C:\\Users\\amind\\OneDrive\\Desktop\\Projects\\INTERNAL\\upup\\packages\\vue\\src\\components\\UrlUploader.vue"]]);
140
+ export {
141
+ UrlUploader_default as default
142
+ };
143
+ //# sourceMappingURL=UrlUploader-PXEGUBQ4.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/UrlUploader.vue","../src/components/UrlUploader.vue","../src/composables/useFetchFileByUrl.ts"],"sourcesContent":["<script setup lang=\"ts\">\r\nimport { ref } from 'vue'\r\nimport {\r\n useUploaderFiles,\r\n useUploaderI18n,\r\n useUploaderOptions,\r\n useUploaderRuntime,\r\n useUploaderSource,\r\n useUploaderTheme,\r\n} from '../context/uploader-context'\r\nimport useFetchFileByUrl from '../composables/useFetchFileByUrl'\r\nimport { cn } from '@useupup/core/internal'\r\nimport SourceViewContainer from './shared/SourceViewContainer.vue'\r\n\r\nconst { core } = useUploaderRuntime()\r\nconst { setFiles } = useUploaderFiles()\r\nconst { setActiveSource } = useUploaderSource()\r\nconst { translations: tr } = useUploaderI18n()\r\nconst { icons: { LoaderIcon } } = useUploaderOptions()\r\nconst { isDark: dark, slotOverrides: slotClasses } = useUploaderTheme()\r\n\r\nconst url = ref('')\r\nconst { loading, fetchImage } = useFetchFileByUrl()\r\n\r\nasync function handleFormSubmit(e: Event) {\r\n e.preventDefault()\r\n core?.emit('url-submit', { url: url.value })\r\n const file = await fetchImage(url.value)\r\n if (file) {\r\n Object.assign(file, { url: url.value })\r\n setFiles([file])\r\n url.value = ''\r\n setActiveSource(undefined)\r\n }\r\n}\r\n</script>\r\n\r\n<template>\r\n <SourceViewContainer data-testid=\"upup-url-uploader\" data-upup-slot=\"url-uploader\">\r\n <form @submit.prevent=\"handleFormSubmit\" class=\"upup-px-3 upup-py-2\">\r\n <input\r\n type=\"url\"\r\n name=\"upup-url\"\r\n :aria-label=\"tr.enterFileUrl\"\r\n :placeholder=\"tr.enterFileUrl\"\r\n :class=\"cn(\r\n 'upup-w-full upup-rounded-md upup-border-2 upup-border-[#e0e0e0] upup-bg-transparent upup-px-3 upup-py-2 upup-outline-none',\r\n {\r\n 'upup-border-[#6D6D6D] upup-text-[#6D6D6D] dark:upup-border-[#6D6D6D] dark:upup-text-[#6D6D6D]': dark,\r\n },\r\n slotClasses.urlInput,\r\n )\"\r\n v-model=\"url\"\r\n />\r\n <button\r\n :class=\"cn(\r\n 'upup-disabled:bg-[#e0e0e0] upup-mt-2 upup-w-full upup-rounded-md upup-bg-[#0ea5e9] upup-p-2 upup-text-white upup-transition-all upup-duration-300',\r\n {\r\n 'upup-disabled:bg-[#6D6D6D] dark:upup-disabled:bg-[#6D6D6D] upup-bg-[#38bdf8] dark:upup-bg-[#38bdf8]': dark,\r\n },\r\n slotClasses.urlFetchButton,\r\n )\"\r\n type=\"submit\"\r\n :disabled=\"!url\"\r\n >\r\n <component :is=\"LoaderIcon\" v-if=\"loading\" />\r\n <template v-else>{{ tr.fetch }}</template>\r\n </button>\r\n </form>\r\n </SourceViewContainer>\r\n</template>\r\n","<script setup lang=\"ts\">\r\nimport { ref } from 'vue'\r\nimport {\r\n useUploaderFiles,\r\n useUploaderI18n,\r\n useUploaderOptions,\r\n useUploaderRuntime,\r\n useUploaderSource,\r\n useUploaderTheme,\r\n} from '../context/uploader-context'\r\nimport useFetchFileByUrl from '../composables/useFetchFileByUrl'\r\nimport { cn } from '@useupup/core/internal'\r\nimport SourceViewContainer from './shared/SourceViewContainer.vue'\r\n\r\nconst { core } = useUploaderRuntime()\r\nconst { setFiles } = useUploaderFiles()\r\nconst { setActiveSource } = useUploaderSource()\r\nconst { translations: tr } = useUploaderI18n()\r\nconst { icons: { LoaderIcon } } = useUploaderOptions()\r\nconst { isDark: dark, slotOverrides: slotClasses } = useUploaderTheme()\r\n\r\nconst url = ref('')\r\nconst { loading, fetchImage } = useFetchFileByUrl()\r\n\r\nasync function handleFormSubmit(e: Event) {\r\n e.preventDefault()\r\n core?.emit('url-submit', { url: url.value })\r\n const file = await fetchImage(url.value)\r\n if (file) {\r\n Object.assign(file, { url: url.value })\r\n setFiles([file])\r\n url.value = ''\r\n setActiveSource(undefined)\r\n }\r\n}\r\n</script>\r\n\r\n<template>\r\n <SourceViewContainer data-testid=\"upup-url-uploader\" data-upup-slot=\"url-uploader\">\r\n <form @submit.prevent=\"handleFormSubmit\" class=\"upup-px-3 upup-py-2\">\r\n <input\r\n type=\"url\"\r\n name=\"upup-url\"\r\n :aria-label=\"tr.enterFileUrl\"\r\n :placeholder=\"tr.enterFileUrl\"\r\n :class=\"cn(\r\n 'upup-w-full upup-rounded-md upup-border-2 upup-border-[#e0e0e0] upup-bg-transparent upup-px-3 upup-py-2 upup-outline-none',\r\n {\r\n 'upup-border-[#6D6D6D] upup-text-[#6D6D6D] dark:upup-border-[#6D6D6D] dark:upup-text-[#6D6D6D]': dark,\r\n },\r\n slotClasses.urlInput,\r\n )\"\r\n v-model=\"url\"\r\n />\r\n <button\r\n :class=\"cn(\r\n 'upup-disabled:bg-[#e0e0e0] upup-mt-2 upup-w-full upup-rounded-md upup-bg-[#0ea5e9] upup-p-2 upup-text-white upup-transition-all upup-duration-300',\r\n {\r\n 'upup-disabled:bg-[#6D6D6D] dark:upup-disabled:bg-[#6D6D6D] upup-bg-[#38bdf8] dark:upup-bg-[#38bdf8]': dark,\r\n },\r\n slotClasses.urlFetchButton,\r\n )\"\r\n type=\"submit\"\r\n :disabled=\"!url\"\r\n >\r\n <component :is=\"LoaderIcon\" v-if=\"loading\" />\r\n <template v-else>{{ tr.fetch }}</template>\r\n </button>\r\n </form>\r\n </SourceViewContainer>\r\n</template>\r\n","import { ref, type Ref } from 'vue'\r\nimport { deriveFetchedFileName } from '@useupup/core/internal'\r\nimport {\r\n useUploaderOptions,\r\n useUploaderRuntime,\r\n} from '../context/uploader-context'\r\n\r\nexport { deriveFetchedFileName }\r\n\r\nexport default function useFetchFileByUrl(): {\r\n loading: Ref<boolean>\r\n fetchImage: (url: string) => Promise<File | undefined>\r\n} {\r\n const { core } = useUploaderRuntime()\r\n const { onError } = useUploaderOptions()\r\n const loading = ref(false)\r\n\r\n async function fetchImage(url: string) {\r\n if (loading.value) return\r\n\r\n try {\r\n loading.value = true\r\n const response = await fetch(url)\r\n if (!response.ok) {\r\n throw new Error(`Failed to fetch URL: ${response.status}`)\r\n }\r\n const blob = await response.blob()\r\n const fileName = deriveFetchedFileName(url, response, blob)\r\n\r\n const file = new File([blob], fileName, { type: blob.type })\r\n\r\n core?.emit('url-fetch', { file })\r\n return file\r\n } catch (error) {\r\n onError((error as Error).message)\r\n return undefined\r\n } finally {\r\n loading.value = false\r\n }\r\n }\r\n\r\n return { loading, fetchImage }\r\n}\r\n"],"mappings":";;;;;;;;;;;;;;;AACA,SAAS,OAAAA,YAAW;;;AEDpB,SAAS,WAAqB;AAC9B,SAAS,6BAA6B;AAQvB,SAAR,oBAGL;AACE,QAAM,EAAE,KAAK,IAAI,mBAAmB;AACpC,QAAM,EAAE,QAAQ,IAAI,mBAAmB;AACvC,QAAM,UAAU,IAAI,KAAK;AAEzB,iBAAe,WAAW,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;MAC7B;IACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACII,SAAA,WAAA,GAAA,aA+BsB,OAAA,qBAAA,GAAA;IA/BD,eAAY;IAAoB,kBAAe;;IAChE,SAAA,SAAA,MA6BO,CA7BP;MA6BO;MAAA;QA7BA,UAAM,eAAU,OAAA,kBAAgB,CAAA,SAAA,CAAA;QAAE,OAAM;;OAC3C,gBAAA,oBAaE,SAAA;QAZE,MAAK;QACL,MAAK;QACJ,cAAY,OAAA,GAAG;QACf,aAAa,OAAA,GAAG;QAChB,OAAK,gBAAE,OAAA,GAAA,6HAAA,EAAuS,iGAAA,OAAA,KAAA,GAAmD,OAAA,YAAY,QAAA,CAAA;QAOrW,uBAAA,OAAA,CAAA,MAAA,OAAA,CAAA,IAAA,CAAA,WAAA,OAAA,MAAG;iCAAH,CAAA,aAAA,OAAA,GAAG,CAAA,CAAA,GAEhB,oBAaS,UAAA;QAZJ,OAAK,gBAAE,OAAA,GAAA,qJAAA,EAAqU,uGAAA,OAAA,KAAA,GAAmD,OAAA,YAAY,cAAA,CAAA;QAO5Y,MAAK;QACJ,UAAQ,CAAG,OAAA;UAEsB,OAAA,WAAlC,WAAA,GAAA,aAA6C,yBAA7B,OAAA,UAAU,GAAA,EAAA,KAAA,EAAA,CAAA,MAC1B,WAAA,GAAA;QAA0C;QAAA,EAAA,KAAA,EAAA;QAAA,CAAtB;UAAA,iBAAA,OAAA,GAAG,KAAK;UAAA;;QAAA,CAAA;;;;;;;;;;;","names":["ref","ref"]}
@@ -0,0 +1,143 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkGG4ABGXBcjs = require('./chunk-GG4ABGXB.cjs');
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+ var _chunkGVB7IFRPcjs = require('./chunk-GVB7IFRP.cjs');
13
+
14
+ // src/components/UrlUploader.vue
15
+ var _vue = require('vue');
16
+
17
+
18
+ // src/composables/useFetchFileByUrl.ts
19
+
20
+ var _internal = require('@useupup/core/internal');
21
+ function useFetchFileByUrl() {
22
+ const { core } = _chunkGVB7IFRPcjs.useUploaderRuntime.call(void 0, );
23
+ const { onError } = _chunkGVB7IFRPcjs.useUploaderOptions.call(void 0, );
24
+ const loading = _vue.ref.call(void 0, false);
25
+ async function fetchImage(url) {
26
+ if (loading.value) return;
27
+ try {
28
+ loading.value = true;
29
+ const response = await fetch(url);
30
+ if (!response.ok) {
31
+ throw new Error(`Failed to fetch URL: ${response.status}`);
32
+ }
33
+ const blob = await response.blob();
34
+ const fileName = _internal.deriveFetchedFileName.call(void 0, url, response, blob);
35
+ const file = new File([blob], fileName, { type: blob.type });
36
+ core == null ? void 0 : core.emit("url-fetch", { file });
37
+ return file;
38
+ } catch (error) {
39
+ onError(error.message);
40
+ return void 0;
41
+ } finally {
42
+ loading.value = false;
43
+ }
44
+ }
45
+ return { loading, fetchImage };
46
+ }
47
+
48
+ // src/components/UrlUploader.vue
49
+
50
+
51
+ var _sfc_main = /* @__PURE__ */ _vue.defineComponent.call(void 0, {
52
+ __name: "UrlUploader",
53
+ setup(__props, { expose: __expose }) {
54
+ __expose();
55
+ const { core } = _chunkGVB7IFRPcjs.useUploaderRuntime.call(void 0, );
56
+ const { setFiles } = _chunkGVB7IFRPcjs.useUploaderFiles.call(void 0, );
57
+ const { setActiveSource } = _chunkGVB7IFRPcjs.useUploaderSource.call(void 0, );
58
+ const { translations: tr } = _chunkGVB7IFRPcjs.useUploaderI18n.call(void 0, );
59
+ const { icons: { LoaderIcon } } = _chunkGVB7IFRPcjs.useUploaderOptions.call(void 0, );
60
+ const { isDark: dark, slotOverrides: slotClasses } = _chunkGVB7IFRPcjs.useUploaderTheme.call(void 0, );
61
+ const url = _vue.ref.call(void 0, "");
62
+ const { loading, fetchImage } = useFetchFileByUrl();
63
+ async function handleFormSubmit(e) {
64
+ e.preventDefault();
65
+ core == null ? void 0 : core.emit("url-submit", { url: url.value });
66
+ const file = await fetchImage(url.value);
67
+ if (file) {
68
+ Object.assign(file, { url: url.value });
69
+ setFiles([file]);
70
+ url.value = "";
71
+ setActiveSource(void 0);
72
+ }
73
+ }
74
+ const __returned__ = {
75
+ core,
76
+ setFiles,
77
+ setActiveSource,
78
+ tr,
79
+ LoaderIcon,
80
+ dark,
81
+ slotClasses,
82
+ url,
83
+ loading,
84
+ fetchImage,
85
+ handleFormSubmit,
86
+ get cn() {
87
+ return _internal.cn;
88
+ },
89
+ SourceViewContainer: _chunkGG4ABGXBcjs.SourceViewContainer_default
90
+ };
91
+ Object.defineProperty(__returned__, "__isScriptSetup", {
92
+ enumerable: false,
93
+ value: true
94
+ });
95
+ return __returned__;
96
+ }
97
+ });
98
+ var _hoisted_1 = ["aria-label", "placeholder"];
99
+ var _hoisted_2 = ["disabled"];
100
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
101
+ return _vue.openBlock.call(void 0, ), _vue.createBlock.call(void 0, $setup["SourceViewContainer"], {
102
+ "data-testid": "upup-url-uploader",
103
+ "data-upup-slot": "url-uploader"
104
+ }, {
105
+ default: _vue.withCtx.call(void 0, () => [_vue.createElementVNode.call(void 0,
106
+ "form",
107
+ {
108
+ onSubmit: _vue.withModifiers.call(void 0, $setup.handleFormSubmit, ["prevent"]),
109
+ class: "upup-px-3 upup-py-2"
110
+ },
111
+ [_vue.withDirectives.call(void 0, _vue.createElementVNode.call(void 0, "input", {
112
+ type: "url",
113
+ name: "upup-url",
114
+ "aria-label": $setup.tr.enterFileUrl,
115
+ placeholder: $setup.tr.enterFileUrl,
116
+ class: _vue.normalizeClass.call(void 0, $setup.cn("upup-w-full upup-rounded-md upup-border-2 upup-border-[#e0e0e0] upup-bg-transparent upup-px-3 upup-py-2 upup-outline-none", { "upup-border-[#6D6D6D] upup-text-[#6D6D6D] dark:upup-border-[#6D6D6D] dark:upup-text-[#6D6D6D]": $setup.dark }, $setup.slotClasses.urlInput)),
117
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $setup.url = $event)
118
+ }, null, 10, _hoisted_1), [[_vue.vModelText, $setup.url]]), _vue.createElementVNode.call(void 0, "button", {
119
+ class: _vue.normalizeClass.call(void 0, $setup.cn("upup-disabled:bg-[#e0e0e0] upup-mt-2 upup-w-full upup-rounded-md upup-bg-[#0ea5e9] upup-p-2 upup-text-white upup-transition-all upup-duration-300", { "upup-disabled:bg-[#6D6D6D] dark:upup-disabled:bg-[#6D6D6D] upup-bg-[#38bdf8] dark:upup-bg-[#38bdf8]": $setup.dark }, $setup.slotClasses.urlFetchButton)),
120
+ type: "submit",
121
+ disabled: !$setup.url
122
+ }, [$setup.loading ? (_vue.openBlock.call(void 0, ), _vue.createBlock.call(void 0, _vue.resolveDynamicComponent.call(void 0, $setup.LoaderIcon), { key: 0 })) : (_vue.openBlock.call(void 0, ), _vue.createElementBlock.call(void 0,
123
+ _vue.Fragment,
124
+ { key: 1 },
125
+ [_vue.createTextVNode.call(void 0,
126
+ _vue.toDisplayString.call(void 0, $setup.tr.fetch),
127
+ 1
128
+ /* TEXT */
129
+ )],
130
+ 64
131
+ /* STABLE_FRAGMENT */
132
+ ))], 10, _hoisted_2)],
133
+ 32
134
+ /* NEED_HYDRATION */
135
+ )]),
136
+ _: 1
137
+ });
138
+ }
139
+ var UrlUploader_default = /* @__PURE__ */ _chunkGVB7IFRPcjs.export_helper_default.call(void 0, _sfc_main, [["render", _sfc_render], ["__file", "C:\\Users\\amind\\OneDrive\\Desktop\\Projects\\INTERNAL\\upup\\packages\\vue\\src\\components\\UrlUploader.vue"]]);
140
+
141
+
142
+ exports.default = UrlUploader_default;
143
+ //# sourceMappingURL=UrlUploader-TLYGV433.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["c:\\Users\\amind\\OneDrive\\Desktop\\Projects\\INTERNAL\\upup\\packages\\vue\\dist\\UrlUploader-TLYGV433.cjs"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7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IAAA;AACA,MAAA;AACA,MAAA;AACA,IAAA;AACA,IAAA;AACA,EAAA;AACA;AACA;AACA;AACA;AACA,EAAA;AACA,IAAA;AACA,IAAA;AACA,EAAA;AACA,IAAA;AACA,MAAA;AACA,MAAA;AACA,QAAA;AACA,QAAA;AACA,MAAA;AACA,MAAA;AACA,QAAA;AACA,QAAA;AACA,QAAA;AACA,QAAA;AACA,QAAA;AACA,QAAA;AACA,MAAA;AACA,QAAA;AACA,QAAA;AACA,QAAA;AACA,MAAA;AACA,QAAA;AACA,QAAA;AACA,QAAA;AACA,UAAA;AACA,UAAA;AACA;AACA,QAAA;AACA,QAAA;AACA;AACA,MAAA;AACA,MAAA;AACA;AACA,IAAA;AACA,IAAA;AACA,EAAA;AACA;AACA;AACA;AACA;AACA","file":"C:\\Users\\amind\\OneDrive\\Desktop\\Projects\\INTERNAL\\upup\\packages\\vue\\dist\\UrlUploader-TLYGV433.cjs","sourcesContent":[null]}