@camstack/addon-model-studio 1.1.260 → 1.1.262

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 (27) hide show
  1. package/dist/{MaskShapeCanvas-DBaZffFb.mjs → MaskShapeCanvas-CrWutXSb.mjs} +2330 -2329
  2. package/dist/MotionZonesSettings-DtoUJxd6.mjs +309 -0
  3. package/dist/PrivacyMaskSettings-Bd5lL0CO.mjs +368 -0
  4. package/dist/SceneMonitorEditor-BG0CBUrr.mjs +846 -0
  5. package/dist/_stub.js +9125 -7988
  6. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-CkwkW2EP.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-CmpS6H8K.mjs} +4 -4
  7. package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DlW3IlLM.mjs +26 -0
  8. package/dist/{_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react__loadShare__.js-CHL8loOl.mjs → _virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react__loadShare__.js-DMBKVIH7.mjs} +1 -1
  9. package/dist/addon-model-studio.css +1 -1
  10. package/dist/{hostInit-Dj9XbnRR.mjs → hostInit-Cuk6X8GJ.mjs} +3 -3
  11. package/dist/model-studio.addon.js +204 -7
  12. package/dist/model-studio.addon.mjs +204 -7
  13. package/dist/player-overlays-DXeDukPC.mjs +44 -0
  14. package/dist/remoteEntry.js +1 -1
  15. package/dist/{responsive-CZQqiIpv.mjs → responsive-D9Bo78lO.mjs} +35 -35
  16. package/dist/scene-monitor-copy-CQr7egaT.mjs +227 -0
  17. package/dist/{square-ScGuLQH_.mjs → square-d__poSpa.mjs} +1 -1
  18. package/dist/{trash-2-CQxFRUtz.mjs → trash-2-C0XdoZQu.mjs} +1 -1
  19. package/dist/ui-text-BqZa5BNK.mjs +34 -0
  20. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-BbU0PjTG.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-CS43EGzM.mjs} +1 -1
  21. package/package.json +1 -1
  22. package/dist/MotionZonesSettings-B1K0x6en.mjs +0 -310
  23. package/dist/PrivacyMaskSettings-DUSo9V9v.mjs +0 -377
  24. package/dist/SceneMonitorEditor-BIaR23TE.mjs +0 -831
  25. package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CPL5HlJL.mjs +0 -26
  26. package/dist/player-overlays-CeSyVA4A.mjs +0 -44
  27. package/dist/scene-monitor-copy-B6BfcEdC.mjs +0 -187
@@ -5756,7 +5756,7 @@ var ZodIssueCode = {
5756
5756
  var ZodFirstPartyTypeKind;
5757
5757
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5758
5758
  //#endregion
5759
- //#region ../types/dist/sleep-DAX0-2v9.mjs
5759
+ //#region ../types/dist/sleep-DRqxtc0C.mjs
5760
5760
  /**
5761
5761
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5762
5762
  * window to float samples (D455).
@@ -8605,8 +8605,12 @@ method(object({ deviceId: number() }), array(StreamSourceEntrySchema)), method(o
8605
8605
  kind: "mutation",
8606
8606
  auth: "admin"
8607
8607
  }), method(object({ deviceId: number() }), unknown().nullable()), method(object({ deviceId: number() }), RawStateResultSchema.nullable(), { auth: "protected" });
8608
+ object({
8609
+ code: string().regex(/^[a-z][a-z0-9-]*(\.[a-z0-9-]+)+$/),
8610
+ params: record(string(), union([string(), number()])).optional()
8611
+ });
8608
8612
  //#endregion
8609
- //#region ../types/dist/err-msg-DX6i_MY4.mjs
8613
+ //#region ../types/dist/err-msg-DLerKiVO.mjs
8610
8614
  var DeviceType = /* @__PURE__ */ function(DeviceType) {
8611
8615
  DeviceType["Camera"] = "camera";
8612
8616
  DeviceType["Hub"] = "hub";
@@ -8856,6 +8860,22 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
8856
8860
  DeviceRole["Nightvision"] = "nightvision";
8857
8861
  DeviceRole["PrivacyMask"] = "privacy-mask";
8858
8862
  DeviceRole["Doorbell"] = "doorbell";
8863
+ /** Interior blind / shade / roller blind. HA `device_class: blind|shade`. */
8864
+ DeviceRole["CoverBlind"] = "cover-blind";
8865
+ /** Exterior roller shutter. HA `device_class: shutter`; Homematic BROLL. */
8866
+ DeviceRole["CoverShutter"] = "cover-shutter";
8867
+ /** Exterior awning. HA `device_class: awning`. */
8868
+ DeviceRole["CoverAwning"] = "cover-awning";
8869
+ /** Curtain / drape. HA `device_class: curtain`. */
8870
+ DeviceRole["CoverCurtain"] = "cover-curtain";
8871
+ /** Garage door. HA `device_class: garage`. A security actuator: exports gate it. */
8872
+ DeviceRole["CoverGarage"] = "cover-garage";
8873
+ /** Gate. HA `device_class: gate`. A security actuator: exports gate it. */
8874
+ DeviceRole["CoverGate"] = "cover-gate";
8875
+ /** Door. HA `device_class: door`. A security actuator: exports gate it. */
8876
+ DeviceRole["CoverDoor"] = "cover-door";
8877
+ /** Window. HA `device_class: window`. */
8878
+ DeviceRole["CoverWindow"] = "cover-window";
8859
8879
  /** Virtual HA toggle (input_boolean.*) — distinguishable from a
8860
8880
  * real Switch device for UI rendering / export adapters. */
8861
8881
  DeviceRole["BinaryHelper"] = "binary-helper";
@@ -8926,7 +8946,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
8926
8946
  return DeviceRole;
8927
8947
  }({});
8928
8948
  //#endregion
8929
- //#region ../types/dist/composition-C-WpVYTX.mjs
8949
+ //#region ../types/dist/composition-EQ9Ok0Ee.mjs
8930
8950
  /**
8931
8951
  * The ffmpeg build every CamStack node downloads, per platform and arch.
8932
8952
  *
@@ -12742,6 +12762,8 @@ var ConvertResultSchema = object({
12742
12762
  artifacts: array(ConvertArtifactSchema).readonly()
12743
12763
  });
12744
12764
  _enum(["new-session", "step-up"]);
12765
+ /** The languages the hub's app landing pages are written in (D858). */
12766
+ var AppPageLangSchema = _enum(["en", "it"]);
12745
12767
  /** How a native app starts one login method (D858), as `auth.listLoginMethods` reports it. */
12746
12768
  var AppLoginPathSchema = discriminatedUnion("kind", [object({ kind: literal("native") }), object({
12747
12769
  kind: literal("browser"),
@@ -13255,7 +13277,9 @@ var ConfigTabDeclarationSchema = object({
13255
13277
  var ConfigSectionWithValuesSchema = object({
13256
13278
  id: string(),
13257
13279
  title: string(),
13280
+ titleKey: string().optional(),
13258
13281
  description: string().optional(),
13282
+ descriptionKey: string().optional(),
13259
13283
  style: _enum(["card", "accordion"]).optional(),
13260
13284
  defaultCollapsed: boolean().optional(),
13261
13285
  columns: union([
@@ -16509,6 +16533,9 @@ method(object({
16509
16533
  }), method(object({ refs: RefListSchema }), KeychainResolveResultSchema, { auth: "admin" }), method(object({ refs: RefListSchema }), object({ deleted: number().int() }), {
16510
16534
  kind: "mutation",
16511
16535
  auth: "admin"
16536
+ }), method(object({ deviceId: number().int() }), object({ refs: array(string()).readonly() }), {
16537
+ kind: "mutation",
16538
+ auth: "admin"
16512
16539
  }), method(object({}), array(KeychainSecretMetaSchema).readonly(), { auth: "admin" }), method(object({}), KeychainStateSchema, { auth: "admin" });
16513
16540
  /**
16514
16541
  * device-history — the ONE mechanism for numeric history (D850).
@@ -37912,6 +37939,38 @@ var DeviceRegisterPayloadSchema = object({
37912
37939
  * omits it and the keyword backstop applies. */
37913
37940
  secretConfigPaths: array(string()).optional()
37914
37941
  });
37942
+ /** One deleted device, kept by device-manager so an addon that missed the
37943
+ * deletion can still learn of it (D865). Written by the delete path ONLY. */
37944
+ var DeviceTombstoneSchema = object({
37945
+ deviceId: number().int().positive(),
37946
+ /** Epoch ms the device was deleted. */
37947
+ deletedAt: number(),
37948
+ /** The addon that owned the device when it was deleted. */
37949
+ providerAddonId: string()
37950
+ });
37951
+ /** Data held for one device that device-manager no longer knows. */
37952
+ var OrphanDeviceDataSchema = object({
37953
+ deviceId: number().int().positive(),
37954
+ /** Rows/files per store (`<addonId>:<store>`). */
37955
+ stores: record(string(), number().int().nonnegative())
37956
+ });
37957
+ var CleanupDeletedDevicesResultSchema = object({
37958
+ /**
37959
+ * `skipped` — the absence check could not be trusted (a device-list read
37960
+ * failed or the two reads disagreed); nothing was listed or deleted.
37961
+ * `dry-run` — `devices` is what a confirmed run would delete.
37962
+ * `cleaned` — `devices` is what was deleted.
37963
+ */
37964
+ status: _enum([
37965
+ "skipped",
37966
+ "dry-run",
37967
+ "cleaned"
37968
+ ]),
37969
+ reason: string().nullable(),
37970
+ devices: array(OrphanDeviceDataSchema),
37971
+ /** Implementers that could not be asked (their stores are not in `devices`). */
37972
+ unreachable: array(string())
37973
+ });
37915
37974
  var DeviceRemovePayloadSchema = object({ deviceId: number() });
37916
37975
  var DevicePersistConfigPayloadSchema = object({
37917
37976
  deviceId: number(),
@@ -38150,6 +38209,9 @@ method(object({
38150
38209
  }), method(object({ deviceId: number() }), object({ success: literal(true) }), {
38151
38210
  kind: "mutation",
38152
38211
  auth: "admin"
38212
+ }), method(object({ sinceMs: number() }), array(DeviceTombstoneSchema).readonly(), { auth: "admin" }), method(object({ confirm: boolean() }), CleanupDeletedDevicesResultSchema, {
38213
+ kind: "mutation",
38214
+ auth: "admin"
38153
38215
  }), method(object({ integrationId: string() }), object({ removed: number() }), {
38154
38216
  kind: "mutation",
38155
38217
  auth: "admin"
@@ -38612,6 +38674,72 @@ method(object({
38612
38674
  auth: "admin"
38613
38675
  });
38614
38676
  /**
38677
+ * `device-removal-hook` — the reliable way an addon learns a device was DELETED,
38678
+ * so it can delete what it keeps for that device (D865).
38679
+ *
38680
+ * ## Why an event was not enough
38681
+ *
38682
+ * `DeviceUnregistered` is telemetry and may be dropped (D8, D11). An addon that
38683
+ * hung its per-device clean-up on it left durable garbage whenever the event was
38684
+ * lost, the addon was down, or it was restarting at that moment — footage,
38685
+ * analytics rows and settings of device 4483 outlived the device. Loss of this
38686
+ * signal corrupts durable state, so it travels by RPC with a recorded fact
38687
+ * behind it (D8: "if loss would corrupt durable state, use RPC plus a reconcile").
38688
+ *
38689
+ * ## The three pieces
38690
+ *
38691
+ * 1. device-manager records a TOMBSTONE per deleted device
38692
+ * (`deviceManager.listDeletedSince`). The tombstone is written by the delete
38693
+ * path only — a device that is unregistered, offline or whose provider is
38694
+ * restarting is NOT deleted and gets none.
38695
+ * 2. After a delete, device-manager calls `onDeviceRemoved` on EVERY provider of
38696
+ * this collection, one by one, with bounded retries, logged.
38697
+ * 3. An implementer that was down asks `deviceManager.listDeletedSince` at start
38698
+ * (and periodically) and runs its own `onDeviceRemoved` for each tombstone it
38699
+ * may have missed. Reconcile is driven by tombstones, never by "the device is
38700
+ * not in the current list": a failed or partial list read must not destroy data.
38701
+ *
38702
+ * ## Contract for an implementer
38703
+ *
38704
+ * - **Idempotent.** It is called again by a retry, by a reconcile and by the
38705
+ * admin cleanup of data that predates tombstones. A device with nothing left
38706
+ * answers zero counts.
38707
+ * - **One key per store** in `counts`, deleted rows/files per store, so the log
38708
+ * line and the admin dry run can say where the data was.
38709
+ * - **Training datasets are NOT device data** and are never deleted by a hook.
38710
+ * - **Per-device SETTINGS are not hooked.** Configuration lives in the standard
38711
+ * per-device store (`ctx.settings.*DeviceStore`), which device-manager clears
38712
+ * for every addon centrally at delete time. This hook is for device DATA
38713
+ * that is not settings: footage, event media, analytics rows, history.
38714
+ * - A provider that cannot tell is allowed to throw; the caller retries it.
38715
+ *
38716
+ * `listDeviceData` is the read side of the admin "Clean data of deleted devices"
38717
+ * action: which device ids this addon holds data for, and how much per store. It
38718
+ * never deletes. device-manager decides which of those ids are absent from the
38719
+ * fleet, from TWO consistent reads of the device list (D49).
38720
+ */
38721
+ /** What a hook is told about the deletion. */
38722
+ var DeviceRemovedInputSchema = object({
38723
+ deviceId: number().int().positive(),
38724
+ /** Epoch ms the device was deleted (the tombstone's `deletedAt`). */
38725
+ deletedAt: number(),
38726
+ /** The addon that owned the device, as device-manager last knew it. */
38727
+ providerAddonId: string()
38728
+ });
38729
+ /** Rows/files/refs deleted, per store this implementer owns. */
38730
+ var DeviceRemovedResultSchema = object({ counts: record(string(), number().int().nonnegative()) });
38731
+ /** One (store, device) pair an implementer holds data for. */
38732
+ var DeviceDataEntrySchema = object({
38733
+ store: string(),
38734
+ deviceId: number().int().positive(),
38735
+ /** Rows (or files) held for the device in the store. */
38736
+ count: number().int().nonnegative()
38737
+ });
38738
+ method(DeviceRemovedInputSchema, DeviceRemovedResultSchema, {
38739
+ kind: "mutation",
38740
+ auth: "admin"
38741
+ }), method(_void(), array(DeviceDataEntrySchema).readonly(), { auth: "admin" });
38742
+ /**
38615
38743
  * `failure-contribution` — the capability an addon reports its OWN losses
38616
38744
  * through, per camera, with the denominator attached. It stores nothing.
38617
38745
  *
@@ -50178,7 +50306,9 @@ var SsoBridgeClaimsSchema = object({
50178
50306
  codeChallenge: string(),
50179
50307
  state: string(),
50180
50308
  purpose: _enum(["new-session", "step-up"]),
50181
- redirect: string()
50309
+ redirect: string(),
50310
+ /** The page language the app asked for (D858); the confirm page speaks it. */
50311
+ lang: _enum(["en", "it"]).optional()
50182
50312
  }).optional()
50183
50313
  });
50184
50314
  method(object({
@@ -59542,6 +59672,21 @@ DeviceType.Switch, DeviceType.Siren, DeviceType.Light, method(object({
59542
59672
  on: boolean(),
59543
59673
  lastChangedAt: number()
59544
59674
  });
59675
+ /** C0 controls, DEL and the C1 range: none of them belongs in a name. */
59676
+ function hasControlCharacter(value) {
59677
+ for (const char of value) {
59678
+ const code = char.codePointAt(0) ?? 0;
59679
+ if (code <= 31 || code >= 127 && code <= 159) return true;
59680
+ }
59681
+ return false;
59682
+ }
59683
+ string().transform((value) => value.trim()).pipe(string().min(1, "The server name cannot be empty").max(48, `The server name is at most 48 characters`).refine((value) => !hasControlCharacter(value), { message: "The server name cannot contain control characters" }));
59684
+ /** What every reader gets: the name to show, and whether the hub chose it itself. */
59685
+ var ServerNameInfoSchema = object({
59686
+ name: string(),
59687
+ /** `true` when nobody named the hub: `name` is the machine hostname. */
59688
+ isDefault: boolean()
59689
+ });
59545
59690
  /**
59546
59691
  * system — system-scoped singleton capability exposing hub-level
59547
59692
  * health, feature flags, network interface enumeration, and the
@@ -59571,6 +59716,12 @@ var FeatureManifestSchema = object({
59571
59716
  backup: boolean(),
59572
59717
  repl: boolean()
59573
59718
  });
59719
+ /**
59720
+ * `system.info`: the feature flags plus the hub's human name (D861). The name is
59721
+ * `{ name, isDefault }` — `isDefault: true` means nobody named the hub and `name`
59722
+ * is the machine hostname.
59723
+ */
59724
+ var SystemInfoSchema = FeatureManifestSchema.extend({ serverName: ServerNameInfoSchema });
59574
59725
  var HealthStatusSchema = object({
59575
59726
  status: literal("ok"),
59576
59727
  uptime: number()
@@ -60043,7 +60194,7 @@ var LoggingSettingsStateSchema = object({
60043
60194
  opsLogRetentionDays: number().int().min(0),
60044
60195
  persisted: boolean()
60045
60196
  });
60046
- method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), method(_void(), FeatureManifestSchema), method(_void(), array(NetworkAddressSchema).readonly()), method(_void(), unknown().nullable(), { auth: "admin" }), method(record(string(), unknown()), _null(), {
60197
+ method(_void(), SystemInfoSchema), method(_void(), HealthStatusSchema), method(_void(), FeatureManifestSchema), method(_void(), array(NetworkAddressSchema).readonly()), method(_void(), unknown().nullable(), { auth: "admin" }), method(record(string(), unknown()), _null(), {
60047
60198
  kind: "mutation",
60048
60199
  auth: "admin"
60049
60200
  }), method(_void(), _void(), {
@@ -63192,6 +63343,12 @@ Object.freeze({
63192
63343
  addonId: null,
63193
63344
  access: "create"
63194
63345
  },
63346
+ "deviceManager.cleanupDeletedDevicesData": {
63347
+ capName: "device-manager",
63348
+ capScope: "system",
63349
+ addonId: null,
63350
+ access: "create"
63351
+ },
63195
63352
  "deviceManager.createDevice": {
63196
63353
  capName: "device-manager",
63197
63354
  capScope: "system",
@@ -63372,6 +63529,12 @@ Object.freeze({
63372
63529
  addonId: null,
63373
63530
  access: "view"
63374
63531
  },
63532
+ "deviceManager.listDeletedSince": {
63533
+ capName: "device-manager",
63534
+ capScope: "system",
63535
+ addonId: null,
63536
+ access: "view"
63537
+ },
63375
63538
  "deviceManager.listDeviceIdsByCaps": {
63376
63539
  capName: "device-manager",
63377
63540
  capScope: "system",
@@ -63780,6 +63943,18 @@ Object.freeze({
63780
63943
  addonId: null,
63781
63944
  access: "create"
63782
63945
  },
63946
+ "deviceRemovalHook.listDeviceData": {
63947
+ capName: "device-removal-hook",
63948
+ capScope: "system",
63949
+ addonId: null,
63950
+ access: "view"
63951
+ },
63952
+ "deviceRemovalHook.onDeviceRemoved": {
63953
+ capName: "device-removal-hook",
63954
+ capScope: "system",
63955
+ addonId: null,
63956
+ access: "create"
63957
+ },
63783
63958
  "deviceState.claimFields": {
63784
63959
  capName: "device-state",
63785
63960
  capScope: "system",
@@ -64212,6 +64387,12 @@ Object.freeze({
64212
64387
  addonId: null,
64213
64388
  access: "delete"
64214
64389
  },
64390
+ "keychain.deleteDeviceScope": {
64391
+ capName: "keychain",
64392
+ capScope: "system",
64393
+ addonId: null,
64394
+ access: "delete"
64395
+ },
64215
64396
  "keychain.getState": {
64216
64397
  capName: "keychain",
64217
64398
  capScope: "system",
@@ -70224,6 +70405,11 @@ Object.freeze({
70224
70405
  form: "single",
70225
70406
  optional: false
70226
70407
  }],
70408
+ "deviceRemovalHook.onDeviceRemoved": [{
70409
+ name: "deviceId",
70410
+ form: "single",
70411
+ optional: false
70412
+ }],
70227
70413
  "deviceState.claimFields": [{
70228
70414
  name: "deviceId",
70229
70415
  form: "single",
@@ -70413,6 +70599,11 @@ Object.freeze({
70413
70599
  form: "single",
70414
70600
  optional: false
70415
70601
  }],
70602
+ "keychain.deleteDeviceScope": [{
70603
+ name: "deviceId",
70604
+ form: "single",
70605
+ optional: false
70606
+ }],
70416
70607
  "lawnMowerControl.dock": [{
70417
70608
  name: "deviceId",
70418
70609
  form: "single",
@@ -72761,6 +72952,8 @@ new Set([
72761
72952
  "audio-tools",
72762
72953
  "audio-silence"
72763
72954
  ]);
72955
+ AppPageLangSchema.options;
72956
+ record(string().min(1), string());
72764
72957
  /**
72765
72958
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
72766
72959
  *
@@ -73311,11 +73504,15 @@ function parseDisplayName(raw) {
73311
73504
  if (name.length === 0) return { kind: "reset" };
73312
73505
  if (CONTROL_CHARS.test(name)) return {
73313
73506
  kind: "invalid",
73314
- reason: "The name contains control characters."
73507
+ reason: "The name contains control characters.",
73508
+ code: "control",
73509
+ length: name.length
73315
73510
  };
73316
73511
  if (name.length > 80) return {
73317
73512
  kind: "invalid",
73318
- reason: `The name is ${name.length} characters long; the limit is 80.`
73513
+ reason: `The name is ${name.length} characters long; the limit is 80.`,
73514
+ code: "too-long",
73515
+ length: name.length
73319
73516
  };
73320
73517
  return {
73321
73518
  kind: "set",
@@ -0,0 +1,44 @@
1
+ import { S as e, d as t, u as n, v as r } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react__loadShare__.js-DMBKVIH7.mjs";
2
+ import { n as i, r as a, t as o } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-ds_Ehzaa.mjs";
3
+ import { g as s, h as c } from "./responsive-D9Bo78lO.mjs";
4
+ var l = s("chevron-down", [["path", {
5
+ d: "m6 9 6 6 6-6",
6
+ key: "qrunsl"
7
+ }]]), u = s("chevron-right", [["path", {
8
+ d: "m9 18 6-6-6-6",
9
+ key: "mthhwq"
10
+ }]]);
11
+ //#endregion
12
+ //#region ../ui-library/src/composites/widget-panel.tsx
13
+ e();
14
+ function d({ title: e, icon: t, headerRight: n, collapsible: s = !1, defaultOpen: c = !0, bodyClassName: d = "p-3", children: f }) {
15
+ let [p, m] = r(c), h = !s || p, g = /* @__PURE__ */ a(o, { children: [/* @__PURE__ */ a("span", {
16
+ className: "flex items-center gap-2 text-xs font-semibold uppercase tracking-wider text-foreground",
17
+ children: [t, e]
18
+ }), s ? i(p ? l : u, { className: "h-3.5 w-3.5 text-foreground-subtle" }) : n] }), _ = `px-4 py-2 flex items-center justify-between ${h ? "border-b border-border" : ""}`;
19
+ return /* @__PURE__ */ a("div", {
20
+ className: "rounded-lg border border-border bg-surface overflow-hidden",
21
+ children: [s ? /* @__PURE__ */ i("button", {
22
+ type: "button",
23
+ onClick: () => m((e) => !e),
24
+ className: `w-full text-left ${_}`,
25
+ children: g
26
+ }) : /* @__PURE__ */ i("div", {
27
+ className: _,
28
+ children: g
29
+ }), h ? /* @__PURE__ */ i("div", {
30
+ className: d,
31
+ children: f
32
+ }) : null]
33
+ });
34
+ }
35
+ e(), c("camstack:player-overlays-state", null);
36
+ var f = c("camstack:player-overlays-actions", null);
37
+ function p(e) {
38
+ let r = n(f);
39
+ t(() => {
40
+ if (!(!r || !e)) return r.setLayer(e), () => r.removeLayer(e.id);
41
+ }, [r, e]);
42
+ }
43
+ //#endregion
44
+ export { l as i, d as n, u as r, p as t };
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-BbU0PjTG.mjs";
1
+ import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-CS43EGzM.mjs";
2
2
  export { t as get, e as init };
@@ -1,8 +1,8 @@
1
- import { _ as e, b as t, c as n, g as r, l as i, m as a, n as o, r as s, t as c, u as l } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react__loadShare__.js-CHL8loOl.mjs";
2
- import { h as u } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CPL5HlJL.mjs";
1
+ import { S as e, d as t, g as n, i as r, l as i, n as a, r as o, u as s, v as c, y as l } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react__loadShare__.js-DMBKVIH7.mjs";
3
2
  import "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-ds_Ehzaa.mjs";
3
+ import { h as u } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DlW3IlLM.mjs";
4
4
  //#region ../../node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.js
5
- t();
5
+ e();
6
6
  var d = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), f = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), p = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), m = (e) => {
7
7
  let t = p(e);
8
8
  return t.charAt(0).toUpperCase() + t.slice(1);
@@ -19,7 +19,7 @@ var d = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) =
19
19
  }, g = (e) => {
20
20
  for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
21
21
  return !1;
22
- }, _ = s(({ color: e = "currentColor", size: t = 24, strokeWidth: n = 2, absoluteStrokeWidth: r, className: i = "", children: a, iconNode: s, ...c }, l) => o("svg", {
22
+ }, _ = r(({ color: e = "currentColor", size: t = 24, strokeWidth: n = 2, absoluteStrokeWidth: r, className: i = "", children: a, iconNode: s, ...c }, l) => o("svg", {
23
23
  ref: l,
24
24
  ...h,
25
25
  width: t,
@@ -32,9 +32,9 @@ var d = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) =
32
32
  }, [...s.map(([e, t]) => o(e, t)), ...Array.isArray(a) ? a : [a]]));
33
33
  //#endregion
34
34
  //#region ../../node_modules/lucide-react/dist/esm/createLucideIcon.js
35
- t();
35
+ e();
36
36
  var v = (e, t) => {
37
- let n = s(({ className: n, ...r }, i) => o(_, {
37
+ let n = r(({ className: n, ...r }, i) => o(_, {
38
38
  ref: i,
39
39
  iconNode: t,
40
40
  className: d(`lucide-${f(m(e))}`, `lucide-${e}`, n),
@@ -44,61 +44,61 @@ var v = (e, t) => {
44
44
  };
45
45
  //#endregion
46
46
  //#region ../ui-library/src/lib/shared-context.ts
47
- t();
47
+ e();
48
48
  function y(e, t) {
49
- if (typeof globalThis > "u") return c(t);
49
+ if (typeof globalThis > "u") return a(t);
50
50
  let n = globalThis.__camstackSharedContexts, r = n ?? /* @__PURE__ */ new Map();
51
51
  n || (globalThis.__camstackSharedContexts = r);
52
52
  let i = r.get(e);
53
53
  if (i) return i;
54
- let a = c(t);
55
- return r.set(e, a), a;
54
+ let o = a(t);
55
+ return r.set(e, o), o;
56
56
  }
57
57
  //#endregion
58
58
  //#region ../ui-library/src/contexts/system-context.tsx
59
- t();
59
+ e();
60
60
  var b = y("camstack:system", null);
61
61
  function x() {
62
- let e = i(b);
62
+ let e = s(b);
63
63
  if (!e) throw Error("useSystem(): no <SystemProvider> in tree");
64
64
  return e;
65
65
  }
66
66
  //#endregion
67
67
  //#region ../ui-library/src/hooks/use-device-proxy.ts
68
- t();
68
+ e();
69
69
  var S = "capability.binding-changed";
70
- function C(e, t) {
71
- let [n, i] = r(null);
72
- return l(() => {
73
- if (t === null) {
74
- i(null);
70
+ function C(e, r) {
71
+ let [i, a] = c(null);
72
+ return t(() => {
73
+ if (r === null) {
74
+ a(null);
75
75
  return;
76
76
  }
77
- let n = !1, r = async () => {
77
+ let t = !1, n = async () => {
78
78
  try {
79
- let r = await e.deviceManager.getBindings.query({ deviceId: t });
80
- n || i(r);
79
+ let n = await e.deviceManager.getBindings.query({ deviceId: r });
80
+ t || a(n);
81
81
  } catch {
82
- n || i((e) => e);
82
+ t || a((e) => e);
83
83
  }
84
84
  };
85
- r();
86
- let a = e.live?.onEvent.subscribe({ category: S }, { onData: (e) => {
87
- let n = e.data?.source;
88
- if (!n) {
89
- r();
85
+ n();
86
+ let i = e.live?.onEvent.subscribe({ category: S }, { onData: (e) => {
87
+ let t = e.data?.source;
88
+ if (!t) {
89
+ n();
90
90
  return;
91
91
  }
92
- n.type === "device" && n.id === t && r();
92
+ t.type === "device" && t.id === r && n();
93
93
  } });
94
94
  return () => {
95
- n = !0, a?.unsubscribe();
95
+ t = !0, i?.unsubscribe();
96
96
  };
97
- }, [e, t]), a(() => n ? u(e, n) : null, [e, n]);
97
+ }, [e, r]), n(() => i ? u(e, i) : null, [e, i]);
98
98
  }
99
- function w(t) {
100
- let r = n((e) => t ? t.subscribe(() => e()) : () => void 0, [t]), i = n(() => t?.value, [t]);
101
- return e(r, i, i);
99
+ function w(e) {
100
+ let t = i((t) => e ? e.subscribe(() => t()) : () => void 0, [e]), n = i(() => e?.value, [e]);
101
+ return l(t, n, n);
102
102
  }
103
103
  //#endregion
104
104
  //#region ../ui-library/src/lib/cap-error.ts
@@ -117,6 +117,6 @@ function E(e) {
117
117
  }
118
118
  //#endregion
119
119
  //#region ../ui-library/src/lib/responsive.ts
120
- var D = "rounded-lg border border-border bg-surface overflow-hidden", O = "border-b border-border px-3 sm:px-4 py-1.5 sm:py-2", k = "space-y-3 sm:space-y-4", A = "flex min-w-0 flex-col gap-0.5 py-1.5 sm:flex-row sm:items-center", j = "min-w-0 text-[11px] leading-tight text-foreground-subtle sm:w-32 sm:shrink-0 sm:pr-2", M = "flex w-full min-w-0 items-center gap-1 sm:flex-1", N = "min-w-0 break-all text-xs text-foreground sm:truncate", P = "text-[10px] sm:text-[11px] font-semibold text-foreground uppercase tracking-wider", F = "text-[10px] text-foreground-subtle", I = "inline-flex items-center justify-center gap-1 rounded border border-primary/40 bg-primary/15 px-1.5 py-0.5 sm:px-2 sm:py-1 text-[10px] sm:text-[11px] font-medium text-primary hover:bg-primary/25 transition-colors disabled:opacity-40", L = "inline-flex items-center justify-center gap-1 rounded border border-danger/40 bg-danger/10 px-1.5 py-0.5 sm:px-2 sm:py-1 text-[10px] sm:text-[11px] font-medium text-danger hover:bg-danger/20 transition-colors disabled:opacity-40", R = "inline-flex items-center gap-1 rounded-full border px-1.5 py-0.5 text-[10px] font-medium transition-colors", z = "border-primary/50 bg-primary/15 text-primary", B = "border-border bg-surface text-foreground-subtle hover:bg-surface-hover";
120
+ var D = "rounded-lg border border-border bg-surface overflow-hidden", O = "border-b border-border px-3 sm:px-4 py-1.5 sm:py-2", k = "space-y-3 sm:space-y-4", A = "text-[10px] sm:text-[11px] font-semibold text-foreground uppercase tracking-wider", j = "text-[10px] text-foreground-subtle", M = "inline-flex items-center justify-center gap-1 rounded border border-primary/40 bg-primary/15 px-1.5 py-0.5 sm:px-2 sm:py-1 text-[10px] sm:text-[11px] font-medium text-primary hover:bg-primary/25 transition-colors disabled:opacity-40", N = "inline-flex items-center justify-center gap-1 rounded border border-danger/40 bg-danger/10 px-1.5 py-0.5 sm:px-2 sm:py-1 text-[10px] sm:text-[11px] font-medium text-danger hover:bg-danger/20 transition-colors disabled:opacity-40", P = "inline-flex items-center gap-1 rounded-full border px-1.5 py-0.5 text-[10px] font-medium transition-colors", F = "border-primary/50 bg-primary/15 text-primary", I = "border-border bg-surface text-foreground-subtle hover:bg-surface-hover";
121
121
  //#endregion
122
- export { w as _, B as a, v as b, A as c, N as d, k as f, C as g, E as h, R as i, j as l, P as m, I as n, D as o, F as p, z as r, O as s, L as t, M as u, x as v, y };
122
+ export { I as a, k as c, E as d, C as f, v as g, y as h, P as i, j as l, x as m, M as n, D as o, w as p, F as r, O as s, N as t, A as u };