@camstack/addon-admin-ui 1.2.319 → 1.2.320

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 (89) hide show
  1. package/dist/assets/{AddonCollectionPage-BrWgzLIU.js → AddonCollectionPage-5nQd-fl7.js} +1 -1
  2. package/dist/assets/{Addons-DYcAKvwk.js → Addons-nH13f52s.js} +1 -1
  3. package/dist/assets/{AdminTabs-ClzbjkxZ.js → AdminTabs-ya1bCNSO.js} +1 -1
  4. package/dist/assets/{AiProfiles-Dov4FVsX.js → AiProfiles-BMleMmAA.js} +1 -1
  5. package/dist/assets/{BrokerForm-mZwFyC9C.js → BrokerForm-DHZ8hUlp.js} +1 -1
  6. package/dist/assets/{Build-60BV1diC.js → Build-CD7-IGea.js} +1 -1
  7. package/dist/assets/{Calendars-DsHBCFwG.js → Calendars-B1_mLIVE.js} +1 -1
  8. package/dist/assets/{Capabilities-85W11SU9.js → Capabilities-VNPaMHq7.js} +1 -1
  9. package/dist/assets/{CapabilityBadges-B6AnXa_t.js → CapabilityBadges-D54okPp4.js} +1 -1
  10. package/dist/assets/{Cluster-qFRM7CZx.js → Cluster-C9Odf0CH.js} +1 -1
  11. package/dist/assets/{CompositionEditor-NRHG8SDd.js → CompositionEditor-LVv358x7.js} +1 -1
  12. package/dist/assets/{CompositionEditorPage-DdwhEMMN.js → CompositionEditorPage-C1WliWGd.js} +1 -1
  13. package/dist/assets/{Data-CEGeZLbf.js → Data-hilVqnUh.js} +1 -1
  14. package/dist/assets/{DetectionIntelligence-BwIpzk1h.js → DetectionIntelligence-yqs4-_p5.js} +1 -1
  15. package/dist/assets/{DeviceAggregateSection-BJDp8r7c.js → DeviceAggregateSection-WJZBDahv.js} +1 -1
  16. package/dist/assets/{DeviceDetail-UwDyYgHs.js → DeviceDetail-BChiwD-w.js} +1 -1
  17. package/dist/assets/{DeviceDoActionFields-OJLes8SP.js → DeviceDoActionFields-DzNdsRac.js} +1 -1
  18. package/dist/assets/{Devices-C7EsO5uT.js → Devices-4YZ9Sf8I.js} +1 -1
  19. package/dist/assets/{EmbedPlayerPage-CLtx1qJu.js → EmbedPlayerPage-BGgzYptJ.js} +1 -1
  20. package/dist/assets/{Events-CKB7LKgR.js → Events-tVjjBxsP.js} +1 -1
  21. package/dist/assets/{FormBuilder-66XFP4SU.js → FormBuilder-Mm2KUHj_.js} +1 -1
  22. package/dist/assets/{Identity-B9buxNxL.js → Identity-8eGv_R6C.js} +1 -1
  23. package/dist/assets/{IntegrationDetail-B7ZswH_j.js → IntegrationDetail-3Pyar-gL.js} +1 -1
  24. package/dist/assets/{Integrations-BiYfqDqX.js → Integrations-4v0L4iRd.js} +1 -1
  25. package/dist/assets/{Integrations-B4u7dcBy.js → Integrations-AXOsTawD.js} +1 -1
  26. package/dist/assets/{Locations-wmUUv8Qt.js → Locations-BbGnTY6L.js} +1 -1
  27. package/dist/assets/{Logs-8C77vt04.js → Logs-Bu8iqW5z.js} +1 -1
  28. package/dist/assets/{ModelLicenses-BpND7P2W.js → ModelLicenses-UdDC7tYP.js} +1 -1
  29. package/dist/assets/{MotionZonesSettings-BgQQ-nih.js → MotionZonesSettings-Ld-j-FOf.js} +1 -1
  30. package/dist/assets/{MyAccess-CfmkGGJr.js → MyAccess-DkAeD0Ir.js} +1 -1
  31. package/dist/assets/{Network-DbOzHm2v.js → Network-DrjDUX_p.js} +1 -1
  32. package/dist/assets/{NodeAddonsSettingsPanel-CoGJcleE.js → NodeAddonsSettingsPanel-aN5DSImk.js} +1 -1
  33. package/dist/assets/{NodeInferenceDevices-DEQLoFgS.js → NodeInferenceDevices-DPflIBwk.js} +1 -1
  34. package/dist/assets/Notifications-DnWt27Kz.js +1 -0
  35. package/dist/assets/{Pipeline-DD8w5812.js → Pipeline-DRDZgfL-.js} +1 -1
  36. package/dist/assets/{Plates-p-NK9G1T.js → Plates-ZWQhgQK-.js} +1 -1
  37. package/dist/assets/{PrivacyMaskSettings-CSIJ2V3u.js → PrivacyMaskSettings-BZrLQhuR.js} +1 -1
  38. package/dist/assets/{ProviderIcon-D3iThBBe.js → ProviderIcon-ChyLY-K8.js} +1 -1
  39. package/dist/assets/{Recordings-D25IxRNs.js → Recordings-ECXZUa6a.js} +1 -1
  40. package/dist/assets/{ScanNetworkModal-DKFEtHT3.js → ScanNetworkModal-DaVszVsh.js} +1 -1
  41. package/dist/assets/{SceneMonitorEditor-DwhUbtzq.js → SceneMonitorEditor-DArl0gdm.js} +1 -1
  42. package/dist/assets/{Scenes-D1jX8kn5.js → Scenes-DKjp5Iid.js} +1 -1
  43. package/dist/assets/{Settings-C2BKgOpm.js → Settings-DmbFUzbw.js} +1 -1
  44. package/dist/assets/{Showroom-CtqBkiv2.js → Showroom-CfI9H0xt.js} +1 -1
  45. package/dist/assets/{StorageLocationsPanel-CVjEIApR.js → StorageLocationsPanel-BSZbgwvo.js} +1 -1
  46. package/dist/assets/{Terminal-DecFUwef.js → Terminal-CQwcJHRr.js} +1 -1
  47. package/dist/assets/{Viewer-BPi2u3JT.js → Viewer-Cp1t9JAa.js} +1 -1
  48. package/dist/assets/{_virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-cJ6EU7bN.js → _virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-8eP7BPxU.js} +1 -1
  49. package/dist/assets/{archive-XCiszzxf.js → archive-bhxXcFdH.js} +1 -1
  50. package/dist/assets/{authed-media-DDqmA02K.js → authed-media-DoAWMi2a.js} +1 -1
  51. package/dist/assets/{boxes-D4MIbXht.js → boxes-j_W4wNc5.js} +1 -1
  52. package/dist/assets/circle-slash-B992-uTX.js +1 -0
  53. package/dist/assets/{debounced-invalidate-Bz2popF9.js → debounced-invalidate-i8fFRjDI.js} +1 -1
  54. package/dist/assets/{device-integration-icon-DzuJgcu0.js → device-integration-icon-C0LvIHA1.js} +1 -1
  55. package/dist/assets/device-picker-model-Bx-MZkA4.js +1 -0
  56. package/dist/assets/dist-CKSjSzEl.js +349 -0
  57. package/dist/assets/{dist-BE0-lAbU.js → dist-CuhmUcM3.js} +1 -1
  58. package/dist/assets/{face-bbox-CQZeT16C.js → face-bbox-6mKTh5h_.js} +1 -1
  59. package/dist/assets/{hard-drive-download-BUvVfeCd.js → hard-drive-download-CfRqYj8Y.js} +1 -1
  60. package/dist/assets/{hostInit-s2-vIzef.js → hostInit-DK6L4JlB.js} +1 -1
  61. package/dist/assets/{index-C1l1qzBm.js → index-j5fkiwRk.js} +3 -3
  62. package/dist/assets/{layers-CtOoDwSD.js → layers-QOUNNTM5.js} +1 -1
  63. package/dist/assets/{location-owned-usage-C5plKvRg.js → location-owned-usage-CTvGcaad.js} +1 -1
  64. package/dist/assets/{mf-entry-bootstrap-0-1c53a077.js → mf-entry-bootstrap-0-a0da9d1e.js} +2 -2
  65. package/dist/assets/{player-overlays-27qhPy_v.js → player-overlays-BiMOywnH.js} +1 -1
  66. package/dist/assets/remoteEntry-BpoD5TCl.js +1 -0
  67. package/dist/assets/{send-BPGjlbSr.js → send-BJx_S3it.js} +1 -1
  68. package/dist/assets/{settings-2-DYo9uOuF.js → settings-2-sRY7papp.js} +1 -1
  69. package/dist/assets/{square-check-big-CTL89hi8.js → square-check-big-DIDWLK6q.js} +1 -1
  70. package/dist/assets/src-BMvSPnxA.js +349 -0
  71. package/dist/assets/{src-IJPkPeFt.js → src-D5VbJHEA.js} +3 -3
  72. package/dist/assets/{use-scenes-feed-CPwa5B1D.js → use-scenes-feed-Cc_D9YMA.js} +1 -1
  73. package/dist/assets/{use-stationary-objects-Dq2GsPVr.js → use-stationary-objects-BK-lZxz5.js} +1 -1
  74. package/dist/assets/{useDevice-CkN93PJ-.js → useDevice-UWeOTc-3.js} +1 -1
  75. package/dist/assets/useEventInvalidation-Bx-MZkA4.js +1 -0
  76. package/dist/assets/{useNodeUrlSelection-CUdqirJf.js → useNodeUrlSelection-DEofbZPd.js} +1 -1
  77. package/dist/assets/user-round-CCoCiRZv.js +1 -0
  78. package/dist/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-yti5GZlu.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-Bw8wYSqx.js} +2 -2
  79. package/dist/index.html +5 -5
  80. package/dist/server/addon.js +10 -1
  81. package/package.json +1 -1
  82. package/dist/assets/Notifications-q6l-TAXA.js +0 -1
  83. package/dist/assets/circle-slash-Cy2rn5H3.js +0 -1
  84. package/dist/assets/device-picker-model-5vHoWhVP.js +0 -1
  85. package/dist/assets/dist-BlxQFw9d.js +0 -349
  86. package/dist/assets/remoteEntry-C-HUzkdc.js +0 -1
  87. package/dist/assets/src-DxIAkBus.js +0 -349
  88. package/dist/assets/useEventInvalidation-5vHoWhVP.js +0 -1
  89. package/dist/assets/user-round-C3AYvBKo.js +0 -1
@@ -0,0 +1 @@
1
+ import{yt as e}from"./player-overlays-BiMOywnH.js";var t=e(`circle-slash`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`9`,x2:`15`,y1:`15`,y2:`9`,key:`1dfufj`}]]);export{t};
@@ -1 +1 @@
1
- import{K as e,Q as t,S as n,W as r,q as i,x as a,z as o}from"./_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-DhP-Lgiq.js";import{_t as s,gt as c,vt as l}from"./player-overlays-27qhPy_v.js";import{md as u,pd as d}from"./src-IJPkPeFt.js";t();var f={fromMs:null,toMs:null},p=36e5,m=24*p;function h(e,t){switch(e){case`24h`:return{fromMs:t-m,toMs:null};case`7d`:return{fromMs:t-7*m,toMs:null};case`30d`:return{fromMs:t-30*m,toMs:null};case`all`:return f}}function g(e){return e.fromMs!==null||e.toMs!==null}function _(e,t){return g(t)?e.filter(e=>!(t.fromMs!==null&&e.timestamp<t.fromMs||t.toMs!==null&&e.timestamp>t.toMs)):[...e]}function v(e,t){return t.size===0?[...e]:e.filter(e=>t.has(e.deviceId))}function y(e){let t=new Set,n=[];for(let r of e)t.has(r.deviceId)||(t.add(r.deviceId),n.push(r.deviceId));return n}function b(e){if(!e)return null;let t=Date.parse(`${e}T00:00:00`);return Number.isNaN(t)?null:t}function x(e){if(!e)return null;let t=Date.parse(`${e}T23:59:59.999`);return Number.isNaN(t)?null:t}function S(e,t){if(!Number.isFinite(e)||e<=0)return`—`;let n=t-e;return n<6e4?`just now`:n<p?`${String(Math.floor(n/6e4))}m ago`:n<m?`${String(Math.floor(n/p))}h ago`:n<7*m?`${String(Math.floor(n/m))}d ago`:new Date(e).toLocaleDateString(void 0,{month:`short`,day:`numeric`})}function C(e){return!Number.isFinite(e)||e<=0?`—`:new Date(e).toLocaleTimeString(void 0,{hour:`2-digit`,minute:`2-digit`,second:`2-digit`})}function w(e){return!Number.isFinite(e)||e<=0?`—`:new Date(e).toLocaleString(void 0,{year:`numeric`,month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`})}function T(e,t,n){let[a,s]=i(1);o(()=>{s(1)},[n]);let c=e.length,l=Math.max(1,Math.ceil(c/t)),u=Math.min(a,l);return o(()=>{u!==a&&s(u)},[u,a]),{page:u,setPage:s,pageItems:r(()=>{let n=(u-1)*t;return e.slice(n,n+t)},[e,u,t]),totalPages:l,totalItems:c,pageSize:t}}var E=2;function D(e,t){if(t<=1)return[{kind:`page`,n:1}];if(t<=7){let e=[];for(let n=1;n<=t;n++)e.push({kind:`page`,n});return e}let n=[],r=Math.max(2,e-E),i=Math.min(t-1,e+E);n.push({kind:`page`,n:1}),r>2&&n.push({kind:`ellipsis`,side:`left`});for(let e=r;e<=i;e++)n.push({kind:`page`,n:e});return i<t-1&&n.push({kind:`ellipsis`,side:`right`}),n.push({kind:`page`,n:t}),n}function O({currentPage:e,totalItems:t,pageSize:r,onPageChange:i,itemNoun:o=`items`}){if(t<=r)return null;let s=Math.ceil(t/r),l=(e-1)*r+1,u=Math.min(e*r,t),f=D(e,s),p=`inline-flex h-7 min-w-7 items-center justify-center rounded-md px-2 text-[11px] transition-colors disabled:opacity-40`;return n(`div`,{className:`flex items-center justify-between gap-4 flex-wrap pt-2 text-[11px] text-foreground-subtle`,children:[n(`span`,{children:[`Showing `,l,`–`,u,` of `,t,` `,o]}),n(`div`,{className:`flex items-center gap-1`,children:[a(`button`,{type:`button`,className:`${p} hover:bg-surface-hover`,onClick:()=>i(e-1),disabled:e<=1,"aria-label":`Previous page`,children:a(d,{className:`h-3.5 w-3.5`})}),f.map(t=>t.kind===`ellipsis`?a(`span`,{className:`px-1 opacity-60`,children:`…`},`ellipsis-${t.side}`):a(`button`,{type:`button`,className:`${p} ${t.n===e?`bg-primary/12 text-primary font-medium`:`hover:bg-surface-hover hover:text-foreground`}`,onClick:()=>i(t.n),"aria-current":t.n===e?`page`:void 0,children:t.n},t.n)),a(`button`,{type:`button`,className:`${p} hover:bg-surface-hover`,onClick:()=>i(e+1),disabled:e>=s,"aria-label":`Next page`,children:a(c,{className:`h-3.5 w-3.5`})})]})]})}t();function k({cameras:t,selected:r,onChange:c}){let[d,f]=i(!1),p=e(null);o(()=>{if(!d)return;function e(e){p.current&&e.target instanceof Node&&!p.current.contains(e.target)&&f(!1)}function t(e){e.key===`Escape`&&f(!1)}return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[d]);function m(e){let t=new Set(r);t.has(e)?t.delete(e):t.add(e),c(t)}let h=r.size,g=h===0?`All cameras`:h===1?t.find(e=>r.has(e.id))?.name??`1 camera`:`${String(h)} cameras`;return n(`div`,{ref:p,className:`relative`,children:[n(`button`,{type:`button`,onClick:()=>f(e=>!e),disabled:t.length===0,className:`flex items-center gap-1.5 rounded-md border px-2.5 py-1 text-xs transition-colors disabled:opacity-40 ${h>0?`border-primary/40 bg-primary/8 text-primary`:`border-border text-foreground-subtle hover:bg-surface-hover hover:text-foreground`}`,children:[a(l,{className:`h-3.5 w-3.5`}),a(`span`,{className:`max-w-[10rem] truncate`,children:g}),a(s,{className:`h-3 w-3 opacity-70`})]}),d&&n(`div`,{className:`absolute left-0 z-30 mt-1 max-h-64 w-[min(15rem,calc(100vw-1.5rem))] overflow-y-auto rounded-md border border-border bg-surface p-1 shadow-lg shadow-black/30`,children:[h>0&&a(`button`,{type:`button`,onClick:()=>c(new Set),className:`mb-1 w-full rounded px-2 py-1 text-left text-[11px] text-foreground-subtle hover:bg-surface-hover hover:text-foreground`,children:`Clear selection`}),t.map(e=>{let t=r.has(e.id);return n(`button`,{type:`button`,onClick:()=>m(e.id),className:`flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-xs transition-colors ${t?`bg-primary/10 text-primary`:`text-foreground hover:bg-surface-hover`}`,children:[a(`span`,{className:`flex h-3.5 w-3.5 shrink-0 items-center justify-center rounded-sm border ${t?`border-primary bg-primary text-white`:`border-border`}`,children:t&&a(u,{className:`h-2.5 w-2.5`})}),a(`span`,{className:`truncate`,children:e.name})]},e.id)})]})]})}t();var A=[{label:`24h`,value:`24h`},{label:`7d`,value:`7d`},{label:`30d`,value:`30d`},{label:`All`,value:`all`}];function j({onChange:e}){let[t,r]=i(`all`),[o,s]=i(``),[c,l]=i(``);function u(t){r(t),s(``),l(``),e(h(t,Date.now()))}function d(t,n){r(`custom`),s(t),l(n),e({fromMs:b(t),toMs:x(n)})}let f=`rounded-md border border-border bg-surface px-2 py-1.5 text-[11px] text-foreground outline-none focus:border-primary [color-scheme:light] dark:[color-scheme:dark]`;return n(`div`,{className:`flex flex-wrap items-center gap-1.5`,children:[a(`div`,{className:`flex items-center gap-1 rounded-md border border-border p-0.5`,children:A.map(e=>a(`button`,{type:`button`,onClick:()=>u(e.value),className:`rounded px-2.5 py-1 text-[11px] transition-colors ${t===e.value?`bg-primary/12 text-primary font-medium`:`text-foreground-subtle hover:bg-surface-hover hover:text-foreground`}`,children:e.label},e.value))}),n(`div`,{className:`flex items-center gap-1`,children:[a(`input`,{type:`date`,"aria-label":`From date`,value:o,max:c||void 0,onChange:e=>d(e.target.value,c),className:`${f} ${t===`custom`&&o?`border-primary/50`:``}`}),a(`span`,{className:`text-[11px] text-foreground-subtle`,children:`→`}),a(`input`,{type:`date`,"aria-label":`To date`,value:c,min:o||void 0,onChange:e=>d(o,e.target.value),className:`${f} ${t===`custom`&&c?`border-primary/50`:``}`})]})]})}t();var M=2.6;function N({src:e,alt:t,className:r,overlay:s,fit:c=`contain`}){let[l,u]=i(!1),[d,f]=i(`50% 50%`);o(()=>{u(!1),f(`50% 50%`)},[e]);function p(e){if(!l){let t=e.currentTarget.getBoundingClientRect(),n=(e.clientX-t.left)/t.width*100,r=(e.clientY-t.top)/t.height*100;f(`${String(n)}% ${String(r)}%`)}u(e=>!e)}let m=c===`natural`;return a(`div`,{className:`relative overflow-hidden bg-background ${r??``}`,onClick:p,children:n(`div`,{className:`relative select-none transition-transform duration-200 ease-out ${m?`w-full`:`h-full w-full`} ${l?`cursor-zoom-out`:`cursor-zoom-in`}`,style:{transformOrigin:d,transform:l?`scale(${String(M)})`:`scale(1)`},children:[a(`img`,{src:e,alt:t,draggable:!1,className:m?`block h-auto w-full object-contain`:`h-full w-full object-contain`}),s]})})}function P(e){let{delayMs:t,invalidate:n,setTimeoutFn:r=setTimeout,clearTimeoutFn:i=clearTimeout}=e,a;function o(){a===void 0&&(a=r(()=>{a=void 0,n()},t))}function s(){a!==void 0&&(i(a),a=void 0)}return{trigger:o,cancel:s}}export{O as a,y as c,C as d,S as f,k as i,v as l,N as n,T as o,w as p,j as r,f as s,P as t,_ as u};
1
+ import{K as e,Q as t,S as n,W as r,q as i,x as a,z as o}from"./_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-DhP-Lgiq.js";import{_t as s,gt as c,vt as l}from"./player-overlays-BiMOywnH.js";import{md as u,pd as d}from"./src-D5VbJHEA.js";t();var f={fromMs:null,toMs:null},p=36e5,m=24*p;function h(e,t){switch(e){case`24h`:return{fromMs:t-m,toMs:null};case`7d`:return{fromMs:t-7*m,toMs:null};case`30d`:return{fromMs:t-30*m,toMs:null};case`all`:return f}}function g(e){return e.fromMs!==null||e.toMs!==null}function _(e,t){return g(t)?e.filter(e=>!(t.fromMs!==null&&e.timestamp<t.fromMs||t.toMs!==null&&e.timestamp>t.toMs)):[...e]}function v(e,t){return t.size===0?[...e]:e.filter(e=>t.has(e.deviceId))}function y(e){let t=new Set,n=[];for(let r of e)t.has(r.deviceId)||(t.add(r.deviceId),n.push(r.deviceId));return n}function b(e){if(!e)return null;let t=Date.parse(`${e}T00:00:00`);return Number.isNaN(t)?null:t}function x(e){if(!e)return null;let t=Date.parse(`${e}T23:59:59.999`);return Number.isNaN(t)?null:t}function S(e,t){if(!Number.isFinite(e)||e<=0)return`—`;let n=t-e;return n<6e4?`just now`:n<p?`${String(Math.floor(n/6e4))}m ago`:n<m?`${String(Math.floor(n/p))}h ago`:n<7*m?`${String(Math.floor(n/m))}d ago`:new Date(e).toLocaleDateString(void 0,{month:`short`,day:`numeric`})}function C(e){return!Number.isFinite(e)||e<=0?`—`:new Date(e).toLocaleTimeString(void 0,{hour:`2-digit`,minute:`2-digit`,second:`2-digit`})}function w(e){return!Number.isFinite(e)||e<=0?`—`:new Date(e).toLocaleString(void 0,{year:`numeric`,month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`})}function T(e,t,n){let[a,s]=i(1);o(()=>{s(1)},[n]);let c=e.length,l=Math.max(1,Math.ceil(c/t)),u=Math.min(a,l);return o(()=>{u!==a&&s(u)},[u,a]),{page:u,setPage:s,pageItems:r(()=>{let n=(u-1)*t;return e.slice(n,n+t)},[e,u,t]),totalPages:l,totalItems:c,pageSize:t}}var E=2;function D(e,t){if(t<=1)return[{kind:`page`,n:1}];if(t<=7){let e=[];for(let n=1;n<=t;n++)e.push({kind:`page`,n});return e}let n=[],r=Math.max(2,e-E),i=Math.min(t-1,e+E);n.push({kind:`page`,n:1}),r>2&&n.push({kind:`ellipsis`,side:`left`});for(let e=r;e<=i;e++)n.push({kind:`page`,n:e});return i<t-1&&n.push({kind:`ellipsis`,side:`right`}),n.push({kind:`page`,n:t}),n}function O({currentPage:e,totalItems:t,pageSize:r,onPageChange:i,itemNoun:o=`items`}){if(t<=r)return null;let s=Math.ceil(t/r),l=(e-1)*r+1,u=Math.min(e*r,t),f=D(e,s),p=`inline-flex h-7 min-w-7 items-center justify-center rounded-md px-2 text-[11px] transition-colors disabled:opacity-40`;return n(`div`,{className:`flex items-center justify-between gap-4 flex-wrap pt-2 text-[11px] text-foreground-subtle`,children:[n(`span`,{children:[`Showing `,l,`–`,u,` of `,t,` `,o]}),n(`div`,{className:`flex items-center gap-1`,children:[a(`button`,{type:`button`,className:`${p} hover:bg-surface-hover`,onClick:()=>i(e-1),disabled:e<=1,"aria-label":`Previous page`,children:a(d,{className:`h-3.5 w-3.5`})}),f.map(t=>t.kind===`ellipsis`?a(`span`,{className:`px-1 opacity-60`,children:`…`},`ellipsis-${t.side}`):a(`button`,{type:`button`,className:`${p} ${t.n===e?`bg-primary/12 text-primary font-medium`:`hover:bg-surface-hover hover:text-foreground`}`,onClick:()=>i(t.n),"aria-current":t.n===e?`page`:void 0,children:t.n},t.n)),a(`button`,{type:`button`,className:`${p} hover:bg-surface-hover`,onClick:()=>i(e+1),disabled:e>=s,"aria-label":`Next page`,children:a(c,{className:`h-3.5 w-3.5`})})]})]})}t();function k({cameras:t,selected:r,onChange:c}){let[d,f]=i(!1),p=e(null);o(()=>{if(!d)return;function e(e){p.current&&e.target instanceof Node&&!p.current.contains(e.target)&&f(!1)}function t(e){e.key===`Escape`&&f(!1)}return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[d]);function m(e){let t=new Set(r);t.has(e)?t.delete(e):t.add(e),c(t)}let h=r.size,g=h===0?`All cameras`:h===1?t.find(e=>r.has(e.id))?.name??`1 camera`:`${String(h)} cameras`;return n(`div`,{ref:p,className:`relative`,children:[n(`button`,{type:`button`,onClick:()=>f(e=>!e),disabled:t.length===0,className:`flex items-center gap-1.5 rounded-md border px-2.5 py-1 text-xs transition-colors disabled:opacity-40 ${h>0?`border-primary/40 bg-primary/8 text-primary`:`border-border text-foreground-subtle hover:bg-surface-hover hover:text-foreground`}`,children:[a(l,{className:`h-3.5 w-3.5`}),a(`span`,{className:`max-w-[10rem] truncate`,children:g}),a(s,{className:`h-3 w-3 opacity-70`})]}),d&&n(`div`,{className:`absolute left-0 z-30 mt-1 max-h-64 w-[min(15rem,calc(100vw-1.5rem))] overflow-y-auto rounded-md border border-border bg-surface p-1 shadow-lg shadow-black/30`,children:[h>0&&a(`button`,{type:`button`,onClick:()=>c(new Set),className:`mb-1 w-full rounded px-2 py-1 text-left text-[11px] text-foreground-subtle hover:bg-surface-hover hover:text-foreground`,children:`Clear selection`}),t.map(e=>{let t=r.has(e.id);return n(`button`,{type:`button`,onClick:()=>m(e.id),className:`flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-xs transition-colors ${t?`bg-primary/10 text-primary`:`text-foreground hover:bg-surface-hover`}`,children:[a(`span`,{className:`flex h-3.5 w-3.5 shrink-0 items-center justify-center rounded-sm border ${t?`border-primary bg-primary text-white`:`border-border`}`,children:t&&a(u,{className:`h-2.5 w-2.5`})}),a(`span`,{className:`truncate`,children:e.name})]},e.id)})]})]})}t();var A=[{label:`24h`,value:`24h`},{label:`7d`,value:`7d`},{label:`30d`,value:`30d`},{label:`All`,value:`all`}];function j({onChange:e}){let[t,r]=i(`all`),[o,s]=i(``),[c,l]=i(``);function u(t){r(t),s(``),l(``),e(h(t,Date.now()))}function d(t,n){r(`custom`),s(t),l(n),e({fromMs:b(t),toMs:x(n)})}let f=`rounded-md border border-border bg-surface px-2 py-1.5 text-[11px] text-foreground outline-none focus:border-primary [color-scheme:light] dark:[color-scheme:dark]`;return n(`div`,{className:`flex flex-wrap items-center gap-1.5`,children:[a(`div`,{className:`flex items-center gap-1 rounded-md border border-border p-0.5`,children:A.map(e=>a(`button`,{type:`button`,onClick:()=>u(e.value),className:`rounded px-2.5 py-1 text-[11px] transition-colors ${t===e.value?`bg-primary/12 text-primary font-medium`:`text-foreground-subtle hover:bg-surface-hover hover:text-foreground`}`,children:e.label},e.value))}),n(`div`,{className:`flex items-center gap-1`,children:[a(`input`,{type:`date`,"aria-label":`From date`,value:o,max:c||void 0,onChange:e=>d(e.target.value,c),className:`${f} ${t===`custom`&&o?`border-primary/50`:``}`}),a(`span`,{className:`text-[11px] text-foreground-subtle`,children:`→`}),a(`input`,{type:`date`,"aria-label":`To date`,value:c,min:o||void 0,onChange:e=>d(o,e.target.value),className:`${f} ${t===`custom`&&c?`border-primary/50`:``}`})]})]})}t();var M=2.6;function N({src:e,alt:t,className:r,overlay:s,fit:c=`contain`}){let[l,u]=i(!1),[d,f]=i(`50% 50%`);o(()=>{u(!1),f(`50% 50%`)},[e]);function p(e){if(!l){let t=e.currentTarget.getBoundingClientRect(),n=(e.clientX-t.left)/t.width*100,r=(e.clientY-t.top)/t.height*100;f(`${String(n)}% ${String(r)}%`)}u(e=>!e)}let m=c===`natural`;return a(`div`,{className:`relative overflow-hidden bg-background ${r??``}`,onClick:p,children:n(`div`,{className:`relative select-none transition-transform duration-200 ease-out ${m?`w-full`:`h-full w-full`} ${l?`cursor-zoom-out`:`cursor-zoom-in`}`,style:{transformOrigin:d,transform:l?`scale(${String(M)})`:`scale(1)`},children:[a(`img`,{src:e,alt:t,draggable:!1,className:m?`block h-auto w-full object-contain`:`h-full w-full object-contain`}),s]})})}function P(e){let{delayMs:t,invalidate:n,setTimeoutFn:r=setTimeout,clearTimeoutFn:i=clearTimeout}=e,a;function o(){a===void 0&&(a=r(()=>{a=void 0,n()},t))}function s(){a!==void 0&&(i(a),a=void 0)}return{trigger:o,cancel:s}}export{O as a,y as c,C as d,S as f,k as i,v as l,N as n,T as o,w as p,j as r,f as s,P as t,_ as u};
@@ -1 +1 @@
1
- import{x as e}from"./_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-DhP-Lgiq.js";import{t}from"./ProviderIcon-D3iThBBe.js";function n(n,r){switch(r.kind){case`resolved`:return e(t,{type:r.integration.addonId,size:`sm`});case`orphan`:return e(t,{type:n.addonId,size:`sm`});case`unknown`:case`unlinked`:return null}}export{n as t};
1
+ import{x as e}from"./_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-DhP-Lgiq.js";import{t}from"./ProviderIcon-ChyLY-K8.js";function n(n,r){switch(r.kind){case`resolved`:return e(t,{type:r.integration.addonId,size:`sm`});case`orphan`:return e(t,{type:n.addonId,size:`sm`});case`unknown`:case`unlinked`:return null}}export{n as t};
@@ -0,0 +1 @@
1
+ import"./src-D5VbJHEA.js";