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
9.1 KiB
1 line
9.1 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 s(n,e,r){return e in n?Object.defineProperty(n,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[e]=r,n}var d=(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){s(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)(d,{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 s(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 d(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){d(n,e,r[e])}))}return n}function p(n){return function(n){if(Array.isArray(n))return s(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 s(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 s(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,s=void 0===r?"Cancel":r,d=n.actionProceedText,v=n.children,y=n.closeOnProceed,b=void 0!==y&&y,h=n.contentContainerProps,m=n.dialogProps,g=n.disableProceed,O=n.loading,w=n.loadingAction,P=void 0!==w&&w,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,M=n.scrollContent,E=void 0!==M&&M,D=n.scrollBoxProps,N=n.showActionArea,R=void 0===N||N,T=n.showCancel,_=n.showClose,H=n.titleText,V=n.wide,z=n.content,B=void 0===z?v:z,J=(0,i.useRef)(null),U=(0,i.useMemo)((function(){return(0,a.Z)(B,u.Ac)}),[B]),W=(0,i.useMemo)((function(){return(0,i.createElement)(E?l.VZ:t.Z,D,U)}),[U,D,E]),$=(0,i.useMemo)((function(){return R&&(0,o.jsx)(l.ux,{cancelProps:{children:s,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:P,proceedProps:f({background:I,children:d,disabled:g,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),showCancel:T})}),[s,d,b,g,P,j,C,x,S,I,R,T]);return(0,i.useImperativeHandle)(e,(function(){return{setOpen:function(n){var e;return null===(e=J.current)||void 0===e?void 0:e.setOpen(n)}}}),[]),(0,o.jsx)(l.Js,{dialogProps:m,header:H,loading:O,openInitially:A,ref:J,showClose:_,wide:V,children:(0,o.jsxs)(c.Z,f({},h,{children:[W,k,$]}))})}));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
|