ablok-components 0.3.134 → 0.3.136
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ablok-components.css +1 -1
- package/dist/ablok-components.umd.js +2 -2
- package/dist/components/molecules/base-camera/base-camera.js +1 -1
- package/dist/components/molecules/base-camera/base-camera.vue.d.ts +9 -0
- package/dist/components/molecules/base-camera/base-camera.vue_vue_type_script_setup_true_lang.js +173 -155
- package/dist/components/molecules/input-dropdown/input-dropdown.vue_vue_type_script_setup_true_lang.js +2 -1
- package/package.json +1 -1
|
@@ -2,6 +2,6 @@ import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
|
2
2
|
import t from "./base-camera.vue_vue_type_script_setup_true_lang.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
//#region src/components/molecules/base-camera/base-camera.vue
|
|
5
|
-
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-
|
|
5
|
+
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-67efb17e"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { n as default };
|
|
@@ -119,6 +119,10 @@ declare const __VLS_export: import('../../../../vue/dist/vue.esm-bundler.js').De
|
|
|
119
119
|
type: StringConstructor;
|
|
120
120
|
default: string;
|
|
121
121
|
};
|
|
122
|
+
screenFlashFullscreen: {
|
|
123
|
+
type: BooleanConstructor;
|
|
124
|
+
default: boolean;
|
|
125
|
+
};
|
|
122
126
|
enableShutterAnimation: {
|
|
123
127
|
type: BooleanConstructor;
|
|
124
128
|
default: boolean;
|
|
@@ -279,6 +283,10 @@ declare const __VLS_export: import('../../../../vue/dist/vue.esm-bundler.js').De
|
|
|
279
283
|
type: StringConstructor;
|
|
280
284
|
default: string;
|
|
281
285
|
};
|
|
286
|
+
screenFlashFullscreen: {
|
|
287
|
+
type: BooleanConstructor;
|
|
288
|
+
default: boolean;
|
|
289
|
+
};
|
|
282
290
|
enableShutterAnimation: {
|
|
283
291
|
type: BooleanConstructor;
|
|
284
292
|
default: boolean;
|
|
@@ -309,6 +317,7 @@ declare const __VLS_export: import('../../../../vue/dist/vue.esm-bundler.js').De
|
|
|
309
317
|
enableControls: boolean;
|
|
310
318
|
enableScreenFlash: boolean;
|
|
311
319
|
screenFlashColor: string;
|
|
320
|
+
screenFlashFullscreen: boolean;
|
|
312
321
|
enableShutterAnimation: boolean;
|
|
313
322
|
}, {}, {}, {}, string, import('../../../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, true, {}, any>;
|
|
314
323
|
declare const _default: typeof __VLS_export;
|
package/dist/components/molecules/base-camera/base-camera.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -3,50 +3,50 @@ import t from "../input-dropdown/input-dropdown.js";
|
|
|
3
3
|
import { captureFrame as n, exportCanvas as r } from "../../../utilities/camera/capture.js";
|
|
4
4
|
import { useCamera as i } from "../../../composables/useCamera.js";
|
|
5
5
|
import a from "../camera-preview/camera-preview.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { Transition as te, computed as
|
|
6
|
+
import o from "../../atoms/zoom-slider/zoom-slider.js";
|
|
7
|
+
import s from "../../../assets/img/guide.js";
|
|
8
|
+
import { Teleport as ee, Transition as te, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createVNode as p, defineComponent as m, normalizeClass as h, normalizeStyle as g, onMounted as _, onScopeDispose as ne, openBlock as v, ref as y, toDisplayString as b, unref as x, watch as S, withCtx as C } from "vue";
|
|
9
9
|
//#region src/components/molecules/base-camera/base-camera.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
-
var
|
|
10
|
+
var re = {
|
|
11
11
|
class: "base-camera position-relative w-100 user-select-none",
|
|
12
12
|
"data-bs-theme": "dark"
|
|
13
|
-
},
|
|
13
|
+
}, ie = ["src"], ae = { class: "position-absolute top-0 start-0 end-0 d-flex align-items-start p-2 gap-2 base-camera__top-bar" }, oe = { class: "base-camera__select-col" }, se = { key: 1 }, ce = { class: "d-flex align-items-center ms-auto gap-2" }, le = ["aria-label"], ue = ["disabled"], de = {
|
|
14
14
|
key: 1,
|
|
15
15
|
class: "position-absolute top-0 start-0 w-100 h-100 d-flex flex-column align-items-center justify-content-center text-center p-3 bg-black bg-opacity-50"
|
|
16
|
-
},
|
|
16
|
+
}, fe = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "spinner-border text-light",
|
|
19
19
|
role: "status"
|
|
20
|
-
},
|
|
20
|
+
}, pe = {
|
|
21
21
|
key: 1,
|
|
22
22
|
class: "alert alert-danger py-2 px-3 mb-0 small"
|
|
23
|
-
},
|
|
23
|
+
}, me = { class: "mb-2" }, he = { class: "position-absolute bottom-0 start-0 end-0 p-3 d-flex flex-column gap-2 align-items-center" }, ge = {
|
|
24
24
|
key: 0,
|
|
25
25
|
class: "d-flex align-items-center justify-content-center gap-4 w-100"
|
|
26
|
-
},
|
|
26
|
+
}, w = ["disabled", "aria-label"], _e = {
|
|
27
27
|
key: 0,
|
|
28
28
|
viewBox: "0 0 24 24",
|
|
29
29
|
width: "22",
|
|
30
30
|
height: "22",
|
|
31
31
|
fill: "currentColor",
|
|
32
32
|
"aria-hidden": "true"
|
|
33
|
-
},
|
|
33
|
+
}, ve = {
|
|
34
34
|
key: 1,
|
|
35
35
|
viewBox: "0 0 24 24",
|
|
36
36
|
width: "22",
|
|
37
37
|
height: "22",
|
|
38
38
|
fill: "currentColor",
|
|
39
39
|
"aria-hidden": "true"
|
|
40
|
-
},
|
|
40
|
+
}, ye = ["disabled"], be = {
|
|
41
41
|
key: 2,
|
|
42
42
|
class: "base-camera__countdown-overlay",
|
|
43
43
|
role: "status",
|
|
44
44
|
"aria-live": "polite",
|
|
45
45
|
"aria-atomic": "true"
|
|
46
|
-
},
|
|
46
|
+
}, xe = ["data-countdown"], Se = {
|
|
47
47
|
key: 0,
|
|
48
48
|
class: "base-camera__zoom"
|
|
49
|
-
},
|
|
49
|
+
}, T = /*@__PURE__*/ m({
|
|
50
50
|
__name: "base-camera",
|
|
51
51
|
props: {
|
|
52
52
|
modelValue: { type: null },
|
|
@@ -154,7 +154,7 @@ var ie = {
|
|
|
154
154
|
},
|
|
155
155
|
guideSrc: {
|
|
156
156
|
type: String,
|
|
157
|
-
default:
|
|
157
|
+
default: s
|
|
158
158
|
},
|
|
159
159
|
enableControls: {
|
|
160
160
|
type: Boolean,
|
|
@@ -168,6 +168,10 @@ var ie = {
|
|
|
168
168
|
type: String,
|
|
169
169
|
default: "#FFFFFF"
|
|
170
170
|
},
|
|
171
|
+
screenFlashFullscreen: {
|
|
172
|
+
type: Boolean,
|
|
173
|
+
default: !1
|
|
174
|
+
},
|
|
171
175
|
enableShutterAnimation: {
|
|
172
176
|
type: Boolean,
|
|
173
177
|
default: !0
|
|
@@ -180,226 +184,240 @@ var ie = {
|
|
|
180
184
|
"error",
|
|
181
185
|
"state"
|
|
182
186
|
],
|
|
183
|
-
setup(
|
|
184
|
-
let
|
|
187
|
+
setup(s, { expose: m, emit: T }) {
|
|
188
|
+
let E = s, D = T, O = y(null), k = c(() => O.value?.videoEl ?? null), A = c(() => E.resolutions[E.ratio] ?? {
|
|
185
189
|
width: 720,
|
|
186
190
|
height: 960
|
|
187
|
-
}),
|
|
188
|
-
preferredFacing:
|
|
189
|
-
resolution:
|
|
190
|
-
videoRef:
|
|
191
|
-
onWarning: (e) =>
|
|
192
|
-
}),
|
|
193
|
-
|
|
194
|
-
|
|
191
|
+
}), j = i({
|
|
192
|
+
preferredFacing: E.defaultRearCamera ? "environment" : "user",
|
|
193
|
+
resolution: A.value,
|
|
194
|
+
videoRef: k,
|
|
195
|
+
onWarning: (e) => D("error", e)
|
|
196
|
+
}), M = c(() => E.enableMirrorCamera && j.activeFacing.value !== "environment"), Ce = c(() => E.enableSelectDevice && j.devices.value.length > 1), we = c(() => E.enableSwitchCamera && j.canSwitch.value), Te = c(() => E.enableZoomSlider && j.zoomCapability.value !== null), N = c(() => j.isLive.value || j.isPaused.value), P = y(!1), F = y(0), I = y(!1), L = y(0), R = y(!1), z = y(0), B = y(E.enableScreenFlash);
|
|
197
|
+
S(() => E.enableScreenFlash, (e) => {
|
|
198
|
+
B.value = e;
|
|
195
199
|
});
|
|
196
|
-
let H = null, U = null, W = null, G = null, K = null, q = null, J = null, Y = !1, X =
|
|
197
|
-
|
|
200
|
+
let V = null, H = null, U = null, W = null, G = null, K = null, q = null, J = null, Y = !1, X = y(E.zoom);
|
|
201
|
+
S(() => E.zoom, (e) => {
|
|
198
202
|
X.value = e;
|
|
199
|
-
}),
|
|
200
|
-
|
|
201
|
-
}),
|
|
202
|
-
|
|
203
|
-
}),
|
|
204
|
-
e &&
|
|
205
|
-
}),
|
|
206
|
-
e &&
|
|
207
|
-
}),
|
|
208
|
-
|
|
209
|
-
}),
|
|
210
|
-
Y = !0,
|
|
203
|
+
}), S(X, (e) => {
|
|
204
|
+
j.setZoom(e), e !== E.zoom && D("update:zoom", e);
|
|
205
|
+
}), S(j.zoom, (e) => {
|
|
206
|
+
j.zoomCapability.value && e !== X.value && (X.value = e);
|
|
207
|
+
}), S(j.zoomCapability, (e) => {
|
|
208
|
+
e && j.setZoom(X.value);
|
|
209
|
+
}), S(j.state, (e) => D("state", e)), S(j.error, (e) => {
|
|
210
|
+
e && D("error", e);
|
|
211
|
+
}), S(A, (e) => void j.setResolution(e)), _(() => {
|
|
212
|
+
E.autoStart && j.start();
|
|
213
|
+
}), ne(() => {
|
|
214
|
+
Y = !0, H && clearTimeout(H), U && clearTimeout(U), G && clearTimeout(G), H = null, U = null, G = null, J?.(!1), J = null, Z(), Q(), F.value = 0, I.value = !1, R.value = !1;
|
|
211
215
|
});
|
|
212
|
-
function xe() {
|
|
213
|
-
w.enableShutterAnimation && (W && clearTimeout(W), R.value++, L.value = !0, W = setTimeout(() => {
|
|
214
|
-
W = null, L.value = !1;
|
|
215
|
-
}, 650));
|
|
216
|
-
}
|
|
217
216
|
function Z() {
|
|
218
|
-
|
|
217
|
+
U && clearTimeout(U), U = null, I.value = !1, W?.(), W = null;
|
|
218
|
+
}
|
|
219
|
+
function Ee() {
|
|
220
|
+
if (!E.enableShutterAnimation) return Promise.resolve();
|
|
221
|
+
Z(), L.value++, I.value = !0;
|
|
222
|
+
let e = new Promise((e) => {
|
|
223
|
+
W = e;
|
|
224
|
+
});
|
|
225
|
+
return U = setTimeout(Z, 650), e;
|
|
219
226
|
}
|
|
220
227
|
function Q() {
|
|
221
|
-
|
|
228
|
+
K && clearTimeout(K), K = null, q?.(), q = null;
|
|
229
|
+
}
|
|
230
|
+
function De() {
|
|
231
|
+
if (!B.value) return {
|
|
222
232
|
peak: Promise.resolve(),
|
|
223
233
|
faded: Promise.resolve()
|
|
224
234
|
};
|
|
225
|
-
G && clearTimeout(G),
|
|
235
|
+
G && clearTimeout(G), Q(), z.value++, R.value = !0;
|
|
226
236
|
let e = new Promise((e) => {
|
|
227
237
|
q = e;
|
|
228
238
|
});
|
|
229
239
|
return G = setTimeout(() => {
|
|
230
|
-
G = null,
|
|
240
|
+
G = null, R.value = !1, K = setTimeout(Q, 400);
|
|
231
241
|
}, 350), {
|
|
232
242
|
peak: new Promise((e) => setTimeout(e, 120)),
|
|
233
243
|
faded: e
|
|
234
244
|
};
|
|
235
245
|
}
|
|
236
|
-
async function
|
|
237
|
-
let e =
|
|
238
|
-
if (!e || !
|
|
239
|
-
|
|
246
|
+
async function Oe() {
|
|
247
|
+
let e = k.value;
|
|
248
|
+
if (!e || !N.value || P.value) return null;
|
|
249
|
+
P.value = !0;
|
|
240
250
|
try {
|
|
241
|
-
let t =
|
|
242
|
-
if (await t.peak, Y || !
|
|
251
|
+
let t = De();
|
|
252
|
+
if (await t.peak, Y || !N.value) return null;
|
|
243
253
|
let i = n(e, {
|
|
244
|
-
width:
|
|
245
|
-
height:
|
|
246
|
-
mirror:
|
|
247
|
-
filter:
|
|
248
|
-
tintColor:
|
|
249
|
-
tintIntensity:
|
|
250
|
-
});
|
|
251
|
-
|
|
252
|
-
let a = await r(i, { asBlob: w.emitBlob });
|
|
253
|
-
return await t.faded, Y ? null : (T("update:modelValue", a), T("capture", a, i), a);
|
|
254
|
+
width: A.value.width,
|
|
255
|
+
height: A.value.height,
|
|
256
|
+
mirror: M.value,
|
|
257
|
+
filter: E.filter,
|
|
258
|
+
tintColor: E.tintColor,
|
|
259
|
+
tintIntensity: E.tintIntensity
|
|
260
|
+
}), a = Ee(), o = await r(i, { asBlob: E.emitBlob });
|
|
261
|
+
return await Promise.all([t.faded, a]), Y ? null : (D("update:modelValue", o), D("capture", o, i), o);
|
|
254
262
|
} finally {
|
|
255
|
-
|
|
263
|
+
P.value = !1;
|
|
256
264
|
}
|
|
257
265
|
}
|
|
258
|
-
function
|
|
266
|
+
function ke() {
|
|
259
267
|
return new Promise((e) => {
|
|
260
|
-
J = e,
|
|
261
|
-
|
|
268
|
+
J = e, H = setTimeout(() => {
|
|
269
|
+
H = null, J = null, e(!0);
|
|
262
270
|
}, 1e3);
|
|
263
271
|
});
|
|
264
272
|
}
|
|
265
|
-
async function
|
|
266
|
-
let e = Number.isFinite(
|
|
267
|
-
for (let t = e; t > 0; t--) if (
|
|
268
|
-
return
|
|
273
|
+
async function Ae() {
|
|
274
|
+
let e = Number.isFinite(E.countdown) ? Math.max(0, Math.floor(E.countdown)) : 0;
|
|
275
|
+
for (let t = e; t > 0; t--) if (F.value = t, !await ke()) return null;
|
|
276
|
+
return F.value = 0, Y ? null : Oe();
|
|
269
277
|
}
|
|
270
278
|
function $() {
|
|
271
|
-
return
|
|
272
|
-
|
|
273
|
-
}),
|
|
279
|
+
return V || (!k.value || !N.value ? Promise.resolve(null) : (V = Ae().finally(() => {
|
|
280
|
+
F.value = 0, V = null;
|
|
281
|
+
}), V));
|
|
274
282
|
}
|
|
275
|
-
function
|
|
283
|
+
function je(e) {
|
|
276
284
|
let t = e.target.value;
|
|
277
|
-
t &&
|
|
285
|
+
t && j.selectDevice(t);
|
|
278
286
|
}
|
|
279
|
-
function
|
|
287
|
+
function Me(e, t) {
|
|
280
288
|
if (e.label) return e.label;
|
|
281
289
|
let n = e.facing === "user" ? "Front" : e.facing === "environment" ? "Back" : "";
|
|
282
290
|
return n ? `${n} camera` : `Camera ${t + 1}`;
|
|
283
291
|
}
|
|
284
|
-
return
|
|
292
|
+
return m({
|
|
285
293
|
onCapture: $,
|
|
286
|
-
camera:
|
|
294
|
+
camera: j,
|
|
287
295
|
zoom: X
|
|
288
|
-
}), (n, r) => (
|
|
296
|
+
}), (n, r) => (v(), d("div", re, [p(a, {
|
|
289
297
|
ref_key: "previewRef",
|
|
290
|
-
ref:
|
|
291
|
-
ratio:
|
|
292
|
-
resolutions:
|
|
293
|
-
mirror:
|
|
294
|
-
filter:
|
|
295
|
-
"tint-color":
|
|
296
|
-
"tint-intensity":
|
|
298
|
+
ref: O,
|
|
299
|
+
ratio: s.ratio,
|
|
300
|
+
resolutions: s.resolutions,
|
|
301
|
+
mirror: M.value,
|
|
302
|
+
filter: s.filter,
|
|
303
|
+
"tint-color": s.tintColor,
|
|
304
|
+
"tint-intensity": s.tintIntensity
|
|
297
305
|
}, {
|
|
298
|
-
default:
|
|
299
|
-
|
|
306
|
+
default: C(() => [
|
|
307
|
+
s.enableGuide && s.guideSrc ? (v(), d("img", {
|
|
300
308
|
key: 0,
|
|
301
|
-
src:
|
|
309
|
+
src: s.guideSrc,
|
|
302
310
|
class: "position-absolute top-0 start-0 w-100 h-100 base-camera__guide",
|
|
303
311
|
alt: "",
|
|
304
312
|
"aria-hidden": "true"
|
|
305
|
-
}, null, 8,
|
|
306
|
-
|
|
313
|
+
}, null, 8, ie)) : u("", !0),
|
|
314
|
+
f("div", ae, [f("div", oe, [Ce.value && x(j).activeDeviceId ? (v(), l(t, {
|
|
307
315
|
key: 0,
|
|
308
316
|
class: "base-camera__select",
|
|
309
|
-
modelValue:
|
|
310
|
-
"onUpdate:modelValue": r[0] ||= (e) =>
|
|
311
|
-
disabled:
|
|
317
|
+
modelValue: x(j).activeDeviceId.value,
|
|
318
|
+
"onUpdate:modelValue": r[0] ||= (e) => x(j).activeDeviceId.value = e,
|
|
319
|
+
disabled: x(j).isStarting.value,
|
|
312
320
|
"aria-label": "Select camera",
|
|
313
|
-
onChange:
|
|
314
|
-
options:
|
|
321
|
+
onChange: je,
|
|
322
|
+
options: x(j).devices.value.map((e, t) => ({
|
|
315
323
|
value: e.deviceId,
|
|
316
|
-
text:
|
|
317
|
-
}))
|
|
324
|
+
text: Me(e, t)
|
|
325
|
+
})),
|
|
326
|
+
variant: "dark"
|
|
318
327
|
}, null, 8, [
|
|
319
328
|
"modelValue",
|
|
320
329
|
"disabled",
|
|
321
330
|
"options"
|
|
322
|
-
])) : (
|
|
323
|
-
key:
|
|
331
|
+
])) : (v(), d("span", se))]), f("div", ce, [s.enableScreenFlash ? (v(), d("button", {
|
|
332
|
+
key: 0,
|
|
333
|
+
type: "button",
|
|
334
|
+
class: "btn btn-dark bg-opacity-50 base-camera__icon-btn",
|
|
335
|
+
"aria-label": B.value ? "Flash On" : "Flash Off",
|
|
336
|
+
onClick: r[1] ||= (e) => B.value = !B.value
|
|
337
|
+
}, [B.value ? (v(), l(e, {
|
|
338
|
+
key: 0,
|
|
339
|
+
symbol: "zap"
|
|
340
|
+
})) : (v(), l(e, {
|
|
341
|
+
key: 1,
|
|
342
|
+
symbol: "zap-off"
|
|
343
|
+
}))], 8, le)) : u("", !0), we.value ? (v(), d("button", {
|
|
344
|
+
key: 1,
|
|
324
345
|
type: "button",
|
|
325
|
-
class: "btn
|
|
326
|
-
disabled:
|
|
346
|
+
class: "btn btn-dark bg-opacity-50 base-camera__icon-btn",
|
|
347
|
+
disabled: x(j).isStarting.value,
|
|
327
348
|
"aria-label": "Switch camera",
|
|
328
|
-
onClick: r[
|
|
329
|
-
}, [
|
|
330
|
-
|
|
349
|
+
onClick: r[2] ||= (e) => x(j).switchCamera()
|
|
350
|
+
}, [p(e, { symbol: "switch-camera" })], 8, ue)) : u("", !0)])]),
|
|
351
|
+
x(j).isStarting.value || x(j).state.value === "error" || x(j).state.value === "idle" && !s.autoStart ? (v(), d("div", de, [x(j).isStarting.value ? (v(), d("div", fe, [...r[9] ||= [f("span", { class: "visually-hidden" }, "Starting camera…", -1)]])) : x(j).state.value === "error" ? (v(), d("div", pe, [f("div", me, b(x(j).error.value?.message ?? "Camera error"), 1), x(j).error.value?.code !== "not-allowed" && x(j).error.value?.code !== "unsupported" ? (v(), d("button", {
|
|
331
352
|
key: 0,
|
|
332
353
|
type: "button",
|
|
333
354
|
class: "btn btn-sm btn-outline-light",
|
|
334
|
-
onClick: r[
|
|
335
|
-
}, " Retry ")) :
|
|
355
|
+
onClick: r[3] ||= (e) => x(j).start()
|
|
356
|
+
}, " Retry ")) : u("", !0)])) : (v(), d("button", {
|
|
336
357
|
key: 2,
|
|
337
358
|
type: "button",
|
|
338
359
|
class: "btn btn-light",
|
|
339
|
-
onClick: r[
|
|
340
|
-
}, "Start camera"))])) :
|
|
341
|
-
|
|
342
|
-
|
|
360
|
+
onClick: r[4] ||= (e) => x(j).start()
|
|
361
|
+
}, "Start camera"))])) : u("", !0),
|
|
362
|
+
f("div", he, [s.enableControls ? (v(), d("div", ge, [
|
|
363
|
+
f("button", {
|
|
343
364
|
type: "button",
|
|
344
365
|
class: "btn btn-dark bg-opacity-50 rounded-circle base-camera__icon-btn",
|
|
345
|
-
disabled:
|
|
346
|
-
"aria-label":
|
|
347
|
-
onClick: r[
|
|
348
|
-
}, [
|
|
366
|
+
disabled: x(j).isStarting.value,
|
|
367
|
+
"aria-label": x(j).isLive.value ? "Pause" : "Start",
|
|
368
|
+
onClick: r[5] ||= (e) => x(j).toggle()
|
|
369
|
+
}, [x(j).isLive.value ? (v(), d("svg", _e, [...r[10] ||= [f("rect", {
|
|
349
370
|
x: "6",
|
|
350
371
|
y: "5",
|
|
351
372
|
width: "4",
|
|
352
373
|
height: "14",
|
|
353
374
|
rx: "1"
|
|
354
|
-
}, null, -1),
|
|
375
|
+
}, null, -1), f("rect", {
|
|
355
376
|
x: "14",
|
|
356
377
|
y: "5",
|
|
357
378
|
width: "4",
|
|
358
379
|
height: "14",
|
|
359
380
|
rx: "1"
|
|
360
|
-
}, null, -1)]])) : (
|
|
361
|
-
|
|
381
|
+
}, null, -1)]])) : (v(), d("svg", ve, [...r[11] ||= [f("path", { d: "M8 5v14l11-7z" }, null, -1)]]))], 8, w),
|
|
382
|
+
f("button", {
|
|
362
383
|
type: "button",
|
|
363
384
|
class: "btn btn-light rounded-circle base-camera__shutter",
|
|
364
|
-
disabled: !
|
|
385
|
+
disabled: !N.value || P.value || F.value > 0,
|
|
365
386
|
"aria-label": "Capture photo",
|
|
366
|
-
onClick: r[
|
|
367
|
-
}, [...r[
|
|
368
|
-
|
|
387
|
+
onClick: r[6] ||= (e) => $()
|
|
388
|
+
}, [...r[12] ||= [f("span", { class: "base-camera__shutter-inner" }, null, -1)]], 8, ye),
|
|
389
|
+
f("button", {
|
|
369
390
|
type: "button",
|
|
370
391
|
class: "btn btn-dark bg-opacity-50 rounded-circle base-camera__icon-btn",
|
|
371
|
-
"aria-label":
|
|
372
|
-
onClick: r[
|
|
373
|
-
}, [
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
key: 1,
|
|
378
|
-
symbol: "zap-off"
|
|
379
|
-
}))], 8, ye)
|
|
380
|
-
])) : l("", !0)]),
|
|
381
|
-
I.value ? (h(), u("div", be, [(h(), u("p", {
|
|
382
|
-
key: I.value,
|
|
392
|
+
"aria-label": "Stop camera",
|
|
393
|
+
onClick: r[7] ||= (e) => x(j).stop()
|
|
394
|
+
}, [p(e, { symbol: "x" })])
|
|
395
|
+
])) : u("", !0)]),
|
|
396
|
+
F.value ? (v(), d("div", be, [(v(), d("p", {
|
|
397
|
+
key: F.value,
|
|
383
398
|
class: "base-camera__countdown",
|
|
384
|
-
"data-countdown":
|
|
385
|
-
},
|
|
386
|
-
|
|
387
|
-
key:
|
|
399
|
+
"data-countdown": F.value
|
|
400
|
+
}, b(F.value), 9, xe))])) : u("", !0),
|
|
401
|
+
I.value ? (v(), d("div", {
|
|
402
|
+
key: L.value,
|
|
388
403
|
class: "base-camera__shutter-effect",
|
|
389
404
|
"aria-hidden": "true"
|
|
390
|
-
}, [...r[
|
|
391
|
-
|
|
405
|
+
}, [...r[13] ||= [f("span", { class: "base-camera__shutter-aperture" }, null, -1)]])) : u("", !0),
|
|
406
|
+
(v(), l(ee, {
|
|
407
|
+
to: "body",
|
|
408
|
+
disabled: !s.screenFlashFullscreen
|
|
409
|
+
}, [p(te, {
|
|
392
410
|
name: "base-camera-flash",
|
|
393
|
-
onAfterLeave:
|
|
411
|
+
onAfterLeave: Q
|
|
394
412
|
}, {
|
|
395
|
-
default:
|
|
396
|
-
key:
|
|
397
|
-
class: "base-camera__screen-flash",
|
|
398
|
-
style:
|
|
413
|
+
default: C(() => [R.value ? (v(), d("div", {
|
|
414
|
+
key: z.value,
|
|
415
|
+
class: h(["base-camera__screen-flash", { "base-camera__screen-flash--fullscreen": s.screenFlashFullscreen }]),
|
|
416
|
+
style: g({ background: s.screenFlashColor }),
|
|
399
417
|
"aria-hidden": "true"
|
|
400
|
-
}, null,
|
|
418
|
+
}, null, 6)) : u("", !0)]),
|
|
401
419
|
_: 1
|
|
402
|
-
})
|
|
420
|
+
})], 8, ["disabled"]))
|
|
403
421
|
]),
|
|
404
422
|
_: 1
|
|
405
423
|
}, 8, [
|
|
@@ -409,19 +427,19 @@ var ie = {
|
|
|
409
427
|
"filter",
|
|
410
428
|
"tint-color",
|
|
411
429
|
"tint-intensity"
|
|
412
|
-
]),
|
|
430
|
+
]), Te.value ? (v(), d("div", Se, [p(o, {
|
|
413
431
|
modelValue: X.value,
|
|
414
|
-
"onUpdate:modelValue": r[
|
|
415
|
-
min:
|
|
416
|
-
max:
|
|
417
|
-
step:
|
|
432
|
+
"onUpdate:modelValue": r[8] ||= (e) => X.value = e,
|
|
433
|
+
min: x(j).zoomCapability.value.min,
|
|
434
|
+
max: x(j).zoomCapability.value.max,
|
|
435
|
+
step: x(j).zoomCapability.value.step
|
|
418
436
|
}, null, 8, [
|
|
419
437
|
"modelValue",
|
|
420
438
|
"min",
|
|
421
439
|
"max",
|
|
422
440
|
"step"
|
|
423
|
-
])])) :
|
|
441
|
+
])])) : u("", !0)]));
|
|
424
442
|
}
|
|
425
443
|
});
|
|
426
444
|
//#endregion
|
|
427
|
-
export {
|
|
445
|
+
export { T as default };
|
|
@@ -116,7 +116,7 @@ var b = ["id"], x = ["for", "innerHTML"], S = { class: "dropdown" }, C = { class
|
|
|
116
116
|
role: "button",
|
|
117
117
|
type: "button",
|
|
118
118
|
title: L.value,
|
|
119
|
-
class: "btn dropdown-toggle",
|
|
119
|
+
class: u(["btn dropdown-toggle", { [`btn-${e.variant}`]: e.variant }]),
|
|
120
120
|
color: e.color,
|
|
121
121
|
outlined: e.outlined,
|
|
122
122
|
disabled: e.disabled
|
|
@@ -133,6 +133,7 @@ var b = ["id"], x = ["for", "innerHTML"], S = { class: "dropdown" }, C = { class
|
|
|
133
133
|
}, 8, [
|
|
134
134
|
"id",
|
|
135
135
|
"title",
|
|
136
|
+
"class",
|
|
136
137
|
"color",
|
|
137
138
|
"outlined",
|
|
138
139
|
"disabled"
|