@codingfactory/mediables-vue 2.4.17 → 2.4.19

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.
@@ -5,7 +5,7 @@ import { defineStore as jo, storeToRefs as Ic } from "pinia";
5
5
  import { ref as E, computed as B, defineComponent as We, onMounted as ut, watch as Fe, onUnmounted as rt, createElementBlock as T, openBlock as k, onBeforeUnmount as Rc, createBlock as Ge, Teleport as Gl, createCommentVNode as ee, withKeys as pa, createElementVNode as r, createVNode as P, nextTick as Nt, withDirectives as Oe, Fragment as Pe, renderList as Ne, toDisplayString as K, vModelSelect as jt, unref as p, renderSlot as Mt, toValue as Wr, getCurrentScope as $c, toRefs as Vc, resolveComponent as go, withCtx as oe, createTextVNode as Me, vModelText as nt, normalizeClass as He, createStaticVNode as Pi, createSlots as Uc, mergeProps as yo, normalizeStyle as ot, withModifiers as Ot, reactive as Qi, vModelCheckbox as Ga, shallowRef as Wo, vShow as pi, onErrorCaptured as Oc, Transition as Ac, isRef as Ys, provide as ma, normalizeProps as Jl, guardReactiveProps as Yl } from "vue";
6
6
  import * as gt from "pixi.js";
7
7
  import { Texture as Hn, Sprite as Ja, TextStyle as Lc, Text as Un, Color as Ks, Container as tn, autoDetectRenderer as Pc, Filter as zc, CanvasTextMetrics as Dc, Graphics as Bc } from "pixi.js";
8
- import { a as fa, d as Nc, g as Kl, i as ql, V as jc, b as Wc, e as Zo, f as Zc } from "./editor-COzKP3ld.js";
8
+ import { a as fa, d as Nc, g as Kl, i as ql, V as jc, b as Wc, e as Zo, f as Zc } from "./editor-BfdrdqUU.js";
9
9
  import { IonModal as Gn, IonHeader as Jn, IonToolbar as Oi, IonTitle as Yn, IonButtons as Li, IonButton as tt, IonIcon as me, IonSegment as Xc, IonSegmentButton as qs, IonLabel as $t, IonBadge as Hc, IonContent as Kn, IonSearchbar as Gc, IonSpinner as ni, IonList as Jc, IonInfiniteScroll as Yc, IonInfiniteScrollContent as Kc, IonFooter as Xo, toastController as Ql, alertController as qc, IonRange as Qc, IonToggle as ep, IonProgressBar as tp, IonItem as Vi, IonCheckbox as bo, isPlatform as eu, IonInput as Zr, IonText as kn, IonTextarea as Xr, IonNote as Hr, IonAlert as ip, IonCard as Gr, IonSkeletonText as ap } from "@ionic/vue";
10
10
  import { GlowFilter as np } from "pixi-filters";
11
11
  const wo = 1, sp = /* @__PURE__ */ new Set(["free", "square", "circle"]);
@@ -584,7 +584,6 @@ const hp = /* @__PURE__ */ We({
584
584
  sessionKey: { default: 0 },
585
585
  acceptedFormats: { default: "image/jpeg,image/png,image/webp,image/gif" },
586
586
  maxFileSize: { default: 10 },
587
- onSave: {},
588
587
  theme: { default: "auto" },
589
588
  cropShape: { default: "square" },
590
589
  preset: {},
@@ -610,9 +609,9 @@ const hp = /* @__PURE__ */ We({
610
609
  Fe(() => e.modelValue, (y) => {
611
610
  s.value = y, y && (u.value = document.activeElement, d());
612
611
  }, { immediate: !0 });
613
- const c = async (y) => {
612
+ const c = (y) => {
614
613
  try {
615
- o.value = !0, e.onSave && await e.onSave(y), i("save", y);
614
+ o.value = !0, i("save", y);
616
615
  } catch (C) {
617
616
  l(C);
618
617
  } finally {
@@ -680,7 +679,7 @@ const hp = /* @__PURE__ */ We({
680
679
  ], 544)) : ee("", !0)
681
680
  ]));
682
681
  }
683
- }), wp = /* @__PURE__ */ Xe(bp, [["__scopeId", "data-v-9ca8dea8"]]), xp = { class: "media-workspace" }, kp = { class: "media-workspace-toolbar" }, _p = { class: "media-workspace-label" }, Sp = ["value"], Cp = { class: "media-workspace-grid" }, Tp = ["onClick"], Mp = /* @__PURE__ */ We({
682
+ }), wp = /* @__PURE__ */ Xe(bp, [["__scopeId", "data-v-437b6a27"]]), xp = { class: "media-workspace" }, kp = { class: "media-workspace-toolbar" }, _p = { class: "media-workspace-label" }, Sp = ["value"], Cp = { class: "media-workspace-grid" }, Tp = ["onClick"], Mp = /* @__PURE__ */ We({
684
683
  __name: "MediaWorkspace",
685
684
  props: {
686
685
  apiScope: {},
@@ -2464,13 +2463,13 @@ const _m = { class: "flex items-center justify-between w-full px-4" }, Sm = { cl
2464
2463
  "initial-image": h.value,
2465
2464
  "initial-state": m.value,
2466
2465
  "session-key": c.value,
2467
- "on-save": L,
2466
+ onSave: L,
2468
2467
  onCancel: O,
2469
2468
  onError: N
2470
2469
  }, null, 8, ["modelValue", "initial-image", "initial-state", "session-key"])
2471
2470
  ]));
2472
2471
  }
2473
- }), m8 = /* @__PURE__ */ Xe(Cf, [["__scopeId", "data-v-6677bbfe"]]);
2472
+ }), m8 = /* @__PURE__ */ Xe(Cf, [["__scopeId", "data-v-f68e70ec"]]);
2474
2473
  function Sn(a, t, e, i) {
2475
2474
  if (e <= 0 || i <= 0)
2476
2475
  return !1;
@@ -16285,7 +16284,7 @@ const Ow = {
16285
16284
  throw new Error("PIXI preview not available for export. Ensure the preview is mounted.");
16286
16285
  if (!Et)
16287
16286
  throw new Error("PIXI preview not ready for frame capture after retries. The video may still be loading.");
16288
- const { exportWithPixiFrames: Ea, isWebCodecsSupported: Hs } = await import("./PixiFrameExporter-DpA_aGpS.js");
16287
+ const { exportWithPixiFrames: Ea, isWebCodecsSupported: Hs } = await import("./PixiFrameExporter-Ovg5_owp.js");
16289
16288
  if (!Hs())
16290
16289
  throw new Error("WebCodecs is not supported in this browser. Export requires Chrome 94+ or equivalent.");
16291
16290
  ki = new AbortController();
@@ -17379,11 +17378,11 @@ const Ow = {
17379
17378
  c !== null && (e.height = c);
17380
17379
  const m = ai(e.output);
17381
17380
  return e.fps = at(e.fps) ?? at(m == null ? void 0 : m.fps) ?? 30, I2(e, t.mediaDuration ?? null), e;
17382
- }, $2 = { key: 0 }, V2 = ["data-testid"], U2 = { class: "ve-mobile-header" }, O2 = ["data-testid", "disabled"], A2 = { class: "ve-mobile-title" }, L2 = ["data-testid", "disabled"], P2 = {
17381
+ }, $2 = { key: 0 }, V2 = ["data-testid"], U2 = { class: "ve-mobile-header" }, O2 = ["data-testid"], A2 = { class: "ve-mobile-title" }, L2 = ["data-testid", "disabled"], P2 = {
17383
17382
  key: 1,
17384
17383
  class: "ve-mobile-spacer",
17385
17384
  "aria-hidden": "true"
17386
- }, z2 = { class: "ve-body" }, D2 = ["data-testid"], B2 = ["aria-label"], N2 = { class: "ve-header" }, j2 = { class: "ve-title" }, W2 = ["data-testid", "disabled"], Z2 = { class: "ve-body" }, X2 = { class: "ve-footer" }, H2 = ["data-testid", "disabled"], G2 = ["data-testid", "disabled"], J2 = /* @__PURE__ */ We({
17385
+ }, z2 = { class: "ve-body" }, D2 = ["data-testid"], B2 = ["aria-label"], N2 = { class: "ve-header" }, j2 = { class: "ve-title" }, W2 = ["data-testid"], Z2 = { class: "ve-body" }, X2 = { class: "ve-footer" }, H2 = ["data-testid"], G2 = ["data-testid", "disabled"], J2 = /* @__PURE__ */ We({
17387
17386
  __name: "VideoEditorDialog",
17388
17387
  props: {
17389
17388
  open: { type: Boolean, default: !0 },
@@ -17459,7 +17458,7 @@ const Ow = {
17459
17458
  }, D = () => {
17460
17459
  n("close"), n("update:open", !1);
17461
17460
  }, I = () => {
17462
- m.value || D();
17461
+ m.value = !1, D();
17463
17462
  }, b = ($) => {
17464
17463
  n("recipe-generated", $);
17465
17464
  }, F = ($) => {
@@ -17541,7 +17540,6 @@ const Ow = {
17541
17540
  class: "ve-mobile-action",
17542
17541
  type: "button",
17543
17542
  "data-testid": `${s.value}-close-button`,
17544
- disabled: m.value,
17545
17543
  onClick: I
17546
17544
  }, K(l.value), 9, O2),
17547
17545
  r("h2", A2, K($.title), 1),
@@ -17586,7 +17584,6 @@ const Ow = {
17586
17584
  class: "ve-close",
17587
17585
  type: "button",
17588
17586
  "data-testid": `${s.value}-close-button`,
17589
- disabled: m.value,
17590
17587
  "aria-label": "Close",
17591
17588
  onClick: I
17592
17589
  }, " ✕ ", 8, W2)
@@ -17615,7 +17612,6 @@ const Ow = {
17615
17612
  class: "ve-btn",
17616
17613
  type: "button",
17617
17614
  "data-testid": `${s.value}-cancel-button`,
17618
- disabled: m.value,
17619
17615
  onClick: I
17620
17616
  }, K(l.value), 9, H2),
17621
17617
  u.value ? (k(), T("button", {
@@ -17633,7 +17629,7 @@ const Ow = {
17633
17629
  ])) : ee("", !0)
17634
17630
  ]));
17635
17631
  }
17636
- }), U8 = /* @__PURE__ */ Xe(J2, [["__scopeId", "data-v-cdf43562"]]), Y2 = { class: "video-editor-modal" }, K2 = { class: "video-preview-container" }, q2 = ["src"], Q2 = { class: "video-overlay-controls" }, ex = ["aria-label"], tx = { class: "time-display" }, ix = { class: "timeline-container" }, ax = { class: "clip-name" }, nx = { class: "timeline-time-labels" }, sx = { class: "tool-tabs" }, ox = ["onClick"], rx = { class: "tool-panel" }, lx = {
17632
+ }), U8 = /* @__PURE__ */ Xe(J2, [["__scopeId", "data-v-0ff40919"]]), Y2 = { class: "video-editor-modal" }, K2 = { class: "video-preview-container" }, q2 = ["src"], Q2 = { class: "video-overlay-controls" }, ex = ["aria-label"], tx = { class: "time-display" }, ix = { class: "timeline-container" }, ax = { class: "clip-name" }, nx = { class: "timeline-time-labels" }, sx = { class: "tool-tabs" }, ox = ["onClick"], rx = { class: "tool-panel" }, lx = {
17637
17633
  key: 0,
17638
17634
  class: "trim-panel"
17639
17635
  }, ux = { class: "trim-controls" }, dx = {
@@ -24505,4 +24501,4 @@ export {
24505
24501
  N8 as y,
24506
24502
  gd as z
24507
24503
  };
24508
- //# sourceMappingURL=index-BGiY-ZYy.js.map
24504
+ //# sourceMappingURL=index-RIK4lle5.js.map