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
7.8 KiB
1 lines
7.8 KiB
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[512],{44089:function(e,t,l){var n=l(85893),r=l(14440),u=l(54965),a=l(37969),c=l(38189),s=l(66173),o=l(56903),i=l(59278);let h=e=>{let{entry:t}=e;return(0,n.jsx)(i.$_,{whiteSpace:"nowrap",children:String(t)})},d=e=>{let{entry:t,key:l}=e;return c.JW.test(l)?(0,n.jsx)(i.PJ,{monospaced:!0,children:String(t)}):h(e)},f=e=>{let{entry:t,hasPassword:l}=e;return["",null,void 0].some(e=>t===e)||Number.isNaN(t)?(0,n.jsx)(i.Ac,{children:"none"}):l?d(e):h(e)},g=e=>{let{depth:t,entry:l,getLabel:u,hasPassword:a,key:c,nest:h,renderValue:d}=e;return(0,n.jsxs)(o.Z,{fullWidth:!0,growFirst:!0,row:!0,maxWidth:"100%",children:[(0,n.jsx)(i.Ac,{children:u({cap:s.Z,depth:t,entry:l,hasPassword:a,key:c})}),(0,n.jsx)(r.Z,{sx:{maxWidth:"100%",overflowX:"scroll"},children:!h&&d(f,{depth:t,entry:l,hasPassword:a,key:c})})]})},v=e=>{let{key:t}=e;return!/confirm|uuid/i.test(t)},m=e=>{let{depth:t=0,entries:l,getEntryLabel:r,getListProps:c,getListItemProps:s,hasPassword:o,listKey:i,maxDepth:h,renderEntry:d,renderEntryValue:f,skip:g}=e,p=[];Object.entries(l).forEach(e=>{let[l,a]=e,c=null!==a&&"object"==typeof a,i=c?null:a,b={depth:t,entry:i,hasPassword:o,key:l};g(v,b)&&p.push((0,n.jsx)(u.ZP,{sx:{paddingLeft:"".concat(t,"em")},...null==s?void 0:s.call(null,b),children:d({depth:t,entry:i,getLabel:r,hasPassword:o,key:l,nest:c,renderValue:f})},"form-summary-entry-".concat(l))),c&&t<h&&p.push(m({depth:t+1,entries:a,getEntryLabel:r,hasPassword:o,listKey:l,maxDepth:h,renderEntry:d,renderEntryValue:f,skip:g}))});let b="form-summary-list-".concat(null!=i?i:"root");return(0,n.jsx)(a.Z,{dense:!0,disablePadding:!0,...null==c?void 0:c.call(null,{depth:t,entries:l,key:i}),children:p},b)};t.Z=e=>{let{entries:t,getEntryLabel:l=e=>{let{cap:t,key:l}=e;return t(l)},getListProps:n,getListItemProps:r,hasPassword:u=!1,maxDepth:a=3,renderEntry:c=g,renderEntryValue:s=function(e){for(var t=arguments.length,l=Array(t>1?t-1:0),n=1;n<t;n++)l[n-1]=arguments[n];return e(...l)},skip:o=function(e){for(var t=arguments.length,l=Array(t>1?t-1:0),n=1;n<t;n++)l[n-1]=arguments[n];return e(...l)}}=e;return m({entries:t,getEntryLabel:l,getListProps:n,getListItemProps:r,hasPassword:u,maxDepth:a,renderEntry:c,renderEntryValue:s,skip:o})}},81208:function(e,t,l){var n=l(85893),r=l(67294),u=l(99576);let a={count:0,defaultMessageType:"info",messages:void 0,onSet:void 0,usePlaceholder:!0},c=(0,r.forwardRef)((e,t)=>{let{count:l=a.count,defaultMessageType:c=a.defaultMessageType,messages:s,onSet:o,usePlaceholder:i=a.usePlaceholder}=e,[h,d]=(0,r.useState)({}),f=(0,r.useMemo)(()=>({...s,...h}),[s,h]),g=(0,r.useCallback)(e=>void 0!==f[e],[f]),v=(0,r.useCallback)((e,t)=>{let l=0;d(n=>{let{[e]:r,...u}=n;return t&&(u[e]=t),l=Object.keys(u).length,u}),null==o||o.call(null,l)},[o]),m=(0,r.useCallback)((e,t)=>{let l=0,n=t?(e,n)=>{e[n]=t,l+=1}:void 0;d(t=>{let r={};return Object.keys(t).forEach(u=>{e.test(u)?null==n||n.call(null,r,u):(r[u]=t[u],l+=1)}),r}),null==o||o.call(null,l)},[o]),p=(0,r.useMemo)(()=>{let e=Object.entries(f),t=l>0,r=t?l:e.length,a=[];if(e.every(e=>{let[t,l]=e,{children:s,type:o=c}=l;return a.push((0,n.jsx)(u.Z,{type:o,children:s},"message-".concat(t))),a.length<r}),i&&t&&0===a.length){let e=l-a.length;for(let t=0;t<e;t+=1)a.push((0,n.jsx)(u.Z,{sx:{visibility:"hidden"},text:"Placeholder"},"message-placeholder-".concat(t)))}return a},[l,c,i,f]);return(0,r.useImperativeHandle)(t,()=>({exists:g,setMessage:v,setMessageRe:m}),[g,v,m]),(0,n.jsx)(n.Fragment,{children:p})});c.defaultProps=a,c.displayName="MessageGroup",t.Z=c},12387:function(e,t,l){var n=l(67294),r=l(37842),u=l(14879);let a=(0,n.forwardRef)((e,t)=>{let{input:l,onChange:a=function(e){let{handlers:{base:t,origin:l}}=e;for(var n=arguments.length,r=Array(n>1?n-1:0),u=1;u<n;u++)r[u-1]=arguments[u];null==t||t.call(null,...r),null==l||l.call(null,...r)},onMount:c,onUnmount:s}=e,{props:o}=l,{valueKey:i,valueType:h}=(0,n.useMemo)(()=>{let{type:e}=o,t="value",l="string";return e===r.Z.checkbox&&(t="checked",l="boolean"),{valueKey:t,valueType:l}},[o]),{onChange:d,[i]:f,...g}=o,[v,m]=(0,n.useState)(f),p=(0,n.useCallback)(e=>{let{target:{[i]:t}}=e;m(u.Z[h](t))},[i,h]),b=(0,n.useCallback)(function(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l];return null==a?void 0:a.call(null,{handlers:{base:p,origin:d}},...t)},[p,d,a]);return(0,n.useEffect)(()=>(null==c||c.call(null),s),[]),(0,n.useImperativeHandle)(t,()=>({get:()=>v,set:m}),[v]),(0,n.cloneElement)(l,{...g,onChange:b,[i]:v})});a.displayName="UncontrolledInput",t.Z=a},68805:function(e,t,l){var n=l(67294),r=l(98484),u=l(97607);t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{config:t,onError:l,onData:a,url:c=""}=e,[s,o]=(0,n.useState)(!1);return{fetch:(0,n.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,s="".concat(c).concat(e);s&&(o(!0),r.Z.get(s,{...t,...n}).then(e=>{let{data:t}=e;null==a||a.call(null,t)}).catch(e=>{let t=(0,u.Z)(e);null==l||l.call(null,t)}).finally(()=>{o(!1)}))},[c,t,a,l]),loading:s}}},85291:function(e,t,l){var n=l(85893),r=l(67294),u=l(8534),a=l(44089);t.Z=e=>{let{list:t={}}=e,[l,c]=(0,r.useState)({}),s=(0,r.useMemo)(()=>Object.keys(t),[t]),o=(0,r.useMemo)(()=>Object.keys(l),[l]),i=(0,r.useMemo)(()=>o.length===s.length,[o.length,s.length]),h=(0,r.useMemo)(()=>o.length>0,[o.length]),d=(0,r.useMemo)(()=>s.length>1,[s.length]),f=(0,r.useCallback)(e=>{let{confirmDialogProps:t={},formSummaryProps:r={},getConfirmDialogTitle:u,onProceedAppend:c,renderEntry:s}=e;return{actionProceedText:"Delete",content:(0,n.jsx)(a.Z,{entries:l,maxDepth:0,renderEntry:s,...r}),onProceedAppend:c,proceedColour:"red",titleText:u(o.length),...t}},[l,o.length]),g=(0,r.useCallback)(e=>!!l[e],[l]);return{buildDeleteDialogProps:f,checklist:l,checks:o,getCheck:g,hasAllChecks:i,hasChecks:h,multipleItems:d,resetChecks:(0,r.useCallback)(()=>c({}),[]),setAllChecks:(0,r.useCallback)(e=>c(s.reduce((t,l)=>(e&&(t[l]=e),t),{})),[s]),setCheck:(0,r.useCallback)((e,t)=>c((0,u.ZP)(e,t||void 0)),[])}}},77510:function(e,t,l){var n=l(67294),r=l(8100),u=l(92230),a=l(54120);t.Z=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{baseUrl:l=u.Z,fetcher:c=a.Z,mod:s,...o}=t,{data:i,error:h,mutate:d}=(0,r.ZP)("".concat(l).concat(e),c,o),f=(0,n.useMemo)(()=>s&&i&&s(i),[i,s]),g=!h&&!i;return{altData:f,data:i,error:h,mutate:d,loading:g}}},8534:function(e,t,l){l.d(t,{Um:function(){return r}});let n=function(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l];let[,n,r,u]=t;void 0!==u&&(n[r]=u)},r=function(e,t){let{set:l=n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n=>{let r={};return Object.keys(n).forEach(u=>{e.test(u)?l(n,r,u,t):r[u]=n[u]}),r}};t.ZP=function(e,t){let{guard:l=()=>!0,set:r=n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n=>{let{[e]:u,...a}=n,c={...a};return l(n,e,t)&&r(n,c,e,t),c}}},14879:function(e,t){t.Z={boolean:e=>!!e,number:e=>parseInt(String(e),10)||0,string:e=>String(e)}},66173:function(e,t,l){var n=l(48403),r=l.n(n);t.Z=e=>{let t=e.replace(/([a-z\d])([A-Z])/g,"$1 $2");return r()(t)}},87196:function(e,t,l){var n=l(66173);let r=function(e){let{build:t=(e,t)=>{let l=t;if("string"==typeof l){let[e,...t]=l.split(/\s+/);l=[(0,n.Z)(e.replace(/^[^\s]+\.([^.]+)/,"$1")),...t].join(" ")}return{children:l,type:"warning"}},chain:l="",skip:u}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.entries(e).reduce((e,n)=>{let[a,c]=n,s=[l,a].filter(e=>!!e).join(".");return null!==c&&"object"==typeof c?{...e,...r(c,{build:t,chain:s,skip:u})}:((null==u?void 0:u.call(null,s))||(e[s]=t(s,c)),e)},{})};t.Z=r},74077:function(e,t,l){l.d(t,{T:function(){return a},u:function(){return u}});var n=l(16310),r=l(38189);let u=()=>n.Z_().matches(r.Qt,{message:"${path} must be a valid UUID"}),a=()=>n.Z_().matches(r.tf,{message:"${path} must be a valid IPv4 address"})}}]); |