UNPKG

p3x-redis-ui-material

Version:

💿 P3X Redis UI triple frontend — Angular + React/MUI + Vue/Vuetify with 54 languages, 7 themes, Socket.IO, desktop notifications, and full feature parity

2 lines (1 loc) • 1.17 kB
import{a as r,b as c,d as l}from"./chunk-O7S4L63H.js";var C="p3xr-dialog-panel",S="p3xr-dialog-backdrop",_="p3xr-dialog-no-animation",b="p3xr-dialog-backdrop-no-animation";function u(n){return n?(Array.isArray(n)?n:[n]).filter(t=>typeof t=="string"&&t.length>0):[]}function L(n){try{return localStorage.getItem(n)}catch(a){return null}}function D(){if(typeof document>"u")return!0;let n=document.body;return n?.classList.contains("p3xr-no-animation")?!1:n?.classList.contains("p3xr-animation")?!0:L("p3xr-animation-settings")==="1"}function h(n={}){let s=n,{panelClass:a,backdropClass:t,autoFocus:d,disableClose:A,maxWidth:m,maxHeight:p,enterAnimationDuration:f,exitAnimationDuration:g}=s,x=l(s,["panelClass","backdropClass","autoFocus","disableClose","maxWidth","maxHeight","enterAnimationDuration","exitAnimationDuration"]),o=D(),i=[C,...u(a)],e=[S,...u(t)];return o||(i.push(_),e.push(b)),c(r({autoFocus:d??!0,disableClose:A??!1,maxWidth:m??"100vw",maxHeight:p??"calc(100vh - 64px)",enterAnimationDuration:f??(o?void 0:"0ms"),exitAnimationDuration:g??(o?void 0:"0ms")},x),{panelClass:Array.from(new Set(i)),backdropClass:Array.from(new Set(e))})}export{h as a};