PageSourceSearch

https://www.holoin.ai/assets/GasLeak-SYoiDRKr.js

js holoin.ai collected 2026-10-05 14:37:05 UTC 3,741 bytes, 1 lines download raw bytes

1import{j as s,aV as m}from"./grid-DevY8ceg.js";import{L as H}from"./LottieDynamicImport-Bf1whVOo.js";function u(){return s.jsxs("svg",{width:"100%",height:"100%",viewBox:"0 0 208 358",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M124 16.8H83.2V88.4H124V16.8Z",fill:"#0F1D2A"}),s.jsx("path",{d:"M167.2 16.8H158V88.4H167.2V16.8Z",fill:"#0F1D2A"}),s.jsx("path",{d:"M49.2 16.8H40V88.4H49.2V16.8Z",fill:"#0F1D2A"}),s.jsx("path",{d:"M175.2 357.2H32C26 357.2 21.2 352.4 21.2 346.4V297.6H186V346.4C186 352.4 181.2 357.2 175.2 357.2Z",fill:"#0F1D2A"}),s.jsx("path",{d:"M103.6 71.2C46.4 71.2 0 78 0 135.2V282C0 339.2 46.4 331.6 103.6 331.6C160.8 331.6 207.2 339.2 207.2 282V135.2C207.2 78 160.8 71.2 103.6 71.2Z",fill:"#20415F"}),s.jsx("path",{d:"M167.6 24H39.6C32.8 24 27.6 18.4 27.6 12C27.6 5.2 33.2 0 39.6 0H167.6C174.4 0 179.6 5.6 179.6 12C179.6 18.8 174.4 24 167.6 24Z",fill:"#20415F"}),s.jsx("path",{d:"M201.179 257.6H5.45694C2.54657 257.6 0 254.8 0 251.6C0 248.4 2.54657 245.6 5.45694 245.6H201.543C204.453 245.6 207 248.4 207 251.6C206.636 254.8 204.453 257.6 201.179 257.6Z",fill:"#E6E9EE"}),s.jsx("path",{d:"M201.179 153.6H5.45694C2.54657 153.6 0 150.8 0 147.6C0 144.4 2.54657 141.6 5.45694 141.6H201.543C204.453 141.6 207 144.4 207 147.6C206.636 150.8 204.453 153.6 201.179 153.6Z",fill:"#E6E9EE"}),s.jsx("path",{d:"M71.6 199.6H81.2V214.8C76.8 219.6 70.8 222 63.6 222C57.2 222 52 220 47.6 215.6C43.2 211.2 41.2 206 41.2 199.6C41.2 193.2 43.2 188 47.6 183.6C52 179.2 57.2 177.2 63.6 177.2C69.6 177.2 75.2 179.2 79.6 183.2L74.4 190.4C72.4 188.8 70.8 187.6 69.2 186.8C67.6 186.4 66 186.4 64 186.4C60.4 186.4 57.2 187.6 54.8 190C52.4 192.4 51.2 195.6 51.2 200C51.2 204.4 52.4 207.2 54.8 209.6C57.2 212 60 213.2 63.6 213.2C66.8 213.2 69.6 212.4 72 211.2V199.6H71.6Z",fill:"white"}),s.jsx("path",{d:"M120 221.6L116 212.4H98L94 221.6H83.6L102.4 178.4H111.6L130.4 221.6H120ZM107.2 191.2L101.6 203.6H112.4L107.2 191.2Z",fill:"white"}),s.jsx("path",{d:"M145.2 186.8C144.4 187.6 144 188.4 144 190C144 191.2 144.4 192.4 145.6 192.8C146.8 193.6 149.2 194.4 153.6 195.6C157.6 196.8 160.8 198 163.2 200C165.6 202 166.4 204.8 166.4 208.8C166.4 212.8 164.8 216 162 218.4C159.2 220.8 155.2 222 150.4 222C143.6 222 137.6 219.6 132 214.4L137.6 207.2C142.4 211.2 146.4 213.2 150.4 213.2C152 213.2 153.6 212.8 154.4 212C155.6 211.2 156 210.4 156 208.8C156 207.6 155.6 206.4 154.4 205.6C153.2 204.8 151.2 204 148 203.2C142.8 202 139.2 200.4 136.8 198.4C134.4 196.4 133.2 193.6 133.2 189.2C133.2 185.2 134.8 182 137.6 179.6C140.4 177.2 144.4 176.4 148.8 176.4C151.6 176.4 154.4 176.8 157.6 178C160.4 178.8 162.8 180.4 165.2 182.4L160.4 189.6C156.8 186.8 152.8 185.2 148.8 185.2C147.2 186 146 186 145.2 186.8Z",fill:"white"})]})}const Z=({liveValue:l=[],isAlert:c,widgetSettings:e=[]})=>{var x;console.log("gas-leak-widget",e,l);const{unit:n,value_color:o,label:h,attributes:d,device:t,product_name:f}=(e==null?void 0:e[0])??{},p=n??"",j=o??"#000",a=String((x=l==null?void 0:l[0])==null?void 0:x.attribute_value),i=h??m(d),C=t==null?void 0:t.device_unique_identifier,r=f;return s.jsxs("div",{className:"p-4 h-[86%] w-full",children:[(C||r)&&s.jsxs("div",{className:"text-sm flex flex-col items-end flex-wrap text-gray-600",children:[r&&s.jsx("span",{children:r}),C&&s.jsx("span",{children:C})]}),s.jsxs("div",{className:"flex w-full h-[75%] mt-8 flex-col items-center",children:[c?s.jsx(H,{name:"gas_leakage",className:"w-[60%] h-[60%]"}):s.jsx("div",{className:"w-[24%] h-[60%]",children:s.jsx(u,{})}),s.jsxs("div",{className:"flex items-center mt-4 flex-col",children:[s.jsx("h1",{className:"text-md text-gray-500",children:i&&`${i} `}),s.jsx("span",{style:{color:j},children:a==null?"-":`${a} ${p}`})]})]})]})};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.