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 lines
9.3 KiB
1 lines
9.3 KiB
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[560],{2545:function(e,t,r){var n=r(5893),o=r(7294),l=r(157);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){u(e,t,r[t])}))}return e}function a(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,l=[],i=!0,u=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(l.push(n.value),!t||l.length!==t);i=!0);}catch(c){u=!0,o=c}finally{try{i||null==r.return||r.return()}finally{if(u)throw o}}return l}}(e,t)||y(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||y(e)||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.")}()}function y(e,t){if(e){if("string"===typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}var p=(0,o.forwardRef)((function(e,t){var r=e.children,i=e.contentContainerProps,u=e.dialogProps,y=e.onSubmitAppend,p=e.proceedButtonProps,d=e.scrollBoxProps,b=e.scrollContent,h=a(e,["children","contentContainerProps","dialogProps","onSubmitAppend","proceedButtonProps","scrollBoxProps","scrollContent"]),m=(0,o.useMemo)((function(){return c({},i,{component:"form",onSubmit:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,o=s(t,1),l=o[0];l.preventDefault(),null===y||void 0===y||(n=y).call.apply(n,[null].concat(f(t)))}})}),[i,y]),g=(0,o.useMemo)((function(){return c({},d,{sx:b?c({overflowX:"hidden",paddingTop:".6em"},null===d||void 0===d?void 0:d.sx):null===d||void 0===d?void 0:d.sx})}),[d,b]);return(0,n.jsx)(l.Z,c({dialogProps:u,contentContainerProps:m,proceedButtonProps:c({},p,{type:"submit"}),scrollContent:b,scrollBoxProps:g,wide:!0},h,{ref:t,children:r}))}));p.displayName="FormDialog",t.Z=p},8610:function(e,t,r){var n=r(5893),o=r(8216),l=r(7212),i=r(8462),u=r(7357),c=r(4690),a=r(7750);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){f(e,t,r[t])}))}return e}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,l=[],i=!0,u=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(l.push(n.value),!t||l.length!==t);i=!0);}catch(c){u=!0,o=c}finally{try{i||null==r.return||r.return()}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.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(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var d=function(e){var t=e.replace(/([a-z\d])([A-Z])/g,"$1 $2").toLowerCase();return(0,o.Z)(t)},b=function(e){var t=e.entry;return(0,n.jsx)(a.$_,{whiteSpace:"nowrap",children:String(t)})},h=function(e){var t=e.depth,r=void 0===t?0:t,o=e.entries,u=e.getEntryLabel,c=e.getListProps,a=e.getListItemProps,s=e.listKey,f=e.maxDepth,d=e.renderEntry,b=e.renderEntryValue,m=[];Object.entries(o).forEach((function(e){var t=p(e,2),o=t[0],i=t[1],c="form-summary-entry-".concat(o),s=null!==i&&"object"===typeof i,g=s?null:i;m.push((0,n.jsx)(l.ZP,y({sx:{paddingLeft:"".concat(r,"em")}},null===a||void 0===a?void 0:a.call(null,{depth:r,entry:g,key:o}),{children:d({depth:r,entry:g,getLabel:u,key:o,nest:s,renderValue:b})}),c)),s&&r<f&&m.push(h({depth:r+1,entries:i,getEntryLabel:u,listKey:o,maxDepth:f,renderEntry:d,renderEntryValue:b}))}));var g="form-summary-list-".concat(null!==s&&void 0!==s?s:"root");return(0,n.jsx)(i.Z,y({dense:!0,disablePadding:!0},null===c||void 0===c?void 0:c.call(null,{depth:r,entries:o,key:s}),{children:m}),g)};t.Z=function(e){var t=e.entries,r=e.getEntryLabel,o=void 0===r?function(e){return(0,e.cap)(e.key)}:r,l=e.getListProps,i=e.getListItemProps,s=e.hasPassword,f=e.maxDepth,y=void 0===f?3:f,p=e.renderEntry,m=void 0===p?function(e){var t=e.depth,r=e.entry,o=e.getLabel,l=e.key,i=e.nest,s=e.renderValue;return(0,n.jsxs)(c.Z,{fullWidth:!0,growFirst:!0,row:!0,maxWidth:"100%",children:[(0,n.jsx)(a.Ac,{children:o({cap:d,depth:t,entry:r,key:l})}),(0,n.jsx)(u.Z,{sx:{maxWidth:"100%",overflowX:"scroll"},children:!i&&s({depth:t,entry:r,key:l})})]})}:p,g=e.renderEntryValue;return h({entries:t,getEntryLabel:o,getListProps:l,getListItemProps:i,maxDepth:y,renderEntry:m,renderEntryValue:void 0===g?function(e){var t=e.entry;return["",null,void 0].some((function(e){return t===e}))?(0,n.jsx)(a.Ac,{children:"none"}):s?function(e){var t=e.entry,r=e.key;return/passw/i.test(r)?(0,n.jsx)(a.PJ,{revealButtonProps:{sx:{marginRight:0,padding:0}},monospaced:!0,textLineHeight:null,children:String(t)}):b(e)}(e):b(e)}:g})}},3906:function(e,t,r){var n=r(5893),o=r(7294),l=r(6607),i=r(8610);function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){u(e,t,r[t])}))}return e}t.Z=function(e){var t=e.list,r=void 0===t?{}:t,u=(0,o.useState)({}),a=u[0],s=u[1],f=(0,o.useMemo)((function(){return Object.keys(r)}),[r]),y=(0,o.useMemo)((function(){return Object.keys(a)}),[a]),p=(0,o.useMemo)((function(){return y.length===f.length}),[y.length,f.length]),d=(0,o.useMemo)((function(){return y.length>0}),[y.length]),b=(0,o.useMemo)((function(){return f.length>1}),[f.length]),h=(0,o.useCallback)((function(e){var t=e.confirmDialogProps,r=void 0===t?{}:t,o=e.formSummaryProps,l=void 0===o?{}:o,u=e.getConfirmDialogTitle,s=e.onProceedAppend,f=e.renderEntry;return c({actionProceedText:"Delete",content:(0,n.jsx)(i.Z,c({entries:a,maxDepth:0,renderEntry:f},l)),onProceedAppend:s,proceedColour:"red",titleText:u(y.length)},r)}),[a,y.length]),m=(0,o.useCallback)((function(e){return a[e]}),[a]),g=(0,o.useCallback)((function(e){return s(f.reduce((function(t,r){return e&&(t[r]=e),t}),{}))}),[f]),v=(0,o.useCallback)((function(e,t){return s((0,l.ZP)(e,t||void 0))}),[]);return{buildDeleteDialogProps:h,checklist:a,checks:y,getCheck:m,hasAllChecks:p,hasChecks:d,multipleItems:b,setAllChecks:g,setCheck:v}}},6632:function(e,t,r){var n=r(7294);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){o(e,t,r[t])}))}return e}function i(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.actionProceedText,r=void 0===t?"":t,o=e.content,u=void 0===o?"":o,c=e.titleText,a=void 0===c?"":c,s=i(e,["actionProceedText","content","titleText"]);return(0,n.useState)(l({actionProceedText:r,content:u,titleText:a},s))}}}]); |