"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[157],{46:function(n,e,r){var o=r(5893),t=r(1496),i=r(7294),l=r(5934),c=r(4825),a=r(4690),u=r(2152);function d(n,e,r){return e in n?Object.defineProperty(n,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[e]=r,n}var s=(0,t.ZP)(a.Z)({justifyContent:"flex-end",width:"100%"});e.Z=function(n){var e=n.actions,r=void 0===e?[]:e,t=n.loading,a=(0,i.useMemo)((function(){return r.map((function(n){return(0,o.jsx)(c.Z,function(n){for(var e=1;en.length)&&(e=n.length);for(var r=0,o=new Array(e);r=0||(t[r]=n[r]);return t}(n,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}var s=(0,i.createContext)(void 0),f=(0,i.forwardRef)((function(n,e){var r=n.children,a=n.dialogProps,f=void 0===a?{}:a,p=n.loading,v=n.openInitially,y=void 0!==v&&v,b=n.wide,m=f.open,g=f.PaperProps,h=void 0===g?{}:g,O=d(f,["open","PaperProps"]),P=h.sx,w=d(h,["sx"]),j=(0,i.useState)(y),C=j[0],x=j[1],A=(0,i.useMemo)((function(){return null!==m&&void 0!==m?m:C}),[C,m]),k=(0,i.useMemo)((function(){return p?(0,o.jsx)(c.Z,{mt:0}):r}),[r,p]),S=(0,i.useMemo)((function(){return u({minWidth:b?{xs:"calc(100%)",md:"50em"}:null,overflow:"visible"},P)}),[P,b]);return(0,i.useImperativeHandle)(e,(function(){return{open:A,setOpen:x}}),[A]),(0,o.jsx)(t.Z,u({open:A,PaperComponent:l.s_,PaperProps:u({},w,{sx:S})},O,{children:(0,o.jsx)(s.Provider,{value:{open:A,setOpen:x},children:k})}))}));f.displayName="Dialog";var p=f,v=r(46);function y(n,e){(null==e||e>n.length)&&(e=n.length);for(var r=0,o=new Array(e);r1?l-1:0),a=1;a