File "DialogContent-1.0.13-5873ffb9.js"

Full Path: /home/vantageo/public_html/cache/cache/cache/cache/.wp-cli/wp-content/plugins/wp-data-access/assets/dist/DialogContent-1.0.13-5873ffb9.js
File size: 6.81 KB
MIME-type: text/x-java
Charset: utf-8

import{b9 as G,r as d,j as p}from"./main-1.0.13.js";import{g as b,e as y,s as g,z as u,_ as r,P as N,u as S,a as P,c as x,b as T}from"./iconBase-1.0.13-98e06aa9.js";import{ae as J,ab as Q}from"./main-1.0.13-4cbe632d.js";import{B as Z,a as oo,F as eo}from"./Menu-1.0.13-2a06ef00.js";var _={exports:{}},to="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ao=to,ro=ao;function j(){}function A(){}A.resetWarningCache=j;var so=function(){function o(a,s,i,n,l,c){if(c!==ro){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}o.isRequired=o;function e(){return o}var t={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:e,element:o,elementType:o,instanceOf:e,node:o,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:A,resetWarningCache:j};return t.PropTypes=t,t};_.exports=so();var io=_.exports;const jo=G(io);function no(o){return y("MuiDialog",o)}const lo=b("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),k=lo,co=d.createContext({}),po=co,uo=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],go=g(Z,{name:"MuiDialog",slot:"Backdrop",overrides:(o,e)=>e.backdrop})({zIndex:-1}),mo=o=>{const{classes:e,scroll:t,maxWidth:a,fullWidth:s,fullScreen:i}=o,n={root:["root"],container:["container",`scroll${u(t)}`],paper:["paper",`paperScroll${u(t)}`,`paperWidth${u(String(a))}`,s&&"paperFullWidth",i&&"paperFullScreen"]};return T(n,no,e)},xo=g(oo,{name:"MuiDialog",slot:"Root",overridesResolver:(o,e)=>e.root})({"@media print":{position:"absolute !important"}}),fo=g("div",{name:"MuiDialog",slot:"Container",overridesResolver:(o,e)=>{const{ownerState:t}=o;return[e.container,e[`scroll${u(t.scroll)}`]]}})(({ownerState:o})=>r({height:"100%","@media print":{height:"auto"},outline:0},o.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},o.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),ho=g(N,{name:"MuiDialog",slot:"Paper",overridesResolver:(o,e)=>{const{ownerState:t}=o;return[e.paper,e[`scrollPaper${u(t.scroll)}`],e[`paperWidth${u(String(t.maxWidth))}`],t.fullWidth&&e.paperFullWidth,t.fullScreen&&e.paperFullScreen]}})(({theme:o,ownerState:e})=>r({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},e.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},e.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!e.maxWidth&&{maxWidth:"calc(100% - 64px)"},e.maxWidth==="xs"&&{maxWidth:o.breakpoints.unit==="px"?Math.max(o.breakpoints.values.xs,444):`max(${o.breakpoints.values.xs}${o.breakpoints.unit}, 444px)`,[`&.${k.paperScrollBody}`]:{[o.breakpoints.down(Math.max(o.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},e.maxWidth&&e.maxWidth!=="xs"&&{maxWidth:`${o.breakpoints.values[e.maxWidth]}${o.breakpoints.unit}`,[`&.${k.paperScrollBody}`]:{[o.breakpoints.down(o.breakpoints.values[e.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},e.fullWidth&&{width:"calc(100% - 64px)"},e.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${k.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),bo=d.forwardRef(function(e,t){const a=S({props:e,name:"MuiDialog"}),s=J(),i={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{"aria-describedby":n,"aria-labelledby":l,BackdropComponent:c,BackdropProps:f,children:F,className:E,disableEscapeKeyDown:R=!1,fullScreen:U=!1,fullWidth:O=!1,maxWidth:I="sm",onBackdropClick:$,onClose:v,open:w,PaperComponent:L=N,PaperProps:M={},scroll:Y="paper",TransitionComponent:z=eo,transitionDuration:B=i,TransitionProps:H}=a,K=P(a,uo),h=r({},a,{disableEscapeKeyDown:R,fullScreen:U,fullWidth:O,maxWidth:I,scroll:Y}),D=mo(h),C=d.useRef(),X=m=>{C.current=m.target===m.currentTarget},V=m=>{C.current&&(C.current=null,$&&$(m),v&&v(m,"backdropClick"))},W=Q(l),q=d.useMemo(()=>({titleId:W}),[W]);return p.jsx(xo,r({className:x(D.root,E),closeAfterTransition:!0,components:{Backdrop:go},componentsProps:{backdrop:r({transitionDuration:B,as:c},f)},disableEscapeKeyDown:R,onClose:v,open:w,ref:t,onClick:V,ownerState:h},K,{children:p.jsx(z,r({appear:!0,in:w,timeout:B,role:"presentation"},H,{children:p.jsx(fo,{className:x(D.container),onMouseDown:X,ownerState:h,children:p.jsx(ho,r({as:L,elevation:24,role:"dialog","aria-describedby":n,"aria-labelledby":W},M,{className:x(D.paper,M.className),ownerState:h,children:p.jsx(po.Provider,{value:q,children:F})}))})}))}))}),Ao=bo;function yo(o){return y("MuiDialogActions",o)}b("MuiDialogActions",["root","spacing"]);const vo=["className","disableSpacing"],Do=o=>{const{classes:e,disableSpacing:t}=o;return T({root:["root",!t&&"spacing"]},yo,e)},Co=g("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:t}=o;return[e.root,!t.disableSpacing&&e.spacing]}})(({ownerState:o})=>r({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!o.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),Wo=d.forwardRef(function(e,t){const a=S({props:e,name:"MuiDialogActions"}),{className:s,disableSpacing:i=!1}=a,n=P(a,vo),l=r({},a,{disableSpacing:i}),c=Do(l);return p.jsx(Co,r({className:x(c.root,s),ownerState:l,ref:t},n))}),Fo=Wo;function ko(o){return y("MuiDialogContent",o)}b("MuiDialogContent",["root","dividers"]);function Eo(o){return y("MuiDialogTitle",o)}const So=b("MuiDialogTitle",["root"]),Po=So,To=["className","dividers"],Ro=o=>{const{classes:e,dividers:t}=o;return T({root:["root",t&&"dividers"]},ko,e)},$o=g("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:t}=o;return[e.root,t.dividers&&e.dividers]}})(({theme:o,ownerState:e})=>r({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},e.dividers?{padding:"16px 24px",borderTop:`1px solid ${(o.vars||o).palette.divider}`,borderBottom:`1px solid ${(o.vars||o).palette.divider}`}:{[`.${Po.root} + &`]:{paddingTop:0}})),wo=d.forwardRef(function(e,t){const a=S({props:e,name:"MuiDialogContent"}),{className:s,dividers:i=!1}=a,n=P(a,To),l=r({},a,{dividers:i}),c=Ro(l);return p.jsx($o,r({className:x(c.root,s),ownerState:l,ref:t},n))}),Uo=wo;export{Ao as D,jo as P,Uo as a,Fo as b,po as c,k as d,Eo as g,io as p};