iobroker.nspanel-lovelace-ui
Version:
NsPanel Lovelace UI is a Firmware for the nextion screen inside of NSPanel in the Design of Lovelace UI Design.
2 lines (1 loc) • 16.5 kB
JavaScript
import{A as v}from"./AdminComponentEasyAccessSet__loadShare__react__loadShare__-CJmceRyn.js";import{a7 as le,a1 as ce,Y as ue,a8 as de,a0 as ee,a9 as fe,aa as me,a3 as pe,e as he,s as X,Z as ye,T as ge,$ as ve,d as D}from"./defaultTheme-B6DpRwGi.js";var te={exports:{}},N={};var Se=v,be=Symbol.for("react.element"),xe=Symbol.for("react.fragment"),we=Object.prototype.hasOwnProperty,ke=Se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Pe={key:!0,ref:!0,__self:!0,__source:!0};function re(e,t,r){var n,o={},s=null,a=null;r!==void 0&&(s=""+r),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(a=t.ref);for(n in t)we.call(t,n)&&!Pe.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)o[n]===void 0&&(o[n]=t[n]);return{$$typeof:be,type:e,key:s,ref:a,props:o,_owner:ke.current}}N.Fragment=xe;N.jsx=re;N.jsxs=re;te.exports=N;var $=te.exports;function V(){return V=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},V.apply(null,arguments)}var _e=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ce=le(function(e){return _e.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Te=Ce,Ae=function(t){return t!=="theme"},Y=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Te:Ae},K=function(t,r,n){var o;if(r){var s=r.shouldForwardProp;o=t.__emotion_forwardProp&&s?function(a){return t.__emotion_forwardProp(a)&&s(a)}:s}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},Oe=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return fe(r,n,o),me(function(){return pe(r,n,o)}),null},Re=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,s,a;r!==void 0&&(s=r.label,a=r.target);var i=K(t,r,n),c=i||Y(o),u=!c("as");return function(){var f=arguments,m=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&m.push("label:"+s+";"),f[0]==null||f[0].raw===void 0)m.push.apply(m,f);else{var x=f[0];m.push(x[0]);for(var P=f.length,g=1;g<P;g++)m.push(f[g],x[g])}var l=ce(function(d,y,_){var C=u&&d.as||o,T="",I=[],p=d;if(d.theme==null){p={};for(var h in d)p[h]=d[h];p.theme=v.useContext(ue)}typeof d.className=="string"?T=de(y.registered,I,d.className):d.className!=null&&(T=d.className+" ");var w=ee(m.concat(I),y.registered,p);T+=y.key+"-"+w.name,a!==void 0&&(T+=" "+a);var S=u&&i===void 0?Y(C):c,F={};for(var A in d)u&&A==="as"||S(A)&&(F[A]=d[A]);return F.className=T,_&&(F.ref=_),v.createElement(v.Fragment,null,v.createElement(Oe,{cache:y,serialized:w,isStringTag:typeof C=="string"}),v.createElement(C,F))});return l.displayName=s!==void 0?s:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",l.defaultProps=t.defaultProps,l.__emotion_real=l,l.__emotion_base=o,l.__emotion_styles=m,l.__emotion_forwardProp=i,Object.defineProperty(l,"toString",{value:function(){return"."+a}}),l.withComponent=function(d,y){var _=e(d,V({},r,y,{shouldForwardProp:K(l,y,!0)}));return _.apply(void 0,m)},l}},ze=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],H=Re.bind(null);ze.forEach(function(e){H[e]=H(e)});function Fe(e,t){return H(e,t)}function Ie(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Z=[];function z(e){return Z[0]=e,ee(Z)}const J=e=>e,Ee=()=>{let e=J;return{configure(t){e=t},generate(t){return e(t)},reset(){e=J}}},Le=Ee();function ne(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=ne(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function je(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=ne(e))&&(n&&(n+=" "),n+=t);return n}const Me={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function oe(e,t,r="Mui"){const n=Me[t];return n?`${r}-${n}`:`${Le.generate(e)}-${t}`}function De(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=oe(e,o,r)}),n}function se(e){const{variants:t,...r}=e,n={variants:t,style:z(r),isProcessed:!0};return n.style===r||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=z(o.style))}),n}const $e=he();function U(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function R(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Ne(e){return e?(t,r)=>r[e]:null}function Ue(e,t,r){e.theme=qe(e.theme)?r:e.theme[t]||e.theme}function M(e,t,r){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>M(e,o,r));if(Array.isArray(n==null?void 0:n.variants)){let o;if(n.isProcessed)o=r?R(n.style,r):n.style;else{const{variants:s,...a}=n;o=r?R(z(a),r):a}return ie(e,n.variants,[o],r)}return n!=null&&n.isProcessed?r?R(z(n.style),r):n.style:r?R(z(n),r):n}function ie(e,t,r=[],n=void 0){var s;let o;e:for(let a=0;a<t.length;a+=1){const i=t[a];if(typeof i.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!i.props(o))continue}else for(const c in i.props)if(e[c]!==i.props[c]&&((s=e.ownerState)==null?void 0:s[c])!==i.props[c])continue e;typeof i.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},r.push(n?R(z(i.style(o)),n):i.style(o))):r.push(n?R(z(i.style),n):i.style)}return r}function Ve(e={}){const{themeId:t,defaultTheme:r=$e,rootShouldForwardProp:n=U,slotShouldForwardProp:o=U}=e;function s(i){Ue(i,t,r)}return(i,c={})=>{Ie(i,p=>p.filter(h=>h!==X));const{name:u,slot:f,skipVariantsResolver:m,skipSx:x,overridesResolver:P=Ne(We(f)),...g}=c,l=u&&u.startsWith("Mui")||f?"components":"custom",d=m!==void 0?m:f&&f!=="Root"&&f!=="root"||!1,y=x||!1;let _=U;f==="Root"||f==="root"?_=n:f?_=o:Be(i)&&(_=void 0);const C=Fe(i,{shouldForwardProp:_,label:He(),...g}),T=p=>{if(p.__emotion_real===p)return p;if(typeof p=="function")return function(w){return M(w,p,w.theme.modularCssLayers?l:void 0)};if(ye(p)){const h=se(p);return function(S){return h.variants?M(S,h,S.theme.modularCssLayers?l:void 0):S.theme.modularCssLayers?R(h.style,l):h.style}}return p},I=(...p)=>{const h=[],w=p.map(T),S=[];if(h.push(s),u&&P&&S.push(function(b){var L,W;const k=(W=(L=b.theme.components)==null?void 0:L[u])==null?void 0:W.styleOverrides;if(!k)return null;const E={};for(const G in k)E[G]=M(b,k[G],b.theme.modularCssLayers?"theme":void 0);return P(b,E)}),u&&!d&&S.push(function(b){var E,L;const O=b.theme,k=(L=(E=O==null?void 0:O.components)==null?void 0:E[u])==null?void 0:L.variants;return k?ie(b,k,[],b.theme.modularCssLayers?"theme":void 0):null}),y||S.push(X),Array.isArray(w[0])){const j=w.shift(),b=new Array(h.length).fill(""),O=new Array(S.length).fill("");let k;k=[...b,...j,...O],k.raw=[...b,...j.raw,...O],h.unshift(k)}const F=[...h,...w,...S],A=C(...F);return i.muiName&&(A.muiName=i.muiName),A};return C.withConfig&&(I.withConfig=C.withConfig),I}}function He(e,t){return void 0}function qe(e){for(const t in e)return!1;return!0}function Be(e){return typeof e=="string"&&e.charCodeAt(0)>96}function We(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function q(e,t){const r={...t};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=n;if(o==="components"||o==="slots")r[o]={...e[o],...r[o]};else if(o==="componentsProps"||o==="slotProps"){const s=e[o],a=t[o];if(!a)r[o]=s||{};else if(!s)r[o]=a;else{r[o]={...a};for(const i in s)if(Object.prototype.hasOwnProperty.call(s,i)){const c=i;r[o][c]=q(s[c],a[c])}}}else r[o]===void 0&&(r[o]=e[o])}return r}function Ge(e,t,r=void 0){const n={};for(const o in e){const s=e[o];let a="",i=!0;for(let c=0;c<s.length;c+=1){const u=s[c];u&&(a+=(i===!0?"":" ")+t(u),i=!1,r&&r[u]&&(a+=" "+r[u]))}n[o]=a}return n}const ae=v.createContext(void 0);function at({value:e,children:t}){return $.jsx(ae.Provider,{value:e,children:t})}function Xe(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?q(o.defaultProps,n):!o.styleOverrides&&!o.variants?q(o,n):n}function Ye({props:e,name:t}){const r=v.useContext(ae);return Xe({props:e,name:t,theme:{components:r}})}const Q={theme:void 0};function Ke(e){let t,r;return function(o){let s=t;return(s===void 0||o.theme!==r)&&(Q.theme=o.theme,s=se(e(Q)),t=s,r=o.theme),s}}function Ze(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Je=e=>Ze(e)&&e!=="classes",Qe=Ve({themeId:ge,defaultTheme:ve,rootShouldForwardProp:Je}),et=Ke;function tt(e){return Ye(e)}function rt(e){return oe("MuiSvgIcon",e)}const lt=De("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]),nt=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${D(t)}`,`fontSize${D(r)}`]};return Ge(o,rt,n)},ot=Qe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${D(r.color)}`],t[`fontSize${D(r.fontSize)}`]]}})(et(({theme:e})=>{var t,r,n,o,s,a,i,c,u,f,m,x,P,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(n=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:l=>!l.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:a.call(s,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((c=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:c.call(i,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((f=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:f.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,l])=>l&&l.main).map(([l])=>{var d,y;return{props:{color:l},style:{color:(y=(d=(e.vars??e).palette)==null?void 0:d[l])==null?void 0:y.main}}}),{props:{color:"action"},style:{color:(x=(m=(e.vars??e).palette)==null?void 0:m.action)==null?void 0:x.active}},{props:{color:"disabled"},style:{color:(g=(P=(e.vars??e).palette)==null?void 0:P.action)==null?void 0:g.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),B=v.forwardRef(function(t,r){const n=tt({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:a="inherit",component:i="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:f=!1,titleAccess:m,viewBox:x="0 0 24 24",...P}=n,g=v.isValidElement(o)&&o.type==="svg",l={...n,color:a,component:i,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:x,hasSvgAsChild:g},d={};f||(d.viewBox=x);const y=nt(l);return $.jsxs(ot,{as:i,className:je(y.root,s),focusable:"false",color:u,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:r,...d,...P,...g&&o.props,ownerState:l,children:[g?o.props.children:o,m?$.jsx("title",{children:m}):null]})});B.muiName="SvgIcon";function ct(e,t){function r(n,o){return $.jsx(B,{"data-testid":`${t}Icon`,ref:o,...n,children:e})}return r.muiName=B.muiName,v.memo(v.forwardRef(r))}export{Le as C,at as D,B as S,V as _,De as a,je as b,ct as c,Ge as d,Fe as e,Ve as f,oe as g,Ze as h,q as i,$ as j,lt as k,rt as l,et as m,z as n,Je as r,Qe as s,tt as u};