@proprioo/salatim 33.0.1 → 33.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/lib/index.js +82 -82
- package/lib/index.js.map +1 -1
- package/lib/ui/index.d.ts +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -2013,14 +2013,14 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<argumen
|
|
|
2013
2013
|
}
|
|
2014
2014
|
}
|
|
2015
2015
|
}
|
|
2016
|
-
`,Bf="dd/MM/yyyy",zf=e=>O.default(e)&&C.default(e,new Date(1e3,0,1)),
|
|
2016
|
+
`,Bf="dd/MM/yyyy",zf=e=>b.default(e,"yyyy-MM-dd"),Uf=e=>O.default(e)&&C.default(e,new Date(1e3,0,1)),Gf=t=>{var{label:r="dd/mm/yyyy",value:o,dataTest:a,onChange:i}=t,s=Js(t,["label","value","dataTest","onChange"]);const[l,c]=n.useState(o?(d=new Date(o),b.default(d,Bf)):"");var d;return e.jsx($e,Object.assign({},s,{onChange:e=>{if(0===e.length)c(e),i(e);else{const t=(e=>2===e.length&&!e.slice(0,2).includes("/")||5===e.length&&!e.slice(3,5).includes("/")?`${e}/`:e.substr(0,10))(e),n=k.default(t,Bf,new Date);e.length>l.length?(Uf(n)?i(zf(n)):i(null),c(t)):(c(e),i(null))}},label:r,value:l,dataTest:a||"input-date"}))},Wf=v.default.label`
|
|
2017
2017
|
${R};
|
|
2018
2018
|
${Z.caption};
|
|
2019
2019
|
color: ${T.dark.base};
|
|
2020
2020
|
position: absolute;
|
|
2021
2021
|
top: -${D(9)};
|
|
2022
2022
|
left: ${D(28)};
|
|
2023
|
-
`,
|
|
2023
|
+
`,Hf=v.default.fieldset`
|
|
2024
2024
|
border: ${D(1)} solid ${T.grey.base80};
|
|
2025
2025
|
border-radius: ${J.biggest};
|
|
2026
2026
|
padding: 0;
|
|
@@ -2034,7 +2034,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<argumen
|
|
|
2034
2034
|
${({error:e})=>e&&o.css`
|
|
2035
2035
|
border-color: ${T.red.base};
|
|
2036
2036
|
|
|
2037
|
-
${
|
|
2037
|
+
${Wf} {
|
|
2038
2038
|
color: ${T.red.base};
|
|
2039
2039
|
}
|
|
2040
2040
|
`}
|
|
@@ -2049,9 +2049,9 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<argumen
|
|
|
2049
2049
|
}
|
|
2050
2050
|
}
|
|
2051
2051
|
}
|
|
2052
|
-
`,
|
|
2052
|
+
`,qf=v.default.div`
|
|
2053
2053
|
padding: ${D(16)} ${D(28)};
|
|
2054
|
-
`,
|
|
2054
|
+
`,Vf=({suggestions:t,getSuggestionItemProps:r})=>e.jsx(Jc,{"data-test":"gmaps-suggestions",children:e.jsx(Qc,{children:t.map(((t,o)=>n.createElement(ed,Object.assign({"data-test":"item-layout"},r(t,{key:`suggestion-gmap-${o}`,onMouseDown:e=>e.stopPropagation()}),{key:o}),e.jsx(Xc,{value:"",option:{value:t.id,label:t.description}}))))})}),Yf=o.css`
|
|
2055
2055
|
animation: loader-spin 1s infinite linear;
|
|
2056
2056
|
|
|
2057
2057
|
@keyframes loader-spin {
|
|
@@ -2062,7 +2062,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<argumen
|
|
|
2062
2062
|
transform: rotate(360deg);
|
|
2063
2063
|
}
|
|
2064
2064
|
}
|
|
2065
|
-
`,
|
|
2065
|
+
`,Kf=v.default.div`
|
|
2066
2066
|
background: ${({backgroundColor:e})=>e};
|
|
2067
2067
|
|
|
2068
2068
|
${({isWrapped:e,loaderHeight:t})=>!e&&o.css`
|
|
@@ -2073,15 +2073,15 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<argumen
|
|
|
2073
2073
|
height: ${t};
|
|
2074
2074
|
z-index: 100;
|
|
2075
2075
|
`}
|
|
2076
|
-
`,
|
|
2076
|
+
`,Xf=v.default.div`
|
|
2077
2077
|
border: ${D(5)} solid ${T.terracota.base10};
|
|
2078
2078
|
border-left-color: ${T.terracota.base};
|
|
2079
2079
|
border-radius: ${J.rounded};
|
|
2080
2080
|
width: ${D(100)};
|
|
2081
2081
|
height: ${D(100)};
|
|
2082
2082
|
|
|
2083
|
-
${
|
|
2084
|
-
`,
|
|
2083
|
+
${Yf}
|
|
2084
|
+
`,Zf=v.default.div`
|
|
2085
2085
|
display: flex;
|
|
2086
2086
|
flex-direction: column;
|
|
2087
2087
|
align-items: center;
|
|
@@ -2093,27 +2093,27 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<argumen
|
|
|
2093
2093
|
min-width: ${D(300)};
|
|
2094
2094
|
transform: translate(-50%, -50%);
|
|
2095
2095
|
`}
|
|
2096
|
-
`,
|
|
2096
|
+
`,Jf=v.default.div`
|
|
2097
2097
|
font-size: ${M.base};
|
|
2098
2098
|
color: ${T.dark.base80};
|
|
2099
2099
|
margin-top: ${D(18)};
|
|
2100
2100
|
text-align: center;
|
|
2101
|
-
`,
|
|
2101
|
+
`,Qf=v.default.div`
|
|
2102
2102
|
border: ${D(3)} solid ${T.green.base};
|
|
2103
2103
|
border-left-color: rgba(0, 0, 0, 0.2);
|
|
2104
2104
|
border-radius: ${J.rounded};
|
|
2105
2105
|
width: ${D(24)};
|
|
2106
2106
|
height: ${D(24)};
|
|
2107
2107
|
|
|
2108
|
-
${
|
|
2109
|
-
`,
|
|
2108
|
+
${Yf}
|
|
2109
|
+
`,ep=v.default.div`
|
|
2110
2110
|
position: absolute;
|
|
2111
2111
|
top: 50%;
|
|
2112
2112
|
right: ${D(16)};
|
|
2113
2113
|
transform: translateY(-50%);
|
|
2114
2114
|
background-color: white;
|
|
2115
2115
|
border-left: ${D(10)} solid white;
|
|
2116
|
-
`,
|
|
2116
|
+
`,tp=()=>e.jsx(ep,{children:e.jsx(Qf,{})}),np=({country:t="FR",dataTest:r,disabled:o,error:a,focused:i,id:s,label:l,required:c,types:d=["address"],value:u,withGeocodeType:f=!1,zIndex:p=0,onChange:h,onSelect:g,onError:m})=>{const[{isOpen:b,address:y},v]=n.useState({isOpen:!1,address:u});return n.useEffect((()=>{v({isOpen:b,address:u})}),[u]),e.jsx(Jl,{value:y,onChange:e=>{v({isOpen:!0,address:e}),h(e)},onSelect:e=>{v({isOpen:!1,address:e}),g(e)},onError:m,highlightFirstSuggestion:!0,searchOptions:{types:d,componentRestrictions:{country:t}},children:({suggestions:t,getInputProps:d,getSuggestionItemProps:u,loading:h})=>{const g=f?le(t):t;return e.jsx($e,{zIndex:b?10:p,type:exports.InputType.TEXT,"data-test":"select-wrapper-input-base",label:l,disabled:o,error:a,value:y,dataTest:r,required:c,id:s,gmap:Object.assign({},d({autoFocus:i,disabled:o})),field:h&&0===t.length?e.jsx(tp,{}):b&&Boolean(g.length)?e.jsx(Vf,{suggestions:g,getSuggestionItemProps:u}):e.jsx(n.Fragment,{})})}})},rp=t=>{var{onSelect:n,onError:r}=t,o=Js(t,["onSelect","onError"]);return e.jsx(np,Object.assign({},o,{onError:r,onSelect:e=>Qs(void 0,void 0,void 0,(function*(){try{const[t]=yield exports.geocodeByAddress(e);n(t)}catch(e){r&&r(e)}}))}))},op=({fill:t})=>e.jsx("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M22.4001 10.8892L21.111 9.6001L16.0001 14.711L10.8892 9.6001L9.6001 10.8892L14.711 16.0001L9.6001 21.111L10.8892 22.4001L16.0001 17.2892L21.111 22.4001L22.4001 21.111L17.2892 16.0001L22.4001 10.8892Z",fill:t})}),ap=({isWrapped:t,text:n,backgroundColor:r="rgba(255, 255, 255, 0.85)",loaderHeight:o="100%"})=>e.jsx(Kf,{isWrapped:t,backgroundColor:r,loaderHeight:o,"data-test":"loader",children:e.jsxs(Zf,{isWrapped:t,children:[e.jsx(Xf,{}),n&&e.jsx(Jf,{dangerouslySetInnerHTML:{__html:n}})]})});var ip,sp;!function(e){e.IN="in",e.OUT="out"}(ip||(ip={})),function(e){e.ABORT="abort",e.ANIMATION_END="animationEnd",e.CLOSE="close",e.FADE_OUT="fadeOut",e.OPEN="open",e.RESET="reset",e.TOGGLE_LOAD="toggleLoad"}(sp||(sp={}));const lp={abort:ne(sp.ABORT),animationEnd:ne(sp.ANIMATION_END),close:ne(sp.CLOSE),open:ne(sp.OPEN),reset:ne(sp.RESET),toggleLoad:ne(sp.TOGGLE_LOAD)},cp=(e,{type:t})=>{switch(t){case sp.ABORT:return Object.assign(Object.assign({},e),{isAborting:!0,fade:ip.OUT});case sp.ANIMATION_END:return Object.assign(Object.assign({},e),{isOpen:!1});case sp.CLOSE:return Object.assign(Object.assign({},e),{fade:ip.OUT});case sp.OPEN:return{fade:ip.IN,isAborting:!1,isLoading:!1,isOpen:!0};case sp.RESET:return{fade:ip.IN,isAborting:!1,isLoading:!1,isOpen:!1};case sp.TOGGLE_LOAD:return Object.assign(Object.assign({},e),{isLoading:!e.isLoading});default:throw new Error}},dp=v.default.button`
|
|
2117
2117
|
${ie};
|
|
2118
2118
|
position: absolute;
|
|
2119
2119
|
right: ${D(8)};
|
|
@@ -2151,7 +2151,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<argumen
|
|
|
2151
2151
|
}
|
|
2152
2152
|
}
|
|
2153
2153
|
}
|
|
2154
|
-
`,
|
|
2154
|
+
`,up=v.default.div`
|
|
2155
2155
|
position: fixed;
|
|
2156
2156
|
left: 50%;
|
|
2157
2157
|
top: 50%;
|
|
@@ -2190,7 +2190,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<argumen
|
|
|
2190
2190
|
min-width: ${D(640)};
|
|
2191
2191
|
border-radius: ${J.big};
|
|
2192
2192
|
}
|
|
2193
|
-
`,
|
|
2193
|
+
`,fp=v.default.div`
|
|
2194
2194
|
position: absolute;
|
|
2195
2195
|
left: 0;
|
|
2196
2196
|
right: 0;
|
|
@@ -2202,13 +2202,13 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<argumen
|
|
|
2202
2202
|
@media (min-width: ${P.small}px) {
|
|
2203
2203
|
display: none;
|
|
2204
2204
|
}
|
|
2205
|
-
`,
|
|
2205
|
+
`,pp=v.default.div`
|
|
2206
2206
|
display: flex;
|
|
2207
2207
|
align-items: center;
|
|
2208
2208
|
flex-direction: column;
|
|
2209
2209
|
margin-bottom: ${D(8)};
|
|
2210
2210
|
text-align: center;
|
|
2211
|
-
`,
|
|
2211
|
+
`,hp=v.default.div`
|
|
2212
2212
|
display: none;
|
|
2213
2213
|
|
|
2214
2214
|
@media (min-width: ${P.small}px) {
|
|
@@ -2221,7 +2221,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<argumen
|
|
|
2221
2221
|
width: 100%;
|
|
2222
2222
|
}
|
|
2223
2223
|
}
|
|
2224
|
-
`,
|
|
2224
|
+
`,gp=v.default.p`
|
|
2225
2225
|
display: none;
|
|
2226
2226
|
|
|
2227
2227
|
@media (min-width: ${P.small}px) {
|
|
@@ -2230,7 +2230,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<argumen
|
|
|
2230
2230
|
margin: 0;
|
|
2231
2231
|
font-weight: bold;
|
|
2232
2232
|
}
|
|
2233
|
-
`,
|
|
2233
|
+
`,mp=v.default.p`
|
|
2234
2234
|
${Z.body1};
|
|
2235
2235
|
margin: ${D(8)} 0 ${D(24)};
|
|
2236
2236
|
color: ${T.dark.base80};
|
|
@@ -2238,19 +2238,19 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<argumen
|
|
|
2238
2238
|
@media (min-width: ${P.small}px) {
|
|
2239
2239
|
text-align: left;
|
|
2240
2240
|
}
|
|
2241
|
-
`,
|
|
2241
|
+
`,bp=o.keyframes`
|
|
2242
2242
|
from {
|
|
2243
2243
|
background: ${a.transparentize(1,T.dark.base)};
|
|
2244
2244
|
} to {
|
|
2245
2245
|
background: ${a.transparentize(.2,T.dark.base)};
|
|
2246
2246
|
}
|
|
2247
|
-
`,
|
|
2247
|
+
`,yp=o.keyframes`
|
|
2248
2248
|
from {
|
|
2249
2249
|
background: ${a.transparentize(.2,T.dark.base)};
|
|
2250
2250
|
} to {
|
|
2251
2251
|
background: ${a.transparentize(1,T.dark.base)};
|
|
2252
2252
|
}
|
|
2253
|
-
`,
|
|
2253
|
+
`,vp=o.keyframes`
|
|
2254
2254
|
0% {
|
|
2255
2255
|
opacity: 0;
|
|
2256
2256
|
transform: translate(-50%, -80%);
|
|
@@ -2264,7 +2264,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<argumen
|
|
|
2264
2264
|
transform: translate(-50%, -50%);
|
|
2265
2265
|
}
|
|
2266
2266
|
|
|
2267
|
-
|
|
2267
|
+
`,$p=o.keyframes`
|
|
2268
2268
|
0% {
|
|
2269
2269
|
opacity: 1;
|
|
2270
2270
|
transform: translate(-50%, -50%);
|
|
@@ -2277,7 +2277,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<argumen
|
|
|
2277
2277
|
100% {
|
|
2278
2278
|
transform: translate(-50%, -100%);
|
|
2279
2279
|
}
|
|
2280
|
-
|
|
2280
|
+
`,xp=v.default.div`
|
|
2281
2281
|
position: fixed;
|
|
2282
2282
|
bottom: 0;
|
|
2283
2283
|
left: 0;
|
|
@@ -2287,32 +2287,32 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<argumen
|
|
|
2287
2287
|
background: ${a.transparentize(.2,T.dark.base)};
|
|
2288
2288
|
cursor: pointer;
|
|
2289
2289
|
|
|
2290
|
-
${({fade:e})=>e===
|
|
2291
|
-
animation: ${
|
|
2290
|
+
${({fade:e})=>e===ip.IN?o.css`
|
|
2291
|
+
animation: ${bp} 0.2s linear;
|
|
2292
2292
|
|
|
2293
|
-
${
|
|
2294
|
-
animation: ${
|
|
2293
|
+
${up} {
|
|
2294
|
+
animation: ${vp} 0.3s linear;
|
|
2295
2295
|
}
|
|
2296
2296
|
`:o.css`
|
|
2297
2297
|
background: ${a.transparentize(1,T.dark.base)};
|
|
2298
|
-
animation: ${
|
|
2298
|
+
animation: ${yp} 0.2s linear;
|
|
2299
2299
|
|
|
2300
|
-
${
|
|
2300
|
+
${up} {
|
|
2301
2301
|
opacity: 0;
|
|
2302
2302
|
transform: translate(-50%, -100%);
|
|
2303
|
-
animation: ${
|
|
2303
|
+
animation: ${$p} 0.3s linear;
|
|
2304
2304
|
}
|
|
2305
2305
|
`}
|
|
2306
|
-
`,
|
|
2306
|
+
`,wp=({children:t,fade:r,icon:o,isAlternative:a=!1,isClosable:i=!0,isFullScreen:s,isLoading:l,noPadding:c,text:u,title:f,abortModal:p,onAnimationEnd:h})=>{const g=n.useRef(null),[m,b]=n.useState(0),y=()=>{i&&p()},v=({key:e})=>{"Escape"===e&&y()};return S(g,y),n.useLayoutEffect((()=>{const e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}),[]),n.useLayoutEffect((()=>{if(l){const e=document.getElementById("modal");e&&b(e.scrollHeight)}return()=>b(0)}),[l]),n.useEffect((()=>(document.addEventListener("keydown",v,{passive:!0}),()=>document.removeEventListener("keydown",v))),[]),n.useEffect((()=>()=>h()),[]),d.createPortal(e.jsx(xp,{"data-test":"modal-background",fade:r,onAnimationEnd:()=>{r===ip.OUT&&h()},children:e.jsxs(up,{id:"modal",isFullScreen:s,noPadding:c,ref:g,children:[l&&e.jsx(ap,{loaderHeight:`${m.toString()}px`}),i&&e.jsx(dp,{"data-test":"close-modal-icon",hasTitle:!!f,onClick:y,children:e.jsx(op,{})}),f&&e.jsx(fp,{children:f}),(o||f||u)&&e.jsxs(pp,{children:[o&&e.jsx(hp,{"data-test":"modal-icon",children:o}),f&&e.jsx(gp,{"data-test":"modal-title",dangerouslySetInnerHTML:{__html:f},isAlternative:a}),u&&e.jsx(mp,{"data-test":"modal-text",dangerouslySetInnerHTML:{__html:u}})]}),e.jsx("div",{children:t})]})}),(null===document||void 0===document?void 0:document.body)||null)},Cp=v.default.div`
|
|
2307
2307
|
position: relative;
|
|
2308
2308
|
min-height: ${D(56)};
|
|
2309
2309
|
border: ${D(1)} solid ${T.grey.base60};
|
|
2310
2310
|
background: ${T.grey.base20};
|
|
2311
2311
|
opacity: 0.3;
|
|
2312
2312
|
border-radius: ${D(4)};
|
|
2313
|
-
`,
|
|
2313
|
+
`,Op=(e,t)=>{const n=e.replace(/\s/g,"").replace(",",".");return t?n:n.replace(/\.$/,"")},kp=(e,t)=>{const n=Op(e,!0),[r,o]=n.split("."),a=parseInt(r,10);return isNaN(a)?"":`${Intl.NumberFormat("fr").format(a)}${t&&void 0!==o?`.${o}`:""}`.replace(/\u202f/gm," ")},jp=/^\d*(\.|\,)?\d*$/,Sp=/^\d*$/,Ep=v.default.div`
|
|
2314
2314
|
padding: ${D(4)} ${D(8)} ${D(4)} 0;
|
|
2315
|
-
`,
|
|
2315
|
+
`,Pp=v.default.label`
|
|
2316
2316
|
${R};
|
|
2317
2317
|
cursor: pointer;
|
|
2318
2318
|
color: ${T.dark.base};
|
|
@@ -2322,11 +2322,11 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<argumen
|
|
|
2322
2322
|
::selection {
|
|
2323
2323
|
background-color: transparent;
|
|
2324
2324
|
}
|
|
2325
|
-
`,
|
|
2325
|
+
`,Ip=v.default.input`
|
|
2326
2326
|
opacity: 0;
|
|
2327
2327
|
margin-right: ${D(16)};
|
|
2328
2328
|
|
|
2329
|
-
+ ${
|
|
2329
|
+
+ ${Pp} {
|
|
2330
2330
|
display: inline-block;
|
|
2331
2331
|
position: relative;
|
|
2332
2332
|
|
|
@@ -2362,13 +2362,13 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<argumen
|
|
|
2362
2362
|
|
|
2363
2363
|
&:focus,
|
|
2364
2364
|
&:hover {
|
|
2365
|
-
+ ${
|
|
2365
|
+
+ ${Pp}::before {
|
|
2366
2366
|
border-color: ${T.terracota.base};
|
|
2367
2367
|
}
|
|
2368
2368
|
}
|
|
2369
2369
|
|
|
2370
2370
|
&:checked {
|
|
2371
|
-
+ ${
|
|
2371
|
+
+ ${Pp} {
|
|
2372
2372
|
::before {
|
|
2373
2373
|
border-color: ${T.terracota.base20};
|
|
2374
2374
|
}
|
|
@@ -2380,22 +2380,22 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<argumen
|
|
|
2380
2380
|
}
|
|
2381
2381
|
}
|
|
2382
2382
|
}
|
|
2383
|
-
`,
|
|
2383
|
+
`,Np=v.default.h1`
|
|
2384
2384
|
${dc};
|
|
2385
2385
|
${fc.h1};
|
|
2386
|
-
`,
|
|
2386
|
+
`,Ap=({title:t,color:n,isAlternative:r})=>e.jsx(Np,{isAlternative:r,color:n,dangerouslySetInnerHTML:{__html:t}});Ap.defaultProps=uc;const Tp=v.default.h2`
|
|
2387
2387
|
${dc};
|
|
2388
2388
|
${fc.h2};
|
|
2389
|
-
`,
|
|
2389
|
+
`,Dp=({title:t,color:n,isAlternative:r})=>e.jsx(Tp,{isAlternative:r,color:n,dangerouslySetInnerHTML:{__html:t}});Dp.defaultProps=uc;const Fp=v.default.h3`
|
|
2390
2390
|
${dc};
|
|
2391
2391
|
${fc.h3};
|
|
2392
|
-
`,
|
|
2392
|
+
`,Lp=({title:t,color:n,isAlternative:r})=>e.jsx(Fp,{isAlternative:r,color:n,dangerouslySetInnerHTML:{__html:t}});Lp.defaultProps=Object.assign(Object.assign({},uc),{isAlternative:!0});const Rp=v.default.h4`
|
|
2393
2393
|
${dc};
|
|
2394
2394
|
${fc.h4};
|
|
2395
|
-
`,
|
|
2395
|
+
`,Mp=({title:t,color:n,isAlternative:r})=>e.jsx(Rp,{isAlternative:r,color:n,dangerouslySetInnerHTML:{__html:t}});Mp.defaultProps=uc;const _p=v.default.h6`
|
|
2396
2396
|
${dc};
|
|
2397
2397
|
${fc.h6};
|
|
2398
|
-
`,
|
|
2398
|
+
`,Bp=({title:t,color:n,isAlternative:r})=>e.jsx(_p,{isAlternative:r,color:n,dangerouslySetInnerHTML:{__html:t}});Bp.defaultProps=Object.assign(Object.assign({},uc),{isAlternative:!0});xe(".react-toggle{-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent;background-color:transparent;border:0;cursor:pointer;display:inline-block;padding:0;position:relative;touch-action:pan-x;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.react-toggle-screenreader-only{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.react-toggle--disabled{cursor:not-allowed;opacity:.5;-webkit-transition:opacity .25s;transition:opacity .25s}.react-toggle-track{background-color:#4d4d4d;border-radius:30px;height:24px;padding:0;-webkit-transition:all .2s ease;-moz-transition:all .2s ease;transition:all .2s ease;width:50px}.react-toggle:hover:not(.react-toggle--disabled) .react-toggle-track{background-color:#000}.react-toggle--checked .react-toggle-track{background-color:#19ab27}.react-toggle--checked:hover:not(.react-toggle--disabled) .react-toggle-track{background-color:#128d15}.react-toggle-track-check{bottom:0;height:10px;left:8px;line-height:0;margin-bottom:auto;margin-top:auto;opacity:0;position:absolute;top:0;-webkit-transition:opacity .25s ease;-moz-transition:opacity .25s ease;transition:opacity .25s ease;width:14px}.react-toggle--checked .react-toggle-track-check,.react-toggle-track-x{opacity:1;-webkit-transition:opacity .25s ease;-moz-transition:opacity .25s ease;transition:opacity .25s ease}.react-toggle-track-x{bottom:0;height:10px;line-height:0;margin-bottom:auto;margin-top:auto;position:absolute;right:10px;top:0;width:10px}.react-toggle--checked .react-toggle-track-x{opacity:0}.react-toggle-thumb{background-color:#fafafa;border:1px solid #4d4d4d;border-radius:50%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;height:22px;left:1px;position:absolute;top:1px;transition:all .5s cubic-bezier(.23,1,.32,1) 0ms;-webkit-transition:all .25s ease;-moz-transition:all .25s ease;transition:all .25s ease;width:22px}.react-toggle--checked .react-toggle-thumb{border-color:#19ab27;left:27px}.react-toggle--focus .react-toggle-thumb{-webkit-box-shadow:0 0 3px 2px #0099e0;-moz-box-shadow:0 0 3px 2px #0099e0;box-shadow:0 0 2px 3px #0099e0}.react-toggle:active:not(.react-toggle--disabled) .react-toggle-thumb{-webkit-box-shadow:0 0 5px 5px #0099e0;-moz-box-shadow:0 0 5px 5px #0099e0;box-shadow:0 0 5px 5px #0099e0}");var zp={},Up={};Object.defineProperty(Up,"__esModule",{value:!0});var Gp=function(e){return e&&e.__esModule?e:{default:e}}(y.default);Up.default=function(){return Gp.default.createElement("svg",{width:"14",height:"11",viewBox:"0 0 14 11"},Gp.default.createElement("path",{d:"M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 0",fill:"#fff",fillRule:"evenodd"}))};var Wp={};Object.defineProperty(Wp,"__esModule",{value:!0});var Hp=function(e){return e&&e.__esModule?e:{default:e}}(y.default);Wp.default=function(){return Hp.default.createElement("svg",{width:"10",height:"10",viewBox:"0 0 10 10"},Hp.default.createElement("path",{d:"M9.9 2.12L7.78 0 4.95 2.828 2.12 0 0 2.12l2.83 2.83L0 7.776 2.123 9.9 4.95 7.07 7.78 9.9 9.9 7.776 7.072 4.95 9.9 2.12",fill:"#fff",fillRule:"evenodd"}))};var qp={};Object.defineProperty(qp,"__esModule",{value:!0}),qp.pointerCoord=function(e){if(e){var t=e.changedTouches;if(t&&t.length>0){var n=t[0];return{x:n.clientX,y:n.clientY}}var r=e.pageX;if(void 0!==r)return{x:r,y:e.pageY}}return{x:0,y:0}},Object.defineProperty(zp,"__esModule",{value:!0});var Vp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yp=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Kp=y.default,Xp=nh(Kp),Zp=nh(rr),Jp=nh(er),Qp=nh(Up),eh=nh(Wp),th=qp;function nh(e){return e&&e.__esModule?e:{default:e}}var rh=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleClick=n.handleClick.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n.handleTouchMove=n.handleTouchMove.bind(n),n.handleTouchEnd=n.handleTouchEnd.bind(n),n.handleFocus=n.handleFocus.bind(n),n.handleBlur=n.handleBlur.bind(n),n.previouslyChecked=!(!e.checked&&!e.defaultChecked),n.state={checked:!(!e.checked&&!e.defaultChecked),hasFocus:!1},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,Kp.PureComponent),Yp(t,[{key:"componentDidUpdate",value:function(e){e.checked!==this.props.checked&&this.setState({checked:!!this.props.checked})}},{key:"handleClick",value:function(e){if(!this.props.disabled){var t=this.input;if(e.target!==t&&!this.moved)return this.previouslyChecked=t.checked,e.preventDefault(),t.focus(),void t.click();var n=this.props.hasOwnProperty("checked")?this.props.checked:t.checked;this.setState({checked:n})}}},{key:"handleTouchStart",value:function(e){this.props.disabled||(this.startX=(0,th.pointerCoord)(e).x,this.activated=!0)}},{key:"handleTouchMove",value:function(e){if(this.activated&&(this.moved=!0,this.startX)){var t=(0,th.pointerCoord)(e).x;this.state.checked&&t+15<this.startX?(this.setState({checked:!1}),this.startX=t,this.activated=!0):t-15>this.startX&&(this.setState({checked:!0}),this.startX=t,this.activated=t<this.startX+5)}}},{key:"handleTouchEnd",value:function(e){if(this.moved){var t=this.input;if(e.preventDefault(),this.startX){var n=(0,th.pointerCoord)(e).x;!0===this.previouslyChecked&&this.startX+4>n?this.previouslyChecked!==this.state.checked&&(this.setState({checked:!1}),this.previouslyChecked=this.state.checked,t.click()):this.startX-4<n&&this.previouslyChecked!==this.state.checked&&(this.setState({checked:!0}),this.previouslyChecked=this.state.checked,t.click()),this.activated=!1,this.startX=null,this.moved=!1}}}},{key:"handleFocus",value:function(e){var t=this.props.onFocus;t&&t(e),this.setState({hasFocus:!0})}},{key:"handleBlur",value:function(e){var t=this.props.onBlur;t&&t(e),this.setState({hasFocus:!1})}},{key:"getIcon",value:function(e){var n=this.props.icons;return n?void 0===n[e]?t.defaultProps.icons[e]:n[e]:null}},{key:"render",value:function(){var e=this,t=this.props,n=t.className;t.icons;var r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["className","icons"]),o=(0,Zp.default)("react-toggle",{"react-toggle--checked":this.state.checked,"react-toggle--focus":this.state.hasFocus,"react-toggle--disabled":this.props.disabled},n);return Xp.default.createElement("div",{className:o,onClick:this.handleClick,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd},Xp.default.createElement("div",{className:"react-toggle-track"},Xp.default.createElement("div",{className:"react-toggle-track-check"},this.getIcon("checked")),Xp.default.createElement("div",{className:"react-toggle-track-x"},this.getIcon("unchecked"))),Xp.default.createElement("div",{className:"react-toggle-thumb"}),Xp.default.createElement("input",Vp({},r,{ref:function(t){e.input=t},onFocus:this.handleFocus,onBlur:this.handleBlur,className:"react-toggle-screenreader-only",type:"checkbox"})))}}]),t}(),oh=zp.default=rh;rh.displayName="Toggle",rh.defaultProps={icons:{checked:Xp.default.createElement(Qp.default,null),unchecked:Xp.default.createElement(eh.default,null)}},rh.propTypes={checked:Jp.default.bool,disabled:Jp.default.bool,defaultChecked:Jp.default.bool,onChange:Jp.default.func,onFocus:Jp.default.func,onBlur:Jp.default.func,className:Jp.default.string,name:Jp.default.string,value:Jp.default.string,id:Jp.default.string,"aria-labelledby":Jp.default.string,"aria-label":Jp.default.string,icons:Jp.default.oneOfType([Jp.default.bool,Jp.default.shape({checked:Jp.default.node,unchecked:Jp.default.node})])};const ah=v.default.label`
|
|
2399
2399
|
${Z.body2};
|
|
2400
2400
|
margin: 0;
|
|
2401
2401
|
cursor: pointer;
|
|
@@ -2404,7 +2404,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<argumen
|
|
|
2404
2404
|
${({disabled:e})=>e&&o.css`
|
|
2405
2405
|
color: ${T.grey.base60};
|
|
2406
2406
|
`}
|
|
2407
|
-
`,
|
|
2407
|
+
`,ih=v.default.div`
|
|
2408
2408
|
display: flex;
|
|
2409
2409
|
align-items: center;
|
|
2410
2410
|
|
|
@@ -2477,14 +2477,14 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<argumen
|
|
|
2477
2477
|
background: ${T.dark.base10};
|
|
2478
2478
|
}
|
|
2479
2479
|
}
|
|
2480
|
-
`,
|
|
2480
|
+
`,sh=v.default.div`
|
|
2481
2481
|
display: flex;
|
|
2482
2482
|
align-items: center;
|
|
2483
|
-
`,
|
|
2483
|
+
`,lh=v.default.div`
|
|
2484
2484
|
${lc};
|
|
2485
2485
|
font-weight: bold;
|
|
2486
2486
|
color: ${({color:e})=>e};
|
|
2487
|
-
`;var
|
|
2487
|
+
`;var ch,dh;exports.TagAppearance=void 0,(ch=exports.TagAppearance||(exports.TagAppearance={})).BUSINESS="business",ch.CUSTOMER="customer",exports.TagColorsTypes=void 0,(dh=exports.TagColorsTypes||(exports.TagColorsTypes={})).BLUE="BLUE",dh.BLUE_LIGHT="BLUE_LIGHT",dh.GREEN="GREEN",dh.GREEN_LIGHT="GREEN_LIGHT",dh.GREY="GREY",dh.GREY_LIGHT="GREY_LIGHT",dh.ORANGE="ORANGE",dh.ORANGE_LIGHT="ORANGE_LIGHT",dh.ORANGE_LIGHTER="ORANGE_LIGHTER",dh.RED="RED",dh.RED_LIGHT="RED_LIGHT",dh.TERRACOTA="TERRACOTA";const uh=()=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M10 0c5.53 0 10 4.47 10 10s-4.47 10-10 10S0 15.53 0 10 4.47 0 10 0zm3.59 5L10 8.59 6.41 5 5 6.41 8.59 10 5 13.59 6.41 15 10 11.41 13.59 15 15 13.59 11.41 10 15 6.41 13.59 5z",fill:"currentColor"})}),fh={[exports.TagColorsTypes.BLUE]:{color:T.dark.base,background:T.blue.base,colorOutlined:T.dark.base,backgroundOutlined:T.blue.base40},[exports.TagColorsTypes.BLUE_LIGHT]:{color:T.green.base,background:T.blue.base40,colorOutlined:T.green.base,backgroundOutlined:T.blue.base40},[exports.TagColorsTypes.GREY]:{color:"white",background:T.dark.base80,colorOutlined:T.dark.base,backgroundOutlined:T.dark.base40},[exports.TagColorsTypes.GREY_LIGHT]:{color:T.dark.base,background:T.dark.base10,colorOutlined:T.dark.base,backgroundOutlined:T.dark.base40},[exports.TagColorsTypes.GREEN]:{color:T.green.base,background:T.greenLight.base40,colorOutlined:T.green.base40,backgroundOutlined:T.green.base20},[exports.TagColorsTypes.GREEN_LIGHT]:{color:T.green.base,background:T.greenLight.base20,colorOutlined:T.dark.base,backgroundOutlined:T.greenLight.base20},[exports.TagColorsTypes.ORANGE]:{color:"white",background:T.terracota.base,colorOutlined:"white",backgroundOutlined:T.terracota.base20},[exports.TagColorsTypes.ORANGE_LIGHT]:{color:T.dark.base,background:T.terracota.base40,colorOutlined:T.dark.base,backgroundOutlined:T.terracota.base40},[exports.TagColorsTypes.ORANGE_LIGHTER]:{color:T.green.base,background:T.terracota.base10,colorOutlined:T.dark.base,backgroundOutlined:T.terracota.base40},[exports.TagColorsTypes.RED]:{color:"white",background:T.red.base,colorOutlined:T.red.base,backgroundOutlined:T.red.base20},[exports.TagColorsTypes.RED_LIGHT]:{color:T.red.base,background:T.red.base10,colorOutlined:T.red.base,backgroundOutlined:T.red.base20},[exports.TagColorsTypes.TERRACOTA]:{color:T.dark.base,background:T.terracota.base,colorOutlined:T.dark.base,backgroundOutlined:T.terracota.base20}},ph=o.css`
|
|
2488
2488
|
${R};
|
|
2489
2489
|
display: inline-flex;
|
|
2490
2490
|
align-items: center;
|
|
@@ -2497,18 +2497,18 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<argumen
|
|
|
2497
2497
|
&:not(:only-of-type) {
|
|
2498
2498
|
margin: ${D(2)} ${D(4)} ${D(2)} 0;
|
|
2499
2499
|
}
|
|
2500
|
-
`,
|
|
2500
|
+
`,hh=o.css`
|
|
2501
2501
|
border-radius: ${D(6)};
|
|
2502
2502
|
padding: ${D(4)} ${D(8)};
|
|
2503
|
-
`,
|
|
2504
|
-
color: ${
|
|
2505
|
-
background: ${
|
|
2506
|
-
`,
|
|
2507
|
-
${
|
|
2503
|
+
`,gh=e=>o.css`
|
|
2504
|
+
color: ${fh[e].color};
|
|
2505
|
+
background: ${fh[e].background};
|
|
2506
|
+
`,mh=v.default.span`
|
|
2507
|
+
${ph};
|
|
2508
2508
|
|
|
2509
|
-
${({appearance:e})=>e===exports.TagAppearance.BUSINESS&&
|
|
2509
|
+
${({appearance:e})=>e===exports.TagAppearance.BUSINESS&&hh}
|
|
2510
2510
|
|
|
2511
|
-
${({color:e})=>e&&
|
|
2511
|
+
${({color:e})=>e&&gh(e)}}
|
|
2512
2512
|
|
|
2513
2513
|
${({icon:e})=>e&&o.css`
|
|
2514
2514
|
padding-left: ${D(8)};
|
|
@@ -2517,7 +2517,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<argumen
|
|
|
2517
2517
|
${({close:e})=>e&&o.css`
|
|
2518
2518
|
padding-right: ${D(8)};
|
|
2519
2519
|
`}
|
|
2520
|
-
`,
|
|
2520
|
+
`,bh=v.default.button`
|
|
2521
2521
|
${ie};
|
|
2522
2522
|
width: ${D(16)};
|
|
2523
2523
|
height: ${D(16)};
|
|
@@ -2537,10 +2537,10 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<argumen
|
|
|
2537
2537
|
opacity: 0.7;
|
|
2538
2538
|
}
|
|
2539
2539
|
}
|
|
2540
|
-
`,
|
|
2540
|
+
`,yh=v.default.li`
|
|
2541
2541
|
white-space: nowrap;
|
|
2542
2542
|
line-height: ${D(16)};
|
|
2543
|
-
`,
|
|
2543
|
+
`,vh=v.default.ul`
|
|
2544
2544
|
display: none;
|
|
2545
2545
|
position: absolute;
|
|
2546
2546
|
bottom: 0;
|
|
@@ -2552,25 +2552,25 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<argumen
|
|
|
2552
2552
|
font-size: ${M.small};
|
|
2553
2553
|
list-style-type: none;
|
|
2554
2554
|
|
|
2555
|
-
${({appearance:e})=>e===exports.TagAppearance.BUSINESS&&
|
|
2555
|
+
${({appearance:e})=>e===exports.TagAppearance.BUSINESS&&hh};
|
|
2556
2556
|
|
|
2557
|
-
${({color:e})=>e&&
|
|
2558
|
-
|
|
2557
|
+
${({color:e})=>e&&gh(e)};
|
|
2558
|
+
`,$h=v.default.div`
|
|
2559
2559
|
position: relative;
|
|
2560
2560
|
display: inline-block;
|
|
2561
2561
|
|
|
2562
|
-
&:hover ${
|
|
2562
|
+
&:hover ${vh} {
|
|
2563
2563
|
display: block;
|
|
2564
2564
|
}
|
|
2565
2565
|
|
|
2566
|
-
${
|
|
2566
|
+
${mh} ~ & {
|
|
2567
2567
|
margin-left: ${D(4)};
|
|
2568
2568
|
}
|
|
2569
2569
|
|
|
2570
|
-
${
|
|
2570
|
+
${mh}:not(:only-of-type) ~ & {
|
|
2571
2571
|
margin: 0 0 ${D(2)} 0;
|
|
2572
2572
|
}
|
|
2573
|
-
|
|
2573
|
+
`,xh=v.default.span`
|
|
2574
2574
|
width: ${D(16)};
|
|
2575
2575
|
height: ${D(16)};
|
|
2576
2576
|
margin-right: ${D(8)};
|
|
@@ -2583,7 +2583,7 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<argumen
|
|
|
2583
2583
|
path {
|
|
2584
2584
|
fill: currentColor;
|
|
2585
2585
|
}
|
|
2586
|
-
`,
|
|
2586
|
+
`,wh=v.default.textarea`
|
|
2587
2587
|
${R};
|
|
2588
2588
|
min-width: 100%;
|
|
2589
2589
|
max-width: 100%;
|
|
@@ -2626,35 +2626,35 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<argumen
|
|
|
2626
2626
|
font-weight: 300;
|
|
2627
2627
|
color: currentColor;
|
|
2628
2628
|
}
|
|
2629
|
-
`,
|
|
2629
|
+
`,Ch=v.default.div`
|
|
2630
2630
|
${Z.caption};
|
|
2631
2631
|
color: ${T.dark.base};
|
|
2632
2632
|
text-align: right;
|
|
2633
2633
|
margin-right: ${D(16)};
|
|
2634
|
-
`;class
|
|
2634
|
+
`;class Oh extends n.Component{constructor(e){super(e),this.reflowRaf=null;const{value:t}=e;this.state={value:t,focused:!1},this.loadRef=this.loadRef.bind(this),this.handleOnChange=this.handleOnChange.bind(this),this.handleFocus=this.handleFocus.bind(this),this.handleBlur=this.handleBlur.bind(this),this.reflowTextarea=this.reflowTextarea.bind(this),this.textareaRef=null}componentDidMount(){const{focused:e}=this.props;this.textareaRef&&e&&this.textareaRef.focus(),this.reflowRaf=window.requestAnimationFrame(this.reflowTextarea)}componentDidUpdate(e){const{value:t,focused:n}=this.props;e.value===t&&e.focused===n||this.setState((e=>Object.assign(Object.assign(Object.assign({},e),{value:t}),n?{focused:n}:{focused:!1}))),this.props.value===e.value||this.reflowRaf||(this.reflowRaf=window.requestAnimationFrame(this.reflowTextarea))}componentWillUnmount(){this.reflowRaf&&window.cancelAnimationFrame(this.reflowRaf)}handleOnChange(e){const{target:{value:t}}=e,{onChange:n}=this.props;this.setState({value:t},(()=>{n&&n(t)}))}handleFocus(){this.setState({focused:!0})}handleBlur(){this.setState({focused:!1})}reflowTextarea(){this.reflowRaf=null;const e=this.textareaRef,{autoResize:t,minHeight:n=160,maxHeight:r=300}=this.props;if(!e||!t)return;const{height:o}=e.style,a=o&&"auto"!==o;e.style.minHeight="auto",e.style.height="auto";const i=`${Math.max(n,Math.min(e.scrollHeight,r))}px`,s=a&&o&&parseFloat(o)>r?o:"auto";e.style.minHeight=i,e.style.height=s}loadRef(e){this.textareaRef=e,e&&this.reflowTextarea()}render(){const{autoResize:t,placeholder:r,maxlength:o,borderRadius:a=J.biggest,error:i=!1,required:s=!1,disabled:l=!1,spellCheck:c=!1,lang:d="fr-FR",hasCounter:u=!1}=this.props,{value:f,focused:p}=this.state;return e.jsxs(n.Fragment,{children:[e.jsx(wh,{spellCheck:c,lang:d,error:i,placeholder:r,value:f,autoResize:t,disabled:l,focused:p,maxLength:o,onChange:this.handleOnChange,onFocus:this.handleFocus,onBlur:this.handleBlur,required:s,"data-test":"textarea",ref:this.loadRef,borderRadius:a}),Boolean(o)&&u&&e.jsxs(Ch,{"data-test":"textarea-counter",children:[f.length," / ",o]})]})}}const kh=T.dark.base,jh=v.default.div`
|
|
2635
2635
|
& + & {
|
|
2636
2636
|
margin-top: ${D(8)};
|
|
2637
2637
|
}
|
|
2638
|
-
`,
|
|
2638
|
+
`,Sh=v.default.button`
|
|
2639
2639
|
${ie};
|
|
2640
|
-
color: ${({hasTitle:e})=>e?
|
|
2640
|
+
color: ${({hasTitle:e})=>e?kh:T.terracota.base};
|
|
2641
2641
|
|
|
2642
2642
|
${({isComment:e})=>e&&o.css`
|
|
2643
2643
|
display: block;
|
|
2644
2644
|
margin-top: ${D(8)};
|
|
2645
2645
|
font-size: ${M.small};
|
|
2646
2646
|
font-weight: bold;
|
|
2647
|
-
color: ${
|
|
2647
|
+
color: ${kh};
|
|
2648
2648
|
`}
|
|
2649
2649
|
|
|
2650
2650
|
:hover {
|
|
2651
2651
|
cursor: pointer;
|
|
2652
2652
|
text-decoration: underline;
|
|
2653
2653
|
}
|
|
2654
|
-
`,Sh=v.default.span`
|
|
2655
|
-
color: ${Oh};
|
|
2656
2654
|
`,Eh=v.default.span`
|
|
2657
|
-
|
|
2655
|
+
color: ${kh};
|
|
2656
|
+
`,Ph=v.default.span`
|
|
2657
|
+
& + ${Sh} {
|
|
2658
2658
|
display: inline-block;
|
|
2659
2659
|
margin-left: ${D(4)};
|
|
2660
2660
|
}
|
|
@@ -2663,24 +2663,24 @@ Qn=nr,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<argumen
|
|
|
2663
2663
|
${Z.body1};
|
|
2664
2664
|
font-weight: 500;
|
|
2665
2665
|
|
|
2666
|
-
& + ${
|
|
2666
|
+
& + ${Sh} {
|
|
2667
2667
|
display: block;
|
|
2668
2668
|
margin-left: 0;
|
|
2669
2669
|
}
|
|
2670
2670
|
`}
|
|
2671
|
-
`,
|
|
2671
|
+
`,Ih=/\n|\r|\r\n/gim,Nh="Date de naissance (jj/mm/aaaa)*",Ah="Lieu de naissance*",Th="Adresse complète*",Dh="Statut matrimonial*",Fh={address:"Veuillez sélectionner une adresse parmi les suggestions.",dateOfBirth:"Veuillez renseigner votre date de naissance. Vous devez être majeur.e pour faire une offre sur un bien.",placeOfBirth:"Veuillez renseigner votre lieu de naissance (100 caractères maximum).",maritalStatus:"Veuillez renseigner votre statut matrimonial."},Lh=[{label:"Célibataire",value:r.MaritalStatus.SINGLE},{label:"Pacsé.e",value:r.MaritalStatus.PACSED},{label:"Marié.e",value:r.MaritalStatus.MARRIED},{label:"Divorcé.e",value:r.MaritalStatus.DIVORCED},{label:"Veuf/Veuve",value:r.MaritalStatus.WIDOW}],Rh=x.object({streetNumber:x.string(),street:x.string().required(),city:x.string().required(),postCode:x.string().required(),dateOfBirth:x.date().max(j.default(new Date,18)).required(),placeOfBirth:x.string().max(100).required(),maritalStatus:x.string().required()}),Mh=v.default.span`
|
|
2672
2672
|
display: flex;
|
|
2673
2673
|
align-items: center;
|
|
2674
|
-
`,
|
|
2674
|
+
`,_h=v.default.img`
|
|
2675
2675
|
height: 1em;
|
|
2676
2676
|
width: 1.5em;
|
|
2677
2677
|
margin-right: ${D(8)};
|
|
2678
2678
|
box-shadow: 0 0 0 ${D(1)} ${T.dark.base},
|
|
2679
2679
|
inset 0 0 0 ${D(1)} ${T.dark.base};
|
|
2680
|
-
`,
|
|
2680
|
+
`,Bh=v.default.span`
|
|
2681
2681
|
${R};
|
|
2682
2682
|
color: ${({color:e})=>e};
|
|
2683
|
-
`,
|
|
2683
|
+
`,zh=v.default.span`
|
|
2684
2684
|
color: ${T.red.base};
|
|
2685
|
-
`;exports.Accordion=({children:t,preExpanded:n,allowMultipleExpanded:r})=>e.jsx(nc,{preExpanded:n,allowMultipleExpanded:r,children:t}),exports.AccordionHeader=({isAlternative:t,basic:n,children:r})=>e.jsx(wc,{children:({expanded:o,toggleExpanded:a})=>e.jsxs(pc,{onClick:()=>a(),"data-test":"accordion-header",children:[e.jsx(hc,{isAlternative:t,basic:n,children:r}),e.jsx(gc,{isOpen:o,children:e.jsx(Oc,{})})]})}),exports.AccordionItem=Cc,exports.AccordionPanel=({children:t,unmountOnCollapse:r})=>e.jsx(wc,{children:({expanded:o})=>e.jsx(mc,{isOpen:o,children:!r||o?e.jsx("div",{"data-test":"panel-content",children:t}):e.jsx(n.Fragment,{})})}),exports.AgentBanner=({children:t,agent:{image_agent:n,name:r,zone:o,fonction:a},rounded:i=!0})=>e.jsxs(Sc,{"data-test":"agent-card",rounded:i,children:[e.jsxs(Nc,{children:[r&&e.jsx(jc,{title:r,color:T.green.base}),a&&e.jsx(Ac,{"data-test":"agent-fonction",children:a}),o&&e.jsx(Ac,{"data-test":"agent-zone",children:o}),t]}),e.jsx(Pc,{children:e.jsx(Ic,{children:e.jsx(Ec,{"data-test":"agent-image",src:n,loading:"lazy"})})})]}),exports.AgentCard=Uc,exports.Autocomplete=t=>{var{list:o,native:a=!1,option:i,onSelect:s}=t,l=Js(t,["list","native","option","onSelect"]);const[{hasFullList:c,internalValue:d,isFocused:u},f]=n.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})=>r.normalizeString(e).includes(r.normalizeString(d)))),h=Boolean(d.length>1&&!c)?p:o,g=(e="")=>{e||s(null),f({hasFullList:!1,internalValue:e})};return n.useEffect((()=>{(null==i?void 0:i.label)?g(i.label):f({internalValue:""})}),[i]),e.jsx(ld,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:d},l))},exports.BagossFont=L,exports.Block=({children:t,picture:n,isCompact:r,isRounded:o})=>e.jsxs(ud,{isRounded:o,"data-test":"block",children:[n&&e.jsx(dd,{picture:n,"data-test":"picture"}),e.jsx(cd,{isCompact:r,children:t})]}),exports.BlockCheckIcon=({onClick:t,image:n,checked:r,name:o,text:a,dataTest:i})=>{const s=`checkbox-input-label-${a}`;return e.jsxs(Fd,{checked:r,"data-test":i||`checkbox-button-${a}`,children:[e.jsx(Td,{"aria-labelledby":s,checked:r,name:o,onChange:({target:e})=>t(e.checked),type:"checkbox"}),e.jsx(Dd,{children:n}),e.jsx("span",{id:s,children:a})]})},exports.BlockIcon=function({onClick:t,image:n,text:r,name:o,selectedValue:a,dataTest:i,value:s,isContentCentered:l=!1}){const c=a===s,d=`radio-input-label-${r}`;return e.jsxs(Ad,{"data-test":i||`radio-button-${r}`,isActive:c,isContentCentered:l,children:[e.jsx(Td,{"aria-labelledby":d,checked:c,name:o,onChange:()=>t(s),type:"radio"}),e.jsx("span",{id:d,children:r}),n]})},exports.Burger=({isOpen:t,isSmall:n=!1,onClick:r,color:o})=>e.jsxs(hd,{"data-test":"burger",onClick:r,isOpen:t,isSmall:n,color:o,children:[e.jsx(pd,{}),e.jsx(pd,{}),e.jsx(pd,{})]}),exports.Button=t=>{var{appearance:r=exports.ButtonAppearance.PRIMARY,icon:o,iconPosition:a=exports.IconPosition.RIGHT,label:i,rounded:s=!1,size:l=exports.ButtonSizes.LARGE,theme:c=exports.ButtonTheme.BLACK}=t,d=Js(t,["appearance","icon","iconPosition","label","rounded","size","theme"]);return e.jsxs(Sd,Object.assign({appearance:r,"aria-label":i,icon:o,iconPosition:a,rounded:s,size:l,theme:c},d,{children:[o&&e.jsx(jd,{appearance:r,iconPosition:a,size:l,theme:c,children:n.isValidElement(o)?n.cloneElement(o,{"aria-hidden":!0,focusable:!1}):o}),!s&&e.jsx(kd,{"data-test":"label",children:i})]}))},exports.ButtonRadio=Id,exports.ButtonRadioGroup=({label:t,name:n,onChange:r,options:o,value:a})=>e.jsx(Nd,{role:"radiogroup","aria-label":t,children:o.map((t=>e.jsx(Id,{isChecked:a===t.value,name:n,option:t,onClick:()=>r(t)},`radio-option-${t.value}`)))}),exports.Card=({after:t,children:r,closeToggleAriaLabel:o="Cacher le contenu",dataTest:a="card-layout",disabled:i=!1,hasToggle:s=!1,headerIcon:l,headerIconColor:c=T.dark.base,headerIconSize:d=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 $=oe(),[x,w]=n.useState(u||!1),C=void 0!==u,O=C&&s&&!g,k=C&&s&&!m;return n.useEffect((()=>{C&&w(u)}),[u,C]),e.jsxs(Cf,{"data-test":a,disabled:i,id:f,children:[e.jsxs(Of,{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(Pf,{"data-test":"title-container",children:[l&&e.jsx(Ef,{headerIconColor:c,headerIconSize:d,children:l}),e.jsx("div",{dangerouslySetInnerHTML:{__html:f},"data-test":`title-${a}`}),p&&e.jsx(jf,{children:p}),v&&e.jsx(kf,{onClick:e=>e.stopPropagation(),children:e.jsx(xf,{placement:"auto",tooltip:v,children:e.jsx(Sf,{children:e.jsx(Ld,{fill:T.grey.base})})})})]}),(t||s)&&e.jsxs(If,{children:[t&&e.jsx(kf,{onClick:e=>e.stopPropagation(),children:t}),s&&e.jsxs(Af,{children:[!$&&y&&e.jsx("span",{"data-test":"toggle-label",children:y}),e.jsx(Df,{"aria-controls":f,"aria-expanded":x,"aria-label":x?o:y||b})]})]})]}),(!s&&r||s&&x)&&e.jsx(Nf,{"data-test":"body-card",noPadding:h,children:r})]})},exports.Checkbox=({checkboxSize:t=exports.CheckboxSize.SMALL,checked:n,children:o,dataTest:a,disabled:i,id:s,indeterminate:l=!1,label:c,name:d,onChange:u})=>{const f=`${s}-${d}`;return e.jsxs(Lf,{checkboxSize:t,"data-test":a||`checkbox-${d}`,children:[e.jsx(_f,Object.assign({},Boolean(o)&&{"aria-label":c},{checkboxSize:t,checked:n,"data-test":a?`checkbox-${a}`:"checkbox-input",disabled:i,id:f,indeterminate:l,name:d,onChange:({target:e})=>u(e.checked),type:"checkbox"})),e.jsx(Rf,{checkboxSize:t,"data-test":a?`checkbox-label-${a}`:"checkbox-label",hasLabel:r.isNotEmpty(c),htmlFor:f,children:o||e.jsx(Mf,{dangerouslySetInnerHTML:{__html:c}})})]})},exports.Container=F,exports.DateInput=Uf,exports.DatePicker=({date:t,dataTest:r,disabled:o,disabledDays:a,error:i,formatter:s="EEEE dd MMMM yyyy",label:l,locale:c,onDateChange:d,zIndex:u})=>{const f=n.useRef(null),[p,h]=n.useReducer(((e,t)=>Object.assign(Object.assign({},e),t)),{isFocused:!1,isOpen:!1}),{isOpen:g,isFocused:m}=p;return S(f,(({target:e})=>{var t;(null===(t=f.current)||void 0===t?void 0:t.contains(e))||h({isFocused:!1,isOpen:!1})})),e.jsx(tn,{ref:f,isOpen:g,"data-test":r||"date-picker-wrapper",onClick:()=>{m||o||h({isFocused:!0,isOpen:!0})},children:e.jsx($e,{disabled:o,label:l,error:i,zIndex:u,focused:m,value:t&&b.default(t,s,{locale:c}),field:g?e.jsx(en,{date:t,disabledDays:a,locale:c,onDateChange:e=>{d(e||null),h({isFocused:!1,isOpen:!1})}}):e.jsx(n.Fragment,{})})})},exports.EmailInput=cl,exports.Energy=({carbonFootprint:t,carbonFootprintLevel:n,consumption:r,consumptionLevel:o,EPCLevel:a,textContent:i})=>{const s=1===a?0:25*(a-1)+10*(a-2),{blankEPC:l,carbonFootprintLegend:c,carbonFootprintTitle:d,carbonFootprintUnit:u,consumptionLegend:f,consumptionTitle:p,consumptionUnit:h,EPCLegend:g,EPCTitle:m}=i;return t&&r?e.jsxs("div",{children:[e.jsx(gn,{children:m}),e.jsxs(hn,{"aria-label":m,role:"document",children:[e.jsx("div",{"aria-label":g,role:"group",tabIndex:0,children:e.jsx(bn,{children:e.jsx(yn,{background:ln(a),isMainScore:!0,letterSize:25,pos:s,children:exports.EnergyLevel[a]})})}),e.jsxs(wn,{children:[e.jsxs(xn,{"aria-label":f,role:"group",tabIndex:0,children:[e.jsx(vn,{children:p}),e.jsxs($n,{children:[e.jsx(Cn,{children:r}),e.jsx(yn,{background:ln(o),children:exports.EnergyLevel[o]})]}),e.jsx(On,{children:h})]}),e.jsxs(xn,{"aria-label":c,role:"group",tabIndex:0,children:[e.jsx(vn,{children:d}),e.jsxs($n,{children:[e.jsx(Cn,{children:t}),e.jsx(yn,{background:cn(n),children:exports.EnergyLevel[n]})]}),e.jsx(On,{children:u})]})]})]})]}):e.jsx(mn,{children:l})},exports.ErrorLayout=jn,exports.Fieldset=({label:t,active:n=!1,error:r=!1,children:o})=>e.jsxs(Wf,{"data-test":"fieldset-layout",active:n,error:r,children:[e.jsx(Gf,{"data-test":"fieldset-label",children:t}),e.jsx(ge,{isVisible:!0,children:e.jsx("span",{dangerouslySetInnerHTML:{__html:t}})}),e.jsx(Hf,{children:o})]}),exports.GmapsAutocomplete=tp,exports.GmapsGeocode=np,exports.H1=Np,exports.H2=Tp,exports.H3=Fp,exports.H4=Rp,exports.H5=jc,exports.H6=_p,exports.Input=$e,exports.InputLoading=()=>e.jsx(wp,{"data-test":"input-loading"}),exports.InterFont=R,exports.Line=_,exports.Loader=op,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=t=>{var{focused:r,isFloat:o=!1,onBlur:a,onChange:i,onFocus:s,value:l}=t,c=Js(t,["focused","isFloat","onBlur","onChange","onFocus","value"]);const[d,u]=n.useState(Boolean(r)),[f,p]=n.useState(l?l.toString():"");return n.useEffect((()=>{if(null===l)return p("");const e=null==l?void 0:l.toString();e&&e!==f&&p(e)}),[l]),e.jsx($e,Object.assign({},c,{onFocus:()=>{u(!0),s&&s()},onBlur:()=>{u(!1),p(((e,t)=>{const n=Cp(e),r=t?parseFloat(n):parseInt(n,10);return isNaN(r)?"":r.toString()})(f,o)),a&&a()},onChange:e=>{const t=Cp(e,!0),n=t.endsWith(".");if(o&&kp.test(t)||!o&&jp.test(t)){if(p(t),n)return;if(""===t)return i(null);const e=o?parseFloat(t):parseInt(t,10);isNaN(e)||l===e||i(e)}},value:d?f:Op(f,o)}))},exports.OfferSignatoryForm=({offerSignatoryInfo:t,errors:o,customErrorMessages:a={},updateOfferSignatory:i})=>{const{dateOfBirth:s,placeOfBirth:l,street:c,streetNumber:d,city:u,postCode:f,maritalStatus:p}=t,[h,g]=n.useState(r.listToString([d,c,f,u])),m=!!o.street||!!o.city||!!o.postCode,b=Object.assign(Object.assign({},Dh),a);return e.jsxs("div",{children:[e.jsxs(_,{children:[e.jsx(np,{dataTest:"offer-signatory-address",disabled:!1,label:Ah,value:h,onChange:e=>{g(e),e||i(Object.assign(Object.assign({},t),{city:"",postCode:"",street:"",streetNumber:""}))},onSelect:e=>{const{city:n,postalCode:o,street:a,streetNumber:s}=r.getFormattedAddressComponent(e);i(Object.assign(Object.assign({},t),{city:(null==n?void 0:n.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(jn,{dataTest:"address",children:b.address})]}),e.jsx(_,{children:e.jsxs(Q,{children:[e.jsxs("div",{children:[e.jsx(Uf,{dataTest:"offer-signatory-birth-date",label:Ih,disabled:!1,error:!!o.dateOfBirth,onChange:e=>e&&i(Object.assign(Object.assign({},t),{dateOfBirth:new Date(e)})),value:s?s.toISOString():""}),o.dateOfBirth&&e.jsx(jn,{dataTest:"dateOfBirth",children:b.dateOfBirth})]}),e.jsxs("div",{children:[e.jsx($e,{dataTest:"offer-signatory-birth-place",label:Nh,error:!!o.placeOfBirth,disabled:!1,onChange:e=>i(Object.assign(Object.assign({},t),{placeOfBirth:e})),value:l}),o.placeOfBirth&&e.jsx(jn,{dataTest:"placeOfBirth",children:b.placeOfBirth})]})]})}),e.jsx(_,{children:e.jsxs(Q,{children:[e.jsxs("div",{children:[e.jsx(ld,{dataTest:"offer-signatory-marital-status",disabled:!1,error:!!o.maritalStatus,label:Th,onSelect:({value:e})=>i(Object.assign(Object.assign({},t),{maritalStatus:e})),option:Fh.find((({value:e})=>e===p))||null,options:Fh}),o.maritalStatus&&e.jsx(jn,{dataTest:"maritalStatus",children:b.maritalStatus})]}),e.jsx("div",{})]})})]})},exports.OfferSignatoryFormSchema=Lh,exports.Option=Xc,exports.Phone=Zs,exports.PhoneAndFlag=({phone:t,color:r=T.dark.base,errorMessage:o})=>{const a=t?ml(t):null;return e.jsx(Rh,{children:a&&"FR"===(null==a?void 0:a.country)?e.jsx(_h,{"data-test":"french-phone",color:r,children:hl(a.number)}):a?e.jsxs(n.Fragment,{children:[e.jsx(Mh,{"data-test":"flag",alt:a.country,src:`https://cdn.proprioo.fr/assets/flags/${a.country}.svg`}),e.jsx(_h,{"data-test":"phone",color:r,children:hl(a.number)})]}):e.jsx(Bh,{"data-test":"incorrect-phone",children:o})})},exports.PhoneInput=({label:t,value:n,onChange:r,dataTest:o,disabled:a=!1,error:i=!1,phoneWithFlags:s=!1,required:l=!1})=>e.jsx($e,{dataTest:o||"customer-phone",name:"phone",type:exports.InputType.TEL,disabled:a,error:i,label:t,value:n,onChange:r,inputElement:Zs,phoneWithFlags:s,required:l}),exports.PlacesAutocomplete=Jl,exports.Radio=({name:t,label:n,id:r,isChecked:o,onChange:a,value:i,dataTest:s})=>{const l=`${r}-${t}`;return e.jsxs(Sp,{"data-test":s||`radio-${t}`,children:[e.jsx(Pp,{type:"radio",id:l,name:t,value:i,onChange:e=>a(e),checked:o}),e.jsx(Ep,{htmlFor:l,children:n})]})},exports.Row=Q,exports.Select=ld,exports.SingleMonth=t=>e.jsx(nn,{children:e.jsx(en,Object.assign({},t))}),exports.Subtitle=({text:t,color:n=T.dark.base})=>e.jsx(ih,{"data-test":"subtitle",children:e.jsx(sh,{color:n,"data-test":"subtitle-label",children:t})}),exports.Tag=({appearance:t=exports.TagAppearance.BUSINESS,closeAriaLabel:r="Supprimer",color:o=exports.TagColorsTypes.TERRACOTA,dataTest:a="basic-tag",icon:i,labels:s,numberOfTags:l=s.length,onClose:c})=>{const d=s.slice(0,l),u=s.slice(l);return e.jsxs(n.Fragment,{children:[d.map(((n,s)=>e.jsxs(gh,{appearance:t,color:o,close:!!c,"data-test":a,icon:!!i,children:[i&&e.jsx($h,{color:o,"data-test":"tag-icon",children:i}),n,c&&e.jsx(mh,{"aria-label":r,appearance:t,"data-test":"tag-closer",onClick:c,children:e.jsx(dh,{})})]},s))),Boolean(u.length)&&e.jsxs(vh,{"data-test":"list-tag",children:[e.jsxs(gh,{appearance:t,color:o,"data-test":a,icon:!!i,children:[i&&e.jsx($h,{color:o,"data-test":"tag-icon",children:i}),`+ ${u.length}`]}),e.jsx(yh,{appearance:t,color:o,children:u.map(((t,n)=>e.jsx(bh,{"data-test":"tag-element",children:t},n)))})]})]})},exports.TagBase=fh,exports.TextToggle=({text:t,dataTest:r="text-toggle",isComment:o=!1,maxLength:a=300,showLessLabel:i="Lire moins",showMoreLabel:s="Lire plus",title:l})=>{const c=(e=>e.split(Ph).filter(Boolean).join(" "))(t),d=c.length>a,[u,f]=n.useState(d),p=((e,t)=>{if(e.length<=t||t<0)return e;if(" "===e.charAt(t))return e.slice(0,t).concat("…");const n=e.slice(0,t),[r]=e.slice(t,e.length).split(" ");return n.concat(r).concat("…")})(c,a);return e.jsxs(kh,{"data-test":r,children:[l&&e.jsx(Sh,{"data-test":"text-toggle-title",children:`${l} : `}),e.jsx(Eh,{isComment:o,children:u?p:c}),d&&e.jsx(jh,{isComment:o,hasTitle:Boolean(l),onClick:()=>f(!u),children:u?s:i})]})},exports.Textarea=Ch,exports.Toggle=({label:t,id:n,checked:r=!1,disabled:o=!1,name:a,dataTest:i,onChange:s})=>e.jsxs(ah,{children:[e.jsx(rh,{checked:r,onChange:e=>{s(e.target.checked)},icons:!1,name:a,id:n,disabled:o,"data-test":i||`toggle-${a}`}),e.jsx(oh,{htmlFor:n,disabled:o,"data-test":"toggle-label",children:t})]}),exports.Tooltip=xf,exports.UserForm=({user:t,errors:n,updateUser:r,disabledFields:o={},emailSuggestionI18nLabels:a,errorMessages:i={},isEmailSuggestionEnabled:s=!0,labels:l=dl,phoneWithFlags:c=!1})=>{const{firstName:d,lastName:u,email:f,phone:p}=t,h=Object.assign(Object.assign({},ul),i);return e.jsxs("div",{children:[e.jsx(_,{children:e.jsxs(Q,{children:[e.jsxs("div",{children:[e.jsx($e,{dataTest:"customer-firstName",name:"first-name",type:exports.InputType.TEXT,disabled:o.firstName,error:!!n.firstName,label:l.firstName,value:d,onChange:e=>r(Object.assign(Object.assign({},t),{firstName:e}),"user.firstName")}),n.firstName&&e.jsx(jn,{dataTest:"invalid-firstName",children:h.firstName})]}),e.jsxs("div",{children:[e.jsx($e,{dataTest:"customer-lastName",name:"last-name",type:exports.InputType.TEXT,disabled:o.lastName,error:!!n.lastName,label:l.lastName,value:u,onChange:e=>r(Object.assign(Object.assign({},t),{lastName:e}),"user.lastName")}),n.lastName&&e.jsx(jn,{dataTest:"invalid-lastName",children:h.lastName})]})]})}),e.jsx(_,{children:e.jsxs(Q,{children:[e.jsxs("div",{children:[e.jsx(cl,{dataTest:"customer-email",name:"email",disabled:o.email,error:!!n.email,label:l.email,isSuggestionEnabled:s,i18nLabels:a,value:f,onChange:e=>r(Object.assign(Object.assign({},t),{email:fl(e)}),"user.email")}),n.email&&e.jsx(jn,{dataTest:"invalid-email",children:h.email})]}),e.jsxs("div",{children:[e.jsx($e,{dataTest:"customer-phone",name:"phone",type:exports.InputType.TEL,disabled:o.phone,error:!!n.phone,label:l.phone,value:p,onChange:e=>r(Object.assign(Object.assign({},t),{phone:e||null}),"user.phone"),inputElement:Zs,phoneWithFlags:c}),n.phone&&e.jsx(jn,{dataTest:"invalid-phone",children:h.phone})]})]})})]})},exports.UserSchema=yl,exports.breakpoints=P,exports.colors=T,exports.convertPxToRem=D,exports.createAction=ne,exports.fonts=M,exports.formatInternationalPhone=hl,exports.formatPhoneNumber=e=>qs(e,Vs),exports.getCarbonFootprintLevel=un,exports.getConsumptionLevel=dn,exports.getEPCLevel=fn,exports.getEPCLevels=(e,t,n)=>{const r=dn(t,n),o=un(e,n);return{consumptionLevel:r,carbonFootprintLevel:o,EPCLevel:fn(r,o,n)}},exports.getGeoSearchSuggestions=le,exports.isTouchDevice=ae,exports.isValidDate=zf,exports.isValidPhoneNumber=gl,exports.paragraphs=Z,exports.parsePhoneNumber=ml,exports.radius=J,exports.resetCssButton=ie,exports.scrollbar=te,exports.shadows=ee,exports.titles=fc,exports.useDebounce=nl,exports.useEmailSuggestion=al,exports.useMobileDevice=()=>re(`(max-width: ${P.base-1}px)`),exports.useModal=({onAbort:t,onOpen:r,onClose:o}={})=>{const[{isAborting:a,fade:i,isLoading:s,isOpen:l},c]=n.useReducer(lp,{isAborting:!1,fade:ap.IN,isOpen:!1,isLoading:!1}),d=(()=>{const e=n.useRef(!0);return n.useEffect((()=>{e.current=!1}),[]),e.current})(),u=n.useCallback((()=>{l&&c(sp.toggleLoad())}),[l]),f=n.useCallback((()=>{r&&r(),c(sp.open())}),[r]),p=n.useCallback((()=>{!s&&l&&c(sp.close())}),[s,l]),h=n.useCallback((()=>{!s&&l&&c(sp.abort())}),[s,l]),g=n.useCallback((()=>c(sp.animationEnd())),[]),m=n.useCallback((()=>{a&&t&&t(),o&&o(),c(sp.reset())}),[a,t,o]);n.useEffect((()=>{l||d||m()}),[l]);return{closeModal:p,createModal:({children:t,icon:r,isAlternative:o=!1,isClosable:a=!0,isFullScreen:c,noPadding:d,text:u,title:f})=>l?e.jsx(xp,{abortModal:h,fade:i,icon:r,isAlternative:o,isClosable:a,isFullScreen:c,isLoading:s,noPadding:d,onAnimationEnd:g,text:u,title:f,children:t}):e.jsx(n.Fragment,{}),openModal:f,toggleLoader:u}},exports.useOnClickOutside=S,exports.useSmallSmartphoneDevice=()=>re(`(max-width: ${P.smallest-1}px)`),exports.useSmartphoneDevice=oe;
|
|
2685
|
+
`;exports.Accordion=({children:t,preExpanded:n,allowMultipleExpanded:r})=>e.jsx(nc,{preExpanded:n,allowMultipleExpanded:r,children:t}),exports.AccordionHeader=({isAlternative:t,basic:n,children:r})=>e.jsx(wc,{children:({expanded:o,toggleExpanded:a})=>e.jsxs(pc,{onClick:()=>a(),"data-test":"accordion-header",children:[e.jsx(hc,{isAlternative:t,basic:n,children:r}),e.jsx(gc,{isOpen:o,children:e.jsx(Oc,{})})]})}),exports.AccordionItem=Cc,exports.AccordionPanel=({children:t,unmountOnCollapse:r})=>e.jsx(wc,{children:({expanded:o})=>e.jsx(mc,{isOpen:o,children:!r||o?e.jsx("div",{"data-test":"panel-content",children:t}):e.jsx(n.Fragment,{})})}),exports.AgentBanner=({children:t,agent:{image_agent:n,name:r,zone:o,fonction:a},rounded:i=!0})=>e.jsxs(Sc,{"data-test":"agent-card",rounded:i,children:[e.jsxs(Nc,{children:[r&&e.jsx(jc,{title:r,color:T.green.base}),a&&e.jsx(Ac,{"data-test":"agent-fonction",children:a}),o&&e.jsx(Ac,{"data-test":"agent-zone",children:o}),t]}),e.jsx(Pc,{children:e.jsx(Ic,{children:e.jsx(Ec,{"data-test":"agent-image",src:n,loading:"lazy"})})})]}),exports.AgentCard=Uc,exports.Autocomplete=t=>{var{list:o,native:a=!1,option:i,onSelect:s}=t,l=Js(t,["list","native","option","onSelect"]);const[{hasFullList:c,internalValue:d,isFocused:u},f]=n.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})=>r.normalizeString(e).includes(r.normalizeString(d)))),h=Boolean(d.length>1&&!c)?p:o,g=(e="")=>{e||s(null),f({hasFullList:!1,internalValue:e})};return n.useEffect((()=>{(null==i?void 0:i.label)?g(i.label):f({internalValue:""})}),[i]),e.jsx(ld,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:d},l))},exports.BagossFont=L,exports.Block=({children:t,picture:n,isCompact:r,isRounded:o})=>e.jsxs(ud,{isRounded:o,"data-test":"block",children:[n&&e.jsx(dd,{picture:n,"data-test":"picture"}),e.jsx(cd,{isCompact:r,children:t})]}),exports.BlockCheckIcon=({onClick:t,image:n,checked:r,name:o,text:a,dataTest:i})=>{const s=`checkbox-input-label-${a}`;return e.jsxs(Fd,{checked:r,"data-test":i||`checkbox-button-${a}`,children:[e.jsx(Td,{"aria-labelledby":s,checked:r,name:o,onChange:({target:e})=>t(e.checked),type:"checkbox"}),e.jsx(Dd,{children:n}),e.jsx("span",{id:s,children:a})]})},exports.BlockIcon=function({onClick:t,image:n,text:r,name:o,selectedValue:a,dataTest:i,value:s,isContentCentered:l=!1}){const c=a===s,d=`radio-input-label-${r}`;return e.jsxs(Ad,{"data-test":i||`radio-button-${r}`,isActive:c,isContentCentered:l,children:[e.jsx(Td,{"aria-labelledby":d,checked:c,name:o,onChange:()=>t(s),type:"radio"}),e.jsx("span",{id:d,children:r}),n]})},exports.Burger=({isOpen:t,isSmall:n=!1,onClick:r,color:o})=>e.jsxs(hd,{"data-test":"burger",onClick:r,isOpen:t,isSmall:n,color:o,children:[e.jsx(pd,{}),e.jsx(pd,{}),e.jsx(pd,{})]}),exports.Button=t=>{var{appearance:r=exports.ButtonAppearance.PRIMARY,icon:o,iconPosition:a=exports.IconPosition.RIGHT,label:i,rounded:s=!1,size:l=exports.ButtonSizes.LARGE,theme:c=exports.ButtonTheme.BLACK}=t,d=Js(t,["appearance","icon","iconPosition","label","rounded","size","theme"]);return e.jsxs(Sd,Object.assign({appearance:r,"aria-label":i,icon:o,iconPosition:a,rounded:s,size:l,theme:c},d,{children:[o&&e.jsx(jd,{appearance:r,iconPosition:a,size:l,theme:c,children:n.isValidElement(o)?n.cloneElement(o,{"aria-hidden":!0,focusable:!1}):o}),!s&&e.jsx(kd,{"data-test":"label",children:i})]}))},exports.ButtonRadio=Id,exports.ButtonRadioGroup=({label:t,name:n,onChange:r,options:o,value:a})=>e.jsx(Nd,{role:"radiogroup","aria-label":t,children:o.map((t=>e.jsx(Id,{isChecked:a===t.value,name:n,option:t,onClick:()=>r(t)},`radio-option-${t.value}`)))}),exports.Card=({after:t,children:r,closeToggleAriaLabel:o="Cacher le contenu",dataTest:a="card-layout",disabled:i=!1,hasToggle:s=!1,headerIcon:l,headerIconColor:c=T.dark.base,headerIconSize:d=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 $=oe(),[x,w]=n.useState(u||!1),C=void 0!==u,O=C&&s&&!g,k=C&&s&&!m;return n.useEffect((()=>{C&&w(u)}),[u,C]),e.jsxs(Cf,{"data-test":a,disabled:i,id:f,children:[e.jsxs(Of,{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(Pf,{"data-test":"title-container",children:[l&&e.jsx(Ef,{headerIconColor:c,headerIconSize:d,children:l}),e.jsx("div",{dangerouslySetInnerHTML:{__html:f},"data-test":`title-${a}`}),p&&e.jsx(jf,{children:p}),v&&e.jsx(kf,{onClick:e=>e.stopPropagation(),children:e.jsx(xf,{placement:"auto",tooltip:v,children:e.jsx(Sf,{children:e.jsx(Ld,{fill:T.grey.base})})})})]}),(t||s)&&e.jsxs(If,{children:[t&&e.jsx(kf,{onClick:e=>e.stopPropagation(),children:t}),s&&e.jsxs(Af,{children:[!$&&y&&e.jsx("span",{"data-test":"toggle-label",children:y}),e.jsx(Df,{"aria-controls":f,"aria-expanded":x,"aria-label":x?o:y||b})]})]})]}),(!s&&r||s&&x)&&e.jsx(Nf,{"data-test":"body-card",noPadding:h,children:r})]})},exports.Checkbox=({checkboxSize:t=exports.CheckboxSize.SMALL,checked:n,children:o,dataTest:a,disabled:i,id:s,indeterminate:l=!1,label:c,name:d,onChange:u})=>{const f=`${s}-${d}`;return e.jsxs(Lf,{checkboxSize:t,"data-test":a||`checkbox-${d}`,children:[e.jsx(_f,Object.assign({},Boolean(o)&&{"aria-label":c},{checkboxSize:t,checked:n,"data-test":a?`checkbox-${a}`:"checkbox-input",disabled:i,id:f,indeterminate:l,name:d,onChange:({target:e})=>u(e.checked),type:"checkbox"})),e.jsx(Rf,{checkboxSize:t,"data-test":a?`checkbox-label-${a}`:"checkbox-label",hasLabel:r.isNotEmpty(c),htmlFor:f,children:o||e.jsx(Mf,{dangerouslySetInnerHTML:{__html:c}})})]})},exports.Container=F,exports.DateInput=Gf,exports.DatePicker=({date:t,dataTest:r,disabled:o,disabledDays:a,error:i,formatter:s="EEEE dd MMMM yyyy",label:l,locale:c,onDateChange:d,zIndex:u})=>{const f=n.useRef(null),[p,h]=n.useReducer(((e,t)=>Object.assign(Object.assign({},e),t)),{isFocused:!1,isOpen:!1}),{isOpen:g,isFocused:m}=p;return S(f,(({target:e})=>{var t;(null===(t=f.current)||void 0===t?void 0:t.contains(e))||h({isFocused:!1,isOpen:!1})})),e.jsx(tn,{ref:f,isOpen:g,"data-test":r||"date-picker-wrapper",onClick:()=>{m||o||h({isFocused:!0,isOpen:!0})},children:e.jsx($e,{disabled:o,label:l,error:i,zIndex:u,focused:m,value:t&&b.default(t,s,{locale:c}),field:g?e.jsx(en,{date:t,disabledDays:a,locale:c,onDateChange:e=>{d(e||null),h({isFocused:!1,isOpen:!1})}}):e.jsx(n.Fragment,{})})})},exports.EmailInput=cl,exports.Energy=({carbonFootprint:t,carbonFootprintLevel:n,consumption:r,consumptionLevel:o,EPCLevel:a,textContent:i})=>{const s=1===a?0:25*(a-1)+10*(a-2),{blankEPC:l,carbonFootprintLegend:c,carbonFootprintTitle:d,carbonFootprintUnit:u,consumptionLegend:f,consumptionTitle:p,consumptionUnit:h,EPCLegend:g,EPCTitle:m}=i;return t&&r?e.jsxs("div",{children:[e.jsx(gn,{children:m}),e.jsxs(hn,{"aria-label":m,role:"document",children:[e.jsx("div",{"aria-label":g,role:"group",tabIndex:0,children:e.jsx(bn,{children:e.jsx(yn,{background:ln(a),isMainScore:!0,letterSize:25,pos:s,children:exports.EnergyLevel[a]})})}),e.jsxs(wn,{children:[e.jsxs(xn,{"aria-label":f,role:"group",tabIndex:0,children:[e.jsx(vn,{children:p}),e.jsxs($n,{children:[e.jsx(Cn,{children:r}),e.jsx(yn,{background:ln(o),children:exports.EnergyLevel[o]})]}),e.jsx(On,{children:h})]}),e.jsxs(xn,{"aria-label":c,role:"group",tabIndex:0,children:[e.jsx(vn,{children:d}),e.jsxs($n,{children:[e.jsx(Cn,{children:t}),e.jsx(yn,{background:cn(n),children:exports.EnergyLevel[n]})]}),e.jsx(On,{children:u})]})]})]})]}):e.jsx(mn,{children:l})},exports.ErrorLayout=jn,exports.Fieldset=({label:t,active:n=!1,error:r=!1,children:o})=>e.jsxs(Hf,{"data-test":"fieldset-layout",active:n,error:r,children:[e.jsx(Wf,{"data-test":"fieldset-label",children:t}),e.jsx(ge,{isVisible:!0,children:e.jsx("span",{dangerouslySetInnerHTML:{__html:t}})}),e.jsx(qf,{children:o})]}),exports.GmapsAutocomplete=np,exports.GmapsGeocode=rp,exports.H1=Ap,exports.H2=Dp,exports.H3=Lp,exports.H4=Mp,exports.H5=jc,exports.H6=Bp,exports.Input=$e,exports.InputLoading=()=>e.jsx(Cp,{"data-test":"input-loading"}),exports.InterFont=R,exports.Line=_,exports.Loader=ap,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=t=>{var{focused:r,isFloat:o=!1,onBlur:a,onChange:i,onFocus:s,value:l}=t,c=Js(t,["focused","isFloat","onBlur","onChange","onFocus","value"]);const[d,u]=n.useState(Boolean(r)),[f,p]=n.useState(l?l.toString():"");return n.useEffect((()=>{if(null===l)return p("");const e=null==l?void 0:l.toString();e&&e!==f&&p(e)}),[l]),e.jsx($e,Object.assign({},c,{onFocus:()=>{u(!0),s&&s()},onBlur:()=>{u(!1),p(((e,t)=>{const n=Op(e),r=t?parseFloat(n):parseInt(n,10);return isNaN(r)?"":r.toString()})(f,o)),a&&a()},onChange:e=>{const t=Op(e,!0),n=t.endsWith(".");if(o&&jp.test(t)||!o&&Sp.test(t)){if(p(t),n)return;if(""===t)return i(null);const e=o?parseFloat(t):parseInt(t,10);isNaN(e)||l===e||i(e)}},value:d?f:kp(f,o)}))},exports.OfferSignatoryForm=({offerSignatoryInfo:t,errors:o,customErrorMessages:a={},updateOfferSignatory:i})=>{const{dateOfBirth:s,placeOfBirth:l,street:c,streetNumber:d,city:u,postCode:f,maritalStatus:p}=t,[h,g]=n.useState(r.listToString([d,c,f,u])),m=!!o.street||!!o.city||!!o.postCode,b=Object.assign(Object.assign({},Fh),a);return e.jsxs("div",{children:[e.jsxs(_,{children:[e.jsx(rp,{dataTest:"offer-signatory-address",disabled:!1,label:Th,value:h,onChange:e=>{g(e),e||i(Object.assign(Object.assign({},t),{city:"",postCode:"",street:"",streetNumber:""}))},onSelect:e=>{const{city:n,postalCode:o,street:a,streetNumber:s}=r.getFormattedAddressComponent(e);i(Object.assign(Object.assign({},t),{city:(null==n?void 0:n.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(jn,{dataTest:"address",children:b.address})]}),e.jsx(_,{children:e.jsxs(Q,{children:[e.jsxs("div",{children:[e.jsx(Gf,{dataTest:"offer-signatory-birth-date",label:Nh,disabled:!1,error:!!o.dateOfBirth,onChange:e=>e&&i(Object.assign(Object.assign({},t),{dateOfBirth:new Date(e)})),value:s?s.toISOString():""}),o.dateOfBirth&&e.jsx(jn,{dataTest:"dateOfBirth",children:b.dateOfBirth})]}),e.jsxs("div",{children:[e.jsx($e,{dataTest:"offer-signatory-birth-place",label:Ah,error:!!o.placeOfBirth,disabled:!1,onChange:e=>i(Object.assign(Object.assign({},t),{placeOfBirth:e})),value:l}),o.placeOfBirth&&e.jsx(jn,{dataTest:"placeOfBirth",children:b.placeOfBirth})]})]})}),e.jsx(_,{children:e.jsxs(Q,{children:[e.jsxs("div",{children:[e.jsx(ld,{dataTest:"offer-signatory-marital-status",disabled:!1,error:!!o.maritalStatus,label:Dh,onSelect:({value:e})=>i(Object.assign(Object.assign({},t),{maritalStatus:e})),option:Lh.find((({value:e})=>e===p))||null,options:Lh}),o.maritalStatus&&e.jsx(jn,{dataTest:"maritalStatus",children:b.maritalStatus})]}),e.jsx("div",{})]})})]})},exports.OfferSignatoryFormSchema=Rh,exports.Option=Xc,exports.Phone=Zs,exports.PhoneAndFlag=({phone:t,color:r=T.dark.base,errorMessage:o})=>{const a=t?ml(t):null;return e.jsx(Mh,{children:a&&"FR"===(null==a?void 0:a.country)?e.jsx(Bh,{"data-test":"french-phone",color:r,children:hl(a.number)}):a?e.jsxs(n.Fragment,{children:[e.jsx(_h,{"data-test":"flag",alt:a.country,src:`https://cdn.proprioo.fr/assets/flags/${a.country}.svg`}),e.jsx(Bh,{"data-test":"phone",color:r,children:hl(a.number)})]}):e.jsx(zh,{"data-test":"incorrect-phone",children:o})})},exports.PhoneInput=({label:t,value:n,onChange:r,dataTest:o,disabled:a=!1,error:i=!1,phoneWithFlags:s=!1,required:l=!1})=>e.jsx($e,{dataTest:o||"customer-phone",name:"phone",type:exports.InputType.TEL,disabled:a,error:i,label:t,value:n,onChange:r,inputElement:Zs,phoneWithFlags:s,required:l}),exports.PlacesAutocomplete=Jl,exports.Radio=({name:t,label:n,id:r,isChecked:o,onChange:a,value:i,dataTest:s})=>{const l=`${r}-${t}`;return e.jsxs(Ep,{"data-test":s||`radio-${t}`,children:[e.jsx(Ip,{type:"radio",id:l,name:t,value:i,onChange:e=>a(e),checked:o}),e.jsx(Pp,{htmlFor:l,children:n})]})},exports.Row=Q,exports.Select=ld,exports.SingleMonth=t=>e.jsx(nn,{children:e.jsx(en,Object.assign({},t))}),exports.Subtitle=({text:t,color:n=T.dark.base})=>e.jsx(sh,{"data-test":"subtitle",children:e.jsx(lh,{color:n,"data-test":"subtitle-label",children:t})}),exports.Tag=({appearance:t=exports.TagAppearance.BUSINESS,closeAriaLabel:r="Supprimer",color:o=exports.TagColorsTypes.TERRACOTA,dataTest:a="basic-tag",icon:i,labels:s,numberOfTags:l=s.length,onClose:c})=>{const d=s.slice(0,l),u=s.slice(l);return e.jsxs(n.Fragment,{children:[d.map(((n,s)=>e.jsxs(mh,{appearance:t,color:o,close:!!c,"data-test":a,icon:!!i,children:[i&&e.jsx(xh,{color:o,"data-test":"tag-icon",children:i}),n,c&&e.jsx(bh,{"aria-label":r,appearance:t,"data-test":"tag-closer",onClick:c,children:e.jsx(uh,{})})]},s))),Boolean(u.length)&&e.jsxs($h,{"data-test":"list-tag",children:[e.jsxs(mh,{appearance:t,color:o,"data-test":a,icon:!!i,children:[i&&e.jsx(xh,{color:o,"data-test":"tag-icon",children:i}),`+ ${u.length}`]}),e.jsx(vh,{appearance:t,color:o,children:u.map(((t,n)=>e.jsx(yh,{"data-test":"tag-element",children:t},n)))})]})]})},exports.TagBase=ph,exports.TextToggle=({text:t,dataTest:r="text-toggle",isComment:o=!1,maxLength:a=300,showLessLabel:i="Lire moins",showMoreLabel:s="Lire plus",title:l})=>{const c=(e=>e.split(Ih).filter(Boolean).join(" "))(t),d=c.length>a,[u,f]=n.useState(d),p=((e,t)=>{if(e.length<=t||t<0)return e;if(" "===e.charAt(t))return e.slice(0,t).concat("…");const n=e.slice(0,t),[r]=e.slice(t,e.length).split(" ");return n.concat(r).concat("…")})(c,a);return e.jsxs(jh,{"data-test":r,children:[l&&e.jsx(Eh,{"data-test":"text-toggle-title",children:`${l} : `}),e.jsx(Ph,{isComment:o,children:u?p:c}),d&&e.jsx(Sh,{isComment:o,hasTitle:Boolean(l),onClick:()=>f(!u),children:u?s:i})]})},exports.Textarea=Oh,exports.Toggle=({label:t,id:n,checked:r=!1,disabled:o=!1,name:a,dataTest:i,onChange:s})=>e.jsxs(ih,{children:[e.jsx(oh,{checked:r,onChange:e=>{s(e.target.checked)},icons:!1,name:a,id:n,disabled:o,"data-test":i||`toggle-${a}`}),e.jsx(ah,{htmlFor:n,disabled:o,"data-test":"toggle-label",children:t})]}),exports.Tooltip=xf,exports.UserForm=({user:t,errors:n,updateUser:r,disabledFields:o={},emailSuggestionI18nLabels:a,errorMessages:i={},isEmailSuggestionEnabled:s=!0,labels:l=dl,phoneWithFlags:c=!1})=>{const{firstName:d,lastName:u,email:f,phone:p}=t,h=Object.assign(Object.assign({},ul),i);return e.jsxs("div",{children:[e.jsx(_,{children:e.jsxs(Q,{children:[e.jsxs("div",{children:[e.jsx($e,{dataTest:"customer-firstName",name:"first-name",type:exports.InputType.TEXT,disabled:o.firstName,error:!!n.firstName,label:l.firstName,value:d,onChange:e=>r(Object.assign(Object.assign({},t),{firstName:e}),"user.firstName")}),n.firstName&&e.jsx(jn,{dataTest:"invalid-firstName",children:h.firstName})]}),e.jsxs("div",{children:[e.jsx($e,{dataTest:"customer-lastName",name:"last-name",type:exports.InputType.TEXT,disabled:o.lastName,error:!!n.lastName,label:l.lastName,value:u,onChange:e=>r(Object.assign(Object.assign({},t),{lastName:e}),"user.lastName")}),n.lastName&&e.jsx(jn,{dataTest:"invalid-lastName",children:h.lastName})]})]})}),e.jsx(_,{children:e.jsxs(Q,{children:[e.jsxs("div",{children:[e.jsx(cl,{dataTest:"customer-email",name:"email",disabled:o.email,error:!!n.email,label:l.email,isSuggestionEnabled:s,i18nLabels:a,value:f,onChange:e=>r(Object.assign(Object.assign({},t),{email:fl(e)}),"user.email")}),n.email&&e.jsx(jn,{dataTest:"invalid-email",children:h.email})]}),e.jsxs("div",{children:[e.jsx($e,{dataTest:"customer-phone",name:"phone",type:exports.InputType.TEL,disabled:o.phone,error:!!n.phone,label:l.phone,value:p,onChange:e=>r(Object.assign(Object.assign({},t),{phone:e||null}),"user.phone"),inputElement:Zs,phoneWithFlags:c}),n.phone&&e.jsx(jn,{dataTest:"invalid-phone",children:h.phone})]})]})})]})},exports.UserSchema=yl,exports.breakpoints=P,exports.colors=T,exports.convertPxToRem=D,exports.createAction=ne,exports.fonts=M,exports.formatISODate=zf,exports.formatInternationalPhone=hl,exports.formatPhoneNumber=e=>qs(e,Vs),exports.getCarbonFootprintLevel=un,exports.getConsumptionLevel=dn,exports.getEPCLevel=fn,exports.getEPCLevels=(e,t,n)=>{const r=dn(t,n),o=un(e,n);return{consumptionLevel:r,carbonFootprintLevel:o,EPCLevel:fn(r,o,n)}},exports.getGeoSearchSuggestions=le,exports.isTouchDevice=ae,exports.isValidDate=Uf,exports.isValidPhoneNumber=gl,exports.paragraphs=Z,exports.parsePhoneNumber=ml,exports.radius=J,exports.resetCssButton=ie,exports.scrollbar=te,exports.shadows=ee,exports.titles=fc,exports.useDebounce=nl,exports.useEmailSuggestion=al,exports.useMobileDevice=()=>re(`(max-width: ${P.base-1}px)`),exports.useModal=({onAbort:t,onOpen:r,onClose:o}={})=>{const[{isAborting:a,fade:i,isLoading:s,isOpen:l},c]=n.useReducer(cp,{isAborting:!1,fade:ip.IN,isOpen:!1,isLoading:!1}),d=(()=>{const e=n.useRef(!0);return n.useEffect((()=>{e.current=!1}),[]),e.current})(),u=n.useCallback((()=>{l&&c(lp.toggleLoad())}),[l]),f=n.useCallback((()=>{r&&r(),c(lp.open())}),[r]),p=n.useCallback((()=>{!s&&l&&c(lp.close())}),[s,l]),h=n.useCallback((()=>{!s&&l&&c(lp.abort())}),[s,l]),g=n.useCallback((()=>c(lp.animationEnd())),[]),m=n.useCallback((()=>{a&&t&&t(),o&&o(),c(lp.reset())}),[a,t,o]);n.useEffect((()=>{l||d||m()}),[l]);return{closeModal:p,createModal:({children:t,icon:r,isAlternative:o=!1,isClosable:a=!0,isFullScreen:c,noPadding:d,text:u,title:f})=>l?e.jsx(wp,{abortModal:h,fade:i,icon:r,isAlternative:o,isClosable:a,isFullScreen:c,isLoading:s,noPadding:d,onAnimationEnd:g,text:u,title:f,children:t}):e.jsx(n.Fragment,{}),openModal:f,toggleLoader:u}},exports.useOnClickOutside=S,exports.useSmallSmartphoneDevice=()=>re(`(max-width: ${P.smallest-1}px)`),exports.useSmartphoneDevice=oe;
|
|
2686
2686
|
//# sourceMappingURL=index.js.map
|