@camstack/addon-model-studio 1.1.261 → 1.1.263

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-BLNkyVNp.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-DANjfgEB.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-D8GpjpEa.mjs → hostInit-DE_6Mq5X.mjs} +3 -3
  11. package/dist/model-studio.addon.js +204 -11
  12. package/dist/model-studio.addon.mjs +204 -11
  13. package/dist/player-overlays-DXeDukPC.mjs +44 -0
  14. package/dist/remoteEntry.js +1 -1
  15. package/dist/{responsive-DkEyuaY7.mjs → responsive-D9Bo78lO.mjs} +35 -35
  16. package/dist/scene-monitor-copy-CQr7egaT.mjs +227 -0
  17. package/dist/{square-BuUmfUsp.mjs → square-d__poSpa.mjs} +1 -1
  18. package/dist/{trash-2-CVLNpvpf.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-B7QpttUx.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-CxkFEexB.mjs} +1 -1
  21. package/package.json +1 -1
  22. package/dist/MotionZonesSettings-hiAo2-5o.mjs +0 -310
  23. package/dist/PrivacyMaskSettings-BdJJ1m-Z.mjs +0 -377
  24. package/dist/SceneMonitorEditor-hfPKGf8z.mjs +0 -831
  25. package/dist/_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CEZAcVSS.mjs +0 -26
  26. package/dist/player-overlays-D2zkUA6J.mjs +0 -44
  27. package/dist/scene-monitor-copy-CLdYZqAD.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
  *
@@ -12130,11 +12150,10 @@ var ClipModelMetaSchema = object({
12130
12150
  /**
12131
12151
  * The `vector-store` index this model's vectors live in. ONE feature space
12132
12152
  * per index: two models share an index only when their vectors are ranked
12133
- * against each other, which for CLIP means never across families. MobileCLIP
12134
- * S1 and S2 share `object-clip` for history (separated by the row's
12135
- * `modelId`); any other model gets its own.
12153
+ * against each other, which for CLIP means never across families. Every
12154
+ * model gets its own.
12136
12155
  */
12137
- vectorIndex: string().regex(/^object-clip(-[a-z0-9][a-z0-9-]*)?$/),
12156
+ vectorIndex: string().regex(/^object-clip-[a-z0-9][a-z0-9-]*$/),
12138
12157
  /**
12139
12158
  * The text encoder's tokenizer, a declared SIBLING file of its onnx. The name
12140
12159
  * must be unique per tokenizer: every model's siblings land in ONE flat
@@ -12742,7 +12761,8 @@ var ConvertResultSchema = object({
12742
12761
  artifacts: array(ConvertArtifactSchema).readonly()
12743
12762
  });
12744
12763
  _enum(["new-session", "step-up"]);
12745
- _enum(["en", "it"]);
12764
+ /** The languages the hub's app landing pages are written in (D858). */
12765
+ var AppPageLangSchema = _enum(["en", "it"]);
12746
12766
  /** How a native app starts one login method (D858), as `auth.listLoginMethods` reports it. */
12747
12767
  var AppLoginPathSchema = discriminatedUnion("kind", [object({ kind: literal("native") }), object({
12748
12768
  kind: literal("browser"),
@@ -13256,7 +13276,9 @@ var ConfigTabDeclarationSchema = object({
13256
13276
  var ConfigSectionWithValuesSchema = object({
13257
13277
  id: string(),
13258
13278
  title: string(),
13279
+ titleKey: string().optional(),
13259
13280
  description: string().optional(),
13281
+ descriptionKey: string().optional(),
13260
13282
  style: _enum(["card", "accordion"]).optional(),
13261
13283
  defaultCollapsed: boolean().optional(),
13262
13284
  columns: union([
@@ -16510,6 +16532,9 @@ method(object({
16510
16532
  }), method(object({ refs: RefListSchema }), KeychainResolveResultSchema, { auth: "admin" }), method(object({ refs: RefListSchema }), object({ deleted: number().int() }), {
16511
16533
  kind: "mutation",
16512
16534
  auth: "admin"
16535
+ }), method(object({ deviceId: number().int() }), object({ refs: array(string()).readonly() }), {
16536
+ kind: "mutation",
16537
+ auth: "admin"
16513
16538
  }), method(object({}), array(KeychainSecretMetaSchema).readonly(), { auth: "admin" }), method(object({}), KeychainStateSchema, { auth: "admin" });
16514
16539
  /**
16515
16540
  * device-history — the ONE mechanism for numeric history (D850).
@@ -37913,6 +37938,38 @@ var DeviceRegisterPayloadSchema = object({
37913
37938
  * omits it and the keyword backstop applies. */
37914
37939
  secretConfigPaths: array(string()).optional()
37915
37940
  });
37941
+ /** One deleted device, kept by device-manager so an addon that missed the
37942
+ * deletion can still learn of it (D865). Written by the delete path ONLY. */
37943
+ var DeviceTombstoneSchema = object({
37944
+ deviceId: number().int().positive(),
37945
+ /** Epoch ms the device was deleted. */
37946
+ deletedAt: number(),
37947
+ /** The addon that owned the device when it was deleted. */
37948
+ providerAddonId: string()
37949
+ });
37950
+ /** Data held for one device that device-manager no longer knows. */
37951
+ var OrphanDeviceDataSchema = object({
37952
+ deviceId: number().int().positive(),
37953
+ /** Rows/files per store (`<addonId>:<store>`). */
37954
+ stores: record(string(), number().int().nonnegative())
37955
+ });
37956
+ var CleanupDeletedDevicesResultSchema = object({
37957
+ /**
37958
+ * `skipped` — the absence check could not be trusted (a device-list read
37959
+ * failed or the two reads disagreed); nothing was listed or deleted.
37960
+ * `dry-run` — `devices` is what a confirmed run would delete.
37961
+ * `cleaned` — `devices` is what was deleted.
37962
+ */
37963
+ status: _enum([
37964
+ "skipped",
37965
+ "dry-run",
37966
+ "cleaned"
37967
+ ]),
37968
+ reason: string().nullable(),
37969
+ devices: array(OrphanDeviceDataSchema),
37970
+ /** Implementers that could not be asked (their stores are not in `devices`). */
37971
+ unreachable: array(string())
37972
+ });
37916
37973
  var DeviceRemovePayloadSchema = object({ deviceId: number() });
37917
37974
  var DevicePersistConfigPayloadSchema = object({
37918
37975
  deviceId: number(),
@@ -38151,6 +38208,9 @@ method(object({
38151
38208
  }), method(object({ deviceId: number() }), object({ success: literal(true) }), {
38152
38209
  kind: "mutation",
38153
38210
  auth: "admin"
38211
+ }), method(object({ sinceMs: number() }), array(DeviceTombstoneSchema).readonly(), { auth: "admin" }), method(object({ confirm: boolean() }), CleanupDeletedDevicesResultSchema, {
38212
+ kind: "mutation",
38213
+ auth: "admin"
38154
38214
  }), method(object({ integrationId: string() }), object({ removed: number() }), {
38155
38215
  kind: "mutation",
38156
38216
  auth: "admin"
@@ -38613,6 +38673,72 @@ method(object({
38613
38673
  auth: "admin"
38614
38674
  });
38615
38675
  /**
38676
+ * `device-removal-hook` — the reliable way an addon learns a device was DELETED,
38677
+ * so it can delete what it keeps for that device (D865).
38678
+ *
38679
+ * ## Why an event was not enough
38680
+ *
38681
+ * `DeviceUnregistered` is telemetry and may be dropped (D8, D11). An addon that
38682
+ * hung its per-device clean-up on it left durable garbage whenever the event was
38683
+ * lost, the addon was down, or it was restarting at that moment — footage,
38684
+ * analytics rows and settings of device 4483 outlived the device. Loss of this
38685
+ * signal corrupts durable state, so it travels by RPC with a recorded fact
38686
+ * behind it (D8: "if loss would corrupt durable state, use RPC plus a reconcile").
38687
+ *
38688
+ * ## The three pieces
38689
+ *
38690
+ * 1. device-manager records a TOMBSTONE per deleted device
38691
+ * (`deviceManager.listDeletedSince`). The tombstone is written by the delete
38692
+ * path only — a device that is unregistered, offline or whose provider is
38693
+ * restarting is NOT deleted and gets none.
38694
+ * 2. After a delete, device-manager calls `onDeviceRemoved` on EVERY provider of
38695
+ * this collection, one by one, with bounded retries, logged.
38696
+ * 3. An implementer that was down asks `deviceManager.listDeletedSince` at start
38697
+ * (and periodically) and runs its own `onDeviceRemoved` for each tombstone it
38698
+ * may have missed. Reconcile is driven by tombstones, never by "the device is
38699
+ * not in the current list": a failed or partial list read must not destroy data.
38700
+ *
38701
+ * ## Contract for an implementer
38702
+ *
38703
+ * - **Idempotent.** It is called again by a retry, by a reconcile and by the
38704
+ * admin cleanup of data that predates tombstones. A device with nothing left
38705
+ * answers zero counts.
38706
+ * - **One key per store** in `counts`, deleted rows/files per store, so the log
38707
+ * line and the admin dry run can say where the data was.
38708
+ * - **Training datasets are NOT device data** and are never deleted by a hook.
38709
+ * - **Per-device SETTINGS are not hooked.** Configuration lives in the standard
38710
+ * per-device store (`ctx.settings.*DeviceStore`), which device-manager clears
38711
+ * for every addon centrally at delete time. This hook is for device DATA
38712
+ * that is not settings: footage, event media, analytics rows, history.
38713
+ * - A provider that cannot tell is allowed to throw; the caller retries it.
38714
+ *
38715
+ * `listDeviceData` is the read side of the admin "Clean data of deleted devices"
38716
+ * action: which device ids this addon holds data for, and how much per store. It
38717
+ * never deletes. device-manager decides which of those ids are absent from the
38718
+ * fleet, from TWO consistent reads of the device list (D49).
38719
+ */
38720
+ /** What a hook is told about the deletion. */
38721
+ var DeviceRemovedInputSchema = object({
38722
+ deviceId: number().int().positive(),
38723
+ /** Epoch ms the device was deleted (the tombstone's `deletedAt`). */
38724
+ deletedAt: number(),
38725
+ /** The addon that owned the device, as device-manager last knew it. */
38726
+ providerAddonId: string()
38727
+ });
38728
+ /** Rows/files/refs deleted, per store this implementer owns. */
38729
+ var DeviceRemovedResultSchema = object({ counts: record(string(), number().int().nonnegative()) });
38730
+ /** One (store, device) pair an implementer holds data for. */
38731
+ var DeviceDataEntrySchema = object({
38732
+ store: string(),
38733
+ deviceId: number().int().positive(),
38734
+ /** Rows (or files) held for the device in the store. */
38735
+ count: number().int().nonnegative()
38736
+ });
38737
+ method(DeviceRemovedInputSchema, DeviceRemovedResultSchema, {
38738
+ kind: "mutation",
38739
+ auth: "admin"
38740
+ }), method(_void(), array(DeviceDataEntrySchema).readonly(), { auth: "admin" });
38741
+ /**
38616
38742
  * `failure-contribution` — the capability an addon reports its OWN losses
38617
38743
  * through, per camera, with the denominator attached. It stores nothing.
38618
38744
  *
@@ -55138,7 +55264,19 @@ var TlsStatusSchema = object({
55138
55264
  sans: array(string()),
55139
55265
  caCertPem: string().nullable(),
55140
55266
  reissueError: string().nullable(),
55141
- restartRequired: boolean()
55267
+ restartRequired: boolean(),
55268
+ /** An uploaded certificate is served but no CA is kept for it and it is not publicly signed (D873). */
55269
+ caMissing: boolean(),
55270
+ /** Does the hub's own generated CA carry a critical name constraint? `null` while it has none. */
55271
+ localCaConstrained: boolean().nullable(),
55272
+ /** ISO time the generated CA was replaced by a constrained one; devices must re-download it. */
55273
+ caReplacedAt: string().nullable(),
55274
+ /** The uploaded certificate kept on disk, selectable again after "Revert to generated". */
55275
+ storedUpload: object({
55276
+ leafFingerprintSha256: string(),
55277
+ validTo: string(),
55278
+ hasCa: boolean()
55279
+ }).nullable()
55142
55280
  });
55143
55281
  method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
55144
55282
  /**
@@ -55194,6 +55332,9 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
55194
55332
  }), method(_void(), object({ pem: string() })), method(_void(), TlsStatusSchema, {
55195
55333
  kind: "mutation",
55196
55334
  auth: "admin"
55335
+ }), method(_void(), TlsStatusSchema, {
55336
+ kind: "mutation",
55337
+ auth: "admin"
55197
55338
  });
55198
55339
  object({
55199
55340
  /** Lifecycle state of the lock. `jammed` means the motor reported
@@ -63216,6 +63357,12 @@ Object.freeze({
63216
63357
  addonId: null,
63217
63358
  access: "create"
63218
63359
  },
63360
+ "deviceManager.cleanupDeletedDevicesData": {
63361
+ capName: "device-manager",
63362
+ capScope: "system",
63363
+ addonId: null,
63364
+ access: "create"
63365
+ },
63219
63366
  "deviceManager.createDevice": {
63220
63367
  capName: "device-manager",
63221
63368
  capScope: "system",
@@ -63396,6 +63543,12 @@ Object.freeze({
63396
63543
  addonId: null,
63397
63544
  access: "view"
63398
63545
  },
63546
+ "deviceManager.listDeletedSince": {
63547
+ capName: "device-manager",
63548
+ capScope: "system",
63549
+ addonId: null,
63550
+ access: "view"
63551
+ },
63399
63552
  "deviceManager.listDeviceIdsByCaps": {
63400
63553
  capName: "device-manager",
63401
63554
  capScope: "system",
@@ -63804,6 +63957,18 @@ Object.freeze({
63804
63957
  addonId: null,
63805
63958
  access: "create"
63806
63959
  },
63960
+ "deviceRemovalHook.listDeviceData": {
63961
+ capName: "device-removal-hook",
63962
+ capScope: "system",
63963
+ addonId: null,
63964
+ access: "view"
63965
+ },
63966
+ "deviceRemovalHook.onDeviceRemoved": {
63967
+ capName: "device-removal-hook",
63968
+ capScope: "system",
63969
+ addonId: null,
63970
+ access: "create"
63971
+ },
63807
63972
  "deviceState.claimFields": {
63808
63973
  capName: "device-state",
63809
63974
  capScope: "system",
@@ -64236,6 +64401,12 @@ Object.freeze({
64236
64401
  addonId: null,
64237
64402
  access: "delete"
64238
64403
  },
64404
+ "keychain.deleteDeviceScope": {
64405
+ capName: "keychain",
64406
+ capScope: "system",
64407
+ addonId: null,
64408
+ access: "delete"
64409
+ },
64239
64410
  "keychain.getState": {
64240
64411
  capName: "keychain",
64241
64412
  capScope: "system",
@@ -64674,6 +64845,12 @@ Object.freeze({
64674
64845
  addonId: null,
64675
64846
  access: "create"
64676
64847
  },
64848
+ "localNetwork.useStoredUploadedCertificate": {
64849
+ capName: "local-network",
64850
+ capScope: "system",
64851
+ addonId: null,
64852
+ access: "create"
64853
+ },
64677
64854
  "lockControl.getStatus": {
64678
64855
  capName: "lock-control",
64679
64856
  capScope: "device",
@@ -70248,6 +70425,11 @@ Object.freeze({
70248
70425
  form: "single",
70249
70426
  optional: false
70250
70427
  }],
70428
+ "deviceRemovalHook.onDeviceRemoved": [{
70429
+ name: "deviceId",
70430
+ form: "single",
70431
+ optional: false
70432
+ }],
70251
70433
  "deviceState.claimFields": [{
70252
70434
  name: "deviceId",
70253
70435
  form: "single",
@@ -70437,6 +70619,11 @@ Object.freeze({
70437
70619
  form: "single",
70438
70620
  optional: false
70439
70621
  }],
70622
+ "keychain.deleteDeviceScope": [{
70623
+ name: "deviceId",
70624
+ form: "single",
70625
+ optional: false
70626
+ }],
70440
70627
  "lawnMowerControl.dock": [{
70441
70628
  name: "deviceId",
70442
70629
  form: "single",
@@ -72785,6 +72972,8 @@ new Set([
72785
72972
  "audio-tools",
72786
72973
  "audio-silence"
72787
72974
  ]);
72975
+ AppPageLangSchema.options;
72976
+ record(string().min(1), string());
72788
72977
  /**
72789
72978
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
72790
72979
  *
@@ -73335,11 +73524,15 @@ function parseDisplayName(raw) {
73335
73524
  if (name.length === 0) return { kind: "reset" };
73336
73525
  if (CONTROL_CHARS.test(name)) return {
73337
73526
  kind: "invalid",
73338
- reason: "The name contains control characters."
73527
+ reason: "The name contains control characters.",
73528
+ code: "control",
73529
+ length: name.length
73339
73530
  };
73340
73531
  if (name.length > 80) return {
73341
73532
  kind: "invalid",
73342
- reason: `The name is ${name.length} characters long; the limit is 80.`
73533
+ reason: `The name is ${name.length} characters long; the limit is 80.`,
73534
+ code: "too-long",
73535
+ length: name.length
73343
73536
  };
73344
73537
  return {
73345
73538
  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-B7QpttUx.mjs";
1
+ import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-CxkFEexB.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-CEZAcVSS.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 };