iobroker.backitup
Version:
ioBroker.backitup allows you to backup and restore your ioBroker installation and other systems, such as databases, Zigbee, scripts and many more.
3 lines (2 loc) • 16.8 kB
JavaScript
import{j as De,b as N,i as C,n as $,p as qe,g as se,h as Re,d as Xe,e as Ke,_ as Ze}from"./ConfigCustomBackItUpSet__loadShare__react__loadShare__.js-PbBEGjBn.js";import{i as Je,d as Ie,g as Te,u as ke,c as he,b as Be,e as D,m as q,r as Qe}from"./DefaultPropsProvider-D4LpCYY5.js";import{j as b}from"./jsx-runtime-Dwm7ePYH.js";import{W as Ye,X as et,T as tt,V as nt,d as U,n as ot,i as rt}from"./defaultTheme-007y2GZo.js";import{u as it}from"./useTheme-VSAXF632.js";import{e as at}from"./ConfigCustomBackItUpSet__loadShare___mf_0_emotion_mf_1_react__loadShare__.js-DG2MT8MH.js";function st(e){return e==null||Object.keys(e).length===0}function lt(e){const{styles:t,defaultTheme:n={}}=e,o=typeof t=="function"?i=>t(st(i)?n:i):t;return b.jsx(at,{styles:o})}function ae(e){const t=Je(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function dt({styles:e,themeId:t,defaultTheme:n={}}){const o=it(n),i=t&&o[t]||o;let r=typeof e=="function"?e(i):e;return i.modularCssLayers&&(Array.isArray(r)?r=r.map(a=>ae(typeof a=="function"?a(i):a)):r=ae(r)),b.jsx(lt,{styles:r})}const ut=e=>{var o;const t={systemProps:{},otherProps:{}},n=((o=e==null?void 0:e.theme)==null?void 0:o.unstable_sxConfig)??et;return Object.keys(e).forEach(i=>{n[i]?t.systemProps[i]=e[i]:t.otherProps[i]=e[i]}),t};function ct(e){const{sx:t,...n}=e,{systemProps:o,otherProps:i}=ut(n);let r;return Array.isArray(t)?r=[o,...t]:typeof t=="function"?r=(...a)=>{const d=t(...a);return Ye(d)?{...o,...d}:o}:r={...o,...t},{...i,sx:r}}const G=typeof window<"u"?De:N;function pt(e,t=166){let n;function o(...i){const r=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(r,t)}return o.clear=()=>{clearTimeout(n)},o}function ft(e){return e&&e.ownerDocument||document}function ye(e){return ft(e).defaultView||window}function mt(e){const t=C(e);return G(()=>{t.current=e}),C((...n)=>(0,t.current)(...n)).current}function ze(...e){const t=C(void 0),n=$(o=>{const i=e.map(r=>{if(r==null)return null;if(typeof r=="function"){const a=r,d=a(o);return typeof d=="function"?d:()=>{a(null)}}return r.current=o,()=>{r.current=null}});return()=>{i.forEach(r=>r==null?void 0:r())}},e);return qe(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}function j(e){return parseInt(e,10)||0}const bt={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function gt(e){for(const t in e)return!1;return!0}function ve(e){return gt(e)||e.outerHeightStyle===0&&!e.overflowing}const ht=se(function(t,n){const{onChange:o,maxRows:i,minRows:r=1,style:a,value:d,...z}=t,{current:g}=C(d!=null),p=C(null),w=ze(n,p),m=C(null),x=C(null),h=$(()=>{const s=p.current,l=x.current;if(!s||!l)return;const f=ye(s).getComputedStyle(s);if(f.width==="0px")return{outerHeightStyle:0,overflowing:!1};l.style.width=f.width,l.value=s.value||t.placeholder||"x",l.value.slice(-1)===`
`&&(l.value+=" ");const X=f.boxSizing,W=j(f.paddingBottom)+j(f.paddingTop),K=j(f.borderBottomWidth)+j(f.borderTopWidth),B=l.scrollHeight;l.value="x";const _=l.scrollHeight;let y=B;r&&(y=Math.max(Number(r)*_,y)),i&&(y=Math.min(Number(i)*_,y)),y=Math.max(y,_);const M=y+(X==="border-box"?W+K:0),Z=Math.abs(y-B)<=1;return{outerHeightStyle:M,overflowing:Z}},[i,r,t.placeholder]),T=mt(()=>{const s=p.current,l=h();if(!s||!l||ve(l))return!1;const S=l.outerHeightStyle;return m.current!=null&&m.current!==S}),R=$(()=>{const s=p.current,l=h();if(!s||!l||ve(l))return;const S=l.outerHeightStyle;m.current!==S&&(m.current=S,s.style.height=`${S}px`),s.style.overflow=l.overflowing?"hidden":""},[h]),k=C(-1);G(()=>{const s=pt(R),l=p==null?void 0:p.current;if(!l)return;const S=ye(l);S.addEventListener("resize",s);let f;return typeof ResizeObserver<"u"&&(f=new ResizeObserver(()=>{T()&&(f.unobserve(l),cancelAnimationFrame(k.current),R(),k.current=requestAnimationFrame(()=>{f.observe(l)}))}),f.observe(l)),()=>{s.clear(),cancelAnimationFrame(k.current),S.removeEventListener("resize",s),f&&f.disconnect()}},[h,R,T]),G(()=>{R()});const P=s=>{g||R(),o&&o(s)};return b.jsxs(Re,{children:[b.jsx("textarea",{value:d,onChange:P,ref:w,rows:r,style:a,...z}),b.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:x,tabIndex:-1,style:{...bt.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function xe(e){return typeof e=="string"}function yt({props:e,states:t,muiFormControl:n}){return t.reduce((o,i)=>(o[i]=e[i],n&&typeof e[i]>"u"&&(o[i]=n[i]),o),{})}const Fe=Xe(void 0);function vt(){return Ke(Fe)}function xt(e){return b.jsx(dt,{...e,defaultTheme:nt,themeId:tt})}function St(e){return function(n){return b.jsx(xt,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function jt(){return ct}function Se(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Ct(e,t=!1){return e&&(Se(e.value)&&e.value!==""||t&&Se(e.defaultValue)&&e.defaultValue!=="")}function Nt(e){return e.startAdornment}function wt(e){return Te("MuiInputBase",e)}const V=Ie("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Ce;const _e=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${U(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Ae=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Rt=e=>{const{classes:t,color:n,disabled:o,error:i,endAdornment:r,focused:a,formControl:d,fullWidth:z,hiddenLabel:g,multiline:p,readOnly:w,size:m,startAdornment:x,type:h}=e,T={root:["root",`color${U(n)}`,o&&"disabled",i&&"error",z&&"fullWidth",a&&"focused",d&&"formControl",m&&m!=="medium"&&`size${U(m)}`,p&&"multiline",x&&"adornedStart",r&&"adornedEnd",g&&"hiddenLabel",w&&"readOnly"],input:["input",o&&"disabled",h==="search"&&"inputTypeSearch",p&&"inputMultiline",m==="small"&&"inputSizeSmall",g&&"inputHiddenLabel",x&&"inputAdornedStart",r&&"inputAdornedEnd",w&&"readOnly"]};return Be(T,wt,t)},Pe=D("div",{name:"MuiInputBase",slot:"Root",overridesResolver:_e})(q(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${V.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Le=D("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ae})(q(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${V.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${V.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:r})=>!r.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:r})=>r.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),we=St({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),It=se(function(t,n){const o=ke({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:r,autoFocus:a,className:d,color:z,components:g={},componentsProps:p={},defaultValue:w,disabled:m,disableInjectingGlobalStyles:x,endAdornment:h,error:T,fullWidth:R=!1,id:k,inputComponent:P="input",inputProps:s={},inputRef:l,margin:S,maxRows:f,minRows:X,multiline:W=!1,name:K,onBlur:B,onChange:_,onClick:y,onFocus:M,onKeyDown:Z,onKeyUp:Ee,placeholder:$e,readOnly:J,renderSuffix:le,rows:H,size:Lt,slotProps:de={},slots:ue={},startAdornment:L,type:ce="text",value:We,...Me}=o,O=s.value!=null?s.value:We,{current:Q}=C(O!=null),A=C(),He=$(u=>{},[]),Oe=ze(A,l,s.ref,He),[Y,ee]=Ze(!1),c=vt(),v=yt({props:o,muiFormControl:c,states:["color","disabled","error","hiddenLabel","size","required","filled"]});v.focused=c?c.focused:Y,N(()=>{!c&&m&&Y&&(ee(!1),B&&B())},[c,m,Y,B]);const te=c&&c.onFilled,ne=c&&c.onEmpty,E=$(u=>{Ct(u)?te&&te():ne&&ne()},[te,ne]);G(()=>{Q&&E({value:O})},[O,E,Q]);const je=u=>{M&&M(u),s.onFocus&&s.onFocus(u),c&&c.onFocus?c.onFocus(u):ee(!0)},Ne=u=>{B&&B(u),s.onBlur&&s.onBlur(u),c&&c.onBlur?c.onBlur(u):ee(!1)},Ue=(u,...be)=>{if(!Q){const ge=u.target||A.current;if(ge==null)throw new Error(ot(1));E({value:ge.value})}s.onChange&&s.onChange(u,...be),_&&_(u,...be)};N(()=>{E(A.current)},[]);const Ge=u=>{A.current&&u.currentTarget===u.target&&A.current.focus(),y&&y(u)};let oe=P,I=s;W&&oe==="input"&&(H?I={type:void 0,minRows:H,maxRows:H,...I}:I={type:void 0,maxRows:f,minRows:X,...I},oe=ht);const Ve=u=>{E(u.animationName==="mui-auto-fill-cancel"?A.current:{value:"x"})};N(()=>{c&&c.setAdornedStart(!!L)},[c,L]);const re={...o,color:v.color||"primary",disabled:v.disabled,endAdornment:h,error:v.error,focused:v.focused,formControl:c,fullWidth:R,hiddenLabel:v.hiddenLabel,multiline:W,size:v.size,startAdornment:L,type:ce},pe=Rt(re),fe=ue.root||g.Root||Pe,ie=de.root||p.root||{},me=ue.input||g.Input||Le;return I={...I,...de.input??p.input},b.jsxs(Re,{children:[!x&&typeof we=="function"&&(Ce||(Ce=b.jsx(we,{}))),b.jsxs(fe,{...ie,ref:n,onClick:Ge,...Me,...!xe(fe)&&{ownerState:{...re,...ie.ownerState}},className:he(pe.root,ie.className,d,J&&"MuiInputBase-readOnly"),children:[L,b.jsx(Fe.Provider,{value:null,children:b.jsx(me,{"aria-invalid":v.error,"aria-describedby":i,autoComplete:r,autoFocus:a,defaultValue:w,disabled:v.disabled,id:k,onAnimationStart:Ve,name:K,placeholder:$e,readOnly:J,required:v.required,rows:H,value:O,onKeyDown:Z,onKeyUp:Ee,type:ce,...I,...!xe(me)&&{as:oe,ownerState:{...re,...I.ownerState}},ref:Oe,className:he(pe.input,I.className,J&&"MuiInputBase-readOnly"),onBlur:Ne,onChange:Ue,onFocus:je})}),h,le?le({...v,startAdornment:L}):null]})]})});function Tt(e){return typeof e.main=="string"}function kt(e,t=[]){if(!Tt(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Bt(e=[]){return([,t])=>t&&kt(t,e)}function zt(e){return Te("MuiFilledInput",e)}const F={...V,...Ie("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},Ft=e=>{const{classes:t,disableUnderline:n,startAdornment:o,endAdornment:i,size:r,hiddenLabel:a,multiline:d}=e,z={root:["root",!n&&"underline",o&&"adornedStart",i&&"adornedEnd",r==="small"&&`size${U(r)}`,a&&"hiddenLabel",d&&"multiline"],input:["input"]},g=Be(z,zt,t);return{...t,...g}},_t=D(Pe,{shouldForwardProp:e=>Qe(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[..._e(e,t),!n.disableUnderline&&t.underline]}})(q(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",r=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${F.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${F.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:r},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${F.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${F.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${F.disabled}, .${F.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${F.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Bt()).map(([a])=>{var d;return{props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(d=(e.vars||e).palette[a])==null?void 0:d.main}`}}}}),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:d})=>a.multiline&&d==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),At=D(Le,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ae})(q(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Pt=se(function(t,n){const o=ke({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:r={},componentsProps:a,fullWidth:d=!1,hiddenLabel:z,inputComponent:g="input",multiline:p=!1,slotProps:w,slots:m={},type:x="text",...h}=o,T={...o,disableUnderline:i,fullWidth:d,inputComponent:g,multiline:p,type:x},R=Ft(o),k={root:{ownerState:T},input:{ownerState:T}},P=w??a?rt(k,w??a):k,s=m.root??r.Root??_t,l=m.input??r.Input??At;return b.jsx(It,{slots:{root:s,input:l},slotProps:P,fullWidth:d,inputComponent:g,multiline:p,ref:n,type:x,...h,classes:R})});Pt.muiName="Input";export{Pt as F,dt as G,It as I,ht as T,lt as a,ze as b,Bt as c,mt as d,ct as e,F as f,vt as g,St as h,V as i,pt as j,ye as k,yt as l,xe as m,xt as n,ft as o,zt as p,wt as q,jt as r,Nt as s,Ct as t,G as u,Fe as v,Pe as w,_e as x,Le as y,Ae as z};