@proprioo/salatim 36.3.8 → 36.3.9
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/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -3030,5 +3030,5 @@ object-assign
|
|
|
3030
3030
|
`,Sh=y.default.label`
|
|
3031
3031
|
text-align: center;
|
|
3032
3032
|
align-items: center;
|
|
3033
|
-
`;exports.Accordion=({children:t,preExpanded:r,allowMultipleExpanded:n})=>e.jsx(Md,{preExpanded:r,allowMultipleExpanded:n,children:t}),exports.AccordionHeader=({isAlternative:t,basic:r,children:n})=>e.jsx(oc,{children:({expanded:o,toggleExpanded:a})=>e.jsxs(Zd,{onClick:()=>a(),"data-test":"accordion-header",children:[e.jsx(Kd,{isAlternative:t,basic:r,children:e.jsx(e.Fragment,{children:n})}),e.jsx(Xd,{isOpen:o,children:e.jsx(pl,{})})]})}),exports.AccordionItem=({children:t,uuid:r,color:n=exports.AccordionItemColors.ORANGE})=>e.jsx(nc,{uuid:r,children:e.jsx(oc,{children:({expanded:o})=>e.jsx(Qd,{isOpen:o,color:n,"data-test":""+(o?`${r}-item-opened`:`${r}-item-closed`),children:e.jsx(e.Fragment,{children:t})})})}),exports.AccordionPanel=({children:r,unmountOnCollapse:n})=>e.jsx(oc,{children:({expanded:o})=>e.jsx(Jd,{isOpen:o,children:!n||o?e.jsx("div",{"data-test":"panel-content",children:r}):e.jsx(t.Fragment,{})})}),exports.AgentBanner=({children:t,agent:{image_agent:r,name:n,zone:o,fonction:a},rounded:i=!0})=>e.jsxs(sc,{"data-test":"agent-card",rounded:i,children:[e.jsxs(uc,{children:[n&&e.jsx(ic,{title:n,color:E.green.base}),a&&e.jsx(fc,{"data-test":"agent-fonction",children:a}),o&&e.jsx(fc,{"data-test":"agent-zone",children:o}),e.jsx(e.Fragment,{children:t})]}),e.jsx(dc,{children:e.jsx(cc,{children:e.jsx(lc,{"data-test":"agent-image",src:r,loading:"lazy"})})})]}),exports.AgentCard=({agent:{image_agent:t,name:r,zone:n,fonction:o,trustpilot_comment:a},showComment:i=!0})=>t?e.jsxs(pc,{"data-test":"agent-card-layout",children:[e.jsxs(hc,{children:[n&&e.jsxs($c,{"data-test":"agent-zone",children:[e.jsx("img",{src:"data:image/svg+xml,%3Csvg%20fill%3D%22none%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22m12%200c-4.198%200-8%203.403-8%207.602%200%204.198%203.469%209.21%208%2016.398%204.531-7.188%208-12.2%208-16.398%200-4.199-3.801-7.602-8-7.602zm0%2011c-1.657%200-3-1.343-3-3s1.343-3%203-3%203%201.343%203%203-1.343%203-3%203z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"}),n]}),e.jsx(gc,{"data-test":"agent-image",src:t,loading:"lazy"})]}),e.jsxs(mc,{children:[r&&e.jsx(bc,{"data-test":"agent-name",children:r}),o&&e.jsx(yc,{"data-test":"agent-fontion",children:o}),i&&a&&e.jsxs("div",{children:[e.jsx(vc,{"data-test":"agent-comment",children:a}),e.jsxs(xc,{children:[e.jsx("img",{"data-test":"stars",src:"data:image/svg+xml,%3Csvg%20fill%3D%22none%22%20height%3D%2216%22%20width%3D%22112%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Cpattern%20id%3D%22a%22%20height%3D%221%22%20patternContentUnits%3D%22objectBoundingBox%22%20width%3D%221%22%3E%3Cimage%20height%3D%2216%22%20transform%3D%22matrix%28.00903%200%200%20.0625%20-.001%200%29%22%20width%3D%22111%22%20xlink%3Ahref%3D%22data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAG8AAAAQCA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QsCtUs4mh3QI2SW701E3LI4q4Y2COGB16XjuUHgiJXhK3oIFPUz0DQvxC5fmo3C45HMJTRJCff2NSu%2FFEz%2Bc6K56IfTrKcVSaK5JN8jkfdwiS1AyQG5vXrOx2OnX96QKhr5JSKfC5o3yzPY5tjX%2Bt%2FmrKHOiec0X46HlzaB3sgb3395fepX2RGjpds5GgsSfxdMDhk%2F6Dzbmd95tit%2F0m5s5YUCrFpsM4irI52LLvjLtJIv5j3%2B5uCIdUJmiRcfevCimHosKQhsgt2Y%2Bl%2F52g89D%2FPA8qT4bDw4kEcHp6qGmz5%2Beu2vz9ivNVXgacSf0q3pe5cmx5dGJybmQGCHOwso5bKv2NW2sd7uJzML%2FnMkITdUjViZJzr%2B%2FZOCZRnLn6aU5kQ6l2DGBEtJLY7mxIdmjbFmSuhOFN%2FJCCxDGYdquNNkrZJb%2FN3kxZccME80Vt%2BTp8jyxF3l9b2z6Zx5cVO6qIel64pPNc2mc%2F7g5i0DJ2Le3Fpbq87UzmxAW1I3F64tPlkLEczlc%2BQbm%2Bp%2FZ1T4AAAAAElFTkSuQmCC%22%2F%3E%3C%2Fpattern%3E%3Cpath%20d%3D%22M.906%200h110.727v16H.906z%22%20fill%3D%22url%28%23a%29%22%2F%3E%3C%2Fsvg%3E",width:"112",height:"16"}),e.jsx("img",{"data-test":"review-logo",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEYAAAAcCAYAAADcO8kVAAAHpUlEQVR4Ad2YZXgbSRJAZ5ktjb3MwoBgeVdyjpmZma2xF8OMco6ZmfkudMzMfBc2h5mZ5urJXZtOWwrzj/pmproa6nVVdUve0x9+Th+JZoPniHwnkmvaHM0FoUokGyyL5IJvRHLNg2z7+HdbHxef8Z463s8WOeDjimzp1kiu9OtHYWRLe+R7USRbagOK6kW347J881UVKNOmvv7W6a0PHM3kdXe2JGQDPi/zvPdI+8qaXkbfSCZ40QkFIw7HxflVON77LI1Gl0zedRHtPCWC7hAokyVqXoou9p0pT4lP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qQde4nC8egPGwzpwTupdUBU/Mu7lhTQoqkFWNv0FHNPJv12TzTGCju8SOU9DC9euGzTVXY/rS+kj/03h59ufIs6hagT2FKk9XhWR227a/L5y7DTwqtgiTp9t9uYm5czQvxUYR7F+WTN939IJEdEG8yGpgAAAABJRU5ErkJggg==",width:"70",height:"28"})]})]})]})]}):null,exports.Autocomplete=r=>{var{list:o,native:a=!1,option:i,onSelect:s}=r,l=Xs(r,["list","native","option","onSelect"]);const[{hasFullList:d,internalValue:c,isFocused:u},f]=t.useReducer((e,t)=>Object.assign(Object.assign({},e),t),{hasFullList:!1,internalValue:(null==i?void 0:i.label)||"",isFocused:!1}),p=o.filter(({label:e})=>n.normalizeString(e).includes(n.normalizeString(c))),h=Boolean(c.length>1&&!d)?p:o,g=(e="")=>{e||s(null),f({hasFullList:!1,internalValue:e})};return t.useEffect(()=>{(null==i?void 0:i.label)?g(i.label):f({internalValue:""})},[i]),e.jsx(Tl,Object.assign({focused:u,isAutocomplete:!0,native:a,option:i,options:a?o:h,onBlur:()=>f({hasFullList:!1,isFocused:!1}),onChange:g,onFocus:()=>{f({hasFullList:!0,isFocused:!0})},onSelect:e=>s(e),value:c},l))},exports.BagossFont=N,exports.Block=({children:t,picture:r,isCompact:n,isRounded:o})=>e.jsxs(Oc,{isRounded:o,"data-test":"block",children:[r&&e.jsx(Cc,{picture:r,"data-test":"picture"}),e.jsx(wc,{isCompact:n,children:e.jsx(e.Fragment,{children:t})})]}),exports.BlockCheckIcon=({onClick:t,image:r,checked:n,name:o,text:a,dataTest:i})=>{const s=`checkbox-input-label-${a}`;return e.jsxs(Vc,{checked:n,"data-test":i||`checkbox-button-${a}`,children:[e.jsx(qc,{"aria-labelledby":s,checked:n,name:o,onChange:({target:e})=>t(e.checked),type:"checkbox"}),e.jsx(Yc,{children:e.jsx(e.Fragment,{children:r})}),e.jsx("span",{id:s,children:a})]})},exports.BlockIcon=function({onClick:t,image:r,text:n,name:o,selectedValue:a,dataTest:i,value:s,isContentCentered:l=!1}){const d=a===s,c=`radio-input-label-${n}`;return e.jsxs(Hc,{"data-test":i||`radio-button-${n}`,isActive:d,isContentCentered:l,children:[e.jsx(qc,{"aria-labelledby":c,checked:d,name:o,onChange:()=>t(s),type:"radio"}),e.jsx("span",{id:c,children:n}),e.jsx(e.Fragment,{children:r})]})},exports.Burger=({isOpen:t,isSmall:r=!1,onClick:n,color:o})=>e.jsxs(Ec,{"data-test":"burger",onClick:n,isOpen:t,isSmall:r,color:o,children:[e.jsx(Sc,{}),e.jsx(Sc,{}),e.jsx(Sc,{})]}),exports.Button=t=>{var{appearance:r=exports.ButtonAppearance.PRIMARY,icon:n,iconPosition:o=exports.IconPosition.RIGHT,label:a,rounded:i=!1,size:s=exports.ButtonSizes.LARGE,theme:l=exports.ButtonTheme.BLACK}=t,d=Xs(t,["appearance","icon","iconPosition","label","rounded","size","theme"]);return e.jsxs(Bc,Object.assign({appearance:r,"aria-label":a,icon:n,iconPosition:o,rounded:i,size:s,theme:l},d,{children:[n&&e.jsx(_c,{appearance:r,iconPosition:o,size:s,theme:l,children:e.jsx(e.Fragment,{children:n})}),!i&&e.jsx(Rc,{"data-test":"label",children:a})]}))},exports.ButtonRadio=Uc,exports.ButtonRadioGroup=({label:t,name:r,onChange:n,options:o,value:a})=>e.jsx(Wc,{role:"radiogroup","aria-label":t,children:o.map(t=>e.jsx(Uc,{isChecked:a===t.value,name:r,option:t,onClick:()=>n(t)},`radio-option-${t.value}`))}),exports.Card=({after:r,children:n,closeToggleAriaLabel:o="Cacher le contenu",dataTest:a="card-layout",disabled:i=!1,hasToggle:s=!1,headerIcon:l,headerIconColor:d=E.dark.base,headerIconSize:c=exports.CardHeaderIconSize.MEDIUM,isOpen:u,label:f,labelAfter:p,noPadding:h,onClose:g,onOpen:m,openToggleAriaLabel:b="Afficher le contenu",toggleLabel:y,tooltip:v})=>{const $=J(),[x,w]=t.useState(u||!1),C=void 0!==u,O=C&&s&&!g,k=C&&s&&!m;return t.useEffect(()=>{C&&w(u)},[u,C]),e.jsxs(Pf,{"data-test":a,disabled:i,id:f,children:[e.jsxs(Af,{disabled:i,hasToggle:s,onClick:s&&!i?()=>x?(C&&!O||w(!1),void(g&&g())):(C&&!k||w(!0),void(m&&m())):void 0,children:[e.jsxs(Mf,{"data-test":"title-container",children:[l&&e.jsx(Lf,{headerIconColor:d,headerIconSize:c,children:e.jsx(e.Fragment,{children:l})}),e.jsx("div",{dangerouslySetInnerHTML:{__html:f},"data-test":`title-${a}`}),p&&e.jsx(Df,{children:e.jsx(e.Fragment,{children:p})}),v&&e.jsx(Tf,{onClick:e=>e.stopPropagation(),children:e.jsx(If,{placement:"auto",tooltip:v,children:e.jsx(Ff,{children:e.jsx(Zc,{fill:E.grey.base})})})})]}),(r||s)&&e.jsxs(Rf,{children:[r&&e.jsx(Tf,{onClick:e=>e.stopPropagation(),children:e.jsx(e.Fragment,{children:r})}),s&&e.jsxs(Bf,{children:[!$&&y&&e.jsx("span",{"data-test":"toggle-label",children:y}),e.jsx(Gf,{"aria-controls":f,"aria-expanded":x,"aria-label":x?o:y||b})]})]})]}),e.jsx(e.Fragment,{children:(!s&&n||s&&x)&&e.jsx(_f,{"data-test":"body-card",noPadding:h,children:e.jsx(e.Fragment,{children:n})})})]})},exports.Checkbox=({checkboxSize:t=exports.CheckboxSize.SMALL,checked:r,children:o,dataTest:a,disabled:i,id:s,indeterminate:l=!1,label:d,name:c,onChange:u})=>{const f=`${s}-${c}`;return e.jsxs(Wf,{checkboxSize:t,"data-test":a||`checkbox-${c}`,children:[e.jsx(Yf,Object.assign({},Boolean(o)&&{"aria-label":d},{checkboxSize:t,checked:r,"data-test":a?`checkbox-${a}`:"checkbox-input",disabled:i,id:f,indeterminate:l,name:c,onChange:({target:e})=>u(e.checked),type:"checkbox"})),e.jsx(Hf,{checkboxSize:t,"data-test":a?`checkbox-label-${a}`:"checkbox-label",hasLabel:n.isNotEmpty(d),htmlFor:f,children:e.jsx(e.Fragment,{children:o||e.jsx(qf,{dangerouslySetInnerHTML:{__html:d}})})})]})},exports.ClickableTag=({appearance:r=eh.BUSINESS,closeAriaLabel:n="Supprimer",color:o=th.TERRACOTA,dataTest:a="basic-tag",icon:i,labels:s,numberOfTags:l=s.length,showCloseIcon:d,onClick:c})=>{const u=s.slice(0,l);return e.jsx(t.Fragment,{children:u.map((t,s)=>e.jsxs(ah,{appearance:r,color:o,close:d,click:!!c,"data-test":a,icon:!!i,onClick:c,children:[i&&e.jsx(sh,{color:o,"data-test":"tag-icon",children:e.jsx(e.Fragment,{children:i})}),t,d&&e.jsx(ih,{"aria-label":n,appearance:r,"data-test":"tag-closer",children:e.jsx(Up,{})})]},s))})},exports.Container=I,exports.DateInput=Zl,exports.DatePicker=({date:n,dataTest:o,disabled:a,disabledDays:i,error:s,formatter:l="EEEE dd MMMM yyyy",label:d,locale:c,onDateChange:u,zIndex:f})=>{const p=t.useRef(null),[h,g]=t.useReducer((e,t)=>Object.assign(Object.assign({},e),t),{isFocused:!1,isOpen:!1}),{isOpen:m,isFocused:b}=h;return x(p,({target:e})=>{var t;(null===(t=p.current)||void 0===t?void 0:t.contains(e))||g({isFocused:!1,isOpen:!1})}),e.jsx(St,{ref:p,isOpen:m,"data-test":o||"date-picker-wrapper",onClick:()=>{b||a||g({isFocused:!0,isOpen:!0})},children:e.jsx(he,{disabled:a,label:d,error:s,zIndex:f,focused:b,value:n&&r.format(n,l,{locale:c}),field:m?e.jsx(kt,{date:n,disabledDays:i,locale:c,onDateChange:e=>{u(e||null),g({isFocused:!1,isOpen:!1})}}):e.jsx(t.Fragment,{})})})},exports.EmailInput=fl,exports.Energy=({carbonFootprint:t,carbonFootprintLevel:r,consumption:n,consumptionLevel:o,EPCLevel:a,textContent:i})=>{const s=1===a?0:25*(a-1)+10*(a-2),{blankEPC:l,carbonFootprintLegend:d,carbonFootprintTitle:c,carbonFootprintUnit:u,consumptionLegend:f,consumptionTitle:p,consumptionUnit:h,EPCLegend:g,EPCTitle:m}=i;return t&&n?e.jsxs("div",{children:[e.jsx(_t,{children:m}),e.jsxs(Rt,{"aria-label":m,role:"document",children:[e.jsx("div",{"aria-label":g,role:"group",tabIndex:0,children:e.jsx(zt,{children:e.jsx(Gt,{background:At(a),isMainScore:!0,letterSize:25,pos:s,children:exports.EnergyLevel[a]})})}),e.jsxs(qt,{children:[e.jsxs(Ht,{"aria-label":f,role:"group",tabIndex:0,children:[e.jsx(Ut,{children:p}),e.jsxs(Wt,{children:[e.jsx(Yt,{children:n}),e.jsx(Gt,{background:At(o),children:exports.EnergyLevel[o]})]}),e.jsx(Vt,{children:h})]}),e.jsxs(Ht,{"aria-label":d,role:"group",tabIndex:0,children:[e.jsx(Ut,{children:c}),e.jsxs(Wt,{children:[e.jsx(Yt,{children:t}),e.jsx(Gt,{background:Tt(r),children:exports.EnergyLevel[r]})]}),e.jsx(Vt,{children:u})]})]})]})]}):e.jsx(Bt,{children:l})},exports.ErrorLayout=Kt,exports.Fieldset=({label:t,active:r=!1,error:n=!1,children:o})=>e.jsxs(Zf,{"data-test":"fieldset-layout",active:r,error:n,children:[e.jsx(Vf,{"data-test":"fieldset-label",children:t}),e.jsx(de,{isVisible:!0,children:e.jsx("span",{dangerouslySetInnerHTML:{__html:t}})}),e.jsx(Kf,{children:e.jsx(e.Fragment,{children:o})})]}),exports.GmapsAutocomplete=$d,exports.GmapsGeocode=xd,exports.H1=({title:t,color:r=qd,isAlternative:n=Yd})=>e.jsx(Op,{isAlternative:n,color:r,dangerouslySetInnerHTML:{__html:t}}),exports.H2=({title:t,color:r=qd,isAlternative:n=Yd})=>e.jsx(kp,{isAlternative:n,color:r,dangerouslySetInnerHTML:{__html:t}}),exports.H3=({title:t,color:r=qd,isAlternative:n=!0})=>e.jsx(Sp,{isAlternative:n,color:r,dangerouslySetInnerHTML:{__html:t}}),exports.H4=({title:t,color:r=qd,isAlternative:n=Yd})=>e.jsx(Ep,{isAlternative:n,color:r,dangerouslySetInnerHTML:{__html:t}}),exports.H5=ic,exports.H6=({title:t,color:r=qd,isAlternative:n=!0})=>e.jsx(jp,{isAlternative:n,color:r,dangerouslySetInnerHTML:{__html:t}}),exports.Input=he,exports.InputLoading=()=>e.jsx(mp,{"data-test":"input-loading"}),exports.InterFont=P,exports.Line=T,exports.Loader=Jf,exports.Logo=()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 178 41",children:e.jsx("g",{fill:"currentColor",children:e.jsx("path",{d:"M146.119.062 145.337 0l-.68.02a.538.538 0 0 0-.098.012.403.403 0 0 1-.067.01c-.535.04-1.071.082-1.606.164-2.636.474-4.902 1.668-6.693 3.625-2.657 2.883-3.707 6.302-3.151 10.173a11.458 11.458 0 0 0 3.645 6.94c2.904 2.699 6.364 3.749 10.297 3.152a11.458 11.458 0 0 0 6.797-3.584c2.903-3.089 3.933-6.775 3.109-10.915-.576-2.78-1.997-5.066-4.201-6.858a11.906 11.906 0 0 0-6.57-2.677zm5.087 12.192c-.062 3.357-2.842 6.096-6.219 6.075h-.124c-3.439-.082-6.158-2.924-6.075-6.343.082-3.44 2.924-6.158 6.343-6.075 3.439.082 6.158 2.924 6.075 6.343zM3.671 1.274l-3.32.003V24.59h6.301v-5.87H6.9c.722 0 1.441.003 2.16.005 1.434.005 2.866.01 4.307-.004 1.38 0 2.76-.206 4.057-.639 2.471-.824 4.16-2.45 4.881-4.984.577-2.018.577-4.14.02-6.158-.617-2.224-1.997-3.789-4.118-4.716a11.63 11.63 0 0 0-4.572-.927c-3.321-.03-6.642-.027-9.963-.023zM6.837 13.49h-.185V6.487H12.645c.577 0 1.153.103 1.71.31 1.256.473 1.894 1.4 2.038 2.718.083.7-.02 1.441-.309 2.1-.432.948-1.194 1.463-2.183 1.71a5.297 5.297 0 0 1-1.277.165c-1.29.013-2.57.009-3.854.004-.643-.002-1.287-.004-1.933-.004zM166.2 0c.268.02.536.041.783.062a11.863 11.863 0 0 1 7.002 3.068c2.08 1.875 3.398 4.222 3.831 6.982.597 3.748-.33 7.105-2.822 9.988a11.59 11.59 0 0 1-6.775 3.934c-4.058.762-7.621-.288-10.689-3.048a1.715 1.715 0 0 1-.188-.183h-.001v-.001a7.661 7.661 0 0 0-.099-.104 14.88 14.88 0 0 0 1.73-3.295 15.86 15.86 0 0 0 .864-3.605c.557 1.792 1.648 3.13 3.337 3.934a6.011 6.011 0 0 0 5.148.082c3.131-1.359 4.573-5.025 3.193-8.155a6.2 6.2 0 0 0-4.778-3.645c-3.213-.495-6.24 1.606-6.961 4.572a14.7 14.7 0 0 0-2.636-6.961c.206-.206.411-.412.638-.598 1.874-1.585 4.098-2.595 6.487-2.903a19.9 19.9 0 0 1 1.077-.08l.056-.003c.019 0 .037-.004.057-.009a.379.379 0 0 1 .087-.011zM47.677 24.57l-4.408-7.888c.007-.007.014-.012.019-.015l.005-.004c0-.002-.007-.002-.024-.002l.124-.082c1.792-1.133 2.924-2.719 3.398-4.778a10.168 10.168 0 0 0-.02-4.387c-.515-2.492-1.957-4.263-4.325-5.252-1.524-.638-3.151-.885-4.778-.885-2.856-.014-5.712-.01-8.568-.005-1.428.003-2.856.005-4.283.005h-.186v23.251h6.261v-6.384c0-.165.041-.227.227-.227h6.57a.276.276 0 0 1 .288.165c1.153 2.1 2.286 4.202 3.418 6.323.041.123.144.185.247.165h5.829zM31.077 13.2h-.144l-.02-.206V6.714c0-.165.04-.227.226-.227h5.931c.618 0 1.236.103 1.813.33 1.153.453 1.73 1.318 1.874 2.512.082.598.02 1.216-.165 1.792-.33 1.03-1.112 1.648-2.142 1.895a5.036 5.036 0 0 1-1.359.185c-1.333.014-2.674.01-4.013.005-.668-.002-1.336-.005-2-.005zM99.781 1.277h13.016c1.73.02 3.398.268 5.005.968 2.286 1.009 3.645 2.78 4.139 5.21.33 1.483.33 3.007-.02 4.49-.474 1.977-1.607 3.501-3.296 4.613l-.226.144 4.428 7.909h-6.014c-.123.02-.226-.062-.268-.165l-.002-.005a1758.215 1758.215 0 0 1-3.396-6.318c-.041-.103-.144-.164-.267-.164h-6.591c-.165 0-.206.04-.206.206v6.425h-6.26zm6.282 11.924h.185c.659 0 1.318.003 1.977.005 1.318.004 2.636.009 3.954-.005.474 0 .948-.062 1.401-.185.947-.227 1.668-.742 2.08-1.648.268-.638.35-1.338.247-2.039-.124-1.07-.597-1.894-1.586-2.389a4.656 4.656 0 0 0-2.1-.453h-5.952c-.165 0-.206.042-.206.227v6.281zm-32.87-.72c0-6.838-5.519-12.378-12.356-12.399C54.06.062 48.542 5.5 48.439 12.274v.165c0 6.838 5.52 12.378 12.357 12.398 6.837 0 12.398-5.52 12.398-12.357zm-12.418 6.343a6.324 6.324 0 0 1-6.281-6.364v-.062c.02-3.48 2.883-6.281 6.363-6.26 3.48 0 6.302 2.862 6.282 6.404a6.324 6.324 0 0 1-6.364 6.282zm20.986-.103v5.849h-6.26V1.277h12.933c1.647 0 3.254.247 4.778.885 2.368 1.01 3.81 2.801 4.345 5.314.391 1.75.37 3.583-.082 5.334-.66 2.574-2.266 4.284-4.758 5.19a10.28 10.28 0 0 1-3.418.659c-1.607.041-3.193.041-4.799.041h-2.533zm0-8.733v3.296c0 .185.041.226.227.226 1.894 0 3.789 0 5.684-.02.473 0 .926-.062 1.38-.165 1.132-.289 1.977-.948 2.327-2.1.247-.825.247-1.69 0-2.513s-.824-1.483-1.607-1.813a5 5 0 0 0-1.977-.412h-5.807c-.186 0-.206.062-.206.227-.021 1.091-.021 2.183-.021 3.274zm49.036-8.711h-6.261V24.57h6.261zM14.54 32.766h1.277a3.277 3.277 0 0 0-.371-1.174 3.156 3.156 0 0 0-.762-.885 3.213 3.213 0 0 0-1.05-.556 4.12 4.12 0 0 0-1.257-.186c-.72 0-1.359.165-1.936.515-.556.35-1.009.844-1.338 1.483-.33.638-.494 1.421-.494 2.307 0 .885.164 1.668.494 2.306.33.639.762 1.133 1.338 1.483.557.35 1.216.515 1.936.515.453 0 .886-.062 1.277-.206s.742-.33 1.05-.577c.289-.247.557-.535.742-.885.185-.35.33-.721.391-1.133H14.56a1.934 1.934 0 0 1-.288.7c-.144.206-.288.37-.494.515a2.472 2.472 0 0 1-.66.33 3.09 3.09 0 0 1-.761.103c-.494 0-.906-.124-1.298-.371-.39-.247-.68-.597-.906-1.071-.226-.474-.33-1.05-.33-1.73 0-.68.104-1.256.33-1.73.227-.474.536-.824.906-1.07.392-.248.824-.372 1.298-.372.268 0 .515.021.762.103.247.083.453.186.659.33.206.144.37.33.494.535.124.206.227.453.268.721zM1.05 38.347c.31.144.68.227 1.071.227.35 0 .639-.062.906-.165a2.27 2.27 0 0 0 .618-.391c.144-.165.268-.31.35-.474h.042v.865H5.23v-4.18c0-.454-.062-.824-.226-1.113a1.907 1.907 0 0 0-.618-.659 2.288 2.288 0 0 0-.804-.33 3.798 3.798 0 0 0-1.894.083 2.65 2.65 0 0 0-.906.515c-.268.226-.453.535-.598.927l1.154.267c.103-.206.267-.411.494-.597.226-.185.556-.268.968-.268s.7.103.906.289c.206.185.309.473.309.824v.02c0 .165-.062.268-.165.33s-.288.123-.515.144c-.134.012-.298.032-.486.054l-.42.049a6.117 6.117 0 0 0-.885.165c-.289.082-.556.185-.783.308s-.412.289-.556.536c-.144.247-.206.535-.206.885 0 .412.082.763.288 1.05.186.269.453.495.762.64zm2.204-.968c-.227.144-.536.206-.865.206-.35 0-.618-.103-.844-.247-.227-.144-.33-.37-.33-.68 0-.226.041-.411.165-.535.123-.144.288-.247.474-.309.185-.062.411-.123.638-.144.088 0 .19-.015.309-.032l.062-.01c.144-.02.288-.04.453-.061a5 5 0 0 1 .185-.042c.09-.019.172-.036.247-.06a.67.67 0 0 0 .247-.125v.804c0 .247-.061.473-.185.7s-.309.412-.556.535zm15.24 1.195c-.391 0-.762-.083-1.07-.227s-.578-.37-.763-.638a1.906 1.906 0 0 1-.288-1.05c0-.35.062-.639.206-.886s.33-.412.556-.536c.226-.123.494-.226.782-.308s.577-.124.886-.165l.42-.049c.188-.022.351-.042.486-.054.227-.02.412-.083.515-.144s.165-.165.165-.33v-.02c0-.35-.103-.639-.31-.824-.205-.186-.493-.289-.885-.289s-.741.083-.968.268a1.63 1.63 0 0 0-.494.597l-1.153-.267c.144-.392.33-.7.597-.927a2.65 2.65 0 0 1 .906-.515 3.798 3.798 0 0 1 1.895-.082c.288.062.556.165.803.33.247.164.453.37.597.658.144.289.247.66.247 1.112v4.181H20.43v-.865h-.041c-.083.165-.206.309-.35.474-.165.144-.371.288-.618.391a2.65 2.65 0 0 1-.927.165zm.268-.989c.33 0 .638-.062.865-.206.247-.123.432-.309.556-.535s.185-.453.185-.7v-.804a.67.67 0 0 1-.247.124c-.075.025-.157.042-.247.061-.059.013-.12.026-.185.042-.165.02-.31.041-.453.062l-.062.009c-.118.017-.221.032-.31.032-.246.02-.452.082-.658.144-.186.062-.35.165-.474.31-.123.123-.165.308-.165.535 0 .309.103.535.33.68.226.143.515.246.865.246zm7.496-3.727 1.112-.186c-.123-.494-.37-.885-.782-1.174-.391-.288-.927-.432-1.607-.432-.473 0-.885.062-1.256.226-.37.165-.659.371-.865.66a1.555 1.555 0 0 0-.309.967c0 .453.144.824.412 1.113.268.288.72.514 1.298.638l1.07.226c.289.083.515.186.66.31.164.123.226.288.226.494 0 .247-.123.453-.37.618-.248.164-.577.247-.969.247-.35 0-.659-.062-.885-.227-.227-.165-.37-.391-.453-.7l-1.195.185c.103.536.371.968.824 1.277.453.31 1.03.453 1.73.453.494 0 .947-.082 1.339-.247.391-.185.68-.412.906-.7.226-.288.33-.639.33-1.01 0-.452-.145-.802-.433-1.09-.288-.29-.721-.495-1.298-.619l-.988-.226c-.35-.083-.597-.186-.762-.31a.702.702 0 0 1-.227-.514c0-.247.124-.432.35-.597.227-.144.515-.227.865-.227.268 0 .453.041.639.124.185.082.309.185.412.309.103.144.185.267.226.412zm3.83 4.716c-.39 0-.761-.083-1.07-.227a1.926 1.926 0 0 1-.762-.638 1.906 1.906 0 0 1-.288-1.05c0-.35.061-.639.206-.886.144-.247.33-.412.556-.536.226-.123.494-.226.782-.308s.577-.124.886-.165l.42-.049c.188-.022.351-.042.486-.054a1.29 1.29 0 0 0 .515-.144c.103-.062.165-.165.165-.33v-.02c0-.35-.103-.639-.31-.824-.205-.186-.494-.289-.906-.289s-.74.083-.968.268a1.863 1.863 0 0 0-.494.597l-1.153-.267c.144-.392.33-.7.597-.927.268-.227.577-.412.906-.515s.7-.165 1.092-.165c.247 0 .515.02.803.083s.556.165.803.33c.247.164.453.37.597.658.145.289.227.66.227 1.112v4.181h-1.194v-.865h-.042c-.082.165-.206.309-.35.474a2.27 2.27 0 0 1-.618.391 2.264 2.264 0 0 1-.885.165zm.269-.989c.33 0 .638-.062.865-.206.247-.123.432-.309.556-.535.123-.227.185-.453.185-.7v-.804a.671.671 0 0 1-.247.124c-.075.025-.157.042-.247.061-.059.013-.12.026-.186.042-.164.02-.309.041-.453.062l-.061.009a2.288 2.288 0 0 1-.31.032c-.226.02-.452.082-.638.144-.185.062-.35.165-.474.31-.123.123-.185.308-.185.535 0 .309.103.535.33.68.226.164.514.246.865.246zm6.755.845 2.286-6.302H38.08l-1.586 4.84h-.062l-1.586-4.84h-1.318l2.266 6.302zm5.293.123c-.598 0-1.113-.144-1.545-.412a2.751 2.751 0 0 1-1.03-1.132c-.247-.495-.37-1.05-.37-1.71s.123-1.215.37-1.71c.247-.493.577-.864 1.03-1.132.432-.268.947-.412 1.545-.412.597 0 1.112.144 1.544.412.433.268.783.639 1.03 1.133s.37 1.05.37 1.71-.123 1.214-.37 1.709c-.247.494-.577.865-1.03 1.132a2.932 2.932 0 0 1-1.544.412zm0-1.03c.39 0 .7-.103.947-.308a1.88 1.88 0 0 0 .556-.804c.124-.33.185-.7.185-1.112s-.061-.762-.185-1.112a1.764 1.764 0 0 0-.556-.803c-.247-.206-.577-.309-.947-.309s-.7.103-.948.309c-.247.206-.432.474-.556.803s-.185.7-.185 1.112.062.783.185 1.112.309.598.556.804c.247.205.556.308.948.308zm7.29.618c.433.268.947.412 1.565.412a3.76 3.76 0 0 0 1.318-.226c.371-.186.68-.433.886-.762.206-.33.35-.68.391-1.092h-1.194a1.356 1.356 0 0 1-.268.577 1.191 1.191 0 0 1-.474.37 1.68 1.68 0 0 1-.638.124c-.35 0-.66-.082-.906-.268-.268-.185-.453-.453-.598-.782-.144-.35-.206-.742-.206-1.195s.062-.844.206-1.174c.145-.33.35-.576.598-.762.267-.185.556-.267.906-.267.391 0 .7.123.927.33.247.205.39.473.453.761h1.194a2.202 2.202 0 0 0-.412-1.112 2.479 2.479 0 0 0-.906-.741c-.37-.186-.803-.268-1.277-.268-.597 0-1.112.124-1.544.412-.433.288-.762.659-1.01 1.153-.247.494-.37 1.071-.37 1.689s.123 1.174.35 1.668c.226.494.577.886 1.01 1.153zm7.538.412c-.598 0-1.112-.144-1.545-.412a2.751 2.751 0 0 1-1.03-1.132c-.247-.495-.37-1.05-.37-1.71s.123-1.215.37-1.71c.247-.493.577-.864 1.03-1.132.433-.268.947-.412 1.545-.412.597 0 1.112.144 1.544.412.433.268.783.639 1.03 1.133s.37 1.05.37 1.71-.123 1.214-.37 1.709c-.247.494-.577.865-1.03 1.132a2.985 2.985 0 0 1-1.544.412zm0-1.03c.391 0 .7-.103.947-.308.247-.206.432-.474.556-.804s.186-.7.186-1.112-.062-.762-.186-1.112-.309-.597-.556-.803c-.247-.206-.577-.309-.947-.309s-.7.103-.948.309a1.88 1.88 0 0 0-.556.803c-.123.33-.185.7-.185 1.112s.062.783.185 1.112c.124.33.31.598.556.804.248.205.556.308.948.308zm3.707-5.395v6.302l1.235.02v-3.872c0-.267.062-.514.186-.74.123-.228.268-.392.473-.516.186-.123.412-.185.639-.185.33 0 .618.103.824.309.206.206.309.473.309.824v4.18h1.215v-4.016c0-.391.103-.7.33-.947.226-.247.535-.37.926-.37.309 0 .597.102.824.288.226.185.35.494.35.926v4.099h1.235v-4.222c0-.721-.164-1.277-.535-1.627s-.824-.536-1.4-.536c-.454 0-.845.103-1.174.31a1.8 1.8 0 0 0-.721.802h-.062a1.885 1.885 0 0 0-.638-.803c-.268-.185-.639-.288-1.05-.288s-.783.103-1.072.288a1.558 1.558 0 0 0-.638.803h-.082v-1.03zm9.618 8.65v-8.65h1.194v1.009h.103c.062-.124.165-.289.309-.453.123-.165.309-.33.556-.453.226-.124.556-.186.947-.186.515 0 .968.124 1.36.392.39.267.72.618.947 1.112.226.494.35 1.07.35 1.75s-.103 1.257-.33 1.75c-.226.495-.535.866-.926 1.113a2.504 2.504 0 0 1-1.36.391c-.39 0-.7-.061-.926-.185a2.164 2.164 0 0 1-.577-.453 2.217 2.217 0 0 1-.309-.453h-.082v3.315zm1.194-5.5c0 .433.062.824.185 1.154s.31.597.556.783c.248.185.536.288.886.288s.68-.103.927-.288.432-.454.556-.804c.123-.33.185-.72.185-1.132s-.062-.783-.185-1.112c-.124-.33-.31-.598-.556-.783-.247-.185-.556-.288-.927-.288s-.66.082-.906.267a1.638 1.638 0 0 0-.556.762c-.103.33-.165.721-.165 1.154zm6.096 3.07c.309.143.68.226 1.07.226.351 0 .66-.062.948-.165a2.27 2.27 0 0 0 .618-.391c.144-.165.268-.31.35-.474h.041v.865h1.195v-4.18c0-.454-.062-.824-.227-1.113a1.906 1.906 0 0 0-.617-.659c-.248-.165-.515-.268-.804-.33a3.79 3.79 0 0 0-1.894.083 2.65 2.65 0 0 0-.907.515c-.267.226-.453.535-.597.927l1.154.267c.102-.206.267-.411.494-.597.226-.185.576-.268.968-.268s.68.083.885.289c.206.185.31.473.31.824v.02c0 .165-.063.268-.166.33a1.29 1.29 0 0 1-.514.144c-.16.013-.345.035-.556.06l-.371.043c-.31.041-.597.103-.886.165a3.876 3.876 0 0 0-.782.308 1.385 1.385 0 0 0-.556.536c-.145.247-.206.535-.206.885 0 .412.103.783.288 1.05.185.269.453.495.762.64zm2.204-.969c-.247.144-.536.206-.865.206a1.59 1.59 0 0 1-.865-.247c-.227-.144-.33-.37-.33-.68 0-.226.062-.411.186-.535a.954.954 0 0 1 .473-.309c.186-.062.412-.123.639-.144.088 0 .19-.015.309-.032l.061-.01c.145-.02.289-.04.453-.061.065-.016.127-.03.186-.042.09-.019.172-.036.247-.06a.671.671 0 0 0 .247-.125v.804c0 .247-.062.473-.185.7a1.272 1.272 0 0 1-.556.535zm4.263-2.698v3.728h-1.236v-6.281h1.174v1.03h.082c.144-.33.371-.598.68-.804.309-.206.7-.309 1.174-.309.432 0 .803.083 1.133.268.329.185.576.453.74.803.186.35.269.783.269 1.298v3.995h-1.236v-3.851c0-.453-.124-.803-.35-1.071-.227-.247-.556-.391-.989-.391-.288 0-.535.061-.762.185a1.291 1.291 0 0 0-.515.535c-.123.227-.164.536-.164.865zm5.128 6.055c.144.02.309.041.494.041.35.021.639 0 .886-.123.247-.124.473-.268.659-.515.185-.247.33-.515.453-.844l2.595-7.126h-1.318l-1.586 4.88h-.062l-1.586-4.88H88.66l2.307 6.364-.144.412c-.103.267-.206.473-.35.597-.145.103-.289.185-.474.185-.186 0-.37-.02-.597-.082l-.289 1.009c.062.02.186.062.33.082z"})})}),exports.NumberInput=r=>{var{focused:n,isFloat:o=!1,onBlur:a,onChange:i,onFocus:s,value:l}=r,d=Xs(r,["focused","isFloat","onBlur","onChange","onFocus","value"]);const[c,u]=t.useState(Boolean(n)),[f,p]=t.useState(l?l.toString():"");return t.useEffect(()=>{if(null===l)return p("");const e=null==l?void 0:l.toString();e&&e!==f&&p(e)},[l]),e.jsx(he,Object.assign({},d,{onFocus:()=>{u(!0),s&&s()},onBlur:()=>{u(!1),p(((e,t)=>{const r=bp(e),n=t?parseFloat(r):parseInt(r,10);return isNaN(n)?"":n.toString()})(f,o)),a&&a()},onChange:e=>{const t=bp(e,!0),r=t.endsWith(".");if(o&&vp.test(t)||!o&&$p.test(t)){if(p(t),r)return;if(""===t)return i(null);const e=o?parseFloat(t):parseInt(t,10);isNaN(e)||l===e||i(e)}},value:c?f:yp(f,o)}))},exports.OfferSignatoryForm=({offerSignatoryInfo:r,errors:o,customErrorMessages:a={},updateOfferSignatory:i})=>{const{dateOfBirth:s,placeOfBirth:l,street:d,streetNumber:c,city:u,postCode:f,maritalStatus:p}=r,[h,g]=t.useState(n.listToString([c,d,f,u])),m=!!o.street||!!o.city||!!o.postCode,b=Object.assign(Object.assign({},Sd),a);return e.jsxs("div",{children:[e.jsxs(T,{children:[e.jsx(xd,{dataTest:"offer-signatory-address",disabled:!1,label:Od,value:h,onChange:e=>{g(e),e||i(Object.assign(Object.assign({},r),{city:"",postCode:"",street:"",streetNumber:""}))},onSelect:e=>{const{city:t,postalCode:o,street:a,streetNumber:s}=n.getFormattedAddressComponent(e);i(Object.assign(Object.assign({},r),{city:(null==t?void 0:t.long_name)||"",postCode:(null==o?void 0:o.long_name)||"",street:(null==a?void 0:a.long_name)||"",streetNumber:(null==s?void 0:s.long_name)||""}))},error:m,country:""}),m&&e.jsx(Kt,{dataTest:"address",children:b.address})]}),e.jsx(T,{children:e.jsxs(Y,{children:[e.jsxs("div",{children:[e.jsx(Zl,{dataTest:"offer-signatory-birth-date",label:wd,disabled:!1,error:!!o.dateOfBirth,onChange:e=>e&&i(Object.assign(Object.assign({},r),{dateOfBirth:new Date(e)})),value:s?s.toISOString():""}),o.dateOfBirth&&e.jsx(Kt,{dataTest:"dateOfBirth",children:b.dateOfBirth})]}),e.jsxs("div",{children:[e.jsx(he,{dataTest:"offer-signatory-birth-place",label:Cd,error:!!o.placeOfBirth,disabled:!1,onChange:e=>i(Object.assign(Object.assign({},r),{placeOfBirth:e})),value:l}),o.placeOfBirth&&e.jsx(Kt,{dataTest:"placeOfBirth",children:b.placeOfBirth})]})]})}),e.jsx(T,{children:e.jsxs(Y,{children:[e.jsxs("div",{children:[e.jsx(Tl,{dataTest:"offer-signatory-marital-status",disabled:!1,error:!!o.maritalStatus,label:kd,onSelect:({value:e})=>i(Object.assign(Object.assign({},r),{maritalStatus:e})),option:Ed.find(({value:e})=>e===p)||null,options:Ed}),o.maritalStatus&&e.jsx(Kt,{dataTest:"maritalStatus",children:b.maritalStatus})]}),e.jsx("div",{})]})})]})},exports.OfferSignatoryFormSchema=jd,exports.Option=xl,exports.Phone=Ks,exports.PhoneAndFlag=({color:r=E.dark.base,errorMessage:n,onError:o,phone:a})=>{const i=a?Ul(a):null;return t.useEffect(()=>{!i&&o&&o()},[o,i]),i?e.jsx(Id,{children:"FR"===i.country?e.jsx(Pd,{color:r,"data-test":"french-phone",children:zl(i.number)}):e.jsxs(t.Fragment,{children:[e.jsx(Nd,{alt:i.country,"data-test":"flag",src:`https://cdn.proprioo.fr/assets/flags/${i.country}.svg`}),e.jsx(Pd,{color:r,"data-test":"phone",children:zl(i.number)})]})}):e.jsx(Id,{children:e.jsx(Ad,{"data-test":"incorrect-phone",children:n})})},exports.PhoneInput=({label:t,value:r,onChange:n,dataTest:o,disabled:a=!1,error:i=!1,phoneWithFlags:s=!1,required:l=!1})=>e.jsx(he,{dataTest:o||"customer-phone",name:"phone",type:exports.InputType.TEL,disabled:a,error:i,label:t,value:r,onChange:n,inputElement:Ks,phoneWithFlags:s,required:l}),exports.PlacesAutocomplete=dd,exports.Radio=({name:t,label:r,id:n,isChecked:o,onChange:a,value:i,dataTest:s})=>{const l=`${n}-${t}`;return e.jsxs(xp,{"data-test":s||`radio-${t}`,children:[e.jsx(Cp,{type:"radio",id:l,name:t,value:i,onChange:e=>a(e),checked:o}),e.jsx(wp,{htmlFor:l,children:r})]})},exports.Row=Y,exports.Select=Tl,exports.SingleMonth=t=>e.jsx(Et,{children:e.jsx(kt,Object.assign({},t))}),exports.Slider=t=>{const{decimals:r=0,disabled:n=!1,value:o=0,min:a=0,max:i=100,step:s=1,leftColor:l=E.terracota.base,leftLabel:d="",rightColor:c=E.terracota.base20,rightLabel:u="",onChange:f,showLeft:p=!0,showRight:h=!0,showPercentageSign:g=!0,thumbColor:m=E.terracota.base,dataTestSliderWrapper:b="slider-wrapper",dataTestSliderInput:y="slider-input"}=t;return e.jsxs(wh,{"data-test":b,children:[p&&e.jsxs(Oh,{children:[e.jsx(kh,{children:d}),e.jsx(Sh,{children:`${o.toFixed(r)}${g?"%":""}`})]}),e.jsx(Ch,{"data-test":y,disabled:n,type:"range",percent:(o-a)/(i-a)*100,min:a,max:i,step:s,value:Number(o),leftColor:l,rightColor:c,thumbColor:m,onChange:e=>f(Number(e.target.value))}),h&&e.jsxs(Oh,{children:[e.jsx(kh,{children:u}),e.jsx(Sh,{children:`${(i+a-o).toFixed(r)}${g?"%":""}`})]})]})},exports.Subtitle=({text:t,color:r=E.dark.base})=>e.jsx(zp,{"data-test":"subtitle",children:e.jsx(Gp,{color:r,"data-test":"subtitle-label",children:t})}),exports.Tag=({appearance:r=exports.TagAppearance.BUSINESS,closeAriaLabel:n="Supprimer",color:o=exports.TagColorsTypes.TERRACOTA,dataTest:a="basic-tag",icon:i,labels:s,numberOfTags:l=s.length,onClose:d})=>{const c=s.slice(0,l),u=s.slice(l);return e.jsxs(t.Fragment,{children:[c.map((t,s)=>e.jsxs(Vp,{appearance:r,color:o,close:!!d,"data-test":a,icon:!!i,children:[i&&e.jsx(Qp,{color:o,"data-test":"tag-icon",children:e.jsx(e.Fragment,{children:i})}),t,d&&e.jsx(Zp,{"aria-label":n,appearance:r,"data-test":"tag-closer",onClick:d,children:e.jsx(Up,{})})]},s)),Boolean(u.length)&&e.jsxs(Jp,{"data-test":"list-tag",children:[e.jsxs(Vp,{appearance:r,color:o,"data-test":a,icon:!!i,children:[i&&e.jsx(Qp,{color:o,"data-test":"tag-icon",children:e.jsx(e.Fragment,{children:i})}),`+ ${u.length}`]}),e.jsx(Xp,{appearance:r,color:o,children:u.map((t,r)=>e.jsx(Kp,{"data-test":"tag-element",children:t},r))})]})]})},exports.TagBase=Hp,exports.TextToggle=({text:r,dataTest:n="text-toggle",isComment:o=!1,maxLength:a=300,showLessLabel:i="Lire moins",showMoreLabel:s="Lire plus",title:l})=>{const d=(e=>e.split(xh).filter(Boolean).join(" "))(r),c=d.length>a,[u,f]=t.useState(c),p=((e,t)=>{if(e.length<=t||t<0)return e;if(" "===e.charAt(t))return e.slice(0,t).concat("…");const r=e.slice(0,t),[n]=e.slice(t,e.length).split(" ");return r.concat(n).concat("…")})(d,a);return e.jsxs(bh,{"data-test":n,children:[l&&e.jsx(vh,{"data-test":"text-toggle-title",children:`${l} : `}),e.jsx($h,{isComment:o,children:u?p:d}),c&&e.jsx(yh,{isComment:o,hasTitle:Boolean(l),onClick:()=>f(!u),children:u?s:i})]})},exports.Textarea=gh,exports.Toggle=({label:t,id:r,checked:n=!1,disabled:o=!1,name:a,dataTest:i,onChange:s})=>e.jsxs(Bp,{children:[e.jsx(Rp,{checked:n,onChange:e=>{s(e.target.checked)},icons:!1,name:a,id:r,disabled:o,"data-test":i||`toggle-${a}`}),e.jsx(_p,{htmlFor:r,disabled:o,"data-test":"toggle-label",children:t})]}),exports.Tooltip=If,exports.UserForm=({disabledFields:t={},emailSuggestionI18nLabels:r,errorMessages:n={},errors:o,hasLanguagePreferences:a=!1,isEmailSuggestionEnabled:i=!0,labels:s=Fl,phoneWithFlags:l=!1,defaultCountry:d,user:c,userLanguageOptions:u=Dl,updateUser:f})=>{const{email:p,firstName:h,language:g,lastName:m,phone:b}=c,y=Object.assign(Object.assign({},Ll),n);return e.jsxs("div",{children:[e.jsx(T,{children:e.jsxs(Y,{children:[e.jsxs("div",{children:[e.jsx(he,{dataTest:"customer-firstName",name:"first-name",type:exports.InputType.TEXT,disabled:t.firstName,error:!!o.firstName,label:s.firstName,value:h,onChange:e=>f(Object.assign(Object.assign({},c),{firstName:e}),"user.firstName")}),!!o.firstName&&e.jsx(Kt,{dataTest:"invalid-firstName",children:y.firstName})]}),e.jsxs("div",{children:[e.jsx(he,{dataTest:"customer-lastName",name:"last-name",type:exports.InputType.TEXT,disabled:t.lastName,error:!!o.lastName,label:s.lastName,value:m,onChange:e=>f(Object.assign(Object.assign({},c),{lastName:e}),"user.lastName")}),!!o.lastName&&e.jsx(Kt,{dataTest:"invalid-lastName",children:y.lastName})]})]})}),e.jsx(T,{children:e.jsxs(Y,{children:[e.jsxs("div",{children:[e.jsx(fl,{dataTest:"customer-email",name:"email",disabled:t.email,error:!!o.email,label:s.email,isSuggestionEnabled:i,i18nLabels:r,value:p,onChange:e=>f(Object.assign(Object.assign({},c),{email:Ml(e)}),"user.email")}),!!o.email&&e.jsx(Kt,{dataTest:"invalid-email",children:y.email})]}),e.jsxs("div",{children:[e.jsx(he,{dataTest:"customer-phone",name:"phone",type:exports.InputType.TEL,disabled:t.phone,error:!!o.phone,label:s.phone,value:b,onChange:e=>f(Object.assign(Object.assign({},c),{phone:e||null}),"user.phone"),inputElement:Ks,phoneWithFlags:l,defaultCountry:d}),!!o.phone&&e.jsx(Kt,{dataTest:"invalid-phone",children:y.phone})]})]})}),a&&e.jsx(T,{children:e.jsx(Y,{children:e.jsxs("div",{children:[e.jsx(Tl,{dataTest:"customer-language",disabled:t.language,error:!!o.language,label:s.language,onSelect:({value:e})=>{f(Object.assign(Object.assign({},c),{language:e}),"user.language")},option:u.find(({value:e})=>e===g)||null,options:u}),!!o.language&&e.jsx(Kt,{dataTest:"invalid-language",children:y.language})]})})})]})},exports.UserSchema=Hl,exports.breakpoints=C,exports.colors=E,exports.convertPxToRem=j,exports.createAction=K,exports.fonts=A,exports.formatISODate=Yl,exports.formatInternationalPhone=zl,exports.formatPhoneNumber=e=>Hs(e,qs),exports.geocodeByAddress=ld.geocodeByAddress,exports.getCarbonFootprintLevel=Ft,exports.getConsumptionLevel=Dt,exports.getEPCLevel=Lt,exports.getEPCLevels=(e,t,r)=>{const n=Dt(t,r),o=Ft(e,r);return{consumptionLevel:n,carbonFootprintLevel:o,EPCLevel:Lt(n,o,r)}},exports.getGeoSearchSuggestions=re,exports.isTouchDevice=Q,exports.isValidDate=Vl,exports.isValidPhoneNumber=Gl,exports.paragraphs=H,exports.parsePhoneNumber=Ul,exports.radius=q,exports.resetCssButton=ee,exports.scrollbar=Z,exports.shadows=V,exports.titles=Vd,exports.useDebounce=al,exports.useEmailSuggestion=ll,exports.useMobileDevice=()=>X(`(max-width: ${C.base-1}px)`),exports.useModal=({onAbort:r,onOpen:n,onClose:o}={})=>{const[{isAborting:a,fade:i,isLoading:s,isOpen:l},d]=t.useReducer(rp,{isAborting:!1,fade:Qf.IN,isOpen:!1,isLoading:!1}),c=(()=>{const e=t.useRef(!0);return t.useEffect(()=>{e.current=!1},[]),e.current})(),u=t.useCallback(()=>{l&&d(tp.toggleLoad())},[l]),f=t.useCallback(()=>{n&&n(),d(tp.open())},[n]),p=t.useCallback(()=>{!s&&l&&d(tp.close())},[s,l]),h=t.useCallback(()=>{!s&&l&&d(tp.abort())},[s,l]),g=t.useCallback(()=>d(tp.animationEnd()),[]),m=t.useCallback(()=>{a&&r&&r(),o&&o(),d(tp.reset())},[a,r,o]);t.useEffect(()=>{l||c||m()},[l]);return{closeModal:p,createModal:({children:r,icon:n,isAlternative:o=!1,isClosable:a=!0,isFullScreen:d,noPadding:c,text:u,title:f})=>l?e.jsx(gp,{abortModal:h,fade:i,icon:n,isAlternative:o,isClosable:a,isFullScreen:d,isLoading:s,noPadding:c,onAnimationEnd:g,text:u,title:f,children:r}):e.jsx(t.Fragment,{}),openModal:f,toggleLoader:u}},exports.useOnClickOutside=x,exports.useSmallSmartphoneDevice=()=>X(`(max-width: ${C.smallest-1}px)`),exports.useSmartphoneDevice=J;
|
|
3033
|
+
`;exports.Accordion=({children:t,preExpanded:r,allowMultipleExpanded:n})=>e.jsx(Md,{preExpanded:r,allowMultipleExpanded:n,children:t}),exports.AccordionHeader=({isAlternative:t,basic:r,children:n})=>e.jsx(oc,{children:({expanded:o,toggleExpanded:a})=>e.jsxs(Zd,{onClick:()=>a(),"data-test":"accordion-header",children:[e.jsx(Kd,{isAlternative:t,basic:r,children:e.jsx(e.Fragment,{children:n})}),e.jsx(Xd,{isOpen:o,children:e.jsx(pl,{})})]})}),exports.AccordionItem=({children:t,uuid:r,color:n=exports.AccordionItemColors.ORANGE})=>e.jsx(nc,{uuid:r,children:e.jsx(oc,{children:({expanded:o})=>e.jsx(Qd,{isOpen:o,color:n,"data-test":""+(o?`${r}-item-opened`:`${r}-item-closed`),children:e.jsx(e.Fragment,{children:t})})})}),exports.AccordionPanel=({children:r,unmountOnCollapse:n})=>e.jsx(oc,{children:({expanded:o})=>e.jsx(Jd,{isOpen:o,children:!n||o?e.jsx("div",{"data-test":"panel-content",children:r}):e.jsx(t.Fragment,{})})}),exports.AgentBanner=({children:t,agent:{image_agent:r,name:n,zone:o,fonction:a},rounded:i=!0})=>e.jsxs(sc,{"data-test":"agent-card",rounded:i,children:[e.jsxs(uc,{children:[n&&e.jsx(ic,{title:n,color:E.green.base}),a&&e.jsx(fc,{"data-test":"agent-fonction",children:a}),o&&e.jsx(fc,{"data-test":"agent-zone",children:o}),e.jsx(e.Fragment,{children:t})]}),e.jsx(dc,{children:e.jsx(cc,{children:e.jsx(lc,{"data-test":"agent-image",src:r,loading:"lazy"})})})]}),exports.AgentCard=({agent:{image_agent:t,name:r,zone:n,fonction:o,trustpilot_comment:a},showComment:i=!0})=>t?e.jsxs(pc,{"data-test":"agent-card-layout",children:[e.jsxs(hc,{children:[n&&e.jsxs($c,{"data-test":"agent-zone",children:[e.jsx("img",{src:"data:image/svg+xml,%3Csvg%20fill%3D%22none%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22m12%200c-4.198%200-8%203.403-8%207.602%200%204.198%203.469%209.21%208%2016.398%204.531-7.188%208-12.2%208-16.398%200-4.199-3.801-7.602-8-7.602zm0%2011c-1.657%200-3-1.343-3-3s1.343-3%203-3%203%201.343%203%203-1.343%203-3%203z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"}),n]}),e.jsx(gc,{"data-test":"agent-image",src:t,loading:"lazy"})]}),e.jsxs(mc,{children:[r&&e.jsx(bc,{"data-test":"agent-name",children:r}),o&&e.jsx(yc,{"data-test":"agent-fontion",children:o}),i&&a&&e.jsxs("div",{children:[e.jsx(vc,{"data-test":"agent-comment",children:a}),e.jsxs(xc,{children:[e.jsx("img",{"data-test":"stars",src:"data:image/svg+xml,%3Csvg%20fill%3D%22none%22%20height%3D%2216%22%20width%3D%22112%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Cpattern%20id%3D%22a%22%20height%3D%221%22%20patternContentUnits%3D%22objectBoundingBox%22%20width%3D%221%22%3E%3Cimage%20height%3D%2216%22%20transform%3D%22matrix%28.00903%200%200%20.0625%20-.001%200%29%22%20width%3D%22111%22%20xlink%3Ahref%3D%22data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAG8AAAAQCAYAAAAYsSF0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAc%2FSURBVHgB3Vh7UFTXGf%2FOuXsfuywuIFQFCghxWVaCmSCObZrWam1Dp0k7UK0aa3nMwKQmM23SkEwcJ5t02klIbZtJm0SrkNYwaUKNbS2JxsqY6GDklUwevEFQYXkEVtZlH%2FfuvSff7pqNOBAF%2FmJ%2FM3f33u985zu%2F73HOPfcA3AA%2Bu2StaCnZJ2QV94iWUi%2Fe%2B%2FBqD8jEzJ2ZYcWaR1fBa7ZEWCCaD%2F%2FgTlggmg%2FfvQLtrIAFYrFxoeG7FWUGIav0MFXgPD49TBghwFgD3p9lAFJAxghfA9YtAhzZkwo6ugu224ZgAQg4as4zn1yosyuzrRVp1rTHYAFYjFxCyUvZESuYlFOEsZ1AoF7jtHW%2BjqoMX2fVRvzfJHdUrSRAvyv7IR%2F2ZiSC4j8ELlYJC0QqOhpl4uJSrCnzdrZ5%2F90romKlcmOcVNa8f%2F6BX4xcgskTDYanCJD1BOD3mKzvK5%2B%2B0nSjorfj4Gl4wghA2FsArBpKK6%2FCAhBw1GgSyz1jzRAdI5W9h88wD6TckVlB%2FMN6otr1yWuS5xX4xcqF8qt3rg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fsvg%3E",width:"112",height:"16"}),e.jsx("img",{"data-test":"review-logo",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEYAAAAcCAYAAADcO8kVAAAHpUlEQVR4Ad2YZXgbSRJAZ5ktjb3MwoBgeVdyjpmZma2xF8OMco6ZmfkudMzMfBc2h5mZ5urJXZtOWwrzj/pmproa6nVVdUve0x9+Th+JZoPniHwnkmvaHM0FoUokGyyL5IJvRHLNg2z7+HdbHxef8Z463s8WOeDjimzp1kiu9OtHYWRLe+R7USRbagOK6kW347J881UVKNOmvv7W6a0PHM3kdXe2JGQDPi/zvPdI+8qaXkbfSCZ40QkFIw7HxflVON77LI1Gl0zedRHtPCWC7hAokyVqXoou9p0pT4lPa/3x0U5elwvu0kg8YjCZpneYTSqfMDB12dINGhHy/Eld5kH/UB0T01rviU1rXRX7dmvsaCeXSMmJdMmcfz7yiGkabvo+csLAyOAzDZQfXpt4y6WHhDKz3A8o8enlwQpW2y7Llq6JZpsfV3G6X0tExnxiNNfcQuj72VI/exzmwlbmvpfvSOrp5/ONNNz0wMXRTPAM+lLz2Cw37bHj6Y5JDaz0y5Ree3m+NLAPVNqZh/Xd1ny7rD9gfRcPfNvNalMx0vSxHKwpREj8u+UuAfN778mvO8fPBDdRgwBSWXC/l7+B8cSZ2QKn48DiXdpOKlZPJcC86nZjt0Z0/3D6trHWWqmk42GH3qqT+zgwAK12MvZW0/4r6qhdOykh2FBbPlktV2OzpqZdKDd/t3xdfFq5LTatvBNAZpKPGucescHoRKSmnw8+QjTqInSuWmC08HMyyvvHSTW1u/y2+xuqgSEydHwD9RMA4fDQbPAyzzzPAYP+96xP3r+v81JDPd1VFqkApKC+qOL89NZRTqQslbZQUwiJ5IM3mQm+7YIhRG2wpIZGDqdaLTBG91Z0Wvhx1ix8SDUwddng573fwVdMdFgnX2k9bXqCKRg2lfR1ohD97zwIIRhoUQUKABB5/xzRI5HyX75JofjwV55r56umjg0GR/h2RXdfcvyNtcDwbS/YWfQXXTCAIG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JtGj6vjxr8EgdceLdOG7JEnH+HsCI/Nlp+08437tS+hSlbb3TNpFJeTr6NTLecw2YX6MDTPvyrWHb0i3/6+nZ4KtT7LjZ3W+yq+grjhMB8eKNtGl0aSSw0zjqppKCBICxY9w90VsLUeyJGGwYV/r8U38GYW+n0QJ1xA7/cIE3wHYSWFafEZb+v6pHFAACeLtWEUkKpmvlztu17cr+j0lTOAEUTRUf5ycLf9c2wPipxq8KjFfxzU5H08XX8MOWCBIn19QA83n6MCY6+uC8C4a5+oChgLKrJuR/Jrv7IcuRp2l6meezrBryJdLLpE2PA2YO6UX9Efm66k0KLtnYeX+5ffmWtrYVW1+gbWYn/8qCiQIiQttwTvSrSB39AUs9ABbRBYBqYEgPxqQde4nC8egPGwzpwTupdUBU/Mu7lhTQoqkFWNv0FHNPJv12TzTGCju8SOU9DC9euGzTVXY/rS+kj/03h59ufIs6hagT2FKk9XhWR227a/L5y7DTwqtgiTp9t9uYm5czQvxUYR7F+WTN939IJEdEG8yGpgAAAABJRU5ErkJggg==",width:"70",height:"28"})]})]})]})]}):null,exports.Autocomplete=r=>{var{list:o,native:a=!1,option:i,onSelect:s}=r,l=Xs(r,["list","native","option","onSelect"]);const[{hasFullList:d,internalValue:c,isFocused:u},f]=t.useReducer((e,t)=>Object.assign(Object.assign({},e),t),{hasFullList:!1,internalValue:(null==i?void 0:i.label)||"",isFocused:!1}),p=o.filter(({label:e})=>n.normalizeString(e).includes(n.normalizeString(c))),h=Boolean(c.length>1&&!d)?p:o,g=(e="")=>{e||s(null),f({hasFullList:!1,internalValue:e})};return t.useEffect(()=>{(null==i?void 0:i.label)?g(i.label):f({internalValue:""})},[i]),e.jsx(Tl,Object.assign({focused:u,isAutocomplete:!0,native:a,option:i,options:a?o:h,onBlur:()=>f({hasFullList:!1,isFocused:!1}),onChange:g,onFocus:()=>{f({hasFullList:!0,isFocused:!0})},onSelect:e=>s(e),value:c},l))},exports.BagossFont=N,exports.Block=({children:t,picture:r,isCompact:n,isRounded:o})=>e.jsxs(Oc,{isRounded:o,"data-test":"block",children:[r&&e.jsx(Cc,{picture:r,"data-test":"picture"}),e.jsx(wc,{isCompact:n,children:e.jsx(e.Fragment,{children:t})})]}),exports.BlockCheckIcon=({onClick:t,image:r,checked:n,name:o,text:a,dataTest:i})=>{const s=`checkbox-input-label-${a}`;return e.jsxs(Vc,{checked:n,"data-test":i||`checkbox-button-${a}`,children:[e.jsx(qc,{"aria-labelledby":s,checked:n,name:o,onChange:({target:e})=>t(e.checked),type:"checkbox"}),e.jsx(Yc,{children:e.jsx(e.Fragment,{children:r})}),e.jsx("span",{id:s,children:a})]})},exports.BlockIcon=function({onClick:t,image:r,text:n,name:o,selectedValue:a,dataTest:i,value:s,isContentCentered:l=!1}){const d=a===s,c=`radio-input-label-${n}`;return e.jsxs(Hc,{"data-test":i||`radio-button-${n}`,isActive:d,isContentCentered:l,children:[e.jsx(qc,{"aria-labelledby":c,checked:d,name:o,onChange:()=>t(s),type:"radio"}),e.jsx("span",{id:c,children:n}),e.jsx(e.Fragment,{children:r})]})},exports.Burger=({isOpen:t,isSmall:r=!1,onClick:n,color:o})=>e.jsxs(Ec,{"data-test":"burger",onClick:n,isOpen:t,isSmall:r,color:o,children:[e.jsx(Sc,{}),e.jsx(Sc,{}),e.jsx(Sc,{})]}),exports.Button=t=>{var{appearance:r=exports.ButtonAppearance.PRIMARY,icon:n,iconPosition:o=exports.IconPosition.RIGHT,label:a,rounded:i=!1,size:s=exports.ButtonSizes.LARGE,theme:l=exports.ButtonTheme.BLACK}=t,d=Xs(t,["appearance","icon","iconPosition","label","rounded","size","theme"]);return e.jsxs(Bc,Object.assign({appearance:r,"aria-label":a,icon:n,iconPosition:o,rounded:i,size:s,theme:l},d,{children:[n&&e.jsx(_c,{appearance:r,iconPosition:o,size:s,theme:l,children:e.jsx(e.Fragment,{children:n})}),!i&&e.jsx(Rc,{"data-test":"label",children:a})]}))},exports.ButtonRadio=Uc,exports.ButtonRadioGroup=({label:t,name:r,onChange:n,options:o,value:a})=>e.jsx(Wc,{role:"radiogroup","aria-label":t,children:o.map(t=>e.jsx(Uc,{isChecked:a===t.value,name:r,option:t,onClick:()=>n(t)},`radio-option-${t.value}`))}),exports.Card=({after:r,children:n,closeToggleAriaLabel:o="Cacher le contenu",dataTest:a="card-layout",disabled:i=!1,hasToggle:s=!1,headerIcon:l,headerIconColor:d=E.dark.base,headerIconSize:c=exports.CardHeaderIconSize.MEDIUM,isOpen:u,label:f,labelAfter:p,noPadding:h,onClose:g,onOpen:m,openToggleAriaLabel:b="Afficher le contenu",toggleLabel:y,tooltip:v})=>{const $=J(),[x,w]=t.useState(u||!1),C=void 0!==u,O=C&&s&&!g,k=C&&s&&!m;return t.useEffect(()=>{C&&w(u)},[u,C]),e.jsxs(Pf,{"data-test":a,disabled:i,id:f,children:[e.jsxs(Af,{disabled:i,hasToggle:s,onClick:s&&!i?()=>x?(C&&!O||w(!1),void(g&&g())):(C&&!k||w(!0),void(m&&m())):void 0,children:[e.jsxs(Mf,{"data-test":"title-container",children:[l&&e.jsx(Lf,{headerIconColor:d,headerIconSize:c,children:e.jsx(e.Fragment,{children:l})}),e.jsx("div",{dangerouslySetInnerHTML:{__html:f},"data-test":`title-${a}`}),p&&e.jsx(Df,{children:e.jsx(e.Fragment,{children:p})}),v&&e.jsx(Tf,{onClick:e=>e.stopPropagation(),children:e.jsx(If,{placement:"auto",tooltip:v,children:e.jsx(Ff,{children:e.jsx(Zc,{fill:E.grey.base})})})})]}),(r||s)&&e.jsxs(Rf,{children:[r&&e.jsx(Tf,{onClick:e=>e.stopPropagation(),children:e.jsx(e.Fragment,{children:r})}),s&&e.jsxs(Bf,{children:[!$&&y&&e.jsx("span",{"data-test":"toggle-label",children:y}),e.jsx(Gf,{"aria-controls":f,"aria-expanded":x,"aria-label":x?o:y||b})]})]})]}),e.jsx(e.Fragment,{children:(!s&&n||s&&x)&&e.jsx(_f,{"data-test":"body-card",noPadding:h,children:e.jsx(e.Fragment,{children:n})})})]})},exports.Checkbox=({checkboxSize:t=exports.CheckboxSize.SMALL,checked:r,children:o,dataTest:a,disabled:i,id:s,indeterminate:l=!1,label:d,name:c,onChange:u})=>{const f=`${s}-${c}`;return e.jsxs(Wf,{checkboxSize:t,"data-test":a||`checkbox-${c}`,children:[e.jsx(Yf,Object.assign({},Boolean(o)&&{"aria-label":d},{checkboxSize:t,checked:r,"data-test":a?`checkbox-${a}`:"checkbox-input",disabled:i,id:f,indeterminate:l,name:c,onChange:({target:e})=>u(e.checked),type:"checkbox"})),e.jsx(Hf,{checkboxSize:t,"data-test":a?`checkbox-label-${a}`:"checkbox-label",hasLabel:n.isNotEmpty(d),htmlFor:f,children:e.jsx(e.Fragment,{children:o||e.jsx(qf,{dangerouslySetInnerHTML:{__html:d}})})})]})},exports.ClickableTag=({appearance:r=eh.BUSINESS,closeAriaLabel:n="Supprimer",color:o=th.TERRACOTA,dataTest:a="basic-tag",icon:i,labels:s,numberOfTags:l=s.length,showCloseIcon:d,onClick:c})=>{const u=s.slice(0,l);return e.jsx(t.Fragment,{children:u.map((t,s)=>e.jsxs(ah,{appearance:r,color:o,close:d,click:!!c,"data-test":a,icon:!!i,onClick:c,children:[i&&e.jsx(sh,{color:o,"data-test":"tag-icon",children:e.jsx(e.Fragment,{children:i})}),t,d&&e.jsx(ih,{"aria-label":n,appearance:r,"data-test":"tag-closer",children:e.jsx(Up,{})})]},s))})},exports.Container=I,exports.DateInput=Zl,exports.DatePicker=({date:n,dataTest:o,disabled:a,disabledDays:i,error:s,formatter:l="EEEE dd MMMM yyyy",label:d,locale:c,onDateChange:u,zIndex:f})=>{const p=t.useRef(null),[h,g]=t.useReducer((e,t)=>Object.assign(Object.assign({},e),t),{isFocused:!1,isOpen:!1}),{isOpen:m,isFocused:b}=h;return x(p,({target:e})=>{var t;(null===(t=p.current)||void 0===t?void 0:t.contains(e))||g({isFocused:!1,isOpen:!1})}),e.jsx(St,{ref:p,isOpen:m,"data-test":o||"date-picker-wrapper",onClick:()=>{b||a||g({isFocused:!0,isOpen:!0})},children:e.jsx(he,{disabled:a,label:d,error:s,zIndex:f,focused:b,value:n&&r.format(n,l,{locale:c}),field:m?e.jsx(kt,{date:n,disabledDays:i,locale:c,onDateChange:e=>{u(e||null),g({isFocused:!1,isOpen:!1})}}):e.jsx(t.Fragment,{})})})},exports.EmailInput=fl,exports.Energy=({carbonFootprint:t,carbonFootprintLevel:r,consumption:n,consumptionLevel:o,EPCLevel:a,textContent:i})=>{const s=1===a?0:25*(a-1)+10*(a-2),{blankEPC:l,carbonFootprintLegend:d,carbonFootprintTitle:c,carbonFootprintUnit:u,consumptionLegend:f,consumptionTitle:p,consumptionUnit:h,EPCLegend:g,EPCTitle:m}=i;return t&&n?e.jsxs("div",{children:[e.jsx(_t,{children:m}),e.jsxs(Rt,{"aria-label":m,role:"document",children:[e.jsx("div",{"aria-label":g,role:"group",tabIndex:0,children:e.jsx(zt,{children:e.jsx(Gt,{background:At(a),isMainScore:!0,letterSize:25,pos:s,children:exports.EnergyLevel[a]})})}),e.jsxs(qt,{children:[e.jsxs(Ht,{"aria-label":f,role:"group",tabIndex:0,children:[e.jsx(Ut,{children:p}),e.jsxs(Wt,{children:[e.jsx(Yt,{children:n}),e.jsx(Gt,{background:At(o),children:exports.EnergyLevel[o]})]}),e.jsx(Vt,{children:h})]}),e.jsxs(Ht,{"aria-label":d,role:"group",tabIndex:0,children:[e.jsx(Ut,{children:c}),e.jsxs(Wt,{children:[e.jsx(Yt,{children:t}),e.jsx(Gt,{background:Tt(r),children:exports.EnergyLevel[r]})]}),e.jsx(Vt,{children:u})]})]})]})]}):e.jsx(Bt,{children:l})},exports.ErrorLayout=Kt,exports.Fieldset=({label:t,active:r=!1,error:n=!1,children:o})=>e.jsxs(Zf,{"data-test":"fieldset-layout",active:r,error:n,children:[e.jsx(Vf,{"data-test":"fieldset-label",children:t}),e.jsx(de,{isVisible:!0,children:e.jsx("span",{dangerouslySetInnerHTML:{__html:t}})}),e.jsx(Kf,{children:e.jsx(e.Fragment,{children:o})})]}),exports.GmapsAutocomplete=$d,exports.GmapsGeocode=xd,exports.H1=({title:t,color:r=qd,isAlternative:n=Yd})=>e.jsx(Op,{isAlternative:n,color:r,dangerouslySetInnerHTML:{__html:t}}),exports.H2=({title:t,color:r=qd,isAlternative:n=Yd})=>e.jsx(kp,{isAlternative:n,color:r,dangerouslySetInnerHTML:{__html:t}}),exports.H3=({title:t,color:r=qd,isAlternative:n=!0})=>e.jsx(Sp,{isAlternative:n,color:r,dangerouslySetInnerHTML:{__html:t}}),exports.H4=({title:t,color:r=qd,isAlternative:n=Yd})=>e.jsx(Ep,{isAlternative:n,color:r,dangerouslySetInnerHTML:{__html:t}}),exports.H5=ic,exports.H6=({title:t,color:r=qd,isAlternative:n=!0})=>e.jsx(jp,{isAlternative:n,color:r,dangerouslySetInnerHTML:{__html:t}}),exports.Input=he,exports.InputLoading=()=>e.jsx(mp,{"data-test":"input-loading"}),exports.InterFont=P,exports.Line=T,exports.Loader=Jf,exports.Logo=()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 178 41",children:e.jsx("g",{fill:"currentColor",children:e.jsx("path",{d:"M146.119.062 145.337 0l-.68.02a.538.538 0 0 0-.098.012.403.403 0 0 1-.067.01c-.535.04-1.071.082-1.606.164-2.636.474-4.902 1.668-6.693 3.625-2.657 2.883-3.707 6.302-3.151 10.173a11.458 11.458 0 0 0 3.645 6.94c2.904 2.699 6.364 3.749 10.297 3.152a11.458 11.458 0 0 0 6.797-3.584c2.903-3.089 3.933-6.775 3.109-10.915-.576-2.78-1.997-5.066-4.201-6.858a11.906 11.906 0 0 0-6.57-2.677zm5.087 12.192c-.062 3.357-2.842 6.096-6.219 6.075h-.124c-3.439-.082-6.158-2.924-6.075-6.343.082-3.44 2.924-6.158 6.343-6.075 3.439.082 6.158 2.924 6.075 6.343zM3.671 1.274l-3.32.003V24.59h6.301v-5.87H6.9c.722 0 1.441.003 2.16.005 1.434.005 2.866.01 4.307-.004 1.38 0 2.76-.206 4.057-.639 2.471-.824 4.16-2.45 4.881-4.984.577-2.018.577-4.14.02-6.158-.617-2.224-1.997-3.789-4.118-4.716a11.63 11.63 0 0 0-4.572-.927c-3.321-.03-6.642-.027-9.963-.023zM6.837 13.49h-.185V6.487H12.645c.577 0 1.153.103 1.71.31 1.256.473 1.894 1.4 2.038 2.718.083.7-.02 1.441-.309 2.1-.432.948-1.194 1.463-2.183 1.71a5.297 5.297 0 0 1-1.277.165c-1.29.013-2.57.009-3.854.004-.643-.002-1.287-.004-1.933-.004zM166.2 0c.268.02.536.041.783.062a11.863 11.863 0 0 1 7.002 3.068c2.08 1.875 3.398 4.222 3.831 6.982.597 3.748-.33 7.105-2.822 9.988a11.59 11.59 0 0 1-6.775 3.934c-4.058.762-7.621-.288-10.689-3.048a1.715 1.715 0 0 1-.188-.183h-.001v-.001a7.661 7.661 0 0 0-.099-.104 14.88 14.88 0 0 0 1.73-3.295 15.86 15.86 0 0 0 .864-3.605c.557 1.792 1.648 3.13 3.337 3.934a6.011 6.011 0 0 0 5.148.082c3.131-1.359 4.573-5.025 3.193-8.155a6.2 6.2 0 0 0-4.778-3.645c-3.213-.495-6.24 1.606-6.961 4.572a14.7 14.7 0 0 0-2.636-6.961c.206-.206.411-.412.638-.598 1.874-1.585 4.098-2.595 6.487-2.903a19.9 19.9 0 0 1 1.077-.08l.056-.003c.019 0 .037-.004.057-.009a.379.379 0 0 1 .087-.011zM47.677 24.57l-4.408-7.888c.007-.007.014-.012.019-.015l.005-.004c0-.002-.007-.002-.024-.002l.124-.082c1.792-1.133 2.924-2.719 3.398-4.778a10.168 10.168 0 0 0-.02-4.387c-.515-2.492-1.957-4.263-4.325-5.252-1.524-.638-3.151-.885-4.778-.885-2.856-.014-5.712-.01-8.568-.005-1.428.003-2.856.005-4.283.005h-.186v23.251h6.261v-6.384c0-.165.041-.227.227-.227h6.57a.276.276 0 0 1 .288.165c1.153 2.1 2.286 4.202 3.418 6.323.041.123.144.185.247.165h5.829zM31.077 13.2h-.144l-.02-.206V6.714c0-.165.04-.227.226-.227h5.931c.618 0 1.236.103 1.813.33 1.153.453 1.73 1.318 1.874 2.512.082.598.02 1.216-.165 1.792-.33 1.03-1.112 1.648-2.142 1.895a5.036 5.036 0 0 1-1.359.185c-1.333.014-2.674.01-4.013.005-.668-.002-1.336-.005-2-.005zM99.781 1.277h13.016c1.73.02 3.398.268 5.005.968 2.286 1.009 3.645 2.78 4.139 5.21.33 1.483.33 3.007-.02 4.49-.474 1.977-1.607 3.501-3.296 4.613l-.226.144 4.428 7.909h-6.014c-.123.02-.226-.062-.268-.165l-.002-.005a1758.215 1758.215 0 0 1-3.396-6.318c-.041-.103-.144-.164-.267-.164h-6.591c-.165 0-.206.04-.206.206v6.425h-6.26zm6.282 11.924h.185c.659 0 1.318.003 1.977.005 1.318.004 2.636.009 3.954-.005.474 0 .948-.062 1.401-.185.947-.227 1.668-.742 2.08-1.648.268-.638.35-1.338.247-2.039-.124-1.07-.597-1.894-1.586-2.389a4.656 4.656 0 0 0-2.1-.453h-5.952c-.165 0-.206.042-.206.227v6.281zm-32.87-.72c0-6.838-5.519-12.378-12.356-12.399C54.06.062 48.542 5.5 48.439 12.274v.165c0 6.838 5.52 12.378 12.357 12.398 6.837 0 12.398-5.52 12.398-12.357zm-12.418 6.343a6.324 6.324 0 0 1-6.281-6.364v-.062c.02-3.48 2.883-6.281 6.363-6.26 3.48 0 6.302 2.862 6.282 6.404a6.324 6.324 0 0 1-6.364 6.282zm20.986-.103v5.849h-6.26V1.277h12.933c1.647 0 3.254.247 4.778.885 2.368 1.01 3.81 2.801 4.345 5.314.391 1.75.37 3.583-.082 5.334-.66 2.574-2.266 4.284-4.758 5.19a10.28 10.28 0 0 1-3.418.659c-1.607.041-3.193.041-4.799.041h-2.533zm0-8.733v3.296c0 .185.041.226.227.226 1.894 0 3.789 0 5.684-.02.473 0 .926-.062 1.38-.165 1.132-.289 1.977-.948 2.327-2.1.247-.825.247-1.69 0-2.513s-.824-1.483-1.607-1.813a5 5 0 0 0-1.977-.412h-5.807c-.186 0-.206.062-.206.227-.021 1.091-.021 2.183-.021 3.274zm49.036-8.711h-6.261V24.57h6.261zM14.54 32.766h1.277a3.277 3.277 0 0 0-.371-1.174 3.156 3.156 0 0 0-.762-.885 3.213 3.213 0 0 0-1.05-.556 4.12 4.12 0 0 0-1.257-.186c-.72 0-1.359.165-1.936.515-.556.35-1.009.844-1.338 1.483-.33.638-.494 1.421-.494 2.307 0 .885.164 1.668.494 2.306.33.639.762 1.133 1.338 1.483.557.35 1.216.515 1.936.515.453 0 .886-.062 1.277-.206s.742-.33 1.05-.577c.289-.247.557-.535.742-.885.185-.35.33-.721.391-1.133H14.56a1.934 1.934 0 0 1-.288.7c-.144.206-.288.37-.494.515a2.472 2.472 0 0 1-.66.33 3.09 3.09 0 0 1-.761.103c-.494 0-.906-.124-1.298-.371-.39-.247-.68-.597-.906-1.071-.226-.474-.33-1.05-.33-1.73 0-.68.104-1.256.33-1.73.227-.474.536-.824.906-1.07.392-.248.824-.372 1.298-.372.268 0 .515.021.762.103.247.083.453.186.659.33.206.144.37.33.494.535.124.206.227.453.268.721zM1.05 38.347c.31.144.68.227 1.071.227.35 0 .639-.062.906-.165a2.27 2.27 0 0 0 .618-.391c.144-.165.268-.31.35-.474h.042v.865H5.23v-4.18c0-.454-.062-.824-.226-1.113a1.907 1.907 0 0 0-.618-.659 2.288 2.288 0 0 0-.804-.33 3.798 3.798 0 0 0-1.894.083 2.65 2.65 0 0 0-.906.515c-.268.226-.453.535-.598.927l1.154.267c.103-.206.267-.411.494-.597.226-.185.556-.268.968-.268s.7.103.906.289c.206.185.309.473.309.824v.02c0 .165-.062.268-.165.33s-.288.123-.515.144c-.134.012-.298.032-.486.054l-.42.049a6.117 6.117 0 0 0-.885.165c-.289.082-.556.185-.783.308s-.412.289-.556.536c-.144.247-.206.535-.206.885 0 .412.082.763.288 1.05.186.269.453.495.762.64zm2.204-.968c-.227.144-.536.206-.865.206-.35 0-.618-.103-.844-.247-.227-.144-.33-.37-.33-.68 0-.226.041-.411.165-.535.123-.144.288-.247.474-.309.185-.062.411-.123.638-.144.088 0 .19-.015.309-.032l.062-.01c.144-.02.288-.04.453-.061a5 5 0 0 1 .185-.042c.09-.019.172-.036.247-.06a.67.67 0 0 0 .247-.125v.804c0 .247-.061.473-.185.7s-.309.412-.556.535zm15.24 1.195c-.391 0-.762-.083-1.07-.227s-.578-.37-.763-.638a1.906 1.906 0 0 1-.288-1.05c0-.35.062-.639.206-.886s.33-.412.556-.536c.226-.123.494-.226.782-.308s.577-.124.886-.165l.42-.049c.188-.022.351-.042.486-.054.227-.02.412-.083.515-.144s.165-.165.165-.33v-.02c0-.35-.103-.639-.31-.824-.205-.186-.493-.289-.885-.289s-.741.083-.968.268a1.63 1.63 0 0 0-.494.597l-1.153-.267c.144-.392.33-.7.597-.927a2.65 2.65 0 0 1 .906-.515 3.798 3.798 0 0 1 1.895-.082c.288.062.556.165.803.33.247.164.453.37.597.658.144.289.247.66.247 1.112v4.181H20.43v-.865h-.041c-.083.165-.206.309-.35.474-.165.144-.371.288-.618.391a2.65 2.65 0 0 1-.927.165zm.268-.989c.33 0 .638-.062.865-.206.247-.123.432-.309.556-.535s.185-.453.185-.7v-.804a.67.67 0 0 1-.247.124c-.075.025-.157.042-.247.061-.059.013-.12.026-.185.042-.165.02-.31.041-.453.062l-.062.009c-.118.017-.221.032-.31.032-.246.02-.452.082-.658.144-.186.062-.35.165-.474.31-.123.123-.165.308-.165.535 0 .309.103.535.33.68.226.143.515.246.865.246zm7.496-3.727 1.112-.186c-.123-.494-.37-.885-.782-1.174-.391-.288-.927-.432-1.607-.432-.473 0-.885.062-1.256.226-.37.165-.659.371-.865.66a1.555 1.555 0 0 0-.309.967c0 .453.144.824.412 1.113.268.288.72.514 1.298.638l1.07.226c.289.083.515.186.66.31.164.123.226.288.226.494 0 .247-.123.453-.37.618-.248.164-.577.247-.969.247-.35 0-.659-.062-.885-.227-.227-.165-.37-.391-.453-.7l-1.195.185c.103.536.371.968.824 1.277.453.31 1.03.453 1.73.453.494 0 .947-.082 1.339-.247.391-.185.68-.412.906-.7.226-.288.33-.639.33-1.01 0-.452-.145-.802-.433-1.09-.288-.29-.721-.495-1.298-.619l-.988-.226c-.35-.083-.597-.186-.762-.31a.702.702 0 0 1-.227-.514c0-.247.124-.432.35-.597.227-.144.515-.227.865-.227.268 0 .453.041.639.124.185.082.309.185.412.309.103.144.185.267.226.412zm3.83 4.716c-.39 0-.761-.083-1.07-.227a1.926 1.926 0 0 1-.762-.638 1.906 1.906 0 0 1-.288-1.05c0-.35.061-.639.206-.886.144-.247.33-.412.556-.536.226-.123.494-.226.782-.308s.577-.124.886-.165l.42-.049c.188-.022.351-.042.486-.054a1.29 1.29 0 0 0 .515-.144c.103-.062.165-.165.165-.33v-.02c0-.35-.103-.639-.31-.824-.205-.186-.494-.289-.906-.289s-.74.083-.968.268a1.863 1.863 0 0 0-.494.597l-1.153-.267c.144-.392.33-.7.597-.927.268-.227.577-.412.906-.515s.7-.165 1.092-.165c.247 0 .515.02.803.083s.556.165.803.33c.247.164.453.37.597.658.145.289.227.66.227 1.112v4.181h-1.194v-.865h-.042c-.082.165-.206.309-.35.474a2.27 2.27 0 0 1-.618.391 2.264 2.264 0 0 1-.885.165zm.269-.989c.33 0 .638-.062.865-.206.247-.123.432-.309.556-.535.123-.227.185-.453.185-.7v-.804a.671.671 0 0 1-.247.124c-.075.025-.157.042-.247.061-.059.013-.12.026-.186.042-.164.02-.309.041-.453.062l-.061.009a2.288 2.288 0 0 1-.31.032c-.226.02-.452.082-.638.144-.185.062-.35.165-.474.31-.123.123-.185.308-.185.535 0 .309.103.535.33.68.226.164.514.246.865.246zm6.755.845 2.286-6.302H38.08l-1.586 4.84h-.062l-1.586-4.84h-1.318l2.266 6.302zm5.293.123c-.598 0-1.113-.144-1.545-.412a2.751 2.751 0 0 1-1.03-1.132c-.247-.495-.37-1.05-.37-1.71s.123-1.215.37-1.71c.247-.493.577-.864 1.03-1.132.432-.268.947-.412 1.545-.412.597 0 1.112.144 1.544.412.433.268.783.639 1.03 1.133s.37 1.05.37 1.71-.123 1.214-.37 1.709c-.247.494-.577.865-1.03 1.132a2.932 2.932 0 0 1-1.544.412zm0-1.03c.39 0 .7-.103.947-.308a1.88 1.88 0 0 0 .556-.804c.124-.33.185-.7.185-1.112s-.061-.762-.185-1.112a1.764 1.764 0 0 0-.556-.803c-.247-.206-.577-.309-.947-.309s-.7.103-.948.309c-.247.206-.432.474-.556.803s-.185.7-.185 1.112.062.783.185 1.112.309.598.556.804c.247.205.556.308.948.308zm7.29.618c.433.268.947.412 1.565.412a3.76 3.76 0 0 0 1.318-.226c.371-.186.68-.433.886-.762.206-.33.35-.68.391-1.092h-1.194a1.356 1.356 0 0 1-.268.577 1.191 1.191 0 0 1-.474.37 1.68 1.68 0 0 1-.638.124c-.35 0-.66-.082-.906-.268-.268-.185-.453-.453-.598-.782-.144-.35-.206-.742-.206-1.195s.062-.844.206-1.174c.145-.33.35-.576.598-.762.267-.185.556-.267.906-.267.391 0 .7.123.927.33.247.205.39.473.453.761h1.194a2.202 2.202 0 0 0-.412-1.112 2.479 2.479 0 0 0-.906-.741c-.37-.186-.803-.268-1.277-.268-.597 0-1.112.124-1.544.412-.433.288-.762.659-1.01 1.153-.247.494-.37 1.071-.37 1.689s.123 1.174.35 1.668c.226.494.577.886 1.01 1.153zm7.538.412c-.598 0-1.112-.144-1.545-.412a2.751 2.751 0 0 1-1.03-1.132c-.247-.495-.37-1.05-.37-1.71s.123-1.215.37-1.71c.247-.493.577-.864 1.03-1.132.433-.268.947-.412 1.545-.412.597 0 1.112.144 1.544.412.433.268.783.639 1.03 1.133s.37 1.05.37 1.71-.123 1.214-.37 1.709c-.247.494-.577.865-1.03 1.132a2.985 2.985 0 0 1-1.544.412zm0-1.03c.391 0 .7-.103.947-.308.247-.206.432-.474.556-.804s.186-.7.186-1.112-.062-.762-.186-1.112-.309-.597-.556-.803c-.247-.206-.577-.309-.947-.309s-.7.103-.948.309a1.88 1.88 0 0 0-.556.803c-.123.33-.185.7-.185 1.112s.062.783.185 1.112c.124.33.31.598.556.804.248.205.556.308.948.308zm3.707-5.395v6.302l1.235.02v-3.872c0-.267.062-.514.186-.74.123-.228.268-.392.473-.516.186-.123.412-.185.639-.185.33 0 .618.103.824.309.206.206.309.473.309.824v4.18h1.215v-4.016c0-.391.103-.7.33-.947.226-.247.535-.37.926-.37.309 0 .597.102.824.288.226.185.35.494.35.926v4.099h1.235v-4.222c0-.721-.164-1.277-.535-1.627s-.824-.536-1.4-.536c-.454 0-.845.103-1.174.31a1.8 1.8 0 0 0-.721.802h-.062a1.885 1.885 0 0 0-.638-.803c-.268-.185-.639-.288-1.05-.288s-.783.103-1.072.288a1.558 1.558 0 0 0-.638.803h-.082v-1.03zm9.618 8.65v-8.65h1.194v1.009h.103c.062-.124.165-.289.309-.453.123-.165.309-.33.556-.453.226-.124.556-.186.947-.186.515 0 .968.124 1.36.392.39.267.72.618.947 1.112.226.494.35 1.07.35 1.75s-.103 1.257-.33 1.75c-.226.495-.535.866-.926 1.113a2.504 2.504 0 0 1-1.36.391c-.39 0-.7-.061-.926-.185a2.164 2.164 0 0 1-.577-.453 2.217 2.217 0 0 1-.309-.453h-.082v3.315zm1.194-5.5c0 .433.062.824.185 1.154s.31.597.556.783c.248.185.536.288.886.288s.68-.103.927-.288.432-.454.556-.804c.123-.33.185-.72.185-1.132s-.062-.783-.185-1.112c-.124-.33-.31-.598-.556-.783-.247-.185-.556-.288-.927-.288s-.66.082-.906.267a1.638 1.638 0 0 0-.556.762c-.103.33-.165.721-.165 1.154zm6.096 3.07c.309.143.68.226 1.07.226.351 0 .66-.062.948-.165a2.27 2.27 0 0 0 .618-.391c.144-.165.268-.31.35-.474h.041v.865h1.195v-4.18c0-.454-.062-.824-.227-1.113a1.906 1.906 0 0 0-.617-.659c-.248-.165-.515-.268-.804-.33a3.79 3.79 0 0 0-1.894.083 2.65 2.65 0 0 0-.907.515c-.267.226-.453.535-.597.927l1.154.267c.102-.206.267-.411.494-.597.226-.185.576-.268.968-.268s.68.083.885.289c.206.185.31.473.31.824v.02c0 .165-.063.268-.166.33a1.29 1.29 0 0 1-.514.144c-.16.013-.345.035-.556.06l-.371.043c-.31.041-.597.103-.886.165a3.876 3.876 0 0 0-.782.308 1.385 1.385 0 0 0-.556.536c-.145.247-.206.535-.206.885 0 .412.103.783.288 1.05.185.269.453.495.762.64zm2.204-.969c-.247.144-.536.206-.865.206a1.59 1.59 0 0 1-.865-.247c-.227-.144-.33-.37-.33-.68 0-.226.062-.411.186-.535a.954.954 0 0 1 .473-.309c.186-.062.412-.123.639-.144.088 0 .19-.015.309-.032l.061-.01c.145-.02.289-.04.453-.061.065-.016.127-.03.186-.042.09-.019.172-.036.247-.06a.671.671 0 0 0 .247-.125v.804c0 .247-.062.473-.185.7a1.272 1.272 0 0 1-.556.535zm4.263-2.698v3.728h-1.236v-6.281h1.174v1.03h.082c.144-.33.371-.598.68-.804.309-.206.7-.309 1.174-.309.432 0 .803.083 1.133.268.329.185.576.453.74.803.186.35.269.783.269 1.298v3.995h-1.236v-3.851c0-.453-.124-.803-.35-1.071-.227-.247-.556-.391-.989-.391-.288 0-.535.061-.762.185a1.291 1.291 0 0 0-.515.535c-.123.227-.164.536-.164.865zm5.128 6.055c.144.02.309.041.494.041.35.021.639 0 .886-.123.247-.124.473-.268.659-.515.185-.247.33-.515.453-.844l2.595-7.126h-1.318l-1.586 4.88h-.062l-1.586-4.88H88.66l2.307 6.364-.144.412c-.103.267-.206.473-.35.597-.145.103-.289.185-.474.185-.186 0-.37-.02-.597-.082l-.289 1.009c.062.02.186.062.33.082z"})})}),exports.NumberInput=r=>{var{focused:n,isFloat:o=!1,onBlur:a,onChange:i,onFocus:s,value:l}=r,d=Xs(r,["focused","isFloat","onBlur","onChange","onFocus","value"]);const[c,u]=t.useState(Boolean(n)),[f,p]=t.useState(l?l.toString():"");return t.useEffect(()=>{if(null===l)return p("");const e=null==l?void 0:l.toString();e&&e!==f&&p(e)},[l]),e.jsx(he,Object.assign({},d,{onFocus:()=>{u(!0),s&&s()},onBlur:()=>{u(!1),p(((e,t)=>{const r=bp(e),n=t?parseFloat(r):parseInt(r,10);return isNaN(n)?"":n.toString()})(f,o)),a&&a()},onChange:e=>{const t=bp(e,!0),r=t.endsWith(".");if(o&&vp.test(t)||!o&&$p.test(t)){if(p(t),r)return;if(""===t)return i(null);const e=o?parseFloat(t):parseInt(t,10);isNaN(e)||l===e||i(e)}},value:c?f:yp(f,o)}))},exports.OfferSignatoryForm=({offerSignatoryInfo:r,errors:o,customErrorMessages:a={},updateOfferSignatory:i})=>{const{dateOfBirth:s,placeOfBirth:l,street:d,streetNumber:c,city:u,postCode:f,maritalStatus:p}=r,[h,g]=t.useState(n.listToString([c,d,f,u])),m=!!o.street||!!o.city||!!o.postCode,b=Object.assign(Object.assign({},Sd),a);return e.jsxs("div",{children:[e.jsxs(T,{children:[e.jsx(xd,{dataTest:"offer-signatory-address",disabled:!1,label:Od,value:h,onChange:e=>{g(e),e||i(Object.assign(Object.assign({},r),{city:"",postCode:"",street:"",streetNumber:""}))},onSelect:e=>{const{city:t,postalCode:o,street:a,streetNumber:s}=n.getFormattedAddressComponent(e);i(Object.assign(Object.assign({},r),{city:(null==t?void 0:t.long_name)||"",postCode:(null==o?void 0:o.long_name)||"",street:(null==a?void 0:a.long_name)||"",streetNumber:(null==s?void 0:s.long_name)||""}))},error:m,country:""}),m&&e.jsx(Kt,{dataTest:"address",children:b.address})]}),e.jsx(T,{children:e.jsxs(Y,{children:[e.jsxs("div",{children:[e.jsx(Zl,{dataTest:"offer-signatory-birth-date",label:wd,disabled:!1,error:!!o.dateOfBirth,onChange:e=>e&&i(Object.assign(Object.assign({},r),{dateOfBirth:new Date(e)})),value:s?s.toISOString():""}),o.dateOfBirth&&e.jsx(Kt,{dataTest:"dateOfBirth",children:b.dateOfBirth})]}),e.jsxs("div",{children:[e.jsx(he,{dataTest:"offer-signatory-birth-place",label:Cd,error:!!o.placeOfBirth,disabled:!1,onChange:e=>i(Object.assign(Object.assign({},r),{placeOfBirth:e})),value:l}),o.placeOfBirth&&e.jsx(Kt,{dataTest:"placeOfBirth",children:b.placeOfBirth})]})]})}),e.jsx(T,{children:e.jsxs(Y,{children:[e.jsxs("div",{children:[e.jsx(Tl,{dataTest:"offer-signatory-marital-status",disabled:!1,error:!!o.maritalStatus,label:kd,onSelect:({value:e})=>i(Object.assign(Object.assign({},r),{maritalStatus:e})),option:Ed.find(({value:e})=>e===p)||null,options:Ed}),o.maritalStatus&&e.jsx(Kt,{dataTest:"maritalStatus",children:b.maritalStatus})]}),e.jsx("div",{})]})})]})},exports.OfferSignatoryFormSchema=jd,exports.Option=xl,exports.Phone=Ks,exports.PhoneAndFlag=({color:r=E.dark.base,errorMessage:n,onError:o,phone:a})=>{const i=a?Ul(a):null;return t.useEffect(()=>{!i&&o&&o()},[o,i]),i?e.jsx(Id,{children:e.jsxs(t.Fragment,{children:[e.jsx(Nd,{alt:i.country,"data-test":"flag",src:`https://cdn.proprioo.fr/assets/flags/${i.country}.svg`}),e.jsx(Pd,{color:r,"data-test":"phone",children:zl(i.number)})]})}):e.jsx(Id,{children:e.jsx(Ad,{"data-test":"incorrect-phone",children:n})})},exports.PhoneInput=({label:t,value:r,onChange:n,dataTest:o,disabled:a=!1,error:i=!1,phoneWithFlags:s=!1,required:l=!1})=>e.jsx(he,{dataTest:o||"customer-phone",name:"phone",type:exports.InputType.TEL,disabled:a,error:i,label:t,value:r,onChange:n,inputElement:Ks,phoneWithFlags:s,required:l}),exports.PlacesAutocomplete=dd,exports.Radio=({name:t,label:r,id:n,isChecked:o,onChange:a,value:i,dataTest:s})=>{const l=`${n}-${t}`;return e.jsxs(xp,{"data-test":s||`radio-${t}`,children:[e.jsx(Cp,{type:"radio",id:l,name:t,value:i,onChange:e=>a(e),checked:o}),e.jsx(wp,{htmlFor:l,children:r})]})},exports.Row=Y,exports.Select=Tl,exports.SingleMonth=t=>e.jsx(Et,{children:e.jsx(kt,Object.assign({},t))}),exports.Slider=t=>{const{decimals:r=0,disabled:n=!1,value:o=0,min:a=0,max:i=100,step:s=1,leftColor:l=E.terracota.base,leftLabel:d="",rightColor:c=E.terracota.base20,rightLabel:u="",onChange:f,showLeft:p=!0,showRight:h=!0,showPercentageSign:g=!0,thumbColor:m=E.terracota.base,dataTestSliderWrapper:b="slider-wrapper",dataTestSliderInput:y="slider-input"}=t;return e.jsxs(wh,{"data-test":b,children:[p&&e.jsxs(Oh,{children:[e.jsx(kh,{children:d}),e.jsx(Sh,{children:`${o.toFixed(r)}${g?"%":""}`})]}),e.jsx(Ch,{"data-test":y,disabled:n,type:"range",percent:(o-a)/(i-a)*100,min:a,max:i,step:s,value:Number(o),leftColor:l,rightColor:c,thumbColor:m,onChange:e=>f(Number(e.target.value))}),h&&e.jsxs(Oh,{children:[e.jsx(kh,{children:u}),e.jsx(Sh,{children:`${(i+a-o).toFixed(r)}${g?"%":""}`})]})]})},exports.Subtitle=({text:t,color:r=E.dark.base})=>e.jsx(zp,{"data-test":"subtitle",children:e.jsx(Gp,{color:r,"data-test":"subtitle-label",children:t})}),exports.Tag=({appearance:r=exports.TagAppearance.BUSINESS,closeAriaLabel:n="Supprimer",color:o=exports.TagColorsTypes.TERRACOTA,dataTest:a="basic-tag",icon:i,labels:s,numberOfTags:l=s.length,onClose:d})=>{const c=s.slice(0,l),u=s.slice(l);return e.jsxs(t.Fragment,{children:[c.map((t,s)=>e.jsxs(Vp,{appearance:r,color:o,close:!!d,"data-test":a,icon:!!i,children:[i&&e.jsx(Qp,{color:o,"data-test":"tag-icon",children:e.jsx(e.Fragment,{children:i})}),t,d&&e.jsx(Zp,{"aria-label":n,appearance:r,"data-test":"tag-closer",onClick:d,children:e.jsx(Up,{})})]},s)),Boolean(u.length)&&e.jsxs(Jp,{"data-test":"list-tag",children:[e.jsxs(Vp,{appearance:r,color:o,"data-test":a,icon:!!i,children:[i&&e.jsx(Qp,{color:o,"data-test":"tag-icon",children:e.jsx(e.Fragment,{children:i})}),`+ ${u.length}`]}),e.jsx(Xp,{appearance:r,color:o,children:u.map((t,r)=>e.jsx(Kp,{"data-test":"tag-element",children:t},r))})]})]})},exports.TagBase=Hp,exports.TextToggle=({text:r,dataTest:n="text-toggle",isComment:o=!1,maxLength:a=300,showLessLabel:i="Lire moins",showMoreLabel:s="Lire plus",title:l})=>{const d=(e=>e.split(xh).filter(Boolean).join(" "))(r),c=d.length>a,[u,f]=t.useState(c),p=((e,t)=>{if(e.length<=t||t<0)return e;if(" "===e.charAt(t))return e.slice(0,t).concat("…");const r=e.slice(0,t),[n]=e.slice(t,e.length).split(" ");return r.concat(n).concat("…")})(d,a);return e.jsxs(bh,{"data-test":n,children:[l&&e.jsx(vh,{"data-test":"text-toggle-title",children:`${l} : `}),e.jsx($h,{isComment:o,children:u?p:d}),c&&e.jsx(yh,{isComment:o,hasTitle:Boolean(l),onClick:()=>f(!u),children:u?s:i})]})},exports.Textarea=gh,exports.Toggle=({label:t,id:r,checked:n=!1,disabled:o=!1,name:a,dataTest:i,onChange:s})=>e.jsxs(Bp,{children:[e.jsx(Rp,{checked:n,onChange:e=>{s(e.target.checked)},icons:!1,name:a,id:r,disabled:o,"data-test":i||`toggle-${a}`}),e.jsx(_p,{htmlFor:r,disabled:o,"data-test":"toggle-label",children:t})]}),exports.Tooltip=If,exports.UserForm=({disabledFields:t={},emailSuggestionI18nLabels:r,errorMessages:n={},errors:o,hasLanguagePreferences:a=!1,isEmailSuggestionEnabled:i=!0,labels:s=Fl,phoneWithFlags:l=!1,defaultCountry:d,user:c,userLanguageOptions:u=Dl,updateUser:f})=>{const{email:p,firstName:h,language:g,lastName:m,phone:b}=c,y=Object.assign(Object.assign({},Ll),n);return e.jsxs("div",{children:[e.jsx(T,{children:e.jsxs(Y,{children:[e.jsxs("div",{children:[e.jsx(he,{dataTest:"customer-firstName",name:"first-name",type:exports.InputType.TEXT,disabled:t.firstName,error:!!o.firstName,label:s.firstName,value:h,onChange:e=>f(Object.assign(Object.assign({},c),{firstName:e}),"user.firstName")}),!!o.firstName&&e.jsx(Kt,{dataTest:"invalid-firstName",children:y.firstName})]}),e.jsxs("div",{children:[e.jsx(he,{dataTest:"customer-lastName",name:"last-name",type:exports.InputType.TEXT,disabled:t.lastName,error:!!o.lastName,label:s.lastName,value:m,onChange:e=>f(Object.assign(Object.assign({},c),{lastName:e}),"user.lastName")}),!!o.lastName&&e.jsx(Kt,{dataTest:"invalid-lastName",children:y.lastName})]})]})}),e.jsx(T,{children:e.jsxs(Y,{children:[e.jsxs("div",{children:[e.jsx(fl,{dataTest:"customer-email",name:"email",disabled:t.email,error:!!o.email,label:s.email,isSuggestionEnabled:i,i18nLabels:r,value:p,onChange:e=>f(Object.assign(Object.assign({},c),{email:Ml(e)}),"user.email")}),!!o.email&&e.jsx(Kt,{dataTest:"invalid-email",children:y.email})]}),e.jsxs("div",{children:[e.jsx(he,{dataTest:"customer-phone",name:"phone",type:exports.InputType.TEL,disabled:t.phone,error:!!o.phone,label:s.phone,value:b,onChange:e=>f(Object.assign(Object.assign({},c),{phone:e||null}),"user.phone"),inputElement:Ks,phoneWithFlags:l,defaultCountry:d}),!!o.phone&&e.jsx(Kt,{dataTest:"invalid-phone",children:y.phone})]})]})}),a&&e.jsx(T,{children:e.jsx(Y,{children:e.jsxs("div",{children:[e.jsx(Tl,{dataTest:"customer-language",disabled:t.language,error:!!o.language,label:s.language,onSelect:({value:e})=>{f(Object.assign(Object.assign({},c),{language:e}),"user.language")},option:u.find(({value:e})=>e===g)||null,options:u}),!!o.language&&e.jsx(Kt,{dataTest:"invalid-language",children:y.language})]})})})]})},exports.UserSchema=Hl,exports.breakpoints=C,exports.colors=E,exports.convertPxToRem=j,exports.createAction=K,exports.fonts=A,exports.formatISODate=Yl,exports.formatInternationalPhone=zl,exports.formatPhoneNumber=e=>Hs(e,qs),exports.geocodeByAddress=ld.geocodeByAddress,exports.getCarbonFootprintLevel=Ft,exports.getConsumptionLevel=Dt,exports.getEPCLevel=Lt,exports.getEPCLevels=(e,t,r)=>{const n=Dt(t,r),o=Ft(e,r);return{consumptionLevel:n,carbonFootprintLevel:o,EPCLevel:Lt(n,o,r)}},exports.getGeoSearchSuggestions=re,exports.isTouchDevice=Q,exports.isValidDate=Vl,exports.isValidPhoneNumber=Gl,exports.paragraphs=H,exports.parsePhoneNumber=Ul,exports.radius=q,exports.resetCssButton=ee,exports.scrollbar=Z,exports.shadows=V,exports.titles=Vd,exports.useDebounce=al,exports.useEmailSuggestion=ll,exports.useMobileDevice=()=>X(`(max-width: ${C.base-1}px)`),exports.useModal=({onAbort:r,onOpen:n,onClose:o}={})=>{const[{isAborting:a,fade:i,isLoading:s,isOpen:l},d]=t.useReducer(rp,{isAborting:!1,fade:Qf.IN,isOpen:!1,isLoading:!1}),c=(()=>{const e=t.useRef(!0);return t.useEffect(()=>{e.current=!1},[]),e.current})(),u=t.useCallback(()=>{l&&d(tp.toggleLoad())},[l]),f=t.useCallback(()=>{n&&n(),d(tp.open())},[n]),p=t.useCallback(()=>{!s&&l&&d(tp.close())},[s,l]),h=t.useCallback(()=>{!s&&l&&d(tp.abort())},[s,l]),g=t.useCallback(()=>d(tp.animationEnd()),[]),m=t.useCallback(()=>{a&&r&&r(),o&&o(),d(tp.reset())},[a,r,o]);t.useEffect(()=>{l||c||m()},[l]);return{closeModal:p,createModal:({children:r,icon:n,isAlternative:o=!1,isClosable:a=!0,isFullScreen:d,noPadding:c,text:u,title:f})=>l?e.jsx(gp,{abortModal:h,fade:i,icon:n,isAlternative:o,isClosable:a,isFullScreen:d,isLoading:s,noPadding:c,onAnimationEnd:g,text:u,title:f,children:r}):e.jsx(t.Fragment,{}),openModal:f,toggleLoader:u}},exports.useOnClickOutside=x,exports.useSmallSmartphoneDevice=()=>X(`(max-width: ${C.smallest-1}px)`),exports.useSmartphoneDevice=J;
|
|
3034
3034
|
//# sourceMappingURL=index.js.map
|