UNPKG

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
import{b as ee,k as N,q as ue,_ as de,c as te,m as fe,g as me}from"./AdminComponentEasyAccessSet__loadShare__react__loadShare__.js-VQUi_FZ-.js";import{r as pe}from"./AdminComponentEasyAccessSet__loadShare__react__loadShare__.js_commonjs-proxy-xiMWmJG0.js";import{a7 as he,a0 as ye,Y as ge,a8 as ve,a1 as re,a9 as Se,aa as be,a3 as _e,e as we,s as X,Z as xe,T as ke,$ as Pe,d as M}from"./identifier-BUIOJqla.js";var ne={exports:{}},D={};var Ce=pe,Te=Symbol.for("react.element"),Oe=Symbol.for("react.fragment"),Ae=Object.prototype.hasOwnProperty,Re=Ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ze={key:!0,ref:!0,__self:!0,__source:!0};function oe(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)Ae.call(t,n)&&!ze.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:Te,type:e,key:s,ref:a,props:o,_owner:Re.current}}D.Fragment=Oe;D.jsx=oe;D.jsxs=oe;ne.exports=D;var $=ne.exports;function V(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]=V(s[c],a[c])}}}else r[o]===void 0&&(r[o]=e[o])}return r}function Ie(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 Y=e=>e,Fe=()=>{let e=Y;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Y}}},Le=Fe(),je={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 se(e,t,r="Mui"){const n=je[t];return n?`${r}-${n}`:`${Le.generate(e)}-${t}`}function Ee(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=se(e,o,r)}),n}function ie(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=ie(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Me(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=ie(e))&&(n&&(n+=" "),n+=t);return n}function q(){return q=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},q.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)-.*))$/,De=he(function(e){return $e.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Ne=De,Ue=function(t){return t!=="theme"},K=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Ne:Ue},Z=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},Ve=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Se(r,n,o),be(function(){return _e(r,n,o)}),null},qe=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=Z(t,r,n),c=i||K(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 b=f[0];m.push(b[0]);for(var x=f.length,g=1;g<x;g++)m.push(f[g],b[g])}var l=ye(function(d,y,k){var P=u&&d.as||o,C="",I=[],p=d;if(d.theme==null){p={};for(var h in d)p[h]=d[h];p.theme=ee(ge)}typeof d.className=="string"?C=ve(y.registered,I,d.className):d.className!=null&&(C=d.className+" ");var _=re(m.concat(I),y.registered,p);C+=y.key+"-"+_.name,a!==void 0&&(C+=" "+a);var v=u&&i===void 0?K(P):c,z={};for(var T in d)u&&T==="as"||v(T)&&(z[T]=d[T]);return z.className=C,k&&(z.ref=k),N(ue,null,N(Ve,{cache:y,serialized:_,isStringTag:typeof P=="string"}),N(P,z))});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 k=e(d,q({},r,y,{shouldForwardProp:Z(l,y,!0)}));return k.apply(void 0,m)},l}},He=["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=qe.bind(null);He.forEach(function(e){H[e]=H(e)});function Be(e,t){return H(e,t)}function We(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const J=[];function R(e){return J[0]=e,re(J)}function ae(e){const{variants:t,...r}=e,n={variants:t,style:R(r),isProcessed:!0};return n.style===r||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=R(o.style))}),n}const Ge=we();function U(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function A(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Xe(e){return e?(t,r)=>r[e]:null}function Ye(e,t,r){e.theme=Je(e.theme)?r:e.theme[t]||e.theme}function E(e,t,r){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>E(e,o,r));if(Array.isArray(n==null?void 0:n.variants)){let o;if(n.isProcessed)o=r?A(n.style,r):n.style;else{const{variants:s,...a}=n;o=r?A(R(a),r):a}return le(e,n.variants,[o],r)}return n!=null&&n.isProcessed?r?A(R(n.style),r):n.style:r?A(R(n),r):n}function le(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?A(R(i.style(o)),n):i.style(o))):r.push(n?A(R(i.style),n):i.style)}return r}function Ke(e={}){const{themeId:t,defaultTheme:r=Ge,rootShouldForwardProp:n=U,slotShouldForwardProp:o=U}=e;function s(i){Ye(i,t,r)}return(i,c={})=>{We(i,p=>p.filter(h=>h!==X));const{name:u,slot:f,skipVariantsResolver:m,skipSx:b,overridesResolver:x=Xe(et(f)),...g}=c,l=u&&u.startsWith("Mui")||f?"components":"custom",d=m!==void 0?m:f&&f!=="Root"&&f!=="root"||!1,y=b||!1;let k=U;f==="Root"||f==="root"?k=n:f?k=o:Qe(i)&&(k=void 0);const P=Be(i,{shouldForwardProp:k,label:Ze(),...g}),C=p=>{if(p.__emotion_real===p)return p;if(typeof p=="function")return function(_){return E(_,p,_.theme.modularCssLayers?l:void 0)};if(xe(p)){const h=ae(p);return function(v){return h.variants?E(v,h,v.theme.modularCssLayers?l:void 0):v.theme.modularCssLayers?A(h.style,l):h.style}}return p},I=(...p)=>{const h=[],_=p.map(C),v=[];if(h.push(s),u&&x&&v.push(function(S){var L,W;const w=(W=(L=S.theme.components)==null?void 0:L[u])==null?void 0:W.styleOverrides;if(!w)return null;const F={};for(const G in w)F[G]=E(S,w[G],S.theme.modularCssLayers?"theme":void 0);return x(S,F)}),u&&!d&&v.push(function(S){var F,L;const O=S.theme,w=(L=(F=O==null?void 0:O.components)==null?void 0:F[u])==null?void 0:L.variants;return w?le(S,w,[],S.theme.modularCssLayers?"theme":void 0):null}),y||v.push(X),Array.isArray(_[0])){const j=_.shift(),S=new Array(h.length).fill(""),O=new Array(v.length).fill("");let w;w=[...S,...j,...O],w.raw=[...S,...j.raw,...O],h.unshift(w)}const z=[...h,..._,...v],T=P(...z);return i.muiName&&(T.muiName=i.muiName),T};return P.withConfig&&(I.withConfig=P.withConfig),I}}function Ze(e,t){return void 0}function Je(e){for(const t in e)return!1;return!0}function Qe(e){return typeof e=="string"&&e.charCodeAt(0)>96}function et(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const ce=de(void 0);function ht({value:e,children:t}){return $.jsx(ce.Provider,{value:e,children:t})}function tt(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?V(o.defaultProps,n):!o.styleOverrides&&!o.variants?V(o,n):n}function rt({props:e,name:t}){const r=ee(ce);return tt({props:e,name:t,theme:{components:r}})}const Q={theme:void 0};function nt(e){let t,r;return function(o){let s=t;return(s===void 0||o.theme!==r)&&(Q.theme=o.theme,s=ae(e(Q)),t=s,r=o.theme),s}}function ot(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const st=e=>ot(e)&&e!=="classes",it=Ke({themeId:ke,defaultTheme:Pe,rootShouldForwardProp:st}),at=nt;function lt(e){return rt(e)}function ct(e){return se("MuiSvgIcon",e)}const yt=Ee("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]),ut=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${M(t)}`,`fontSize${M(r)}`]};return Ie(o,ct,n)},dt=it("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${M(r.color)}`],t[`fontSize${M(r.fontSize)}`]]}})(at(({theme:e})=>{var t,r,n,o,s,a,i,c,u,f,m,b,x,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:(b=(m=(e.vars??e).palette)==null?void 0:m.action)==null?void 0:b.active}},{props:{color:"disabled"},style:{color:(g=(x=(e.vars??e).palette)==null?void 0:x.action)==null?void 0:g.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),B=te(function(t,r){const n=lt({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:b="0 0 24 24",...x}=n,g=fe(o)&&o.type==="svg",l={...n,color:a,component:i,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:b,hasSvgAsChild:g},d={};f||(d.viewBox=b);const y=ut(l);return $.jsxs(dt,{as:i,className:Me(y.root,s),focusable:"false",color:u,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:r,...d,...x,...g&&o.props,ownerState:l,children:[g?o.props.children:o,m?$.jsx("title",{children:m}):null]})});B.muiName="SvgIcon";function gt(e,t){function r(n,o){return $.jsx(B,{"data-testid":`${t}Icon`,ref:o,...n,children:e})}return r.muiName=B.muiName,me(te(r))}export{Le as C,ht as D,B as S,q as _,Ee as a,Me as b,gt as c,Ie as d,Be as e,Ke as f,se as g,ot as h,V as i,$ as j,ct as k,yt as l,at as m,R as n,st as r,it as s,lt as u};