1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7143],{13672:(e,t,r)=>{r.d(t,{$:()=>i,cn:()=>l});var n=r(2821),o=r(75889);function l(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,o.QP)((0,n.$)(t))}function i(e){return new Intl.NumberFormat("fr-FR",{style:"currency",currency:"EUR",minimumFractionDigits:0,maximumFractionDigits:0}).format(e)}},32467:(e,t,r)=>{r.d(t,{DX:()=>i});var n=r(12115),o=r(94446),l=r(95155),i=n.forwardRef((e,t)=>{let{children:r,...o}=e,i=n.Children.toArray(r),s=i.find(u);if(s){let e=s.props.children,r=i.map(t=>t!==s?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,l.jsx)(a,{...o,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,l.jsx)(a,{...o,ref:t,children:r})});i.displayName="Slot";var a=n.forwardRef((e,t)=>{let{children:r,...l}=e;if(n.isValidElement(r)){let e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(r);return n.cloneElement(r,{...function(e,t){let r={...t};for(let n in t){let o=e[n],l=t[n];/^on[A-Z]/.test(n)?o&&l?r[n]=(...e)=>{l(...e),o(...e)}:o&&(r[n]=o):"style"===n?r[n]={...o,...l}:"className"===n&&(r[n]=[o,l].filter(Boolean).join(" "))}return{...e,...r}}(l,r.props),ref:t?(0,o.t)(t,e):e})}return n.Children.count(r)>1?n.Children.only(null):null});a.displayName="SlotClone";var s=({children:e})=>(0,l.jsx)(l.Fragment,{children:e});function u(e){return n.isValidElement(e)&&e.type===s}},40253:(e,t,r)=>{r.d(t,{K:()=>l});var n=r(12115),o=r(22544),l=function(e){var t=e.as,r=e.errors,l=e.name,i=e.message,a=e.render,s=function(e,t){if(null==e)return{};var r,n,o={},l=Object.keys(e);for(n=0;n<l.length;n++)t.indexOf(r=l[n])>=0||(o[r]=e[r]);return o}(e,["as","errors","name","message","render"]),u=(0,o.xW)(),d=(0,o.Jt)(r||u.formState.errors,l);if(!d)return null;var c=d.message,f=d.types,m=Object.assign({},s,{children:c||i});return n.isValidElement(t)?n.cloneElement(t,m):a?a({message:c||i,messages:f}):n.createElement(t||n.Fragment,m)}},51816:(e,t,r)=>{r.d(t,{A:()=>u});var n=r(95155),o=r(98134),l=r.n(o),i=r(40253),a=r(73943);let s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"[unset]";return({required:"Ce champ est obligatoire.",maxLength:"La r\xe9ponse ne doit pas exc\xe9der "+t+" caract\xe8res.",min:"Le nombre ne peut \xeatre inf\xe9rieur \xe0 "+t+".",max:"Le nombre ne peut \xeatre sup\xe9rieur \xe0 "+t+"."})[e]};function u(e){let{data:t,errors:r}=e,{key:o,registerOptions:u={}}=t;return void 0===r?(0,n.jsx)(n.Fragment,{}):(0,n.jsx)(i.K,{name:o,errors:r,render:e=>{let{messages:r}=e;return r&&Object.entries(r).map((e,r)=>{let o,[i,d]=e;if(d&&"string"==typeof d&&(o=d),!o){var c;o=l()(u,["customValidationTypes",i])?u.customValidationTypes[i]:s(i,(null==(c=u[i])?void 0:c.value)||u[i]||null)}return(0,n.jsx)(a.default,{id:t.key+"-error-"+r,size:"s",className:"mt-0.5 mb-0 text-sm text-red-500",children:o},i)})}})}},87143:(e,t,r)=>{r.r(t),r.d(t,{FormSlider:()=>q,default:()=>Y});var n=r(95155),o=r(12115),l=r(2821),i=r(12758),a=r(22544);function s(e,[t,r]){return Math.min(r,Math.max(t,e))}function u(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}var d=r(94446);function c(e){let t=o.useRef(e);return o.useEffect(()=>{t.current=e}),o.useMemo(()=>(...e)=>t.current?.(...e),[])}var f=o.createContext(void 0),m=globalThis?.document?o.useLayoutEffect:()=>{};r(47650);var p=r(32467),h=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=o.forwardRef((e,r)=>{let{asChild:o,...l}=e,i=o?p.DX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,n.jsx)(i,{...l,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),b=["PageUp","PageDown"],v=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],x={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},g="Slider",[y,w,j]=function(e){let t=e+"CollectionProvider",[r,l]=function(e,t=[]){let r=[],l=()=>{let t=r.map(e=>o.createContext(e));return function(r){let n=r?.[e]||t;return o.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return l.scopeName=e,[function(t,l){let i=o.createContext(l),a=r.length;function s(t){let{scope:r,children:l,...s}=t,u=r?.[e][a]||i,d=o.useMemo(()=>s,Object.values(s));return(0,n.jsx)(u.Provider,{value:d,children:l})}return r=[...r,l],s.displayName=t+"Provider",[s,function(r,n){let s=n?.[e][a]||i,u=o.useContext(s);if(u)return u;if(void 0!==l)return l;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>
1{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return o.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(l,...t)]}(t),[i,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:t,children:r}=e,l=o.useRef(null),a=o.useRef(new Map).current;return(0,n.jsx)(i,{scope:t,itemMap:a,collectionRef:l,children:r})};s.displayName=t;let u=e+"CollectionSlot",c=o.forwardRef((e,t)=>{let{scope:r,children:o}=e,l=a(u,r),i=(0,d.s)(t,l.collectionRef);return(0,n.jsx)(p.DX,{ref:i,children:o})});c.displayName=u;let f=e+"CollectionItemSlot",m="data-radix-collection-item",h=o.forwardRef((e,t)=>{let{scope:r,children:l,...i}=e,s=o.useRef(null),u=(0,d.s)(t,s),c=a(f,r);return o.useEffect(()=>(c.itemMap.set(s,{ref:s,...i}),()=>void c.itemMap.delete(s))),(0,n.jsx)(p.DX,{...{[m]:""},ref:u,children:l})});return h.displayName=f,[{Provider:s,Slot:c,ItemSlot:h},function(t){let r=a(e+"CollectionConsumer",t);return o.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(m,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},l]}(g),[S,N]=function(e,t=[]){let r=[],l=()=>{let t=r.map(e=>o.createContext(e));return function(r){let n=r?.[e]||t;return o.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return l.scopeName=e,[function(t,l){let i=o.createContext(l),a=r.length;r=[...r,l];let s=t=>{let{scope:r,children:l,...s}=t,u=r?.[e]?.[a]||i,d=o.useMemo(()=>s,Object.values(s));return(0,n.jsx)(u.Provider,{value:d,children:l})};return s.displayName=t+"Provider",[s,function(r,n){let s=n?.[e]?.[a]||i,u=o.useContext(s);if(u)return u;if(void 0!==l)return l;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return o.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(l,...t)]}(g,[j]),[R,E]=S(g),C=o.forwardRef((e,t)=>{let{name:r,min:l=0,max:i=100,step:a=1,orientation:d="horizontal",disabled:f=!1,minStepsBetweenThumbs:m=0,defaultValue:p=[l],value:h,onValueChange:x=()=>{},onValueCommit:g=()=>{},inverted:w=!1,form:j,...S}=e,N=o.useRef(new Set),E=o.useRef(0),C="horizontal"===d,[M=[],D]=function({prop:e,defaultProp:t,onChange:r=()=>{}}){let[n,l]=function({defaultProp:e,onChange:t}){let r=o.useState(e),[n]=r,l=o.useRef(n),i=c(t);return o.useEffect(()=>{l.current!==n&&(i(n),l.current=n)},[n,l,i]),r}({defaultProp:t,onChange:r}),i=void 0!==e,a=i?e:n,s=c(r);return[a,o.useCallback(t=>{if(i){let r="function"==typeof t?t(e):t;r!==e&&s(r)}else l(t)},[i,e,l,s])]}({prop:h,defaultProp:p,onChange:e=>{var t;null==(t=[...N.current][E.current])||t.focus(),x(e)}}),A=o.useRef(M);function k(e,t){let{commit:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{commit:!1},n=(String(a).split(".")[1]||"").length,o=s(function(e,t){let r=Math.pow(10,t);return Math.round(e*r)/r}(Math.round((e-l)/a)*a+l,n),[l,i]);D(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,n=[...e];return n[r]=t,n.sort((e,t)=>e-t)}(e,o,t);if(!function(e,t){if(t>0)return Math.min(...e.slice(0,-1).map((t,r)=>e[r+1]-t))>=t;return!0}(n,m*a))return e;{E.current=n.indexOf(o);let t=String(n)!==String(e);return t&&r&&g(n),t?n:e}})}return(0,n.jsx)(R,{scope:e.__scopeSlider,name:r,disabled:f,min:l,max:i,valueIndexToChangeRef:E,thumbs:N.current,values:M,orientation:d,form:j,children:(0,n.jsx)(y.Provider,{scope:e.__scopeSlider,children:(0,n.jsx)(y.Slot,{scope:e.__scopeSlider,children:(0,n.jsx)(C?P:_,{"aria-disabled":f,"data-disabled":f?"":void 0,...S,ref:t,onPointerDown:u(S.onPointerDown,()=>{f||(A.current=M)}),min:l,max:i,inverted:w,onSlideStart:f?void 0:function(e){let t=function(e,t){if(1===e.length)return 0;let r=e.map(e=>Math.abs(e-t)),n=Math.min(...r);return r.indexOf(n)}(M,e);k(e,t)},onSlideMove:f?void 0:function(e){k(e,E.current)},onSlideEnd:f?void 0:function(){let e=A.current[E.current];M[E.current]!==e&&g(M)},onHomeKeyDown:()=>!f&&k(l,0,{commit:!0}),onEndKeyDown:()=>!f&&k(i,M.length-1,{commit:!0}),onStepKeyDown:e=>{let{event:t,direction:r}=e;if(!f){let e=b.includes(t.key)||t.shiftKey&&v.includes(t.key),n=E.current;k(M[n]+a*(e?10:1)*r,n,{commit:!0})}}})})})})});C.displayName=g;var[M,D]=S(g,{startEdge:"left",endEdge:"right",size:"width",direction:1}),P=o.forwardRef((e,t)=>
1{let{min:r,max:l,dir:i,inverted:a,onSlideStart:s,onSlideMove:u,onSlideEnd:c,onStepKeyDown:m,...p}=e,[h,b]=o.useState(null),v=(0,d.s)(t,e=>b(e)),g=o.useRef(),y=function(e){let t=o.useContext(f);return e||t||"ltr"}(i),w="ltr"===y,j=w&&!a||!w&&a;function S(e){let t=g.current||h.getBoundingClientRect(),n=H([0,t.width],j?[r,l]:[l,r]);return g.current=t,n(e-t.left)}return(0,n.jsx)(M,{scope:e.__scopeSlider,startEdge:j?"left":"right",endEdge:j?"right":"left",direction:j?1:-1,size:"width",children:(0,n.jsx)(A,{dir:y,"data-orientation":"horizontal",...p,ref:v,style:{...p.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{let t=S(e.clientX);null==s||s(t)},onSlideMove:e=>{let t=S(e.clientX);null==u||u(t)},onSlideEnd:()=>{g.current=void 0,null==c||c()},onStepKeyDown:e=>{let t=x[j?"from-left":"from-right"].includes(e.key);null==m||m({event:e,direction:t?-1:1})}})})}),_=o.forwardRef((e,t)=>{let{min:r,max:l,inverted:i,onSlideStart:a,onSlideMove:s,onSlideEnd:u,onStepKeyDown:c,...f}=e,m=o.useRef(null),p=(0,d.s)(t,m),h=o.useRef(),b=!i;function v(e){let t=h.current||m.current.getBoundingClientRect(),n=H([0,t.height],b?[l,r]:[r,l]);return h.current=t,n(e-t.top)}return(0,n.jsx)(M,{scope:e.__scopeSlider,startEdge:b?"bottom":"top",endEdge:b?"top":"bottom",size:"height",direction:b?1:-1,children:(0,n.jsx)(A,{"data-orientation":"vertical",...f,ref:p,style:{...f.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{let t=v(e.clientY);null==a||a(t)},onSlideMove:e=>{let t=v(e.clientY);null==s||s(t)},onSlideEnd:()=>{h.current=void 0,null==u||u()},onStepKeyDown:e=>{let t=x[b?"from-bottom":"from-top"].includes(e.key);null==c||c({event:e,direction:t?-1:1})}})})}),A=o.forwardRef((e,t)=>{let{__scopeSlider:r,onSlideStart:o,onSlideMove:l,onSlideEnd:i,onHomeKeyDown:a,onEndKeyDown:s,onStepKeyDown:d,...c}=e,f=E(g,r);return(0,n.jsx)(h.span,{...c,ref:t,onKeyDown:u(e.onKeyDown,e=>{"Home"===e.key?(a(e),e.preventDefault()):"End"===e.key?(s(e),e.preventDefault()):b.concat(v).includes(e.key)&&(d(e),e.preventDefault())}),onPointerDown:u(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),f.thumbs.has(t)?t.focus():o(e)}),onPointerMove:u(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&l(e)}),onPointerUp:u(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),i(e))})})}),k="SliderTrack",I=o.forwardRef((e,t)=>{let{__scopeSlider:r,...o}=e,l=E(k,r);return(0,n.jsx)(h.span,{"data-disabled":l.disabled?"":void 0,"data-orientation":l.orientation,...o,ref:t})});I.displayName=k;var O="SliderRange",F=o.forwardRef((e,t)=>{let{__scopeSlider:r,...l}=e,i=E(O,r),a=D(O,r),s=o.useRef(null),u=(0,d.s)(t,s),c=i.values.length,f=i.values.map(e=>L(e,i.min,i.max)),m=c>1?Math.min(...f):0,p=100-Math.max(...f);return(0,n.jsx)(h.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,...l,ref:u,style:{...e.style,[a.startEdge]:m+"%",[a.endEdge]:p+"%"}})});F.displayName=O;var $="SliderThumb",z=o.forwardRef((e,t)=>{let r=w(e.__scopeSlider),[l,i]=o.useState(null),a=(0,d.s)(t,e=>i(e)),s=o.useMemo(()=>l?r().findIndex(e=>e.ref.current===l):-1,[r,l]);return(0,n.jsx)(V,{...e,ref:a,index:s})}),V=o.forwardRef((e,t)=>{let{__scopeSlider:r,index:l,name:i,...a}
1=e,s=E($,r),c=D($,r),[f,p]=o.useState(null),b=(0,d.s)(t,e=>p(e)),v=!f||s.form||!!f.closest("form"),x=function(e){let[t,r]=o.useState(void 0);return m(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,o;if(!Array.isArray(t)||!t.length)return;let l=t[0];if("borderBoxSize"in l){let e=l.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,o=t.blockSize}else n=e.offsetWidth,o=e.offsetHeight;r({width:n,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}(f),g=s.values[l],w=void 0===g?0:L(g,s.min,s.max),j=function(e,t){return t>2?"Value ".concat(e+1," of ").concat(t):2===t?["Minimum","Maximum"][e]:void 0}(l,s.values.length),S=null==x?void 0:x[c.size],N=S?function(e,t,r){let n=e/2,o=H([0,50],[0,n]);return(n-o(t)*r)*r}(S,w,c.direction):0;return o.useEffect(()=>{if(f)return s.thumbs.add(f),()=>{s.thumbs.delete(f)}},[f,s.thumbs]),(0,n.jsxs)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[c.startEdge]:"calc(".concat(w,"% + ").concat(N,"px)")},children:[(0,n.jsx)(y.ItemSlot,{scope:e.__scopeSlider,children:(0,n.jsx)(h.span,{role:"slider","aria-label":e["aria-label"]||j,"aria-valuemin":s.min,"aria-valuenow":g,"aria-valuemax":s.max,"aria-orientation":s.orientation,"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,tabIndex:s.disabled?void 0:0,...a,ref:b,style:void 0===g?{display:"none"}:e.style,onFocus:u(e.onFocus,()=>{s.valueIndexToChangeRef.current=l})})}),v&&(0,n.jsx)(K,{name:null!=i?i:s.name?s.name+(s.values.length>1?"[]":""):void 0,form:s.form,value:g},l)]})});z.displayName=$;var K=e=>{let{value:t,...r}=e,l=o.useRef(null),i=function(e){let t=o.useRef({value:e,previous:e});return o.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(t);return o.useEffect(()=>{let e=l.current,r=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set;if(i!==t&&r){let n=new Event("input",{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[i,t]),(0,n.jsx)("input",{style:{display:"none"},...r,ref:l,defaultValue:t})};function L(e,t,r){return s(100/(r-t)*(e-t),[0,100])}function H(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}let T=o.forwardRef((e,t)=>{let{className:r,formatDisplayValue:o=e=>e,...i}=e;return(0,n.jsxs)(C,{ref:t,className:(0,l.A)("relative flex w-full touch-none select-none items-center",r),...i,children:[(0,n.jsx)(I,{className:"relative h-0.5 w-full grow overflow-hidden rounded-full bg-brand-secondary-bleu-3",children:(0,n.jsx)(F,{className:"absolute h-full bg-brand-secondary-bleu-3"})}),(0,n.jsx)("span",{className:"absolute top-1/2 left-0 transform -translate-y-1/2 w-2 h-2 rounded-full bg-brand-secondary-bleu-2"}),(0,n.jsx)("span",{className:"absolute top-2 left-0 font-body font-normal text-[11px]/[14.3px] text-brand-secondary-bleu-2",children:o(i.min)}),(0,n.jsx)("span",{className:"absolute top-1/2 right-0 transform -translate-y-1/2 w-2 h-2 rounded-full bg-brand-secondary-bleu-2"}),(0,n.jsx)("span",{className:"absolute top-2 right-0 font-body font-normal text-[11px]/[14.3px] text-brand-secondary-bleu-2",children:o(i.max)}),(0,n.jsx)(z,{className:(0,l.A)("block h-6 w-6 rounded-full border-4 border-brand-primary-bleu bg-white transition-colors disabled:pointer-events-none disabled:opacity-50","ring-offset-brand-primary-bleu","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-brand-primary-terre focus-visible:ring-offset-1"),children:(0,n.jsx)("span",{className:"bg-brand-primary-bleu text-brand-primary-perle pt-1.5 px-1.5 pb-1 rounded absolute top-7 left-1/2 transform -translate-x-1/2 font-body font-normal text-[11px]/[14.3px]",children:o(i.value)})})]})});T.displayName=C.displayName;var W=r(13672),X=r(51816),B=r(76585);let U=e=>{var t;let{form:r,render:i,hideInput:a=!1}=e,{key:s,label:u,step:d,leading:c,registerOptions:f={}}=r,{field:{onChange:m,value:p},formState:h}=i,b=f.min||0,v=f.max||100,[x,g]=(0,o.useState)("");return(0,o.useEffect)(()=>{g(new Intl.NumberFormat("fr-FR").format(p||f.min||0))}
1,[p]),(0,n.jsxs)("div",{className:"pb-6",children:[(0,n.jsxs)("div",{className:(0,l.A)("flex items-center justify-between gap-3",a?"mb-3":"mb-4"),children:[u&&(0,n.jsxs)("label",{htmlFor:s,className:"block font-heading font-bold text-base text-greyscale-main-black",children:[u,u&&(null==f||null==(t=f.required)?void 0:t.value)&&"*"]}),!a&&(0,n.jsxs)("div",{className:"flex items-center justify-end border-none bg-gray-100 rounded-lg px-4",children:[(0,n.jsx)("input",{className:"pr-1 font-heading text-right text-xl font-normal border-none bg-transparent focus:border-none focus:outline-none focus:ring-0",style:{width:"".concat(v.toString().length+4,"ch")},type:"text",value:x,onChange:e=>{let t=e.target.value.replace(/[^0-9]/g,"");g(new Intl.NumberFormat("fr-FR").format(t)),m(parseInt(t,10))},onBlur:e=>{m(Math.max(b,Math.min(v,parseInt(e.target.value.replace(/[^0-9]/g,""),10))))}}),(null==c?void 0:c.text)&&(0,n.jsx)("span",{className:"text-lg font-heading",children:c.text})]})]}),(0,n.jsx)(T,{defaultValue:[b],step:d||1,min:b,max:v,value:[p||b],onValueChange:e=>m(e[0]),formatDisplayValue:e=>(null==c?void 0:c.text)==="â¬"?(0,W.$)(e):[e,null==c?void 0:c.text].join("\xa0")}),(0,n.jsx)("div",{className:"mt-2",children:(0,n.jsx)(X.A,{data:r,errors:null==h?void 0:h.errors})})]})};function q(e){return(0,n.jsx)(Y,{...e,hideInput:!0})}function Y(e){let{data:t,formController:r,hideInput:o=!1}=e,{key:l,registerOptions:i={}}=t;return(0,n.jsx)(a.xI,{name:l,control:r.control,rules:i,render:e=>(0,n.jsx)(U,{form:t,render:e,hideInput:o})})}Y.propTypes={data:B.JN.isRequired,formController:i.object}},94446:(e,t,r)=>{r.d(t,{s:()=>l,t:()=>o});var n=r(12115);function o(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function l(...e){return n.useCallback(o(...e),e)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.