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