You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
8.9 KiB
1 line
8.9 KiB
1 year ago
|
"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;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},o=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})))),o.forEach((function(e){d(n,e,r[e])}))}return n}({},n,{children:n.children}),(0,l.Z)())}))}),[r]);return t?(0,o.jsx)(u.Z,{mt:0}):(0,o.jsx)(s,{row:!0,spacing:".5em",children:a})}},157:function(n,e,r){var o=r(5893),t=r(7357),i=r(7294),l=r(9308),c=r(4690),a=r(1514),u=r(7750);function d(n,e){(null==e||e>n.length)&&(e=n.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=n[r];return o}function s(n,e,r){return e in n?Object.defineProperty(n,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[e]=r,n}function f(n){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},o=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})))),o.forEach((function(e){s(n,e,r[e])}))}return n}function p(n){return function(n){if(Array.isArray(n))return d(n)}(n)||function(n){if("undefined"!==typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||function(n,e){if(!n)return;if("string"===typeof n)return d(n,e);var r=Object.prototype.toString.call(n).slice(8,-1);"Object"===r&&n.constructor&&(r=n.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(n,e)}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var v=(0,i.forwardRef)((function(n,e){var r=n.actionCancelText,d=void 0===r?"Cancel":r,s=n.actionProceedText,v=n.children,y=n.closeOnProceed,b=void 0!==y&&y,m=n.contentContainerProps,g=n.dialogProps,h=n.disableProceed,O=n.loading,P=n.loadingAction,w=void 0!==P&&P,j=n.onActionAppend,C=n.onCancelAppend,x=n.onProceedAppend,A=n.openInitially,k=n.preActionArea,S=n.proceedButtonProps,Z=n.proceedColour,I=void 0===Z?"blue":Z,E=n.scrollContent,M=void 0!==E&&E,D=n.scrollBoxProps,N=n.showClose,R=n.titleText,T=n.wide,_=n.content,H=void 0===_?v:_,V=(0,i.useRef)(null),z=(0,i.useMemo)((function(){return(0,a.Z)(H,u.Ac)}),[H]),B=(0,i.useMemo)((function(){return(0,i.createElement)(M?l.VZ:t.Z,D,z)}),[z,D,M]);return(0,i.useImperativeHandle)(e,(function(){return{setOpen:function(n){var e;return null===(e=V.current)||void 0===e?void 0:e.setOpen(n)}}}),[]),(0,o.jsx)(l.Js,{dialogProps:g,header:R,loading:O,openInitially:A,ref:V,showClose:N,wide:T,children:(0,o.jsxs)(c.Z,f({},m,{children:[B,k,(0,o.jsx)(l.ux,{cancelProps:{children:d,onClick:function(){for(var n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];var o,t;null===j||void 0===j||(o=j).call.apply(o,[null].concat(p(e))),null===C||void 0===C||(t=C).call.apply(t,[null].concat(p(e)))}},closeOnProceed:b,loading:w,proceedProps:f({background:I,children:s,disabled:h,onClick:function(){for(var n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];var o,t;null===j||void 0===j||(o=j).call.apply(o,[null].concat(p(e))),null===x||void 0===x||(t=x).call.apply(t,[null].concat(p(e)))}},S)})]}))})}));v.displayName="ConfirmDialog",e.Z=v},9308:function(n,e,r){r.d(e,{ux:function(){return O},VZ:function(){return S},Js:function(){return I}});var o=r(5893),t=r(8262),i=r(7294),l=r(3679),c=r(2152);function a(n,e,r){return e in n?Object.defineProperty(n,e,{value:r,enumerable:!0,c
|