ablok-components 0.3.133 → 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 +174 -139
- 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
|
@@ -5,48 +5,48 @@ import { useCamera as i } from "../../../composables/useCamera.js";
|
|
|
5
5
|
import a from "../camera-preview/camera-preview.js";
|
|
6
6
|
import o from "../../atoms/zoom-slider/zoom-slider.js";
|
|
7
7
|
import s from "../../../assets/img/guide.js";
|
|
8
|
-
import {
|
|
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
|
-
}, ie = ["src"], ae = { class: "position-absolute top-0 start-0 end-0 d-flex
|
|
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 },
|
|
@@ -168,6 +168,10 @@ var x = {
|
|
|
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,158 +184,189 @@ var x = {
|
|
|
180
184
|
"error",
|
|
181
185
|
"state"
|
|
182
186
|
],
|
|
183
|
-
setup(s, { expose: m, emit:
|
|
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
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
}),
|
|
200
|
-
|
|
201
|
-
}),
|
|
202
|
-
|
|
203
|
-
}),
|
|
204
|
-
e &&
|
|
205
|
-
}),
|
|
206
|
-
e &&
|
|
207
|
-
}),
|
|
208
|
-
|
|
209
|
-
}),
|
|
210
|
-
|
|
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) => {
|
|
202
|
+
X.value = e;
|
|
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
|
|
213
|
-
|
|
214
|
-
J = null, V.value = !1;
|
|
215
|
-
}, 650));
|
|
216
|
+
function Z() {
|
|
217
|
+
U && clearTimeout(U), U = null, I.value = !1, W?.(), W = null;
|
|
216
218
|
}
|
|
217
|
-
function
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
})
|
|
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;
|
|
226
|
+
}
|
|
227
|
+
function Q() {
|
|
228
|
+
K && clearTimeout(K), K = null, q?.(), q = null;
|
|
223
229
|
}
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
230
|
+
function De() {
|
|
231
|
+
if (!B.value) return {
|
|
232
|
+
peak: Promise.resolve(),
|
|
233
|
+
faded: Promise.resolve()
|
|
234
|
+
};
|
|
235
|
+
G && clearTimeout(G), Q(), z.value++, R.value = !0;
|
|
236
|
+
let e = new Promise((e) => {
|
|
237
|
+
q = e;
|
|
238
|
+
});
|
|
239
|
+
return G = setTimeout(() => {
|
|
240
|
+
G = null, R.value = !1, K = setTimeout(Q, 400);
|
|
241
|
+
}, 350), {
|
|
242
|
+
peak: new Promise((e) => setTimeout(e, 120)),
|
|
243
|
+
faded: e
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
async function Oe() {
|
|
247
|
+
let e = k.value;
|
|
248
|
+
if (!e || !N.value || P.value) return null;
|
|
249
|
+
P.value = !0;
|
|
228
250
|
try {
|
|
229
|
-
let t =
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
return
|
|
251
|
+
let t = De();
|
|
252
|
+
if (await t.peak, Y || !N.value) return null;
|
|
253
|
+
let i = n(e, {
|
|
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);
|
|
240
262
|
} finally {
|
|
241
|
-
|
|
263
|
+
P.value = !1;
|
|
242
264
|
}
|
|
243
265
|
}
|
|
244
|
-
function
|
|
266
|
+
function ke() {
|
|
245
267
|
return new Promise((e) => {
|
|
246
|
-
|
|
247
|
-
|
|
268
|
+
J = e, H = setTimeout(() => {
|
|
269
|
+
H = null, J = null, e(!0);
|
|
248
270
|
}, 1e3);
|
|
249
271
|
});
|
|
250
272
|
}
|
|
251
|
-
async function
|
|
252
|
-
let e = Number.isFinite(
|
|
253
|
-
for (let t = e; t > 0; t--) if (
|
|
254
|
-
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();
|
|
255
277
|
}
|
|
256
278
|
function $() {
|
|
257
|
-
return
|
|
258
|
-
|
|
259
|
-
}),
|
|
279
|
+
return V || (!k.value || !N.value ? Promise.resolve(null) : (V = Ae().finally(() => {
|
|
280
|
+
F.value = 0, V = null;
|
|
281
|
+
}), V));
|
|
260
282
|
}
|
|
261
|
-
function
|
|
283
|
+
function je(e) {
|
|
262
284
|
let t = e.target.value;
|
|
263
|
-
t &&
|
|
285
|
+
t && j.selectDevice(t);
|
|
264
286
|
}
|
|
265
|
-
function
|
|
287
|
+
function Me(e, t) {
|
|
266
288
|
if (e.label) return e.label;
|
|
267
289
|
let n = e.facing === "user" ? "Front" : e.facing === "environment" ? "Back" : "";
|
|
268
290
|
return n ? `${n} camera` : `Camera ${t + 1}`;
|
|
269
291
|
}
|
|
270
292
|
return m({
|
|
271
293
|
onCapture: $,
|
|
272
|
-
camera:
|
|
273
|
-
zoom:
|
|
274
|
-
}), (n, r) => (
|
|
294
|
+
camera: j,
|
|
295
|
+
zoom: X
|
|
296
|
+
}), (n, r) => (v(), d("div", re, [p(a, {
|
|
275
297
|
ref_key: "previewRef",
|
|
276
|
-
ref:
|
|
298
|
+
ref: O,
|
|
277
299
|
ratio: s.ratio,
|
|
278
300
|
resolutions: s.resolutions,
|
|
279
|
-
mirror:
|
|
301
|
+
mirror: M.value,
|
|
280
302
|
filter: s.filter,
|
|
281
303
|
"tint-color": s.tintColor,
|
|
282
304
|
"tint-intensity": s.tintIntensity
|
|
283
305
|
}, {
|
|
284
|
-
default:
|
|
285
|
-
s.enableGuide && s.guideSrc ? (
|
|
306
|
+
default: C(() => [
|
|
307
|
+
s.enableGuide && s.guideSrc ? (v(), d("img", {
|
|
286
308
|
key: 0,
|
|
287
309
|
src: s.guideSrc,
|
|
288
310
|
class: "position-absolute top-0 start-0 w-100 h-100 base-camera__guide",
|
|
289
311
|
alt: "",
|
|
290
312
|
"aria-hidden": "true"
|
|
291
313
|
}, null, 8, ie)) : u("", !0),
|
|
292
|
-
f("div", ae, [
|
|
314
|
+
f("div", ae, [f("div", oe, [Ce.value && x(j).activeDeviceId ? (v(), l(t, {
|
|
293
315
|
key: 0,
|
|
294
316
|
class: "base-camera__select",
|
|
295
|
-
modelValue:
|
|
296
|
-
"onUpdate:modelValue": r[0] ||= (e) =>
|
|
297
|
-
disabled:
|
|
317
|
+
modelValue: x(j).activeDeviceId.value,
|
|
318
|
+
"onUpdate:modelValue": r[0] ||= (e) => x(j).activeDeviceId.value = e,
|
|
319
|
+
disabled: x(j).isStarting.value,
|
|
298
320
|
"aria-label": "Select camera",
|
|
299
|
-
onChange:
|
|
300
|
-
options:
|
|
321
|
+
onChange: je,
|
|
322
|
+
options: x(j).devices.value.map((e, t) => ({
|
|
301
323
|
value: e.deviceId,
|
|
302
|
-
text:
|
|
303
|
-
}))
|
|
324
|
+
text: Me(e, t)
|
|
325
|
+
})),
|
|
326
|
+
variant: "dark"
|
|
304
327
|
}, null, 8, [
|
|
305
328
|
"modelValue",
|
|
306
329
|
"disabled",
|
|
307
330
|
"options"
|
|
308
|
-
])) : (
|
|
309
|
-
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,
|
|
310
345
|
type: "button",
|
|
311
|
-
class: "btn
|
|
312
|
-
disabled:
|
|
346
|
+
class: "btn btn-dark bg-opacity-50 base-camera__icon-btn",
|
|
347
|
+
disabled: x(j).isStarting.value,
|
|
313
348
|
"aria-label": "Switch camera",
|
|
314
|
-
onClick: r[
|
|
315
|
-
}, [p(e, { symbol: "switch-camera" })], 8,
|
|
316
|
-
|
|
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", {
|
|
317
352
|
key: 0,
|
|
318
353
|
type: "button",
|
|
319
354
|
class: "btn btn-sm btn-outline-light",
|
|
320
|
-
onClick: r[
|
|
321
|
-
}, " Retry ")) : u("", !0)])) : (
|
|
355
|
+
onClick: r[3] ||= (e) => x(j).start()
|
|
356
|
+
}, " Retry ")) : u("", !0)])) : (v(), d("button", {
|
|
322
357
|
key: 2,
|
|
323
358
|
type: "button",
|
|
324
359
|
class: "btn btn-light",
|
|
325
|
-
onClick: r[
|
|
360
|
+
onClick: r[4] ||= (e) => x(j).start()
|
|
326
361
|
}, "Start camera"))])) : u("", !0),
|
|
327
|
-
f("div",
|
|
362
|
+
f("div", he, [s.enableControls ? (v(), d("div", ge, [
|
|
328
363
|
f("button", {
|
|
329
364
|
type: "button",
|
|
330
365
|
class: "btn btn-dark bg-opacity-50 rounded-circle base-camera__icon-btn",
|
|
331
|
-
disabled:
|
|
332
|
-
"aria-label":
|
|
333
|
-
onClick: r[
|
|
334
|
-
}, [
|
|
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", {
|
|
335
370
|
x: "6",
|
|
336
371
|
y: "5",
|
|
337
372
|
width: "4",
|
|
@@ -343,46 +378,46 @@ var x = {
|
|
|
343
378
|
width: "4",
|
|
344
379
|
height: "14",
|
|
345
380
|
rx: "1"
|
|
346
|
-
}, null, -1)]])) : (
|
|
381
|
+
}, null, -1)]])) : (v(), d("svg", ve, [...r[11] ||= [f("path", { d: "M8 5v14l11-7z" }, null, -1)]]))], 8, w),
|
|
347
382
|
f("button", {
|
|
348
383
|
type: "button",
|
|
349
384
|
class: "btn btn-light rounded-circle base-camera__shutter",
|
|
350
|
-
disabled: !
|
|
385
|
+
disabled: !N.value || P.value || F.value > 0,
|
|
351
386
|
"aria-label": "Capture photo",
|
|
352
|
-
onClick: r[
|
|
353
|
-
}, [...r[
|
|
387
|
+
onClick: r[6] ||= (e) => $()
|
|
388
|
+
}, [...r[12] ||= [f("span", { class: "base-camera__shutter-inner" }, null, -1)]], 8, ye),
|
|
354
389
|
f("button", {
|
|
355
390
|
type: "button",
|
|
356
391
|
class: "btn btn-dark bg-opacity-50 rounded-circle base-camera__icon-btn",
|
|
357
|
-
"aria-label":
|
|
358
|
-
onClick: r[
|
|
359
|
-
}, [
|
|
360
|
-
key: 0,
|
|
361
|
-
symbol: "zap"
|
|
362
|
-
})) : (h(), l(e, {
|
|
363
|
-
key: 1,
|
|
364
|
-
symbol: "zap-off"
|
|
365
|
-
}))], 8, pe)
|
|
392
|
+
"aria-label": "Stop camera",
|
|
393
|
+
onClick: r[7] ||= (e) => x(j).stop()
|
|
394
|
+
}, [p(e, { symbol: "x" })])
|
|
366
395
|
])) : u("", !0)]),
|
|
367
|
-
|
|
368
|
-
key:
|
|
396
|
+
F.value ? (v(), d("div", be, [(v(), d("p", {
|
|
397
|
+
key: F.value,
|
|
369
398
|
class: "base-camera__countdown",
|
|
370
|
-
"data-countdown":
|
|
371
|
-
},
|
|
372
|
-
|
|
373
|
-
key:
|
|
399
|
+
"data-countdown": F.value
|
|
400
|
+
}, b(F.value), 9, xe))])) : u("", !0),
|
|
401
|
+
I.value ? (v(), d("div", {
|
|
402
|
+
key: L.value,
|
|
374
403
|
class: "base-camera__shutter-effect",
|
|
375
404
|
"aria-hidden": "true"
|
|
376
|
-
}, [...r[
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
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, {
|
|
410
|
+
name: "base-camera-flash",
|
|
411
|
+
onAfterLeave: Q
|
|
412
|
+
}, {
|
|
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 }),
|
|
382
417
|
"aria-hidden": "true"
|
|
383
|
-
}, null,
|
|
418
|
+
}, null, 6)) : u("", !0)]),
|
|
384
419
|
_: 1
|
|
385
|
-
})
|
|
420
|
+
})], 8, ["disabled"]))
|
|
386
421
|
]),
|
|
387
422
|
_: 1
|
|
388
423
|
}, 8, [
|
|
@@ -392,12 +427,12 @@ var x = {
|
|
|
392
427
|
"filter",
|
|
393
428
|
"tint-color",
|
|
394
429
|
"tint-intensity"
|
|
395
|
-
]),
|
|
396
|
-
modelValue:
|
|
397
|
-
"onUpdate:modelValue": r[
|
|
398
|
-
min:
|
|
399
|
-
max:
|
|
400
|
-
step:
|
|
430
|
+
]), Te.value ? (v(), d("div", Se, [p(o, {
|
|
431
|
+
modelValue: X.value,
|
|
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
|
|
401
436
|
}, null, 8, [
|
|
402
437
|
"modelValue",
|
|
403
438
|
"min",
|
|
@@ -407,4 +442,4 @@ var x = {
|
|
|
407
442
|
}
|
|
408
443
|
});
|
|
409
444
|
//#endregion
|
|
410
|
-
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"
|