@camstack/addon-admin-ui 0.1.24 → 0.1.26

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 (33) hide show
  1. package/dist/assets/{_virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-CV-R_rHB.js → _virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-DlcNv4jc.js} +1 -1
  2. package/dist/assets/devices-Ccad-MYH.js +1 -0
  3. package/dist/assets/{hostInit-DcknmeNu.js → hostInit-BpDp2mzG.js} +1 -1
  4. package/dist/assets/index-CAlT1MNc.css +1 -0
  5. package/dist/assets/index-CO8Odo2q.js +1103 -0
  6. package/dist/assets/index-CaiMG86U.js +80 -0
  7. package/dist/assets/{index-F3MAsf-9.js → index-D9kg0e9y.js} +1 -1
  8. package/dist/assets/index-DDPTeM3J.js +80 -0
  9. package/dist/assets/index-DMrjJViX.js +1 -0
  10. package/dist/assets/{index-CvVlJEP5.js → index-DOXiszQ-.js} +1 -1
  11. package/dist/assets/{index-Dq_5fsAQ.js → index-DV9irWJe.js} +1 -1
  12. package/dist/assets/index-bCeHA7pg.js +1 -0
  13. package/dist/assets/index-ihiza8WC.js +1 -0
  14. package/dist/assets/index-vWF3glDx.js +1 -0
  15. package/dist/assets/index-zk-hwOKE.js +1 -0
  16. package/dist/assets/method-access-map-DAzkqn3U.js +1 -0
  17. package/dist/assets/{remoteEntry-D1zRuKvw.js → remoteEntry-DcLH2pUv.js} +1 -1
  18. package/dist/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-DItyrftX.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-CJWQPV3f.js} +2 -2
  19. package/dist/index.html +6 -6
  20. package/dist/mf-entry-bootstrap-0.js +2 -2
  21. package/dist/sw.js +1 -1
  22. package/package.json +1 -1
  23. package/dist/assets/auth-records-DLqosdE2.js +0 -1
  24. package/dist/assets/capability-router-map-UNVkwZU9.js +0 -1
  25. package/dist/assets/devices-BUM64diU.js +0 -1
  26. package/dist/assets/index-B95gHp6V.js +0 -1
  27. package/dist/assets/index-DVf1U7c4.js +0 -1
  28. package/dist/assets/index-De6hr8eY.js +0 -1
  29. package/dist/assets/index-DvrBfik_.js +0 -1
  30. package/dist/assets/index-agmLjvC2.js +0 -80
  31. package/dist/assets/index-bZcruxoE.js +0 -80
  32. package/dist/assets/index-k_vr1qwb.js +0 -1098
  33. package/dist/assets/index-uOUrSD7R.css +0 -1
@@ -1 +1 @@
1
- import{D as b,a as h,E,b as T,d as S,e as M,H as _,R as L,f as I,g as y,T as D,h as P,i as A,j as v,k as R,l as N,c as k,m as O,n as w,o as x,p as V,q as F,r as B,s as Y,t as j,u as q,v as G,w as H,x as $,y as z,z as U,A as W,B as Z,C as J,F as K,G as X,I as Q,J as ee,K as te,L as ae,M as se,N as re,O as le}from"./devices-BUM64diU.js";const c=[{id:"liveStream",label:"Live Stream",sources:{frigate:!0,scrypted:!0,rtsp:!0},adapterMethod:"getLiveStream"},{id:"multiResolution",label:"Multi-Resolution",sources:{frigate:!0,scrypted:!0,rtsp:!1},adapterMethod:"getResolutions"},{id:"motion",label:"Motion Detection",sources:{frigate:!1,scrypted:!0,rtsp:!1},adapterMethod:"getMotion"},{id:"objectDetection",label:"Object Detection",sources:{frigate:!1,scrypted:!0,rtsp:!1},adapterMethod:"getObjectDetections"},{id:"audioVolume",label:"Audio Level",sources:{frigate:!1,scrypted:!0,rtsp:!1},adapterMethod:"getAudioVolume"},{id:"audioVolumes",label:"Audio Volumes (dBFS)",sources:{frigate:!1,scrypted:!0,rtsp:!1},adapterMethod:"getAudioVolumes"},{id:"ptz",label:"PTZ Control",sources:{frigate:!1,scrypted:!0,rtsp:!1},adapterMethod:"getPTZ"},{id:"intercom",label:"Intercom (Mic)",sources:{frigate:!1,scrypted:!0,rtsp:!1},adapterMethod:"getIntercomSupport"},{id:"deviceStatus",label:"Device Status",sources:{frigate:!1,scrypted:!0,rtsp:!1},adapterMethod:"getStatus"},{id:"timeline",label:"Detection Timeline",sources:{frigate:!0,scrypted:!0,rtsp:!1},adapterMethod:"getCameraDayData"},{id:"clusteredTimeline",label:"Clustered Timeline",sources:{frigate:!0,scrypted:!0,rtsp:!1},requiresBackend:!0,adapterMethod:"getClusteredDayData"},{id:"detectionClasses",label:"Detection Classes",sources:{frigate:!0,scrypted:!0,rtsp:!1},adapterMethod:"getDetectionClasses"},{id:"videoClips",label:"Video Clips",sources:{frigate:!0,scrypted:!0,rtsp:!1},adapterMethod:"getVideoClips"},{id:"nvrPlayback",label:"NVR Playback",sources:{frigate:!0,scrypted:!0,rtsp:!1},adapterMethod:"getNvrPlaybackSupported"},{id:"nvrScrub",label:"NVR Scrub/Seek",sources:{frigate:!1,scrypted:!0,rtsp:!1},adapterMethod:"seekRecordingStream"},{id:"recordingThumbnail",label:"Recording Thumbnails",sources:{frigate:!0,scrypted:!0,rtsp:!1},adapterMethod:"getRecordingStreamThumbnail"},{id:"nvrSeekToLive",label:"Seek to Live",sources:{frigate:!1,scrypted:!0,rtsp:!1},adapterMethod:"seekNvrToLive"}];function ie(s,e,n){const i=c.find(o=>o.id===s);return!(!i||!i.sources[e]||i.platforms&&i.platforms[n]===!1)}function oe(s){return c.filter(e=>e.sources[s])}function de(){return c.filter(s=>s.requiresBackend)}function ue(s,e,n){if(s.length===0)return null;const i=e.viewportWidth*e.viewportHeight*(e.pixelRatio??1),o=e.bandwidthMbps??100,f=e.packetLoss??0,m=e.rttMs??50;let r="high";e.maxResolution==="low"||e.isCellular||o<1||f>.05?r="low":e.maxResolution==="medium"||o<5||i<5e5||m>200?r="medium":(e.maxResolution==="high"||i>2e6)&&(r="high");const g={main:"high",sub:"medium",ext:"low"},C=n??"native",p=s.map(t=>{let a=0;const d=g[t.profile]??"medium";if(d===r?a+=100:(r==="high"&&d==="medium"||r==="medium"&&d==="high"||r==="medium"&&d==="low"||r==="low"&&d==="medium")&&(a+=50),t.transport===C?a+=30:t.transport==="native"?a+=20:t.transport==="rtsp"?a+=15:t.transport==="rtmp"&&(a+=10),t.metadata?.width&&t.metadata?.height){const u=t.metadata.width*t.metadata.height/Math.max(i,1);u>=.8&&u<=2?a+=25:u>=.5&&u<=3&&(a+=15),u>4&&o<10&&(a-=20)}return t.metadata?.codec&&(o<5&&t.metadata.codec.includes("265")&&(a+=10),o>=10&&t.metadata.codec.includes("264")&&(a+=5)),{...t,score:a,targetTier:r}});p.sort((t,a)=>a.score-t.score);const l=p[0];return{streamName:l.streamName,profile:l.profile,transport:l.transport,label:l.label,metadata:l.metadata,reason:`${l.targetTier} quality → ${l.profile}/${l.transport} (score: ${l.score})`}}function ce(s,e){return e?10:s.isCellular||(s.packetLoss??0)>.02?15:30}const fe=Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_ENABLED_CLASSES:b,DetectionClass:h,ELIGIBLE_HA_DOMAINS:E,ELIGIBLE_HA_DOMAINS_SET:T,ELIGIBLE_SCRYPTED_DEVICE_TYPES:S,ELIGIBLE_SCRYPTED_DEVICE_TYPES_SET:M,FEATURE_MATRIX:c,HA_DOMAIN_TYPE_MAP:_,RAW_TO_CANONICAL:L,SCRYPTED_TYPE_TO_CANONICAL:I,System:y,TIMELINE_PRESET_ALL:D,TIMELINE_PRESET_CRITICAL:P,TIMELINE_PRESET_IMPORTANT:A,animalClasses:v,audioClasses:R,audioLabelClasses:N,createSystem:k,defaultDetectionClasses:O,detectionClassesDefaultMap:w,doorbellClasses:x,faceClasses:V,getBackendRequiredFeatures:de,getCanonicalDeviceType:F,getClassesForTimelinePreset:B,getNextEvalInterval:ce,getParentClass:Y,getParentDetectionClass:j,getSourceFeatures:oe,isAnimalClassname:q,isAudioClassname:G,isDoorbellClassname:H,isFaceClassname:$,isFeatureAvailable:ie,isLabelDetection:z,isMotionClassname:U,isPackageClassname:W,isPersonClassname:Z,isPlateClassname:J,isSensorLabelClassname:K,isVehicleClassname:X,licensePlateClasses:Q,motionClasses:ee,packageClasses:te,personClasses:ae,raceFastestEndpoint:se,selectOptimalStream:ue,sensorLabelClasses:re,vehicleClasses:le},Symbol.toStringTag,{value:"Module"}));export{fe as s};
1
+ import{D as b,a as h,E,b as T,d as S,e as M,H as _,R as L,f as I,g as y,T as D,h as P,i as A,j as v,k as R,l as N,c as k,m as O,n as w,o as x,p as V,q as F,r as B,s as Y,t as j,u as q,v as G,w as H,x as $,y as z,z as U,A as W,B as Z,C as J,F as K,G as X,I as Q,J as ee,K as te,L as ae,M as se,N as re,O as le}from"./devices-Ccad-MYH.js";const c=[{id:"liveStream",label:"Live Stream",sources:{frigate:!0,scrypted:!0,rtsp:!0},adapterMethod:"getLiveStream"},{id:"multiResolution",label:"Multi-Resolution",sources:{frigate:!0,scrypted:!0,rtsp:!1},adapterMethod:"getResolutions"},{id:"motion",label:"Motion Detection",sources:{frigate:!1,scrypted:!0,rtsp:!1},adapterMethod:"getMotion"},{id:"objectDetection",label:"Object Detection",sources:{frigate:!1,scrypted:!0,rtsp:!1},adapterMethod:"getObjectDetections"},{id:"audioVolume",label:"Audio Level",sources:{frigate:!1,scrypted:!0,rtsp:!1},adapterMethod:"getAudioVolume"},{id:"audioVolumes",label:"Audio Volumes (dBFS)",sources:{frigate:!1,scrypted:!0,rtsp:!1},adapterMethod:"getAudioVolumes"},{id:"ptz",label:"PTZ Control",sources:{frigate:!1,scrypted:!0,rtsp:!1},adapterMethod:"getPTZ"},{id:"intercom",label:"Intercom (Mic)",sources:{frigate:!1,scrypted:!0,rtsp:!1},adapterMethod:"getIntercomSupport"},{id:"deviceStatus",label:"Device Status",sources:{frigate:!1,scrypted:!0,rtsp:!1},adapterMethod:"getStatus"},{id:"timeline",label:"Detection Timeline",sources:{frigate:!0,scrypted:!0,rtsp:!1},adapterMethod:"getCameraDayData"},{id:"clusteredTimeline",label:"Clustered Timeline",sources:{frigate:!0,scrypted:!0,rtsp:!1},requiresBackend:!0,adapterMethod:"getClusteredDayData"},{id:"detectionClasses",label:"Detection Classes",sources:{frigate:!0,scrypted:!0,rtsp:!1},adapterMethod:"getDetectionClasses"},{id:"videoClips",label:"Video Clips",sources:{frigate:!0,scrypted:!0,rtsp:!1},adapterMethod:"getVideoClips"},{id:"nvrPlayback",label:"NVR Playback",sources:{frigate:!0,scrypted:!0,rtsp:!1},adapterMethod:"getNvrPlaybackSupported"},{id:"nvrScrub",label:"NVR Scrub/Seek",sources:{frigate:!1,scrypted:!0,rtsp:!1},adapterMethod:"seekRecordingStream"},{id:"recordingThumbnail",label:"Recording Thumbnails",sources:{frigate:!0,scrypted:!0,rtsp:!1},adapterMethod:"getRecordingStreamThumbnail"},{id:"nvrSeekToLive",label:"Seek to Live",sources:{frigate:!1,scrypted:!0,rtsp:!1},adapterMethod:"seekNvrToLive"}];function ie(s,e,n){const i=c.find(o=>o.id===s);return!(!i||!i.sources[e]||i.platforms&&i.platforms[n]===!1)}function oe(s){return c.filter(e=>e.sources[s])}function de(){return c.filter(s=>s.requiresBackend)}function ue(s,e,n){if(s.length===0)return null;const i=e.viewportWidth*e.viewportHeight*(e.pixelRatio??1),o=e.bandwidthMbps??100,f=e.packetLoss??0,m=e.rttMs??50;let r="high";e.maxResolution==="low"||e.isCellular||o<1||f>.05?r="low":e.maxResolution==="medium"||o<5||i<5e5||m>200?r="medium":(e.maxResolution==="high"||i>2e6)&&(r="high");const g={main:"high",sub:"medium",ext:"low"},C=n??"native",p=s.map(t=>{let a=0;const d=g[t.profile]??"medium";if(d===r?a+=100:(r==="high"&&d==="medium"||r==="medium"&&d==="high"||r==="medium"&&d==="low"||r==="low"&&d==="medium")&&(a+=50),t.transport===C?a+=30:t.transport==="native"?a+=20:t.transport==="rtsp"?a+=15:t.transport==="rtmp"&&(a+=10),t.metadata?.width&&t.metadata?.height){const u=t.metadata.width*t.metadata.height/Math.max(i,1);u>=.8&&u<=2?a+=25:u>=.5&&u<=3&&(a+=15),u>4&&o<10&&(a-=20)}return t.metadata?.codec&&(o<5&&t.metadata.codec.includes("265")&&(a+=10),o>=10&&t.metadata.codec.includes("264")&&(a+=5)),{...t,score:a,targetTier:r}});p.sort((t,a)=>a.score-t.score);const l=p[0];return{streamName:l.streamName,profile:l.profile,transport:l.transport,label:l.label,metadata:l.metadata,reason:`${l.targetTier} quality → ${l.profile}/${l.transport} (score: ${l.score})`}}function ce(s,e){return e?10:s.isCellular||(s.packetLoss??0)>.02?15:30}const fe=Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_ENABLED_CLASSES:b,DetectionClass:h,ELIGIBLE_HA_DOMAINS:E,ELIGIBLE_HA_DOMAINS_SET:T,ELIGIBLE_SCRYPTED_DEVICE_TYPES:S,ELIGIBLE_SCRYPTED_DEVICE_TYPES_SET:M,FEATURE_MATRIX:c,HA_DOMAIN_TYPE_MAP:_,RAW_TO_CANONICAL:L,SCRYPTED_TYPE_TO_CANONICAL:I,System:y,TIMELINE_PRESET_ALL:D,TIMELINE_PRESET_CRITICAL:P,TIMELINE_PRESET_IMPORTANT:A,animalClasses:v,audioClasses:R,audioLabelClasses:N,createSystem:k,defaultDetectionClasses:O,detectionClassesDefaultMap:w,doorbellClasses:x,faceClasses:V,getBackendRequiredFeatures:de,getCanonicalDeviceType:F,getClassesForTimelinePreset:B,getNextEvalInterval:ce,getParentClass:Y,getParentDetectionClass:j,getSourceFeatures:oe,isAnimalClassname:q,isAudioClassname:G,isDoorbellClassname:H,isFaceClassname:$,isFeatureAvailable:ie,isLabelDetection:z,isMotionClassname:U,isPackageClassname:W,isPersonClassname:Z,isPlateClassname:J,isSensorLabelClassname:K,isVehicleClassname:X,licensePlateClasses:Q,motionClasses:ee,packageClasses:te,personClasses:ae,raceFastestEndpoint:se,selectOptimalStream:ue,sensorLabelClasses:re,vehicleClasses:le},Symbol.toStringTag,{value:"Module"}));export{fe as s};