@tmf_ciclica/ciclicastorybook 1.2.113 → 1.2.114
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/index.cjs.js +1 -1
- package/dist/index.es.js +4 -12
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -77,7 +77,7 @@ theme.transitions = createTransitions(theme.transitions || {});
|
|
|
77
77
|
|
|
78
78
|
export default theme;`}function ts(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const du=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let o=0;o<t.length;o+=1)n+=+t[o];return n};function fu(e){Object.assign(e,{alpha(t,n){const o=this||e;return o.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:o.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:ni(t,du(n))},lighten(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #fff ${ts(n)})`:Jn(t,n)},darken(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #000 ${ts(n)})`:Xn(t,n)}})}function $r(e={},...t){const{breakpoints:n,mixins:o={},spacing:r,palette:i={},transitions:a={},typography:l={},shape:u,colorSpace:d,...g}=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://v7.mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":St(20));const h=qr({...i,colorSpace:d}),y=Ys(e);let m=ze(y,{mixins:J2(y.breakpoints,o),palette:h,shadows:ou.slice(),typography:eu(h,l),transitions:lu(a),zIndex:{...cu}});if(m=ze(m,g),m=t.reduce((C,p)=>ze(C,p),m),process.env.NODE_ENV!=="production"){const C=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],p=(w,S)=>{let T;for(T in w){const $=w[T];if(C.includes(T)&&Object.keys($).length>0){if(process.env.NODE_ENV!=="production"){const b=Fr("",T);console.error([`MUI: The \`${S}\` component increases the CSS specificity of the \`${T}\` internal state.`,"You can not override it like this: ",JSON.stringify(w,null,2),"",`Instead, you need to use the '&.${b}' syntax:`,JSON.stringify({root:{[`&.${b}`]:$}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
79
79
|
`))}w[T]={}}}};Object.keys(m.components).forEach(w=>{const S=m.components[w].styleOverrides;S&&w.startsWith("Mui")&&p(S,w)})}return m.unstable_sxConfig={...Gn,...g==null?void 0:g.unstable_sxConfig},m.unstable_sx=function(p){return zt({sx:p,theme:this})},m.toRuntimeSource=ii,fu(m),m}function pu(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 mu=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=pu(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function ai(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function li(e){return e==="dark"?mu:[]}function hu(e){const{palette:t={mode:"light"},opacity:n,overlays:o,colorSpace:r,...i}=e,a=qr({...t,colorSpace:r});return{palette:a,opacity:{...ai(a.mode),...n},overlays:o||li(a.mode),...i}}function gu(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 yu=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],bu=e=>(t,n)=>{const o=e.rootSelector||":root",r=e.colorSchemeSelector;let i=r;if(r==="class"&&(i=".%s"),r==="data"&&(i="[data-%s]"),r!=null&&r.startsWith("data-")&&!r.includes("%s")&&(i=`[${r}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return yu(e.cssVarPrefix).forEach(l=>{a[l]=n[l],delete n[l]}),i==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:a}}:i?{[i.replace("%s",t)]:a,[`${o}, ${i.replace("%s",t)}`]:n}:{[o]:{...n,...a}}}if(i&&i!=="media")return`${o}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(i)return i.replace("%s",String(t))}return o};function Cu(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function j(e,t,n){!e[t]&&n&&(e[t]=n)}function nn(e){return typeof e!="string"||!e.startsWith("hsl")?e:ti(e)}function tt(e,t){`${t}Channel`in e||(e[`${t}Channel`]=tn(nn(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().
|
|
80
|
-
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 vu(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Xe=e=>{try{return e()}catch{}},xu=(e="mui")=>P2(e);function yr(e,t,n,o,r){if(!n)return;n=n===!0?{}:n;const i=r==="dark"?"dark":"light";if(!o){t[r]=hu({...n,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:a,...l}=$r({...o,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return t[r]={...n,palette:a,opacity:{...ai(i),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||li(i)},l}function _u(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=gu,colorSchemeSelector:u=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...g}=e,h=Object.keys(n)[0],y=o||(n.light&&h!=="light"?"light":h),m=xu(i),{[y]:C,light:p,dark:w,...S}=n,T={...S};let $=C;if((y==="dark"&&!("dark"in n)||y==="light"&&!("light"in n))&&($=!0),!$)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${y}\` option is either missing or invalid.`:St(21,y));let b;a&&(b="oklch");const v=yr(b,T,$,g,y);p&&!T.light&&yr(b,T,p,void 0,"light"),w&&!T.dark&&yr(b,T,w,void 0,"dark");let x={defaultColorScheme:y,...v,cssVarPrefix:i,colorSchemeSelector:u,rootSelector:d,getCssVar:m,colorSchemes:T,font:{...X2(v.typography),...v.font},spacing:vu(g.spacing)};Object.keys(x.colorSchemes).forEach(F=>{const f=x.colorSchemes[F].palette,E=V=>{const B=V.split("-"),Y=B[1],W=B[2];return m(V,f[Y][W])};f.mode==="light"&&(j(f.common,"background","#fff"),j(f.common,"onBackground","#000")),f.mode==="dark"&&(j(f.common,"background","#000"),j(f.common,"onBackground","#fff"));function k(V,B,Y){if(b){let W;return V===Ct&&(W=`transparent ${((1-Y)*100).toFixed(0)}%`),V===fe&&(W=`#000 ${(Y*100).toFixed(0)}%`),V===pe&&(W=`#fff ${(Y*100).toFixed(0)}%`),`color-mix(in ${b}, ${B}, ${W})`}return V(B,Y)}if(Cu(f,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),f.mode==="light"){j(f.Alert,"errorColor",k(fe,a?m("palette-error-light"):f.error.light,.6)),j(f.Alert,"infoColor",k(fe,a?m("palette-info-light"):f.info.light,.6)),j(f.Alert,"successColor",k(fe,a?m("palette-success-light"):f.success.light,.6)),j(f.Alert,"warningColor",k(fe,a?m("palette-warning-light"):f.warning.light,.6)),j(f.Alert,"errorFilledBg",E("palette-error-main")),j(f.Alert,"infoFilledBg",E("palette-info-main")),j(f.Alert,"successFilledBg",E("palette-success-main")),j(f.Alert,"warningFilledBg",E("palette-warning-main")),j(f.Alert,"errorFilledColor",Xe(()=>f.getContrastText(f.error.main))),j(f.Alert,"infoFilledColor",Xe(()=>f.getContrastText(f.info.main))),j(f.Alert,"successFilledColor",Xe(()=>f.getContrastText(f.success.main))),j(f.Alert,"warningFilledColor",Xe(()=>f.getContrastText(f.warning.main))),j(f.Alert,"errorStandardBg",k(pe,a?m("palette-error-light"):f.error.light,.9)),j(f.Alert,"infoStandardBg",k(pe,a?m("palette-info-light"):f.info.light,.9)),j(f.Alert,"successStandardBg",k(pe,a?m("palette-success-light"):f.success.light,.9)),j(f.Alert,"warningStandardBg",k(pe,a?m("palette-warning-light"):f.warning.light,.9)),j(f.Alert,"errorIconColor",E("palette-error-main")),j(f.Alert,"infoIconColor",E("palette-info-main")),j(f.Alert,"successIconColor",E("palette-success-main")),j(f.Alert,"warningIconColor",E("palette-warning-main")),j(f.AppBar,"defaultBg",E("palette-grey-100")),j(f.Avatar,"defaultBg",E("palette-grey-400")),j(f.Button,"inheritContainedBg",E("palette-grey-300")),j(f.Button,"inheritContainedHoverBg",E("palette-grey-A100")),j(f.Chip,"defaultBorder",E("palette-grey-400")),j(f.Chip,"defaultAvatarColor",E("palette-grey-700")),j(f.Chip,"defaultIconColor",E("palette-grey-700")),j(f.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),j(f.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),j(f.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),j(f.LinearProgress,"primaryBg",k(pe,a?m("palette-primary-main"):f.primary.main,.62)),j(f.LinearProgress,"secondaryBg",k(pe,a?m("palette-secondary-main"):f.secondary.main,.62)),j(f.LinearProgress,"errorBg",k(pe,a?m("palette-error-main"):f.error.main,.62)),j(f.LinearProgress,"infoBg",k(pe,a?m("palette-info-main"):f.info.main,.62)),j(f.LinearProgress,"successBg",k(pe,a?m("palette-success-main"):f.success.main,.62)),j(f.LinearProgress,"warningBg",k(pe,a?m("palette-warning-light"):f.warning.main,.62)),j(f.Skeleton,"bg",b?k(Ct,a?m("palette-text-primary"):f.text.primary,.11):`rgba(${E("palette-text-primaryChannel")} / 0.11)`),j(f.Slider,"primaryTrack",k(pe,a?m("palette-primary-main"):f.primary.main,.62)),j(f.Slider,"secondaryTrack",k(pe,a?m("palette-secondary-main"):f.secondary.main,.62)),j(f.Slider,"errorTrack",k(pe,a?m("palette-error-main"):f.error.main,.62)),j(f.Slider,"infoTrack",k(pe,a?m("palette-info-main"):f.info.main,.62)),j(f.Slider,"successTrack",k(pe,a?m("palette-success-main"):f.success.main,.62)),j(f.Slider,"warningTrack",k(pe,a?m("palette-warning-main"):f.warning.main,.62));const V=b?k(fe,a?m("palette-background-default"):f.background.default,.6825):Tn(f.background.default,.8);j(f.SnackbarContent,"bg",V),j(f.SnackbarContent,"color",Xe(()=>b?Er.text.primary:f.getContrastText(V))),j(f.SpeedDialAction,"fabHoverBg",Tn(f.background.paper,.15)),j(f.StepConnector,"border",E("palette-grey-400")),j(f.StepContent,"border",E("palette-grey-400")),j(f.Switch,"defaultColor",E("palette-common-white")),j(f.Switch,"defaultDisabledColor",E("palette-grey-100")),j(f.Switch,"primaryDisabledColor",k(pe,a?m("palette-primary-main"):f.primary.main,.62)),j(f.Switch,"secondaryDisabledColor",k(pe,a?m("palette-secondary-main"):f.secondary.main,.62)),j(f.Switch,"errorDisabledColor",k(pe,a?m("palette-error-main"):f.error.main,.62)),j(f.Switch,"infoDisabledColor",k(pe,a?m("palette-info-main"):f.info.main,.62)),j(f.Switch,"successDisabledColor",k(pe,a?m("palette-success-main"):f.success.main,.62)),j(f.Switch,"warningDisabledColor",k(pe,a?m("palette-warning-main"):f.warning.main,.62)),j(f.TableCell,"border",k(pe,Ct(a?m("palette-divider"):f.divider,1),.88)),j(f.Tooltip,"bg",k(Ct,a?m("palette-grey-700"):f.grey[700],.92))}if(f.mode==="dark"){j(f.Alert,"errorColor",k(pe,a?m("palette-error-light"):f.error.light,.6)),j(f.Alert,"infoColor",k(pe,a?m("palette-info-light"):f.info.light,.6)),j(f.Alert,"successColor",k(pe,a?m("palette-success-light"):f.success.light,.6)),j(f.Alert,"warningColor",k(pe,a?m("palette-warning-light"):f.warning.light,.6)),j(f.Alert,"errorFilledBg",E("palette-error-dark")),j(f.Alert,"infoFilledBg",E("palette-info-dark")),j(f.Alert,"successFilledBg",E("palette-success-dark")),j(f.Alert,"warningFilledBg",E("palette-warning-dark")),j(f.Alert,"errorFilledColor",Xe(()=>f.getContrastText(f.error.dark))),j(f.Alert,"infoFilledColor",Xe(()=>f.getContrastText(f.info.dark))),j(f.Alert,"successFilledColor",Xe(()=>f.getContrastText(f.success.dark))),j(f.Alert,"warningFilledColor",Xe(()=>f.getContrastText(f.warning.dark))),j(f.Alert,"errorStandardBg",k(fe,a?m("palette-error-light"):f.error.light,.9)),j(f.Alert,"infoStandardBg",k(fe,a?m("palette-info-light"):f.info.light,.9)),j(f.Alert,"successStandardBg",k(fe,a?m("palette-success-light"):f.success.light,.9)),j(f.Alert,"warningStandardBg",k(fe,a?m("palette-warning-light"):f.warning.light,.9)),j(f.Alert,"errorIconColor",E("palette-error-main")),j(f.Alert,"infoIconColor",E("palette-info-main")),j(f.Alert,"successIconColor",E("palette-success-main")),j(f.Alert,"warningIconColor",E("palette-warning-main")),j(f.AppBar,"defaultBg",E("palette-grey-900")),j(f.AppBar,"darkBg",E("palette-background-paper")),j(f.AppBar,"darkColor",E("palette-text-primary")),j(f.Avatar,"defaultBg",E("palette-grey-600")),j(f.Button,"inheritContainedBg",E("palette-grey-800")),j(f.Button,"inheritContainedHoverBg",E("palette-grey-700")),j(f.Chip,"defaultBorder",E("palette-grey-700")),j(f.Chip,"defaultAvatarColor",E("palette-grey-300")),j(f.Chip,"defaultIconColor",E("palette-grey-300")),j(f.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),j(f.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),j(f.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),j(f.LinearProgress,"primaryBg",k(fe,a?m("palette-primary-main"):f.primary.main,.5)),j(f.LinearProgress,"secondaryBg",k(fe,a?m("palette-secondary-main"):f.secondary.main,.5)),j(f.LinearProgress,"errorBg",k(fe,a?m("palette-error-main"):f.error.main,.5)),j(f.LinearProgress,"infoBg",k(fe,a?m("palette-info-main"):f.info.main,.5)),j(f.LinearProgress,"successBg",k(fe,a?m("palette-success-main"):f.success.main,.5)),j(f.LinearProgress,"warningBg",k(fe,a?m("palette-warning-main"):f.warning.main,.5)),j(f.Skeleton,"bg",b?k(Ct,a?m("palette-text-primary"):f.text.primary,.13):`rgba(${E("palette-text-primaryChannel")} / 0.13)`),j(f.Slider,"primaryTrack",k(fe,a?m("palette-primary-main"):f.primary.main,.5)),j(f.Slider,"secondaryTrack",k(fe,a?m("palette-secondary-main"):f.secondary.main,.5)),j(f.Slider,"errorTrack",k(fe,a?m("palette-error-main"):f.error.main,.5)),j(f.Slider,"infoTrack",k(fe,a?m("palette-info-main"):f.info.main,.5)),j(f.Slider,"successTrack",k(fe,a?m("palette-success-main"):f.success.main,.5)),j(f.Slider,"warningTrack",k(fe,a?m("palette-warning-light"):f.warning.main,.5));const V=b?k(pe,a?m("palette-background-default"):f.background.default,.985):Tn(f.background.default,.98);j(f.SnackbarContent,"bg",V),j(f.SnackbarContent,"color",Xe(()=>b?oi.text.primary:f.getContrastText(V))),j(f.SpeedDialAction,"fabHoverBg",Tn(f.background.paper,.15)),j(f.StepConnector,"border",E("palette-grey-600")),j(f.StepContent,"border",E("palette-grey-600")),j(f.Switch,"defaultColor",E("palette-grey-300")),j(f.Switch,"defaultDisabledColor",E("palette-grey-600")),j(f.Switch,"primaryDisabledColor",k(fe,a?m("palette-primary-main"):f.primary.main,.55)),j(f.Switch,"secondaryDisabledColor",k(fe,a?m("palette-secondary-main"):f.secondary.main,.55)),j(f.Switch,"errorDisabledColor",k(fe,a?m("palette-error-main"):f.error.main,.55)),j(f.Switch,"infoDisabledColor",k(fe,a?m("palette-info-main"):f.info.main,.55)),j(f.Switch,"successDisabledColor",k(fe,a?m("palette-success-main"):f.success.main,.55)),j(f.Switch,"warningDisabledColor",k(fe,a?m("palette-warning-light"):f.warning.main,.55)),j(f.TableCell,"border",k(fe,Ct(a?m("palette-divider"):f.divider,1),.68)),j(f.Tooltip,"bg",k(Ct,a?m("palette-grey-700"):f.grey[700],.92))}a||(tt(f.background,"default"),tt(f.background,"paper"),tt(f.common,"background"),tt(f.common,"onBackground"),tt(f,"divider")),Object.keys(f).forEach(V=>{const B=f[V];V!=="tonalOffset"&&!a&&B&&typeof B=="object"&&(B.main&&j(f[V],"mainChannel",tn(nn(B.main))),B.light&&j(f[V],"lightChannel",tn(nn(B.light))),B.dark&&j(f[V],"darkChannel",tn(nn(B.dark))),B.contrastText&&j(f[V],"contrastTextChannel",tn(nn(B.contrastText))),V==="text"&&(tt(f[V],"primary"),tt(f[V],"secondary")),V==="action"&&(B.active&&tt(f[V],"active"),B.selected&&tt(f[V],"selected")))})}),x=t.reduce((F,f)=>ze(F,f),x);const O={prefix:i,disableCssColorScheme:r,shouldSkipGeneratingVar:l,getSelector:bu(x),enableContrastVars:a},{vars:R,generateThemeVars:N,generateStyleSheets:q}=F2(x,O);return x.vars=R,Object.entries(x.colorSchemes[x.defaultColorScheme]).forEach(([F,f])=>{x[F]=f}),x.generateThemeVars=N,x.generateStyleSheets=q,x.generateSpacing=function(){return Gs(g.spacing,Vr(this))},x.getColorSchemeSelector=z2(u),x.spacing=x.generateSpacing(),x.shouldSkipGeneratingVar=l,x.unstable_sxConfig={...Gn,...g==null?void 0:g.unstable_sxConfig},x.unstable_sx=function(f){return zt({sx:f,theme:this})},x.toRuntimeSource=ii,x}function ns(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:qr({...n===!0?{}:n.palette,mode:t})})}function wu(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...a}=e,l=i||"light",u=r==null?void 0:r[l],d={...r,...n?{[l]:{...typeof u!="boolean"&&u,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return $r(e,...t);let g=n;"palette"in e||d[l]&&(d[l]!==!0?g=d[l].palette:l==="dark"&&(g={mode:"dark"}));const h=$r({...e,palette:g},...t);return h.defaultColorScheme=l,h.colorSchemes=d,h.palette.mode==="light"&&(h.colorSchemes.light={...d.light!==!0&&d.light,palette:h.palette},ns(h,"dark",d.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:h.palette},ns(h,"light",d.light)),h}return!n&&!("light"in d)&&l==="light"&&(d.light=!0),_u({...a,colorSchemes:d,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}const Su=wu(),ku="$$material";function Wr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Tu=e=>Wr(e)&&e!=="classes",jt=T2({themeId:ku,defaultTheme:Su,rootShouldForwardProp:Tu}),Wt=I2;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function ju(e){return D2(e)}const Eu=e=>!e||!on(e);function $u(e){return typeof e.main=="string"}function Nu(e,t=[]){if(!$u(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Ur(e=[]){return([,t])=>t&&Nu(t,e)}function Ou(e){return Fr("MuiSlider",e)}const Ze=x2("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Au=e=>{const{open:t}=e;return{offset:ft(t&&Ze.valueLabelOpen),circle:Ze.valueLabelCircle,label:Ze.valueLabelLabel}};function ci(e){const{children:t,className:n,value:o}=e,r=Au(e);return t?J.cloneElement(t,{className:t.props.className},c.jsxs(J.Fragment,{children:[t.props.children,c.jsx("span",{className:ft(r.offset,n),"aria-hidden":!0,children:c.jsx("span",{className:r.circle,children:c.jsx("span",{className:r.label,children:o})})})]})):null}process.env.NODE_ENV!=="production"&&(ci.propTypes={children:s.element.isRequired,className:s.string,value:s.node});function rs(e){return e}const Lu=jt("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Ge(n.color)}`],n.size!=="medium"&&t[`size${Ge(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(Wt(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Ze.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Ze.dragging}`]:{[`& .${Ze.thumb}, & .${Ze.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(Ur()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),Mu=jt("span",{name:"MuiSlider",slot:"Rail"})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),Ru=jt("span",{name:"MuiSlider",slot:"Track"})(Wt(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter(Ur()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:e.lighten(e.palette[t].main,.62),borderColor:e.lighten(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:e.darken(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:e.darken(e.palette[t].main,.5)})}}}))]}))),Du=jt("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${Ge(n.color)}`],n.size!=="medium"&&t[`thumbSize${Ge(n.size)}`]]}})(Wt(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Ze.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(Ur()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${Ze.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Ze.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),ui=jt(ci,{name:"MuiSlider",slot:"ValueLabel"})(Wt(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Ze.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Ze.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})));process.env.NODE_ENV!=="production"&&(ui.propTypes={children:s.element.isRequired,index:s.number.isRequired,open:s.bool.isRequired,value:s.node});const Iu=jt("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Wr(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(Wt(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),Pu=jt("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Wr(e)&&e!=="markLabelActive"})(Wt(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),Vu=e=>{const{disabled:t,dragging:n,marked:o,orientation:r,track:i,classes:a,color:l,size:u}=e,d={root:["root",t&&"disabled",n&&"dragging",o&&"marked",r==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",l&&`color${Ge(l)}`,u&&`size${Ge(u)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",u&&`thumbSize${Ge(u)}`,l&&`thumbColor${Ge(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Gc(d,Ou,a)},Bu=({children:e})=>e,di=J.forwardRef(function(t,n){const o=ju({props:t,name:"MuiSlider"}),r=Xc(),{"aria-label":i,"aria-valuetext":a,"aria-labelledby":l,component:u="span",components:d={},componentsProps:g={},color:h="primary",classes:y,className:m,disableSwap:C=!1,disabled:p=!1,getAriaLabel:w,getAriaValueText:S,marks:T=!1,max:$=100,min:b=0,name:v,onChange:x,onChangeCommitted:O,orientation:R="horizontal",shiftStep:N=10,size:q="medium",step:F=1,scale:f=rs,slotProps:E,slots:k,tabIndex:V,track:B="normal",value:Y,valueLabelDisplay:W="off",valueLabelFormat:ae=rs,...M}=o,A={...o,isRtl:r,max:$,min:b,classes:y,disabled:p,disableSwap:C,orientation:R,marks:T,color:h,size:q,step:F,shiftStep:N,scale:f,track:B,valueLabelDisplay:W,valueLabelFormat:ae},{axisProps:Q,getRootProps:K,getHiddenInputProps:I,getThumbProps:Z,open:te,active:G,axis:U,focusedThumbIndex:re,range:ee,dragging:le,marks:D,values:se,trackOffset:Le,trackLeap:Ye,getThumbStyle:z}=u0({...A,rootRef:n});A.marked=D.length>0&&D.some(ke=>ke.label),A.dragging=le,A.focusedThumbIndex=re;const ne=Vu(A),xe=(k==null?void 0:k.root)??d.Root??Lu,be=(k==null?void 0:k.rail)??d.Rail??Mu,$e=(k==null?void 0:k.track)??d.Track??Ru,Ve=(k==null?void 0:k.thumb)??d.Thumb??Du,Ke=(k==null?void 0:k.valueLabel)??d.ValueLabel??ui,Ce=(k==null?void 0:k.mark)??d.Mark??Iu,Be=(k==null?void 0:k.markLabel)??d.MarkLabel??Pu,L=(k==null?void 0:k.input)??d.Input??"input",P=(E==null?void 0:E.root)??g.root,H=(E==null?void 0:E.rail)??g.rail,ie=(E==null?void 0:E.track)??g.track,ge=(E==null?void 0:E.thumb)??g.thumb,X=(E==null?void 0:E.valueLabel)??g.valueLabel,Ne=(E==null?void 0:E.mark)??g.mark,Me=(E==null?void 0:E.markLabel)??g.markLabel,je=(E==null?void 0:E.input)??g.input,qe=ct({elementType:xe,getSlotProps:K,externalSlotProps:P,externalForwardedProps:M,additionalProps:{...Eu(xe)&&{as:u}},ownerState:{...A,...P==null?void 0:P.ownerState},className:[ne.root,m]}),Zt=ct({elementType:be,externalSlotProps:H,ownerState:A,className:ne.rail}),Ri=ct({elementType:$e,externalSlotProps:ie,additionalProps:{style:{...Q[U].offset(Le),...Q[U].leap(Ye)}},ownerState:{...A,...ie==null?void 0:ie.ownerState},className:ne.track}),Qn=ct({elementType:Ve,getSlotProps:Z,externalSlotProps:ge,ownerState:{...A,...ge==null?void 0:ge.ownerState},className:ne.thumb}),Di=ct({elementType:Ke,externalSlotProps:X,ownerState:{...A,...X==null?void 0:X.ownerState},className:ne.valueLabel}),er=ct({elementType:Ce,externalSlotProps:Ne,ownerState:A,className:ne.mark}),tr=ct({elementType:Be,externalSlotProps:Me,ownerState:A,className:ne.markLabel}),Ii=ct({elementType:L,getSlotProps:I,externalSlotProps:je,ownerState:A});return c.jsxs(xe,{...qe,children:[c.jsx(be,{...Zt}),c.jsx($e,{...Ri}),D.filter(ke=>ke.value>=b&&ke.value<=$).map((ke,Ae)=>{const nr=Dn(ke.value,b,$),pn=Q[U].offset(nr);let et;return B===!1?et=se.includes(ke.value):et=B==="normal"&&(ee?ke.value>=se[0]&&ke.value<=se[se.length-1]:ke.value<=se[0])||B==="inverted"&&(ee?ke.value<=se[0]||ke.value>=se[se.length-1]:ke.value>=se[0]),c.jsxs(J.Fragment,{children:[c.jsx(Ce,{"data-index":Ae,...er,...!on(Ce)&&{markActive:et},style:{...pn,...er.style},className:ft(er.className,et&&ne.markActive)}),ke.label!=null?c.jsx(Be,{"aria-hidden":!0,"data-index":Ae,...tr,...!on(Be)&&{markLabelActive:et},style:{...pn,...tr.style},className:ft(ne.markLabel,tr.className,et&&ne.markLabelActive),children:ke.label}):null]},Ae)}),se.map((ke,Ae)=>{const nr=Dn(ke,b,$),pn=Q[U].offset(nr),et=W==="off"?Bu:Ke;return c.jsx(et,{...!on(et)&&{valueLabelFormat:ae,valueLabelDisplay:W,value:typeof ae=="function"?ae(f(ke),Ae):ae,index:Ae,open:te===Ae||G===Ae||W==="on",disabled:p},...Di,children:c.jsx(Ve,{"data-index":Ae,...Qn,className:ft(ne.thumb,Qn.className,G===Ae&&ne.active,re===Ae&&ne.focusVisible),style:{...pn,...z(Ae),...Qn.style},children:c.jsx(L,{"data-index":Ae,"aria-label":w?w(Ae):i,"aria-valuenow":f(ke),"aria-labelledby":l,"aria-valuetext":S?S(f(ke),Ae):a,value:se[Ae],...Ii})})},Ae)})]})});process.env.NODE_ENV!=="production"&&(di.propTypes={"aria-label":Eo(s.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":s.string,"aria-valuetext":Eo(s.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),components:s.shape({Input:s.elementType,Mark:s.elementType,MarkLabel:s.elementType,Rail:s.elementType,Root:s.elementType,Thumb:s.elementType,Track:s.elementType,ValueLabel:s.elementType}),componentsProps:s.shape({input:s.oneOfType([s.func,s.object]),mark:s.oneOfType([s.func,s.object]),markLabel:s.oneOfType([s.func,s.object]),rail:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),thumb:s.oneOfType([s.func,s.object]),track:s.oneOfType([s.func,s.object]),valueLabel:s.oneOfType([s.func,s.shape({children:s.element,className:s.string,open:s.bool,style:s.object,value:s.node,valueLabelDisplay:s.oneOf(["auto","off","on"])})])}),defaultValue:s.oneOfType([s.arrayOf(s.number),s.number]),disabled:s.bool,disableSwap:s.bool,getAriaLabel:s.func,getAriaValueText:s.func,marks:s.oneOfType([s.arrayOf(s.shape({label:s.node,value:s.number.isRequired})),s.bool]),max:s.number,min:s.number,name:s.string,onChange:s.func,onChangeCommitted:s.func,orientation:s.oneOf(["horizontal","vertical"]),scale:s.func,shiftStep:s.number,size:s.oneOfType([s.oneOf(["small","medium"]),s.string]),slotProps:s.shape({input:s.oneOfType([s.func,s.object]),mark:s.oneOfType([s.func,s.object]),markLabel:s.oneOfType([s.func,s.object]),rail:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),thumb:s.oneOfType([s.func,s.object]),track:s.oneOfType([s.func,s.object]),valueLabel:s.oneOfType([s.func,s.shape({children:s.element,className:s.string,open:s.bool,style:s.object,value:s.node,valueLabelDisplay:s.oneOf(["auto","off","on"])})])}),slots:s.shape({input:s.elementType,mark:s.elementType,markLabel:s.elementType,rail:s.elementType,root:s.elementType,thumb:s.elementType,track:s.elementType,valueLabel:s.elementType}),step:s.number,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,track:s.oneOf(["inverted","normal",!1]),value:s.oneOfType([s.arrayOf(s.number),s.number]),valueLabelDisplay:s.oneOf(["auto","off","on"]),valueLabelFormat:s.oneOfType([s.func,s.string])});const Fu="_slider_1prh1_2",zu="_playButton_1prh1_14",qu="_sliderOpen_1prh1_25",Wu="_sliderResults_1prh1_29",Yt={slider:Fu,playButton:zu,sliderOpen:qu,sliderResults:Wu},fi=({onResults:e=!1,defaultYear:t=2025,firstYear:n=2025,lastYear:o=2050,marcas:r=null,zIndex:i=10,rightBarOpen:a=!1,conditionToBeRuning:l=null,onChange:u=d=>{console.log("year changed to ",d)}})=>{const g=r||((b,v)=>{const x=[];x.push({label:"",value:b});const O=Math.ceil(b/10)*10;for(let R=O;R<v;R+=10)x.push({label:"",value:R});return x[x.length-1].value!==v&&x.push({label:"",value:v}),x})(n,o),[h,y]=_.useState(t);_.useEffect(()=>{y(t)},[t]);const m=(b,v)=>{y(v),u(v)},[C,p]=_.useState(!1);_.useEffect(()=>{t&&console.log("defaultYear changed:",t),t&&y(t)},[t]),_.useEffect(()=>{l===!1&&p(!1)},[l]);const w=()=>{p(!0)},S=()=>{p(!1)};((b,v,x=[])=>{const O=_.useRef();_.useEffect(()=>{O.current=b},[b]),_.useEffect(()=>{function R(){O.current()}{let N=setInterval(R,v);return()=>clearInterval(N)}},[v,...x])})(()=>{C&&y(b=>{const v=b+1;return v>o?(u(n),n):(u(v),v)})},1e3,[n,o,C]);const $=Qr.createTheme({palette:{primary:{main:"#605b56"}},components:{MuiSlider:{styleOverrides:{mark:{height:10,backgroundColor:"#605b56"},valueLabel:{backgroundColor:"transparent",color:"#605b56",padding:0,top:3}}}}});return c.jsx(Gi.ThemeProvider,{theme:$,children:c.jsxs(Qr.Box,{sx:{width:400},className:`${e?Yt.sliderResults:Yt.slider} ${a?Yt.sliderOpen:""}`,style:{zIndex:i},children:[n,c.jsx(di,{"aria-label":"TimeSlider",value:h,valueLabelDisplay:"on",step:1,marks:g,min:n,max:o,onChange:m,color:"primary",size:"small"}),o,!C&&c.jsx("button",{className:Yt.playButton,onClick:w,children:c.jsx("img",{src:Hc,alt:"Play"})}),C&&c.jsx("button",{className:Yt.playButton,onClick:S,children:c.jsx("img",{src:Kc,alt:"Pause"})})]})})};fi.propTypes={defaultYear:s.number,onResults:s.bool,firstYear:s.number,lastYear:s.number,marcas:s.arrayOf(s.shape({label:s.string,value:s.number})),zIndex:s.number,rightBarOpen:s.bool,onChange:s.func};const Uu="_TopNavMenuContainer_12mp4_2",Zu="_topNavOptions_12mp4_13",Hu="_active_12mp4_27",br={TopNavMenuContainer:Uu,topNavOptions:Zu,active:Hu},pi=({options:e=[],containerStyles:t,borderColor:n="red",textColor:o="white",onChangeNavLink:r=i=>{console.log("Changed NavLink",i)}})=>{const{t:i}=oe.useTranslation();return c.jsx("div",{className:br.TopNavMenuContainer,style:{...t},children:e.map((a,l)=>c.jsx(ys.NavLink,{to:a.url,className:({isActive:u})=>`${br.topNavOptions} ${u?br.active:""} `,onClick:()=>r(a.url),style:({isActive:u})=>({color:o,borderBottom:u?`5px solid ${n}`:"5px solid transparent"}),children:i(a.name)},l))})};pi.propTypes={options:s.arrayOf(s.object),cssProps:s.shape({borderColor:s.string.isRequired,textColor:s.string.isRequired})};const Ku="_LogInButton_1vxj5_2",Gu={LogInButton:Ku},mi=({cssClass:e,notLoggedInLabel:t="Log in",loggedInLabel:n="Log out",containerStyles:o,userName:r="",isLoggedIn:i=!1,onClickLogIn:a=()=>{console.log("Login clicked")},onClickLogOut:l=()=>{console.log("Logout clicked")}})=>{const{t:u}=oe.useTranslation();return c.jsx("div",{style:{...o},className:`${Gu.LogInButton} link ${e}`,onClick:i?l:a,children:i?r||u(n):u(t)})};mi.propTypes={cssClass:s.string,notLoggedInLabel:s.string,loggedInLabel:s.string,containerStyles:s.object,userName:s.string,isLoggedIn:s.bool};const Yu="_elementSelector_1ox68_2",Xu="_header_1ox68_14",Ju="_nameDateContainer_1ox68_24",Qu="_elementName_1ox68_40",e1="_elementDate_1ox68_54",t1="_buttonsContainer_1ox68_68",n1="_elementListContainer_1ox68_77",r1="_newElementButtonContainer_1ox68_81",nt={elementSelector:Yu,header:Xu,nameDateContainer:Ju,elementName:Qu,elementDate:e1,buttonsContainer:t1,elementListContainer:n1,newElementButtonContainer:r1},o1="_listElement_s4s4h_3",s1="_elementNameDate_s4s4h_19",i1="_elementNameContainer_s4s4h_30",a1="_elementName_s4s4h_19",l1="_elementDate_s4s4h_47",c1="_nameAndEye_s4s4h_50",u1="_elementButtons_s4s4h_55",d1="_moreInfoContainer_s4s4h_78",f1="_moreInfo_s4s4h_78",We={listElement:o1,elementNameDate:s1,elementNameContainer:i1,elementName:a1,elementDate:l1,nameAndEye:c1,elementButtons:u1,break:"_break_s4s4h_73",moreInfoContainer:d1,moreInfo:f1},p1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Eliminar'%3e%3ccircle%20id='Ellipse%20220'%20cx='15.5106'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='Vector'%20d='M20.8581%2010.5548H17.5491V10.4015C17.5491%209.17493%2016.6257%208.255%2015.4714%208.255C14.3171%208.255%2013.3167%209.17493%2013.3167%2010.4015V10.5548H10.0846C9.69985%2010.5548%209.46899%2010.7848%209.46899%2011.1681C9.46899%2011.5514%209.69985%2011.7814%2010.0846%2011.7814H10.2385V21.2106C10.2385%2022.3605%2011.162%2023.3571%2012.3932%2023.3571H18.5495C19.7038%2023.3571%2020.7042%2022.4372%2020.7042%2021.2106V11.7047H20.9351C21.2429%2011.7047%2021.5507%2011.4747%2021.5507%2011.0914C21.5507%2010.7081%2021.1659%2010.5548%2020.8581%2010.5548ZM14.471%2010.4015C14.471%209.86488%2014.9327%209.40491%2015.4714%209.40491C16.01%209.40491%2016.3948%209.86488%2016.3948%2010.4015V10.5548H14.471V10.4015ZM16.3948%2018.8342V15.0011C16.3948%2014.6178%2016.6257%2014.3878%2017.0104%2014.3878C17.3952%2014.3878%2017.6261%2014.6178%2017.6261%2015.0011V18.8342C17.6261%2019.1408%2017.3952%2019.4474%2017.0104%2019.4474C16.6257%2019.4474%2016.3948%2019.1408%2016.3948%2018.8342ZM13.3167%2018.8342V15.0011C13.3167%2014.6178%2013.5475%2014.3878%2013.9323%2014.3878C14.3171%2014.3878%2014.5479%2014.6178%2014.5479%2015.0011V18.8342C14.5479%2019.1408%2014.3171%2019.4474%2013.9323%2019.4474C13.5475%2019.4474%2013.3167%2019.1408%2013.3167%2018.8342Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e",m1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%209259'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.3062'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cg%20id='Group%203973'%3e%3cg%20id='Rectangle%20495'%3e%3cmask%20id='path-2-inside-1_4451_10560'%20fill='white'%3e%3crect%20x='10.4033'%20y='7.70422'%20width='12.8'%20height='12.8'%20rx='1'/%3e%3c/mask%3e%3crect%20x='10.4033'%20y='7.70422'%20width='12.8'%20height='12.8'%20rx='1'%20stroke='%23605B56'%20stroke-width='3'%20mask='url(%23path-2-inside-1_4451_10560)'/%3e%3c/g%3e%3cg%20id='Group%203972'%3e%3crect%20id='Rectangle%20496'%20x='7.2041'%20y='10.9042'%20width='12.8'%20height='12.8'%20rx='1'%20fill='%23605B56'/%3e%3cpath%20id='+'%20d='M16.3785%2018.0509H14.3838V20.0776H12.9331V18.0509H10.9385V16.6749H12.9331V14.6376H14.3838V16.6749H16.3785V18.0509Z'%20fill='%23FDFDFD'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",h1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%209260'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='Vector'%20d='M8.20744%208.70422C7.34769%208.70422%206.88873%209.71735%207.45568%2010.3637L13.3518%2017.085C13.5118%2017.2675%2013.6%2017.5018%2013.6%2017.7445V23.2443C13.6%2023.6283%2013.8199%2023.9783%2014.1658%2024.1451L15.9658%2025.0128C16.6297%2025.3329%2017.4%2024.8491%2017.4%2024.112V17.7445C17.4%2017.5018%2017.4882%2017.2675%2017.6482%2017.085L23.5443%2010.3637C24.1113%209.71735%2023.6523%208.70422%2022.7926%208.70422H8.20744Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e",g1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%206725'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.7148'%20r='14.3521'%20stroke='%23605B56'%20stroke-opacity='0.5'%20stroke-width='1.5'/%3e%3cg%20id='Group%206724'%3e%3cpath%20id='Vector'%20d='M17.4114%2023.3302C17.4114%2024.5419%2016.4269%2027.4724%2015.2126%2027.4724C13.9982%2027.4724%2013.0137%2024.5419%2013.0137%2023.3302C13.0137%2022.7483%2013.2453%2022.1902%2013.6577%2021.7787C14.0701%2021.3673%2014.6294%2021.1361%2015.2126%2021.1361C15.7957%2021.1361%2016.355%2021.3673%2016.7674%2021.7787C17.1798%2022.1902%2017.4114%2022.7483%2017.4114%2023.3302Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Union'%20d='M15.2919%2020.6088H11.2899L11.289%2020.6078C10.6273%2020.7718%209.36856%2021.3396%209.39931%2023.2845C9.39931%2023.2845%207.41254%2021.7976%208.17372%2019.0179L8.25575%2018.7445C8.59675%2017.7118%209.66004%2016.7306%2010.7714%2016.2435C10.7337%2012.8666%2011.5045%208.19644%2015.2919%204.724V20.6088ZM10.6835%2017.4164C10.5323%2017.5091%2010.3819%2017.6125%2010.2372%2017.7279C9.77215%2018.099%209.43634%2018.5195%209.26747%2018.8988L9.20595%2019.058C8.95666%2019.8145%208.9632%2020.4347%209.07607%2020.9291C9.34144%2020.5645%209.66233%2020.2832%209.9999%2020.0746C10.2365%2019.9284%2010.4715%2019.8251%2010.6835%2019.7494V17.4164Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Union_2'%20d='M15.293%204.724C19.0931%208.20817%2019.8548%2012.8981%2019.8115%2016.2777C20.8629%2016.7859%2021.8411%2017.7218%2022.165%2018.7045C23.1398%2021.6599%2021.0225%2023.2445%2021.0225%2023.2445C21.051%2021.4361%2019.9648%2020.8184%2019.2803%2020.6088H15.293V4.724ZM19.7676%2017.3949C19.7586%2017.5313%2019.7493%2017.6646%2019.7383%2017.7943V19.7094C19.9502%2019.7851%2020.1854%2019.8884%2020.4219%2020.0345C20.7595%2020.2432%2021.0794%2020.5253%2021.3447%2020.89C21.4466%2020.444%2021.4627%2019.8956%2021.2812%2019.2367L21.2148%2019.0179C21.0772%2018.6004%2020.7157%2018.1118%2020.1846%2017.6879C20.0493%2017.58%2019.9088%2017.4829%2019.7676%2017.3949Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cg%20id='Vector_2'%3e%3cpath%20d='M12.541%208.28445C12.541%208.28445%2014.8218%209.81829%2018.0434%208.28445C18.0434%208.28445%2016.9978%206.03912%2015.2919%204.61267C15.2919%204.61267%2013.7894%205.92343%2012.541%208.28445Z'%20fill='%23FDFDFD'/%3e%3cpath%20d='M15.3057%205.29626C15.9532%205.9116%2016.4918%206.63792%2016.8867%207.2533C17.0801%207.55466%2017.2355%207.82605%2017.3516%208.03748C16.0573%208.54342%2014.966%208.52427%2014.1807%208.36951C13.781%208.29074%2013.4584%208.17533%2013.2266%208.07556C13.7607%207.14513%2014.32%206.40895%2014.7646%205.88806C14.9759%205.64056%2015.1621%205.44302%2015.3057%205.29626Z'%20stroke='%23605B56'%20stroke-opacity='0.5'/%3e%3c/g%3e%3cpath%20id='Vector_3'%20d='M17.6984%2012.9862C17.6985%2013.4539%2017.5596%2013.9111%2017.2993%2014.3001C17.039%2014.689%2016.669%2014.9922%2016.236%2015.1712C15.803%2015.3503%2015.3265%2015.3972%2014.8668%2015.3061C14.4071%2015.2149%2013.9848%2014.9898%2013.6533%2014.6591C13.3218%2014.3285%2013.0961%2013.9072%2013.0046%2013.4485C12.9131%2012.9898%2012.96%2012.5143%2013.1393%2012.0822C13.3186%2011.6501%2013.6224%2011.2808%2014.0121%2011.021C14.4018%2010.7611%2014.86%2010.6224%2015.3287%2010.6224C15.957%2010.6224%2016.5597%2010.8715%2017.004%2011.3147C17.4484%2011.758%2017.6982%2012.3593%2017.6984%2012.9862Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_4'%20d='M17.1358%2013.0038C17.1358%2013.36%2017.0299%2013.7083%2016.8316%2014.0045C16.6332%2014.3007%2016.3513%2014.5316%2016.0214%2014.6679C15.6916%2014.8042%2015.3286%2014.8399%2014.9784%2014.7704C14.6282%2014.7009%2014.3066%2014.5294%2014.0541%2014.2774C13.8017%2014.0255%2013.6297%2013.7046%2013.5601%2013.3552C13.4904%2013.0058%2013.5262%2012.6436%2013.6628%2012.3145C13.7994%2011.9853%2014.0308%2011.704%2014.3277%2011.5061C14.6245%2011.3082%2014.9736%2011.2025%2015.3306%2011.2025C15.8094%2011.2025%2016.2685%2011.3923%2016.6071%2011.7301C16.9456%2012.0679%2017.1358%2012.526%2017.1358%2013.0038Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_5'%20d='M16.7061%2013.2093C16.6508%2013.2093%2016.5978%2013.1874%2016.5588%2013.1485C16.5197%2013.1095%2016.4978%2013.0566%2016.4978%2013.0015C16.4974%2012.7236%2016.3866%2012.4572%2016.1897%2012.2607C15.9928%2012.0642%2015.7258%2011.9537%2015.4473%2011.9533C15.4175%2011.9582%2015.3869%2011.9566%2015.3578%2011.9485C15.3287%2011.9405%2015.3017%2011.9262%2015.2786%2011.9067C15.2556%2011.8872%2015.237%2011.8629%2015.2244%2011.8356C15.2117%2011.8082%2015.2051%2011.7784%2015.2051%2011.7482C15.2051%2011.7181%2015.2117%2011.6883%2015.2244%2011.6609C15.237%2011.6336%2015.2556%2011.6093%2015.2786%2011.5898C15.3017%2011.5703%2015.3287%2011.556%2015.3578%2011.5479C15.3869%2011.5399%2015.4175%2011.5383%2015.4473%2011.5432C15.8348%2011.5435%2016.2063%2011.6973%2016.4803%2011.9707C16.7543%2012.2441%2016.9084%2012.6148%2016.9088%2013.0015C16.9088%2013.0557%2016.8876%2013.1077%2016.8498%2013.1465C16.8119%2013.1854%2016.7603%2013.2079%2016.7061%2013.2093Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_6'%20d='M16.8082%2013.6607C16.8082%2013.7106%2016.7934%2013.7594%2016.7656%2013.8008C16.7378%2013.8423%2016.6984%2013.8746%2016.6522%2013.8937C16.606%2013.9128%2016.5552%2013.9178%2016.5062%2013.9081C16.4571%2013.8983%2016.4121%2013.8743%2016.3768%2013.8391C16.3414%2013.8038%2016.3173%2013.7589%2016.3076%2013.7099C16.2978%2013.661%2016.3028%2013.6103%2016.322%2013.5642C16.3411%2013.5182%2016.3735%2013.4788%2016.4151%2013.4511C16.4566%2013.4234%2016.5055%2013.4086%2016.5555%2013.4086C16.6225%2013.4086%2016.6868%2013.4351%2016.7342%2013.4824C16.7816%2013.5297%2016.8082%2013.5939%2016.8082%2013.6607Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_7'%20d='M15.6008%2016.0612C15.5633%2016.0097%2015.5141%2015.9677%2015.4573%2015.9388C15.4005%2015.9099%2015.3376%2015.8949%2015.2738%2015.8949H15.1898C15.126%2015.8948%2015.0631%2015.9099%2015.0062%2015.9388C14.9494%2015.9677%2014.9002%2016.0096%2014.8627%2016.0612C14.8627%2016.0612%2013.6074%2017.4973%2014.1816%2021.0915C14.4989%2023.0777%2015.2314%2023.6694%2015.2314%2023.6694C15.2314%2023.6694%2015.9639%2023.0777%2016.2819%2021.0915C16.8561%2017.4973%2015.6008%2016.0612%2015.6008%2016.0612Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_8'%20d='M15.1468%2015.8949C15.083%2015.8948%2015.0201%2015.9099%2014.9632%2015.9388C14.9064%2015.9677%2014.8572%2016.0096%2014.8198%2016.0612C14.8198%2016.0612%2013.5645%2017.4973%2014.1387%2021.0915C14.456%2023.0777%2015.1884%2023.6694%2015.1884%2023.6694V15.8949H15.1468Z'%20fill='%23FDFDFD'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",y1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='15.3062'%20cy='15.2144'%20r='14.3521'%20stroke='%2392898A'%20stroke-width='1.5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.9898%2012.7234V9.89008C11.9898%208.88815%2012.3811%207.92726%2013.0777%207.21879C13.7743%206.51032%2014.719%206.1123%2015.7041%206.1123C16.6892%206.1123%2017.6339%206.51032%2018.3305%207.21879C19.0271%207.92726%2019.4184%208.88815%2019.4184%209.89008V12.7234H20.347C20.8395%2012.7234%2021.3119%2012.9224%2021.6602%2013.2767C22.0084%2013.6309%2022.2041%2014.1113%2022.2041%2014.6123V21.2234C22.2041%2021.7244%2022.0084%2022.2048%2021.6602%2022.5591C21.3119%2022.9133%2020.8395%2023.1123%2020.347%2023.1123H11.0612C10.5687%2023.1123%2010.0963%2022.9133%209.74805%2022.5591C9.39976%2022.2048%209.2041%2021.7244%209.2041%2021.2234V14.6123C9.2041%2014.1113%209.39976%2013.6309%209.74805%2013.2767C10.0963%2012.9224%2010.5687%2012.7234%2011.0612%2012.7234H11.9898ZM13.847%209.89008C13.847%209.38912%2014.0426%208.90867%2014.3909%208.55444C14.7392%208.2002%2015.2116%208.00119%2015.7041%208.00119C16.1966%208.00119%2016.669%208.2002%2017.0173%208.55444C17.3656%208.90867%2017.5612%209.38912%2017.5612%209.89008V12.7234H13.847V9.89008ZM15.7041%2015.5567C15.9504%2015.5567%2016.1866%2015.6563%2016.3607%2015.8334C16.5348%2016.0105%2016.6327%2016.2507%2016.6327%2016.5012V19.3345C16.6327%2019.585%2016.5348%2019.8252%2016.3607%2020.0023C16.1866%2020.1795%2015.9504%2020.279%2015.7041%2020.279C15.4578%2020.279%2015.2216%2020.1795%2015.0475%2020.0023C14.8734%2019.8252%2014.7755%2019.585%2014.7755%2019.3345V16.5012C14.7755%2016.2507%2014.8734%2016.0105%2015.0475%2015.8334C15.2216%2015.6563%2015.4578%2015.5567%2015.7041%2015.5567Z'%20fill='%2392898A'/%3e%3c/svg%3e",b1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Editar'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.1021'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cg%20id='Group%203792'%3e%3cpath%20id='Vector%20530'%20d='M22.469%2010.8343L19.54%207.90531C19.3447%207.71005%2019.0281%207.71005%2018.8329%207.90531L8.39131%2018.3469C8.31762%2018.4206%208.2688%2018.5154%208.25167%2018.6182L7.66586%2022.1331C7.60946%2022.4715%207.90285%2022.7649%208.24126%2022.7085L11.7561%2022.1227C11.8589%2022.1055%2011.9538%2022.0567%2012.0275%2021.983L22.469%2011.5415C22.6643%2011.3462%2022.6643%2011.0296%2022.469%2010.8343Z'%20stroke='%23605B56'/%3e%3cpath%20id='Vector%20531'%20d='M9.00391%2017.7334L12.6401%2021.3695'%20stroke='%23605B56'/%3e%3cpath%20id='Vector%20614'%20d='M19.4292%207.55176L9.24805%2017.733L12.6418%2021.1267L22.823%2010.9455L19.4292%207.55176Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",C1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%206729'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.1021'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='i'%20d='M14%209.008C14%208.708%2014.102%208.468%2014.306%208.288C14.51%208.096%2014.78%208%2015.116%208C15.452%208%2015.722%208.096%2015.926%208.288C16.13%208.468%2016.232%208.708%2016.232%209.008C16.232%209.308%2016.13%209.554%2015.926%209.746C15.722%209.926%2015.452%2010.016%2015.116%2010.016C14.78%2010.016%2014.51%209.926%2014.306%209.746C14.102%209.554%2014%209.308%2014%209.008ZM15.926%2011.906V21.788H14.288V11.906H15.926Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e";var os;function Nr(){return Nr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Nr.apply(null,arguments)}var v1=function(t){return J.createElement("svg",Nr({xmlns:"http://www.w3.org/2000/svg",width:26,height:14,fill:"none"},t),os||(os=J.createElement("g",{fill:"currentColor"},J.createElement("path",{d:"M12.95.408C7.659.408 2.849 2.772.083 6.726a.47.47 0 0 0 0 .532c2.761 3.955 7.571 6.313 12.867 6.313s10.106-2.358 12.867-6.313a.47.47 0 0 0 0-.532C23.05 2.772 18.24.408 12.95.408m0 10.814A4.24 4.24 0 0 1 8.718 6.99a4.24 4.24 0 0 1 4.232-4.232 4.24 4.24 0 0 1 4.232 4.232 4.24 4.24 0 0 1-4.232 4.232"}),J.createElement("path",{d:"M12.951 10.297a3.307 3.307 0 1 0 0-6.614 3.307 3.307 0 0 0 0 6.614"}))))};const x1="data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%200%2026%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%205207'%3e%3cpath%20id='Vector'%20d='M12.9837%206.40625C11.1707%206.40625%209.69531%207.88162%209.69531%209.69462C9.69531%2010.0276%209.74618%2010.3514%209.83869%2010.652C9.93579%2010.9711%2010.0792%2011.2718%2010.2642%2011.54L14.8291%206.97512C14.5562%206.79013%2014.2602%206.64676%2013.9411%206.54962C13.6404%206.45712%2013.3167%206.40625%2012.9837%206.40625Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_2'%20d='M19.4938%204.44079C19.318%204.36678%2019.1191%204.40841%2018.985%204.53792L16.3534%207.16955V7.17415C16.543%207.42855%2016.7049%207.70604%2016.8344%208.00204C17.0656%208.52004%2017.1905%209.09354%2017.1905%209.69478C17.1905%2012.0165%2015.3035%2013.9035%2012.9818%2013.9035C12.3805%2013.9035%2011.807%2013.7787%2011.289%2013.5474C10.993%2013.4179%2010.7155%2013.256%2010.4611%2013.0664H10.4565L8.52788%2014.995C8.41225%2015.1153%208.36601%2015.2864%208.41225%2015.4437C8.45389%2015.6055%208.57875%2015.7304%208.74063%2015.772C10.0958%2016.1189%2011.511%2016.2947%2012.9494%2016.2947C18.245%2016.2947%2023.055%2013.9359%2025.8161%209.98153C25.9271%209.82429%2025.9271%209.61153%2025.8161%209.45427C24.2991%207.27591%2022.1115%205.54154%2019.4938%204.44079Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_3'%20d='M12.9843%2012.979C14.7973%2012.979%2016.268%2011.5082%2016.268%209.6952C16.268%209.35295%2016.2171%209.0292%2016.12%208.71933C16.0229%208.4002%2015.8749%208.10419%2015.6899%207.83594L11.125%2012.4008C11.3933%2012.5858%2011.6893%2012.7338%2012.0084%2012.831C12.3183%2012.9281%2012.6466%2012.979%2012.9843%2012.979Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_4'%20d='M9.12048%2011.3694C8.89386%2010.856%208.769%2010.2918%208.769%209.69516C8.769%207.3734%2010.656%205.48178%2012.9824%205.48178C13.579%205.48178%2014.1433%205.60667%2014.6566%205.83329C14.9526%205.95815%2015.2347%206.12004%2015.4891%206.31428L17.3808%204.42267L21.0114%200.792026C21.1918%200.611646%2021.1918%200.315664%2021.0114%200.135285C20.831%20-0.0450949%2020.535%20-0.0450949%2020.3546%200.135285L16.8951%203.59478C15.6186%203.28491%2014.2959%203.13228%2012.95%203.13228C7.65437%203.13228%202.84439%205.49565%200.0832465%209.45464C-0.0277488%209.61191%20-0.0277488%209.82467%200.0832465%209.9819C1.48001%2011.9845%203.44563%2013.6079%205.78125%2014.7087L3.37162%2017.1183C3.19127%2017.2986%203.19127%2017.5947%203.37162%2017.775C3.46412%2017.8629%203.57975%2017.9091%203.7%2017.9091C3.82026%2017.9091%203.93588%2017.8629%204.02839%2017.775L9.60151%2012.2019C9.40727%2011.9429%209.24536%2011.6654%209.12048%2011.3694Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3c/g%3e%3c/svg%3e",hi=({listelement:e,onClickElement:t,isActive:n,activeColor:o,fontColor:r,moreInfo:i,columns:a,elementButtons:l,processTooltip:u,defaultTooltip:d,showEye:g=!0})=>{const{name:h,created_at:y,id:m,isBeingProcessed:C}=e,[p,w]=_.useState(!1),{t:S}=oe.useTranslation();_.useEffect(()=>{console.log("elementButtons: ",l)},[l]);const T=l&&l.edit&&!e.is_default&&!e.is_baseline,$=l&&l.trash&&!e.is_default&&!e.is_baseline;return c.jsxs("div",{className:We.listElement,style:{borderBottom:`1px solid ${r}`},children:[c.jsx("div",{className:We.elementNameDate,onClick:()=>t(m),children:Object.keys(a).map(b=>b==="name"?c.jsx("div",{className:We.elementNameContainer,children:c.jsxs("div",{className:`${We.elementName} ${g&&We.nameAndEye}`,children:[g&&(n?c.jsx(v1,{style:{color:o,marginRight:9}}):c.jsx("img",{style:{marginRight:9},src:x1,alt:"eye"})),c.jsx("span",{style:{color:n?o:r},children:h})]})}):b=="data"?c.jsx("div",{className:We.elementDate,children:y?new Date(y).toLocaleDateString():""}):c.jsx("div",{className:We.elementDate,children:e[b]}))}),c.jsxs("div",{className:We.elementButtons,children:[e.processing&&c.jsxs("div",{className:"tooltip-parent",children:[c.jsx("img",{src:g1}),c.jsx(Qe,{text:u,position:"left"})]}),l.filter&&!e.is_default&&c.jsxs("div",{className:"tooltip-parent",children:[c.jsx("button",{onClick:()=>l.filter.onclick(e),disabled:l.filter.disabled||!1,children:c.jsx("img",{src:h1})}),c.jsx(Qe,{text:l.filter.tooltiptext,position:"left"})]}),l.copy&&!e.is_default&&c.jsxs("div",{className:"tooltip-parent",children:[c.jsx("button",{onClick:()=>l.copy.onclick(e),disabled:l.copy.disabled||!1,children:c.jsx("img",{src:m1})}),c.jsx(Qe,{text:l.copy.tooltiptext,position:"left"})]}),T&&c.jsxs("div",{className:"tooltip-parent",children:[c.jsx("button",{onClick:()=>l.edit.onclick(e),disabled:l.edit.disabled||!1,children:c.jsx("img",{src:b1})}),c.jsx(Qe,{text:l.edit.tooltiptext,position:"left"})]}),l.info&&e.is_default&&c.jsxs("div",{className:"tooltip-parent",children:[c.jsx("button",{onClick:()=>l.info.onclick(e),disabled:l.info.disabled||!1,children:c.jsx("img",{src:C1})}),c.jsx(Qe,{text:l.info.tooltiptext,position:"left"})]}),$&&c.jsxs("div",{className:"tooltip-parent",children:[c.jsx("button",{onClick:()=>l.trash.onclick(e),disabled:l.trash.disabled||!1,children:c.jsx("img",{src:p1})}),c.jsx(Qe,{text:l.trash.tooltiptext,position:"left"})]}),e.is_default&&c.jsxs("div",{className:"tooltip-parent",children:[c.jsx("img",{src:y1}),c.jsx(Qe,{text:d,position:"left"})]})]}),i&&c.jsx("div",{className:We.break}),i&&c.jsxs("div",{className:We.moreInfoContainer,children:[c.jsxs("div",{className:We.moreInfo,onClick:()=>w(!p),children:[c.jsx("span",{children:p?"-":"+"}),S(i.label)]}),i&&p&&c.jsx("div",{className:We.moreInfoInfo,children:e[i.info]})]})]})};hi.propTypes={listelement:s.shape({name:s.string.isRequired,created_at:s.string,id:s.any.isRequired,isBeingProcessed:s.bool}).isRequired,onClickElement:s.func.isRequired,isActive:s.bool,activeColor:s.string,fontColor:s.string,moreInfo:s.any,columns:s.shape({name:s.string,data:s.string,ambit:s.string,escenari:s.string}),elementButtons:s.shape({copy:s.shape({onclick:s.func,tooltiptext:s.string}),delete:s.shape({onclick:s.func,tooltiptext:s.string}),filter:s.shape({onclick:s.func,tooltiptext:s.string})}),processTooltip:s.string,defaultTooltip:s.string,showEye:s.bool};const ss="data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%200%2014%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector'%20d='M7%2015L7%201M7%2015L1%209M7%2015L13%209'%20stroke='%23605B56'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",gi=({elementsList:e,activeElementId:t,fontColor:n="#605B56",activeColor:o,buttonContainerStyles:r={},containerStyles:i={},newElementButton:a,onClickElement:l=C=>console.log(`OnCLickElement: ${C}`),columns:u,elementButtons:d,moreInfo:g=!1,processTooltip:h,defaultTooltip:y,showEye:m=!0})=>{const{t:C}=oe.useTranslation(),[p,w]=_.useState(e);_.useEffect(()=>{e&&w(e)},[e]);const S=b=>{if(typeof b!="string")return null;if(/^\d{4}[-/]\d{2}[-/]\d{2}$/.test(b))return new Date(b);const v=/^(\d{2})[-/.]\s*(\d{2})[-/.]\s*(\d{4})$/.exec(b);if(v)return new Date(`${v[3]}-${v[2]}-${v[1]}`);const x=/^(\d{2})[-/]\s*(\d{2})[-/]\s*(\d{4})$/.exec(b);return x?parseInt(x[1])>12?new Date(`${x[3]}-${x[2]}-${x[1]}`):new Date(`${x[3]}-${x[1]}-${x[2]}`):null},T=b=>S(b)!==null,$=b=>{if(!p||p.length===0)return;let v=[...p];const x=v.find(R=>R[b]!==null&&R[b]!==void 0),O=x?T(x[b]):!1;v.sort((R,N)=>{const q=R[b],F=N[b];if(q==null&&F==null)return 0;if(q==null)return 1;if(F==null)return-1;if(O){const k=S(q),V=S(F);return!k&&!V?0:k?V?k-V:-1:1}const f=String(q||"").trim(),E=String(F||"").trim();return f.localeCompare(E)}),w(v)};return c.jsxs("div",{className:nt.elementSelector,style:{color:n,...i},children:[c.jsxs("div",{className:nt.header,style:{borderBottom:`1px solid ${n}`},children:[c.jsx("div",{className:nt.nameDateContainer,children:Object.keys(u).map(b=>b==="name"?c.jsx("div",{className:nt.elementName,children:c.jsxs("button",{onClick:()=>$("name"),children:[c.jsx("span",{children:C(u.name)}),c.jsx("img",{src:ss,alt:"order arrow"})]})},b):b==="data"?c.jsx("div",{className:nt.elementDate,children:c.jsxs("button",{onClick:()=>$("created_at"),children:[c.jsx("span",{children:C(u.data)}),c.jsx("img",{src:ss,alt:"order arrow"})]})},b):c.jsx("div",{className:nt.elementDate,children:c.jsx("span",{children:C(u[b])})},b))}),c.jsx("div",{className:nt.buttonsContainer})]}),c.jsx("div",{className:nt.elementListContainer,children:p&&p.length>0&&p.map(b=>c.jsx(hi,{isActive:t==b.id,listelement:b,fontColor:n,activeColor:o,onClickElement:l,columns:u,elementButtons:d,moreInfo:g,processTooltip:h,defaultTooltip:y,showEye:m},`elementKey${b.id}`))}),a&&c.jsx("div",{className:nt.newElementButtonContainer,children:c.jsx(ln,{style:{...r},onClick:a.onClick,borderColor:"grey",disabled:a.disabled||!1,children:C(a.label)})})]})};gi.propTypes={elementsList:s.arrayOf(s.shape({name:s.string.isRequired,created_at:s.string,id:s.any.isRequired})).isRequired,activeElementId:s.any,fontColor:s.string,activeColor:s.string,onClickElement:s.func.isRequired,newElementButton:s.shape({label:s.string,onClick:s.func}),columns:s.shape({name:s.string,data:s.string,ambit:s.string,escenari:s.string}),elementButtons:s.shape({copy:s.shape({onclick:s.func,tooltiptext:s.string}),delete:s.shape({onclick:s.func,tooltiptext:s.string}),filter:s.shape({onclick:s.func,tooltiptext:s.string})}),buttonContainerStyles:s.object,containerStyles:s.object,onCLickNewElement:s.func,moreInfo:s.shape({label:s.string,info:s.any}),processTooltip:s.string,defaultTooltip:s.string,showEye:s.bool};const _1="_formContainer_asv64_2",w1="_categorySelectorContainer_asv64_11",S1="_formObjectContainer_asv64_15",k1="_buttonContainer_asv64_26",Xt={formContainer:_1,categorySelectorContainer:w1,formObjectContainer:S1,buttonContainer:k1},Dt={text:"text",password:"password",radioList:"radioList",select:"select",textDescription:"textDescription",rankingSlider:"rankingSlider"};var T1=e=>e.type==="checkbox",rn=e=>e instanceof Date,Zr=e=>e==null;const yi=e=>typeof e=="object";var kt=e=>!Zr(e)&&!Array.isArray(e)&&yi(e)&&!rn(e),j1=e=>kt(e)&&e.target?T1(e.target)?e.target.checked:e.target.value:e,E1=(e,t)=>t.split(".").some((n,o,r)=>!isNaN(Number(n))&&e.has(r.slice(0,o).join("."))),$1=e=>{const t=e.constructor&&e.constructor.prototype;return kt(t)&&t.hasOwnProperty("isPrototypeOf")},N1=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function bi(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(N1&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(kt(e)&&$1(e)))return e;const o=n?[]:Object.create(Object.getPrototypeOf(e));for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=bi(e[r]));return o}var Ci=e=>/^\w*$/.test(e),Or=e=>e===void 0,O1=e=>Array.isArray(e)?e.filter(Boolean):[],vi=e=>O1(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ie=(e,t,n)=>{if(!t||!kt(e))return n;const o=(Ci(t)?[t]:vi(t)).reduce((r,i)=>Zr(r)?r:r[i],e);return Or(o)||o===e?Or(e[t])?n:e[t]:o},Cr=e=>typeof e=="boolean",jn=e=>typeof e=="function",is=(e,t,n)=>{let o=-1;const r=Ci(t)?[t]:vi(t),i=r.length,a=i-1;for(;++o<i;){const l=r[o];let u=n;if(o!==a){const d=e[l];u=kt(d)||Array.isArray(d)?d:isNaN(+r[o+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=u,e=e[l]}};const as={BLUR:"blur",CHANGE:"change"},ls={all:"all"},xi=_.createContext(null);xi.displayName="HookFormControlContext";const Hr=()=>_.useContext(xi);var A1=(e,t,n,o=!0)=>{const r={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(r,i,{get:()=>{const a=i;return t._proxyFormState[a]!==ls.all&&(t._proxyFormState[a]=!o||ls.all),n&&(n[a]=!0),e[a]}});return r};const _i=typeof window<"u"?_.useLayoutEffect:_.useEffect;function L1(e){const t=Hr(),{control:n=t,disabled:o,name:r,exact:i}=e||{},[a,l]=_.useState(n._formState),u=_.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return _i(()=>n._subscribe({name:r,formState:u.current,exact:i,callback:d=>{!o&&l({...n._formState,...d})}}),[r,o,i]),_.useEffect(()=>{u.current.isValid&&n._setValid(!0)},[n]),_.useMemo(()=>A1(a,n,u.current,!1),[a,n])}var M1=e=>typeof e=="string",cs=(e,t,n,o,r)=>M1(e)?Ie(n,e,r):Array.isArray(e)?e.map(i=>Ie(n,i)):n,us=e=>Zr(e)||!yi(e);function Mn(e,t,n=new WeakSet){if(us(e)||us(t))return Object.is(e,t);if(rn(e)&&rn(t))return Object.is(e.getTime(),t.getTime());const o=Object.keys(e),r=Object.keys(t);if(o.length!==r.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const i of o){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const l=t[i];if(rn(a)&&rn(l)||(kt(a)||Array.isArray(a))&&(kt(l)||Array.isArray(l))?!Mn(a,l,n):!Object.is(a,l))return!1}}return!0}function R1(e){const t=Hr(),{control:n=t,name:o,defaultValue:r,disabled:i,exact:a,compute:l}=e||{},u=_.useRef(r),d=_.useRef(l),g=_.useRef(void 0),h=_.useRef(n),y=_.useRef(o);d.current=l;const[m,C]=_.useState(()=>{const b=n._getWatch(o,u.current);return d.current?d.current(b):b}),p=_.useCallback(b=>{const v=cs(o,n._names,b||n._formValues,!1,u.current);return d.current?d.current(v):v},[n._formValues,n._names,o]),w=_.useCallback(b=>{if(!i){const v=cs(o,n._names,b||n._formValues,!1,u.current);if(d.current){const x=d.current(v);Mn(x,g.current)||(C(x),g.current=x)}else C(v)}},[n._formValues,n._names,i,o]);_i(()=>((h.current!==n||!Mn(y.current,o))&&(h.current=n,y.current=o,w()),n._subscribe({name:o,formState:{values:!0},exact:a,callback:b=>{w(b.values)}})),[n,a,o,w]),_.useEffect(()=>n._removeUnmounted());const S=h.current!==n,T=y.current,$=_.useMemo(()=>{if(i)return null;const b=!S&&!Mn(T,o);return S||b?p():null},[i,S,o,T,p]);return $!==null?$:m}function D1(e){const t=Hr(),{name:n,disabled:o,control:r=t,shouldUnregister:i,defaultValue:a,exact:l=!0}=e,u=E1(r._names.array,n),d=_.useMemo(()=>Ie(r._formValues,n,Ie(r._defaultValues,n,a)),[r,n,a]),g=R1({control:r,name:n,defaultValue:d,exact:l}),h=L1({control:r,name:n,exact:l}),y=_.useRef(e),m=_.useRef(void 0),C=_.useRef(r.register(n,{...e.rules,value:g,...Cr(e.disabled)?{disabled:e.disabled}:{}}));y.current=e;const p=_.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ie(h.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ie(h.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ie(h.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Ie(h.validatingFields,n)},error:{enumerable:!0,get:()=>Ie(h.errors,n)}}),[h,n]),w=_.useCallback(b=>C.current.onChange({target:{value:j1(b),name:n},type:as.CHANGE}),[n]),S=_.useCallback(()=>C.current.onBlur({target:{value:Ie(r._formValues,n),name:n},type:as.BLUR}),[n,r._formValues]),T=_.useCallback(b=>{const v=Ie(r._fields,n);v&&v._f&&b&&(v._f.ref={focus:()=>jn(b.focus)&&b.focus(),select:()=>jn(b.select)&&b.select(),setCustomValidity:x=>jn(b.setCustomValidity)&&b.setCustomValidity(x),reportValidity:()=>jn(b.reportValidity)&&b.reportValidity()})},[r._fields,n]),$=_.useMemo(()=>({name:n,value:g,...Cr(o)||h.disabled?{disabled:h.disabled||o}:{},onChange:w,onBlur:S,ref:T}),[n,o,h.disabled,w,S,T,g]);return _.useEffect(()=>{const b=r._options.shouldUnregister||i,v=m.current;v&&v!==n&&!u&&r.unregister(v),r.register(n,{...y.current.rules,...Cr(y.current.disabled)?{disabled:y.current.disabled}:{}});const x=(O,R)=>{const N=Ie(r._fields,O);N&&N._f&&(N._f.mount=R)};if(x(n,!0),b){const O=bi(Ie(r._options.defaultValues,n,y.current.defaultValue));is(r._defaultValues,n,O),Or(Ie(r._formValues,n))&&is(r._formValues,n,O)}return!u&&r.register(n),m.current=n,()=>{(u?b&&!r._state.action:b)?r.unregister(n):x(n,!1)}},[n,r,u,i]),_.useEffect(()=>{r._setDisabledField({disabled:o,name:n})},[o,n,r]),_.useMemo(()=>({field:$,formState:h,fieldState:p}),[$,h,p])}const dn=e=>e.render(D1(e)),I1=_.createContext(null);I1.displayName="HookFormContext";const P1="_textInputContainer_1o3iy_2",V1="_labelContainer_1o3iy_5",B1="_inputContainer_1o3iy_8",F1="_showPasswordButton_1o3iy_14",z1="_forgotPassButton_1o3iy_26",Jt={textInputContainer:P1,labelContainer:V1,inputContainer:B1,showPasswordButton:F1,forgotPassButton:z1},q1="_errorMessage_1xiyb_2",W1={errorMessage:q1},Ut=({errorMessage:e,errorColor:t="red",containerStyles:n})=>{const{t:o}=oe.useTranslation();return c.jsx("div",{className:W1.errorMessage,style:{color:t,...n},children:e?o(e):""})},U1="data:image/svg+xml,%3csvg%20width='26'%20height='14'%20viewBox='0%200%2026%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%205763'%3e%3cpath%20id='Vector'%20d='M12.95%200C7.659%200%202.84899%202.3634%200.0832465%206.31776C-0.0277488%206.47963%20-0.0277488%206.68776%200.0832465%206.84962C2.84439%2010.804%207.65437%2013.1628%2012.95%2013.1628C18.2456%2013.1628%2023.0556%2010.804%2025.8168%206.84962C25.9278%206.68775%2025.9278%206.47963%2025.8168%206.31776C23.051%202.36339%2018.241%200%2012.95%200ZM12.95%2010.8132C10.619%2010.8132%208.71812%208.91238%208.71812%206.58139C8.71812%204.25041%2010.619%202.34951%2012.95%202.34951C15.281%202.34951%2017.1819%204.25038%2017.1819%206.58139C17.1819%208.91241%2015.281%2010.8132%2012.95%2010.8132Z'%20fill='white'/%3e%3cpath%20id='Vector_2'%20d='M12.9514%209.88816C14.7777%209.88816%2016.2583%208.40763%2016.2583%206.58129C16.2583%204.75495%2014.7777%203.27441%2012.9514%203.27441C11.1251%203.27441%209.64453%204.75495%209.64453%206.58129C9.64453%208.40763%2011.1251%209.88816%2012.9514%209.88816Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",Z1="data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%200%2026%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%205995'%3e%3cpath%20id='Vector'%20d='M12.9837%206.40625C11.1707%206.40625%209.69531%207.88162%209.69531%209.69462C9.69531%2010.0276%209.74618%2010.3514%209.83869%2010.652C9.93579%2010.9711%2010.0792%2011.2718%2010.2642%2011.54L14.8291%206.97512C14.5562%206.79013%2014.2602%206.64676%2013.9411%206.54962C13.6404%206.45712%2013.3167%206.40625%2012.9837%206.40625Z'%20fill='white'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_2'%20d='M19.4938%204.44079C19.318%204.36678%2019.1191%204.40841%2018.985%204.53792L16.3534%207.16955V7.17415C16.543%207.42855%2016.7049%207.70604%2016.8344%208.00204C17.0656%208.52004%2017.1905%209.09354%2017.1905%209.69478C17.1905%2012.0165%2015.3035%2013.9035%2012.9818%2013.9035C12.3805%2013.9035%2011.807%2013.7787%2011.289%2013.5474C10.993%2013.4179%2010.7155%2013.256%2010.4611%2013.0664H10.4565L8.52788%2014.995C8.41225%2015.1153%208.36601%2015.2864%208.41225%2015.4437C8.45389%2015.6055%208.57875%2015.7304%208.74063%2015.772C10.0958%2016.1189%2011.511%2016.2947%2012.9494%2016.2947C18.245%2016.2947%2023.055%2013.9359%2025.8161%209.98153C25.9271%209.82429%2025.9271%209.61153%2025.8161%209.45427C24.2991%207.27591%2022.1115%205.54154%2019.4938%204.44079Z'%20fill='white'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_3'%20d='M12.9843%2012.979C14.7973%2012.979%2016.268%2011.5082%2016.268%209.6952C16.268%209.35295%2016.2171%209.0292%2016.12%208.71933C16.0229%208.4002%2015.8749%208.10419%2015.6899%207.83594L11.125%2012.4008C11.3933%2012.5858%2011.6893%2012.7338%2012.0084%2012.831C12.3183%2012.9281%2012.6466%2012.979%2012.9843%2012.979Z'%20fill='white'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_4'%20d='M9.12048%2011.3694C8.89386%2010.856%208.769%2010.2918%208.769%209.69516C8.769%207.3734%2010.656%205.48178%2012.9824%205.48178C13.579%205.48178%2014.1433%205.60667%2014.6566%205.83329C14.9526%205.95815%2015.2347%206.12004%2015.4891%206.31428L17.3808%204.42267L21.0114%200.792026C21.1918%200.611646%2021.1918%200.315664%2021.0114%200.135285C20.831%20-0.0450949%2020.535%20-0.0450949%2020.3546%200.135285L16.8951%203.59478C15.6186%203.28491%2014.2959%203.13228%2012.95%203.13228C7.65437%203.13228%202.84439%205.49565%200.0832465%209.45464C-0.0277488%209.61191%20-0.0277488%209.82467%200.0832465%209.9819C1.48001%2011.9845%203.44563%2013.6079%205.78125%2014.7087L3.37162%2017.1183C3.19127%2017.2986%203.19127%2017.5947%203.37162%2017.775C3.46412%2017.8629%203.57975%2017.9091%203.7%2017.9091C3.82026%2017.9091%203.93588%2017.8629%204.02839%2017.775L9.60151%2012.2019C9.40727%2011.9429%209.24536%2011.6654%209.12048%2011.3694Z'%20fill='white'%20fill-opacity='0.5'/%3e%3c/g%3e%3c/svg%3e",fn=hs.create(e=>({errorColor:"red"})),Ar=({input:e,reactHookFormInstance:t})=>{const{code:n,type:o,label:r,maxLength:i,required:a,validateFunction:l,placeholder:u,errorColor:d="red",width:g=325,onClickForgotPass:h=()=>{console.log("Click on forgot password")},forgotPassLabel:y="forgot-password",onChangeExtraFunction:m=()=>{}}=e,{t:C}=oe.useTranslation(),{control:p,trigger:w,clearErrors:S}=t,{errorColor:T}=fn(x=>x),[$,b]=_.useState(!1);_.useRef(a);const v=()=>o?o==="password"&&$?"text":o:"text";return c.jsx(dn,{name:n,control:p,rules:{required:a?`${C(r)} ${C("errorMessages.required")}`:!1,maxLength:i||void 0,validate:l||void 0},render:({field:x,fieldState:O})=>{var F;const{onChange:R,...N}=x,q=f=>{R(f),m&&m(f)};return c.jsxs("div",{className:Jt.textInputContainer,children:[c.jsxs("h3",{className:Jt.labelContainer,children:[C(r)," ",a&&c.jsx("label",{style:{color:O.error?d:""},children:"*"})]}),c.jsxs("div",{style:{position:"relative",width:g},className:Jt.inputContainer,children:[c.jsx("input",{...N,type:v(),onChange:q,placeholder:u?C(u):"",maxLength:i||void 0}),o=="password"&&c.jsx("button",{onClick:()=>b(!$),type:"button",className:Jt.showPasswordButton,children:c.jsx("img",{src:$?Z1:U1,alt:C("show-password")})})]}),o=="password"&&c.jsx("div",{className:Jt.forgotPassButton,children:c.jsx("button",{onClick:h,children:C(y)})}),c.jsx(Ut,{errorMessage:(F=O.error)==null?void 0:F.message,errorColor:T||d})]})}})},H1="_inputsContainer_10t9s_2",It={inputsContainer:H1},K1="_selectInputContainer_zzz6o_2",G1="_labelContainer_zzz6o_6",Y1="_selectWrapper_zzz6o_9",X1="_inputContainer_zzz6o_15",J1="_selectInput_zzz6o_2",Q1="_option_zzz6o_29",ed="_dropdownArrow_zzz6o_32",Re={selectInputContainer:K1,labelContainer:G1,selectWrapper:Y1,inputContainer:X1,selectInput:J1,option:Q1,dropdownArrow:ed},ds="data:image/svg+xml,%3csvg%20width='19'%20height='10'%20viewBox='0%200%2019%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector%20311'%20d='M1%201.09961L8.79289%208.8925C9.18342%209.28303%209.81658%209.28303%2010.2071%208.8925L18%201.09961'%20stroke='%23605B56'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/svg%3e",wi=({input:e,reactHookFormInstance:t,onChange:n})=>{const{code:o,type:r,label:i,maxLength:a,required:l,validateFunction:u,placeholder:d,errorColor:g="red",width:h=325,options:y=[]}=e,{t:m}=oe.useTranslation(),{control:C,trigger:p,clearErrors:w}=t||{},{errorColor:S}=fn(b=>b);_.useRef(l);const[T,$]=_.useState(null);return _.useEffect(()=>{T&&n&&n(T)},[T,n]),t?c.jsx(dn,{name:o,control:C,rules:{required:l?`${m(i)} ${m("errorMessages.required")}`:!1,validate:u?b=>{let v=t.getValues();return u(b,v)}:void 0},render:({field:b,fieldState:v})=>{var O;const x=y.find(R=>R.value===b.value);return c.jsxs("div",{className:Re.selectInputContainer,children:[i&&c.jsxs("h3",{className:Re.labelContainer,children:[m(i)," ",l&&c.jsx("label",{style:{color:v.error?g:""},children:"*"})]}),c.jsxs("div",{className:Re.selectWrapper,children:[c.jsxs("div",{className:Re.inputContainer,style:{width:h},children:[c.jsxs("select",{...b,value:b.value??"",onChange:R=>{const N=R.target.value,q=y.every(F=>typeof F.value=="number")?Number(N):N;b.onChange(q)},className:Re.selectInput,children:[c.jsx("option",{value:"",disabled:!0,hidden:!0,children:m(d||"selectOption")}),y.map((R,N)=>c.jsx("option",{value:R.value,className:Re.option,children:m(R.label)},N))]}),c.jsx("img",{src:ds,alt:"Open",className:Re.dropdownArrow})]}),x&&x.description&&c.jsx("div",{className:Re.optionDescription,children:m(x.description)})]}),c.jsx(Ut,{errorMessage:(O=v.error)==null?void 0:O.message,errorColor:S||g})]})}}):c.jsxs("div",{className:Re.selectInputContainer,children:[i&&c.jsxs("h3",{className:Re.labelContainer,children:[m(i)," ",l&&c.jsx("label",{children:"*"})]}),c.jsxs("div",{className:Re.inputContainer,style:{width:h},children:[c.jsxs("select",{value:T??"",onChange:b=>{const v=b.target.value,x=y.every(O=>typeof O.value=="number")?Number(v):v;$(x)},className:Re.selectInput,children:[c.jsx("option",{value:"",disabled:!0,hidden:!0,children:m(d||"selectOption")}),y.map((b,v)=>c.jsx("option",{value:b.value,className:Re.option,children:m(b.label)},v))]}),c.jsx("img",{src:ds,alt:"Open",className:Re.dropdownArrow})]}),(()=>{const b=y.find(v=>v.value===T);return b&&b.description?c.jsx("div",{className:Re.optionDescription,children:m(b.description)}):null})()]})},td="_radioButtonContainer_1e994_2",nd="_wholeInputContainer_1e994_5",rd="_questionContainer_1e994_27",od="_radioQuestion_1e994_59",sd="_inputContainer_1e994_63",id="_radioInput_1e994_93",vt={radioButtonContainer:td,wholeInputContainer:nd,questionContainer:rd,radioQuestion:od,inputContainer:sd,radioInput:id},Si=({input:e,reactHookFormInstance:t})=>{const{code:n,label:o,required:r,validateFunction:i,errorColor:a="red",options:l=[],multi:u=!1}=e,{t:d}=oe.useTranslation(),{control:g,trigger:h,clearErrors:y}=t,{errorColor:m}=fn(w=>w),C=({options:w,onChange:S,actualValue:T})=>{if(u&&T&&T.length>0){let $=T.filter(b=>b!==w);S($)}},p=({options:w,onChange:S,actualValue:T})=>{u?T&&T.length>0?S([...T,w]):S([w]):S(w)};return _.useRef(r),c.jsx(dn,{control:g,name:n,rules:{validate:w=>r&&(w==null||w==="")?`${d(o)} ${d("errorMessages.required")}`:null},render:({formState:{errors:w},field:{onChange:S,onBlur:T,value:$,ref:b},fieldState:v})=>{var x;return c.jsx("div",{id:n+"id",className:vt.radioButtonContainer,children:c.jsxs("div",{className:vt.wholeInputContainer,children:[o&&c.jsx("div",{className:vt.questionContainer,children:c.jsxs("h3",{htmlFor:n+"id",className:`${vt.radioQuestion} ${r&&vt.required}`,children:[d(o)," ",r&&c.jsx("label",{style:{color:v.error?a:""},children:"*"})]})}),c.jsxs("div",{className:vt.inputContainer,children:[l.map(({label:O,value:R,disabled:N=!1,italicLabel:q},F)=>{const f=$&&u?$.isArray&&($==null?void 0:$.length)>0&&$.some(E=>E===R):$===R;return c.jsxs("label",{children:[c.jsx("input",{type:"radio",checked:f,onChange:()=>{u?f?C({actualValue:$,options:l,onChange:S}):p({actualValue:$,options:l,onChange:S}):S(R)},className:vt.radioInput}),c.jsx("span",{className:"radio-custom"}),d(O)]},`inputRadio ${F}`)}),c.jsx(Ut,{errorMessage:(x=v.error)==null?void 0:x.message,errorColor:m||a})]})]})})}})},ad="_rankingSliderContainer_1dvpb_2",ld="_labelContainer_1dvpb_6",cd="_inputContainer_1dvpb_10",ud="_slider_1dvpb_20",dd="_thumb_1dvpb_27",fd="_labels_1dvpb_37",pd="_minLabel_1dvpb_67",md="_maxLabel_1dvpb_68",Te={rankingSliderContainer:ad,labelContainer:ld,inputContainer:cd,slider:ud,thumb:dd,labels:fd,minLabel:pd,maxLabel:md},Kr=({input:e,reactHookFormInstance:t,onChange:n})=>{const{code:o,label:r,minValue:i=1,maxValue:a=5,defValue:l=3,thumbColor:u="#B32F5D",required:d,errorColor:g="red",labelWidth:h="300px",sliderWidth:y="300px",minText:m,maxText:C,disabled:p=!1,marks:w=Array.from({length:a-i+1},(N,q)=>i+q),showMarksNumber:S=!0}=e;console.log("rankingSliderCode: ",o);const{t:T}=oe.useTranslation(),{control:$,trigger:b,clearErrors:v}=t||{};_.useRef(d);const{errorColorForm:x}=fn(N=>N),[O,R]=_.useState(l);return t?c.jsx(dn,{name:o,control:$,defaultValue:l,rules:{required:d?`${T(r)} ${T("errorMessages.required")}`:!1},render:({field:N,fieldState:q})=>{var F;return c.jsxs("div",{className:Te.rankingSliderContainer,style:{gridTemplateColumns:`${r&&h} ${y}`},children:[r&&c.jsx("p",{className:Te.labelContainer,style:{color:p?"#CCCCCC":"#605B56"},children:T(r)}),c.jsxs("div",{className:Te.inputContainer,children:[m&&c.jsx("div",{className:Te.minLabel,children:T(m)}),c.jsxs("div",{children:[c.jsx(Sr,{min:i,max:a,step:1,value:N.value??l,onChange:f=>{console.log("onchange rankingslider: ",f," field: ",N),N.onChange(f)},marks:!0,className:Te.slider,thumbClassName:Te.thumb,renderThumb:f=>c.jsx("div",{...f,style:{...f.style,backgroundColor:p?"#CCCCCC":u,cursor:p?"not-allowed":"grab"}}),trackClassName:Te.track,markClassName:Te.mark,disabled:p}),w&&c.jsx("div",{className:Te.labels,children:w.map(f=>c.jsx("span",{children:S&&f},f))})]}),C&&c.jsx("div",{className:Te.maxLabel,children:T(C)})]}),c.jsx(Ut,{errorMessage:(F=q.error)==null?void 0:F.message,errorColor:x||g})]})}}):c.jsxs("div",{className:Te.rankingSliderContainer,style:{gridTemplateColumns:`${r&&h} ${y}`},children:[r&&c.jsx("p",{className:Te.labelContainer,style:{color:p?"#CCCCCC":"#605B56"},children:T(r)}),c.jsxs("div",{className:Te.inputContainer,children:[m&&c.jsx("div",{className:Te.minLabel,children:T(m)}),c.jsxs("div",{children:[c.jsx(Sr,{min:i,max:a,step:1,value:O,onChange:N=>{R(N),n&&n(N)},marks:!0,className:Te.slider,thumbClassName:Te.thumb,renderThumb:N=>c.jsx("div",{...N,style:{...N.style,backgroundColor:p?"#CCCCCC":u,cursor:p?"not-allowed":"grab"}}),trackClassName:Te.track,markClassName:Te.mark,disabled:p}),w&&c.jsx("div",{className:Te.labels,children:w.map(N=>c.jsx("span",{children:S&&N},N))})]}),C&&c.jsx("div",{className:Te.maxLabel,children:T(C)})]})]})};Kr.propTypes={input:s.shape({code:s.string,label:s.string,minValue:s.number,maxValue:s.number,defValue:s.number,thumbColor:s.string,required:s.bool,errorColor:s.string,labelWidth:s.string,sliderWidth:s.string,minText:s.string,maxText:s.string}),reactHookFormInstance:s.object};const hd="_textDescriptionContainer_163pc_2",gd="_textDescriptionText_163pc_6",fs={textDescriptionContainer:hd,textDescriptionText:gd},yd=({input:e,inputContainerStyles:t})=>c.jsx("div",{className:fs.textDescriptionContainer,style:{margin:"10px 0",...t},children:c.jsx("p",{className:fs.textDescriptionText,children:e.text})}),Qt=({inputs:e,inputContainerStyles:t,reactHookFormInstance:n})=>{console.log("inputs story: ",e);const{watch:o}=n,r=o(),i=_.useMemo(()=>e==null?void 0:e.map(a=>{const l=typeof a.required=="function"?a.required(r):a.required;return{...a,required:l}}),[e,r]);return c.jsx("div",{className:It.inputsContainer,children:i==null?void 0:i.map((a,l)=>{const{inputType:u}=a;switch(u){case Dt.text:return c.jsx("div",{className:It.inputContainer,style:{...t},children:c.jsx(Ar,{input:a,reactHookFormInstance:n})},`${a.code}${l}`);case Dt.password:return c.jsx("div",{className:It.inputContainer,style:{...t},children:c.jsx(Ar,{input:a,reactHookFormInstance:n})},`${a.code}${l}`);case Dt.select:return c.jsx("div",{className:It.inputContainer,style:{...t},children:c.jsx(wi,{input:a,reactHookFormInstance:n})},`${a.code}${l}`);case Dt.radioList:return c.jsx("div",{className:It.inputContainer,style:{...t},children:c.jsx(Si,{input:a,reactHookFormInstance:n})},`${a.code}${l}`);case Dt.rankingSlider:return c.jsx("div",{className:It.inputContainer,style:{...t},children:c.jsx(Kr,{input:a,reactHookFormInstance:n})},`${a.code}${l}`);case Dt.textDescription:return c.jsx(yd,{input:a,inputContainerStyles:t},`${a.code}${l}`);default:return c.jsx("div",{children:c.jsx("h4",{children:"Default"})},`${a.code}${l}`)}})})},bd="_categorySelector_1guuv_2",Cd="_sectionItemActive_1guuv_16",vd="_sectionItem_1guuv_16",xd="_sectionItemError_1guuv_32",en={categorySelector:bd,sectionItemActive:Cd,sectionItem:vd,sectionItemError:xd},Lr=({categories:e,onChange:t,activeCategory:n,activeColor:o,containerStyles:r={},categoriesWithErrors:i=[]})=>{const{t:a}=oe.useTranslation(),l=u=>{t(u)};return c.jsx("div",{className:en.categorySelector,style:r?{...r}:{},children:e.map((u,d)=>{const{id:g,label:h}=u,y=n==g,m=i.includes(g);return c.jsx("button",{className:`${en.sectionItem} ${y?en.sectionItemActive:""} ${m?en.sectionItemError:""}`,type:"button",style:{backgroundColor:y?o:"inherit"},onClick:()=>l(g),children:c.jsx("span",{style:{color:y?"white":"inherit"},className:en.sectionLabel,children:a(h)})},`keySection${d}`)})})},_d=({reactHookFormInstance:e,formObject:t,CategoryComponent:n,inputContainerStyles:o,generalError:r,errorColor:i="red",submitButtonLabel:a="Submit",submitButtonStyles:l={width:325},showCategorySelector:u=!0,defaultCategory:d=null,categoryLabel:g="Select Category",activeCategory:h=null,activeCategoryColor:y="#b32f5d",categoriesWithErrors:m=[],onSubmit:C=p=>console.log("Form submitted with: ",p)})=>{const{t:p}=oe.useTranslation(),{handleSubmit:w,control:S}=e;_.useEffect(()=>{i&&fn.setState(()=>({errorColor:i}))},[i]);const T=_.useMemo(()=>t?t.filter(N=>N.category).map(N=>{var q;return{id:N.categoryId,label:N.category,hasSubcategories:((q=N.subcategories)==null?void 0:q.length)>0}}):[],[t]),$=N=>{const q=t==null?void 0:t.find(F=>F.categoryId===N);return(q==null?void 0:q.subcategories)||[]},[b,v]=_.useState(h||d||null),[x,O]=_.useState(null);_.useEffect(()=>{!b&&T.length>0&&v(T[0].id)},[T,b]),_.useEffect(()=>{const N=$(b);!x&&(N==null?void 0:N.length)>0&&O(N[0].id)},[b,x,t]);const R=(N,q)=>{var F;if(((F=N.subcategories)==null?void 0:F.length)>0){const f=N.subcategories;return c.jsxs("div",{children:[c.jsx("div",{className:Xt.categorySelectorContainer,children:c.jsx(Lr,{activeCategory:x,categories:f,categoriesWithErrors:m,onChange:E=>O(E),activeColor:y})},N.categoryId),f.map((E,k)=>{const V=!x||E.id===x;return n?c.jsx("div",{style:{display:V?"block":"none",width:"100%"},children:c.jsx(n,{title:E.label,children:c.jsx(Qt,{inputs:E.inputs,control:S,inputContainerStyles:o,errorColor:i,reactHookFormInstance:e})},E.id)},`${E.id}${k}`):c.jsxs("div",{style:{width:"100%",display:V?"block":"none"},children:[c.jsx("h3",{style:{marginBottom:15},children:p(E.label)}),c.jsx(Qt,{inputs:E.inputs,control:S,inputContainerStyles:o,errorColor:i,reactHookFormInstance:e})]},`${E.id}${k}`)})]})}return n?c.jsx(n,{title:N.category,children:c.jsx(Qt,{inputs:N.inputs,control:S,inputContainerStyles:o,errorColor:i,reactHookFormInstance:e})},N.categoryId):c.jsxs("div",{style:{width:"100%"},children:[c.jsx("h2",{children:p(N.category)}),c.jsx(Qt,{inputs:N.inputs,control:S,inputContainerStyles:o,errorColor:i,reactHookFormInstance:e})]},N.categoryId)};return c.jsxs("form",{className:Xt.formContainer,onSubmit:w(C),children:[u&&T.length>0&&c.jsx("div",{className:Xt.categorySelectorContainer,children:c.jsx(Lr,{activeCategory:b,categories:T,categoriesWithErrors:m,onChange:N=>{v(N),O(null)},activeColor:y})}),c.jsx("div",{className:Xt.formObjectContainer,children:t==null?void 0:t.map((N,q)=>{const F=N.categoryId===b;return N.category?c.jsx("div",{style:{width:"100%",display:F?"block":"none"},children:R(N)},N.categoryId):c.jsx(Qt,{inputs:N.inputs,control:S,inputContainerStyles:o,errorColor:i,reactHookFormInstance:e},`no-category-${q}`)})}),c.jsxs("div",{className:Xt.buttonContainer,children:[c.jsx(ln,{containerStyles:l,type:"submit",children:p(a)}),c.jsx(Ut,{errorMessage:r,errorColor:i})]})]})},wd="_overlay_mnd4j_2",Sd="_modal_mnd4j_15",kd="_closeButton_mnd4j_29",Td="_icon_mnd4j_39",jd="_message_mnd4j_45",Ed="_submessage_mnd4j_51",$d="_buttonsContainer_mnd4j_57",Nd="_buttonWrapper_mnd4j_64",ut={overlay:wd,modal:Sd,closeButton:kd,icon:Td,message:jd,submessage:Ed,buttonsContainer:$d,buttonWrapper:Nd},ki=({onClose:e,icon:t,message:n,submessage:o,buttons:r,maxHeight:i="450px",maxWidth:a="450px"})=>c.jsx("div",{className:ut.overlay,children:c.jsxs("div",{className:ut.modal,style:{maxHeight:i,maxWidth:a},children:[c.jsx("button",{className:ut.closeButton,onClick:e,"aria-label":"Close modal",children:"✕"}),t&&c.jsx("img",{src:t,alt:"icon",className:ut.icon}),c.jsx("p",{className:ut.message,children:n}),o&&c.jsx("p",{className:ut.submessage,children:o}),r.length>0&&c.jsx("div",{className:ut.buttonsContainer,children:r.map((l,u)=>c.jsx("div",{className:ut.buttonWrapper,children:l},u))})]})});ki.propTypes={onClose:s.func.isRequired,icon:s.string,message:s.string.isRequired,submessage:s.string,buttons:s.arrayOf(s.node),maxHeight:s.string,maxWidth:s.string};const Od="_stepsContainer_1cyua_3",Ad="_stepWrapper_1cyua_9",Ld="_circleContainer_1cyua_19",Md="_circle_1cyua_19",Rd="_active_1cyua_39",Dd="_completed_1cyua_44",Id="_label_1cyua_50",Pd="_labelActive_1cyua_56",Vd="_connector_1cyua_61",rt={stepsContainer:Od,stepWrapper:Ad,circleContainer:Ld,circle:Md,active:Rd,completed:Dd,label:Id,labelActive:Pd,connector:Vd},Gr=({steps:e,activeColor:t})=>c.jsx("div",{className:rt.stepsContainer,children:e.map((n,o)=>{const r=n.status==="active",i=n.status==="completed";return c.jsxs("div",{className:rt.stepWrapper,children:[c.jsxs("div",{className:rt.circleContainer,children:[c.jsx("div",{className:`${rt.circle}
|
|
80
|
+
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 vu(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Xe=e=>{try{return e()}catch{}},xu=(e="mui")=>P2(e);function yr(e,t,n,o,r){if(!n)return;n=n===!0?{}:n;const i=r==="dark"?"dark":"light";if(!o){t[r]=hu({...n,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:a,...l}=$r({...o,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return t[r]={...n,palette:a,opacity:{...ai(i),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||li(i)},l}function _u(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=gu,colorSchemeSelector:u=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...g}=e,h=Object.keys(n)[0],y=o||(n.light&&h!=="light"?"light":h),m=xu(i),{[y]:C,light:p,dark:w,...S}=n,T={...S};let $=C;if((y==="dark"&&!("dark"in n)||y==="light"&&!("light"in n))&&($=!0),!$)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${y}\` option is either missing or invalid.`:St(21,y));let b;a&&(b="oklch");const v=yr(b,T,$,g,y);p&&!T.light&&yr(b,T,p,void 0,"light"),w&&!T.dark&&yr(b,T,w,void 0,"dark");let x={defaultColorScheme:y,...v,cssVarPrefix:i,colorSchemeSelector:u,rootSelector:d,getCssVar:m,colorSchemes:T,font:{...X2(v.typography),...v.font},spacing:vu(g.spacing)};Object.keys(x.colorSchemes).forEach(F=>{const f=x.colorSchemes[F].palette,E=V=>{const B=V.split("-"),Y=B[1],W=B[2];return m(V,f[Y][W])};f.mode==="light"&&(j(f.common,"background","#fff"),j(f.common,"onBackground","#000")),f.mode==="dark"&&(j(f.common,"background","#000"),j(f.common,"onBackground","#fff"));function k(V,B,Y){if(b){let W;return V===Ct&&(W=`transparent ${((1-Y)*100).toFixed(0)}%`),V===fe&&(W=`#000 ${(Y*100).toFixed(0)}%`),V===pe&&(W=`#fff ${(Y*100).toFixed(0)}%`),`color-mix(in ${b}, ${B}, ${W})`}return V(B,Y)}if(Cu(f,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),f.mode==="light"){j(f.Alert,"errorColor",k(fe,a?m("palette-error-light"):f.error.light,.6)),j(f.Alert,"infoColor",k(fe,a?m("palette-info-light"):f.info.light,.6)),j(f.Alert,"successColor",k(fe,a?m("palette-success-light"):f.success.light,.6)),j(f.Alert,"warningColor",k(fe,a?m("palette-warning-light"):f.warning.light,.6)),j(f.Alert,"errorFilledBg",E("palette-error-main")),j(f.Alert,"infoFilledBg",E("palette-info-main")),j(f.Alert,"successFilledBg",E("palette-success-main")),j(f.Alert,"warningFilledBg",E("palette-warning-main")),j(f.Alert,"errorFilledColor",Xe(()=>f.getContrastText(f.error.main))),j(f.Alert,"infoFilledColor",Xe(()=>f.getContrastText(f.info.main))),j(f.Alert,"successFilledColor",Xe(()=>f.getContrastText(f.success.main))),j(f.Alert,"warningFilledColor",Xe(()=>f.getContrastText(f.warning.main))),j(f.Alert,"errorStandardBg",k(pe,a?m("palette-error-light"):f.error.light,.9)),j(f.Alert,"infoStandardBg",k(pe,a?m("palette-info-light"):f.info.light,.9)),j(f.Alert,"successStandardBg",k(pe,a?m("palette-success-light"):f.success.light,.9)),j(f.Alert,"warningStandardBg",k(pe,a?m("palette-warning-light"):f.warning.light,.9)),j(f.Alert,"errorIconColor",E("palette-error-main")),j(f.Alert,"infoIconColor",E("palette-info-main")),j(f.Alert,"successIconColor",E("palette-success-main")),j(f.Alert,"warningIconColor",E("palette-warning-main")),j(f.AppBar,"defaultBg",E("palette-grey-100")),j(f.Avatar,"defaultBg",E("palette-grey-400")),j(f.Button,"inheritContainedBg",E("palette-grey-300")),j(f.Button,"inheritContainedHoverBg",E("palette-grey-A100")),j(f.Chip,"defaultBorder",E("palette-grey-400")),j(f.Chip,"defaultAvatarColor",E("palette-grey-700")),j(f.Chip,"defaultIconColor",E("palette-grey-700")),j(f.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),j(f.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),j(f.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),j(f.LinearProgress,"primaryBg",k(pe,a?m("palette-primary-main"):f.primary.main,.62)),j(f.LinearProgress,"secondaryBg",k(pe,a?m("palette-secondary-main"):f.secondary.main,.62)),j(f.LinearProgress,"errorBg",k(pe,a?m("palette-error-main"):f.error.main,.62)),j(f.LinearProgress,"infoBg",k(pe,a?m("palette-info-main"):f.info.main,.62)),j(f.LinearProgress,"successBg",k(pe,a?m("palette-success-main"):f.success.main,.62)),j(f.LinearProgress,"warningBg",k(pe,a?m("palette-warning-light"):f.warning.main,.62)),j(f.Skeleton,"bg",b?k(Ct,a?m("palette-text-primary"):f.text.primary,.11):`rgba(${E("palette-text-primaryChannel")} / 0.11)`),j(f.Slider,"primaryTrack",k(pe,a?m("palette-primary-main"):f.primary.main,.62)),j(f.Slider,"secondaryTrack",k(pe,a?m("palette-secondary-main"):f.secondary.main,.62)),j(f.Slider,"errorTrack",k(pe,a?m("palette-error-main"):f.error.main,.62)),j(f.Slider,"infoTrack",k(pe,a?m("palette-info-main"):f.info.main,.62)),j(f.Slider,"successTrack",k(pe,a?m("palette-success-main"):f.success.main,.62)),j(f.Slider,"warningTrack",k(pe,a?m("palette-warning-main"):f.warning.main,.62));const V=b?k(fe,a?m("palette-background-default"):f.background.default,.6825):Tn(f.background.default,.8);j(f.SnackbarContent,"bg",V),j(f.SnackbarContent,"color",Xe(()=>b?Er.text.primary:f.getContrastText(V))),j(f.SpeedDialAction,"fabHoverBg",Tn(f.background.paper,.15)),j(f.StepConnector,"border",E("palette-grey-400")),j(f.StepContent,"border",E("palette-grey-400")),j(f.Switch,"defaultColor",E("palette-common-white")),j(f.Switch,"defaultDisabledColor",E("palette-grey-100")),j(f.Switch,"primaryDisabledColor",k(pe,a?m("palette-primary-main"):f.primary.main,.62)),j(f.Switch,"secondaryDisabledColor",k(pe,a?m("palette-secondary-main"):f.secondary.main,.62)),j(f.Switch,"errorDisabledColor",k(pe,a?m("palette-error-main"):f.error.main,.62)),j(f.Switch,"infoDisabledColor",k(pe,a?m("palette-info-main"):f.info.main,.62)),j(f.Switch,"successDisabledColor",k(pe,a?m("palette-success-main"):f.success.main,.62)),j(f.Switch,"warningDisabledColor",k(pe,a?m("palette-warning-main"):f.warning.main,.62)),j(f.TableCell,"border",k(pe,Ct(a?m("palette-divider"):f.divider,1),.88)),j(f.Tooltip,"bg",k(Ct,a?m("palette-grey-700"):f.grey[700],.92))}if(f.mode==="dark"){j(f.Alert,"errorColor",k(pe,a?m("palette-error-light"):f.error.light,.6)),j(f.Alert,"infoColor",k(pe,a?m("palette-info-light"):f.info.light,.6)),j(f.Alert,"successColor",k(pe,a?m("palette-success-light"):f.success.light,.6)),j(f.Alert,"warningColor",k(pe,a?m("palette-warning-light"):f.warning.light,.6)),j(f.Alert,"errorFilledBg",E("palette-error-dark")),j(f.Alert,"infoFilledBg",E("palette-info-dark")),j(f.Alert,"successFilledBg",E("palette-success-dark")),j(f.Alert,"warningFilledBg",E("palette-warning-dark")),j(f.Alert,"errorFilledColor",Xe(()=>f.getContrastText(f.error.dark))),j(f.Alert,"infoFilledColor",Xe(()=>f.getContrastText(f.info.dark))),j(f.Alert,"successFilledColor",Xe(()=>f.getContrastText(f.success.dark))),j(f.Alert,"warningFilledColor",Xe(()=>f.getContrastText(f.warning.dark))),j(f.Alert,"errorStandardBg",k(fe,a?m("palette-error-light"):f.error.light,.9)),j(f.Alert,"infoStandardBg",k(fe,a?m("palette-info-light"):f.info.light,.9)),j(f.Alert,"successStandardBg",k(fe,a?m("palette-success-light"):f.success.light,.9)),j(f.Alert,"warningStandardBg",k(fe,a?m("palette-warning-light"):f.warning.light,.9)),j(f.Alert,"errorIconColor",E("palette-error-main")),j(f.Alert,"infoIconColor",E("palette-info-main")),j(f.Alert,"successIconColor",E("palette-success-main")),j(f.Alert,"warningIconColor",E("palette-warning-main")),j(f.AppBar,"defaultBg",E("palette-grey-900")),j(f.AppBar,"darkBg",E("palette-background-paper")),j(f.AppBar,"darkColor",E("palette-text-primary")),j(f.Avatar,"defaultBg",E("palette-grey-600")),j(f.Button,"inheritContainedBg",E("palette-grey-800")),j(f.Button,"inheritContainedHoverBg",E("palette-grey-700")),j(f.Chip,"defaultBorder",E("palette-grey-700")),j(f.Chip,"defaultAvatarColor",E("palette-grey-300")),j(f.Chip,"defaultIconColor",E("palette-grey-300")),j(f.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),j(f.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),j(f.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),j(f.LinearProgress,"primaryBg",k(fe,a?m("palette-primary-main"):f.primary.main,.5)),j(f.LinearProgress,"secondaryBg",k(fe,a?m("palette-secondary-main"):f.secondary.main,.5)),j(f.LinearProgress,"errorBg",k(fe,a?m("palette-error-main"):f.error.main,.5)),j(f.LinearProgress,"infoBg",k(fe,a?m("palette-info-main"):f.info.main,.5)),j(f.LinearProgress,"successBg",k(fe,a?m("palette-success-main"):f.success.main,.5)),j(f.LinearProgress,"warningBg",k(fe,a?m("palette-warning-main"):f.warning.main,.5)),j(f.Skeleton,"bg",b?k(Ct,a?m("palette-text-primary"):f.text.primary,.13):`rgba(${E("palette-text-primaryChannel")} / 0.13)`),j(f.Slider,"primaryTrack",k(fe,a?m("palette-primary-main"):f.primary.main,.5)),j(f.Slider,"secondaryTrack",k(fe,a?m("palette-secondary-main"):f.secondary.main,.5)),j(f.Slider,"errorTrack",k(fe,a?m("palette-error-main"):f.error.main,.5)),j(f.Slider,"infoTrack",k(fe,a?m("palette-info-main"):f.info.main,.5)),j(f.Slider,"successTrack",k(fe,a?m("palette-success-main"):f.success.main,.5)),j(f.Slider,"warningTrack",k(fe,a?m("palette-warning-light"):f.warning.main,.5));const V=b?k(pe,a?m("palette-background-default"):f.background.default,.985):Tn(f.background.default,.98);j(f.SnackbarContent,"bg",V),j(f.SnackbarContent,"color",Xe(()=>b?oi.text.primary:f.getContrastText(V))),j(f.SpeedDialAction,"fabHoverBg",Tn(f.background.paper,.15)),j(f.StepConnector,"border",E("palette-grey-600")),j(f.StepContent,"border",E("palette-grey-600")),j(f.Switch,"defaultColor",E("palette-grey-300")),j(f.Switch,"defaultDisabledColor",E("palette-grey-600")),j(f.Switch,"primaryDisabledColor",k(fe,a?m("palette-primary-main"):f.primary.main,.55)),j(f.Switch,"secondaryDisabledColor",k(fe,a?m("palette-secondary-main"):f.secondary.main,.55)),j(f.Switch,"errorDisabledColor",k(fe,a?m("palette-error-main"):f.error.main,.55)),j(f.Switch,"infoDisabledColor",k(fe,a?m("palette-info-main"):f.info.main,.55)),j(f.Switch,"successDisabledColor",k(fe,a?m("palette-success-main"):f.success.main,.55)),j(f.Switch,"warningDisabledColor",k(fe,a?m("palette-warning-light"):f.warning.main,.55)),j(f.TableCell,"border",k(fe,Ct(a?m("palette-divider"):f.divider,1),.68)),j(f.Tooltip,"bg",k(Ct,a?m("palette-grey-700"):f.grey[700],.92))}a||(tt(f.background,"default"),tt(f.background,"paper"),tt(f.common,"background"),tt(f.common,"onBackground"),tt(f,"divider")),Object.keys(f).forEach(V=>{const B=f[V];V!=="tonalOffset"&&!a&&B&&typeof B=="object"&&(B.main&&j(f[V],"mainChannel",tn(nn(B.main))),B.light&&j(f[V],"lightChannel",tn(nn(B.light))),B.dark&&j(f[V],"darkChannel",tn(nn(B.dark))),B.contrastText&&j(f[V],"contrastTextChannel",tn(nn(B.contrastText))),V==="text"&&(tt(f[V],"primary"),tt(f[V],"secondary")),V==="action"&&(B.active&&tt(f[V],"active"),B.selected&&tt(f[V],"selected")))})}),x=t.reduce((F,f)=>ze(F,f),x);const O={prefix:i,disableCssColorScheme:r,shouldSkipGeneratingVar:l,getSelector:bu(x),enableContrastVars:a},{vars:R,generateThemeVars:N,generateStyleSheets:q}=F2(x,O);return x.vars=R,Object.entries(x.colorSchemes[x.defaultColorScheme]).forEach(([F,f])=>{x[F]=f}),x.generateThemeVars=N,x.generateStyleSheets=q,x.generateSpacing=function(){return Gs(g.spacing,Vr(this))},x.getColorSchemeSelector=z2(u),x.spacing=x.generateSpacing(),x.shouldSkipGeneratingVar=l,x.unstable_sxConfig={...Gn,...g==null?void 0:g.unstable_sxConfig},x.unstable_sx=function(f){return zt({sx:f,theme:this})},x.toRuntimeSource=ii,x}function ns(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:qr({...n===!0?{}:n.palette,mode:t})})}function wu(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...a}=e,l=i||"light",u=r==null?void 0:r[l],d={...r,...n?{[l]:{...typeof u!="boolean"&&u,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return $r(e,...t);let g=n;"palette"in e||d[l]&&(d[l]!==!0?g=d[l].palette:l==="dark"&&(g={mode:"dark"}));const h=$r({...e,palette:g},...t);return h.defaultColorScheme=l,h.colorSchemes=d,h.palette.mode==="light"&&(h.colorSchemes.light={...d.light!==!0&&d.light,palette:h.palette},ns(h,"dark",d.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:h.palette},ns(h,"light",d.light)),h}return!n&&!("light"in d)&&l==="light"&&(d.light=!0),_u({...a,colorSchemes:d,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}const Su=wu(),ku="$$material";function Wr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Tu=e=>Wr(e)&&e!=="classes",jt=T2({themeId:ku,defaultTheme:Su,rootShouldForwardProp:Tu}),Wt=I2;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function ju(e){return D2(e)}const Eu=e=>!e||!on(e);function $u(e){return typeof e.main=="string"}function Nu(e,t=[]){if(!$u(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Ur(e=[]){return([,t])=>t&&Nu(t,e)}function Ou(e){return Fr("MuiSlider",e)}const Ze=x2("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Au=e=>{const{open:t}=e;return{offset:ft(t&&Ze.valueLabelOpen),circle:Ze.valueLabelCircle,label:Ze.valueLabelLabel}};function ci(e){const{children:t,className:n,value:o}=e,r=Au(e);return t?J.cloneElement(t,{className:t.props.className},c.jsxs(J.Fragment,{children:[t.props.children,c.jsx("span",{className:ft(r.offset,n),"aria-hidden":!0,children:c.jsx("span",{className:r.circle,children:c.jsx("span",{className:r.label,children:o})})})]})):null}process.env.NODE_ENV!=="production"&&(ci.propTypes={children:s.element.isRequired,className:s.string,value:s.node});function rs(e){return e}const Lu=jt("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Ge(n.color)}`],n.size!=="medium"&&t[`size${Ge(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(Wt(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Ze.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Ze.dragging}`]:{[`& .${Ze.thumb}, & .${Ze.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(Ur()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),Mu=jt("span",{name:"MuiSlider",slot:"Rail"})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),Ru=jt("span",{name:"MuiSlider",slot:"Track"})(Wt(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter(Ur()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:e.lighten(e.palette[t].main,.62),borderColor:e.lighten(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:e.darken(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:e.darken(e.palette[t].main,.5)})}}}))]}))),Du=jt("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${Ge(n.color)}`],n.size!=="medium"&&t[`thumbSize${Ge(n.size)}`]]}})(Wt(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Ze.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(Ur()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${Ze.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Ze.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),ui=jt(ci,{name:"MuiSlider",slot:"ValueLabel"})(Wt(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Ze.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Ze.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})));process.env.NODE_ENV!=="production"&&(ui.propTypes={children:s.element.isRequired,index:s.number.isRequired,open:s.bool.isRequired,value:s.node});const Iu=jt("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Wr(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(Wt(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),Pu=jt("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Wr(e)&&e!=="markLabelActive"})(Wt(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),Vu=e=>{const{disabled:t,dragging:n,marked:o,orientation:r,track:i,classes:a,color:l,size:u}=e,d={root:["root",t&&"disabled",n&&"dragging",o&&"marked",r==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",l&&`color${Ge(l)}`,u&&`size${Ge(u)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",u&&`thumbSize${Ge(u)}`,l&&`thumbColor${Ge(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Gc(d,Ou,a)},Bu=({children:e})=>e,di=J.forwardRef(function(t,n){const o=ju({props:t,name:"MuiSlider"}),r=Xc(),{"aria-label":i,"aria-valuetext":a,"aria-labelledby":l,component:u="span",components:d={},componentsProps:g={},color:h="primary",classes:y,className:m,disableSwap:C=!1,disabled:p=!1,getAriaLabel:w,getAriaValueText:S,marks:T=!1,max:$=100,min:b=0,name:v,onChange:x,onChangeCommitted:O,orientation:R="horizontal",shiftStep:N=10,size:q="medium",step:F=1,scale:f=rs,slotProps:E,slots:k,tabIndex:V,track:B="normal",value:Y,valueLabelDisplay:W="off",valueLabelFormat:ae=rs,...M}=o,A={...o,isRtl:r,max:$,min:b,classes:y,disabled:p,disableSwap:C,orientation:R,marks:T,color:h,size:q,step:F,shiftStep:N,scale:f,track:B,valueLabelDisplay:W,valueLabelFormat:ae},{axisProps:Q,getRootProps:K,getHiddenInputProps:I,getThumbProps:Z,open:te,active:G,axis:U,focusedThumbIndex:re,range:ee,dragging:le,marks:D,values:se,trackOffset:Le,trackLeap:Ye,getThumbStyle:z}=u0({...A,rootRef:n});A.marked=D.length>0&&D.some(ke=>ke.label),A.dragging=le,A.focusedThumbIndex=re;const ne=Vu(A),xe=(k==null?void 0:k.root)??d.Root??Lu,be=(k==null?void 0:k.rail)??d.Rail??Mu,$e=(k==null?void 0:k.track)??d.Track??Ru,Ve=(k==null?void 0:k.thumb)??d.Thumb??Du,Ke=(k==null?void 0:k.valueLabel)??d.ValueLabel??ui,Ce=(k==null?void 0:k.mark)??d.Mark??Iu,Be=(k==null?void 0:k.markLabel)??d.MarkLabel??Pu,L=(k==null?void 0:k.input)??d.Input??"input",P=(E==null?void 0:E.root)??g.root,H=(E==null?void 0:E.rail)??g.rail,ie=(E==null?void 0:E.track)??g.track,ge=(E==null?void 0:E.thumb)??g.thumb,X=(E==null?void 0:E.valueLabel)??g.valueLabel,Ne=(E==null?void 0:E.mark)??g.mark,Me=(E==null?void 0:E.markLabel)??g.markLabel,je=(E==null?void 0:E.input)??g.input,qe=ct({elementType:xe,getSlotProps:K,externalSlotProps:P,externalForwardedProps:M,additionalProps:{...Eu(xe)&&{as:u}},ownerState:{...A,...P==null?void 0:P.ownerState},className:[ne.root,m]}),Zt=ct({elementType:be,externalSlotProps:H,ownerState:A,className:ne.rail}),Ri=ct({elementType:$e,externalSlotProps:ie,additionalProps:{style:{...Q[U].offset(Le),...Q[U].leap(Ye)}},ownerState:{...A,...ie==null?void 0:ie.ownerState},className:ne.track}),Qn=ct({elementType:Ve,getSlotProps:Z,externalSlotProps:ge,ownerState:{...A,...ge==null?void 0:ge.ownerState},className:ne.thumb}),Di=ct({elementType:Ke,externalSlotProps:X,ownerState:{...A,...X==null?void 0:X.ownerState},className:ne.valueLabel}),er=ct({elementType:Ce,externalSlotProps:Ne,ownerState:A,className:ne.mark}),tr=ct({elementType:Be,externalSlotProps:Me,ownerState:A,className:ne.markLabel}),Ii=ct({elementType:L,getSlotProps:I,externalSlotProps:je,ownerState:A});return c.jsxs(xe,{...qe,children:[c.jsx(be,{...Zt}),c.jsx($e,{...Ri}),D.filter(ke=>ke.value>=b&&ke.value<=$).map((ke,Ae)=>{const nr=Dn(ke.value,b,$),pn=Q[U].offset(nr);let et;return B===!1?et=se.includes(ke.value):et=B==="normal"&&(ee?ke.value>=se[0]&&ke.value<=se[se.length-1]:ke.value<=se[0])||B==="inverted"&&(ee?ke.value<=se[0]||ke.value>=se[se.length-1]:ke.value>=se[0]),c.jsxs(J.Fragment,{children:[c.jsx(Ce,{"data-index":Ae,...er,...!on(Ce)&&{markActive:et},style:{...pn,...er.style},className:ft(er.className,et&&ne.markActive)}),ke.label!=null?c.jsx(Be,{"aria-hidden":!0,"data-index":Ae,...tr,...!on(Be)&&{markLabelActive:et},style:{...pn,...tr.style},className:ft(ne.markLabel,tr.className,et&&ne.markLabelActive),children:ke.label}):null]},Ae)}),se.map((ke,Ae)=>{const nr=Dn(ke,b,$),pn=Q[U].offset(nr),et=W==="off"?Bu:Ke;return c.jsx(et,{...!on(et)&&{valueLabelFormat:ae,valueLabelDisplay:W,value:typeof ae=="function"?ae(f(ke),Ae):ae,index:Ae,open:te===Ae||G===Ae||W==="on",disabled:p},...Di,children:c.jsx(Ve,{"data-index":Ae,...Qn,className:ft(ne.thumb,Qn.className,G===Ae&&ne.active,re===Ae&&ne.focusVisible),style:{...pn,...z(Ae),...Qn.style},children:c.jsx(L,{"data-index":Ae,"aria-label":w?w(Ae):i,"aria-valuenow":f(ke),"aria-labelledby":l,"aria-valuetext":S?S(f(ke),Ae):a,value:se[Ae],...Ii})})},Ae)})]})});process.env.NODE_ENV!=="production"&&(di.propTypes={"aria-label":Eo(s.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":s.string,"aria-valuetext":Eo(s.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),components:s.shape({Input:s.elementType,Mark:s.elementType,MarkLabel:s.elementType,Rail:s.elementType,Root:s.elementType,Thumb:s.elementType,Track:s.elementType,ValueLabel:s.elementType}),componentsProps:s.shape({input:s.oneOfType([s.func,s.object]),mark:s.oneOfType([s.func,s.object]),markLabel:s.oneOfType([s.func,s.object]),rail:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),thumb:s.oneOfType([s.func,s.object]),track:s.oneOfType([s.func,s.object]),valueLabel:s.oneOfType([s.func,s.shape({children:s.element,className:s.string,open:s.bool,style:s.object,value:s.node,valueLabelDisplay:s.oneOf(["auto","off","on"])})])}),defaultValue:s.oneOfType([s.arrayOf(s.number),s.number]),disabled:s.bool,disableSwap:s.bool,getAriaLabel:s.func,getAriaValueText:s.func,marks:s.oneOfType([s.arrayOf(s.shape({label:s.node,value:s.number.isRequired})),s.bool]),max:s.number,min:s.number,name:s.string,onChange:s.func,onChangeCommitted:s.func,orientation:s.oneOf(["horizontal","vertical"]),scale:s.func,shiftStep:s.number,size:s.oneOfType([s.oneOf(["small","medium"]),s.string]),slotProps:s.shape({input:s.oneOfType([s.func,s.object]),mark:s.oneOfType([s.func,s.object]),markLabel:s.oneOfType([s.func,s.object]),rail:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),thumb:s.oneOfType([s.func,s.object]),track:s.oneOfType([s.func,s.object]),valueLabel:s.oneOfType([s.func,s.shape({children:s.element,className:s.string,open:s.bool,style:s.object,value:s.node,valueLabelDisplay:s.oneOf(["auto","off","on"])})])}),slots:s.shape({input:s.elementType,mark:s.elementType,markLabel:s.elementType,rail:s.elementType,root:s.elementType,thumb:s.elementType,track:s.elementType,valueLabel:s.elementType}),step:s.number,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,track:s.oneOf(["inverted","normal",!1]),value:s.oneOfType([s.arrayOf(s.number),s.number]),valueLabelDisplay:s.oneOf(["auto","off","on"]),valueLabelFormat:s.oneOfType([s.func,s.string])});const Fu="_slider_1prh1_2",zu="_playButton_1prh1_14",qu="_sliderOpen_1prh1_25",Wu="_sliderResults_1prh1_29",Yt={slider:Fu,playButton:zu,sliderOpen:qu,sliderResults:Wu},fi=({onResults:e=!1,defaultYear:t=2025,firstYear:n=2025,lastYear:o=2050,marcas:r=null,zIndex:i=10,rightBarOpen:a=!1,conditionToBeRuning:l=null,onChange:u=d=>{console.log("year changed to ",d)}})=>{const g=r||((b,v)=>{const x=[];x.push({label:"",value:b});const O=Math.ceil(b/10)*10;for(let R=O;R<v;R+=10)x.push({label:"",value:R});return x[x.length-1].value!==v&&x.push({label:"",value:v}),x})(n,o),[h,y]=_.useState(t);_.useEffect(()=>{y(t)},[t]);const m=(b,v)=>{y(v),u(v)},[C,p]=_.useState(!1);_.useEffect(()=>{t&&console.log("defaultYear changed:",t),t&&y(t)},[t]),_.useEffect(()=>{l===!1&&p(!1)},[l]);const w=()=>{p(!0)},S=()=>{p(!1)};((b,v,x=[])=>{const O=_.useRef();_.useEffect(()=>{O.current=b},[b]),_.useEffect(()=>{function R(){O.current()}{let N=setInterval(R,v);return()=>clearInterval(N)}},[v,...x])})(()=>{C&&y(b=>{const v=b+1;return v>o?(u(n),n):(u(v),v)})},1e3,[n,o,C]);const $=Qr.createTheme({palette:{primary:{main:"#605b56"}},components:{MuiSlider:{styleOverrides:{mark:{height:10,backgroundColor:"#605b56"},valueLabel:{backgroundColor:"transparent",color:"#605b56",padding:0,top:3}}}}});return c.jsx(Gi.ThemeProvider,{theme:$,children:c.jsxs(Qr.Box,{sx:{width:400},className:`${e?Yt.sliderResults:Yt.slider} ${a?Yt.sliderOpen:""}`,style:{zIndex:i},children:[n,c.jsx(di,{"aria-label":"TimeSlider",value:h,valueLabelDisplay:"on",step:1,marks:g,min:n,max:o,onChange:m,color:"primary",size:"small"}),o,!C&&c.jsx("button",{className:Yt.playButton,onClick:w,children:c.jsx("img",{src:Hc,alt:"Play"})}),C&&c.jsx("button",{className:Yt.playButton,onClick:S,children:c.jsx("img",{src:Kc,alt:"Pause"})})]})})};fi.propTypes={defaultYear:s.number,onResults:s.bool,firstYear:s.number,lastYear:s.number,marcas:s.arrayOf(s.shape({label:s.string,value:s.number})),zIndex:s.number,rightBarOpen:s.bool,onChange:s.func};const Uu="_TopNavMenuContainer_12mp4_2",Zu="_topNavOptions_12mp4_13",Hu="_active_12mp4_27",br={TopNavMenuContainer:Uu,topNavOptions:Zu,active:Hu},pi=({options:e=[],containerStyles:t,borderColor:n="red",textColor:o="white",onChangeNavLink:r=i=>{console.log("Changed NavLink",i)}})=>{const{t:i}=oe.useTranslation();return c.jsx("div",{className:br.TopNavMenuContainer,style:{...t},children:e.map((a,l)=>c.jsx(ys.NavLink,{to:a.url,className:({isActive:u})=>`${br.topNavOptions} ${u?br.active:""} `,onClick:()=>r(a.url),style:({isActive:u})=>({color:o,borderBottom:u?`5px solid ${n}`:"5px solid transparent"}),children:i(a.name)},l))})};pi.propTypes={options:s.arrayOf(s.object),cssProps:s.shape({borderColor:s.string.isRequired,textColor:s.string.isRequired})};const Ku="_LogInButton_1vxj5_2",Gu={LogInButton:Ku},mi=({cssClass:e,notLoggedInLabel:t="Log in",loggedInLabel:n="Log out",containerStyles:o,userName:r="",isLoggedIn:i=!1,onClickLogIn:a=()=>{console.log("Login clicked")},onClickLogOut:l=()=>{console.log("Logout clicked")}})=>{const{t:u}=oe.useTranslation();return c.jsx("div",{style:{...o},className:`${Gu.LogInButton} link ${e}`,onClick:i?l:a,children:i?r||u(n):u(t)})};mi.propTypes={cssClass:s.string,notLoggedInLabel:s.string,loggedInLabel:s.string,containerStyles:s.object,userName:s.string,isLoggedIn:s.bool};const Yu="_elementSelector_1ox68_2",Xu="_header_1ox68_14",Ju="_nameDateContainer_1ox68_24",Qu="_elementName_1ox68_40",e1="_elementDate_1ox68_54",t1="_buttonsContainer_1ox68_68",n1="_elementListContainer_1ox68_77",r1="_newElementButtonContainer_1ox68_81",nt={elementSelector:Yu,header:Xu,nameDateContainer:Ju,elementName:Qu,elementDate:e1,buttonsContainer:t1,elementListContainer:n1,newElementButtonContainer:r1},o1="_listElement_s4s4h_3",s1="_elementNameDate_s4s4h_19",i1="_elementNameContainer_s4s4h_30",a1="_elementName_s4s4h_19",l1="_elementDate_s4s4h_47",c1="_nameAndEye_s4s4h_50",u1="_elementButtons_s4s4h_55",d1="_moreInfoContainer_s4s4h_78",f1="_moreInfo_s4s4h_78",We={listElement:o1,elementNameDate:s1,elementNameContainer:i1,elementName:a1,elementDate:l1,nameAndEye:c1,elementButtons:u1,break:"_break_s4s4h_73",moreInfoContainer:d1,moreInfo:f1},p1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Eliminar'%3e%3ccircle%20id='Ellipse%20220'%20cx='15.5106'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='Vector'%20d='M20.8581%2010.5548H17.5491V10.4015C17.5491%209.17493%2016.6257%208.255%2015.4714%208.255C14.3171%208.255%2013.3167%209.17493%2013.3167%2010.4015V10.5548H10.0846C9.69985%2010.5548%209.46899%2010.7848%209.46899%2011.1681C9.46899%2011.5514%209.69985%2011.7814%2010.0846%2011.7814H10.2385V21.2106C10.2385%2022.3605%2011.162%2023.3571%2012.3932%2023.3571H18.5495C19.7038%2023.3571%2020.7042%2022.4372%2020.7042%2021.2106V11.7047H20.9351C21.2429%2011.7047%2021.5507%2011.4747%2021.5507%2011.0914C21.5507%2010.7081%2021.1659%2010.5548%2020.8581%2010.5548ZM14.471%2010.4015C14.471%209.86488%2014.9327%209.40491%2015.4714%209.40491C16.01%209.40491%2016.3948%209.86488%2016.3948%2010.4015V10.5548H14.471V10.4015ZM16.3948%2018.8342V15.0011C16.3948%2014.6178%2016.6257%2014.3878%2017.0104%2014.3878C17.3952%2014.3878%2017.6261%2014.6178%2017.6261%2015.0011V18.8342C17.6261%2019.1408%2017.3952%2019.4474%2017.0104%2019.4474C16.6257%2019.4474%2016.3948%2019.1408%2016.3948%2018.8342ZM13.3167%2018.8342V15.0011C13.3167%2014.6178%2013.5475%2014.3878%2013.9323%2014.3878C14.3171%2014.3878%2014.5479%2014.6178%2014.5479%2015.0011V18.8342C14.5479%2019.1408%2014.3171%2019.4474%2013.9323%2019.4474C13.5475%2019.4474%2013.3167%2019.1408%2013.3167%2018.8342Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e",m1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%209259'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.3062'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cg%20id='Group%203973'%3e%3cg%20id='Rectangle%20495'%3e%3cmask%20id='path-2-inside-1_4451_10560'%20fill='white'%3e%3crect%20x='10.4033'%20y='7.70422'%20width='12.8'%20height='12.8'%20rx='1'/%3e%3c/mask%3e%3crect%20x='10.4033'%20y='7.70422'%20width='12.8'%20height='12.8'%20rx='1'%20stroke='%23605B56'%20stroke-width='3'%20mask='url(%23path-2-inside-1_4451_10560)'/%3e%3c/g%3e%3cg%20id='Group%203972'%3e%3crect%20id='Rectangle%20496'%20x='7.2041'%20y='10.9042'%20width='12.8'%20height='12.8'%20rx='1'%20fill='%23605B56'/%3e%3cpath%20id='+'%20d='M16.3785%2018.0509H14.3838V20.0776H12.9331V18.0509H10.9385V16.6749H12.9331V14.6376H14.3838V16.6749H16.3785V18.0509Z'%20fill='%23FDFDFD'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",h1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%209260'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='Vector'%20d='M8.20744%208.70422C7.34769%208.70422%206.88873%209.71735%207.45568%2010.3637L13.3518%2017.085C13.5118%2017.2675%2013.6%2017.5018%2013.6%2017.7445V23.2443C13.6%2023.6283%2013.8199%2023.9783%2014.1658%2024.1451L15.9658%2025.0128C16.6297%2025.3329%2017.4%2024.8491%2017.4%2024.112V17.7445C17.4%2017.5018%2017.4882%2017.2675%2017.6482%2017.085L23.5443%2010.3637C24.1113%209.71735%2023.6523%208.70422%2022.7926%208.70422H8.20744Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e",g1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%206725'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.7148'%20r='14.3521'%20stroke='%23605B56'%20stroke-opacity='0.5'%20stroke-width='1.5'/%3e%3cg%20id='Group%206724'%3e%3cpath%20id='Vector'%20d='M17.4114%2023.3302C17.4114%2024.5419%2016.4269%2027.4724%2015.2126%2027.4724C13.9982%2027.4724%2013.0137%2024.5419%2013.0137%2023.3302C13.0137%2022.7483%2013.2453%2022.1902%2013.6577%2021.7787C14.0701%2021.3673%2014.6294%2021.1361%2015.2126%2021.1361C15.7957%2021.1361%2016.355%2021.3673%2016.7674%2021.7787C17.1798%2022.1902%2017.4114%2022.7483%2017.4114%2023.3302Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Union'%20d='M15.2919%2020.6088H11.2899L11.289%2020.6078C10.6273%2020.7718%209.36856%2021.3396%209.39931%2023.2845C9.39931%2023.2845%207.41254%2021.7976%208.17372%2019.0179L8.25575%2018.7445C8.59675%2017.7118%209.66004%2016.7306%2010.7714%2016.2435C10.7337%2012.8666%2011.5045%208.19644%2015.2919%204.724V20.6088ZM10.6835%2017.4164C10.5323%2017.5091%2010.3819%2017.6125%2010.2372%2017.7279C9.77215%2018.099%209.43634%2018.5195%209.26747%2018.8988L9.20595%2019.058C8.95666%2019.8145%208.9632%2020.4347%209.07607%2020.9291C9.34144%2020.5645%209.66233%2020.2832%209.9999%2020.0746C10.2365%2019.9284%2010.4715%2019.8251%2010.6835%2019.7494V17.4164Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Union_2'%20d='M15.293%204.724C19.0931%208.20817%2019.8548%2012.8981%2019.8115%2016.2777C20.8629%2016.7859%2021.8411%2017.7218%2022.165%2018.7045C23.1398%2021.6599%2021.0225%2023.2445%2021.0225%2023.2445C21.051%2021.4361%2019.9648%2020.8184%2019.2803%2020.6088H15.293V4.724ZM19.7676%2017.3949C19.7586%2017.5313%2019.7493%2017.6646%2019.7383%2017.7943V19.7094C19.9502%2019.7851%2020.1854%2019.8884%2020.4219%2020.0345C20.7595%2020.2432%2021.0794%2020.5253%2021.3447%2020.89C21.4466%2020.444%2021.4627%2019.8956%2021.2812%2019.2367L21.2148%2019.0179C21.0772%2018.6004%2020.7157%2018.1118%2020.1846%2017.6879C20.0493%2017.58%2019.9088%2017.4829%2019.7676%2017.3949Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cg%20id='Vector_2'%3e%3cpath%20d='M12.541%208.28445C12.541%208.28445%2014.8218%209.81829%2018.0434%208.28445C18.0434%208.28445%2016.9978%206.03912%2015.2919%204.61267C15.2919%204.61267%2013.7894%205.92343%2012.541%208.28445Z'%20fill='%23FDFDFD'/%3e%3cpath%20d='M15.3057%205.29626C15.9532%205.9116%2016.4918%206.63792%2016.8867%207.2533C17.0801%207.55466%2017.2355%207.82605%2017.3516%208.03748C16.0573%208.54342%2014.966%208.52427%2014.1807%208.36951C13.781%208.29074%2013.4584%208.17533%2013.2266%208.07556C13.7607%207.14513%2014.32%206.40895%2014.7646%205.88806C14.9759%205.64056%2015.1621%205.44302%2015.3057%205.29626Z'%20stroke='%23605B56'%20stroke-opacity='0.5'/%3e%3c/g%3e%3cpath%20id='Vector_3'%20d='M17.6984%2012.9862C17.6985%2013.4539%2017.5596%2013.9111%2017.2993%2014.3001C17.039%2014.689%2016.669%2014.9922%2016.236%2015.1712C15.803%2015.3503%2015.3265%2015.3972%2014.8668%2015.3061C14.4071%2015.2149%2013.9848%2014.9898%2013.6533%2014.6591C13.3218%2014.3285%2013.0961%2013.9072%2013.0046%2013.4485C12.9131%2012.9898%2012.96%2012.5143%2013.1393%2012.0822C13.3186%2011.6501%2013.6224%2011.2808%2014.0121%2011.021C14.4018%2010.7611%2014.86%2010.6224%2015.3287%2010.6224C15.957%2010.6224%2016.5597%2010.8715%2017.004%2011.3147C17.4484%2011.758%2017.6982%2012.3593%2017.6984%2012.9862Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_4'%20d='M17.1358%2013.0038C17.1358%2013.36%2017.0299%2013.7083%2016.8316%2014.0045C16.6332%2014.3007%2016.3513%2014.5316%2016.0214%2014.6679C15.6916%2014.8042%2015.3286%2014.8399%2014.9784%2014.7704C14.6282%2014.7009%2014.3066%2014.5294%2014.0541%2014.2774C13.8017%2014.0255%2013.6297%2013.7046%2013.5601%2013.3552C13.4904%2013.0058%2013.5262%2012.6436%2013.6628%2012.3145C13.7994%2011.9853%2014.0308%2011.704%2014.3277%2011.5061C14.6245%2011.3082%2014.9736%2011.2025%2015.3306%2011.2025C15.8094%2011.2025%2016.2685%2011.3923%2016.6071%2011.7301C16.9456%2012.0679%2017.1358%2012.526%2017.1358%2013.0038Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_5'%20d='M16.7061%2013.2093C16.6508%2013.2093%2016.5978%2013.1874%2016.5588%2013.1485C16.5197%2013.1095%2016.4978%2013.0566%2016.4978%2013.0015C16.4974%2012.7236%2016.3866%2012.4572%2016.1897%2012.2607C15.9928%2012.0642%2015.7258%2011.9537%2015.4473%2011.9533C15.4175%2011.9582%2015.3869%2011.9566%2015.3578%2011.9485C15.3287%2011.9405%2015.3017%2011.9262%2015.2786%2011.9067C15.2556%2011.8872%2015.237%2011.8629%2015.2244%2011.8356C15.2117%2011.8082%2015.2051%2011.7784%2015.2051%2011.7482C15.2051%2011.7181%2015.2117%2011.6883%2015.2244%2011.6609C15.237%2011.6336%2015.2556%2011.6093%2015.2786%2011.5898C15.3017%2011.5703%2015.3287%2011.556%2015.3578%2011.5479C15.3869%2011.5399%2015.4175%2011.5383%2015.4473%2011.5432C15.8348%2011.5435%2016.2063%2011.6973%2016.4803%2011.9707C16.7543%2012.2441%2016.9084%2012.6148%2016.9088%2013.0015C16.9088%2013.0557%2016.8876%2013.1077%2016.8498%2013.1465C16.8119%2013.1854%2016.7603%2013.2079%2016.7061%2013.2093Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_6'%20d='M16.8082%2013.6607C16.8082%2013.7106%2016.7934%2013.7594%2016.7656%2013.8008C16.7378%2013.8423%2016.6984%2013.8746%2016.6522%2013.8937C16.606%2013.9128%2016.5552%2013.9178%2016.5062%2013.9081C16.4571%2013.8983%2016.4121%2013.8743%2016.3768%2013.8391C16.3414%2013.8038%2016.3173%2013.7589%2016.3076%2013.7099C16.2978%2013.661%2016.3028%2013.6103%2016.322%2013.5642C16.3411%2013.5182%2016.3735%2013.4788%2016.4151%2013.4511C16.4566%2013.4234%2016.5055%2013.4086%2016.5555%2013.4086C16.6225%2013.4086%2016.6868%2013.4351%2016.7342%2013.4824C16.7816%2013.5297%2016.8082%2013.5939%2016.8082%2013.6607Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_7'%20d='M15.6008%2016.0612C15.5633%2016.0097%2015.5141%2015.9677%2015.4573%2015.9388C15.4005%2015.9099%2015.3376%2015.8949%2015.2738%2015.8949H15.1898C15.126%2015.8948%2015.0631%2015.9099%2015.0062%2015.9388C14.9494%2015.9677%2014.9002%2016.0096%2014.8627%2016.0612C14.8627%2016.0612%2013.6074%2017.4973%2014.1816%2021.0915C14.4989%2023.0777%2015.2314%2023.6694%2015.2314%2023.6694C15.2314%2023.6694%2015.9639%2023.0777%2016.2819%2021.0915C16.8561%2017.4973%2015.6008%2016.0612%2015.6008%2016.0612Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_8'%20d='M15.1468%2015.8949C15.083%2015.8948%2015.0201%2015.9099%2014.9632%2015.9388C14.9064%2015.9677%2014.8572%2016.0096%2014.8198%2016.0612C14.8198%2016.0612%2013.5645%2017.4973%2014.1387%2021.0915C14.456%2023.0777%2015.1884%2023.6694%2015.1884%2023.6694V15.8949H15.1468Z'%20fill='%23FDFDFD'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",y1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='15.3062'%20cy='15.2144'%20r='14.3521'%20stroke='%2392898A'%20stroke-width='1.5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.9898%2012.7234V9.89008C11.9898%208.88815%2012.3811%207.92726%2013.0777%207.21879C13.7743%206.51032%2014.719%206.1123%2015.7041%206.1123C16.6892%206.1123%2017.6339%206.51032%2018.3305%207.21879C19.0271%207.92726%2019.4184%208.88815%2019.4184%209.89008V12.7234H20.347C20.8395%2012.7234%2021.3119%2012.9224%2021.6602%2013.2767C22.0084%2013.6309%2022.2041%2014.1113%2022.2041%2014.6123V21.2234C22.2041%2021.7244%2022.0084%2022.2048%2021.6602%2022.5591C21.3119%2022.9133%2020.8395%2023.1123%2020.347%2023.1123H11.0612C10.5687%2023.1123%2010.0963%2022.9133%209.74805%2022.5591C9.39976%2022.2048%209.2041%2021.7244%209.2041%2021.2234V14.6123C9.2041%2014.1113%209.39976%2013.6309%209.74805%2013.2767C10.0963%2012.9224%2010.5687%2012.7234%2011.0612%2012.7234H11.9898ZM13.847%209.89008C13.847%209.38912%2014.0426%208.90867%2014.3909%208.55444C14.7392%208.2002%2015.2116%208.00119%2015.7041%208.00119C16.1966%208.00119%2016.669%208.2002%2017.0173%208.55444C17.3656%208.90867%2017.5612%209.38912%2017.5612%209.89008V12.7234H13.847V9.89008ZM15.7041%2015.5567C15.9504%2015.5567%2016.1866%2015.6563%2016.3607%2015.8334C16.5348%2016.0105%2016.6327%2016.2507%2016.6327%2016.5012V19.3345C16.6327%2019.585%2016.5348%2019.8252%2016.3607%2020.0023C16.1866%2020.1795%2015.9504%2020.279%2015.7041%2020.279C15.4578%2020.279%2015.2216%2020.1795%2015.0475%2020.0023C14.8734%2019.8252%2014.7755%2019.585%2014.7755%2019.3345V16.5012C14.7755%2016.2507%2014.8734%2016.0105%2015.0475%2015.8334C15.2216%2015.6563%2015.4578%2015.5567%2015.7041%2015.5567Z'%20fill='%2392898A'/%3e%3c/svg%3e",b1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Editar'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.1021'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cg%20id='Group%203792'%3e%3cpath%20id='Vector%20530'%20d='M22.469%2010.8343L19.54%207.90531C19.3447%207.71005%2019.0281%207.71005%2018.8329%207.90531L8.39131%2018.3469C8.31762%2018.4206%208.2688%2018.5154%208.25167%2018.6182L7.66586%2022.1331C7.60946%2022.4715%207.90285%2022.7649%208.24126%2022.7085L11.7561%2022.1227C11.8589%2022.1055%2011.9538%2022.0567%2012.0275%2021.983L22.469%2011.5415C22.6643%2011.3462%2022.6643%2011.0296%2022.469%2010.8343Z'%20stroke='%23605B56'/%3e%3cpath%20id='Vector%20531'%20d='M9.00391%2017.7334L12.6401%2021.3695'%20stroke='%23605B56'/%3e%3cpath%20id='Vector%20614'%20d='M19.4292%207.55176L9.24805%2017.733L12.6418%2021.1267L22.823%2010.9455L19.4292%207.55176Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",C1="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%206729'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.1021'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='i'%20d='M14%209.008C14%208.708%2014.102%208.468%2014.306%208.288C14.51%208.096%2014.78%208%2015.116%208C15.452%208%2015.722%208.096%2015.926%208.288C16.13%208.468%2016.232%208.708%2016.232%209.008C16.232%209.308%2016.13%209.554%2015.926%209.746C15.722%209.926%2015.452%2010.016%2015.116%2010.016C14.78%2010.016%2014.51%209.926%2014.306%209.746C14.102%209.554%2014%209.308%2014%209.008ZM15.926%2011.906V21.788H14.288V11.906H15.926Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e";var os;function Nr(){return Nr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Nr.apply(null,arguments)}var v1=function(t){return J.createElement("svg",Nr({xmlns:"http://www.w3.org/2000/svg",width:26,height:14,fill:"none"},t),os||(os=J.createElement("g",{fill:"currentColor"},J.createElement("path",{d:"M12.95.408C7.659.408 2.849 2.772.083 6.726a.47.47 0 0 0 0 .532c2.761 3.955 7.571 6.313 12.867 6.313s10.106-2.358 12.867-6.313a.47.47 0 0 0 0-.532C23.05 2.772 18.24.408 12.95.408m0 10.814A4.24 4.24 0 0 1 8.718 6.99a4.24 4.24 0 0 1 4.232-4.232 4.24 4.24 0 0 1 4.232 4.232 4.24 4.24 0 0 1-4.232 4.232"}),J.createElement("path",{d:"M12.951 10.297a3.307 3.307 0 1 0 0-6.614 3.307 3.307 0 0 0 0 6.614"}))))};const x1="data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%200%2026%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%205207'%3e%3cpath%20id='Vector'%20d='M12.9837%206.40625C11.1707%206.40625%209.69531%207.88162%209.69531%209.69462C9.69531%2010.0276%209.74618%2010.3514%209.83869%2010.652C9.93579%2010.9711%2010.0792%2011.2718%2010.2642%2011.54L14.8291%206.97512C14.5562%206.79013%2014.2602%206.64676%2013.9411%206.54962C13.6404%206.45712%2013.3167%206.40625%2012.9837%206.40625Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_2'%20d='M19.4938%204.44079C19.318%204.36678%2019.1191%204.40841%2018.985%204.53792L16.3534%207.16955V7.17415C16.543%207.42855%2016.7049%207.70604%2016.8344%208.00204C17.0656%208.52004%2017.1905%209.09354%2017.1905%209.69478C17.1905%2012.0165%2015.3035%2013.9035%2012.9818%2013.9035C12.3805%2013.9035%2011.807%2013.7787%2011.289%2013.5474C10.993%2013.4179%2010.7155%2013.256%2010.4611%2013.0664H10.4565L8.52788%2014.995C8.41225%2015.1153%208.36601%2015.2864%208.41225%2015.4437C8.45389%2015.6055%208.57875%2015.7304%208.74063%2015.772C10.0958%2016.1189%2011.511%2016.2947%2012.9494%2016.2947C18.245%2016.2947%2023.055%2013.9359%2025.8161%209.98153C25.9271%209.82429%2025.9271%209.61153%2025.8161%209.45427C24.2991%207.27591%2022.1115%205.54154%2019.4938%204.44079Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_3'%20d='M12.9843%2012.979C14.7973%2012.979%2016.268%2011.5082%2016.268%209.6952C16.268%209.35295%2016.2171%209.0292%2016.12%208.71933C16.0229%208.4002%2015.8749%208.10419%2015.6899%207.83594L11.125%2012.4008C11.3933%2012.5858%2011.6893%2012.7338%2012.0084%2012.831C12.3183%2012.9281%2012.6466%2012.979%2012.9843%2012.979Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_4'%20d='M9.12048%2011.3694C8.89386%2010.856%208.769%2010.2918%208.769%209.69516C8.769%207.3734%2010.656%205.48178%2012.9824%205.48178C13.579%205.48178%2014.1433%205.60667%2014.6566%205.83329C14.9526%205.95815%2015.2347%206.12004%2015.4891%206.31428L17.3808%204.42267L21.0114%200.792026C21.1918%200.611646%2021.1918%200.315664%2021.0114%200.135285C20.831%20-0.0450949%2020.535%20-0.0450949%2020.3546%200.135285L16.8951%203.59478C15.6186%203.28491%2014.2959%203.13228%2012.95%203.13228C7.65437%203.13228%202.84439%205.49565%200.0832465%209.45464C-0.0277488%209.61191%20-0.0277488%209.82467%200.0832465%209.9819C1.48001%2011.9845%203.44563%2013.6079%205.78125%2014.7087L3.37162%2017.1183C3.19127%2017.2986%203.19127%2017.5947%203.37162%2017.775C3.46412%2017.8629%203.57975%2017.9091%203.7%2017.9091C3.82026%2017.9091%203.93588%2017.8629%204.02839%2017.775L9.60151%2012.2019C9.40727%2011.9429%209.24536%2011.6654%209.12048%2011.3694Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3c/g%3e%3c/svg%3e",hi=({listelement:e,onClickElement:t,isActive:n,activeColor:o,fontColor:r,moreInfo:i,columns:a,elementButtons:l,processTooltip:u,defaultTooltip:d,showEye:g=!0})=>{const{name:h,created_at:y,id:m,isBeingProcessed:C}=e,[p,w]=_.useState(!1),{t:S}=oe.useTranslation();_.useEffect(()=>{console.log("elementButtons: ",l)},[l]);const T=l&&l.edit&&!e.is_default&&!e.is_baseline,$=l&&l.trash&&!e.is_default&&!e.is_baseline;return c.jsxs("div",{className:We.listElement,style:{borderBottom:`1px solid ${r}`},children:[c.jsx("div",{className:We.elementNameDate,onClick:()=>t(m),children:Object.keys(a).map((b,v)=>b==="name"?c.jsx("div",{className:We.elementNameContainer,children:c.jsxs("div",{className:`${We.elementName} ${g&&We.nameAndEye}`,children:[g&&(n?c.jsx(v1,{style:{color:o,marginRight:9}}):c.jsx("img",{style:{marginRight:9},src:x1,alt:"eye"})),c.jsx("span",{style:{color:n?o:r},children:h})]})},`col${v}`):b=="data"?c.jsx("div",{className:We.elementDate,children:y?new Date(y).toLocaleDateString():""},`col${v}data`):c.jsx("div",{className:We.elementDate,children:e[b]},`col${v}other`))}),c.jsxs("div",{className:We.elementButtons,children:[e.processing&&c.jsxs("div",{className:"tooltip-parent",children:[c.jsx("img",{src:g1}),c.jsx(Qe,{text:u,position:"left"})]}),l.filter&&!e.is_default&&c.jsxs("div",{className:"tooltip-parent",children:[c.jsx("button",{onClick:()=>l.filter.onclick(e),disabled:l.filter.disabled||!1,children:c.jsx("img",{src:h1})}),c.jsx(Qe,{text:l.filter.tooltiptext,position:"left"})]}),l.copy&&!e.is_default&&c.jsxs("div",{className:"tooltip-parent",children:[c.jsx("button",{onClick:()=>l.copy.onclick(e),disabled:l.copy.disabled||!1,children:c.jsx("img",{src:m1})}),c.jsx(Qe,{text:l.copy.tooltiptext,position:"left"})]}),T&&c.jsxs("div",{className:"tooltip-parent",children:[c.jsx("button",{onClick:()=>l.edit.onclick(e),disabled:l.edit.disabled||!1,children:c.jsx("img",{src:b1})}),c.jsx(Qe,{text:l.edit.tooltiptext,position:"left"})]}),l.info&&e.is_default&&c.jsxs("div",{className:"tooltip-parent",children:[c.jsx("button",{onClick:()=>l.info.onclick(e),disabled:l.info.disabled||!1,children:c.jsx("img",{src:C1})}),c.jsx(Qe,{text:l.info.tooltiptext,position:"left"})]}),$&&c.jsxs("div",{className:"tooltip-parent",children:[c.jsx("button",{onClick:()=>l.trash.onclick(e),disabled:l.trash.disabled||!1,children:c.jsx("img",{src:p1})}),c.jsx(Qe,{text:l.trash.tooltiptext,position:"left"})]}),e.is_default&&c.jsxs("div",{className:"tooltip-parent",children:[c.jsx("img",{src:y1}),c.jsx(Qe,{text:d,position:"left"})]})]}),i&&c.jsx("div",{className:We.break}),i&&c.jsxs("div",{className:We.moreInfoContainer,children:[c.jsxs("div",{className:We.moreInfo,onClick:()=>w(!p),children:[c.jsx("span",{children:p?"-":"+"}),S(i.label)]}),i&&p&&c.jsx("div",{className:We.moreInfoInfo,children:e[i.info]})]})]})};hi.propTypes={listelement:s.shape({name:s.string.isRequired,created_at:s.string,id:s.any.isRequired,isBeingProcessed:s.bool}).isRequired,onClickElement:s.func.isRequired,isActive:s.bool,activeColor:s.string,fontColor:s.string,moreInfo:s.any,columns:s.shape({name:s.string,data:s.string,ambit:s.string,escenari:s.string}),elementButtons:s.shape({copy:s.shape({onclick:s.func,tooltiptext:s.string}),delete:s.shape({onclick:s.func,tooltiptext:s.string}),filter:s.shape({onclick:s.func,tooltiptext:s.string})}),processTooltip:s.string,defaultTooltip:s.string,showEye:s.bool};const ss="data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%200%2014%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector'%20d='M7%2015L7%201M7%2015L1%209M7%2015L13%209'%20stroke='%23605B56'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",gi=({elementsList:e,activeElementId:t,fontColor:n="#605B56",activeColor:o,buttonContainerStyles:r={},containerStyles:i={},newElementButton:a,onClickElement:l=C=>console.log(`OnCLickElement: ${C}`),columns:u,elementButtons:d,moreInfo:g=!1,processTooltip:h,defaultTooltip:y,showEye:m=!0})=>{const{t:C}=oe.useTranslation(),[p,w]=_.useState(e);_.useEffect(()=>{e&&w(e)},[e]);const S=b=>{if(typeof b!="string")return null;if(/^\d{4}[-/]\d{2}[-/]\d{2}$/.test(b))return new Date(b);const v=/^(\d{2})[-/.]\s*(\d{2})[-/.]\s*(\d{4})$/.exec(b);if(v)return new Date(`${v[3]}-${v[2]}-${v[1]}`);const x=/^(\d{2})[-/]\s*(\d{2})[-/]\s*(\d{4})$/.exec(b);return x?parseInt(x[1])>12?new Date(`${x[3]}-${x[2]}-${x[1]}`):new Date(`${x[3]}-${x[1]}-${x[2]}`):null},T=b=>S(b)!==null,$=b=>{if(!p||p.length===0)return;let v=[...p];const x=v.find(R=>R[b]!==null&&R[b]!==void 0),O=x?T(x[b]):!1;v.sort((R,N)=>{const q=R[b],F=N[b];if(q==null&&F==null)return 0;if(q==null)return 1;if(F==null)return-1;if(O){const k=S(q),V=S(F);return!k&&!V?0:k?V?k-V:-1:1}const f=String(q||"").trim(),E=String(F||"").trim();return f.localeCompare(E)}),w(v)};return c.jsxs("div",{className:nt.elementSelector,style:{color:n,...i},children:[c.jsxs("div",{className:nt.header,style:{borderBottom:`1px solid ${n}`},children:[c.jsx("div",{className:nt.nameDateContainer,children:Object.keys(u).map(b=>b==="name"?c.jsx("div",{className:nt.elementName,children:c.jsxs("button",{onClick:()=>$("name"),children:[c.jsx("span",{children:C(u.name)}),c.jsx("img",{src:ss,alt:"order arrow"})]})},b):b==="data"?c.jsx("div",{className:nt.elementDate,children:c.jsxs("button",{onClick:()=>$("created_at"),children:[c.jsx("span",{children:C(u.data)}),c.jsx("img",{src:ss,alt:"order arrow"})]})},b):c.jsx("div",{className:nt.elementDate,children:c.jsx("span",{children:C(u[b])})},b))}),c.jsx("div",{className:nt.buttonsContainer})]}),c.jsx("div",{className:nt.elementListContainer,children:p&&p.length>0&&p.map(b=>c.jsx(hi,{isActive:t==b.id,listelement:b,fontColor:n,activeColor:o,onClickElement:l,columns:u,elementButtons:d,moreInfo:g,processTooltip:h,defaultTooltip:y,showEye:m},`elementKey${b.id}`))}),a&&c.jsx("div",{className:nt.newElementButtonContainer,children:c.jsx(ln,{style:{...r},onClick:a.onClick,borderColor:"grey",disabled:a.disabled||!1,children:C(a.label)})})]})};gi.propTypes={elementsList:s.arrayOf(s.shape({name:s.string.isRequired,created_at:s.string,id:s.any.isRequired})).isRequired,activeElementId:s.any,fontColor:s.string,activeColor:s.string,onClickElement:s.func.isRequired,newElementButton:s.shape({label:s.string,onClick:s.func}),columns:s.shape({name:s.string,data:s.string,ambit:s.string,escenari:s.string}),elementButtons:s.shape({copy:s.shape({onclick:s.func,tooltiptext:s.string}),delete:s.shape({onclick:s.func,tooltiptext:s.string}),filter:s.shape({onclick:s.func,tooltiptext:s.string})}),buttonContainerStyles:s.object,containerStyles:s.object,onCLickNewElement:s.func,moreInfo:s.shape({label:s.string,info:s.any}),processTooltip:s.string,defaultTooltip:s.string,showEye:s.bool};const _1="_formContainer_asv64_2",w1="_categorySelectorContainer_asv64_11",S1="_formObjectContainer_asv64_15",k1="_buttonContainer_asv64_26",Xt={formContainer:_1,categorySelectorContainer:w1,formObjectContainer:S1,buttonContainer:k1},Dt={text:"text",password:"password",radioList:"radioList",select:"select",textDescription:"textDescription",rankingSlider:"rankingSlider"};var T1=e=>e.type==="checkbox",rn=e=>e instanceof Date,Zr=e=>e==null;const yi=e=>typeof e=="object";var kt=e=>!Zr(e)&&!Array.isArray(e)&&yi(e)&&!rn(e),j1=e=>kt(e)&&e.target?T1(e.target)?e.target.checked:e.target.value:e,E1=(e,t)=>t.split(".").some((n,o,r)=>!isNaN(Number(n))&&e.has(r.slice(0,o).join("."))),$1=e=>{const t=e.constructor&&e.constructor.prototype;return kt(t)&&t.hasOwnProperty("isPrototypeOf")},N1=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function bi(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(N1&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(kt(e)&&$1(e)))return e;const o=n?[]:Object.create(Object.getPrototypeOf(e));for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=bi(e[r]));return o}var Ci=e=>/^\w*$/.test(e),Or=e=>e===void 0,O1=e=>Array.isArray(e)?e.filter(Boolean):[],vi=e=>O1(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ie=(e,t,n)=>{if(!t||!kt(e))return n;const o=(Ci(t)?[t]:vi(t)).reduce((r,i)=>Zr(r)?r:r[i],e);return Or(o)||o===e?Or(e[t])?n:e[t]:o},Cr=e=>typeof e=="boolean",jn=e=>typeof e=="function",is=(e,t,n)=>{let o=-1;const r=Ci(t)?[t]:vi(t),i=r.length,a=i-1;for(;++o<i;){const l=r[o];let u=n;if(o!==a){const d=e[l];u=kt(d)||Array.isArray(d)?d:isNaN(+r[o+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=u,e=e[l]}};const as={BLUR:"blur",CHANGE:"change"},ls={all:"all"},xi=_.createContext(null);xi.displayName="HookFormControlContext";const Hr=()=>_.useContext(xi);var A1=(e,t,n,o=!0)=>{const r={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(r,i,{get:()=>{const a=i;return t._proxyFormState[a]!==ls.all&&(t._proxyFormState[a]=!o||ls.all),n&&(n[a]=!0),e[a]}});return r};const _i=typeof window<"u"?_.useLayoutEffect:_.useEffect;function L1(e){const t=Hr(),{control:n=t,disabled:o,name:r,exact:i}=e||{},[a,l]=_.useState(n._formState),u=_.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return _i(()=>n._subscribe({name:r,formState:u.current,exact:i,callback:d=>{!o&&l({...n._formState,...d})}}),[r,o,i]),_.useEffect(()=>{u.current.isValid&&n._setValid(!0)},[n]),_.useMemo(()=>A1(a,n,u.current,!1),[a,n])}var M1=e=>typeof e=="string",cs=(e,t,n,o,r)=>M1(e)?Ie(n,e,r):Array.isArray(e)?e.map(i=>Ie(n,i)):n,us=e=>Zr(e)||!yi(e);function Mn(e,t,n=new WeakSet){if(us(e)||us(t))return Object.is(e,t);if(rn(e)&&rn(t))return Object.is(e.getTime(),t.getTime());const o=Object.keys(e),r=Object.keys(t);if(o.length!==r.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const i of o){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const l=t[i];if(rn(a)&&rn(l)||(kt(a)||Array.isArray(a))&&(kt(l)||Array.isArray(l))?!Mn(a,l,n):!Object.is(a,l))return!1}}return!0}function R1(e){const t=Hr(),{control:n=t,name:o,defaultValue:r,disabled:i,exact:a,compute:l}=e||{},u=_.useRef(r),d=_.useRef(l),g=_.useRef(void 0),h=_.useRef(n),y=_.useRef(o);d.current=l;const[m,C]=_.useState(()=>{const b=n._getWatch(o,u.current);return d.current?d.current(b):b}),p=_.useCallback(b=>{const v=cs(o,n._names,b||n._formValues,!1,u.current);return d.current?d.current(v):v},[n._formValues,n._names,o]),w=_.useCallback(b=>{if(!i){const v=cs(o,n._names,b||n._formValues,!1,u.current);if(d.current){const x=d.current(v);Mn(x,g.current)||(C(x),g.current=x)}else C(v)}},[n._formValues,n._names,i,o]);_i(()=>((h.current!==n||!Mn(y.current,o))&&(h.current=n,y.current=o,w()),n._subscribe({name:o,formState:{values:!0},exact:a,callback:b=>{w(b.values)}})),[n,a,o,w]),_.useEffect(()=>n._removeUnmounted());const S=h.current!==n,T=y.current,$=_.useMemo(()=>{if(i)return null;const b=!S&&!Mn(T,o);return S||b?p():null},[i,S,o,T,p]);return $!==null?$:m}function D1(e){const t=Hr(),{name:n,disabled:o,control:r=t,shouldUnregister:i,defaultValue:a,exact:l=!0}=e,u=E1(r._names.array,n),d=_.useMemo(()=>Ie(r._formValues,n,Ie(r._defaultValues,n,a)),[r,n,a]),g=R1({control:r,name:n,defaultValue:d,exact:l}),h=L1({control:r,name:n,exact:l}),y=_.useRef(e),m=_.useRef(void 0),C=_.useRef(r.register(n,{...e.rules,value:g,...Cr(e.disabled)?{disabled:e.disabled}:{}}));y.current=e;const p=_.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ie(h.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ie(h.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ie(h.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Ie(h.validatingFields,n)},error:{enumerable:!0,get:()=>Ie(h.errors,n)}}),[h,n]),w=_.useCallback(b=>C.current.onChange({target:{value:j1(b),name:n},type:as.CHANGE}),[n]),S=_.useCallback(()=>C.current.onBlur({target:{value:Ie(r._formValues,n),name:n},type:as.BLUR}),[n,r._formValues]),T=_.useCallback(b=>{const v=Ie(r._fields,n);v&&v._f&&b&&(v._f.ref={focus:()=>jn(b.focus)&&b.focus(),select:()=>jn(b.select)&&b.select(),setCustomValidity:x=>jn(b.setCustomValidity)&&b.setCustomValidity(x),reportValidity:()=>jn(b.reportValidity)&&b.reportValidity()})},[r._fields,n]),$=_.useMemo(()=>({name:n,value:g,...Cr(o)||h.disabled?{disabled:h.disabled||o}:{},onChange:w,onBlur:S,ref:T}),[n,o,h.disabled,w,S,T,g]);return _.useEffect(()=>{const b=r._options.shouldUnregister||i,v=m.current;v&&v!==n&&!u&&r.unregister(v),r.register(n,{...y.current.rules,...Cr(y.current.disabled)?{disabled:y.current.disabled}:{}});const x=(O,R)=>{const N=Ie(r._fields,O);N&&N._f&&(N._f.mount=R)};if(x(n,!0),b){const O=bi(Ie(r._options.defaultValues,n,y.current.defaultValue));is(r._defaultValues,n,O),Or(Ie(r._formValues,n))&&is(r._formValues,n,O)}return!u&&r.register(n),m.current=n,()=>{(u?b&&!r._state.action:b)?r.unregister(n):x(n,!1)}},[n,r,u,i]),_.useEffect(()=>{r._setDisabledField({disabled:o,name:n})},[o,n,r]),_.useMemo(()=>({field:$,formState:h,fieldState:p}),[$,h,p])}const dn=e=>e.render(D1(e)),I1=_.createContext(null);I1.displayName="HookFormContext";const P1="_textInputContainer_1o3iy_2",V1="_labelContainer_1o3iy_5",B1="_inputContainer_1o3iy_8",F1="_showPasswordButton_1o3iy_14",z1="_forgotPassButton_1o3iy_26",Jt={textInputContainer:P1,labelContainer:V1,inputContainer:B1,showPasswordButton:F1,forgotPassButton:z1},q1="_errorMessage_1xiyb_2",W1={errorMessage:q1},Ut=({errorMessage:e,errorColor:t="red",containerStyles:n})=>{const{t:o}=oe.useTranslation();return c.jsx("div",{className:W1.errorMessage,style:{color:t,...n},children:e?o(e):""})},U1="data:image/svg+xml,%3csvg%20width='26'%20height='14'%20viewBox='0%200%2026%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%205763'%3e%3cpath%20id='Vector'%20d='M12.95%200C7.659%200%202.84899%202.3634%200.0832465%206.31776C-0.0277488%206.47963%20-0.0277488%206.68776%200.0832465%206.84962C2.84439%2010.804%207.65437%2013.1628%2012.95%2013.1628C18.2456%2013.1628%2023.0556%2010.804%2025.8168%206.84962C25.9278%206.68775%2025.9278%206.47963%2025.8168%206.31776C23.051%202.36339%2018.241%200%2012.95%200ZM12.95%2010.8132C10.619%2010.8132%208.71812%208.91238%208.71812%206.58139C8.71812%204.25041%2010.619%202.34951%2012.95%202.34951C15.281%202.34951%2017.1819%204.25038%2017.1819%206.58139C17.1819%208.91241%2015.281%2010.8132%2012.95%2010.8132Z'%20fill='white'/%3e%3cpath%20id='Vector_2'%20d='M12.9514%209.88816C14.7777%209.88816%2016.2583%208.40763%2016.2583%206.58129C16.2583%204.75495%2014.7777%203.27441%2012.9514%203.27441C11.1251%203.27441%209.64453%204.75495%209.64453%206.58129C9.64453%208.40763%2011.1251%209.88816%2012.9514%209.88816Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",Z1="data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%200%2026%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%205995'%3e%3cpath%20id='Vector'%20d='M12.9837%206.40625C11.1707%206.40625%209.69531%207.88162%209.69531%209.69462C9.69531%2010.0276%209.74618%2010.3514%209.83869%2010.652C9.93579%2010.9711%2010.0792%2011.2718%2010.2642%2011.54L14.8291%206.97512C14.5562%206.79013%2014.2602%206.64676%2013.9411%206.54962C13.6404%206.45712%2013.3167%206.40625%2012.9837%206.40625Z'%20fill='white'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_2'%20d='M19.4938%204.44079C19.318%204.36678%2019.1191%204.40841%2018.985%204.53792L16.3534%207.16955V7.17415C16.543%207.42855%2016.7049%207.70604%2016.8344%208.00204C17.0656%208.52004%2017.1905%209.09354%2017.1905%209.69478C17.1905%2012.0165%2015.3035%2013.9035%2012.9818%2013.9035C12.3805%2013.9035%2011.807%2013.7787%2011.289%2013.5474C10.993%2013.4179%2010.7155%2013.256%2010.4611%2013.0664H10.4565L8.52788%2014.995C8.41225%2015.1153%208.36601%2015.2864%208.41225%2015.4437C8.45389%2015.6055%208.57875%2015.7304%208.74063%2015.772C10.0958%2016.1189%2011.511%2016.2947%2012.9494%2016.2947C18.245%2016.2947%2023.055%2013.9359%2025.8161%209.98153C25.9271%209.82429%2025.9271%209.61153%2025.8161%209.45427C24.2991%207.27591%2022.1115%205.54154%2019.4938%204.44079Z'%20fill='white'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_3'%20d='M12.9843%2012.979C14.7973%2012.979%2016.268%2011.5082%2016.268%209.6952C16.268%209.35295%2016.2171%209.0292%2016.12%208.71933C16.0229%208.4002%2015.8749%208.10419%2015.6899%207.83594L11.125%2012.4008C11.3933%2012.5858%2011.6893%2012.7338%2012.0084%2012.831C12.3183%2012.9281%2012.6466%2012.979%2012.9843%2012.979Z'%20fill='white'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_4'%20d='M9.12048%2011.3694C8.89386%2010.856%208.769%2010.2918%208.769%209.69516C8.769%207.3734%2010.656%205.48178%2012.9824%205.48178C13.579%205.48178%2014.1433%205.60667%2014.6566%205.83329C14.9526%205.95815%2015.2347%206.12004%2015.4891%206.31428L17.3808%204.42267L21.0114%200.792026C21.1918%200.611646%2021.1918%200.315664%2021.0114%200.135285C20.831%20-0.0450949%2020.535%20-0.0450949%2020.3546%200.135285L16.8951%203.59478C15.6186%203.28491%2014.2959%203.13228%2012.95%203.13228C7.65437%203.13228%202.84439%205.49565%200.0832465%209.45464C-0.0277488%209.61191%20-0.0277488%209.82467%200.0832465%209.9819C1.48001%2011.9845%203.44563%2013.6079%205.78125%2014.7087L3.37162%2017.1183C3.19127%2017.2986%203.19127%2017.5947%203.37162%2017.775C3.46412%2017.8629%203.57975%2017.9091%203.7%2017.9091C3.82026%2017.9091%203.93588%2017.8629%204.02839%2017.775L9.60151%2012.2019C9.40727%2011.9429%209.24536%2011.6654%209.12048%2011.3694Z'%20fill='white'%20fill-opacity='0.5'/%3e%3c/g%3e%3c/svg%3e",fn=hs.create(e=>({errorColor:"red"})),Ar=({input:e,reactHookFormInstance:t})=>{const{code:n,type:o,label:r,maxLength:i,required:a,validateFunction:l,placeholder:u,errorColor:d="red",width:g=325,onClickForgotPass:h=()=>{console.log("Click on forgot password")},forgotPassLabel:y="forgot-password",onChangeExtraFunction:m=()=>{}}=e,{t:C}=oe.useTranslation(),{control:p,trigger:w,clearErrors:S}=t,{errorColor:T}=fn(x=>x),[$,b]=_.useState(!1);_.useRef(a);const v=()=>o?o==="password"&&$?"text":o:"text";return c.jsx(dn,{name:n,control:p,rules:{required:a?`${C(r)} ${C("errorMessages.required")}`:!1,maxLength:i||void 0,validate:l||void 0},render:({field:x,fieldState:O})=>{var F;const{onChange:R,...N}=x,q=f=>{R(f),m&&m(f)};return c.jsxs("div",{className:Jt.textInputContainer,children:[c.jsxs("h3",{className:Jt.labelContainer,children:[C(r)," ",a&&c.jsx("label",{style:{color:O.error?d:""},children:"*"})]}),c.jsxs("div",{style:{position:"relative",width:g},className:Jt.inputContainer,children:[c.jsx("input",{...N,type:v(),onChange:q,placeholder:u?C(u):"",maxLength:i||void 0}),o=="password"&&c.jsx("button",{onClick:()=>b(!$),type:"button",className:Jt.showPasswordButton,children:c.jsx("img",{src:$?Z1:U1,alt:C("show-password")})})]}),o=="password"&&c.jsx("div",{className:Jt.forgotPassButton,children:c.jsx("button",{onClick:h,children:C(y)})}),c.jsx(Ut,{errorMessage:(F=O.error)==null?void 0:F.message,errorColor:T||d})]})}})},H1="_inputsContainer_10t9s_2",It={inputsContainer:H1},K1="_selectInputContainer_zzz6o_2",G1="_labelContainer_zzz6o_6",Y1="_selectWrapper_zzz6o_9",X1="_inputContainer_zzz6o_15",J1="_selectInput_zzz6o_2",Q1="_option_zzz6o_29",ed="_dropdownArrow_zzz6o_32",Re={selectInputContainer:K1,labelContainer:G1,selectWrapper:Y1,inputContainer:X1,selectInput:J1,option:Q1,dropdownArrow:ed},ds="data:image/svg+xml,%3csvg%20width='19'%20height='10'%20viewBox='0%200%2019%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector%20311'%20d='M1%201.09961L8.79289%208.8925C9.18342%209.28303%209.81658%209.28303%2010.2071%208.8925L18%201.09961'%20stroke='%23605B56'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/svg%3e",wi=({input:e,reactHookFormInstance:t,onChange:n})=>{const{code:o,type:r,label:i,maxLength:a,required:l,validateFunction:u,placeholder:d,errorColor:g="red",width:h=325,options:y=[]}=e,{t:m}=oe.useTranslation(),{control:C,trigger:p,clearErrors:w}=t||{},{errorColor:S}=fn(b=>b);_.useRef(l);const[T,$]=_.useState(null);return _.useEffect(()=>{T&&n&&n(T)},[T,n]),t?c.jsx(dn,{name:o,control:C,rules:{required:l?`${m(i)} ${m("errorMessages.required")}`:!1,validate:u?b=>{let v=t.getValues();return u(b,v)}:void 0},render:({field:b,fieldState:v})=>{var O;const x=y.find(R=>R.value===b.value);return c.jsxs("div",{className:Re.selectInputContainer,children:[i&&c.jsxs("h3",{className:Re.labelContainer,children:[m(i)," ",l&&c.jsx("label",{style:{color:v.error?g:""},children:"*"})]}),c.jsxs("div",{className:Re.selectWrapper,children:[c.jsxs("div",{className:Re.inputContainer,style:{width:h},children:[c.jsxs("select",{...b,value:b.value??"",onChange:R=>{const N=R.target.value,q=y.every(F=>typeof F.value=="number")?Number(N):N;b.onChange(q)},className:Re.selectInput,children:[c.jsx("option",{value:"",disabled:!0,hidden:!0,children:m(d||"selectOption")}),y.map((R,N)=>c.jsx("option",{value:R.value,className:Re.option,children:m(R.label)},N))]}),c.jsx("img",{src:ds,alt:"Open",className:Re.dropdownArrow})]}),x&&x.description&&c.jsx("div",{className:Re.optionDescription,children:m(x.description)})]}),c.jsx(Ut,{errorMessage:(O=v.error)==null?void 0:O.message,errorColor:S||g})]})}}):c.jsxs("div",{className:Re.selectInputContainer,children:[i&&c.jsxs("h3",{className:Re.labelContainer,children:[m(i)," ",l&&c.jsx("label",{children:"*"})]}),c.jsxs("div",{className:Re.inputContainer,style:{width:h},children:[c.jsxs("select",{value:T??"",onChange:b=>{const v=b.target.value,x=y.every(O=>typeof O.value=="number")?Number(v):v;$(x)},className:Re.selectInput,children:[c.jsx("option",{value:"",disabled:!0,hidden:!0,children:m(d||"selectOption")}),y.map((b,v)=>c.jsx("option",{value:b.value,className:Re.option,children:m(b.label)},v))]}),c.jsx("img",{src:ds,alt:"Open",className:Re.dropdownArrow})]}),(()=>{const b=y.find(v=>v.value===T);return b&&b.description?c.jsx("div",{className:Re.optionDescription,children:m(b.description)}):null})()]})},td="_radioButtonContainer_1e994_2",nd="_wholeInputContainer_1e994_5",rd="_questionContainer_1e994_27",od="_radioQuestion_1e994_59",sd="_inputContainer_1e994_63",id="_radioInput_1e994_93",vt={radioButtonContainer:td,wholeInputContainer:nd,questionContainer:rd,radioQuestion:od,inputContainer:sd,radioInput:id},Si=({input:e,reactHookFormInstance:t})=>{const{code:n,label:o,required:r,validateFunction:i,errorColor:a="red",options:l=[],multi:u=!1}=e,{t:d}=oe.useTranslation(),{control:g,trigger:h,clearErrors:y}=t,{errorColor:m}=fn(w=>w),C=({options:w,onChange:S,actualValue:T})=>{if(u&&T&&T.length>0){let $=T.filter(b=>b!==w);S($)}},p=({options:w,onChange:S,actualValue:T})=>{u?T&&T.length>0?S([...T,w]):S([w]):S(w)};return _.useRef(r),c.jsx(dn,{control:g,name:n,rules:{validate:w=>r&&(w==null||w==="")?`${d(o)} ${d("errorMessages.required")}`:null},render:({formState:{errors:w},field:{onChange:S,onBlur:T,value:$,ref:b},fieldState:v})=>{var x;return c.jsx("div",{id:n+"id",className:vt.radioButtonContainer,children:c.jsxs("div",{className:vt.wholeInputContainer,children:[o&&c.jsx("div",{className:vt.questionContainer,children:c.jsxs("h3",{htmlFor:n+"id",className:`${vt.radioQuestion} ${r&&vt.required}`,children:[d(o)," ",r&&c.jsx("label",{style:{color:v.error?a:""},children:"*"})]})}),c.jsxs("div",{className:vt.inputContainer,children:[l.map(({label:O,value:R,disabled:N=!1,italicLabel:q},F)=>{const f=$&&u?$.isArray&&($==null?void 0:$.length)>0&&$.some(E=>E===R):$===R;return c.jsxs("label",{children:[c.jsx("input",{type:"radio",checked:f,onChange:()=>{u?f?C({actualValue:$,options:l,onChange:S}):p({actualValue:$,options:l,onChange:S}):S(R)},className:vt.radioInput}),c.jsx("span",{className:"radio-custom"}),d(O)]},`inputRadio ${F}`)}),c.jsx(Ut,{errorMessage:(x=v.error)==null?void 0:x.message,errorColor:m||a})]})]})})}})},ad="_rankingSliderContainer_1dvpb_2",ld="_labelContainer_1dvpb_6",cd="_inputContainer_1dvpb_10",ud="_slider_1dvpb_20",dd="_thumb_1dvpb_27",fd="_labels_1dvpb_37",pd="_minLabel_1dvpb_67",md="_maxLabel_1dvpb_68",Te={rankingSliderContainer:ad,labelContainer:ld,inputContainer:cd,slider:ud,thumb:dd,labels:fd,minLabel:pd,maxLabel:md},Kr=({input:e,reactHookFormInstance:t,onChange:n})=>{const{code:o,label:r,minValue:i=1,maxValue:a=5,defValue:l=3,thumbColor:u="#B32F5D",required:d,errorColor:g="red",labelWidth:h="300px",sliderWidth:y="300px",minText:m,maxText:C,disabled:p=!1,marks:w=Array.from({length:a-i+1},(N,q)=>i+q),showMarksNumber:S=!0}=e,{t:T}=oe.useTranslation(),{control:$,trigger:b,clearErrors:v}=t||{};_.useRef(d);const{errorColorForm:x}=fn(N=>N),[O,R]=_.useState(l);return t?c.jsx(dn,{name:o,control:$,defaultValue:l,rules:{required:d?`${T(r)} ${T("errorMessages.required")}`:!1},render:({field:N,fieldState:q})=>{var F;return c.jsxs("div",{className:Te.rankingSliderContainer,style:{gridTemplateColumns:`${r&&h} ${y}`},children:[r&&c.jsx("p",{className:Te.labelContainer,style:{color:p?"#CCCCCC":"#605B56"},children:T(r)}),c.jsxs("div",{className:Te.inputContainer,children:[m&&c.jsx("div",{className:Te.minLabel,children:T(m)}),c.jsxs("div",{children:[c.jsx(Sr,{min:i,max:a,step:1,value:N.value??l,onChange:f=>{N.onChange(f)},marks:!0,className:Te.slider,thumbClassName:Te.thumb,renderThumb:f=>c.jsx("div",{...f,style:{...f.style,backgroundColor:p?"#CCCCCC":u,cursor:p?"not-allowed":"grab"}}),trackClassName:Te.track,markClassName:Te.mark,disabled:p}),w&&c.jsx("div",{className:Te.labels,children:w.map(f=>c.jsx("span",{children:S&&f},f))})]}),C&&c.jsx("div",{className:Te.maxLabel,children:T(C)})]}),c.jsx(Ut,{errorMessage:(F=q.error)==null?void 0:F.message,errorColor:x||g})]})}}):c.jsxs("div",{className:Te.rankingSliderContainer,style:{gridTemplateColumns:`${r&&h} ${y}`},children:[r&&c.jsx("p",{className:Te.labelContainer,style:{color:p?"#CCCCCC":"#605B56"},children:T(r)}),c.jsxs("div",{className:Te.inputContainer,children:[m&&c.jsx("div",{className:Te.minLabel,children:T(m)}),c.jsxs("div",{children:[c.jsx(Sr,{min:i,max:a,step:1,value:O,onChange:N=>{R(N),n&&n(N)},marks:!0,className:Te.slider,thumbClassName:Te.thumb,renderThumb:N=>c.jsx("div",{...N,style:{...N.style,backgroundColor:p?"#CCCCCC":u,cursor:p?"not-allowed":"grab"}}),trackClassName:Te.track,markClassName:Te.mark,disabled:p}),w&&c.jsx("div",{className:Te.labels,children:w.map(N=>c.jsx("span",{children:S&&N},N))})]}),C&&c.jsx("div",{className:Te.maxLabel,children:T(C)})]})]})};Kr.propTypes={input:s.shape({code:s.string,label:s.string,minValue:s.number,maxValue:s.number,defValue:s.number,thumbColor:s.string,required:s.bool,errorColor:s.string,labelWidth:s.string,sliderWidth:s.string,minText:s.string,maxText:s.string}),reactHookFormInstance:s.object};const hd="_textDescriptionContainer_163pc_2",gd="_textDescriptionText_163pc_6",fs={textDescriptionContainer:hd,textDescriptionText:gd},yd=({input:e,inputContainerStyles:t})=>c.jsx("div",{className:fs.textDescriptionContainer,style:{margin:"10px 0",...t},children:c.jsx("p",{className:fs.textDescriptionText,children:e.text})}),Qt=({inputs:e,inputContainerStyles:t,reactHookFormInstance:n})=>{const{watch:o}=n,r=o(),i=_.useMemo(()=>e==null?void 0:e.map(a=>{const l=typeof a.required=="function"?a.required(r):a.required;return{...a,required:l}}),[e,r]);return c.jsx("div",{className:It.inputsContainer,children:i==null?void 0:i.map((a,l)=>{const{inputType:u}=a;switch(u){case Dt.text:return c.jsx("div",{className:It.inputContainer,style:{...t},children:c.jsx(Ar,{input:a,reactHookFormInstance:n})},`${a.code}${l}`);case Dt.password:return c.jsx("div",{className:It.inputContainer,style:{...t},children:c.jsx(Ar,{input:a,reactHookFormInstance:n})},`${a.code}${l}`);case Dt.select:return c.jsx("div",{className:It.inputContainer,style:{...t},children:c.jsx(wi,{input:a,reactHookFormInstance:n})},`${a.code}${l}`);case Dt.radioList:return c.jsx("div",{className:It.inputContainer,style:{...t},children:c.jsx(Si,{input:a,reactHookFormInstance:n})},`${a.code}${l}`);case Dt.rankingSlider:return c.jsx("div",{className:It.inputContainer,style:{...t},children:c.jsx(Kr,{input:a,reactHookFormInstance:n})},`${a.code}${l}`);case Dt.textDescription:return c.jsx(yd,{input:a,inputContainerStyles:t},`${a.code}${l}`);default:return c.jsx("div",{children:c.jsx("h4",{children:"Default"})},`${a.code}${l}`)}})})},bd="_categorySelector_1guuv_2",Cd="_sectionItemActive_1guuv_16",vd="_sectionItem_1guuv_16",xd="_sectionItemError_1guuv_32",en={categorySelector:bd,sectionItemActive:Cd,sectionItem:vd,sectionItemError:xd},Lr=({categories:e,onChange:t,activeCategory:n,activeColor:o,containerStyles:r={},categoriesWithErrors:i=[]})=>{const{t:a}=oe.useTranslation(),l=u=>{t(u)};return c.jsx("div",{className:en.categorySelector,style:r?{...r}:{},children:e.map((u,d)=>{const{id:g,label:h}=u,y=n==g,m=i.includes(g);return c.jsx("button",{className:`${en.sectionItem} ${y?en.sectionItemActive:""} ${m?en.sectionItemError:""}`,type:"button",style:{backgroundColor:y?o:"inherit"},onClick:()=>l(g),children:c.jsx("span",{style:{color:y?"white":"inherit"},className:en.sectionLabel,children:a(h)})},`keySection${d}`)})})},_d=({reactHookFormInstance:e,formObject:t,CategoryComponent:n,inputContainerStyles:o,generalError:r,errorColor:i="red",submitButtonLabel:a="Submit",submitButtonStyles:l={width:325},showCategorySelector:u=!0,defaultCategory:d=null,categoryLabel:g="Select Category",activeCategory:h=null,activeCategoryColor:y="#b32f5d",categoriesWithErrors:m=[],onSubmit:C=p=>console.log("Form submitted with: ",p)})=>{const{t:p}=oe.useTranslation(),{handleSubmit:w,control:S}=e;_.useEffect(()=>{i&&fn.setState(()=>({errorColor:i}))},[i]);const T=_.useMemo(()=>t?t.filter(N=>N.category).map(N=>{var q;return{id:N.categoryId,label:N.category,hasSubcategories:((q=N.subcategories)==null?void 0:q.length)>0}}):[],[t]),$=N=>{const q=t==null?void 0:t.find(F=>F.categoryId===N);return(q==null?void 0:q.subcategories)||[]},[b,v]=_.useState(h||d||null),[x,O]=_.useState(null);_.useEffect(()=>{!b&&T.length>0&&v(T[0].id)},[T,b]),_.useEffect(()=>{const N=$(b);!x&&(N==null?void 0:N.length)>0&&O(N[0].id)},[b,x,t]);const R=(N,q)=>{var F;if(((F=N.subcategories)==null?void 0:F.length)>0){const f=N.subcategories;return c.jsxs("div",{children:[c.jsx("div",{className:Xt.categorySelectorContainer,children:c.jsx(Lr,{activeCategory:x,categories:f,categoriesWithErrors:m,onChange:E=>O(E),activeColor:y})},N.categoryId),f.map((E,k)=>{const V=!x||E.id===x;return n?c.jsx("div",{style:{display:V?"block":"none",width:"100%"},children:c.jsx(n,{title:E.label,children:c.jsx(Qt,{inputs:E.inputs,control:S,inputContainerStyles:o,errorColor:i,reactHookFormInstance:e})},E.id)},`${E.id}${k}`):c.jsxs("div",{style:{width:"100%",display:V?"block":"none"},children:[c.jsx("h3",{style:{marginBottom:15},children:p(E.label)}),c.jsx(Qt,{inputs:E.inputs,control:S,inputContainerStyles:o,errorColor:i,reactHookFormInstance:e})]},`${E.id}${k}`)})]})}return n?c.jsx(n,{title:N.category,children:c.jsx(Qt,{inputs:N.inputs,control:S,inputContainerStyles:o,errorColor:i,reactHookFormInstance:e})},N.categoryId):c.jsxs("div",{style:{width:"100%"},children:[c.jsx("h2",{children:p(N.category)}),c.jsx(Qt,{inputs:N.inputs,control:S,inputContainerStyles:o,errorColor:i,reactHookFormInstance:e})]},N.categoryId)};return c.jsxs("form",{className:Xt.formContainer,onSubmit:w(C),children:[u&&T.length>0&&c.jsx("div",{className:Xt.categorySelectorContainer,children:c.jsx(Lr,{activeCategory:b,categories:T,categoriesWithErrors:m,onChange:N=>{v(N),O(null)},activeColor:y})}),c.jsx("div",{className:Xt.formObjectContainer,children:t==null?void 0:t.map((N,q)=>{const F=N.categoryId===b;return N.category?c.jsx("div",{style:{width:"100%",display:F?"block":"none"},children:R(N)},N.categoryId):c.jsx(Qt,{inputs:N.inputs,control:S,inputContainerStyles:o,errorColor:i,reactHookFormInstance:e},`no-category-${q}`)})}),c.jsxs("div",{className:Xt.buttonContainer,children:[c.jsx(ln,{containerStyles:l,type:"submit",children:p(a)}),c.jsx(Ut,{errorMessage:r,errorColor:i})]})]})},wd="_overlay_mnd4j_2",Sd="_modal_mnd4j_15",kd="_closeButton_mnd4j_29",Td="_icon_mnd4j_39",jd="_message_mnd4j_45",Ed="_submessage_mnd4j_51",$d="_buttonsContainer_mnd4j_57",Nd="_buttonWrapper_mnd4j_64",ut={overlay:wd,modal:Sd,closeButton:kd,icon:Td,message:jd,submessage:Ed,buttonsContainer:$d,buttonWrapper:Nd},ki=({onClose:e,icon:t,message:n,submessage:o,buttons:r,maxHeight:i="450px",maxWidth:a="450px"})=>c.jsx("div",{className:ut.overlay,children:c.jsxs("div",{className:ut.modal,style:{maxHeight:i,maxWidth:a},children:[c.jsx("button",{className:ut.closeButton,onClick:e,"aria-label":"Close modal",children:"✕"}),t&&c.jsx("img",{src:t,alt:"icon",className:ut.icon}),c.jsx("p",{className:ut.message,children:n}),o&&c.jsx("p",{className:ut.submessage,children:o}),r.length>0&&c.jsx("div",{className:ut.buttonsContainer,children:r.map((l,u)=>c.jsx("div",{className:ut.buttonWrapper,children:l},u))})]})});ki.propTypes={onClose:s.func.isRequired,icon:s.string,message:s.string.isRequired,submessage:s.string,buttons:s.arrayOf(s.node),maxHeight:s.string,maxWidth:s.string};const Od="_stepsContainer_1cyua_3",Ad="_stepWrapper_1cyua_9",Ld="_circleContainer_1cyua_19",Md="_circle_1cyua_19",Rd="_active_1cyua_39",Dd="_completed_1cyua_44",Id="_label_1cyua_50",Pd="_labelActive_1cyua_56",Vd="_connector_1cyua_61",rt={stepsContainer:Od,stepWrapper:Ad,circleContainer:Ld,circle:Md,active:Rd,completed:Dd,label:Id,labelActive:Pd,connector:Vd},Gr=({steps:e,activeColor:t})=>c.jsx("div",{className:rt.stepsContainer,children:e.map((n,o)=>{const r=n.status==="active",i=n.status==="completed";return c.jsxs("div",{className:rt.stepWrapper,children:[c.jsxs("div",{className:rt.circleContainer,children:[c.jsx("div",{className:`${rt.circle}
|
|
81
81
|
${r?rt.active:""}
|
|
82
82
|
${i?rt.completed:""}`,style:r?{backgroundColor:t}:{},onClick:n.onClick,children:o+1}),o<e.length-1&&c.jsx("div",{className:rt.connector})]}),c.jsx("div",{className:`${rt.label} ${r?rt.labelActive:""}`,children:n.name})]},o)})});Gr.propTypes={steps:s.arrayOf(s.shape({name:s.string.isRequired,onClick:s.func,status:s.oneOf(["inactive","active","completed"]).isRequired})).isRequired,activeColor:s.string};Gr.defaultProps={activeColor:"#C2185B"};const Bd="_statusTextContainer_ch14r_2",Fd={statusTextContainer:Bd},Yr=({text:e,color:t})=>c.jsx("div",{className:Fd.statusTextContainer,style:{background:t},children:c.jsx("span",{children:e})});Yr.propTypes={text:s.string,color:s.string};Yr.defaultProps={color:"#C2185B"};const zd="_buttonsContainer_1c7dw_2",qd="_button_1c7dw_2",Wd="_active_1c7dw_20",En={buttonsContainer:zd,button:qd,active:Wd},Ti=({buttons:e=[]})=>{const{t}=oe.useTranslation();return c.jsx("div",{className:`${En.buttonsContainer}`,children:e.map((n,o)=>{const{isActive:r,name:i,onClick:a}=n;return c.jsx("div",{children:c.jsx("button",{onClick:a,className:`${En.button}
|
|
83
83
|
${r&&En.active}`,children:c.jsx("span",{className:En.buttonName,children:t(i)})})},o)})})};Ti.propTypes={buttons:s.arrayOf(s.shape({isActive:s.bool,name:s.string,onClick:s.func})).isRequired};const Ud="_switchContainer_194wl_2",Zd="_labelRight_194wl_9",Hd="_labelLeft_194wl_9",Kd="_slider_194wl_28",Gd="_disabled_194wl_54",Pt={switchContainer:Ud,labelRight:Zd,labelLeft:Hd,switch:"_switch_194wl_2",slider:Kd,disabled:Gd},ji=({input:e,reactHookFormInstance:t,onChange:n,onoff:o=!0})=>{const{code:r,labelLeft:i,labelRight:a,defValue:l=!1,colorOn:u="#5A514D",disabled:d=!1,width:g=240}=e,{t:h}=oe.useTranslation(),{control:y}=t||{},[m,C]=_.useState(l),p=S=>{C(S),n&&n(S)},w=(S,T)=>c.jsxs("div",{className:Pt.switchContainer,style:{width:`${g}px`},children:[i&&c.jsx("span",{className:Pt.labelLeft,style:{width:`${(g-74)/2}px`},children:h(i)}),c.jsxs("label",{className:`${Pt.switch} ${d?Pt.disabled:""}`,children:[c.jsx("input",{type:"checkbox",checked:!!S,onChange:()=>T(!S),disabled:d}),c.jsx("span",{className:Pt.slider,style:{"--switch-thumb-color":o?S?u:"#ccc":u}})]}),a&&c.jsx("span",{className:Pt.labelRight,style:{width:`${(g-74)/2}px`},children:h(a)})]});return t?c.jsx(dn,{name:r,control:y,defaultValue:l,render:({field:S})=>w(S.value,S.onChange)}):w(m,p)};ji.propTypes={input:s.shape({code:s.string,labelLeft:s.string,labelRight:s.string,defValue:s.bool,colorOn:s.string,disabled:s.bool}),reactHookFormInstance:s.object,onChange:s.func};const Yd="_overlay_1xyw2_2",Xd="_popup_1xyw2_15",Jd="_gif_1xyw2_25",Qd="_message_1xyw2_31",$n={overlay:Yd,popup:Xd,gif:Jd,message:Qd},Ei=({gifSrc:e,message:t})=>c.jsx("div",{className:$n.overlay,children:c.jsxs("div",{className:$n.popup,children:[e&&c.jsx("img",{src:e,alt:"loading animation",className:$n.gif}),t&&c.jsx("p",{className:$n.message,children:t})]})});Ei.propTypes={gifSrc:s.string,message:s.string};const ef="_container_1pl8d_3",tf="_burger_1pl8d_10",nf="_menu_1pl8d_21",rf="_menuOpen_1pl8d_35",of="_menuClose_1pl8d_40",sf="_list_1pl8d_46",af="_item_1pl8d_56",lf="_button_1pl8d_91",Je={container:ef,burger:tf,menu:nf,menuOpen:rf,menuClose:of,list:sf,item:af,button:lf},Xr=({options:e,backgroundColor:t,textColor:n,iconColor:o})=>{const[r,i]=_.useState(!1),a=()=>i(C=>!C),l=()=>i(!1),u=7,d=r?11:0,g=r?13:0,h=r?-11.51666:0,y=r?-13:0,m="0.35s";return c.jsxs("div",{className:Je.container,children:[c.jsx("button",{onClick:a,className:Je.burger,children:c.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[c.jsx("g",{style:{transform:`translateY(${d}px)`,transition:`transform ${m} cubic-bezier(0.42, 0, 0.58, 1)`},children:c.jsx("circle",{cx:"20",cy:"9",r:u,fill:o})}),c.jsx("g",{style:{transform:`translate(${g}px, ${h}px)`,transition:`transform ${m} cubic-bezier(0.42, 0, 0.58, 1)`},children:c.jsx("circle",{cx:"7",cy:"31.51666",r:u,fill:o})}),c.jsx("g",{style:{transform:`translate(${y}px, ${h}px)`,transition:`transform ${m} cubic-bezier(0.42, 0, 0.58, 1)`},children:c.jsx("circle",{cx:"33",cy:"31.51666",r:u,fill:o})}),c.jsx("g",{style:{opacity:r?1:0,transition:`opacity ${m} cubic-bezier(0.42, 0, 0.58, 1)`},children:c.jsx("circle",{cx:"20",cy:"20",r:"10",fill:o})}),c.jsxs("g",{stroke:t,strokeWidth:"2",strokeLinecap:"round",style:{opacity:r?1:0,transition:`opacity ${m} cubic-bezier(0.42, 0, 0.58, 1)`},children:[c.jsx("line",{x1:"17",y1:"17",x2:"23",y2:"23"}),c.jsx("line",{x1:"23",y1:"17",x2:"17",y2:"23"})]})]})}),c.jsx("div",{className:`${Je.menu} ${r?Je.menuOpen:Je.menuClose}`,style:{backgroundColor:t,color:n},children:c.jsx("ul",{className:Je.list,children:e.map((C,p)=>c.jsxs("li",{className:Je.item,children:[C.url&&c.jsx(ys.NavLink,{to:C.url,className:({isActive:w})=>`${Je.link} ${w?Je.active:""}`,onClick:l,style:{color:n},children:C.name}),C.onclick&&c.jsx("button",{className:Je.button,onClick:()=>{C.onclick(),l()},children:C.name}),C.component&&C.component]},p))})})]})};Xr.propTypes={options:s.array.isRequired,backgroundColor:s.string,textColor:s.string,iconColor:s.string};Xr.defaultProps={backgroundColor:"#ffffff",textColor:"#000000",iconColor:"#000000"};const cf="_svgContainer_1rxoe_2",uf="_svg_1rxoe_2",ps={svgContainer:cf,svg:uf},$i=({data:e,keys:t,colors:n,width:o="100%",height:r=300,margin:i={top:20,right:20,bottom:60,left:60},className:a="",showXAxisLabels:l=!0,showYAxisLabels:u=!0,showGrid:d=!0,xAxisTickRotation:g=-90,yAxisTickFormat:h=b=>b.toLocaleString("es-ES"),barPadding:y=.1,groupPadding:m=.05,animationDuration:C=750,onBarHover:p,onBarClick:w,title:S,xAxisLabel:T,yAxisLabel:$})=>{const b=_.useRef(),v=_.useRef(),[x,O]=_.useState({width:0,height:0});return _.useEffect(()=>{const R=()=>{if(v.current){const N=v.current.getBoundingClientRect().width;O({width:typeof o=="number"?o:N,height:r})}};return R(),window.addEventListener("resize",R),()=>window.removeEventListener("resize",R)},[o,r]),_.useEffect(()=>{if(!e||e.length===0||x.width===0)return;const R=ce.select(b.current),N=x.width,q=x.height,F=N-i.left-i.right,f=q-i.top-i.bottom;if(F<=0||f<=0)return;const E=e.map(I=>I.anyo||I.year||I.x),k=t,V=ce.min(e,I=>ce.min(k,Z=>I[Z]))||0,B=ce.max(e,I=>ce.max(k,Z=>I[Z]))||0,Y=ce.scaleBand().domain(E).rangeRound([0,F]).paddingInner(y),W=ce.scaleBand().domain(k).rangeRound([0,Y.bandwidth()]).padding(m),ae=ce.scaleLinear().domain([Math.min(0,V),B]).nice().rangeRound([f,0]),M=ce.scaleOrdinal().domain(k).range(Array.isArray(n)?n:Object.values(n||{}));R.selectAll("*").remove();const A=R.append("g").attr("transform",`translate(${i.left},${i.top})`);S&&R.append("text").attr("x",N/2).attr("y",i.top/2).attr("text-anchor","middle").style("font-size","16px").style("font-weight","bold").style("fill","#333").text(S),d&&A.append("g").attr("class","grid").selectAll("line").data(ae.ticks()).enter().append("line").attr("x1",0).attr("x2",F).attr("y1",I=>ae(I)).attr("y2",I=>ae(I)).style("stroke","#e0e0e0").style("stroke-width",.5),l&&(A.append("g").attr("transform",`translate(0,${f})`).call(ce.axisBottom(Y).tickSizeOuter(0)).attr("class","x-axis").selectAll("text").attr("transform",`translate(0,10)rotate(${g})`).style("text-anchor",g<0?"end":"middle").style("font-size","12px").style("fill","#605B56"),T&&A.append("text").attr("transform",`translate(${F/2}, ${f+i.bottom-5})`).style("text-anchor","middle").style("font-size","14px").style("fill","#333").text(T)),u&&(A.append("g").call(ce.axisLeft(ae).ticks(6).tickFormat(h)).attr("class","y-axis").call(I=>I.select(".domain").remove()),$&&A.append("text").attr("transform","rotate(-90)").attr("y",0-i.left).attr("x",0-f/2).attr("dy","1em").style("text-anchor","middle").style("font-size","14px").style("fill","#333").text($));const K=A.append("g").selectAll(".bar-group").data(e).enter().append("g").attr("class","bar-group").attr("transform",I=>`translate(${Y(I.anyo||I.year||I.x)},0)`).selectAll(".bar").data(I=>k.map(Z=>({key:Z,value:I[Z],data:I}))).enter().append("rect").attr("class","bar").attr("x",I=>W(I.key)).attr("y",f).attr("width",W.bandwidth()).attr("height",0).attr("fill",I=>M(I.key)).style("cursor",p||w?"pointer":"default");K.transition().duration(C).attr("y",I=>ae(Math.max(0,I.value))).attr("height",I=>Math.abs(ae(I.value)-ae(0))),p&&K.on("mouseover",function(I,Z){ce.select(this).style("opacity",.8),p(I,Z)}).on("mouseout",function(I,Z){ce.select(this).style("opacity",1)}),w&&K.on("click",w)},[e,t,n,x,i,y,m,l,u,d,g,h,C,p,w,S,T,$]),c.jsx("div",{ref:v,className:`${ps.svgContainer} ${a}`,style:{width:o,height:r+i.top+i.bottom},children:c.jsx("svg",{ref:b,className:ps.svg,width:x.width,height:x.height})})};$i.propTypes={data:s.arrayOf(s.object).isRequired,keys:s.arrayOf(s.string).isRequired,colors:s.oneOfType([s.arrayOf(s.string),s.object]),width:s.oneOfType([s.string,s.number]),height:s.number,margin:s.shape({top:s.number,right:s.number,bottom:s.number,left:s.number}),className:s.string,showXAxisLabels:s.bool,showYAxisLabels:s.bool,showGrid:s.bool,xAxisTickRotation:s.number,yAxisTickFormat:s.func,barPadding:s.number,groupPadding:s.number,animationDuration:s.number,onBarHover:s.func,onBarClick:s.func,title:s.string,xAxisLabel:s.string,yAxisLabel:s.string};const df="_svgContainer_7fkic_2",ff="_svg_7fkic_2",ms={svgContainer:df,svg:ff},Ni=({data:e,keys:t,colors:n,lineData:o=null,width:r="100%",height:i=300,margin:a={top:20,right:20,bottom:60,left:60},className:l="",showXAxisLabels:u=!0,showYAxisLabels:d=!0,showGrid:g=!0,xAxisTickRotation:h=-90,yAxisTickFormat:y=N=>N.toLocaleString("es-ES"),barPadding:m=.4,animationDuration:C=750,onBarHover:p,onBarClick:w,title:S,xAxisLabel:T,yAxisLabel:$,stackOrder:b="reverse",showTooltip:v=!0,reverseKeys:x=!0,minBarSlotWidth:O=60,wrapXAxisLabels:R=!0})=>{const N=_.useRef(),q=_.useRef();_.useRef();const[F,f]=_.useState({containerWidth:0,height:0}),{t:E}=oe.useTranslation();return _.useEffect(()=>{const k=()=>{if(q.current){const V=q.current.getBoundingClientRect().width;f({containerWidth:typeof r=="number"?r:V,height:i})}};return k(),window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)},[r,i]),_.useEffect(()=>{if(!e||e.length===0||F.containerWidth===0)return;const k=ce.select(N.current),{containerWidth:V,height:B}=F,Y=V-a.left-a.right,W=e.length*O,ae=Math.max(Y,W),M=ae+a.left+a.right,A=B-a.top-a.bottom;if(ae<=0||A<=0)return;k.attr("width",M).attr("height",B);const Q=x?[...t].reverse():t,K=[];e.forEach(z=>{const ne=z.any||z.year||z.x,xe=Q.map(Ce=>({key:Ce,value:Number(z[Ce])||0,data:z})),be=xe.filter(Ce=>Ce.value<0),$e=xe.filter(Ce=>Ce.value>=0);let Ve=0;be.forEach(Ce=>{const Be=Ve,L=Ve+Ce.value,P=Math.abs(L-Be);K.push({key:Ce.key,value:Ce.value,y0:Math.max(Be,L),y1:Math.min(Be,L),height:P,data:Ce.data,xKey:ne}),Ve=L});let Ke=0;$e.forEach(Ce=>{const Be=Ke,L=Ke+Ce.value,P=L-Be;K.push({key:Ce.key,value:Ce.value,y0:Math.min(Be,L),y1:Math.max(Be,L),height:P,data:Ce.data,xKey:ne}),Ke=L})});const I=[ce.min(K,z=>Math.min(z.y0,z.y1))||0,ce.max(K,z=>Math.max(z.y0,z.y1))||0];let Z=[0,0];o&&o.length>0&&(Z=[ce.min(o)||0,ce.max(o)||0]);const te=[Math.min(I[0],Z[0]),Math.max(I[1],Z[1])],G=ce.scaleBand().domain(e.map(z=>z.any||z.year||z.x)).range([0,ae]).padding(m),U=ce.scaleLinear().domain([te[0],te[1]]).nice(6).range([A,0]),re=ce.scaleOrdinal().domain(t).range(Array.isArray(n)?n:Object.values(n||{})),ee=o&&o.length>0?e.map((z,ne)=>{const xe=G(z.any||z.year||z.x)+G.bandwidth()/2,be=U(o[ne]||0);return{x:xe,y:be}}):[];k.selectAll("*").remove();const le=k.append("g").attr("transform",`translate(${a.left},${a.top})`);S&&k.append("text").attr("x",svgWidth/2).attr("y",a.top/2).attr("text-anchor","middle").style("font-size","16px").style("font-weight","bold").style("fill","#333").text(S),g&&le.append("g").attr("class","grid").selectAll("line").data(U.ticks(6)).enter().append("line").attr("x1",0).attr("x2",ae).attr("y1",z=>U(z)).attr("y2",z=>U(z)).style("stroke","#e0e0e0").style("stroke-width",.5);const D=(z,ne=12)=>{if(!R||z.length<=ne)return[z];const xe=Math.floor(z.length/2);let be=xe;for(let $e=xe;$e>=0;$e--)if(z[$e]===" "){be=$e;break}if(be===xe){for(let $e=xe;$e<z.length;$e++)if(z[$e]===" "){be=$e;break}}return be===xe&&(be=xe),[z.substring(0,be),z.substring(be+1)]};u&&(le.append("g").attr("class","x-axis").attr("transform",`translate(0, ${A})`).call(ce.axisBottom(G).tickSizeOuter(0)).selectAll("text").remove(),le.append("g").attr("class","x-axis-labels").attr("transform",`translate(0, ${A})`).selectAll(".x-label-group").data(e).enter().append("g").attr("class","x-label-group").attr("transform",be=>`translate(${G(be.any||be.year||be.x)+G.bandwidth()/2}, 0)`).each(function(be){const $e=String(be.any||be.year||be.x),Ve=D($e),Ke=ce.select(this);if(Ve.length===1)Ke.append("text").attr("y",19).style("text-anchor",h===0?"middle":h<0?"end":"start").style("font-size","12px").style("fill","#605B56").attr("transform",h!==0?`rotate(${h} 0 15)`:null).text(Ve[0]);else{const L=-(Ve.length*14/2)+14/2;Ve.forEach((P,H)=>{Ke.append("text").attr("x",L+H*14).attr("y",19).style("text-anchor","end").style("font-size","11px").style("fill","#605B56").attr("transform",`rotate(${h} ${L+H*14} 15)`).text(P)})}}),T&&le.append("text").attr("transform",`translate(${ae/2}, ${A+a.bottom-5})`).style("text-anchor","middle").style("font-size","14px").style("fill","#333").text(T)),d&&(le.append("g").attr("class","y-axis").call(ce.axisLeft(U).ticks(6).tickFormat(y)).call(z=>z.select(".domain").remove()),le.append("g").attr("class","y-ticks").attr("transform",`translate(${ae}, 0)`).call(ce.axisLeft(U).ticks(6).tickSizeInner(ae)).call(z=>z.select(".domain").remove()).call(z=>z.selectAll(".tick text").remove()),$&&le.append("text").attr("transform","rotate(-90)").attr("y",0-a.left).attr("x",0-A/2).attr("dy","1em").style("text-anchor","middle").style("font-size","14px").style("fill","#333").text($));let se;v&&(se=ce.select("body").append("div").attr("class","chart-tooltip").style("position","absolute").style("visibility","hidden").style("background","rgba(0, 0, 0, 0.8)").style("color","white").style("padding","8px").style("border-radius","4px").style("font-size","12px").style("pointer-events","none").style("z-index","1000"));const Le=le.selectAll(".segment").data(K,z=>`${z.xKey}-${z.key}`);Le.exit().remove();const Ye=Le.enter().append("rect").attr("class","segment").attr("x",z=>G(z.xKey)).attr("width",G.bandwidth()).attr("y",z=>U(0)).attr("height",0).attr("fill",z=>re(z.key)).style("cursor",p||w||v?"pointer":"default").merge(Le);if(Ye.transition().duration(C).attr("x",z=>G(z.xKey)).attr("y",z=>Math.min(U(z.y0),U(z.y1))).attr("height",z=>Math.abs(U(z.y1)-U(z.y0))),(v||p)&&Ye.on("mouseover",function(z,ne){const xe=ne.value;v&&se&&se.style("visibility","visible").html(`
|
package/dist/index.es.js
CHANGED
|
@@ -8900,7 +8900,7 @@ const ku = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
8900
8900
|
className: He.listElement,
|
|
8901
8901
|
style: { borderBottom: `1px solid ${r}` },
|
|
8902
8902
|
children: [
|
|
8903
|
-
/* @__PURE__ */ u("div", { className: He.elementNameDate, onClick: () => t(m), children: Object.keys(a).map((b) => b === "name" ? /* @__PURE__ */ u("div", { className: He.elementNameContainer, children: /* @__PURE__ */ T(
|
|
8903
|
+
/* @__PURE__ */ u("div", { className: He.elementNameDate, onClick: () => t(m), children: Object.keys(a).map((b, v) => b === "name" ? /* @__PURE__ */ u("div", { className: He.elementNameContainer, children: /* @__PURE__ */ T(
|
|
8904
8904
|
"div",
|
|
8905
8905
|
{
|
|
8906
8906
|
className: `${He.elementName} ${g && He.nameAndEye}`,
|
|
@@ -8921,7 +8921,7 @@ const ku = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
8921
8921
|
/* @__PURE__ */ u("span", { style: { color: n ? o : r }, children: h })
|
|
8922
8922
|
]
|
|
8923
8923
|
}
|
|
8924
|
-
) }) : b == "data" ? /* @__PURE__ */ u("div", { className: He.elementDate, children: y ? new Date(y).toLocaleDateString() : "" }) : /* @__PURE__ */ u("div", { className: He.elementDate, children: e[b] })) }),
|
|
8924
|
+
) }, `col${v}`) : b == "data" ? /* @__PURE__ */ u("div", { className: He.elementDate, children: y ? new Date(y).toLocaleDateString() : "" }, `col${v}data`) : /* @__PURE__ */ u("div", { className: He.elementDate, children: e[b] }, `col${v}other`)) }),
|
|
8925
8925
|
/* @__PURE__ */ T("div", { className: He.elementButtons, children: [
|
|
8926
8926
|
e.processing && /* @__PURE__ */ T("div", { className: "tooltip-parent", children: [
|
|
8927
8927
|
/* @__PURE__ */ u("img", { src: vu }),
|
|
@@ -9845,9 +9845,7 @@ const qu = "_textInputContainer_1o3iy_2", Wu = "_labelContainer_1o3iy_5", Uu = "
|
|
|
9845
9845
|
(O, q) => s + q
|
|
9846
9846
|
),
|
|
9847
9847
|
showMarksNumber: w = !0
|
|
9848
|
-
} = e;
|
|
9849
|
-
console.log("rankingSliderCode: ", o);
|
|
9850
|
-
const { t: k } = le(), { control: E, trigger: b, clearErrors: v } = t || {};
|
|
9848
|
+
} = e, { t: k } = le(), { control: E, trigger: b, clearErrors: v } = t || {};
|
|
9851
9849
|
Te(d);
|
|
9852
9850
|
const { errorColorForm: _ } = yn((O) => O), [A, D] = pe(l);
|
|
9853
9851
|
return t ? /* @__PURE__ */ u(
|
|
@@ -9888,12 +9886,7 @@ const qu = "_textInputContainer_1o3iy_2", Wu = "_labelContainer_1o3iy_5", Uu = "
|
|
|
9888
9886
|
step: 1,
|
|
9889
9887
|
value: O.value ?? l,
|
|
9890
9888
|
onChange: (f) => {
|
|
9891
|
-
|
|
9892
|
-
"onchange rankingslider: ",
|
|
9893
|
-
f,
|
|
9894
|
-
" field: ",
|
|
9895
|
-
O
|
|
9896
|
-
), O.onChange(f);
|
|
9889
|
+
O.onChange(f);
|
|
9897
9890
|
},
|
|
9898
9891
|
marks: !0,
|
|
9899
9892
|
className: Ee.slider,
|
|
@@ -10017,7 +10010,6 @@ const xd = "_textDescriptionContainer_163pc_2", wd = "_textDescriptionText_163pc
|
|
|
10017
10010
|
inputContainerStyles: t,
|
|
10018
10011
|
reactHookFormInstance: n
|
|
10019
10012
|
}) => {
|
|
10020
|
-
console.log("inputs story: ", e);
|
|
10021
10013
|
const { watch: o } = n, r = o(), s = Ue(() => e == null ? void 0 : e.map((a) => {
|
|
10022
10014
|
const l = typeof a.required == "function" ? a.required(r) : a.required;
|
|
10023
10015
|
return {
|