PageSourceSearch

https://www.holoin.ai/assets/DoorStatus-px4zjtc_.js

js holoin.ai collected 2026-10-05 14:37:07 UTC 6,095 bytes, 1 lines download raw bytes

1import{j as l,aV as j}from"./grid-DevY8ceg.js";import{L as V}from"./LottieDynamicImport-Bf1whVOo.js";function u(){return l.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 58 58",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("path",{d:"M13 57.5H10V0.5L13 3.5V57.5Z",fill:"#DBD6D2"}),l.jsx("path",{d:"M45 57.5H48V0.5L45 3.5V57.5Z",fill:"#DBD6D2"}),l.jsx("path",{d:"M45 3.5H13L10 0.5H48L45 3.5Z",fill:"#FBF6F2"}),l.jsx("path",{d:"M10 54.5H0V57.5H10V54.5Z",fill:"#DBD6D2"}),l.jsx("path",{d:"M58 54.5H48V57.5H58V54.5Z",fill:"#DBD6D2"}),l.jsx("path",{d:"M45 3.5H13V57.5H45V3.5Z",fill:"#0F1D2A"}),l.jsx("path",{d:"M40 8.5H18V16.5H40V8.5Z",fill:"#20415F"}),l.jsx("path",{d:"M40 44.5H18V52.5H40V44.5Z",fill:"#20415F"}),l.jsx("path",{d:"M35 33.5V32.5H18V40.5H40V33.5H35Z",fill:"#20415F"}),l.jsx("path",{d:"M35 27.5H40V20.5H18V28.5H35V27.5Z",fill:"#20415F"}),l.jsx("path",{d:"M42 31.5H38C37.448 31.5 37 31.053 37 30.5C37 29.947 37.448 29.5 38 29.5H42C42.552 29.5 43 29.947 43 30.5C43 31.053 42.552 31.5 42 31.5Z",fill:"#C3B874"}),l.jsxs("g",{"clip-path":"url(#clip0_14_140)",children:[l.jsx("path",{d:"M28.4616 19.651C28.4015 19.6292 28.3273 19.6134 28.2389 19.6033C28.1506 19.5932 28.0421 19.5884 27.9134 19.5884H27.5581V20.6894C27.5941 20.6948 27.64 20.699 27.6959 20.7015C27.7517 20.7044 27.8095 20.7056 27.8695 20.7056C28.0395 20.7056 28.1818 20.6911 28.2969 20.6621C28.4118 20.6329 28.5047 20.5924 28.5749 20.5408C28.6452 20.4889 28.6959 20.4261 28.7268 20.3527C28.7578 20.2791 28.7731 20.1988 28.7731 20.1115C28.7731 20.0042 28.75 19.9117 28.7037 19.8334C28.6573 19.7556 28.5766 19.6946 28.4616 19.651Z",fill:"#F3E4E4"}),l.jsx("path",{d:"M25.3163 19.8554C25.2254 19.7446 25.1171 19.6619 24.9919 19.6073C24.8667 19.5528 24.7295 19.5256 24.58 19.5256C24.4308 19.5256 24.2934 19.5528 24.1683 19.6073C24.043 19.6619 23.9349 19.7447 23.8439 19.8554C23.753 19.9662 23.6817 20.1048 23.6302 20.2711C23.5787 20.4373 23.5531 20.6313 23.5531 20.8529C23.5531 21.0745 23.5787 21.2685 23.6302 21.4347C23.6817 21.601 23.753 21.7389 23.8439 21.849C23.9349 21.9588 24.043 22.0414 24.1683 22.0971C24.2934 22.1525 24.4307 22.18 24.58 22.18C24.7294 22.18 24.8665 22.1525 24.9919 22.0971C25.1171 22.0414 25.2254 21.9588 25.3163 21.849C25.4071 21.7391 25.4783 21.601 25.5298 21.4347C25.5813 21.2684 25.6072 21.0745 25.6072 20.8529C25.6072 20.6313 25.5814 20.4371 25.5298 20.2711C25.4783 20.1048 25.4071 19.9662 25.3163 19.8554Z",fill:"#F3E4E4"}),l.jsx("path",{d:"M37.32 16.5329H21.68C21.3045 16.5329 21 16.8553 21 17.2529V24.4529C21 24.8505 21.3045 25.1729 21.68 25.1729H37.32C37.6955 25.1729 38 24.8505 38 24.4529V17.2529C38 16.8553 37.6955 16.5329 37.32 16.5329ZM26.1463 21.6174C26.0716 21.849 25.9626 22.0484 25.8193 22.2155C25.6759 22.3827 25.5001 22.5125 25.2917 22.6052C25.0831 22.6979 24.8459 22.7442 24.5799 22.7442C24.3139 22.7442 24.0767 22.6977 23.8681 22.6052C23.6595 22.5125 23.4837 22.3827 23.3404 22.2155C23.1971 22.0483 23.0883 21.849 23.0135 21.6174C22.9389 21.3857 22.9015 21.1308 22.9015 20.8529C22.9015 20.5748 22.9389 20.3201 23.0135 20.0884C23.0882 19.8568 23.1971 19.6573 23.3404 19.4903C23.4837 19.3232 23.6595 19.1933 23.8681 19.1006C24.0767 19.0077 24.3139 18.9616 24.5799 18.9616C24.8458 18.9616 25.0831 19.0079 25.2917 19.1006C25.5001 19.1933 25.676 19.323 25.8193 19.4903C25.9626 19.6575 26.0714 19.8567 26.1463 20.0884C26.2207 20.3201 26.2581 20.5748 26.2581 20.8529C26.2583 21.1308 26.2209 21.3857 26.1463 21.6174ZM29.3213 20.6009C29.2527 20.7417 29.1524 20.861 29.0203 20.9593C28.8882 21.0574 28.7267 21.1328 28.5362 21.1854C28.3459 21.2381 28.1271 21.2644 27.8799 21.2644C27.8233 21.2644 27.7675 21.2635 27.7128 21.2615C27.6579 21.2597 27.6064 21.2561 27.5582 21.2506V22.676H26.9277V19.0295H27.9212C28.0878 19.0295 28.2331 19.0374 28.3574 19.0527C28.4819 19.0682 28.593 19.0914 28.6908 19.1224C28.9259 19.1987 29.1069 19.3204 29.2339 19.4874C29.3608 19.6546 29.4243 19.8672 29.4243 20.1251C29.4244 20.3016 29.3898 20.4601 29.3213 20.6009ZM32.4177 22.6761H30.0935V19.0295H32.3251V19.5884H30.724V20.5313H32.0986V21.09H30.724V22.1174H32.4177V22.6761ZM36.0984 22.6761H35.4368L34.3144 20.9974C34.1172 20.7067 33.9131 20.3696 33.7017 19.9862H33.6862C33.7068 20.4331 33.7172 20.7793 33.7172 21.0248V22.6763H33.087V19.0295H33.7485L34.881 20.7247C35.1282 21.0971 35.3289 21.4278 35.4833 21.7169H35.4988C35.4782 21.2426 35.4678 20.8974 35.4678 20.6812V19.0295H36.0985V22.6761H36.0984Z",fill:"#F3E4E4"}),l.jsx("path",{d:"M29.5 11.8871C30.2981 11.8871 30.945 11.2021 30.945 10.3571C30.945 9.51209 30.2981 8.82709 29.5 8.82709C28.7019 8.82709 28.055 9.51209 28.055 10.3571C28.055 11.2021 28.7019 11.8871 29.5 11.8871Z",fill:"#F3E4E4"}
1),l.jsx("path",{d:"M34.7292 15.8129H35.747L31.2862 11.5714C31.1623 11.7746 31.0094 11.9559 30.8321 12.1074L34.7292 15.8129Z",fill:"#F3E4E4"}),l.jsx("path",{d:"M28.1679 12.1074C27.9906 11.956 27.8377 11.7748 27.7138 11.5714L23.253 15.8129H24.2708L28.1679 12.1074Z",fill:"#F3E4E4"})]}),l.jsx("defs",{children:l.jsx("clipPath",{id:"clip0_14_140",children:l.jsx("rect",{width:"17",height:"18",fill:"white",transform:"translate(21 8)"})})})]})}const Z=({liveValue:s=[],isAlert:d,widgetSettings:t=[]})=>{var x;console.log("door-status-widget",t,s);const{unit:h,value_color:o,label:c,attributes:n,device:C,product_name:H}=(t==null?void 0:t[0])??{},f=h??"",p=o??"#000",a=String((x=s==null?void 0:s[0])==null?void 0:x.attribute_value),r=c??j(n),e=C==null?void 0:C.device_unique_identifier,i=H;return l.jsxs("div",{className:"p-4 h-[86%] w-full",children:[(e||i)&&l.jsxs("div",{className:"text-sm flex flex-col items-end flex-wrap text-gray-600",children:[i&&l.jsx("span",{children:i}),e&&l.jsx("span",{children:e})]}),l.jsxs("div",{className:"flex w-full   h-full flex-col items-center",children:[d?l.jsx(V,{name:"door_opening",className:"w-full h-full "}):l.jsx("div",{className:"w-[70%] h-[75%]",children:l.jsx(u,{})}),l.jsxs("div",{className:"flex  items-center  mt-2 flex-col",children:[l.jsx("h1",{className:"text-md text-gray-500",children:r&&`${r} `}),l.jsx("span",{style:{color:p},children:a==null?"-":`${a} ${f}`})]})]})]})};export{Z as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.