@opengov/form-renderer 0.2.10-beta-date-picker.1 → 0.2.11-beta-date-picker.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/lib.js CHANGED
@@ -19122,25 +19122,37 @@ function K6({
19122
19122
  id: e,
19123
19123
  name: t,
19124
19124
  readonly: r,
19125
- wrapper: n
19125
+ disabled: n,
19126
+ wrapper: u
19126
19127
  }) {
19127
- const { field: u } = n1(), i = ND(e), a = OD(i.type);
19128
- if (!a || !a.renderField) return /* @__PURE__ */ Q.jsxs(vr, { children: [
19128
+ const { field: i } = n1(), a = ND(e), o = OD(a.type);
19129
+ if (!o || !o.renderField) return /* @__PURE__ */ Q.jsxs(vr, { children: [
19129
19130
  "Missing render for field type ",
19130
- i.type
19131
+ a.type
19131
19132
  ] });
19132
- const { renderField: o, ...l } = a, c = u == null ? void 0 : u(i, l), f = n || vr;
19133
- return /* @__PURE__ */ Q.jsx(f, { "data-testid": "field-container", field: i, sx: c, children: o(i, l, { readonly: r, name: t }) });
19133
+ const { renderField: l, ...c } = o, f = i == null ? void 0 : i(a, c), p = u || vr;
19134
+ return /* @__PURE__ */ Q.jsx(p, { "data-testid": "field-container", field: a, sx: f, children: l(a, c, { readonly: r, name: t, disabled: n }) });
19134
19135
  }
19135
19136
  function Yw({
19136
19137
  section: e,
19137
19138
  fields: t,
19138
19139
  fieldNames: r,
19139
19140
  readonly: n,
19140
- fieldWrapper: u
19141
+ disabled: u,
19142
+ fieldWrapper: i
19141
19143
  }) {
19142
- const { section: i } = n1(), a = i == null ? void 0 : i(e);
19143
- return /* @__PURE__ */ Q.jsx(vr, { "data-testid": "section-container", sx: a, children: t.map((o, l) => /* @__PURE__ */ Q.jsx(K6, { id: o, name: (r == null ? void 0 : r[l]) ?? o, readonly: n, wrapper: u }, o)) });
19144
+ const { section: a } = n1(), o = a == null ? void 0 : a(e);
19145
+ return /* @__PURE__ */ Q.jsx(vr, { "data-testid": "section-container", sx: o, children: t.map((l, c) => /* @__PURE__ */ Q.jsx(
19146
+ K6,
19147
+ {
19148
+ id: l,
19149
+ name: (r == null ? void 0 : r[c]) ?? l,
19150
+ readonly: n,
19151
+ disabled: u,
19152
+ wrapper: i
19153
+ },
19154
+ l
19155
+ )) });
19144
19156
  }
19145
19157
  export {
19146
19158
  Gw as AutosaveForm,
package/dist/lib.umd.cjs CHANGED
@@ -161,4 +161,4 @@ theme.transitions = createTransitions(theme.transitions || {});
161
161
  export default theme;`}function os(e={},...t){const{breakpoints:r,mixins:n={},spacing:u,palette:i={},transitions:a={},typography:s={},shape:l,...c}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":Pn(20));const f=ss(i),p=Hl(e);let o=kr(p,{mixins:e3(p.breakpoints,n),palette:f,shadows:a3.slice(),typography:r3(f,s),transitions:f3(a),zIndex:{...l3}});if(o=kr(o,c),o=t.reduce((d,m)=>kr(d,m),o),process.env.NODE_ENV!=="production"){const d=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],m=(h,b)=>{let g;for(g in h){const D=h[g];if(d.includes(g)&&Object.keys(D).length>0){if(process.env.NODE_ENV!=="production"){const y=Ua("",g);console.error([`MUI: The \`${b}\` component increases the CSS specificity of the \`${g}\` internal state.`,"You can not override it like this: ",JSON.stringify(h,null,2),"",`Instead, you need to use the '&.${y}' syntax:`,JSON.stringify({root:{[`&.${y}`]:D}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
162
162
  `))}h[g]={}}}};Object.keys(o.components).forEach(h=>{const b=o.components[h].styleOverrides;b&&h.startsWith("Mui")&&m(b,h)})}return o.unstable_sxConfig={...Yu,...c==null?void 0:c.unstable_sxConfig},o.unstable_sx=function(m){return sn({sx:m,theme:this})},o.toRuntimeSource=sd,o}function h3(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const p3=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=h3(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function od(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function cd(e){return e==="dark"?p3:[]}function m3(e){const{palette:t={mode:"light"},opacity:r,overlays:n,...u}=e,i=ss(t);return{palette:i,opacity:{...od(i.mode),...r},overlays:n||cd(i.mode),...u}}function g3(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const b3=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],v3=e=>(t,r)=>{const n=e.rootSelector||":root",u=e.colorSchemeSelector;let i=u;if(u==="class"&&(i=".%s"),u==="data"&&(i="[data-%s]"),u!=null&&u.startsWith("data-")&&!u.includes("%s")&&(i=`[${u}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return b3(e.cssVarPrefix).forEach(s=>{a[s]=r[s],delete r[s]}),i==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:a}}:i?{[i.replace("%s",t)]:a,[`${n}, ${i.replace("%s",t)}`]:r}:{[n]:{...r,...a}}}if(i&&i!=="media")return`${n}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(i)return i.replace("%s",String(t))}return n};function y3(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function z(e,t,r){!e[t]&&r&&(e[t]=r)}function Gn(e){return typeof e!="string"||!e.startsWith("hsl")?e:Zl(e)}function hr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Hn(Gn(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
163
163
  To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function D3(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const ir=e=>{try{return e()}catch{}},w3=(e="mui")=>jy(e);function cs(e,t,r,n){if(!t)return;t=t===!0?{}:t;const u=n==="dark"?"dark":"light";if(!r){e[n]=m3({...t,palette:{mode:u,...t==null?void 0:t.palette}});return}const{palette:i,...a}=os({...r,palette:{mode:u,...t==null?void 0:t.palette}});return e[n]={...t,palette:i,opacity:{...od(u),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||cd(u)},a}function E3(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:u=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=g3,colorSchemeSelector:s=r.light&&r.dark?"media":void 0,rootSelector:l=":root",...c}=e,f=Object.keys(r)[0],p=n||(r.light&&f!=="light"?"light":f),o=w3(i),{[p]:d,light:m,dark:h,...b}=r,g={...b};let D=d;if((p==="dark"&&!("dark"in r)||p==="light"&&!("light"in r))&&(D=!0),!D)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:Pn(21,p));const y=cs(g,D,c,p);m&&!g.light&&cs(g,m,void 0,"light"),h&&!g.dark&&cs(g,h,void 0,"dark");let w={defaultColorScheme:p,...y,cssVarPrefix:i,colorSchemeSelector:s,rootSelector:l,getCssVar:o,colorSchemes:g,font:{...Qy(y.typography),...y.font},spacing:D3(c.spacing)};Object.keys(w.colorSchemes).forEach(T=>{const A=w.colorSchemes[T].palette,C=F=>{const M=F.split("-"),I=M[1],N=M[2];return o(F,A[I][N])};if(A.mode==="light"&&(z(A.common,"background","#fff"),z(A.common,"onBackground","#000")),A.mode==="dark"&&(z(A.common,"background","#000"),z(A.common,"onBackground","#fff")),y3(A,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),A.mode==="light"){z(A.Alert,"errorColor",Ve(A.error.light,.6)),z(A.Alert,"infoColor",Ve(A.info.light,.6)),z(A.Alert,"successColor",Ve(A.success.light,.6)),z(A.Alert,"warningColor",Ve(A.warning.light,.6)),z(A.Alert,"errorFilledBg",C("palette-error-main")),z(A.Alert,"infoFilledBg",C("palette-info-main")),z(A.Alert,"successFilledBg",C("palette-success-main")),z(A.Alert,"warningFilledBg",C("palette-warning-main")),z(A.Alert,"errorFilledColor",ir(()=>A.getContrastText(A.error.main))),z(A.Alert,"infoFilledColor",ir(()=>A.getContrastText(A.info.main))),z(A.Alert,"successFilledColor",ir(()=>A.getContrastText(A.success.main))),z(A.Alert,"warningFilledColor",ir(()=>A.getContrastText(A.warning.main))),z(A.Alert,"errorStandardBg",We(A.error.light,.9)),z(A.Alert,"infoStandardBg",We(A.info.light,.9)),z(A.Alert,"successStandardBg",We(A.success.light,.9)),z(A.Alert,"warningStandardBg",We(A.warning.light,.9)),z(A.Alert,"errorIconColor",C("palette-error-main")),z(A.Alert,"infoIconColor",C("palette-info-main")),z(A.Alert,"successIconColor",C("palette-success-main")),z(A.Alert,"warningIconColor",C("palette-warning-main")),z(A.AppBar,"defaultBg",C("palette-grey-100")),z(A.Avatar,"defaultBg",C("palette-grey-400")),z(A.Button,"inheritContainedBg",C("palette-grey-300")),z(A.Button,"inheritContainedHoverBg",C("palette-grey-A100")),z(A.Chip,"defaultBorder",C("palette-grey-400")),z(A.Chip,"defaultAvatarColor",C("palette-grey-700")),z(A.Chip,"defaultIconColor",C("palette-grey-700")),z(A.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),z(A.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),z(A.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),z(A.LinearProgress,"primaryBg",We(A.primary.main,.62)),z(A.LinearProgress,"secondaryBg",We(A.secondary.main,.62)),z(A.LinearProgress,"errorBg",We(A.error.main,.62)),z(A.LinearProgress,"infoBg",We(A.info.main,.62)),z(A.LinearProgress,"successBg",We(A.success.main,.62)),z(A.LinearProgress,"warningBg",We(A.warning.main,.62)),z(A.Skeleton,"bg",`rgba(${C("palette-text-primaryChannel")} / 0.11)`),z(A.Slider,"primaryTrack",We(A.primary.main,.62)),z(A.Slider,"secondaryTrack",We(A.secondary.main,.62)),z(A.Slider,"errorTrack",We(A.error.main,.62)),z(A.Slider,"infoTrack",We(A.info.main,.62)),z(A.Slider,"successTrack",We(A.success.main,.62)),z(A.Slider,"warningTrack",We(A.warning.main,.62));const F=ai(A.background.default,.8);z(A.SnackbarContent,"bg",F),z(A.SnackbarContent,"color",ir(()=>A.getContrastText(F))),z(A.SpeedDialAction,"fabHoverBg",ai(A.background.paper,.15)),z(A.StepConnector,"border",C("palette-grey-400")),z(A.StepContent,"border",C("palette-grey-400")),z(A.Switch,"defaultColor",C("palette-common-white")),z(A.Switch,"defaultDisabledColor",C("palette-grey-100")),z(A.Switch,"primaryDisabledColor",We(A.primary.main,.62)),z(A.Switch,"secondaryDisabledColor",We(A.secondary.main,.62)),z(A.Switch,"errorDisabledColor",We(A.error.main,.62)),z(A.Switch,"infoDisabledColor",We(A.info.main,.62)),z(A.Switch,"successDisabledColor",We(A.success.main,.62)),z(A.Switch,"warningDisabledColor",We(A.warning.main,.62)),z(A.TableCell,"border",We(ii(A.divider,1),.88)),z(A.Tooltip,"bg",ii(A.grey[700],.92))}if(A.mode==="dark"){z(A.Alert,"errorColor",We(A.error.light,.6)),z(A.Alert,"infoColor",We(A.info.light,.6)),z(A.Alert,"successColor",We(A.success.light,.6)),z(A.Alert,"warningColor",We(A.warning.light,.6)),z(A.Alert,"errorFilledBg",C("palette-error-dark")),z(A.Alert,"infoFilledBg",C("palette-info-dark")),z(A.Alert,"successFilledBg",C("palette-success-dark")),z(A.Alert,"warningFilledBg",C("palette-warning-dark")),z(A.Alert,"errorFilledColor",ir(()=>A.getContrastText(A.error.dark))),z(A.Alert,"infoFilledColor",ir(()=>A.getContrastText(A.info.dark))),z(A.Alert,"successFilledColor",ir(()=>A.getContrastText(A.success.dark))),z(A.Alert,"warningFilledColor",ir(()=>A.getContrastText(A.warning.dark))),z(A.Alert,"errorStandardBg",Ve(A.error.light,.9)),z(A.Alert,"infoStandardBg",Ve(A.info.light,.9)),z(A.Alert,"successStandardBg",Ve(A.success.light,.9)),z(A.Alert,"warningStandardBg",Ve(A.warning.light,.9)),z(A.Alert,"errorIconColor",C("palette-error-main")),z(A.Alert,"infoIconColor",C("palette-info-main")),z(A.Alert,"successIconColor",C("palette-success-main")),z(A.Alert,"warningIconColor",C("palette-warning-main")),z(A.AppBar,"defaultBg",C("palette-grey-900")),z(A.AppBar,"darkBg",C("palette-background-paper")),z(A.AppBar,"darkColor",C("palette-text-primary")),z(A.Avatar,"defaultBg",C("palette-grey-600")),z(A.Button,"inheritContainedBg",C("palette-grey-800")),z(A.Button,"inheritContainedHoverBg",C("palette-grey-700")),z(A.Chip,"defaultBorder",C("palette-grey-700")),z(A.Chip,"defaultAvatarColor",C("palette-grey-300")),z(A.Chip,"defaultIconColor",C("palette-grey-300")),z(A.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),z(A.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),z(A.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),z(A.LinearProgress,"primaryBg",Ve(A.primary.main,.5)),z(A.LinearProgress,"secondaryBg",Ve(A.secondary.main,.5)),z(A.LinearProgress,"errorBg",Ve(A.error.main,.5)),z(A.LinearProgress,"infoBg",Ve(A.info.main,.5)),z(A.LinearProgress,"successBg",Ve(A.success.main,.5)),z(A.LinearProgress,"warningBg",Ve(A.warning.main,.5)),z(A.Skeleton,"bg",`rgba(${C("palette-text-primaryChannel")} / 0.13)`),z(A.Slider,"primaryTrack",Ve(A.primary.main,.5)),z(A.Slider,"secondaryTrack",Ve(A.secondary.main,.5)),z(A.Slider,"errorTrack",Ve(A.error.main,.5)),z(A.Slider,"infoTrack",Ve(A.info.main,.5)),z(A.Slider,"successTrack",Ve(A.success.main,.5)),z(A.Slider,"warningTrack",Ve(A.warning.main,.5));const F=ai(A.background.default,.98);z(A.SnackbarContent,"bg",F),z(A.SnackbarContent,"color",ir(()=>A.getContrastText(F))),z(A.SpeedDialAction,"fabHoverBg",ai(A.background.paper,.15)),z(A.StepConnector,"border",C("palette-grey-600")),z(A.StepContent,"border",C("palette-grey-600")),z(A.Switch,"defaultColor",C("palette-grey-300")),z(A.Switch,"defaultDisabledColor",C("palette-grey-600")),z(A.Switch,"primaryDisabledColor",Ve(A.primary.main,.55)),z(A.Switch,"secondaryDisabledColor",Ve(A.secondary.main,.55)),z(A.Switch,"errorDisabledColor",Ve(A.error.main,.55)),z(A.Switch,"infoDisabledColor",Ve(A.info.main,.55)),z(A.Switch,"successDisabledColor",Ve(A.success.main,.55)),z(A.Switch,"warningDisabledColor",Ve(A.warning.main,.55)),z(A.TableCell,"border",Ve(ii(A.divider,1),.68)),z(A.Tooltip,"bg",ii(A.grey[700],.92))}hr(A.background,"default"),hr(A.background,"paper"),hr(A.common,"background"),hr(A.common,"onBackground"),hr(A,"divider"),Object.keys(A).forEach(F=>{const M=A[F];F!=="tonalOffset"&&M&&typeof M=="object"&&(M.main&&z(A[F],"mainChannel",Hn(Gn(M.main))),M.light&&z(A[F],"lightChannel",Hn(Gn(M.light))),M.dark&&z(A[F],"darkChannel",Hn(Gn(M.dark))),M.contrastText&&z(A[F],"contrastTextChannel",Hn(Gn(M.contrastText))),F==="text"&&(hr(A[F],"primary"),hr(A[F],"secondary")),F==="action"&&(M.active&&hr(A[F],"active"),M.selected&&hr(A[F],"selected")))})}),w=t.reduce((T,A)=>kr(T,A),w);const v={prefix:i,disableCssColorScheme:u,shouldSkipGeneratingVar:a,getSelector:v3(w)},{vars:E,generateThemeVars:x,generateStyleSheets:S}=Uy(w,v);return w.vars=E,Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([T,A])=>{w[T]=A}),w.generateThemeVars=x,w.generateStyleSheets=S,w.generateSpacing=function(){return Ul(c.spacing,Va(this))},w.getColorSchemeSelector=Hy(s),w.spacing=w.generateSpacing(),w.shouldSkipGeneratingVar=a,w.unstable_sxConfig={...Yu,...c==null?void 0:c.unstable_sxConfig},w.unstable_sx=function(A){return sn({sx:A,theme:this})},w.toRuntimeSource=sd,w}function fd(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:ss({...r===!0?{}:r.palette,mode:t})})}function A3(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:u=r?void 0:{light:!0},defaultColorScheme:i=r==null?void 0:r.mode,...a}=e,s=i||"light",l=u==null?void 0:u[s],c={...u,...r?{[s]:{...typeof l!="boolean"&&l,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return os(e,...t);let f=r;"palette"in e||c[s]&&(c[s]!==!0?f=c[s].palette:s==="dark"&&(f={mode:"dark"}));const p=os({...e,palette:f},...t);return p.defaultColorScheme=s,p.colorSchemes=c,p.palette.mode==="light"&&(p.colorSchemes.light={...c.light!==!0&&c.light,palette:p.palette},fd(p,"dark",c.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:p.palette},fd(p,"light",c.light)),p}return!r&&!("light"in c)&&s==="light"&&(c.light=!0),E3({...a,colorSchemes:c,defaultColorScheme:s,...typeof n!="boolean"&&n},...t)}const x3=A3(),C3="$$material";function S3(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const _3=Sy({themeId:C3,defaultTheme:x3,rootShouldForwardProp:e=>S3(e)&&e!=="classes"}),T3=Ly;process.env.NODE_ENV!=="production"&&(Fe.node,Fe.object.isRequired);function F3(e){return ky(e)}function O3(e){return Ua("MuiSvgIcon",e)}T2("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const N3=e=>{const{color:t,fontSize:r,classes:n}=e,u={root:["root",t!=="inherit"&&`color${Ru(t)}`,`fontSize${Ru(r)}`]};return C2(u,O3,n)},M3=_3("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Ru(r.color)}`],t[`fontSize${Ru(r.fontSize)}`]]}})(T3(({theme:e})=>{var t,r,n,u,i,a,s,l,c,f,p,o,d,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(u=(t=e.transitions)==null?void 0:t.create)==null?void 0:u.call(t,"fill",{duration:(n=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:h=>!h.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((f=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:f.call(c,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,h])=>h&&h.main).map(([h])=>{var b,g;return{props:{color:h},style:{color:(g=(b=(e.vars??e).palette)==null?void 0:b[h])==null?void 0:g.main}}}),{props:{color:"action"},style:{color:(o=(p=(e.vars??e).palette)==null?void 0:p.action)==null?void 0:o.active}},{props:{color:"disabled"},style:{color:(m=(d=(e.vars??e).palette)==null?void 0:d.action)==null?void 0:m.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),si=st.forwardRef(function(t,r){const n=F3({props:t,name:"MuiSvgIcon"}),{children:u,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:f=!1,titleAccess:p,viewBox:o="0 0 24 24",...d}=n,m=st.isValidElement(u)&&u.type==="svg",h={...n,color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:o,hasSvgAsChild:m},b={};f||(b.viewBox=o);const g=N3(h);return Q.jsxs(M3,{as:s,className:F2(g.root,i),focusable:"false",color:c,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:r,...b,...d,...m&&u.props,ownerState:h,children:[m?u.props.children:u,p?Q.jsx("title",{children:p}):null]})});process.env.NODE_ENV!=="production"&&(si.propTypes={children:Fe.node,classes:Fe.object,className:Fe.string,color:Fe.oneOfType([Fe.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),Fe.string]),component:Fe.elementType,fontSize:Fe.oneOfType([Fe.oneOf(["inherit","large","medium","small"]),Fe.string]),htmlColor:Fe.string,inheritViewBox:Fe.bool,shapeRendering:Fe.string,sx:Fe.oneOfType([Fe.arrayOf(Fe.oneOfType([Fe.func,Fe.object,Fe.bool])),Fe.func,Fe.object]),titleAccess:Fe.string,viewBox:Fe.string}),si.muiName="SvgIcon";function fs(e,t){function r(n,u){return Q.jsx(si,{"data-testid":`${t}Icon`,ref:u,...n,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=si.muiName,st.memo(st.forwardRef(r))}const B3=fs(Q.jsx("path",{d:"m7 14 5-5 5 5z"}),"ArrowDropUp"),I3=fs(Q.jsx("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");function P3(e){let t=e.replace(/[^\d.-]/g,"");t=(t.indexOf("-")===0?"-":"")+t.replace(/-/g,"");const n=t.indexOf(".");if(n!==-1){const u=t.replace(/\./g,"");t=u.slice(0,n)+"."+u.slice(n)}return t}const oi=e=>/^-?(?:\d+|\d*\.\d+|\d+\.)$/.test(e);function ld(e){const{disabled:t,readonly:r,decimalPlaces:n=14,name:u,rules:i,sx:a,...s}=e,{field:l,fieldState:{error:c}}=Ut.useController({name:u,rules:{...i,validate:d=>d&&!oi(d)?"Please enter a valid number.":!0}}),f=d=>{const m=d.target.value,h=P3(m);l.onChange(h)},p=d=>{const m=parseFloat(d);if(oi(d)){const h=l2(m,n);l.onChange(o2(h))}l.onBlur()};if(r)return Q.jsx(Br,{label:s.label,text:l.value,sx:a,error:c==null?void 0:c.message});const o=Q.jsxs(Ie.InputAdornment,{position:"end",sx:{display:"flex",flexDirection:"column",gap:1,alignItems:"center",height:"auto !important"},children:[Q.jsx(Ie.IconButton,{size:"small",onClick:()=>{if(oi(l.value)||!l.value){const d=h2(l.value||0,1);l.onChange(d),p(d)}},disabled:t,sx:{pt:0,pb:0},children:Q.jsx(B3,{fontSize:"small","data-testid":"increment-button"})}),Q.jsx(Ie.IconButton,{size:"small",onClick:()=>{if(oi(l.value)||!l.value){const d=p2(l.value||0,1);l.onChange(d),p(d)}},disabled:t,sx:{pt:0,pb:0},children:Q.jsx(I3,{fontSize:"small","data-testid":"decrement-button"})})]});return Q.jsx(Ie.TextField,{...l,...s,onChange:f,onBlur:d=>p(d.target.value),fullWidth:!0,placeholder:t?"0":"",error:!!c,helperText:!!c&&Q.jsx(Wr,{error:c.message}),disabled:t,sx:{...a,m:0},InputProps:{endAdornment:o},slotProps:{input:{endAdornment:o}}})}function dd({name:e,label:t,sx:r={}}){const{control:n}=Ut.useFormContext();return Q.jsx(Ut.Controller,{name:e,control:n,render:({field:u,fieldState:{error:i}})=>Q.jsx(Br,{label:t,text:u.value||0,sx:r,error:i==null?void 0:i.message})})}function hd({name:e,label:t,options:r=[],sx:n={},disabled:u,rules:i={},readonly:a}){const{field:s,fieldState:{error:l}}=Ut.useController({name:e,rules:i}),c=r.map(p=>({label:p.displayValue,id:p.key})),{value:f}=s;return a?Q.jsx(Br,{label:t,text:f==null?void 0:f.displayValue,sx:n,error:l==null?void 0:l.message}):Q.jsx(Ie.Autocomplete,{"data-test-id":"form-field-select",...s,value:f==null?void 0:f.displayValue,onChange:(p,o)=>s.onChange(o?{displayValue:o.label,key:o.id}:null),options:c,renderInput:p=>Q.jsx(Ie.TextField,{...p,label:t,error:!!l,helperText:!!l&&Q.jsx(Wr,{error:l.message}),slotProps:{inputLabel:{shrink:!0}},sx:{...n,m:0}}),fullWidth:!0,disabled:u})}const R3=fs(Q.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"Help");var ls,pd;function q3(){return pd||(pd=1,ls=(function(e){var t={};function r(n){if(t[n])return t[n].exports;var u=t[n]={i:n,l:!1,exports:{}};return e[n].call(u.exports,u,u.exports,r),u.l=!0,u.exports}return r.m=e,r.c=t,r.d=function(n,u,i){r.o(n,u)||Object.defineProperty(n,u,{enumerable:!0,get:i})},r.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,u){if(1&u&&(n=r(n)),8&u||4&u&&typeof n=="object"&&n&&n.__esModule)return n;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:n}),2&u&&typeof n!="string")for(var a in n)r.d(i,a,(function(s){return n[s]}).bind(null,a));return i},r.n=function(n){var u=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(u,"a",u),u},r.o=function(n,u){return Object.prototype.hasOwnProperty.call(n,u)},r.p="",r(r.s=2)})([function(e,t){e.exports=hl()},function(e,t){e.exports=at},function(e,t,r){r.r(t);var n=r(1),u=r(0),i=function(){return(i=Object.assign||function(m){for(var h,b=1,g=arguments.length;b<g;b++)for(var D in h=arguments[b])Object.prototype.hasOwnProperty.call(h,D)&&(m[D]=h[D]);return m}).apply(this,arguments)},a=function(m,h){var b={};for(var g in m)Object.prototype.hasOwnProperty.call(m,g)&&h.indexOf(g)<0&&(b[g]=m[g]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function"){var D=0;for(g=Object.getOwnPropertySymbols(m);D<g.length;D++)h.indexOf(g[D])<0&&Object.prototype.propertyIsEnumerable.call(m,g[D])&&(b[g[D]]=m[g[D]])}return b},s=0,l=n.forwardRef((function(m,h){var b=m.title,g=b===void 0?null:b,D=m.description,y=D===void 0?null:D,w=m.size,v=w===void 0?null:w,E=m.color,x=E===void 0?"currentColor":E,S=m.horizontal,T=S===void 0?null:S,A=m.vertical,C=A===void 0?null:A,F=m.rotate,M=F===void 0?null:F,I=m.spin,N=I===void 0?null:I,R=m.style,J=R===void 0?{}:R,re=m.children,ue=a(m,["title","description","size","color","horizontal","vertical","rotate","spin","style","children"]);s++;var k,X=N!==null&&N,fe=n.Children.map(re,(function(he){var oe=he;X!==!0&&(X=(N===null?oe.props.spin:N)===!0);var ge=oe.props.size;typeof v=="number"&&typeof oe.props.size=="number"&&(ge=oe.props.size/v);var be={size:ge,color:x===null?oe.props.color:x,horizontal:T===null?oe.props.horizontal:T,vertical:C===null?oe.props.vertical:C,rotate:M===null?oe.props.rotate:M,spin:N===null?oe.props.spin:N,inStack:!0};return n.cloneElement(oe,be)}));v!==null&&(J.width=typeof v=="string"?v:1.5*v+"rem");var G,se="stack_labelledby_"+s,de="stack_describedby_"+s;if(g)k=y?se+" "+de:se;else if(G="presentation",y)throw new Error("title attribute required when description is set");return n.createElement("svg",i({ref:h,viewBox:"0 0 24 24",style:J,role:G,"aria-labelledby":k},ue),g&&n.createElement("title",{id:se},g),y&&n.createElement("desc",{id:de},y),X&&n.createElement("style",null,"@keyframes spin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }","@keyframes spin-inverse { from { transform: rotate(0deg) } to { transform: rotate(-360deg) } }"),fe)}));l.displayName="Stack",l.propTypes={size:u.oneOfType([u.number,u.string]),color:u.string,horizontal:u.bool,vertical:u.bool,rotate:u.number,spin:u.oneOfType([u.bool,u.number]),children:u.oneOfType([u.arrayOf(u.node),u.node]).isRequired,className:u.string,style:u.object},l.defaultProps={size:null,color:null,horizontal:null,vertical:null,rotate:null,spin:null};var c=l;r.d(t,"Icon",(function(){return d})),r.d(t,"Stack",(function(){return c}));var f=function(){return(f=Object.assign||function(m){for(var h,b=1,g=arguments.length;b<g;b++)for(var D in h=arguments[b])Object.prototype.hasOwnProperty.call(h,D)&&(m[D]=h[D]);return m}).apply(this,arguments)},p=function(m,h){var b={};for(var g in m)Object.prototype.hasOwnProperty.call(m,g)&&h.indexOf(g)<0&&(b[g]=m[g]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function"){var D=0;for(g=Object.getOwnPropertySymbols(m);D<g.length;D++)h.indexOf(g[D])<0&&Object.prototype.propertyIsEnumerable.call(m,g[D])&&(b[g[D]]=m[g[D]])}return b},o=0,d=n.forwardRef((function(m,h){var b=m.path,g=m.id,D=g===void 0?++o:g,y=m.title,w=y===void 0?null:y,v=m.description,E=v===void 0?null:v,x=m.size,S=x===void 0?null:x,T=m.color,A=T===void 0?"currentColor":T,C=m.horizontal,F=C!==void 0&&C,M=m.vertical,I=M!==void 0&&M,N=m.rotate,R=N===void 0?0:N,J=m.spin,re=J!==void 0&&J,ue=m.style,k=ue===void 0?{}:ue,X=m.inStack,fe=X!==void 0&&X,G=p(m,["path","id","title","description","size","color","horizontal","vertical","rotate","spin","style","inStack"]),se={},de=[];S!==null&&(fe?de.push("scale("+S+")"):(k.width=typeof S=="string"?S:1.5*S+"rem",k.height=k.width)),F&&de.push("scaleX(-1)"),I&&de.push("scaleY(-1)"),R!==0&&de.push("rotate("+R+"deg)"),A!==null&&(se.fill=A);var he=n.createElement("path",f({d:b,style:se},fe?G:{})),oe=he;de.length>0&&(k.transform=de.join(" "),k.transformOrigin="center",fe&&(oe=n.createElement("g",{style:k},he,n.createElement("rect",{width:"24",height:"24",fill:"transparent"}))));var ge,be=oe,ve=re===!0||typeof re!="number"?2:re,L=!fe&&(F||I);if(ve<0&&(L=!L),re&&(be=n.createElement("g",{style:{animation:"spin"+(L?"-inverse":"")+" linear "+Math.abs(ve)+"s infinite",transformOrigin:"center"}},oe,!(F||I||R!==0)&&n.createElement("rect",{width:"24",height:"24",fill:"transparent"}))),fe)return be;var q,V="icon_labelledby_"+D,pe="icon_describedby_"+D;if(w)ge=E?V+" "+pe:V;else if(q="presentation",E)throw new Error("title attribute required when description is set");return n.createElement("svg",f({ref:h,viewBox:"0 0 24 24",style:k,role:q,"aria-labelledby":ge},G),w&&n.createElement("title",{id:V},w),E&&n.createElement("desc",{id:pe},E),!fe&&re&&(L?n.createElement("style",null,"@keyframes spin-inverse { from { transform: rotate(0deg) } to { transform: rotate(-360deg) } }"):n.createElement("style",null,"@keyframes spin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }")),be)}));d.displayName="Icon",d.propTypes={path:u.string.isRequired,size:u.oneOfType([u.number,u.string]),color:u.string,horizontal:u.bool,vertical:u.bool,rotate:u.number,spin:u.oneOfType([u.bool,u.number]),style:u.object,inStack:u.bool,className:u.string},d.defaultProps={size:null,color:"currentColor",horizontal:!1,vertical:!1,rotate:0,spin:!1},t.default=d}])),ls}var k3=q3();const ds=Qn(k3);var L3="M7,2H17A2,2 0 0,1 19,4V20A2,2 0 0,1 17,22H7A2,2 0 0,1 5,20V4A2,2 0 0,1 7,2M7,4V8H17V4H7M7,10V12H9V10H7M11,10V12H13V10H11M15,10V12H17V10H15M7,14V16H9V14H7M11,14V16H13V14H11M15,14V16H17V14H15M7,18V20H9V18H7M11,18V20H13V18H11M15,18V20H17V18H15Z",j3="M12,1L3,5V11C3,16.55 6.84,21.74 12,23C17.16,21.74 21,16.55 21,11V5L12,1M12,7C13.4,7 14.8,8.1 14.8,9.5V11C15.4,11 16,11.6 16,12.3V15.8C16,16.4 15.4,17 14.7,17H9.2C8.6,17 8,16.4 8,15.7V12.2C8,11.6 8.6,11 9.2,11V9.5C9.2,8.1 10.6,7 12,7M12,8.2C11.2,8.2 10.5,8.7 10.5,9.5V11H13.5V9.5C13.5,8.7 12.8,8.2 12,8.2Z",$3="M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M7,6H17V19H7V6M9,8V17H11V8H9M13,8V17H15V8H13Z";function Ur({children:e,internal:t,required:r,helpText:n,isCalculated:u,readonly:i,deleted:a,isSection:s,variant:l="h4"}){const c={display:"flex",alignItems:"center"},f=i?{...c,gap:1}:{...c,justifyContent:"space-between"};return Q.jsxs(Ie.Box,{sx:f,children:[Q.jsxs(Ie.Typography,{"data-testid":"form-field-label",variant:l,color:"black",sx:{whiteSpace:"normal",wordBreak:"break-word"},children:[e,r&&"*"]}),Q.jsxs(Ie.Box,{sx:{display:"flex",gap:1},children:[t&&Q.jsx(Ie.Tooltip,{placement:"top",title:s?"This section is hidden from the applicant and visible to employees only.":"This field is hidden from the applicant and visible to employees only.",sx:{cursor:"default"},children:Q.jsx(ds,{path:j3,size:"20px",color:Vr.capitalDesignTokens.foundations.colors.yellow700,"data-testid":"internal-icon"})}),n&&n!==""&&Q.jsx(Ie.Tooltip,{placement:"top",title:Q.jsx(Ie.Typography,{variant:"bodyXSmall",sx:{whiteSpace:"pre-line"},children:n}),sx:{cursor:"default"},children:Q.jsx(R3,{fontSize:"small",htmlColor:Vr.capitalDesignTokens.foundations.colors.gray600,"data-testid":"help-icon"})}),u&&Q.jsx(Ie.Tooltip,{placement:"top",title:"This field is calculated.",sx:{cursor:"default"},children:Q.jsx(ds,{path:L3,size:"20px",color:Vr.capitalDesignTokens.foundations.colors.gray800,"data-testid":"calculation-icon"})}),a&&Q.jsx(Ie.Tooltip,{placement:"top",title:"This field was deleted.",sx:{cursor:"default"},children:Q.jsx(ds,{path:$3,size:"20px",color:Vr.capitalDesignTokens.foundations.colors.gray800})})]})]})}const z3={y:{sectionType:"year",contentType:"digit",maxLength:4},yy:"year",yyy:{sectionType:"year",contentType:"digit",maxLength:4},yyyy:"year",M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMMM:{sectionType:"month",contentType:"letter"},MMM:{sectionType:"month",contentType:"letter"},L:{sectionType:"month",contentType:"digit",maxLength:2},LL:"month",LLL:{sectionType:"month",contentType:"letter"},LLLL:{sectionType:"month",contentType:"letter"},d:{sectionType:"day",contentType:"digit",maxLength:2},dd:"day",do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"letter"},EE:{sectionType:"weekDay",contentType:"letter"},EEE:{sectionType:"weekDay",contentType:"letter"},EEEE:{sectionType:"weekDay",contentType:"letter"},EEEEE:{sectionType:"weekDay",contentType:"letter"},i:{sectionType:"weekDay",contentType:"digit",maxLength:1},ii:"weekDay",iii:{sectionType:"weekDay",contentType:"letter"},iiii:{sectionType:"weekDay",contentType:"letter"},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},ee:"weekDay",eee:{sectionType:"weekDay",contentType:"letter"},eeee:{sectionType:"weekDay",contentType:"letter"},eeeee:{sectionType:"weekDay",contentType:"letter"},eeeeee:{sectionType:"weekDay",contentType:"letter"},c:{sectionType:"weekDay",contentType:"digit",maxLength:1},cc:"weekDay",ccc:{sectionType:"weekDay",contentType:"letter"},cccc:{sectionType:"weekDay",contentType:"letter"},ccccc:{sectionType:"weekDay",contentType:"letter"},cccccc:{sectionType:"weekDay",contentType:"letter"},a:"meridiem",aa:"meridiem",aaa:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},U3={year:"yyyy",month:"LLLL",monthShort:"MMM",dayOfMonth:"d",dayOfMonthFull:"do",weekday:"EEEE",weekdayShort:"EEEEEE",hours24h:"HH",hours12h:"hh",meridiem:"aa",minutes:"mm",seconds:"ss",fullDate:"PP",keyboardDate:"P",shortDate:"MMM d",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",fullTime:"p",fullTime12h:"hh:mm aa",fullTime24h:"HH:mm",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aa",keyboardDateTime24h:"P HH:mm"};class H3{constructor(t){this.isMUIAdapter=!0,this.isTimezoneCompatible=!1,this.lib=void 0,this.locale=void 0,this.formats=void 0,this.formatTokenMap=z3,this.escapedCharacters={start:"'",end:"'"},this.longFormatters=void 0,this.date=a=>typeof a>"u"?new Date:a===null?null:new Date(a),this.getInvalidDate=()=>new Date("Invalid Date"),this.getTimezone=()=>"default",this.setTimezone=a=>a,this.toJsDate=a=>a,this.getCurrentLocaleCode=()=>this.locale.code,this.is12HourCycleInCurrentLocale=()=>/a/.test(this.locale.formatLong.time({width:"short"})),this.expandFormat=a=>{const s=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return a.match(s).map(l=>{const c=l[0];if(c==="p"||c==="P"){const f=this.longFormatters[c];return f(l,this.locale.formatLong)}return l}).join("")},this.formatNumber=a=>a,this.getDayOfWeek=a=>a.getDay()+1;const{locale:r,formats:n,longFormatters:u,lib:i}=t;this.locale=r,this.formats=Gr({},U3,n),this.longFormatters=u,this.lib=i||"date-fns"}}class V3 extends H3{constructor({locale:t,formats:r}={}){if(process.env.NODE_ENV!=="production"){if(typeof ac.addDays!="function")throw new Error(["MUI: The `date-fns` package v2.x is not compatible with this adapter.","Please, install v3.x or v4.x of the package or use the `AdapterDateFns` instead."].join(`
164
- `));if(!wi.longFormatters)throw new Error("MUI: The minimum supported `date-fns` package version compatible with this adapter is `3.2.x`.")}super({locale:t??Y1.enUS,formats:r,longFormatters:wi.longFormatters}),this.parse=(n,u)=>n===""?null:I1.parse(n,u,new Date,{locale:this.locale}),this.isValid=n=>n==null?!1:B1.isValid(n),this.format=(n,u)=>this.formatByString(n,this.formats[u]),this.formatByString=(n,u)=>wi.format(n,u,{locale:this.locale}),this.isEqual=(n,u)=>n===null&&u===null?!0:n===null||u===null?!1:T1.isEqual(n,u),this.isSameYear=(n,u)=>O1.isSameYear(n,u),this.isSameMonth=(n,u)=>N1.isSameMonth(n,u),this.isSameDay=(n,u)=>F1.isSameDay(n,u),this.isSameHour=(n,u)=>M1.isSameHour(n,u),this.isAfter=(n,u)=>Ei.isAfter(n,u),this.isAfterYear=(n,u)=>Ei.isAfter(n,oc.endOfYear(u)),this.isAfterDay=(n,u)=>Ei.isAfter(n,sc.endOfDay(u)),this.isBefore=(n,u)=>Ai.isBefore(n,u),this.isBeforeYear=(n,u)=>Ai.isBefore(n,this.startOfYear(u)),this.isBeforeDay=(n,u)=>Ai.isBefore(n,this.startOfDay(u)),this.isWithinRange=(n,[u,i])=>G1.isWithinInterval(n,{start:u,end:i}),this.startOfYear=n=>W1.startOfYear(n),this.startOfMonth=n=>U1.startOfMonth(n),this.startOfWeek=n=>V1.startOfWeek(n,{locale:this.locale}),this.startOfDay=n=>z1.startOfDay(n),this.endOfYear=n=>oc.endOfYear(n),this.endOfMonth=n=>H1.endOfMonth(n),this.endOfWeek=n=>v1.endOfWeek(n,{locale:this.locale}),this.endOfDay=n=>sc.endOfDay(n),this.addYears=(n,u)=>b1.addYears(n,u),this.addMonths=(n,u)=>g1.addMonths(n,u),this.addWeeks=(n,u)=>m1.addWeeks(n,u),this.addDays=(n,u)=>ac.addDays(n,u),this.addHours=(n,u)=>p1.addHours(n,u),this.addMinutes=(n,u)=>h1.addMinutes(n,u),this.addSeconds=(n,u)=>d1.addSeconds(n,u),this.getYear=n=>_1.getYear(n),this.getMonth=n=>A1.getMonth(n),this.getDate=n=>y1.getDate(n),this.getHours=n=>w1.getHours(n),this.getMinutes=n=>E1.getMinutes(n),this.getSeconds=n=>x1.getSeconds(n),this.getMilliseconds=n=>C1.getMilliseconds(n),this.setYear=(n,u)=>$1.setYear(n,u),this.setMonth=(n,u)=>k1.setMonth(n,u),this.setDate=(n,u)=>P1.setDate(n,u),this.setHours=(n,u)=>R1.setHours(n,u),this.setMinutes=(n,u)=>q1.setMinutes(n,u),this.setSeconds=(n,u)=>L1.setSeconds(n,u),this.setMilliseconds=(n,u)=>j1.setMilliseconds(n,u),this.getDaysInMonth=n=>D1.getDaysInMonth(n),this.getWeekArray=n=>{const u=this.startOfWeek(this.startOfMonth(n)),i=this.endOfWeek(this.endOfMonth(n));let a=0,s=u;const l=[];for(;this.isBefore(s,i);){const c=Math.floor(a/7);l[c]=l[c]||[],l[c].push(s),s=this.addDays(s,1),a+=1}return l},this.getWeekNumber=n=>S1.getWeek(n,{locale:this.locale}),this.getYearRange=([n,u])=>{const i=this.startOfYear(n),a=this.endOfYear(u),s=[];let l=i;for(;this.isBefore(l,a);)s.push(l),l=this.addYears(l,1);return s}}}const W3={type:"DATE",name:"Date",groups:[],dateFormat:"MM/dd/yyyy",renderField:(e,t,{disabled:r,readonly:n,name:u})=>Q.jsx(I0,{name:u??e.id,label:Q.jsx(Ur,{...e,readonly:n,children:e.label}),rules:gn(e),constraints:e.constraints,dateFormat:t.dateFormat,disabled:r,readonly:n})},G3={type:"DROPDOWN",name:"Dropdown",groups:[],renderField:(e,t,{disabled:r,readonly:n,name:u})=>Q.jsx(hd,{name:u??e.id,label:Q.jsx(Ur,{...e,children:e.label}),rules:gn(e),options:e.options,disabled:r,readonly:n})},Y3={type:"CHECKBOX",name:"Checkbox",groups:[],renderField:(e,t,{disabled:r,readonly:n,name:u})=>Q.jsx(P0,{name:u??e.id,label:Q.jsx(Ur,{...e,readonly:n,children:e.label}),rules:gn(e),disabled:r,readonly:n})},K3={type:"TEXTINPUT",name:"Text",groups:[],maxLength:262144,filter:e=>e.replace(/[^\u0000-\u00FF ]/g,""),renderField:(e,t,{disabled:r,readonly:n,name:u})=>Q.jsx(R0,{rules:gn(e),label:Q.jsx(Ur,{...e,readonly:n,children:e.label}),name:u??e.id,disabled:r,readonly:n,maxLength:t.maxLength,filter:t.filter})},Z3={type:"NUMBER",name:"Number",groups:[],decimalPlaces:14,renderField:(e,t,{disabled:r,readonly:n,name:u})=>Q.jsx(ld,{name:u??e.id,label:Q.jsx(Ur,{...e,readonly:n,children:e.label}),rules:{...gn(e),min:{value:e.min,message:`Value must be at least ${e.min}.`},max:{value:e.max,message:`Value must be no more than ${e.max}.`}},disabled:r,readonly:n,decimalPlaces:t.decimalPlaces})},X3={type:"CALCULATEDNUMBER",name:"Calculated Number",groups:[],renderField:(e,t,{readonly:r,name:n})=>Q.jsx(dd,{name:n??e.id,label:Q.jsx(Ur,{...e,readonly:r,children:e.label}),rules:[]})},gn=e=>({required:{value:e.required??!1,message:"This field is required."}}),md=[K3,Z3,X3,G3,Y3,W3],gd=at.createContext(void 0),J3=({children:e,template:t,fieldTypes:r})=>Q.jsx(gd.Provider,{value:{template:t,fieldTypes:r},children:e}),bd=()=>{const e=at.useContext(gd);if(!e)throw new Error("useFormRenderer must be used within a FormRendererProvider");return e},Q3=e=>{const{fieldTypes:t}=bd();if(!e)return null;const r=t.find(i=>i.type===e);if(!r)throw new Error(`Field type ${e} not found`);const{renderField:n,...u}=r;return{renderField:n,fullWidth:u.fullWidth,...u}},eD=e=>{const{template:t}=bd(),r=t.fields[e];if(!r)throw new Error(`Field template for ${e} not found`);return r},vd=at.createContext(void 0),tD=({children:e,layout:t={section:()=>({}),field:()=>({})}})=>Q.jsx(vd.Provider,{value:{layout:t},children:e}),yd=()=>{const e=at.useContext(vd);if(!e)throw new Error("useFormLayout must be used within a FormLayoutProvider");return e.layout};function rD({children:e,template:t,fieldTypes:r=md,layout:n}){return Q.jsx(ic.LocalizationProvider,{dateAdapter:V3,adapterLocale:void 0,children:Q.jsx(tD,{layout:n,children:Q.jsx(J3,{template:t,fieldTypes:r,children:e})})})}var hs,Dd;function nD(){if(Dd)return hs;Dd=1;function e(){this.__data__=[],this.size=0}return hs=e,hs}var ps,wd;function Ed(){if(wd)return ps;wd=1;function e(t,r){return t===r||t!==t&&r!==r}return ps=e,ps}var ms,Ad;function ci(){if(Ad)return ms;Ad=1;var e=Ed();function t(r,n){for(var u=r.length;u--;)if(e(r[u][0],n))return u;return-1}return ms=t,ms}var gs,xd;function uD(){if(xd)return gs;xd=1;var e=ci(),t=Array.prototype,r=t.splice;function n(u){var i=this.__data__,a=e(i,u);if(a<0)return!1;var s=i.length-1;return a==s?i.pop():r.call(i,a,1),--this.size,!0}return gs=n,gs}var bs,Cd;function iD(){if(Cd)return bs;Cd=1;var e=ci();function t(r){var n=this.__data__,u=e(n,r);return u<0?void 0:n[u][1]}return bs=t,bs}var vs,Sd;function aD(){if(Sd)return vs;Sd=1;var e=ci();function t(r){return e(this.__data__,r)>-1}return vs=t,vs}var ys,_d;function sD(){if(_d)return ys;_d=1;var e=ci();function t(r,n){var u=this.__data__,i=e(u,r);return i<0?(++this.size,u.push([r,n])):u[i][1]=n,this}return ys=t,ys}var Ds,Td;function fi(){if(Td)return Ds;Td=1;var e=nD(),t=uD(),r=iD(),n=aD(),u=sD();function i(a){var s=-1,l=a==null?0:a.length;for(this.clear();++s<l;){var c=a[s];this.set(c[0],c[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=u,Ds=i,Ds}var ws,Fd;function oD(){if(Fd)return ws;Fd=1;var e=fi();function t(){this.__data__=new e,this.size=0}return ws=t,ws}var Es,Od;function cD(){if(Od)return Es;Od=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Es=e,Es}var As,Nd;function fD(){if(Nd)return As;Nd=1;function e(t){return this.__data__.get(t)}return As=e,As}var xs,Md;function lD(){if(Md)return xs;Md=1;function e(t){return this.__data__.has(t)}return xs=e,xs}var Cs,Bd;function Id(){if(Bd)return Cs;Bd=1;var e=typeof Jn=="object"&&Jn&&Jn.Object===Object&&Jn;return Cs=e,Cs}var Ss,Pd;function pr(){if(Pd)return Ss;Pd=1;var e=Id(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Ss=r,Ss}var _s,Rd;function Ts(){if(Rd)return _s;Rd=1;var e=pr(),t=e.Symbol;return _s=t,_s}var Fs,qd;function dD(){if(qd)return Fs;qd=1;var e=Ts(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,u=e?e.toStringTag:void 0;function i(a){var s=r.call(a,u),l=a[u];try{a[u]=void 0;var c=!0}catch{}var f=n.call(a);return c&&(s?a[u]=l:delete a[u]),f}return Fs=i,Fs}var Os,kd;function hD(){if(kd)return Os;kd=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Os=r,Os}var Ns,Ld;function li(){if(Ld)return Ns;Ld=1;var e=Ts(),t=dD(),r=hD(),n="[object Null]",u="[object Undefined]",i=e?e.toStringTag:void 0;function a(s){return s==null?s===void 0?u:n:i&&i in Object(s)?t(s):r(s)}return Ns=a,Ns}var Ms,jd;function $d(){if(jd)return Ms;jd=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Ms=e,Ms}var Bs,zd;function Ud(){if(zd)return Bs;zd=1;var e=li(),t=$d(),r="[object AsyncFunction]",n="[object Function]",u="[object GeneratorFunction]",i="[object Proxy]";function a(s){if(!t(s))return!1;var l=e(s);return l==n||l==u||l==r||l==i}return Bs=a,Bs}var Is,Hd;function pD(){if(Hd)return Is;Hd=1;var e=pr(),t=e["__core-js_shared__"];return Is=t,Is}var Ps,Vd;function mD(){if(Vd)return Ps;Vd=1;var e=pD(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return Ps=r,Ps}var Rs,Wd;function Gd(){if(Wd)return Rs;Wd=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return Rs=r,Rs}var qs,Yd;function gD(){if(Yd)return qs;Yd=1;var e=Ud(),t=mD(),r=$d(),n=Gd(),u=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,f=RegExp("^"+l.call(c).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(o){if(!r(o)||t(o))return!1;var d=e(o)?f:i;return d.test(n(o))}return qs=p,qs}var ks,Kd;function bD(){if(Kd)return ks;Kd=1;function e(t,r){return t==null?void 0:t[r]}return ks=e,ks}var Ls,Zd;function bn(){if(Zd)return Ls;Zd=1;var e=gD(),t=bD();function r(n,u){var i=t(n,u);return e(i)?i:void 0}return Ls=r,Ls}var js,Xd;function $s(){if(Xd)return js;Xd=1;var e=bn(),t=pr(),r=e(t,"Map");return js=r,js}var zs,Jd;function di(){if(Jd)return zs;Jd=1;var e=bn(),t=e(Object,"create");return zs=t,zs}var Us,Qd;function vD(){if(Qd)return Us;Qd=1;var e=di();function t(){this.__data__=e?e(null):{},this.size=0}return Us=t,Us}var Hs,eh;function yD(){if(eh)return Hs;eh=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Hs=e,Hs}var Vs,th;function DD(){if(th)return Vs;th=1;var e=di(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function u(i){var a=this.__data__;if(e){var s=a[i];return s===t?void 0:s}return n.call(a,i)?a[i]:void 0}return Vs=u,Vs}var Ws,rh;function wD(){if(rh)return Ws;rh=1;var e=di(),t=Object.prototype,r=t.hasOwnProperty;function n(u){var i=this.__data__;return e?i[u]!==void 0:r.call(i,u)}return Ws=n,Ws}var Gs,nh;function ED(){if(nh)return Gs;nh=1;var e=di(),t="__lodash_hash_undefined__";function r(n,u){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=e&&u===void 0?t:u,this}return Gs=r,Gs}var Ys,uh;function AD(){if(uh)return Ys;uh=1;var e=vD(),t=yD(),r=DD(),n=wD(),u=ED();function i(a){var s=-1,l=a==null?0:a.length;for(this.clear();++s<l;){var c=a[s];this.set(c[0],c[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=u,Ys=i,Ys}var Ks,ih;function xD(){if(ih)return Ks;ih=1;var e=AD(),t=fi(),r=$s();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Ks=n,Ks}var Zs,ah;function CD(){if(ah)return Zs;ah=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Zs=e,Zs}var Xs,sh;function hi(){if(sh)return Xs;sh=1;var e=CD();function t(r,n){var u=r.__data__;return e(n)?u[typeof n=="string"?"string":"hash"]:u.map}return Xs=t,Xs}var Js,oh;function SD(){if(oh)return Js;oh=1;var e=hi();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Js=t,Js}var Qs,ch;function _D(){if(ch)return Qs;ch=1;var e=hi();function t(r){return e(this,r).get(r)}return Qs=t,Qs}var eo,fh;function TD(){if(fh)return eo;fh=1;var e=hi();function t(r){return e(this,r).has(r)}return eo=t,eo}var to,lh;function FD(){if(lh)return to;lh=1;var e=hi();function t(r,n){var u=e(this,r),i=u.size;return u.set(r,n),this.size+=u.size==i?0:1,this}return to=t,to}var ro,dh;function hh(){if(dh)return ro;dh=1;var e=xD(),t=SD(),r=_D(),n=TD(),u=FD();function i(a){var s=-1,l=a==null?0:a.length;for(this.clear();++s<l;){var c=a[s];this.set(c[0],c[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=u,ro=i,ro}var no,ph;function OD(){if(ph)return no;ph=1;var e=fi(),t=$s(),r=hh(),n=200;function u(i,a){var s=this.__data__;if(s instanceof e){var l=s.__data__;if(!t||l.length<n-1)return l.push([i,a]),this.size=++s.size,this;s=this.__data__=new r(l)}return s.set(i,a),this.size=s.size,this}return no=u,no}var uo,mh;function ND(){if(mh)return uo;mh=1;var e=fi(),t=oD(),r=cD(),n=fD(),u=lD(),i=OD();function a(s){var l=this.__data__=new e(s);this.size=l.size}return a.prototype.clear=t,a.prototype.delete=r,a.prototype.get=n,a.prototype.has=u,a.prototype.set=i,uo=a,uo}var io,gh;function MD(){if(gh)return io;gh=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return io=t,io}var ao,bh;function BD(){if(bh)return ao;bh=1;function e(t){return this.__data__.has(t)}return ao=e,ao}var so,vh;function ID(){if(vh)return so;vh=1;var e=hh(),t=MD(),r=BD();function n(u){var i=-1,a=u==null?0:u.length;for(this.__data__=new e;++i<a;)this.add(u[i])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,so=n,so}var oo,yh;function PD(){if(yh)return oo;yh=1;function e(t,r){for(var n=-1,u=t==null?0:t.length;++n<u;)if(r(t[n],n,t))return!0;return!1}return oo=e,oo}var co,Dh;function RD(){if(Dh)return co;Dh=1;function e(t,r){return t.has(r)}return co=e,co}var fo,wh;function Eh(){if(wh)return fo;wh=1;var e=ID(),t=PD(),r=RD(),n=1,u=2;function i(a,s,l,c,f,p){var o=l&n,d=a.length,m=s.length;if(d!=m&&!(o&&m>d))return!1;var h=p.get(a),b=p.get(s);if(h&&b)return h==s&&b==a;var g=-1,D=!0,y=l&u?new e:void 0;for(p.set(a,s),p.set(s,a);++g<d;){var w=a[g],v=s[g];if(c)var E=o?c(v,w,g,s,a,p):c(w,v,g,a,s,p);if(E!==void 0){if(E)continue;D=!1;break}if(y){if(!t(s,function(x,S){if(!r(y,S)&&(w===x||f(w,x,l,c,p)))return y.push(S)})){D=!1;break}}else if(!(w===v||f(w,v,l,c,p))){D=!1;break}}return p.delete(a),p.delete(s),D}return fo=i,fo}var lo,Ah;function qD(){if(Ah)return lo;Ah=1;var e=pr(),t=e.Uint8Array;return lo=t,lo}var ho,xh;function kD(){if(xh)return ho;xh=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(u,i){n[++r]=[i,u]}),n}return ho=e,ho}var po,Ch;function LD(){if(Ch)return po;Ch=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(u){n[++r]=u}),n}return po=e,po}var mo,Sh;function jD(){if(Sh)return mo;Sh=1;var e=Ts(),t=qD(),r=Ed(),n=Eh(),u=kD(),i=LD(),a=1,s=2,l="[object Boolean]",c="[object Date]",f="[object Error]",p="[object Map]",o="[object Number]",d="[object RegExp]",m="[object Set]",h="[object String]",b="[object Symbol]",g="[object ArrayBuffer]",D="[object DataView]",y=e?e.prototype:void 0,w=y?y.valueOf:void 0;function v(E,x,S,T,A,C,F){switch(S){case D:if(E.byteLength!=x.byteLength||E.byteOffset!=x.byteOffset)return!1;E=E.buffer,x=x.buffer;case g:return!(E.byteLength!=x.byteLength||!C(new t(E),new t(x)));case l:case c:case o:return r(+E,+x);case f:return E.name==x.name&&E.message==x.message;case d:case h:return E==x+"";case p:var M=u;case m:var I=T&a;if(M||(M=i),E.size!=x.size&&!I)return!1;var N=F.get(E);if(N)return N==x;T|=s,F.set(E,x);var R=n(M(E),M(x),T,A,C,F);return F.delete(E),R;case b:if(w)return w.call(E)==w.call(x)}return!1}return mo=v,mo}var go,_h;function $D(){if(_h)return go;_h=1;function e(t,r){for(var n=-1,u=r.length,i=t.length;++n<u;)t[i+n]=r[n];return t}return go=e,go}var bo,Th;function vo(){if(Th)return bo;Th=1;var e=Array.isArray;return bo=e,bo}var yo,Fh;function zD(){if(Fh)return yo;Fh=1;var e=$D(),t=vo();function r(n,u,i){var a=u(n);return t(n)?a:e(a,i(n))}return yo=r,yo}var Do,Oh;function UD(){if(Oh)return Do;Oh=1;function e(t,r){for(var n=-1,u=t==null?0:t.length,i=0,a=[];++n<u;){var s=t[n];r(s,n,t)&&(a[i++]=s)}return a}return Do=e,Do}var wo,Nh;function HD(){if(Nh)return wo;Nh=1;function e(){return[]}return wo=e,wo}var Eo,Mh;function VD(){if(Mh)return Eo;Mh=1;var e=UD(),t=HD(),r=Object.prototype,n=r.propertyIsEnumerable,u=Object.getOwnPropertySymbols,i=u?function(a){return a==null?[]:(a=Object(a),e(u(a),function(s){return n.call(a,s)}))}:t;return Eo=i,Eo}var Ao,Bh;function WD(){if(Bh)return Ao;Bh=1;function e(t,r){for(var n=-1,u=Array(t);++n<t;)u[n]=r(n);return u}return Ao=e,Ao}var xo,Ih;function pi(){if(Ih)return xo;Ih=1;function e(t){return t!=null&&typeof t=="object"}return xo=e,xo}var Co,Ph;function GD(){if(Ph)return Co;Ph=1;var e=li(),t=pi(),r="[object Arguments]";function n(u){return t(u)&&e(u)==r}return Co=n,Co}var So,Rh;function YD(){if(Rh)return So;Rh=1;var e=GD(),t=pi(),r=Object.prototype,n=r.hasOwnProperty,u=r.propertyIsEnumerable,i=e((function(){return arguments})())?e:function(a){return t(a)&&n.call(a,"callee")&&!u.call(a,"callee")};return So=i,So}var Yn={exports:{}},_o,qh;function KD(){if(qh)return _o;qh=1;function e(){return!1}return _o=e,_o}Yn.exports;var kh;function Lh(){return kh||(kh=1,(function(e,t){var r=pr(),n=KD(),u=t&&!t.nodeType&&t,i=u&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===u,s=a?r.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||n;e.exports=c})(Yn,Yn.exports)),Yn.exports}var To,jh;function ZD(){if(jh)return To;jh=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,u){var i=typeof n;return u=u??e,!!u&&(i=="number"||i!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<u}return To=r,To}var Fo,$h;function zh(){if($h)return Fo;$h=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Fo=t,Fo}var Oo,Uh;function XD(){if(Uh)return Oo;Uh=1;var e=li(),t=zh(),r=pi(),n="[object Arguments]",u="[object Array]",i="[object Boolean]",a="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",f="[object Number]",p="[object Object]",o="[object RegExp]",d="[object Set]",m="[object String]",h="[object WeakMap]",b="[object ArrayBuffer]",g="[object DataView]",D="[object Float32Array]",y="[object Float64Array]",w="[object Int8Array]",v="[object Int16Array]",E="[object Int32Array]",x="[object Uint8Array]",S="[object Uint8ClampedArray]",T="[object Uint16Array]",A="[object Uint32Array]",C={};C[D]=C[y]=C[w]=C[v]=C[E]=C[x]=C[S]=C[T]=C[A]=!0,C[n]=C[u]=C[b]=C[i]=C[g]=C[a]=C[s]=C[l]=C[c]=C[f]=C[p]=C[o]=C[d]=C[m]=C[h]=!1;function F(M){return r(M)&&t(M.length)&&!!C[e(M)]}return Oo=F,Oo}var No,Hh;function JD(){if(Hh)return No;Hh=1;function e(t){return function(r){return t(r)}}return No=e,No}var Kn={exports:{}};Kn.exports;var Vh;function QD(){return Vh||(Vh=1,(function(e,t){var r=Id(),n=t&&!t.nodeType&&t,u=n&&!0&&e&&!e.nodeType&&e,i=u&&u.exports===n,a=i&&r.process,s=(function(){try{var l=u&&u.require&&u.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}})();e.exports=s})(Kn,Kn.exports)),Kn.exports}var Mo,Wh;function Gh(){if(Wh)return Mo;Wh=1;var e=XD(),t=JD(),r=QD(),n=r&&r.isTypedArray,u=n?t(n):e;return Mo=u,Mo}var Bo,Yh;function e6(){if(Yh)return Bo;Yh=1;var e=WD(),t=YD(),r=vo(),n=Lh(),u=ZD(),i=Gh(),a=Object.prototype,s=a.hasOwnProperty;function l(c,f){var p=r(c),o=!p&&t(c),d=!p&&!o&&n(c),m=!p&&!o&&!d&&i(c),h=p||o||d||m,b=h?e(c.length,String):[],g=b.length;for(var D in c)(f||s.call(c,D))&&!(h&&(D=="length"||d&&(D=="offset"||D=="parent")||m&&(D=="buffer"||D=="byteLength"||D=="byteOffset")||u(D,g)))&&b.push(D);return b}return Bo=l,Bo}var Io,Kh;function t6(){if(Kh)return Io;Kh=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,u=typeof n=="function"&&n.prototype||e;return r===u}return Io=t,Io}var Po,Zh;function r6(){if(Zh)return Po;Zh=1;function e(t,r){return function(n){return t(r(n))}}return Po=e,Po}var Ro,Xh;function n6(){if(Xh)return Ro;Xh=1;var e=r6(),t=e(Object.keys,Object);return Ro=t,Ro}var qo,Jh;function u6(){if(Jh)return qo;Jh=1;var e=t6(),t=n6(),r=Object.prototype,n=r.hasOwnProperty;function u(i){if(!e(i))return t(i);var a=[];for(var s in Object(i))n.call(i,s)&&s!="constructor"&&a.push(s);return a}return qo=u,qo}var ko,Qh;function i6(){if(Qh)return ko;Qh=1;var e=Ud(),t=zh();function r(n){return n!=null&&t(n.length)&&!e(n)}return ko=r,ko}var Lo,e1;function a6(){if(e1)return Lo;e1=1;var e=e6(),t=u6(),r=i6();function n(u){return r(u)?e(u):t(u)}return Lo=n,Lo}var jo,t1;function s6(){if(t1)return jo;t1=1;var e=zD(),t=VD(),r=a6();function n(u){return e(u,r,t)}return jo=n,jo}var $o,r1;function o6(){if(r1)return $o;r1=1;var e=s6(),t=1,r=Object.prototype,n=r.hasOwnProperty;function u(i,a,s,l,c,f){var p=s&t,o=e(i),d=o.length,m=e(a),h=m.length;if(d!=h&&!p)return!1;for(var b=d;b--;){var g=o[b];if(!(p?g in a:n.call(a,g)))return!1}var D=f.get(i),y=f.get(a);if(D&&y)return D==a&&y==i;var w=!0;f.set(i,a),f.set(a,i);for(var v=p;++b<d;){g=o[b];var E=i[g],x=a[g];if(l)var S=p?l(x,E,g,a,i,f):l(E,x,g,i,a,f);if(!(S===void 0?E===x||c(E,x,s,l,f):S)){w=!1;break}v||(v=g=="constructor")}if(w&&!v){var T=i.constructor,A=a.constructor;T!=A&&"constructor"in i&&"constructor"in a&&!(typeof T=="function"&&T instanceof T&&typeof A=="function"&&A instanceof A)&&(w=!1)}return f.delete(i),f.delete(a),w}return $o=u,$o}var zo,n1;function c6(){if(n1)return zo;n1=1;var e=bn(),t=pr(),r=e(t,"DataView");return zo=r,zo}var Uo,u1;function f6(){if(u1)return Uo;u1=1;var e=bn(),t=pr(),r=e(t,"Promise");return Uo=r,Uo}var Ho,i1;function l6(){if(i1)return Ho;i1=1;var e=bn(),t=pr(),r=e(t,"Set");return Ho=r,Ho}var Vo,a1;function d6(){if(a1)return Vo;a1=1;var e=bn(),t=pr(),r=e(t,"WeakMap");return Vo=r,Vo}var Wo,s1;function h6(){if(s1)return Wo;s1=1;var e=c6(),t=$s(),r=f6(),n=l6(),u=d6(),i=li(),a=Gd(),s="[object Map]",l="[object Object]",c="[object Promise]",f="[object Set]",p="[object WeakMap]",o="[object DataView]",d=a(e),m=a(t),h=a(r),b=a(n),g=a(u),D=i;return(e&&D(new e(new ArrayBuffer(1)))!=o||t&&D(new t)!=s||r&&D(r.resolve())!=c||n&&D(new n)!=f||u&&D(new u)!=p)&&(D=function(y){var w=i(y),v=w==l?y.constructor:void 0,E=v?a(v):"";if(E)switch(E){case d:return o;case m:return s;case h:return c;case b:return f;case g:return p}return w}),Wo=D,Wo}var Go,o1;function p6(){if(o1)return Go;o1=1;var e=ND(),t=Eh(),r=jD(),n=o6(),u=h6(),i=vo(),a=Lh(),s=Gh(),l=1,c="[object Arguments]",f="[object Array]",p="[object Object]",o=Object.prototype,d=o.hasOwnProperty;function m(h,b,g,D,y,w){var v=i(h),E=i(b),x=v?f:u(h),S=E?f:u(b);x=x==c?p:x,S=S==c?p:S;var T=x==p,A=S==p,C=x==S;if(C&&a(h)){if(!a(b))return!1;v=!0,T=!1}if(C&&!T)return w||(w=new e),v||s(h)?t(h,b,g,D,y,w):r(h,b,x,g,D,y,w);if(!(g&l)){var F=T&&d.call(h,"__wrapped__"),M=A&&d.call(b,"__wrapped__");if(F||M){var I=F?h.value():h,N=M?b.value():b;return w||(w=new e),y(I,N,g,D,w)}}return C?(w||(w=new e),n(h,b,g,D,y,w)):!1}return Go=m,Go}var Yo,c1;function m6(){if(c1)return Yo;c1=1;var e=p6(),t=pi();function r(n,u,i,a,s){return n===u?!0:n==null||u==null||!t(n)&&!t(u)?n!==n&&u!==u:e(n,u,i,a,r,s)}return Yo=r,Yo}var Ko,f1;function g6(){if(f1)return Ko;f1=1;var e=m6();function t(r,n){return e(r,n)}return Ko=t,Ko}var b6=g6();const v6=Qn(b6);function y6({children:e,formOptions:t,submitOptions:r,loading:n}){const u=Ut.useForm(t),{handleSubmit:i,reset:a,watch:s}=u,l=at.useRef(null);at.useEffect(()=>{if(n)return;const b=t==null?void 0:t.defaultValues;b&&(v6(l.current,b)||(a(b),l.current=b))},[n,a,t==null?void 0:t.defaultValues]);const{onSubmit:c,onReset:f,formId:p,submitOnChange:o,registerForm:d}=r||{},m=async b=>{await(c==null?void 0:c(b)),a(b)},h=async()=>{a(t==null?void 0:t.defaultValues),await(f==null?void 0:f())};return at.useEffect(()=>{if(!o)return()=>{};const b=s(g=>i(D=>c==null?void 0:c(D))(g));return()=>b.unsubscribe()},[s,o,i,c]),Q.jsx(Ut.FormProvider,{...u,children:Q.jsx("form",{"data-testid":p,onSubmit:i(m),onReset:h,ref:d,id:p,style:{width:"100%"},children:e})})}function D6({children:e,formOptions:t,submitOptions:r}){const{formId:n,onSubmit:u,onBlur:i}=r,a=Ut.useForm(t),{getFieldState:s,reset:l,getValues:c,handleSubmit:f,trigger:p}=a,o=async()=>{const d=c(),m=Object.keys(d).filter(g=>s(g).isDirty);await p(m);const b=m.filter(g=>!s(g).invalid).reduce((g,D)=>(g[D]=d[D],g),{});Object.keys(b).length>0&&(await(i==null?void 0:i(b)),l({...d,...b},{keepErrors:!0}))};return Q.jsx(Ut.FormProvider,{...a,children:Q.jsx("form",{onBlur:o,onSubmit:f(async d=>{await(u==null?void 0:u(d)),l(d)}),id:n,"data-testid":n,children:e})})}function l1({id:e,name:t,readonly:r,wrapper:n}){const{field:u}=yd(),i=eD(e),a=Q3(i.type);if(!a||!a.renderField)return Q.jsxs(Ie.Box,{children:["Missing render for field type ",i.type]});const{renderField:s,...l}=a,c=u==null?void 0:u(i,l),f=n||Ie.Box;return Q.jsx(f,{"data-testid":"field-container",field:i,sx:c,children:s(i,l,{readonly:r,name:t})})}function w6({section:e,fields:t,fieldNames:r,readonly:n,fieldWrapper:u}){const{section:i}=yd(),a=i==null?void 0:i(e);return Q.jsx(Ie.Box,{"data-testid":"section-container",sx:a,children:t.map((s,l)=>Q.jsx(l1,{id:s,name:(r==null?void 0:r[l])??s,readonly:n,wrapper:u},s))})}ie.AutosaveForm=D6,ie.CalculatedNumber=dd,ie.CheckboxInput=P0,ie.DateInput=I0,ie.DropdownInput=hd,ie.ErrorMessage=Wr,ie.Field=l1,ie.Form=y6,ie.FormFieldLabel=Ur,ie.LabelWithChildren=pa,ie.NumberInput=ld,ie.ReadOnlyField=Br,ie.RendererProvider=rD,ie.Section=w6,ie.TextInput=R0,ie.defaultFieldTypes=md,ie.defaultRules=gn,Object.defineProperty(ie,Symbol.toStringTag,{value:"Module"})}));
164
+ `));if(!wi.longFormatters)throw new Error("MUI: The minimum supported `date-fns` package version compatible with this adapter is `3.2.x`.")}super({locale:t??Y1.enUS,formats:r,longFormatters:wi.longFormatters}),this.parse=(n,u)=>n===""?null:I1.parse(n,u,new Date,{locale:this.locale}),this.isValid=n=>n==null?!1:B1.isValid(n),this.format=(n,u)=>this.formatByString(n,this.formats[u]),this.formatByString=(n,u)=>wi.format(n,u,{locale:this.locale}),this.isEqual=(n,u)=>n===null&&u===null?!0:n===null||u===null?!1:T1.isEqual(n,u),this.isSameYear=(n,u)=>O1.isSameYear(n,u),this.isSameMonth=(n,u)=>N1.isSameMonth(n,u),this.isSameDay=(n,u)=>F1.isSameDay(n,u),this.isSameHour=(n,u)=>M1.isSameHour(n,u),this.isAfter=(n,u)=>Ei.isAfter(n,u),this.isAfterYear=(n,u)=>Ei.isAfter(n,oc.endOfYear(u)),this.isAfterDay=(n,u)=>Ei.isAfter(n,sc.endOfDay(u)),this.isBefore=(n,u)=>Ai.isBefore(n,u),this.isBeforeYear=(n,u)=>Ai.isBefore(n,this.startOfYear(u)),this.isBeforeDay=(n,u)=>Ai.isBefore(n,this.startOfDay(u)),this.isWithinRange=(n,[u,i])=>G1.isWithinInterval(n,{start:u,end:i}),this.startOfYear=n=>W1.startOfYear(n),this.startOfMonth=n=>U1.startOfMonth(n),this.startOfWeek=n=>V1.startOfWeek(n,{locale:this.locale}),this.startOfDay=n=>z1.startOfDay(n),this.endOfYear=n=>oc.endOfYear(n),this.endOfMonth=n=>H1.endOfMonth(n),this.endOfWeek=n=>v1.endOfWeek(n,{locale:this.locale}),this.endOfDay=n=>sc.endOfDay(n),this.addYears=(n,u)=>b1.addYears(n,u),this.addMonths=(n,u)=>g1.addMonths(n,u),this.addWeeks=(n,u)=>m1.addWeeks(n,u),this.addDays=(n,u)=>ac.addDays(n,u),this.addHours=(n,u)=>p1.addHours(n,u),this.addMinutes=(n,u)=>h1.addMinutes(n,u),this.addSeconds=(n,u)=>d1.addSeconds(n,u),this.getYear=n=>_1.getYear(n),this.getMonth=n=>A1.getMonth(n),this.getDate=n=>y1.getDate(n),this.getHours=n=>w1.getHours(n),this.getMinutes=n=>E1.getMinutes(n),this.getSeconds=n=>x1.getSeconds(n),this.getMilliseconds=n=>C1.getMilliseconds(n),this.setYear=(n,u)=>$1.setYear(n,u),this.setMonth=(n,u)=>k1.setMonth(n,u),this.setDate=(n,u)=>P1.setDate(n,u),this.setHours=(n,u)=>R1.setHours(n,u),this.setMinutes=(n,u)=>q1.setMinutes(n,u),this.setSeconds=(n,u)=>L1.setSeconds(n,u),this.setMilliseconds=(n,u)=>j1.setMilliseconds(n,u),this.getDaysInMonth=n=>D1.getDaysInMonth(n),this.getWeekArray=n=>{const u=this.startOfWeek(this.startOfMonth(n)),i=this.endOfWeek(this.endOfMonth(n));let a=0,s=u;const l=[];for(;this.isBefore(s,i);){const c=Math.floor(a/7);l[c]=l[c]||[],l[c].push(s),s=this.addDays(s,1),a+=1}return l},this.getWeekNumber=n=>S1.getWeek(n,{locale:this.locale}),this.getYearRange=([n,u])=>{const i=this.startOfYear(n),a=this.endOfYear(u),s=[];let l=i;for(;this.isBefore(l,a);)s.push(l),l=this.addYears(l,1);return s}}}const W3={type:"DATE",name:"Date",groups:[],dateFormat:"MM/dd/yyyy",renderField:(e,t,{disabled:r,readonly:n,name:u})=>Q.jsx(I0,{name:u??e.id,label:Q.jsx(Ur,{...e,readonly:n,children:e.label}),rules:gn(e),constraints:e.constraints,dateFormat:t.dateFormat,disabled:r,readonly:n})},G3={type:"DROPDOWN",name:"Dropdown",groups:[],renderField:(e,t,{disabled:r,readonly:n,name:u})=>Q.jsx(hd,{name:u??e.id,label:Q.jsx(Ur,{...e,children:e.label}),rules:gn(e),options:e.options,disabled:r,readonly:n})},Y3={type:"CHECKBOX",name:"Checkbox",groups:[],renderField:(e,t,{disabled:r,readonly:n,name:u})=>Q.jsx(P0,{name:u??e.id,label:Q.jsx(Ur,{...e,readonly:n,children:e.label}),rules:gn(e),disabled:r,readonly:n})},K3={type:"TEXTINPUT",name:"Text",groups:[],maxLength:262144,filter:e=>e.replace(/[^\u0000-\u00FF ]/g,""),renderField:(e,t,{disabled:r,readonly:n,name:u})=>Q.jsx(R0,{rules:gn(e),label:Q.jsx(Ur,{...e,readonly:n,children:e.label}),name:u??e.id,disabled:r,readonly:n,maxLength:t.maxLength,filter:t.filter})},Z3={type:"NUMBER",name:"Number",groups:[],decimalPlaces:14,renderField:(e,t,{disabled:r,readonly:n,name:u})=>Q.jsx(ld,{name:u??e.id,label:Q.jsx(Ur,{...e,readonly:n,children:e.label}),rules:{...gn(e),min:{value:e.min,message:`Value must be at least ${e.min}.`},max:{value:e.max,message:`Value must be no more than ${e.max}.`}},disabled:r,readonly:n,decimalPlaces:t.decimalPlaces})},X3={type:"CALCULATEDNUMBER",name:"Calculated Number",groups:[],renderField:(e,t,{readonly:r,name:n})=>Q.jsx(dd,{name:n??e.id,label:Q.jsx(Ur,{...e,readonly:r,children:e.label}),rules:[]})},gn=e=>({required:{value:e.required??!1,message:"This field is required."}}),md=[K3,Z3,X3,G3,Y3,W3],gd=at.createContext(void 0),J3=({children:e,template:t,fieldTypes:r})=>Q.jsx(gd.Provider,{value:{template:t,fieldTypes:r},children:e}),bd=()=>{const e=at.useContext(gd);if(!e)throw new Error("useFormRenderer must be used within a FormRendererProvider");return e},Q3=e=>{const{fieldTypes:t}=bd();if(!e)return null;const r=t.find(i=>i.type===e);if(!r)throw new Error(`Field type ${e} not found`);const{renderField:n,...u}=r;return{renderField:n,fullWidth:u.fullWidth,...u}},eD=e=>{const{template:t}=bd(),r=t.fields[e];if(!r)throw new Error(`Field template for ${e} not found`);return r},vd=at.createContext(void 0),tD=({children:e,layout:t={section:()=>({}),field:()=>({})}})=>Q.jsx(vd.Provider,{value:{layout:t},children:e}),yd=()=>{const e=at.useContext(vd);if(!e)throw new Error("useFormLayout must be used within a FormLayoutProvider");return e.layout};function rD({children:e,template:t,fieldTypes:r=md,layout:n}){return Q.jsx(ic.LocalizationProvider,{dateAdapter:V3,adapterLocale:void 0,children:Q.jsx(tD,{layout:n,children:Q.jsx(J3,{template:t,fieldTypes:r,children:e})})})}var hs,Dd;function nD(){if(Dd)return hs;Dd=1;function e(){this.__data__=[],this.size=0}return hs=e,hs}var ps,wd;function Ed(){if(wd)return ps;wd=1;function e(t,r){return t===r||t!==t&&r!==r}return ps=e,ps}var ms,Ad;function ci(){if(Ad)return ms;Ad=1;var e=Ed();function t(r,n){for(var u=r.length;u--;)if(e(r[u][0],n))return u;return-1}return ms=t,ms}var gs,xd;function uD(){if(xd)return gs;xd=1;var e=ci(),t=Array.prototype,r=t.splice;function n(u){var i=this.__data__,a=e(i,u);if(a<0)return!1;var s=i.length-1;return a==s?i.pop():r.call(i,a,1),--this.size,!0}return gs=n,gs}var bs,Cd;function iD(){if(Cd)return bs;Cd=1;var e=ci();function t(r){var n=this.__data__,u=e(n,r);return u<0?void 0:n[u][1]}return bs=t,bs}var vs,Sd;function aD(){if(Sd)return vs;Sd=1;var e=ci();function t(r){return e(this.__data__,r)>-1}return vs=t,vs}var ys,_d;function sD(){if(_d)return ys;_d=1;var e=ci();function t(r,n){var u=this.__data__,i=e(u,r);return i<0?(++this.size,u.push([r,n])):u[i][1]=n,this}return ys=t,ys}var Ds,Td;function fi(){if(Td)return Ds;Td=1;var e=nD(),t=uD(),r=iD(),n=aD(),u=sD();function i(a){var s=-1,l=a==null?0:a.length;for(this.clear();++s<l;){var c=a[s];this.set(c[0],c[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=u,Ds=i,Ds}var ws,Fd;function oD(){if(Fd)return ws;Fd=1;var e=fi();function t(){this.__data__=new e,this.size=0}return ws=t,ws}var Es,Od;function cD(){if(Od)return Es;Od=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Es=e,Es}var As,Nd;function fD(){if(Nd)return As;Nd=1;function e(t){return this.__data__.get(t)}return As=e,As}var xs,Md;function lD(){if(Md)return xs;Md=1;function e(t){return this.__data__.has(t)}return xs=e,xs}var Cs,Bd;function Id(){if(Bd)return Cs;Bd=1;var e=typeof Jn=="object"&&Jn&&Jn.Object===Object&&Jn;return Cs=e,Cs}var Ss,Pd;function pr(){if(Pd)return Ss;Pd=1;var e=Id(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Ss=r,Ss}var _s,Rd;function Ts(){if(Rd)return _s;Rd=1;var e=pr(),t=e.Symbol;return _s=t,_s}var Fs,qd;function dD(){if(qd)return Fs;qd=1;var e=Ts(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,u=e?e.toStringTag:void 0;function i(a){var s=r.call(a,u),l=a[u];try{a[u]=void 0;var c=!0}catch{}var f=n.call(a);return c&&(s?a[u]=l:delete a[u]),f}return Fs=i,Fs}var Os,kd;function hD(){if(kd)return Os;kd=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Os=r,Os}var Ns,Ld;function li(){if(Ld)return Ns;Ld=1;var e=Ts(),t=dD(),r=hD(),n="[object Null]",u="[object Undefined]",i=e?e.toStringTag:void 0;function a(s){return s==null?s===void 0?u:n:i&&i in Object(s)?t(s):r(s)}return Ns=a,Ns}var Ms,jd;function $d(){if(jd)return Ms;jd=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Ms=e,Ms}var Bs,zd;function Ud(){if(zd)return Bs;zd=1;var e=li(),t=$d(),r="[object AsyncFunction]",n="[object Function]",u="[object GeneratorFunction]",i="[object Proxy]";function a(s){if(!t(s))return!1;var l=e(s);return l==n||l==u||l==r||l==i}return Bs=a,Bs}var Is,Hd;function pD(){if(Hd)return Is;Hd=1;var e=pr(),t=e["__core-js_shared__"];return Is=t,Is}var Ps,Vd;function mD(){if(Vd)return Ps;Vd=1;var e=pD(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return Ps=r,Ps}var Rs,Wd;function Gd(){if(Wd)return Rs;Wd=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return Rs=r,Rs}var qs,Yd;function gD(){if(Yd)return qs;Yd=1;var e=Ud(),t=mD(),r=$d(),n=Gd(),u=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,f=RegExp("^"+l.call(c).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(o){if(!r(o)||t(o))return!1;var d=e(o)?f:i;return d.test(n(o))}return qs=p,qs}var ks,Kd;function bD(){if(Kd)return ks;Kd=1;function e(t,r){return t==null?void 0:t[r]}return ks=e,ks}var Ls,Zd;function bn(){if(Zd)return Ls;Zd=1;var e=gD(),t=bD();function r(n,u){var i=t(n,u);return e(i)?i:void 0}return Ls=r,Ls}var js,Xd;function $s(){if(Xd)return js;Xd=1;var e=bn(),t=pr(),r=e(t,"Map");return js=r,js}var zs,Jd;function di(){if(Jd)return zs;Jd=1;var e=bn(),t=e(Object,"create");return zs=t,zs}var Us,Qd;function vD(){if(Qd)return Us;Qd=1;var e=di();function t(){this.__data__=e?e(null):{},this.size=0}return Us=t,Us}var Hs,eh;function yD(){if(eh)return Hs;eh=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Hs=e,Hs}var Vs,th;function DD(){if(th)return Vs;th=1;var e=di(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function u(i){var a=this.__data__;if(e){var s=a[i];return s===t?void 0:s}return n.call(a,i)?a[i]:void 0}return Vs=u,Vs}var Ws,rh;function wD(){if(rh)return Ws;rh=1;var e=di(),t=Object.prototype,r=t.hasOwnProperty;function n(u){var i=this.__data__;return e?i[u]!==void 0:r.call(i,u)}return Ws=n,Ws}var Gs,nh;function ED(){if(nh)return Gs;nh=1;var e=di(),t="__lodash_hash_undefined__";function r(n,u){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=e&&u===void 0?t:u,this}return Gs=r,Gs}var Ys,uh;function AD(){if(uh)return Ys;uh=1;var e=vD(),t=yD(),r=DD(),n=wD(),u=ED();function i(a){var s=-1,l=a==null?0:a.length;for(this.clear();++s<l;){var c=a[s];this.set(c[0],c[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=u,Ys=i,Ys}var Ks,ih;function xD(){if(ih)return Ks;ih=1;var e=AD(),t=fi(),r=$s();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Ks=n,Ks}var Zs,ah;function CD(){if(ah)return Zs;ah=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Zs=e,Zs}var Xs,sh;function hi(){if(sh)return Xs;sh=1;var e=CD();function t(r,n){var u=r.__data__;return e(n)?u[typeof n=="string"?"string":"hash"]:u.map}return Xs=t,Xs}var Js,oh;function SD(){if(oh)return Js;oh=1;var e=hi();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Js=t,Js}var Qs,ch;function _D(){if(ch)return Qs;ch=1;var e=hi();function t(r){return e(this,r).get(r)}return Qs=t,Qs}var eo,fh;function TD(){if(fh)return eo;fh=1;var e=hi();function t(r){return e(this,r).has(r)}return eo=t,eo}var to,lh;function FD(){if(lh)return to;lh=1;var e=hi();function t(r,n){var u=e(this,r),i=u.size;return u.set(r,n),this.size+=u.size==i?0:1,this}return to=t,to}var ro,dh;function hh(){if(dh)return ro;dh=1;var e=xD(),t=SD(),r=_D(),n=TD(),u=FD();function i(a){var s=-1,l=a==null?0:a.length;for(this.clear();++s<l;){var c=a[s];this.set(c[0],c[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=u,ro=i,ro}var no,ph;function OD(){if(ph)return no;ph=1;var e=fi(),t=$s(),r=hh(),n=200;function u(i,a){var s=this.__data__;if(s instanceof e){var l=s.__data__;if(!t||l.length<n-1)return l.push([i,a]),this.size=++s.size,this;s=this.__data__=new r(l)}return s.set(i,a),this.size=s.size,this}return no=u,no}var uo,mh;function ND(){if(mh)return uo;mh=1;var e=fi(),t=oD(),r=cD(),n=fD(),u=lD(),i=OD();function a(s){var l=this.__data__=new e(s);this.size=l.size}return a.prototype.clear=t,a.prototype.delete=r,a.prototype.get=n,a.prototype.has=u,a.prototype.set=i,uo=a,uo}var io,gh;function MD(){if(gh)return io;gh=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return io=t,io}var ao,bh;function BD(){if(bh)return ao;bh=1;function e(t){return this.__data__.has(t)}return ao=e,ao}var so,vh;function ID(){if(vh)return so;vh=1;var e=hh(),t=MD(),r=BD();function n(u){var i=-1,a=u==null?0:u.length;for(this.__data__=new e;++i<a;)this.add(u[i])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,so=n,so}var oo,yh;function PD(){if(yh)return oo;yh=1;function e(t,r){for(var n=-1,u=t==null?0:t.length;++n<u;)if(r(t[n],n,t))return!0;return!1}return oo=e,oo}var co,Dh;function RD(){if(Dh)return co;Dh=1;function e(t,r){return t.has(r)}return co=e,co}var fo,wh;function Eh(){if(wh)return fo;wh=1;var e=ID(),t=PD(),r=RD(),n=1,u=2;function i(a,s,l,c,f,p){var o=l&n,d=a.length,m=s.length;if(d!=m&&!(o&&m>d))return!1;var h=p.get(a),b=p.get(s);if(h&&b)return h==s&&b==a;var g=-1,D=!0,y=l&u?new e:void 0;for(p.set(a,s),p.set(s,a);++g<d;){var w=a[g],v=s[g];if(c)var E=o?c(v,w,g,s,a,p):c(w,v,g,a,s,p);if(E!==void 0){if(E)continue;D=!1;break}if(y){if(!t(s,function(x,S){if(!r(y,S)&&(w===x||f(w,x,l,c,p)))return y.push(S)})){D=!1;break}}else if(!(w===v||f(w,v,l,c,p))){D=!1;break}}return p.delete(a),p.delete(s),D}return fo=i,fo}var lo,Ah;function qD(){if(Ah)return lo;Ah=1;var e=pr(),t=e.Uint8Array;return lo=t,lo}var ho,xh;function kD(){if(xh)return ho;xh=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(u,i){n[++r]=[i,u]}),n}return ho=e,ho}var po,Ch;function LD(){if(Ch)return po;Ch=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(u){n[++r]=u}),n}return po=e,po}var mo,Sh;function jD(){if(Sh)return mo;Sh=1;var e=Ts(),t=qD(),r=Ed(),n=Eh(),u=kD(),i=LD(),a=1,s=2,l="[object Boolean]",c="[object Date]",f="[object Error]",p="[object Map]",o="[object Number]",d="[object RegExp]",m="[object Set]",h="[object String]",b="[object Symbol]",g="[object ArrayBuffer]",D="[object DataView]",y=e?e.prototype:void 0,w=y?y.valueOf:void 0;function v(E,x,S,T,A,C,F){switch(S){case D:if(E.byteLength!=x.byteLength||E.byteOffset!=x.byteOffset)return!1;E=E.buffer,x=x.buffer;case g:return!(E.byteLength!=x.byteLength||!C(new t(E),new t(x)));case l:case c:case o:return r(+E,+x);case f:return E.name==x.name&&E.message==x.message;case d:case h:return E==x+"";case p:var M=u;case m:var I=T&a;if(M||(M=i),E.size!=x.size&&!I)return!1;var N=F.get(E);if(N)return N==x;T|=s,F.set(E,x);var R=n(M(E),M(x),T,A,C,F);return F.delete(E),R;case b:if(w)return w.call(E)==w.call(x)}return!1}return mo=v,mo}var go,_h;function $D(){if(_h)return go;_h=1;function e(t,r){for(var n=-1,u=r.length,i=t.length;++n<u;)t[i+n]=r[n];return t}return go=e,go}var bo,Th;function vo(){if(Th)return bo;Th=1;var e=Array.isArray;return bo=e,bo}var yo,Fh;function zD(){if(Fh)return yo;Fh=1;var e=$D(),t=vo();function r(n,u,i){var a=u(n);return t(n)?a:e(a,i(n))}return yo=r,yo}var Do,Oh;function UD(){if(Oh)return Do;Oh=1;function e(t,r){for(var n=-1,u=t==null?0:t.length,i=0,a=[];++n<u;){var s=t[n];r(s,n,t)&&(a[i++]=s)}return a}return Do=e,Do}var wo,Nh;function HD(){if(Nh)return wo;Nh=1;function e(){return[]}return wo=e,wo}var Eo,Mh;function VD(){if(Mh)return Eo;Mh=1;var e=UD(),t=HD(),r=Object.prototype,n=r.propertyIsEnumerable,u=Object.getOwnPropertySymbols,i=u?function(a){return a==null?[]:(a=Object(a),e(u(a),function(s){return n.call(a,s)}))}:t;return Eo=i,Eo}var Ao,Bh;function WD(){if(Bh)return Ao;Bh=1;function e(t,r){for(var n=-1,u=Array(t);++n<t;)u[n]=r(n);return u}return Ao=e,Ao}var xo,Ih;function pi(){if(Ih)return xo;Ih=1;function e(t){return t!=null&&typeof t=="object"}return xo=e,xo}var Co,Ph;function GD(){if(Ph)return Co;Ph=1;var e=li(),t=pi(),r="[object Arguments]";function n(u){return t(u)&&e(u)==r}return Co=n,Co}var So,Rh;function YD(){if(Rh)return So;Rh=1;var e=GD(),t=pi(),r=Object.prototype,n=r.hasOwnProperty,u=r.propertyIsEnumerable,i=e((function(){return arguments})())?e:function(a){return t(a)&&n.call(a,"callee")&&!u.call(a,"callee")};return So=i,So}var Yn={exports:{}},_o,qh;function KD(){if(qh)return _o;qh=1;function e(){return!1}return _o=e,_o}Yn.exports;var kh;function Lh(){return kh||(kh=1,(function(e,t){var r=pr(),n=KD(),u=t&&!t.nodeType&&t,i=u&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===u,s=a?r.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||n;e.exports=c})(Yn,Yn.exports)),Yn.exports}var To,jh;function ZD(){if(jh)return To;jh=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,u){var i=typeof n;return u=u??e,!!u&&(i=="number"||i!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<u}return To=r,To}var Fo,$h;function zh(){if($h)return Fo;$h=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Fo=t,Fo}var Oo,Uh;function XD(){if(Uh)return Oo;Uh=1;var e=li(),t=zh(),r=pi(),n="[object Arguments]",u="[object Array]",i="[object Boolean]",a="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",f="[object Number]",p="[object Object]",o="[object RegExp]",d="[object Set]",m="[object String]",h="[object WeakMap]",b="[object ArrayBuffer]",g="[object DataView]",D="[object Float32Array]",y="[object Float64Array]",w="[object Int8Array]",v="[object Int16Array]",E="[object Int32Array]",x="[object Uint8Array]",S="[object Uint8ClampedArray]",T="[object Uint16Array]",A="[object Uint32Array]",C={};C[D]=C[y]=C[w]=C[v]=C[E]=C[x]=C[S]=C[T]=C[A]=!0,C[n]=C[u]=C[b]=C[i]=C[g]=C[a]=C[s]=C[l]=C[c]=C[f]=C[p]=C[o]=C[d]=C[m]=C[h]=!1;function F(M){return r(M)&&t(M.length)&&!!C[e(M)]}return Oo=F,Oo}var No,Hh;function JD(){if(Hh)return No;Hh=1;function e(t){return function(r){return t(r)}}return No=e,No}var Kn={exports:{}};Kn.exports;var Vh;function QD(){return Vh||(Vh=1,(function(e,t){var r=Id(),n=t&&!t.nodeType&&t,u=n&&!0&&e&&!e.nodeType&&e,i=u&&u.exports===n,a=i&&r.process,s=(function(){try{var l=u&&u.require&&u.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}})();e.exports=s})(Kn,Kn.exports)),Kn.exports}var Mo,Wh;function Gh(){if(Wh)return Mo;Wh=1;var e=XD(),t=JD(),r=QD(),n=r&&r.isTypedArray,u=n?t(n):e;return Mo=u,Mo}var Bo,Yh;function e6(){if(Yh)return Bo;Yh=1;var e=WD(),t=YD(),r=vo(),n=Lh(),u=ZD(),i=Gh(),a=Object.prototype,s=a.hasOwnProperty;function l(c,f){var p=r(c),o=!p&&t(c),d=!p&&!o&&n(c),m=!p&&!o&&!d&&i(c),h=p||o||d||m,b=h?e(c.length,String):[],g=b.length;for(var D in c)(f||s.call(c,D))&&!(h&&(D=="length"||d&&(D=="offset"||D=="parent")||m&&(D=="buffer"||D=="byteLength"||D=="byteOffset")||u(D,g)))&&b.push(D);return b}return Bo=l,Bo}var Io,Kh;function t6(){if(Kh)return Io;Kh=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,u=typeof n=="function"&&n.prototype||e;return r===u}return Io=t,Io}var Po,Zh;function r6(){if(Zh)return Po;Zh=1;function e(t,r){return function(n){return t(r(n))}}return Po=e,Po}var Ro,Xh;function n6(){if(Xh)return Ro;Xh=1;var e=r6(),t=e(Object.keys,Object);return Ro=t,Ro}var qo,Jh;function u6(){if(Jh)return qo;Jh=1;var e=t6(),t=n6(),r=Object.prototype,n=r.hasOwnProperty;function u(i){if(!e(i))return t(i);var a=[];for(var s in Object(i))n.call(i,s)&&s!="constructor"&&a.push(s);return a}return qo=u,qo}var ko,Qh;function i6(){if(Qh)return ko;Qh=1;var e=Ud(),t=zh();function r(n){return n!=null&&t(n.length)&&!e(n)}return ko=r,ko}var Lo,e1;function a6(){if(e1)return Lo;e1=1;var e=e6(),t=u6(),r=i6();function n(u){return r(u)?e(u):t(u)}return Lo=n,Lo}var jo,t1;function s6(){if(t1)return jo;t1=1;var e=zD(),t=VD(),r=a6();function n(u){return e(u,r,t)}return jo=n,jo}var $o,r1;function o6(){if(r1)return $o;r1=1;var e=s6(),t=1,r=Object.prototype,n=r.hasOwnProperty;function u(i,a,s,l,c,f){var p=s&t,o=e(i),d=o.length,m=e(a),h=m.length;if(d!=h&&!p)return!1;for(var b=d;b--;){var g=o[b];if(!(p?g in a:n.call(a,g)))return!1}var D=f.get(i),y=f.get(a);if(D&&y)return D==a&&y==i;var w=!0;f.set(i,a),f.set(a,i);for(var v=p;++b<d;){g=o[b];var E=i[g],x=a[g];if(l)var S=p?l(x,E,g,a,i,f):l(E,x,g,i,a,f);if(!(S===void 0?E===x||c(E,x,s,l,f):S)){w=!1;break}v||(v=g=="constructor")}if(w&&!v){var T=i.constructor,A=a.constructor;T!=A&&"constructor"in i&&"constructor"in a&&!(typeof T=="function"&&T instanceof T&&typeof A=="function"&&A instanceof A)&&(w=!1)}return f.delete(i),f.delete(a),w}return $o=u,$o}var zo,n1;function c6(){if(n1)return zo;n1=1;var e=bn(),t=pr(),r=e(t,"DataView");return zo=r,zo}var Uo,u1;function f6(){if(u1)return Uo;u1=1;var e=bn(),t=pr(),r=e(t,"Promise");return Uo=r,Uo}var Ho,i1;function l6(){if(i1)return Ho;i1=1;var e=bn(),t=pr(),r=e(t,"Set");return Ho=r,Ho}var Vo,a1;function d6(){if(a1)return Vo;a1=1;var e=bn(),t=pr(),r=e(t,"WeakMap");return Vo=r,Vo}var Wo,s1;function h6(){if(s1)return Wo;s1=1;var e=c6(),t=$s(),r=f6(),n=l6(),u=d6(),i=li(),a=Gd(),s="[object Map]",l="[object Object]",c="[object Promise]",f="[object Set]",p="[object WeakMap]",o="[object DataView]",d=a(e),m=a(t),h=a(r),b=a(n),g=a(u),D=i;return(e&&D(new e(new ArrayBuffer(1)))!=o||t&&D(new t)!=s||r&&D(r.resolve())!=c||n&&D(new n)!=f||u&&D(new u)!=p)&&(D=function(y){var w=i(y),v=w==l?y.constructor:void 0,E=v?a(v):"";if(E)switch(E){case d:return o;case m:return s;case h:return c;case b:return f;case g:return p}return w}),Wo=D,Wo}var Go,o1;function p6(){if(o1)return Go;o1=1;var e=ND(),t=Eh(),r=jD(),n=o6(),u=h6(),i=vo(),a=Lh(),s=Gh(),l=1,c="[object Arguments]",f="[object Array]",p="[object Object]",o=Object.prototype,d=o.hasOwnProperty;function m(h,b,g,D,y,w){var v=i(h),E=i(b),x=v?f:u(h),S=E?f:u(b);x=x==c?p:x,S=S==c?p:S;var T=x==p,A=S==p,C=x==S;if(C&&a(h)){if(!a(b))return!1;v=!0,T=!1}if(C&&!T)return w||(w=new e),v||s(h)?t(h,b,g,D,y,w):r(h,b,x,g,D,y,w);if(!(g&l)){var F=T&&d.call(h,"__wrapped__"),M=A&&d.call(b,"__wrapped__");if(F||M){var I=F?h.value():h,N=M?b.value():b;return w||(w=new e),y(I,N,g,D,w)}}return C?(w||(w=new e),n(h,b,g,D,y,w)):!1}return Go=m,Go}var Yo,c1;function m6(){if(c1)return Yo;c1=1;var e=p6(),t=pi();function r(n,u,i,a,s){return n===u?!0:n==null||u==null||!t(n)&&!t(u)?n!==n&&u!==u:e(n,u,i,a,r,s)}return Yo=r,Yo}var Ko,f1;function g6(){if(f1)return Ko;f1=1;var e=m6();function t(r,n){return e(r,n)}return Ko=t,Ko}var b6=g6();const v6=Qn(b6);function y6({children:e,formOptions:t,submitOptions:r,loading:n}){const u=Ut.useForm(t),{handleSubmit:i,reset:a,watch:s}=u,l=at.useRef(null);at.useEffect(()=>{if(n)return;const b=t==null?void 0:t.defaultValues;b&&(v6(l.current,b)||(a(b),l.current=b))},[n,a,t==null?void 0:t.defaultValues]);const{onSubmit:c,onReset:f,formId:p,submitOnChange:o,registerForm:d}=r||{},m=async b=>{await(c==null?void 0:c(b)),a(b)},h=async()=>{a(t==null?void 0:t.defaultValues),await(f==null?void 0:f())};return at.useEffect(()=>{if(!o)return()=>{};const b=s(g=>i(D=>c==null?void 0:c(D))(g));return()=>b.unsubscribe()},[s,o,i,c]),Q.jsx(Ut.FormProvider,{...u,children:Q.jsx("form",{"data-testid":p,onSubmit:i(m),onReset:h,ref:d,id:p,style:{width:"100%"},children:e})})}function D6({children:e,formOptions:t,submitOptions:r}){const{formId:n,onSubmit:u,onBlur:i}=r,a=Ut.useForm(t),{getFieldState:s,reset:l,getValues:c,handleSubmit:f,trigger:p}=a,o=async()=>{const d=c(),m=Object.keys(d).filter(g=>s(g).isDirty);await p(m);const b=m.filter(g=>!s(g).invalid).reduce((g,D)=>(g[D]=d[D],g),{});Object.keys(b).length>0&&(await(i==null?void 0:i(b)),l({...d,...b},{keepErrors:!0}))};return Q.jsx(Ut.FormProvider,{...a,children:Q.jsx("form",{onBlur:o,onSubmit:f(async d=>{await(u==null?void 0:u(d)),l(d)}),id:n,"data-testid":n,children:e})})}function l1({id:e,name:t,readonly:r,disabled:n,wrapper:u}){const{field:i}=yd(),a=eD(e),s=Q3(a.type);if(!s||!s.renderField)return Q.jsxs(Ie.Box,{children:["Missing render for field type ",a.type]});const{renderField:l,...c}=s,f=i==null?void 0:i(a,c),p=u||Ie.Box;return Q.jsx(p,{"data-testid":"field-container",field:a,sx:f,children:l(a,c,{readonly:r,name:t,disabled:n})})}function w6({section:e,fields:t,fieldNames:r,readonly:n,disabled:u,fieldWrapper:i}){const{section:a}=yd(),s=a==null?void 0:a(e);return Q.jsx(Ie.Box,{"data-testid":"section-container",sx:s,children:t.map((l,c)=>Q.jsx(l1,{id:l,name:(r==null?void 0:r[c])??l,readonly:n,disabled:u,wrapper:i},l))})}ie.AutosaveForm=D6,ie.CalculatedNumber=dd,ie.CheckboxInput=P0,ie.DateInput=I0,ie.DropdownInput=hd,ie.ErrorMessage=Wr,ie.Field=l1,ie.Form=y6,ie.FormFieldLabel=Ur,ie.LabelWithChildren=pa,ie.NumberInput=ld,ie.ReadOnlyField=Br,ie.RendererProvider=rD,ie.Section=w6,ie.TextInput=R0,ie.defaultFieldTypes=md,ie.defaultRules=gn,Object.defineProperty(ie,Symbol.toStringTag,{value:"Module"})}));
@@ -8,12 +8,14 @@ import { FieldTemplate } from '@opengov/form-utils';
8
8
  * @param id - The fieldId to render.
9
9
  * @param name - The name of the field within the form.
10
10
  * @param readonly - Whether the field is readonly.
11
+ * @param disabled - Whether the field is disabled.
11
12
  * @returns A Field component.
12
13
  */
13
- export default function Field({ id, name, readonly, wrapper, }: {
14
+ export default function Field({ id, name, readonly, disabled, wrapper, }: {
14
15
  id: string;
15
16
  name?: string;
16
17
  readonly?: boolean;
18
+ disabled?: boolean;
17
19
  wrapper?: React.ComponentType<{
18
20
  children: React.ReactNode;
19
21
  field: FieldTemplate;
@@ -10,11 +10,12 @@ import { FieldTemplate, SectionTemplate } from '@opengov/form-utils';
10
10
  * @param readonly - Whether the section is readonly.
11
11
  * @returns A Section component.
12
12
  */
13
- export default function Section({ section, fields, fieldNames, readonly, fieldWrapper, }: {
13
+ export default function Section({ section, fields, fieldNames, readonly, disabled, fieldWrapper, }: {
14
14
  section: SectionTemplate;
15
15
  fields: string[];
16
16
  fieldNames?: string[];
17
17
  readonly?: boolean;
18
+ disabled?: boolean;
18
19
  fieldWrapper?: React.ComponentType<{
19
20
  children: React.ReactNode;
20
21
  field: FieldTemplate;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengov/form-renderer",
3
- "version": "0.2.10-beta-date-picker.1",
3
+ "version": "0.2.11-beta-date-picker.2",
4
4
  "description": "OpenGov Smart Forms form renderer",
5
5
  "type": "module",
6
6
  "files": [