@camstack/addon-osd-manager 0.1.237 → 0.1.239

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-CU-mFCnh.mjs → MaskShapeCanvas-BFhkWNJD.mjs} +2330 -2329
  2. package/dist/MotionZonesSettings-BU-acK9Z.mjs +309 -0
  3. package/dist/PrivacyMaskSettings-DMXiC1dM.mjs +368 -0
  4. package/dist/SceneMonitorEditor-ePI2t_wT.mjs +846 -0
  5. package/dist/_stub.js +6969 -6346
  6. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-jEKBdGBv.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-CNlBultD.mjs} +4 -4
  7. package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DkfPNoLU.mjs +26 -0
  8. package/dist/{_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react__loadShare__.js-BbmIfQSr.mjs → _virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react__loadShare__.js-C-pbjC7c.mjs} +1 -1
  9. package/dist/addon-osd-manager.css +1 -1
  10. package/dist/{hostInit-axhhtI5J.mjs → hostInit-CTiW6F1s.mjs} +3 -3
  11. package/dist/index.js +199 -9
  12. package/dist/index.mjs +199 -9
  13. package/dist/player-overlays-B4efNR1A.mjs +44 -0
  14. package/dist/remoteEntry.js +1 -1
  15. package/dist/{responsive-BhiSaPOR.mjs → responsive-CvSyX7h3.mjs} +35 -35
  16. package/dist/scene-monitor-copy-QAemI7ef.mjs +227 -0
  17. package/dist/{square--YygXCVY.mjs → square-BG-oZkZc.mjs} +1 -1
  18. package/dist/{trash-2-C74NEbN7.mjs → trash-2-DvemWMy7.mjs} +1 -1
  19. package/dist/ui-text-BitwQ50T.mjs +34 -0
  20. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-Cz3C_9Hg.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-CbjSvUsn.mjs} +1 -1
  21. package/package.json +1 -1
  22. package/dist/MotionZonesSettings-7Vbym3TT.mjs +0 -310
  23. package/dist/PrivacyMaskSettings-wnU8Ju8m.mjs +0 -377
  24. package/dist/SceneMonitorEditor-vGtrP-cH.mjs +0 -831
  25. package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BereOozp.mjs +0 -26
  26. package/dist/player-overlays-Bl7_5BCk.mjs +0 -44
  27. package/dist/scene-monitor-copy-Dkm9sS_o.mjs +0 -187
package/dist/index.mjs CHANGED
@@ -5386,7 +5386,7 @@ var ZodIssueCode = {
5386
5386
  var ZodFirstPartyTypeKind;
5387
5387
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5388
5388
  //#endregion
5389
- //#region ../types/dist/sleep-DAX0-2v9.mjs
5389
+ //#region ../types/dist/sleep-DRqxtc0C.mjs
5390
5390
  /**
5391
5391
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5392
5392
  * window to float samples (D455).
@@ -8154,8 +8154,12 @@ method(object({ deviceId: number() }), array(StreamSourceEntrySchema)), method(o
8154
8154
  kind: "mutation",
8155
8155
  auth: "admin"
8156
8156
  }), method(object({ deviceId: number() }), unknown().nullable()), method(object({ deviceId: number() }), RawStateResultSchema.nullable(), { auth: "protected" });
8157
+ object({
8158
+ code: string().regex(/^[a-z][a-z0-9-]*(\.[a-z0-9-]+)+$/),
8159
+ params: record(string(), union([string(), number()])).optional()
8160
+ });
8157
8161
  //#endregion
8158
- //#region ../types/dist/err-msg-DX6i_MY4.mjs
8162
+ //#region ../types/dist/err-msg-DLerKiVO.mjs
8159
8163
  var DeviceType = /* @__PURE__ */ function(DeviceType) {
8160
8164
  DeviceType["Camera"] = "camera";
8161
8165
  DeviceType["Hub"] = "hub";
@@ -8405,6 +8409,22 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
8405
8409
  DeviceRole["Nightvision"] = "nightvision";
8406
8410
  DeviceRole["PrivacyMask"] = "privacy-mask";
8407
8411
  DeviceRole["Doorbell"] = "doorbell";
8412
+ /** Interior blind / shade / roller blind. HA `device_class: blind|shade`. */
8413
+ DeviceRole["CoverBlind"] = "cover-blind";
8414
+ /** Exterior roller shutter. HA `device_class: shutter`; Homematic BROLL. */
8415
+ DeviceRole["CoverShutter"] = "cover-shutter";
8416
+ /** Exterior awning. HA `device_class: awning`. */
8417
+ DeviceRole["CoverAwning"] = "cover-awning";
8418
+ /** Curtain / drape. HA `device_class: curtain`. */
8419
+ DeviceRole["CoverCurtain"] = "cover-curtain";
8420
+ /** Garage door. HA `device_class: garage`. A security actuator: exports gate it. */
8421
+ DeviceRole["CoverGarage"] = "cover-garage";
8422
+ /** Gate. HA `device_class: gate`. A security actuator: exports gate it. */
8423
+ DeviceRole["CoverGate"] = "cover-gate";
8424
+ /** Door. HA `device_class: door`. A security actuator: exports gate it. */
8425
+ DeviceRole["CoverDoor"] = "cover-door";
8426
+ /** Window. HA `device_class: window`. */
8427
+ DeviceRole["CoverWindow"] = "cover-window";
8408
8428
  /** Virtual HA toggle (input_boolean.*) — distinguishable from a
8409
8429
  * real Switch device for UI rendering / export adapters. */
8410
8430
  DeviceRole["BinaryHelper"] = "binary-helper";
@@ -8475,7 +8495,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
8475
8495
  return DeviceRole;
8476
8496
  }({});
8477
8497
  //#endregion
8478
- //#region ../types/dist/composition-C-WpVYTX.mjs
8498
+ //#region ../types/dist/composition-EQ9Ok0Ee.mjs
8479
8499
  /**
8480
8500
  * The ffmpeg build every CamStack node downloads, per platform and arch.
8481
8501
  *
@@ -11679,11 +11699,10 @@ var ClipModelMetaSchema = object({
11679
11699
  /**
11680
11700
  * The `vector-store` index this model's vectors live in. ONE feature space
11681
11701
  * per index: two models share an index only when their vectors are ranked
11682
- * against each other, which for CLIP means never across families. MobileCLIP
11683
- * S1 and S2 share `object-clip` for history (separated by the row's
11684
- * `modelId`); any other model gets its own.
11702
+ * against each other, which for CLIP means never across families. Every
11703
+ * model gets its own.
11685
11704
  */
11686
- vectorIndex: string().regex(/^object-clip(-[a-z0-9][a-z0-9-]*)?$/),
11705
+ vectorIndex: string().regex(/^object-clip-[a-z0-9][a-z0-9-]*$/),
11687
11706
  /**
11688
11707
  * The text encoder's tokenizer, a declared SIBLING file of its onnx. The name
11689
11708
  * must be unique per tokenizer: every model's siblings land in ONE flat
@@ -12152,7 +12171,8 @@ var ConvertResultSchema = object({
12152
12171
  })).readonly()
12153
12172
  });
12154
12173
  _enum(["new-session", "step-up"]);
12155
- _enum(["en", "it"]);
12174
+ /** The languages the hub's app landing pages are written in (D858). */
12175
+ var AppPageLangSchema = _enum(["en", "it"]);
12156
12176
  /** How a native app starts one login method (D858), as `auth.listLoginMethods` reports it. */
12157
12177
  var AppLoginPathSchema = discriminatedUnion("kind", [object({ kind: literal("native") }), object({
12158
12178
  kind: literal("browser"),
@@ -12666,7 +12686,9 @@ var ConfigTabDeclarationSchema = object({
12666
12686
  var ConfigSectionWithValuesSchema = object({
12667
12687
  id: string(),
12668
12688
  title: string(),
12689
+ titleKey: string().optional(),
12669
12690
  description: string().optional(),
12691
+ descriptionKey: string().optional(),
12670
12692
  style: _enum(["card", "accordion"]).optional(),
12671
12693
  defaultCollapsed: boolean().optional(),
12672
12694
  columns: union([
@@ -15892,6 +15914,9 @@ method(object({
15892
15914
  }), method(object({ refs: RefListSchema }), KeychainResolveResultSchema, { auth: "admin" }), method(object({ refs: RefListSchema }), object({ deleted: number().int() }), {
15893
15915
  kind: "mutation",
15894
15916
  auth: "admin"
15917
+ }), method(object({ deviceId: number().int() }), object({ refs: array(string()).readonly() }), {
15918
+ kind: "mutation",
15919
+ auth: "admin"
15895
15920
  }), method(object({}), array(KeychainSecretMetaSchema).readonly(), { auth: "admin" }), method(object({}), KeychainStateSchema, { auth: "admin" });
15896
15921
  /**
15897
15922
  * device-history — the ONE mechanism for numeric history (D850).
@@ -37340,6 +37365,38 @@ var DeviceRegisterPayloadSchema = object({
37340
37365
  * omits it and the keyword backstop applies. */
37341
37366
  secretConfigPaths: array(string()).optional()
37342
37367
  });
37368
+ /** One deleted device, kept by device-manager so an addon that missed the
37369
+ * deletion can still learn of it (D865). Written by the delete path ONLY. */
37370
+ var DeviceTombstoneSchema = object({
37371
+ deviceId: number().int().positive(),
37372
+ /** Epoch ms the device was deleted. */
37373
+ deletedAt: number(),
37374
+ /** The addon that owned the device when it was deleted. */
37375
+ providerAddonId: string()
37376
+ });
37377
+ /** Data held for one device that device-manager no longer knows. */
37378
+ var OrphanDeviceDataSchema = object({
37379
+ deviceId: number().int().positive(),
37380
+ /** Rows/files per store (`<addonId>:<store>`). */
37381
+ stores: record(string(), number().int().nonnegative())
37382
+ });
37383
+ var CleanupDeletedDevicesResultSchema = object({
37384
+ /**
37385
+ * `skipped` — the absence check could not be trusted (a device-list read
37386
+ * failed or the two reads disagreed); nothing was listed or deleted.
37387
+ * `dry-run` — `devices` is what a confirmed run would delete.
37388
+ * `cleaned` — `devices` is what was deleted.
37389
+ */
37390
+ status: _enum([
37391
+ "skipped",
37392
+ "dry-run",
37393
+ "cleaned"
37394
+ ]),
37395
+ reason: string().nullable(),
37396
+ devices: array(OrphanDeviceDataSchema),
37397
+ /** Implementers that could not be asked (their stores are not in `devices`). */
37398
+ unreachable: array(string())
37399
+ });
37343
37400
  var DeviceRemovePayloadSchema = object({ deviceId: number() });
37344
37401
  var DevicePersistConfigPayloadSchema = object({
37345
37402
  deviceId: number(),
@@ -37578,6 +37635,9 @@ method(object({
37578
37635
  }), method(object({ deviceId: number() }), object({ success: literal(true) }), {
37579
37636
  kind: "mutation",
37580
37637
  auth: "admin"
37638
+ }), method(object({ sinceMs: number() }), array(DeviceTombstoneSchema).readonly(), { auth: "admin" }), method(object({ confirm: boolean() }), CleanupDeletedDevicesResultSchema, {
37639
+ kind: "mutation",
37640
+ auth: "admin"
37581
37641
  }), method(object({ integrationId: string() }), object({ removed: number() }), {
37582
37642
  kind: "mutation",
37583
37643
  auth: "admin"
@@ -38040,6 +38100,72 @@ method(object({
38040
38100
  auth: "admin"
38041
38101
  });
38042
38102
  /**
38103
+ * `device-removal-hook` — the reliable way an addon learns a device was DELETED,
38104
+ * so it can delete what it keeps for that device (D865).
38105
+ *
38106
+ * ## Why an event was not enough
38107
+ *
38108
+ * `DeviceUnregistered` is telemetry and may be dropped (D8, D11). An addon that
38109
+ * hung its per-device clean-up on it left durable garbage whenever the event was
38110
+ * lost, the addon was down, or it was restarting at that moment — footage,
38111
+ * analytics rows and settings of device 4483 outlived the device. Loss of this
38112
+ * signal corrupts durable state, so it travels by RPC with a recorded fact
38113
+ * behind it (D8: "if loss would corrupt durable state, use RPC plus a reconcile").
38114
+ *
38115
+ * ## The three pieces
38116
+ *
38117
+ * 1. device-manager records a TOMBSTONE per deleted device
38118
+ * (`deviceManager.listDeletedSince`). The tombstone is written by the delete
38119
+ * path only — a device that is unregistered, offline or whose provider is
38120
+ * restarting is NOT deleted and gets none.
38121
+ * 2. After a delete, device-manager calls `onDeviceRemoved` on EVERY provider of
38122
+ * this collection, one by one, with bounded retries, logged.
38123
+ * 3. An implementer that was down asks `deviceManager.listDeletedSince` at start
38124
+ * (and periodically) and runs its own `onDeviceRemoved` for each tombstone it
38125
+ * may have missed. Reconcile is driven by tombstones, never by "the device is
38126
+ * not in the current list": a failed or partial list read must not destroy data.
38127
+ *
38128
+ * ## Contract for an implementer
38129
+ *
38130
+ * - **Idempotent.** It is called again by a retry, by a reconcile and by the
38131
+ * admin cleanup of data that predates tombstones. A device with nothing left
38132
+ * answers zero counts.
38133
+ * - **One key per store** in `counts`, deleted rows/files per store, so the log
38134
+ * line and the admin dry run can say where the data was.
38135
+ * - **Training datasets are NOT device data** and are never deleted by a hook.
38136
+ * - **Per-device SETTINGS are not hooked.** Configuration lives in the standard
38137
+ * per-device store (`ctx.settings.*DeviceStore`), which device-manager clears
38138
+ * for every addon centrally at delete time. This hook is for device DATA
38139
+ * that is not settings: footage, event media, analytics rows, history.
38140
+ * - A provider that cannot tell is allowed to throw; the caller retries it.
38141
+ *
38142
+ * `listDeviceData` is the read side of the admin "Clean data of deleted devices"
38143
+ * action: which device ids this addon holds data for, and how much per store. It
38144
+ * never deletes. device-manager decides which of those ids are absent from the
38145
+ * fleet, from TWO consistent reads of the device list (D49).
38146
+ */
38147
+ /** What a hook is told about the deletion. */
38148
+ var DeviceRemovedInputSchema = object({
38149
+ deviceId: number().int().positive(),
38150
+ /** Epoch ms the device was deleted (the tombstone's `deletedAt`). */
38151
+ deletedAt: number(),
38152
+ /** The addon that owned the device, as device-manager last knew it. */
38153
+ providerAddonId: string()
38154
+ });
38155
+ /** Rows/files/refs deleted, per store this implementer owns. */
38156
+ var DeviceRemovedResultSchema = object({ counts: record(string(), number().int().nonnegative()) });
38157
+ /** One (store, device) pair an implementer holds data for. */
38158
+ var DeviceDataEntrySchema = object({
38159
+ store: string(),
38160
+ deviceId: number().int().positive(),
38161
+ /** Rows (or files) held for the device in the store. */
38162
+ count: number().int().nonnegative()
38163
+ });
38164
+ method(DeviceRemovedInputSchema, DeviceRemovedResultSchema, {
38165
+ kind: "mutation",
38166
+ auth: "admin"
38167
+ }), method(_void(), array(DeviceDataEntrySchema).readonly(), { auth: "admin" });
38168
+ /**
38043
38169
  * `failure-contribution` — the capability an addon reports its OWN losses
38044
38170
  * through, per camera, with the denominator attached. It stores nothing.
38045
38171
  *
@@ -55127,7 +55253,19 @@ var TlsStatusSchema = object({
55127
55253
  sans: array(string()),
55128
55254
  caCertPem: string().nullable(),
55129
55255
  reissueError: string().nullable(),
55130
- restartRequired: boolean()
55256
+ restartRequired: boolean(),
55257
+ /** An uploaded certificate is served but no CA is kept for it and it is not publicly signed (D873). */
55258
+ caMissing: boolean(),
55259
+ /** Does the hub's own generated CA carry a critical name constraint? `null` while it has none. */
55260
+ localCaConstrained: boolean().nullable(),
55261
+ /** ISO time the generated CA was replaced by a constrained one; devices must re-download it. */
55262
+ caReplacedAt: string().nullable(),
55263
+ /** The uploaded certificate kept on disk, selectable again after "Revert to generated". */
55264
+ storedUpload: object({
55265
+ leafFingerprintSha256: string(),
55266
+ validTo: string(),
55267
+ hasCa: boolean()
55268
+ }).nullable()
55131
55269
  });
55132
55270
  method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
55133
55271
  /**
@@ -55183,6 +55321,9 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
55183
55321
  }), method(_void(), object({ pem: string() })), method(_void(), TlsStatusSchema, {
55184
55322
  kind: "mutation",
55185
55323
  auth: "admin"
55324
+ }), method(_void(), TlsStatusSchema, {
55325
+ kind: "mutation",
55326
+ auth: "admin"
55186
55327
  });
55187
55328
  object({
55188
55329
  /** Lifecycle state of the lock. `jammed` means the motor reported
@@ -63485,6 +63626,12 @@ Object.freeze({
63485
63626
  addonId: null,
63486
63627
  access: "create"
63487
63628
  },
63629
+ "deviceManager.cleanupDeletedDevicesData": {
63630
+ capName: "device-manager",
63631
+ capScope: "system",
63632
+ addonId: null,
63633
+ access: "create"
63634
+ },
63488
63635
  "deviceManager.createDevice": {
63489
63636
  capName: "device-manager",
63490
63637
  capScope: "system",
@@ -63665,6 +63812,12 @@ Object.freeze({
63665
63812
  addonId: null,
63666
63813
  access: "view"
63667
63814
  },
63815
+ "deviceManager.listDeletedSince": {
63816
+ capName: "device-manager",
63817
+ capScope: "system",
63818
+ addonId: null,
63819
+ access: "view"
63820
+ },
63668
63821
  "deviceManager.listDeviceIdsByCaps": {
63669
63822
  capName: "device-manager",
63670
63823
  capScope: "system",
@@ -64073,6 +64226,18 @@ Object.freeze({
64073
64226
  addonId: null,
64074
64227
  access: "create"
64075
64228
  },
64229
+ "deviceRemovalHook.listDeviceData": {
64230
+ capName: "device-removal-hook",
64231
+ capScope: "system",
64232
+ addonId: null,
64233
+ access: "view"
64234
+ },
64235
+ "deviceRemovalHook.onDeviceRemoved": {
64236
+ capName: "device-removal-hook",
64237
+ capScope: "system",
64238
+ addonId: null,
64239
+ access: "create"
64240
+ },
64076
64241
  "deviceState.claimFields": {
64077
64242
  capName: "device-state",
64078
64243
  capScope: "system",
@@ -64505,6 +64670,12 @@ Object.freeze({
64505
64670
  addonId: null,
64506
64671
  access: "delete"
64507
64672
  },
64673
+ "keychain.deleteDeviceScope": {
64674
+ capName: "keychain",
64675
+ capScope: "system",
64676
+ addonId: null,
64677
+ access: "delete"
64678
+ },
64508
64679
  "keychain.getState": {
64509
64680
  capName: "keychain",
64510
64681
  capScope: "system",
@@ -64943,6 +65114,12 @@ Object.freeze({
64943
65114
  addonId: null,
64944
65115
  access: "create"
64945
65116
  },
65117
+ "localNetwork.useStoredUploadedCertificate": {
65118
+ capName: "local-network",
65119
+ capScope: "system",
65120
+ addonId: null,
65121
+ access: "create"
65122
+ },
64946
65123
  "lockControl.getStatus": {
64947
65124
  capName: "lock-control",
64948
65125
  capScope: "device",
@@ -70517,6 +70694,11 @@ Object.freeze({
70517
70694
  form: "single",
70518
70695
  optional: false
70519
70696
  }],
70697
+ "deviceRemovalHook.onDeviceRemoved": [{
70698
+ name: "deviceId",
70699
+ form: "single",
70700
+ optional: false
70701
+ }],
70520
70702
  "deviceState.claimFields": [{
70521
70703
  name: "deviceId",
70522
70704
  form: "single",
@@ -70706,6 +70888,11 @@ Object.freeze({
70706
70888
  form: "single",
70707
70889
  optional: false
70708
70890
  }],
70891
+ "keychain.deleteDeviceScope": [{
70892
+ name: "deviceId",
70893
+ form: "single",
70894
+ optional: false
70895
+ }],
70709
70896
  "lawnMowerControl.dock": [{
70710
70897
  name: "deviceId",
70711
70898
  form: "single",
@@ -73134,6 +73321,8 @@ new Set([
73134
73321
  "audio-tools",
73135
73322
  "audio-silence"
73136
73323
  ]);
73324
+ AppPageLangSchema.options;
73325
+ record(string().min(1), string());
73137
73326
  /**
73138
73327
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
73139
73328
  *
@@ -74509,6 +74698,7 @@ Object.freeze({
74509
74698
  "device-export": ["listExposedDevices", "listSupportedDeviceKinds"],
74510
74699
  "device-extension": ["listSlots", "listSources"],
74511
74700
  "device-provider": ["discoverDevices", "getDevices"],
74701
+ "device-removal-hook": ["listDeviceData"],
74512
74702
  "failure-contribution": ["list"],
74513
74703
  "llm": [
74514
74704
  "getDefaults",
@@ -0,0 +1,44 @@
1
+ import { S as e, d as t, u as n, v as r } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react__loadShare__.js-C-pbjC7c.mjs";
2
+ import { n as i, r as a, t as o } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-DalfdIDw.mjs";
3
+ import { c as s, l as c } from "./responsive-CvSyX7h3.mjs";
4
+ var l = c("chevron-down", [["path", {
5
+ d: "m6 9 6 6 6-6",
6
+ key: "qrunsl"
7
+ }]]), u = c("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(), s("camstack:player-overlays-state", null);
36
+ var f = s("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_osd_manager_page__remoteEntry_js-Cz3C_9Hg.mjs";
1
+ import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-CbjSvUsn.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_osd_manager_page__loadShare__react__loadShare__.js-BbmIfQSr.mjs";
2
- import { i as u } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BereOozp.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_osd_manager_page__loadShare__react__loadShare__.js-C-pbjC7c.mjs";
3
2
  import "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-DalfdIDw.mjs";
3
+ import { i as u } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DkfPNoLU.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 = "flex min-w-0 flex-col gap-0.5 py-1.5 sm:flex-row sm:items-center", O = "min-w-0 text-[11px] leading-tight text-foreground-subtle sm:w-32 sm:shrink-0 sm:pr-2", k = "flex w-full min-w-0 items-center gap-1 sm:flex-1", A = "min-w-0 break-all text-xs text-foreground sm:truncate", j = "text-[10px] text-foreground-subtle", M = "inline-flex items-center gap-1 rounded-full border px-1.5 py-0.5 text-[10px] font-medium transition-colors", N = "border-primary/50 bg-primary/15 text-primary";
120
+ var D = "text-[10px] text-foreground-subtle", O = "inline-flex items-center gap-1 rounded-full border px-1.5 py-0.5 text-[10px] font-medium transition-colors", k = "border-primary/50 bg-primary/15 text-primary";
121
121
  //#endregion
122
- export { k as a, E as c, x as d, y as f, O as i, C as l, M as n, A as o, v as p, D as r, j as s, N as t, w as u };
122
+ export { C as a, y as c, E as i, v as l, O as n, w as o, D as r, x as s, k as t };