@proprioo/salatim 37.0.10 → 37.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +101 -85
- package/lib/index.js.map +1 -1
- package/lib/ui/src/numberInput/NumberInput.d.ts +1 -0
- package/lib/ui/src/radio/Radio.d.ts +1 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -2309,9 +2309,9 @@ object-assign
|
|
|
2309
2309
|
background: ${E.grey.base20};
|
|
2310
2310
|
opacity: 0.3;
|
|
2311
2311
|
border-radius: ${I(4)};
|
|
2312
|
-
`,Ep=(e,t)=>{const r=e.replace(/\s/g,"").replace(",",".");return t?r:r.replace(/\.$/,"")},Ip=(e,t)=>{const r=Ep(e,!0),[n,o]=r.split("."),a=parseInt(n,10);return isNaN(a)?"":`${Intl.NumberFormat("fr").format(a)}${t&&void 0!==o?`.${o}`:""}`.replace(/\u202f/gm," ")},Np=/^\d*
|
|
2312
|
+
`,Ep=(e,t)=>{const r=e.replace(/\s/g,"").replace(",",".");return t?r:r.replace(/\.$/,"")},Ip=(e,t)=>{const r=Ep(e,!0),[n,o]=r.split("."),a=parseInt(n,10);return isNaN(a)?"":`${Intl.NumberFormat("fr").format(a)}${t&&void 0!==o?`.${o}`:""}`.replace(/\u202f/gm," ")},Np=/^\d*[.,]?\d*$/,jp=/^\d*$/,Pp=/^-?\d*[.,]?\d*$/,Tp=/^-?\d*$/,Ap=y.default.div`
|
|
2313
2313
|
padding: ${I(4)} ${I(8)} ${I(4)} 0;
|
|
2314
|
-
`,
|
|
2314
|
+
`,Dp=y.default.label`
|
|
2315
2315
|
${P};
|
|
2316
2316
|
cursor: pointer;
|
|
2317
2317
|
color: ${E.dark.base};
|
|
@@ -2321,11 +2321,11 @@ object-assign
|
|
|
2321
2321
|
::selection {
|
|
2322
2322
|
background-color: transparent;
|
|
2323
2323
|
}
|
|
2324
|
-
`,
|
|
2324
|
+
`,Mp=y.default.input`
|
|
2325
2325
|
opacity: 0;
|
|
2326
2326
|
margin-right: ${I(16)};
|
|
2327
2327
|
|
|
2328
|
-
+ ${
|
|
2328
|
+
+ ${Dp} {
|
|
2329
2329
|
display: inline-block;
|
|
2330
2330
|
position: relative;
|
|
2331
2331
|
|
|
@@ -2361,13 +2361,13 @@ object-assign
|
|
|
2361
2361
|
|
|
2362
2362
|
&:focus,
|
|
2363
2363
|
&:hover {
|
|
2364
|
-
+ ${
|
|
2364
|
+
+ ${Dp}::before {
|
|
2365
2365
|
border-color: ${E.terracota.base};
|
|
2366
2366
|
}
|
|
2367
2367
|
}
|
|
2368
2368
|
|
|
2369
2369
|
&:checked {
|
|
2370
|
-
+ ${
|
|
2370
|
+
+ ${Dp} {
|
|
2371
2371
|
::before {
|
|
2372
2372
|
border-color: ${E.terracota.base20};
|
|
2373
2373
|
}
|
|
@@ -2379,22 +2379,38 @@ object-assign
|
|
|
2379
2379
|
}
|
|
2380
2380
|
}
|
|
2381
2381
|
}
|
|
2382
|
-
|
|
2382
|
+
|
|
2383
|
+
&:disabled {
|
|
2384
|
+
+ ${Dp} {
|
|
2385
|
+
color: ${E.dark.base60};
|
|
2386
|
+
cursor: not-allowed;
|
|
2387
|
+
|
|
2388
|
+
::before {
|
|
2389
|
+
border-color: ${E.dark.base20};
|
|
2390
|
+
cursor: inherit;
|
|
2391
|
+
}
|
|
2392
|
+
}
|
|
2393
|
+
|
|
2394
|
+
&:checked + ${Dp}::after {
|
|
2395
|
+
background-color: ${E.dark.base20};
|
|
2396
|
+
}
|
|
2397
|
+
}
|
|
2398
|
+
`,Fp=y.default.h1`
|
|
2383
2399
|
${tc};
|
|
2384
2400
|
${oc.h1};
|
|
2385
|
-
`,
|
|
2401
|
+
`,Lp=y.default.h2`
|
|
2386
2402
|
${tc};
|
|
2387
2403
|
${oc.h2};
|
|
2388
|
-
`,
|
|
2404
|
+
`,Rp=y.default.h3`
|
|
2389
2405
|
${tc};
|
|
2390
2406
|
${oc.h3};
|
|
2391
|
-
`,
|
|
2407
|
+
`,_p=y.default.h4`
|
|
2392
2408
|
${tc};
|
|
2393
2409
|
${oc.h4};
|
|
2394
|
-
`,
|
|
2410
|
+
`,Bp=y.default.h6`
|
|
2395
2411
|
${tc};
|
|
2396
2412
|
${oc.h6};
|
|
2397
|
-
`;ge(".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
|
|
2413
|
+
`;ge(".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,Wp={},Gp={};var Up,Hp={};var Yp,qp,Vp={};var Kp=function(){if(qp)return Wp;qp=1,Object.defineProperty(Wp,"__esModule",{value:!0});var e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),r=b.default,n=d(r),o=d(Yr()),a=d(Wr()),i=d(function(){if(zp)return Gp;zp=1,Object.defineProperty(Gp,"__esModule",{value:!0});var e,t=b.default,r=(e=t)&&e.__esModule?e:{default:e};return Gp.default=function(){return r.default.createElement("svg",{width:"14",height:"11",viewBox:"0 0 14 11"},r.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"}))},Gp}()),s=d(function(){if(Up)return Hp;Up=1,Object.defineProperty(Hp,"__esModule",{value:!0});var e,t=b.default,r=(e=t)&&e.__esModule?e:{default:e};return Hp.default=function(){return r.default.createElement("svg",{width:"10",height:"10",viewBox:"0 0 10 10"},r.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"}))},Hp}()),l=(Yp||(Yp=1,Object.defineProperty(Vp,"__esModule",{value:!0}),Vp.pointerCoord=function(e){if(e){var t=e.changedTouches;if(t&&t.length>0){var r=t[0];return{x:r.clientX,y:r.clientY}}var n=e.pageX;if(void 0!==n)return{x:n,y:e.pageY}}return{x:0,y:0}}),Vp);function d(e){return e&&e.__esModule?e:{default:e}}var c=function(r){function a(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var t=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,(a.__proto__||Object.getPrototypeOf(a)).call(this,e));return t.handleClick=t.handleClick.bind(t),t.handleTouchStart=t.handleTouchStart.bind(t),t.handleTouchMove=t.handleTouchMove.bind(t),t.handleTouchEnd=t.handleTouchEnd.bind(t),t.handleFocus=t.handleFocus.bind(t),t.handleBlur=t.handleBlur.bind(t),t.previouslyChecked=!(!e.checked&&!e.defaultChecked),t.state={checked:!(!e.checked&&!e.defaultChecked),hasFocus:!1},t}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)}(a,r),t(a,[{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 r=this.props.hasOwnProperty("checked")?this.props.checked:t.checked;this.setState({checked:r})}}},{key:"handleTouchStart",value:function(e){this.props.disabled||(this.startX=(0,l.pointerCoord)(e).x,this.activated=!0)}},{key:"handleTouchMove",value:function(e){if(this.activated&&(this.moved=!0,this.startX)){var t=(0,l.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 r=(0,l.pointerCoord)(e).x;!0===this.previouslyChecked&&this.startX+4>r?this.previouslyChecked!==this.state.checked&&(this.setState({checked:!1}),this.previouslyChecked=this.state.checked,t.click()):this.startX-4<r&&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 t=this.props.icons;return t?void 0===t[e]?a.defaultProps.icons[e]:t[e]:null}},{key:"render",value:function(){var t=this,r=this.props,a=r.className;r.icons;var i=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(r,["className","icons"]),s=(0,o.default)("react-toggle",{"react-toggle--checked":this.state.checked,"react-toggle--focus":this.state.hasFocus,"react-toggle--disabled":this.props.disabled},a);return n.default.createElement("div",{className:s,onClick:this.handleClick,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd},n.default.createElement("div",{className:"react-toggle-track"},n.default.createElement("div",{className:"react-toggle-track-check"},this.getIcon("checked")),n.default.createElement("div",{className:"react-toggle-track-x"},this.getIcon("unchecked"))),n.default.createElement("div",{className:"react-toggle-thumb"}),n.default.createElement("input",e({},i,{ref:function(e){t.input=e},onFocus:this.handleFocus,onBlur:this.handleBlur,className:"react-toggle-screenreader-only",type:"checkbox"})))}}]),a}(r.PureComponent);return Wp.default=c,c.displayName="Toggle",c.defaultProps={icons:{checked:n.default.createElement(i.default,null),unchecked:n.default.createElement(s.default,null)}},c.propTypes={checked:a.default.bool,disabled:a.default.bool,defaultChecked:a.default.bool,onChange:a.default.func,onFocus:a.default.func,onBlur:a.default.func,className:a.default.string,name:a.default.string,value:a.default.string,id:a.default.string,"aria-labelledby":a.default.string,"aria-label":a.default.string,icons:a.default.oneOfType([a.default.bool,a.default.shape({checked:a.default.node,unchecked:a.default.node})])},Wp}(),Zp=hr(Kp);const Xp=y.default.label`
|
|
2398
2414
|
${H.body2};
|
|
2399
2415
|
margin: 0;
|
|
2400
2416
|
cursor: pointer;
|
|
@@ -2403,7 +2419,7 @@ object-assign
|
|
|
2403
2419
|
${({disabled:e})=>e&&o.css`
|
|
2404
2420
|
color: ${E.grey.base60};
|
|
2405
2421
|
`}
|
|
2406
|
-
`,
|
|
2422
|
+
`,Jp=y.default.div`
|
|
2407
2423
|
display: flex;
|
|
2408
2424
|
align-items: center;
|
|
2409
2425
|
|
|
@@ -2476,14 +2492,14 @@ object-assign
|
|
|
2476
2492
|
background: ${E.dark.base10};
|
|
2477
2493
|
}
|
|
2478
2494
|
}
|
|
2479
|
-
`,
|
|
2495
|
+
`,Qp=y.default.div`
|
|
2480
2496
|
display: flex;
|
|
2481
2497
|
align-items: center;
|
|
2482
|
-
`,
|
|
2498
|
+
`,eh=y.default.div`
|
|
2483
2499
|
${Qd};
|
|
2484
2500
|
font-weight: bold;
|
|
2485
2501
|
color: ${({color:e})=>e};
|
|
2486
|
-
`;exports.TagAppearance=void 0,function(e){e.BUSINESS="business",e.CUSTOMER="customer"}(exports.TagAppearance||(exports.TagAppearance={})),exports.TagColorsTypes=void 0,function(e){e.BLUE="BLUE",e.BLUE_LIGHT="BLUE_LIGHT",e.GREEN="GREEN",e.GREEN_LIGHT="GREEN_LIGHT",e.GREY="GREY",e.GREY_LIGHT="GREY_LIGHT",e.ORANGE="ORANGE",e.ORANGE_LIGHT="ORANGE_LIGHT",e.ORANGE_LIGHTER="ORANGE_LIGHTER",e.RED="RED",e.RED_LIGHT="RED_LIGHT",e.TERRACOTA="TERRACOTA",e.TERRACOTA_LIGHT="TERRACOTA_LIGHT"}(exports.TagColorsTypes||(exports.TagColorsTypes={}));const
|
|
2502
|
+
`;exports.TagAppearance=void 0,function(e){e.BUSINESS="business",e.CUSTOMER="customer"}(exports.TagAppearance||(exports.TagAppearance={})),exports.TagColorsTypes=void 0,function(e){e.BLUE="BLUE",e.BLUE_LIGHT="BLUE_LIGHT",e.GREEN="GREEN",e.GREEN_LIGHT="GREEN_LIGHT",e.GREY="GREY",e.GREY_LIGHT="GREY_LIGHT",e.ORANGE="ORANGE",e.ORANGE_LIGHT="ORANGE_LIGHT",e.ORANGE_LIGHTER="ORANGE_LIGHTER",e.RED="RED",e.RED_LIGHT="RED_LIGHT",e.TERRACOTA="TERRACOTA",e.TERRACOTA_LIGHT="TERRACOTA_LIGHT"}(exports.TagColorsTypes||(exports.TagColorsTypes={}));const th=()=>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"})}),rh={[exports.TagColorsTypes.BLUE]:{color:E.dark.base,background:E.blue.base,colorOutlined:E.dark.base,backgroundOutlined:E.blue.base40},[exports.TagColorsTypes.BLUE_LIGHT]:{color:E.green.base,background:E.blue.base40,colorOutlined:E.green.base,backgroundOutlined:E.blue.base40},[exports.TagColorsTypes.GREY]:{color:"white",background:E.dark.base80,colorOutlined:E.dark.base,backgroundOutlined:E.dark.base40},[exports.TagColorsTypes.GREY_LIGHT]:{color:E.dark.base,background:E.dark.base10,colorOutlined:E.dark.base,backgroundOutlined:E.dark.base40},[exports.TagColorsTypes.GREEN]:{color:E.green.base,background:E.greenLight.base80,colorOutlined:E.green.base40,backgroundOutlined:E.green.base80},[exports.TagColorsTypes.GREEN_LIGHT]:{color:E.green.base,background:E.greenLight.base40,colorOutlined:E.dark.base,backgroundOutlined:E.greenLight.base40},[exports.TagColorsTypes.ORANGE]:{color:"white",background:E.terracota.base,colorOutlined:"white",backgroundOutlined:E.terracota.base20},[exports.TagColorsTypes.ORANGE_LIGHT]:{color:E.dark.base,background:E.terracota.base40,colorOutlined:E.dark.base,backgroundOutlined:E.terracota.base40},[exports.TagColorsTypes.ORANGE_LIGHTER]:{color:E.green.base,background:E.terracota.base10,colorOutlined:E.dark.base,backgroundOutlined:E.terracota.base40},[exports.TagColorsTypes.RED]:{color:"white",background:E.red.base,colorOutlined:E.red.base,backgroundOutlined:E.red.base20},[exports.TagColorsTypes.RED_LIGHT]:{color:E.red.base,background:E.red.base10,colorOutlined:E.red.base,backgroundOutlined:E.red.base20},[exports.TagColorsTypes.TERRACOTA]:{color:E.dark.base,background:E.terracota.base80,colorOutlined:E.dark.base,backgroundOutlined:E.terracota.base80},[exports.TagColorsTypes.TERRACOTA_LIGHT]:{color:E.dark.base,background:E.terracota.base40,colorOutlined:E.dark.base,backgroundOutlined:E.terracota.base40}},nh=o.css`
|
|
2487
2503
|
${P};
|
|
2488
2504
|
display: inline-flex;
|
|
2489
2505
|
align-items: center;
|
|
@@ -2496,18 +2512,18 @@ object-assign
|
|
|
2496
2512
|
&:not(:only-of-type) {
|
|
2497
2513
|
margin: ${I(2)} ${I(4)} ${I(2)} 0;
|
|
2498
2514
|
}
|
|
2499
|
-
`,
|
|
2515
|
+
`,oh=o.css`
|
|
2500
2516
|
border-radius: ${I(6)};
|
|
2501
2517
|
padding: ${I(4)} ${I(8)};
|
|
2502
|
-
`,
|
|
2503
|
-
color: ${
|
|
2504
|
-
background: ${
|
|
2505
|
-
`,
|
|
2506
|
-
${
|
|
2518
|
+
`,ah=e=>o.css`
|
|
2519
|
+
color: ${rh[e].color};
|
|
2520
|
+
background: ${rh[e].background};
|
|
2521
|
+
`,ih=y.default.span`
|
|
2522
|
+
${nh};
|
|
2507
2523
|
|
|
2508
|
-
${({appearance:e})=>e===exports.TagAppearance.BUSINESS&&
|
|
2524
|
+
${({appearance:e})=>e===exports.TagAppearance.BUSINESS&&oh}
|
|
2509
2525
|
|
|
2510
|
-
${({color:e})=>e&&
|
|
2526
|
+
${({color:e})=>e&&ah(e)}}
|
|
2511
2527
|
|
|
2512
2528
|
${({icon:e})=>e&&o.css`
|
|
2513
2529
|
padding-left: ${I(8)};
|
|
@@ -2516,7 +2532,7 @@ object-assign
|
|
|
2516
2532
|
${({close:e})=>e&&o.css`
|
|
2517
2533
|
padding-right: ${I(8)};
|
|
2518
2534
|
`}
|
|
2519
|
-
`,
|
|
2535
|
+
`,sh=y.default.button`
|
|
2520
2536
|
${ee};
|
|
2521
2537
|
width: ${I(16)};
|
|
2522
2538
|
height: ${I(16)};
|
|
@@ -2536,10 +2552,10 @@ object-assign
|
|
|
2536
2552
|
opacity: 0.7;
|
|
2537
2553
|
}
|
|
2538
2554
|
}
|
|
2539
|
-
`,
|
|
2555
|
+
`,lh=y.default.li`
|
|
2540
2556
|
white-space: nowrap;
|
|
2541
2557
|
line-height: ${I(16)};
|
|
2542
|
-
`,
|
|
2558
|
+
`,dh=y.default.ul`
|
|
2543
2559
|
display: none;
|
|
2544
2560
|
position: absolute;
|
|
2545
2561
|
bottom: 0;
|
|
@@ -2551,25 +2567,25 @@ object-assign
|
|
|
2551
2567
|
font-size: ${T.small};
|
|
2552
2568
|
list-style-type: none;
|
|
2553
2569
|
|
|
2554
|
-
${({appearance:e})=>e===exports.TagAppearance.BUSINESS&&
|
|
2570
|
+
${({appearance:e})=>e===exports.TagAppearance.BUSINESS&&oh};
|
|
2555
2571
|
|
|
2556
|
-
${({color:e})=>e&&
|
|
2557
|
-
`,
|
|
2572
|
+
${({color:e})=>e&&ah(e)};
|
|
2573
|
+
`,ch=y.default.div`
|
|
2558
2574
|
position: relative;
|
|
2559
2575
|
display: inline-block;
|
|
2560
2576
|
|
|
2561
|
-
&:hover ${
|
|
2577
|
+
&:hover ${dh} {
|
|
2562
2578
|
display: block;
|
|
2563
2579
|
}
|
|
2564
2580
|
|
|
2565
|
-
${
|
|
2581
|
+
${ih} ~ & {
|
|
2566
2582
|
margin-left: ${I(4)};
|
|
2567
2583
|
}
|
|
2568
2584
|
|
|
2569
|
-
${
|
|
2585
|
+
${ih}:not(:only-of-type) ~ & {
|
|
2570
2586
|
margin: 0 0 ${I(2)} 0;
|
|
2571
2587
|
}
|
|
2572
|
-
`,
|
|
2588
|
+
`,uh=y.default.span`
|
|
2573
2589
|
width: ${I(16)};
|
|
2574
2590
|
height: ${I(16)};
|
|
2575
2591
|
margin-right: ${I(8)};
|
|
@@ -2582,7 +2598,7 @@ object-assign
|
|
|
2582
2598
|
path {
|
|
2583
2599
|
fill: currentColor;
|
|
2584
2600
|
}
|
|
2585
|
-
`;var
|
|
2601
|
+
`;var fh,ph;!function(e){e.BUSINESS="business",e.CUSTOMER="customer"}(fh||(fh={})),function(e){e.BLUE="BLUE",e.BLUE_LIGHT="BLUE_LIGHT",e.GREEN="GREEN",e.GREEN_LIGHT="GREEN_LIGHT",e.GREY="GREY",e.GREY_LIGHT="GREY_LIGHT",e.ORANGE="ORANGE",e.ORANGE_LIGHT="ORANGE_LIGHT",e.ORANGE_LIGHTER="ORANGE_LIGHTER",e.RED="RED",e.RED_LIGHT="RED_LIGHT",e.TERRACOTA="TERRACOTA",e.TERRACOTA_LIGHT="TERRACOTA_LIGHT"}(ph||(ph={}));const hh={[ph.BLUE]:{color:E.dark.base,background:E.blue.base,colorOutlined:E.dark.base,backgroundOutlined:E.blue.base40},[ph.BLUE_LIGHT]:{color:E.green.base,background:E.blue.base40,colorOutlined:E.green.base,backgroundOutlined:E.blue.base40},[ph.GREY]:{color:"white",background:E.dark.base80,colorOutlined:E.dark.base,backgroundOutlined:E.dark.base40},[ph.GREY_LIGHT]:{color:E.dark.base,background:E.dark.base10,colorOutlined:E.dark.base,backgroundOutlined:E.dark.base40},[ph.GREEN]:{color:E.green.base,background:E.green.base,colorOutlined:E.green.base40,backgroundOutlined:E.green.base20},[ph.GREEN_LIGHT]:{color:E.green.base,background:E.greenLight.base20,colorOutlined:E.dark.base,backgroundOutlined:E.greenLight.base20},[ph.ORANGE]:{color:"white",background:E.terracota.base,colorOutlined:"white",backgroundOutlined:E.terracota.base20},[ph.ORANGE_LIGHT]:{color:E.dark.base,background:E.terracota.base40,colorOutlined:E.dark.base,backgroundOutlined:E.terracota.base40},[ph.ORANGE_LIGHTER]:{color:E.green.base,background:E.terracota.base10,colorOutlined:E.dark.base,backgroundOutlined:E.terracota.base40},[ph.RED]:{color:"white",background:E.red.base,colorOutlined:E.red.base,backgroundOutlined:E.red.base20},[ph.RED_LIGHT]:{color:E.red.base,background:E.red.base10,colorOutlined:E.red.base,backgroundOutlined:E.red.base20},[ph.TERRACOTA]:{color:E.dark.base,background:E.terracota.base,colorOutlined:E.dark.base,backgroundOutlined:E.terracota.base20},[ph.TERRACOTA_LIGHT]:{color:E.dark.base,background:E.terracota.base40,colorOutlined:E.dark.base,backgroundOutlined:E.terracota.base40}},gh=o.css`
|
|
2586
2602
|
${P};
|
|
2587
2603
|
display: inline-flex;
|
|
2588
2604
|
align-items: center;
|
|
@@ -2595,17 +2611,17 @@ object-assign
|
|
|
2595
2611
|
&:not(:only-of-type) {
|
|
2596
2612
|
margin: ${I(2)} ${I(4)} ${I(2)} 0;
|
|
2597
2613
|
}
|
|
2598
|
-
`,
|
|
2614
|
+
`,mh=o.css`
|
|
2599
2615
|
border-radius: ${I(6)};
|
|
2600
2616
|
padding: ${I(4)} ${I(8)};
|
|
2601
|
-
`,
|
|
2602
|
-
${
|
|
2617
|
+
`,bh=y.default.span`
|
|
2618
|
+
${gh};
|
|
2603
2619
|
|
|
2604
|
-
${({appearance:e})=>e===
|
|
2620
|
+
${({appearance:e})=>e===fh.BUSINESS&&mh}
|
|
2605
2621
|
|
|
2606
2622
|
${({color:e})=>e&&(e=>o.css`
|
|
2607
|
-
color: ${
|
|
2608
|
-
background: ${
|
|
2623
|
+
color: ${hh[e].color};
|
|
2624
|
+
background: ${hh[e].background};
|
|
2609
2625
|
`)(e)}}
|
|
2610
2626
|
|
|
2611
2627
|
${({icon:e})=>e&&o.css`
|
|
@@ -2621,18 +2637,18 @@ object-assign
|
|
|
2621
2637
|
transition: background-color 0.2s ease;
|
|
2622
2638
|
|
|
2623
2639
|
&:hover {
|
|
2624
|
-
background: ${
|
|
2625
|
-
color: ${
|
|
2640
|
+
background: ${hh.TERRACOTA.background};
|
|
2641
|
+
color: ${hh.TERRACOTA.color};
|
|
2626
2642
|
}
|
|
2627
2643
|
`}
|
|
2628
|
-
`,
|
|
2644
|
+
`,yh=y.default.button`
|
|
2629
2645
|
${ee};
|
|
2630
2646
|
width: ${I(16)};
|
|
2631
2647
|
height: ${I(16)};
|
|
2632
2648
|
margin-left: ${I(8)};
|
|
2633
2649
|
cursor: pointer;
|
|
2634
2650
|
|
|
2635
|
-
${({appearance:e})=>e===
|
|
2651
|
+
${({appearance:e})=>e===fh.CUSTOMER&&o.css`
|
|
2636
2652
|
margin-right: ${I(8)};
|
|
2637
2653
|
`}
|
|
2638
2654
|
|
|
@@ -2645,20 +2661,20 @@ object-assign
|
|
|
2645
2661
|
opacity: 0.7;
|
|
2646
2662
|
}
|
|
2647
2663
|
}
|
|
2648
|
-
`;y.default(
|
|
2664
|
+
`;y.default(bh).attrs({role:"button",tabIndex:0})`
|
|
2649
2665
|
cursor: pointer;
|
|
2650
2666
|
transition: background-color 0.2s ease;
|
|
2651
2667
|
|
|
2652
2668
|
&:hover {
|
|
2653
|
-
background: ${
|
|
2654
|
-
color: ${
|
|
2669
|
+
background: ${hh.TERRACOTA.background};
|
|
2670
|
+
color: ${hh.TERRACOTA.color};
|
|
2655
2671
|
}
|
|
2656
2672
|
|
|
2657
2673
|
&:focus {
|
|
2658
2674
|
outline: 2px solid ${E.blue};
|
|
2659
2675
|
outline-offset: 2px;
|
|
2660
2676
|
}
|
|
2661
|
-
`;const
|
|
2677
|
+
`;const vh=y.default.span`
|
|
2662
2678
|
width: ${I(16)};
|
|
2663
2679
|
height: ${I(16)};
|
|
2664
2680
|
margin-right: ${I(8)};
|
|
@@ -2671,7 +2687,7 @@ object-assign
|
|
|
2671
2687
|
path {
|
|
2672
2688
|
fill: currentColor;
|
|
2673
2689
|
}
|
|
2674
|
-
|
|
2690
|
+
`,$h=y.default.textarea`
|
|
2675
2691
|
${P};
|
|
2676
2692
|
min-width: 100%;
|
|
2677
2693
|
max-width: 100%;
|
|
@@ -2714,7 +2730,7 @@ object-assign
|
|
|
2714
2730
|
font-weight: 300;
|
|
2715
2731
|
color: currentColor;
|
|
2716
2732
|
}
|
|
2717
|
-
`,
|
|
2733
|
+
`,xh=o.css`
|
|
2718
2734
|
${P};
|
|
2719
2735
|
${H.body1};
|
|
2720
2736
|
display: block;
|
|
@@ -2731,13 +2747,13 @@ object-assign
|
|
|
2731
2747
|
padding: 0 ${I(28)};
|
|
2732
2748
|
caret-color: ${E.dark.base};
|
|
2733
2749
|
min-height: ${I(48)};
|
|
2734
|
-
|
|
2750
|
+
`,wh=y.default.div`
|
|
2735
2751
|
${H.caption};
|
|
2736
2752
|
color: ${E.dark.base};
|
|
2737
2753
|
text-align: right;
|
|
2738
2754
|
margin-right: ${I(16)};
|
|
2739
|
-
`,
|
|
2740
|
-
${
|
|
2755
|
+
`,Ch=y.default.input`
|
|
2756
|
+
${xh} :not(:disabled) {
|
|
2741
2757
|
:focus,
|
|
2742
2758
|
:active {
|
|
2743
2759
|
outline: none;
|
|
@@ -2751,7 +2767,7 @@ object-assign
|
|
|
2751
2767
|
:-webkit-autofill:active {
|
|
2752
2768
|
box-shadow: 0 0 0 ${I(40)} white inset;
|
|
2753
2769
|
}
|
|
2754
|
-
`,
|
|
2770
|
+
`,Oh=y.default.fieldset`
|
|
2755
2771
|
position: absolute;
|
|
2756
2772
|
top: 0;
|
|
2757
2773
|
left: 0;
|
|
@@ -2763,7 +2779,7 @@ object-assign
|
|
|
2763
2779
|
border-radius: ${Y.biggest};
|
|
2764
2780
|
z-index: 0;
|
|
2765
2781
|
overflow: hidden;
|
|
2766
|
-
`,
|
|
2782
|
+
`,kh=y.default.label`
|
|
2767
2783
|
position: absolute;
|
|
2768
2784
|
z-index: 1;
|
|
2769
2785
|
top: 0;
|
|
@@ -2807,7 +2823,7 @@ object-assign
|
|
|
2807
2823
|
background: ${E.dark.base10};
|
|
2808
2824
|
}
|
|
2809
2825
|
`}
|
|
2810
|
-
`;const
|
|
2826
|
+
`;const Sh=y.default.div`
|
|
2811
2827
|
${P};
|
|
2812
2828
|
${H.body2};
|
|
2813
2829
|
position: relative;
|
|
@@ -2827,16 +2843,16 @@ object-assign
|
|
|
2827
2843
|
${({focused:e,error:t,disabled:r})=>t&&o.css`
|
|
2828
2844
|
color: ${E.red.base};
|
|
2829
2845
|
|
|
2830
|
-
${
|
|
2846
|
+
${Ch} {
|
|
2831
2847
|
color: ${E.red.base};
|
|
2832
2848
|
padding: 0 ${I(56)} 0 ${I(48)};
|
|
2833
2849
|
}
|
|
2834
2850
|
|
|
2835
|
-
${
|
|
2851
|
+
${Oh} {
|
|
2836
2852
|
${!r&&`border-color: ${E.red.base};`}
|
|
2837
2853
|
}
|
|
2838
2854
|
|
|
2839
|
-
${
|
|
2855
|
+
${kh} {
|
|
2840
2856
|
color: ${E.red.base};
|
|
2841
2857
|
transform: translate(${I(48)}, ${I(16)});
|
|
2842
2858
|
|
|
@@ -2847,13 +2863,13 @@ object-assign
|
|
|
2847
2863
|
`}
|
|
2848
2864
|
|
|
2849
2865
|
${({focused:e,notched:t,error:r})=>(e||t)&&o.css`
|
|
2850
|
-
${
|
|
2866
|
+
${Oh} {
|
|
2851
2867
|
${!r&&o.css`
|
|
2852
2868
|
border-color: ${E.terracota.base};
|
|
2853
2869
|
`};
|
|
2854
2870
|
}
|
|
2855
2871
|
|
|
2856
|
-
${
|
|
2872
|
+
${kh} {
|
|
2857
2873
|
overflow: initial;
|
|
2858
2874
|
text-overflow: ellipsis;
|
|
2859
2875
|
transform: translate(${I(29)}, -${I(8)});
|
|
@@ -2862,20 +2878,20 @@ object-assign
|
|
|
2862
2878
|
`}
|
|
2863
2879
|
|
|
2864
2880
|
${({outline:e,focused:t,notched:r})=>e&&o.css`
|
|
2865
|
-
${
|
|
2881
|
+
${Oh} {
|
|
2866
2882
|
border-width: ${I(2)};
|
|
2867
2883
|
border-color: currentColor;
|
|
2868
2884
|
}
|
|
2869
2885
|
|
|
2870
2886
|
${!t&&!r&&o.css`
|
|
2871
|
-
${
|
|
2887
|
+
${kh} {
|
|
2872
2888
|
color: currentColor;
|
|
2873
2889
|
}
|
|
2874
2890
|
`}
|
|
2875
2891
|
`}
|
|
2876
2892
|
|
|
2877
2893
|
${({disabled:e,error:t})=>e&&o.css`
|
|
2878
|
-
${
|
|
2894
|
+
${Oh} {
|
|
2879
2895
|
background: ${E.dark.base10};
|
|
2880
2896
|
|
|
2881
2897
|
${t?o.css`
|
|
@@ -2885,35 +2901,35 @@ object-assign
|
|
|
2885
2901
|
`}
|
|
2886
2902
|
}
|
|
2887
2903
|
|
|
2888
|
-
${
|
|
2904
|
+
${kh} {
|
|
2889
2905
|
color: ${E.grey.base};
|
|
2890
2906
|
}
|
|
2891
2907
|
`}
|
|
2892
2908
|
}
|
|
2893
|
-
`;class
|
|
2909
|
+
`;class Eh extends t.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:r}=this.props;e.value===t&&e.focused===r||this.setState(e=>Object.assign(Object.assign(Object.assign({},e),{value:t}),r?{focused:r}:{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:r}=this.props;this.setState({value:t},()=>{r&&r(t)})}handleFocus(){this.setState({focused:!0})}handleBlur(){this.setState({focused:!1})}reflowTextarea(){this.reflowRaf=null;const e=this.textareaRef,{autoResize:t,minHeight:r=160,maxHeight:n=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(r,Math.min(e.scrollHeight,n))}px`,s=a&&o&&parseFloat(o)>n?o:"auto";e.style.minHeight=i,e.style.height=s}loadRef(e){this.textareaRef=e,e&&this.reflowTextarea()}render(){var t;const{autoResize:r,placeholder:o,maxlength:a,borderRadius:i=Y.biggest,error:s=!1,required:l=!1,disabled:d=!1,spellCheck:c=!1,lang:u="fr-FR",hasCounter:f=!1}=this.props,{value:p,focused:h}=this.state,g=void 0!==p?n.isNotEmpty(p||""):n.isNotEmpty((null===(t=this.textareaRef)||void 0===t?void 0:t.value)||"");return e.jsxs(Sh,{disabled:d,error:s,focused:h,notched:g,children:[e.jsx(kh,{children:o}),e.jsx($h,{spellCheck:c,lang:u,error:s,value:p,autoResize:r,disabled:d,focused:h,maxLength:a,onChange:this.handleOnChange,onFocus:this.handleFocus,onBlur:this.handleBlur,required:l,"data-test":"textarea",ref:this.loadRef,borderRadius:i}),Boolean(a)&&f&&e.jsxs(wh,{"data-test":"textarea-counter",children:[p.length," / ",a]})]})}}const Ih=E.dark.base,Nh=y.default.div`
|
|
2894
2910
|
& + & {
|
|
2895
2911
|
margin-top: ${I(8)};
|
|
2896
2912
|
}
|
|
2897
|
-
`,
|
|
2913
|
+
`,jh=y.default.button`
|
|
2898
2914
|
${ee};
|
|
2899
|
-
color: ${({hasTitle:e})=>e?
|
|
2915
|
+
color: ${({hasTitle:e})=>e?Ih:E.terracota.base};
|
|
2900
2916
|
|
|
2901
2917
|
${({isComment:e})=>e&&o.css`
|
|
2902
2918
|
display: block;
|
|
2903
2919
|
margin-top: ${I(8)};
|
|
2904
2920
|
font-size: ${T.small};
|
|
2905
2921
|
font-weight: bold;
|
|
2906
|
-
color: ${
|
|
2922
|
+
color: ${Ih};
|
|
2907
2923
|
`}
|
|
2908
2924
|
|
|
2909
2925
|
:hover {
|
|
2910
2926
|
cursor: pointer;
|
|
2911
2927
|
text-decoration: underline;
|
|
2912
2928
|
}
|
|
2913
|
-
`,
|
|
2914
|
-
color: ${
|
|
2915
|
-
`,
|
|
2916
|
-
& + ${
|
|
2929
|
+
`,Ph=y.default.span`
|
|
2930
|
+
color: ${Ih};
|
|
2931
|
+
`,Th=y.default.span`
|
|
2932
|
+
& + ${jh} {
|
|
2917
2933
|
display: inline-block;
|
|
2918
2934
|
margin-left: ${I(4)};
|
|
2919
2935
|
}
|
|
@@ -2922,16 +2938,16 @@ object-assign
|
|
|
2922
2938
|
${H.body1};
|
|
2923
2939
|
font-weight: 500;
|
|
2924
2940
|
|
|
2925
|
-
& + ${
|
|
2941
|
+
& + ${jh} {
|
|
2926
2942
|
display: block;
|
|
2927
2943
|
margin-left: 0;
|
|
2928
2944
|
}
|
|
2929
2945
|
`}
|
|
2930
|
-
`,
|
|
2946
|
+
`,Ah=/\n|\r|\r\n/gim,Dh=y.default.div`
|
|
2931
2947
|
display: flex;
|
|
2932
2948
|
align-items: center;
|
|
2933
2949
|
gap: ${I(12)};
|
|
2934
|
-
`,
|
|
2950
|
+
`,Mh=y.default.input`
|
|
2935
2951
|
width: 100%;
|
|
2936
2952
|
background: ${E.background[100]};
|
|
2937
2953
|
outline: none;
|
|
@@ -3018,24 +3034,24 @@ object-assign
|
|
|
3018
3034
|
&::-ms-tooltip {
|
|
3019
3035
|
display: none;
|
|
3020
3036
|
}
|
|
3021
|
-
`,
|
|
3037
|
+
`,Fh=y.default.div`
|
|
3022
3038
|
width: 10%;
|
|
3023
3039
|
display: flex;
|
|
3024
3040
|
flex-direction: column;
|
|
3025
3041
|
justify-content: space-between;
|
|
3026
|
-
`,
|
|
3042
|
+
`,Lh=y.default.label`
|
|
3027
3043
|
text-align: center;
|
|
3028
3044
|
align-items: center;
|
|
3029
3045
|
font-weight: bold;
|
|
3030
|
-
`,
|
|
3046
|
+
`,Rh=y.default.label`
|
|
3031
3047
|
text-align: center;
|
|
3032
3048
|
align-items: center;
|
|
3033
|
-
`,
|
|
3049
|
+
`,_h=y.default.div`
|
|
3034
3050
|
position: relative;
|
|
3035
3051
|
width: 100%;
|
|
3036
3052
|
height: ${I(32)};
|
|
3037
3053
|
margin: ${I(24)} 0;
|
|
3038
|
-
`,
|
|
3054
|
+
`,Bh=y.default.div`
|
|
3039
3055
|
position: absolute;
|
|
3040
3056
|
top: 50%;
|
|
3041
3057
|
left: 0;
|
|
@@ -3046,7 +3062,7 @@ object-assign
|
|
|
3046
3062
|
transform: translateY(-50%);
|
|
3047
3063
|
cursor: ${({disabled:e})=>e?"not-allowed":"pointer"};
|
|
3048
3064
|
opacity: ${({disabled:e})=>e?.5:1};
|
|
3049
|
-
`,
|
|
3065
|
+
`,zh=y.default.div`
|
|
3050
3066
|
position: absolute;
|
|
3051
3067
|
top: 50%;
|
|
3052
3068
|
height: ${I(12)};
|
|
@@ -3057,7 +3073,7 @@ object-assign
|
|
|
3057
3073
|
transform: translateY(-50%);
|
|
3058
3074
|
pointer-events: none;
|
|
3059
3075
|
opacity: ${({disabled:e})=>e?.5:1};
|
|
3060
|
-
`,
|
|
3076
|
+
`,Wh=y.default.button`
|
|
3061
3077
|
position: absolute;
|
|
3062
3078
|
top: 50%;
|
|
3063
3079
|
width: ${I(20)};
|
|
@@ -3074,5 +3090,5 @@ object-assign
|
|
|
3074
3090
|
&:focus {
|
|
3075
3091
|
box-shadow: 0 0 0 ${I(2)} #aaa;
|
|
3076
3092
|
}
|
|
3077
|
-
`;function zh(e){let t=0;return e.slice(0,-1).map(e=>t+=e.percent)}const Wh=(e,t,r)=>Math.max(t,Math.min(e,r));exports.Accordion=({children:t,preExpanded:r,allowMultipleExpanded:n})=>e.jsx(qd,{preExpanded:r,allowMultipleExpanded:n,children:t}),exports.AccordionHeader=({isAlternative:t,basic:r,children:n})=>e.jsx(hc,{children:({expanded:o,toggleExpanded:a})=>e.jsxs(ac,{onClick:()=>a(),"data-test":"accordion-header",children:[e.jsx(ic,{isAlternative:t,basic:r,children:e.jsx(e.Fragment,{children:n})}),e.jsx(sc,{isOpen:o,children:e.jsx(Cl,{})})]})}),exports.AccordionItem=({children:t,uuid:r,color:n=exports.AccordionItemColors.ORANGE})=>e.jsx(pc,{uuid:r,children:e.jsx(hc,{children:({expanded:o})=>e.jsx(dc,{isOpen:o,color:n,"data-test":""+(o?`${r}-item-opened`:`${r}-item-closed`),children:e.jsx(e.Fragment,{children:t})})})}),exports.AccordionPanel=({children:r,unmountOnCollapse:n})=>e.jsx(hc,{children:({expanded:o})=>e.jsx(lc,{isOpen:o,children:!n||o?e.jsx("div",{"data-test":"panel-content",children:r}):e.jsx(t.Fragment,{})})}),exports.AgentBanner=({children:t,agent:{image_agent:r,name:n,zone:o,fonction:a},rounded:i=!0})=>e.jsxs(bc,{"data-test":"agent-card",rounded:i,children:[e.jsxs(xc,{children:[n&&e.jsx(mc,{title:n,color:E.green.base}),a&&e.jsx(wc,{"data-test":"agent-fonction",children:a}),o&&e.jsx(wc,{"data-test":"agent-zone",children:o}),e.jsx(e.Fragment,{children:t})]}),e.jsx(vc,{children:e.jsx($c,{children:e.jsx(yc,{"data-test":"agent-image",src:r,loading:"lazy"})})})]}),exports.AgentCard=({agent:{image_agent:t,name:r,zone:n,fonction:o,trustpilot_comment:a},showComment:i=!0})=>t?e.jsxs(Cc,{"data-test":"agent-card-layout",children:[e.jsxs(Oc,{children:[n&&e.jsxs(jc,{"data-test":"agent-zone",children:[e.jsx("img",{src:"data:image/svg+xml,%3Csvg%20fill%3D%22none%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22m12%200c-4.198%200-8%203.403-8%207.602%200%204.198%203.469%209.21%208%2016.398%204.531-7.188%208-12.2%208-16.398%200-4.199-3.801-7.602-8-7.602zm0%2011c-1.657%200-3-1.343-3-3s1.343-3%203-3%203%201.343%203%203-1.343%203-3%203z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"}),n]}),e.jsx(kc,{"data-test":"agent-image",src:t,loading:"lazy"})]}),e.jsxs(Sc,{children:[r&&e.jsx(Ec,{"data-test":"agent-name",children:r}),o&&e.jsx(Ic,{"data-test":"agent-fontion",children:o}),i&&a&&e.jsxs("div",{children:[e.jsx(Nc,{"data-test":"agent-comment",children:a}),e.jsxs(Pc,{children:[e.jsx("img",{"data-test":"stars",src:"data:image/svg+xml,%3Csvg%20fill%3D%22none%22%20height%3D%2216%22%20width%3D%22112%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Cpattern%20id%3D%22a%22%20height%3D%221%22%20patternContentUnits%3D%22objectBoundingBox%22%20width%3D%221%22%3E%3Cimage%20height%3D%2216%22%20transform%3D%22matrix%28.00903%200%200%20.0625%20-.001%200%29%22%20width%3D%22111%22%20xlink%3Ahref%3D%22data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAG8AAAAQCAYAAAAYsSF0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAc%2FSURBVHgB3Vh7UFTXGf%2FOuXsfuywuIFQFCghxWVaCmSCObZrWam1Dp0k7UK0aa3nMwKQmM23SkEwcJ5t02klIbZtJm0SrkNYwaUKNbS2JxsqY6GDklUwevEFQYXkEVtZlH%2FfuvSff7pqNOBAF%2FmJ%2FM3f33u985zu%2F73HOPfcA3AA%2Bu2StaCnZJ2QV94iWUi%2Fe%2B%2FBqD8jEzJ2ZYcWaR1fBa7ZEWCCaD%2F%2FgTlggmg%2FfvQLtrIAFYrFxoeG7FWUGIav0MFXgPD49TBghwFgD3p9lAFJAxghfA9YtAhzZkwo6ugu224ZgAQg4as4zn1yosyuzrRVp1rTHYAFYjFxCyUvZESuYlFOEsZ1AoF7jtHW%2BjqoMX2fVRvzfJHdUrSRAvyv7IR%2F2ZiSC4j8ELlYJC0QqOhpl4uJSrCnzdrZ5%2F90romKlcmOcVNa8f%2F6BX4xcgskTDYanCJD1BOD3mKzvK5%2B%2B0nSjorfj4Gl4wghA2FsArBpKK6%2FCAhBw1GgSyz1jzRAdI5W9h88wD6TckVlB%2FMN6otr1yWuS5xX4xcqF8qt3rgHQHgIGp7wdVXtQxmbUfPWhJaA3nMDWBthWWSNYih7Xm3clwTwRcJRqI3qmykDZiN68xjxnZwOORicYypWpiyC7LoEpwTCvwC9WLkS0FL%2BAfw9qhOUq7dWtQSmzUSA2LaxV83gscOyfeGcBhVsPe%2Fq9okGawCw%2FhUuqDW4BDS9tTEpIMt0WlZBilgzeVfol4oOqs0nPNBWH54A35XncLt9fvC6l2zfm6OobnOzZ9ED94DQbf%2FyGPio%2BOiMuNdEsRketEgSSr5fGviNfvRBsF6LTwCPHvyu75eM%2B51T3yMBYl%2ByY6vnmw%2Bc8kcgFk1fSzxi45c4qayhRj%2BQCx72DTTbY9uwL8MYWDrT0I9jyY2CkALY%2FcxRyy3hxyn8FNzQtvs7qb39V0hoPbLgjPS%2BzHisxlinj4I%2B6B2CiFjR5HJjqDSlxDDiDiGSigFADUKoHoi0D55jH0dvYu3Fd2ckPu%2BoKq1NWp%2F2CI1eJShJAI9EAzv%2BDpriQBtYZCUSMABdlBKrD%2FgTtEBOovmh2uf3S32%2FLry2ONC4Ul8Fk3Ffag8r%2F%2BM3XgNO9hqPH4fR7Hl6veBIT97dQ4uCNYOICaDmgYMIHUC8ZboJ1Zac%2FHL4wusOvgFvze0AdfgVUz2CIIJIjS%2FCKYaAJXlAZOqFewgD4wC8Tt71vZEcgWAE7zsv9ux0jE3WUNwBWJqjjdaDKzmCwiIQ2YvHfqGIgJ9HGMF5DQWcdQxNvtV3s2x2JXHB5JKh17T236w%2Bj2PEBlPkxMSjF2QdQjFc%2FaP6K6WlhFDvJcAvILjh6fOCD%2FntVkuTmDTHhqiImtMBPf8Xy%2FErwu7%2FuHvj4wr2Bfl%2FI15a3uMffPl9o73Uck%2BJWYzBIUE6M2D%2BKhar9GgiRQBTywN7tPHbmcmPBfdg3ErlQrJYexlhGWGtL5Snww3ocdfxLBrAX7t83EH7eYNMRQjMwu6Nwi7AUHK3vbe35nkqSJ3ljYrCyrncyAB2XiASTJ%2Fuaujdb7jtaf6ONbFubPNz2SeHIBUeNFJ8LRI9C8cb9FQkGa7THUdMw1PjTrVvb5EjlQgkh7%2BBnQprOXPKtsPb9z7QA036ERkbxY%2BJf8LNnX73emDAyUIgzT4ejHIM5IGfr%2F855Jl1Hgo7SmTQITDmn3rx9e13DbDaw6pXepu4nFAUXB702gwbDJcwPAZ2ZghVJXHDm0UM4COMo%2B%2FM0%2FW2V74Os5YPH88g0ubksHk9ffssYcRFFeR3mCF4SrCq4viRATeF7jU2BKApZN7MRm7LUqhPlcIUSImIViuF2TpCDOjezs9i56OTOgx%2BJlqIXUX23mFX6V98V7lGwHwityz9%2FrvV65Zi0ohg3VfYjxVVAtce8fYcvwhyAmxzi6qJWxq4CR%2BNB4M2geAUQJRlkpQsCtUs4mh3QI2SW701E3LI4q4Y2COGB16XjuUHgiJXhK3oIFPUz0DQvxC5fmo3C45HMJTRJCff2NSu%2FFEz%2Bc6K56IfTrKcVSaK5JN8jkfdwiS1AyQG5vXrOx2OnX96QKhr5JSKfC5o3yzPY5tjX%2Bt%2FmrKHOiec0X46HlzaB3sgb3395fepX2RGjpds5GgsSfxdMDhk%2F6Dzbmd95tit%2F0m5s5YUCrFpsM4irI52LLvjLtJIv5j3%2B5uCIdUJmiRcfevCimHosKQhsgt2Y%2Bl%2F52g89D%2FPA8qT4bDw4kEcHp6qGmz5%2Beu2vz9ivNVXgacSf0q3pe5cmx5dGJybmQGCHOwso5bKv2NW2sd7uJzML%2FnMkITdUjViZJzr%2B%2FZOCZRnLn6aU5kQ6l2DGBEtJLY7mxIdmjbFmSuhOFN%2FJCCxDGYdquNNkrZJb%2FN3kxZccME80Vt%2BTp8jyxF3l9b2z6Zx5cVO6qIel64pPNc2mc%2F7g5i0DJ2Le3Fpbq87UzmxAW1I3F64tPlkLEczlc%2BQbm%2Bp%2FZ1T4AAAAAElFTkSuQmCC%22%2F%3E%3C%2Fpattern%3E%3Cpath%20d%3D%22M.906%200h110.727v16H.906z%22%20fill%3D%22url%28%23a%29%22%2F%3E%3C%2Fsvg%3E",width:"112",height:"16"}),e.jsx("img",{"data-test":"review-logo",src:"data:image/png;base64,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",width:"70",height:"28"})]})]})]})]}):null,exports.Autocomplete=r=>{var{list:o,native:a=!1,option:i,onSelect:s}=r,l=sl(r,["list","native","option","onSelect"]);const[{hasFullList:d,internalValue:c,isFocused:u},f]=t.useReducer((e,t)=>Object.assign(Object.assign({},e),t),{hasFullList:!1,internalValue:(null==i?void 0:i.label)||"",isFocused:!1}),p=o.filter(({label:e})=>n.normalizeString(e).includes(n.normalizeString(c))),h=Boolean(c.length>1&&!d)?p:o,g=(e="")=>{e||s(null),f({hasFullList:!1,internalValue:e})};return t.useEffect(()=>{(null==i?void 0:i.label)?g(i.label):f({internalValue:""})},[i]),e.jsx(Gl,Object.assign({focused:u,isAutocomplete:!0,native:a,option:i,options:a?o:h,onBlur:()=>f({hasFullList:!1,isFocused:!1}),onChange:g,onFocus:()=>{f({hasFullList:!0,isFocused:!0})},onSelect:e=>s(e),value:c},l))},exports.BagossFont=j,exports.Block=({children:t,picture:r,isCompact:n,isRounded:o})=>e.jsxs(Dc,{isRounded:o,"data-test":"block",children:[r&&e.jsx(Ac,{picture:r,"data-test":"picture"}),e.jsx(Tc,{isCompact:n,children:e.jsx(e.Fragment,{children:t})})]}),exports.BlockCheckIcon=({onClick:t,image:r,checked:n,name:o,text:a,dataTest:i})=>{const s=`checkbox-input-label-${a}`;return e.jsxs(ou,{checked:n,"data-test":i||`checkbox-button-${a}`,children:[e.jsx(ru,{"aria-labelledby":s,checked:n,name:o,onChange:({target:e})=>t(e.checked),type:"checkbox"}),e.jsx(nu,{children:e.jsx(e.Fragment,{children:r})}),e.jsx("span",{id:s,children:a})]})},exports.BlockIcon=function({onClick:t,image:r,text:n,name:o,selectedValue:a,dataTest:i,value:s,isContentCentered:l=!1}){const d=a===s,c=`radio-input-label-${n}`;return e.jsxs(tu,{"data-test":i||`radio-button-${n}`,isActive:d,isContentCentered:l,children:[e.jsx(ru,{"aria-labelledby":c,checked:d,name:o,onChange:()=>t(s),type:"radio"}),e.jsx("span",{id:c,children:n}),e.jsx(e.Fragment,{children:r})]})},exports.Burger=({isOpen:t,isSmall:r=!1,onClick:n,color:o})=>e.jsxs(Lc,{"data-test":"burger",onClick:n,isOpen:t,isSmall:r,color:o,children:[e.jsx(Fc,{}),e.jsx(Fc,{}),e.jsx(Fc,{})]}),exports.Button=t=>{var{appearance:r=exports.ButtonAppearance.PRIMARY,icon:n,iconPosition:o=exports.IconPosition.RIGHT,label:a,rounded:i=!1,size:s=exports.ButtonSizes.LARGE,theme:l=exports.ButtonTheme.BLACK}=t,d=sl(t,["appearance","icon","iconPosition","label","rounded","size","theme"]);return e.jsxs(Zc,Object.assign({appearance:r,"aria-label":a,icon:n,iconPosition:o,rounded:i,size:s,theme:l},d,{children:[n&&e.jsx(Kc,{appearance:r,iconPosition:o,size:s,theme:l,children:e.jsx(e.Fragment,{children:n})}),!i&&e.jsx(Vc,{"data-test":"label",children:a})]}))},exports.ButtonRadio=Qc,exports.ButtonRadioGroup=({label:t,name:r,onChange:n,options:o,value:a})=>e.jsx(eu,{role:"radiogroup","aria-label":t,children:o.map(t=>e.jsx(Qc,{isChecked:a===t.value,name:r,option:t,onClick:()=>n(t)},`radio-option-${t.value}`))}),exports.Card=({after:r,children:n,closeToggleAriaLabel:o="Cacher le contenu",dataTest:a="card-layout",disabled:i=!1,hasToggle:s=!1,headerIcon:l,headerIconColor:d=E.dark.base,headerIconSize:c=exports.CardHeaderIconSize.MEDIUM,isOpen:u,label:f,labelAfter:p,noPadding:h,onClose:g,onOpen:m,openToggleAriaLabel:b="Afficher le contenu",toggleLabel:y,tooltip:v})=>{const $=J(),[x,w]=t.useState(u||!1),C=void 0!==u,O=C&&s&&!g,k=C&&s&&!m;return t.useEffect(()=>{C&&w(u)},[u,C]),e.jsxs(zf,{"data-test":a,disabled:i,id:f,children:[e.jsxs(Wf,{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(qf,{"data-test":"title-container",children:[l&&e.jsx(Yf,{headerIconColor:d,headerIconSize:c,children:e.jsx(e.Fragment,{children:l})}),e.jsx("div",{dangerouslySetInnerHTML:{__html:f},"data-test":`title-${a}`}),p&&e.jsx(Uf,{children:e.jsx(e.Fragment,{children:p})}),v&&e.jsx(Gf,{onClick:e=>e.stopPropagation(),children:e.jsx(_f,{placement:"auto",tooltip:v,children:e.jsx(Hf,{children:e.jsx(au,{fill:E.grey.base})})})})]}),(r||s)&&e.jsxs(Vf,{children:[r&&e.jsx(Gf,{onClick:e=>e.stopPropagation(),children:e.jsx(e.Fragment,{children:r})}),s&&e.jsxs(Zf,{children:[!$&&y&&e.jsx("span",{"data-test":"toggle-label",children:y}),e.jsx(Jf,{"aria-controls":f,"aria-expanded":x,"aria-label":x?o:y||b})]})]})]}),e.jsx(e.Fragment,{children:(!s&&n||s&&x)&&e.jsx(Kf,{"data-test":"body-card",noPadding:h,children:e.jsx(e.Fragment,{children:n})})})]})},exports.Checkbox=({checkboxSize:t=exports.CheckboxSize.SMALL,checked:r,children:o,dataTest:a,disabled:i,id:s,indeterminate:l=!1,label:d,name:c,onChange:u})=>{const f=`${s}-${c}`;return e.jsxs(ep,{checkboxSize:t,"data-test":a||`checkbox-${c}`,children:[e.jsx(np,Object.assign({},Boolean(o)&&{"aria-label":d},{checkboxSize:t,checked:r,"data-test":a?`checkbox-${a}`:"checkbox-input",disabled:i,id:f,indeterminate:l,name:c,onChange:({target:e})=>u(e.checked),type:"checkbox"})),e.jsx(tp,{checkboxSize:t,"data-test":a?`checkbox-label-${a}`:"checkbox-label",hasLabel:n.isNotEmpty(d),htmlFor:f,children:e.jsx(e.Fragment,{children:o||e.jsx(rp,{dangerouslySetInnerHTML:{__html:d}})})})]})},exports.ClickableTag=({appearance:r=ch.BUSINESS,closeAriaLabel:n="Supprimer",color:o=uh.TERRACOTA,dataTest:a="basic-tag",icon:i,labels:s,numberOfTags:l=s.length,showCloseIcon:d,onClick:c})=>{const u=s.slice(0,l);return e.jsx(t.Fragment,{children:u.map((t,s)=>e.jsxs(gh,{appearance:r,color:o,close:d,click:!!c,"data-test":a,icon:!!i,onClick:c,children:[i&&e.jsx(bh,{color:o,"data-test":"tag-icon",children:e.jsx(e.Fragment,{children:i})}),t,d&&e.jsx(mh,{"aria-label":n,appearance:r,"data-test":"tag-closer",children:e.jsx(Qp,{})})]},s))})},exports.Container=N,exports.DateInput=ad,exports.DatePicker=({date:n,dataTest:o,disabled:a,disabledDays:i,error:s,formatter:l="EEEE dd MMMM yyyy",label:d,locale:c,onDateChange:u,zIndex:f})=>{const p=t.useRef(null),[h,g]=t.useReducer((e,t)=>Object.assign(Object.assign({},e),t),{isFocused:!1,isOpen:!1}),{isOpen:m,isFocused:b}=h;return x(p,({target:e})=>{var t;(null===(t=p.current)||void 0===t?void 0:t.contains(e))||g({isFocused:!1,isOpen:!1})}),e.jsx(Wt,{ref:p,isOpen:m,"data-test":o||"date-picker-wrapper",onClick:()=>{b||a||g({isFocused:!0,isOpen:!0})},children:e.jsx(he,{disabled:a,label:d,error:s,zIndex:f,focused:b,value:n&&r.format(n,l,{locale:c}),field:m?e.jsx(zt,{date:n,disabledDays:i,locale:c,onDateChange:e=>{u(e||null),g({isFocused:!1,isOpen:!1})}}):e.jsx(t.Fragment,{})})})},exports.EmailInput=wl,exports.Energy=({carbonFootprint:t,carbonFootprintLevel:r,consumption:n,consumptionLevel:o,EPCLevel:a,textContent:i})=>{const s=1===a?0:25*(a-1)+10*(a-2),{blankEPC:l,carbonFootprintLegend:d,carbonFootprintTitle:c,carbonFootprintUnit:u,consumptionLegend:f,consumptionTitle:p,consumptionUnit:h,EPCLegend:g,EPCTitle:m}=i;return t&&n?e.jsxs("div",{children:[e.jsx(tr,{children:m}),e.jsxs(er,{"aria-label":m,role:"document",children:[e.jsx("div",{"aria-label":g,role:"group",tabIndex:0,children:e.jsx(nr,{children:e.jsx(or,{background:Vt(a),isMainScore:!0,letterSize:25,pos:s,children:exports.EnergyLevel[a]})})}),e.jsxs(lr,{children:[e.jsxs(sr,{"aria-label":f,role:"group",tabIndex:0,children:[e.jsx(ar,{children:p}),e.jsxs(ir,{children:[e.jsx(dr,{children:n}),e.jsx(or,{background:Vt(o),children:exports.EnergyLevel[o]})]}),e.jsx(cr,{children:h})]}),e.jsxs(sr,{"aria-label":d,role:"group",tabIndex:0,children:[e.jsx(ar,{children:c}),e.jsxs(ir,{children:[e.jsx(dr,{children:t}),e.jsx(or,{background:Kt(r),children:exports.EnergyLevel[r]})]}),e.jsx(cr,{children:u})]})]})]})]}):e.jsx(rr,{children:l})},exports.ErrorLayout=fr,exports.FeesInputOutputSlider=({values:r,min:n=0,max:o=100,step:a=1,disabled:i=!1,onChange:s,thumbColors:l=[E.terracota.base80,E.terracota.base40,E.greenLight.base80,E.greenLight.base40],dataTestSliderWrapper:d="fees-input-output-slider-wrapper"})=>{const c=t.useRef(null),u=function(e,t){const{lead:r,mandate:n,viewingAgent:o,projectOwner:a}=e,i=[];return r.agentId===n.agentId?i.push({keys:["lead","mandate"],percent:r.percent+n.percent,agentId:r.agentId,color:t[0]}):(i.push({keys:["lead"],percent:r.percent,agentId:r.agentId,color:t[0]}),i.push({keys:["mandate"],percent:n.percent,agentId:n.agentId,color:t[1]})),o.agentId===a.agentId?i.push({keys:["viewingAgent","projectOwner"],percent:o.percent+a.percent,agentId:o.agentId,color:t[2]}):(i.push({keys:["viewingAgent"],percent:o.percent,agentId:o.agentId,color:t[2]}),i.push({keys:["projectOwner"],percent:a.percent,agentId:a.agentId,color:t[3]})),i}(r,l),f=zh(u),p=t.useRef(r);function h(e,t){return Object.keys(e).every(r=>e[r].agentId===t[r].agentId&&e[r].percent===t[r].percent)}const g=e=>(e-n)/(o-n)*100,m=e=>t=>{if(i)return;const r=t.clientX,s=zh(u),l=s[e],d=t=>{if(!c.current)return;const i=c.current.getBoundingClientRect(),d=(t.clientX-r)/i.width;let f=l+d*(o-n);f=Wh(f,n,o);const p=0===e?n:s[e-1],h=e===u.length-2?o:s[e+1];f=Wh(f,p+a,h-a);let g=Math.round((f-p)/a)*a,m=Math.round((h-f)/a)*a;g=Math.max(0,g),m=Math.max(0,m);const b=u.map(e=>Object.assign({},e));b[e].percent=g,b[e+1].percent=m,v(b,p,h)},f=()=>{window.removeEventListener("mousemove",d),window.removeEventListener("mouseup",f)};window.addEventListener("mousemove",d),window.addEventListener("mouseup",f)},y=e=>t=>{if(i)return;let r=0;if("ArrowLeft"!==t.key&&"ArrowDown"!==t.key||(r=-a),"ArrowRight"!==t.key&&"ArrowUp"!==t.key||(r=a),0===r)return;const s=zh(u),l=0===e?n:s[e-1],d=e===u.length-2?o:s[e+1];let c=s[e]+r;c=Wh(c,l+a,d-a);let f=Math.round((c-l)/a)*a,p=Math.round((d-c)/a)*a;f=Math.max(0,f),p=Math.max(0,p);const h=u.map(e=>Object.assign({},e));h[e].percent=f,h[e+1].percent=p,v(h,l,d)};function v(e,t=n,a=o){const i=JSON.parse(JSON.stringify(r));let l=0;for(const t of e)for(const e of t.keys){let r=t.percent/t.keys.length;r=Number(r.toFixed(1)),i[e].percent=r,l+=r}const d=o-n;if(l!==d&&l>0){const t=d/l;for(const r of e)for(const e of r.keys){let r=i[e].percent*t;r=Number(r.toFixed(1)),i[e].percent=r}}const c=h(i,r),u=h(i,p.current);c||u||(p.current=i,s(i))}return e.jsx(e.Fragment,{children:e.jsxs(Lh,{ref:c,"data-test":d,children:[e.jsx(Rh,{onClick:e=>{if(i||!c.current)return;const t=c.current.getBoundingClientRect(),r=(e.clientX-t.left)/t.width*100,s=n+(o-n)*r/100;if(u.length<2)return;let l=0,d=Math.abs(f[0]-s);for(let e=1;e<f.length;e++){const t=Math.abs(f[e]-s);t<d&&(d=t,l=e)}const p=0===l?n:f[l-1],h=l===u.length-2?o:f[l+1],g=Wh(s,p+a,h-a);let m=Math.round((g-p)/a)*a,b=Math.round((h-g)/a)*a;m=Math.max(0,m),b=Math.max(0,b);const y=u.map(e=>Object.assign({},e));y[l].percent=m,y[l+1].percent=b,v(y,p,h)},disabled:i}),u.map((t,r)=>{const n=0===r?0:f[r-1],o=t.percent;return e.jsxs(b.default.Fragment,{children:[e.jsx(_h,{left:g(n),width:g(o),color:t.color,disabled:i,"aria-label":`segment-${r+1}`}),r<u.length-1&&e.jsx(Bh,{style:{left:`calc(${g(f[r])}%)`},color:E.grey.base,disabled:i,onKeyDown:y(r),onMouseDown:m(r),tabIndex:0,"aria-disabled":i,"aria-label":`thumb-${r+1}`})]},r)})]})})},exports.Fieldset=({label:t,active:r=!1,error:n=!1,children:o})=>e.jsxs(ap,{"data-test":"fieldset-layout",active:r,error:n,children:[e.jsx(op,{"data-test":"fieldset-label",children:t}),e.jsx(de,{isVisible:!0,children:e.jsx("span",{dangerouslySetInnerHTML:{__html:t}})}),e.jsx(ip,{children:e.jsx(e.Fragment,{children:o})})]}),exports.GmapsAutocomplete=jd,exports.GmapsGeocode=Pd,exports.H1=({title:t,color:r=rc,isAlternative:n=nc})=>e.jsx(Dp,{isAlternative:n,color:r,dangerouslySetInnerHTML:{__html:t}}),exports.H2=({title:t,color:r=rc,isAlternative:n=nc})=>e.jsx(Mp,{isAlternative:n,color:r,dangerouslySetInnerHTML:{__html:t}}),exports.H3=({title:t,color:r=rc,isAlternative:n=!0})=>e.jsx(Fp,{isAlternative:n,color:r,dangerouslySetInnerHTML:{__html:t}}),exports.H4=({title:t,color:r=rc,isAlternative:n=nc})=>e.jsx(Lp,{isAlternative:n,color:r,dangerouslySetInnerHTML:{__html:t}}),exports.H5=mc,exports.H6=({title:t,color:r=rc,isAlternative:n=!0})=>e.jsx(Rp,{isAlternative:n,color:r,dangerouslySetInnerHTML:{__html:t}}),exports.Input=he,exports.InputLoading=()=>e.jsx(Sp,{"data-test":"input-loading"}),exports.InterFont=P,exports.Line=A,exports.Loader=lp,exports.Logo=()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 178 41",children:e.jsx("g",{fill:"currentColor",children:e.jsx("path",{d:"M146.119.062 145.337 0l-.68.02a.538.538 0 0 0-.098.012.403.403 0 0 1-.067.01c-.535.04-1.071.082-1.606.164-2.636.474-4.902 1.668-6.693 3.625-2.657 2.883-3.707 6.302-3.151 10.173a11.458 11.458 0 0 0 3.645 6.94c2.904 2.699 6.364 3.749 10.297 3.152a11.458 11.458 0 0 0 6.797-3.584c2.903-3.089 3.933-6.775 3.109-10.915-.576-2.78-1.997-5.066-4.201-6.858a11.906 11.906 0 0 0-6.57-2.677zm5.087 12.192c-.062 3.357-2.842 6.096-6.219 6.075h-.124c-3.439-.082-6.158-2.924-6.075-6.343.082-3.44 2.924-6.158 6.343-6.075 3.439.082 6.158 2.924 6.075 6.343zM3.671 1.274l-3.32.003V24.59h6.301v-5.87H6.9c.722 0 1.441.003 2.16.005 1.434.005 2.866.01 4.307-.004 1.38 0 2.76-.206 4.057-.639 2.471-.824 4.16-2.45 4.881-4.984.577-2.018.577-4.14.02-6.158-.617-2.224-1.997-3.789-4.118-4.716a11.63 11.63 0 0 0-4.572-.927c-3.321-.03-6.642-.027-9.963-.023zM6.837 13.49h-.185V6.487H12.645c.577 0 1.153.103 1.71.31 1.256.473 1.894 1.4 2.038 2.718.083.7-.02 1.441-.309 2.1-.432.948-1.194 1.463-2.183 1.71a5.297 5.297 0 0 1-1.277.165c-1.29.013-2.57.009-3.854.004-.643-.002-1.287-.004-1.933-.004zM166.2 0c.268.02.536.041.783.062a11.863 11.863 0 0 1 7.002 3.068c2.08 1.875 3.398 4.222 3.831 6.982.597 3.748-.33 7.105-2.822 9.988a11.59 11.59 0 0 1-6.775 3.934c-4.058.762-7.621-.288-10.689-3.048a1.715 1.715 0 0 1-.188-.183h-.001v-.001a7.661 7.661 0 0 0-.099-.104 14.88 14.88 0 0 0 1.73-3.295 15.86 15.86 0 0 0 .864-3.605c.557 1.792 1.648 3.13 3.337 3.934a6.011 6.011 0 0 0 5.148.082c3.131-1.359 4.573-5.025 3.193-8.155a6.2 6.2 0 0 0-4.778-3.645c-3.213-.495-6.24 1.606-6.961 4.572a14.7 14.7 0 0 0-2.636-6.961c.206-.206.411-.412.638-.598 1.874-1.585 4.098-2.595 6.487-2.903a19.9 19.9 0 0 1 1.077-.08l.056-.003c.019 0 .037-.004.057-.009a.379.379 0 0 1 .087-.011zM47.677 24.57l-4.408-7.888c.007-.007.014-.012.019-.015l.005-.004c0-.002-.007-.002-.024-.002l.124-.082c1.792-1.133 2.924-2.719 3.398-4.778a10.168 10.168 0 0 0-.02-4.387c-.515-2.492-1.957-4.263-4.325-5.252-1.524-.638-3.151-.885-4.778-.885-2.856-.014-5.712-.01-8.568-.005-1.428.003-2.856.005-4.283.005h-.186v23.251h6.261v-6.384c0-.165.041-.227.227-.227h6.57a.276.276 0 0 1 .288.165c1.153 2.1 2.286 4.202 3.418 6.323.041.123.144.185.247.165h5.829zM31.077 13.2h-.144l-.02-.206V6.714c0-.165.04-.227.226-.227h5.931c.618 0 1.236.103 1.813.33 1.153.453 1.73 1.318 1.874 2.512.082.598.02 1.216-.165 1.792-.33 1.03-1.112 1.648-2.142 1.895a5.036 5.036 0 0 1-1.359.185c-1.333.014-2.674.01-4.013.005-.668-.002-1.336-.005-2-.005zM99.781 1.277h13.016c1.73.02 3.398.268 5.005.968 2.286 1.009 3.645 2.78 4.139 5.21.33 1.483.33 3.007-.02 4.49-.474 1.977-1.607 3.501-3.296 4.613l-.226.144 4.428 7.909h-6.014c-.123.02-.226-.062-.268-.165l-.002-.005a1758.215 1758.215 0 0 1-3.396-6.318c-.041-.103-.144-.164-.267-.164h-6.591c-.165 0-.206.04-.206.206v6.425h-6.26zm6.282 11.924h.185c.659 0 1.318.003 1.977.005 1.318.004 2.636.009 3.954-.005.474 0 .948-.062 1.401-.185.947-.227 1.668-.742 2.08-1.648.268-.638.35-1.338.247-2.039-.124-1.07-.597-1.894-1.586-2.389a4.656 4.656 0 0 0-2.1-.453h-5.952c-.165 0-.206.042-.206.227v6.281zm-32.87-.72c0-6.838-5.519-12.378-12.356-12.399C54.06.062 48.542 5.5 48.439 12.274v.165c0 6.838 5.52 12.378 12.357 12.398 6.837 0 12.398-5.52 12.398-12.357zm-12.418 6.343a6.324 6.324 0 0 1-6.281-6.364v-.062c.02-3.48 2.883-6.281 6.363-6.26 3.48 0 6.302 2.862 6.282 6.404a6.324 6.324 0 0 1-6.364 6.282zm20.986-.103v5.849h-6.26V1.277h12.933c1.647 0 3.254.247 4.778.885 2.368 1.01 3.81 2.801 4.345 5.314.391 1.75.37 3.583-.082 5.334-.66 2.574-2.266 4.284-4.758 5.19a10.28 10.28 0 0 1-3.418.659c-1.607.041-3.193.041-4.799.041h-2.533zm0-8.733v3.296c0 .185.041.226.227.226 1.894 0 3.789 0 5.684-.02.473 0 .926-.062 1.38-.165 1.132-.289 1.977-.948 2.327-2.1.247-.825.247-1.69 0-2.513s-.824-1.483-1.607-1.813a5 5 0 0 0-1.977-.412h-5.807c-.186 0-.206.062-.206.227-.021 1.091-.021 2.183-.021 3.274zm49.036-8.711h-6.261V24.57h6.261zM14.54 32.766h1.277a3.277 3.277 0 0 0-.371-1.174 3.156 3.156 0 0 0-.762-.885 3.213 3.213 0 0 0-1.05-.556 4.12 4.12 0 0 0-1.257-.186c-.72 0-1.359.165-1.936.515-.556.35-1.009.844-1.338 1.483-.33.638-.494 1.421-.494 2.307 0 .885.164 1.668.494 2.306.33.639.762 1.133 1.338 1.483.557.35 1.216.515 1.936.515.453 0 .886-.062 1.277-.206s.742-.33 1.05-.577c.289-.247.557-.535.742-.885.185-.35.33-.721.391-1.133H14.56a1.934 1.934 0 0 1-.288.7c-.144.206-.288.37-.494.515a2.472 2.472 0 0 1-.66.33 3.09 3.09 0 0 1-.761.103c-.494 0-.906-.124-1.298-.371-.39-.247-.68-.597-.906-1.071-.226-.474-.33-1.05-.33-1.73 0-.68.104-1.256.33-1.73.227-.474.536-.824.906-1.07.392-.248.824-.372 1.298-.372.268 0 .515.021.762.103.247.083.453.186.659.33.206.144.37.33.494.535.124.206.227.453.268.721zM1.05 38.347c.31.144.68.227 1.071.227.35 0 .639-.062.906-.165a2.27 2.27 0 0 0 .618-.391c.144-.165.268-.31.35-.474h.042v.865H5.23v-4.18c0-.454-.062-.824-.226-1.113a1.907 1.907 0 0 0-.618-.659 2.288 2.288 0 0 0-.804-.33 3.798 3.798 0 0 0-1.894.083 2.65 2.65 0 0 0-.906.515c-.268.226-.453.535-.598.927l1.154.267c.103-.206.267-.411.494-.597.226-.185.556-.268.968-.268s.7.103.906.289c.206.185.309.473.309.824v.02c0 .165-.062.268-.165.33s-.288.123-.515.144c-.134.012-.298.032-.486.054l-.42.049a6.117 6.117 0 0 0-.885.165c-.289.082-.556.185-.783.308s-.412.289-.556.536c-.144.247-.206.535-.206.885 0 .412.082.763.288 1.05.186.269.453.495.762.64zm2.204-.968c-.227.144-.536.206-.865.206-.35 0-.618-.103-.844-.247-.227-.144-.33-.37-.33-.68 0-.226.041-.411.165-.535.123-.144.288-.247.474-.309.185-.062.411-.123.638-.144.088 0 .19-.015.309-.032l.062-.01c.144-.02.288-.04.453-.061a5 5 0 0 1 .185-.042c.09-.019.172-.036.247-.06a.67.67 0 0 0 .247-.125v.804c0 .247-.061.473-.185.7s-.309.412-.556.535zm15.24 1.195c-.391 0-.762-.083-1.07-.227s-.578-.37-.763-.638a1.906 1.906 0 0 1-.288-1.05c0-.35.062-.639.206-.886s.33-.412.556-.536c.226-.123.494-.226.782-.308s.577-.124.886-.165l.42-.049c.188-.022.351-.042.486-.054.227-.02.412-.083.515-.144s.165-.165.165-.33v-.02c0-.35-.103-.639-.31-.824-.205-.186-.493-.289-.885-.289s-.741.083-.968.268a1.63 1.63 0 0 0-.494.597l-1.153-.267c.144-.392.33-.7.597-.927a2.65 2.65 0 0 1 .906-.515 3.798 3.798 0 0 1 1.895-.082c.288.062.556.165.803.33.247.164.453.37.597.658.144.289.247.66.247 1.112v4.181H20.43v-.865h-.041c-.083.165-.206.309-.35.474-.165.144-.371.288-.618.391a2.65 2.65 0 0 1-.927.165zm.268-.989c.33 0 .638-.062.865-.206.247-.123.432-.309.556-.535s.185-.453.185-.7v-.804a.67.67 0 0 1-.247.124c-.075.025-.157.042-.247.061-.059.013-.12.026-.185.042-.165.02-.31.041-.453.062l-.062.009c-.118.017-.221.032-.31.032-.246.02-.452.082-.658.144-.186.062-.35.165-.474.31-.123.123-.165.308-.165.535 0 .309.103.535.33.68.226.143.515.246.865.246zm7.496-3.727 1.112-.186c-.123-.494-.37-.885-.782-1.174-.391-.288-.927-.432-1.607-.432-.473 0-.885.062-1.256.226-.37.165-.659.371-.865.66a1.555 1.555 0 0 0-.309.967c0 .453.144.824.412 1.113.268.288.72.514 1.298.638l1.07.226c.289.083.515.186.66.31.164.123.226.288.226.494 0 .247-.123.453-.37.618-.248.164-.577.247-.969.247-.35 0-.659-.062-.885-.227-.227-.165-.37-.391-.453-.7l-1.195.185c.103.536.371.968.824 1.277.453.31 1.03.453 1.73.453.494 0 .947-.082 1.339-.247.391-.185.68-.412.906-.7.226-.288.33-.639.33-1.01 0-.452-.145-.802-.433-1.09-.288-.29-.721-.495-1.298-.619l-.988-.226c-.35-.083-.597-.186-.762-.31a.702.702 0 0 1-.227-.514c0-.247.124-.432.35-.597.227-.144.515-.227.865-.227.268 0 .453.041.639.124.185.082.309.185.412.309.103.144.185.267.226.412zm3.83 4.716c-.39 0-.761-.083-1.07-.227a1.926 1.926 0 0 1-.762-.638 1.906 1.906 0 0 1-.288-1.05c0-.35.061-.639.206-.886.144-.247.33-.412.556-.536.226-.123.494-.226.782-.308s.577-.124.886-.165l.42-.049c.188-.022.351-.042.486-.054a1.29 1.29 0 0 0 .515-.144c.103-.062.165-.165.165-.33v-.02c0-.35-.103-.639-.31-.824-.205-.186-.494-.289-.906-.289s-.74.083-.968.268a1.863 1.863 0 0 0-.494.597l-1.153-.267c.144-.392.33-.7.597-.927.268-.227.577-.412.906-.515s.7-.165 1.092-.165c.247 0 .515.02.803.083s.556.165.803.33c.247.164.453.37.597.658.145.289.227.66.227 1.112v4.181h-1.194v-.865h-.042c-.082.165-.206.309-.35.474a2.27 2.27 0 0 1-.618.391 2.264 2.264 0 0 1-.885.165zm.269-.989c.33 0 .638-.062.865-.206.247-.123.432-.309.556-.535.123-.227.185-.453.185-.7v-.804a.671.671 0 0 1-.247.124c-.075.025-.157.042-.247.061-.059.013-.12.026-.186.042-.164.02-.309.041-.453.062l-.061.009a2.288 2.288 0 0 1-.31.032c-.226.02-.452.082-.638.144-.185.062-.35.165-.474.31-.123.123-.185.308-.185.535 0 .309.103.535.33.68.226.164.514.246.865.246zm6.755.845 2.286-6.302H38.08l-1.586 4.84h-.062l-1.586-4.84h-1.318l2.266 6.302zm5.293.123c-.598 0-1.113-.144-1.545-.412a2.751 2.751 0 0 1-1.03-1.132c-.247-.495-.37-1.05-.37-1.71s.123-1.215.37-1.71c.247-.493.577-.864 1.03-1.132.432-.268.947-.412 1.545-.412.597 0 1.112.144 1.544.412.433.268.783.639 1.03 1.133s.37 1.05.37 1.71-.123 1.214-.37 1.709c-.247.494-.577.865-1.03 1.132a2.932 2.932 0 0 1-1.544.412zm0-1.03c.39 0 .7-.103.947-.308a1.88 1.88 0 0 0 .556-.804c.124-.33.185-.7.185-1.112s-.061-.762-.185-1.112a1.764 1.764 0 0 0-.556-.803c-.247-.206-.577-.309-.947-.309s-.7.103-.948.309c-.247.206-.432.474-.556.803s-.185.7-.185 1.112.062.783.185 1.112.309.598.556.804c.247.205.556.308.948.308zm7.29.618c.433.268.947.412 1.565.412a3.76 3.76 0 0 0 1.318-.226c.371-.186.68-.433.886-.762.206-.33.35-.68.391-1.092h-1.194a1.356 1.356 0 0 1-.268.577 1.191 1.191 0 0 1-.474.37 1.68 1.68 0 0 1-.638.124c-.35 0-.66-.082-.906-.268-.268-.185-.453-.453-.598-.782-.144-.35-.206-.742-.206-1.195s.062-.844.206-1.174c.145-.33.35-.576.598-.762.267-.185.556-.267.906-.267.391 0 .7.123.927.33.247.205.39.473.453.761h1.194a2.202 2.202 0 0 0-.412-1.112 2.479 2.479 0 0 0-.906-.741c-.37-.186-.803-.268-1.277-.268-.597 0-1.112.124-1.544.412-.433.288-.762.659-1.01 1.153-.247.494-.37 1.071-.37 1.689s.123 1.174.35 1.668c.226.494.577.886 1.01 1.153zm7.538.412c-.598 0-1.112-.144-1.545-.412a2.751 2.751 0 0 1-1.03-1.132c-.247-.495-.37-1.05-.37-1.71s.123-1.215.37-1.71c.247-.493.577-.864 1.03-1.132.433-.268.947-.412 1.545-.412.597 0 1.112.144 1.544.412.433.268.783.639 1.03 1.133s.37 1.05.37 1.71-.123 1.214-.37 1.709c-.247.494-.577.865-1.03 1.132a2.985 2.985 0 0 1-1.544.412zm0-1.03c.391 0 .7-.103.947-.308.247-.206.432-.474.556-.804s.186-.7.186-1.112-.062-.762-.186-1.112-.309-.597-.556-.803c-.247-.206-.577-.309-.947-.309s-.7.103-.948.309a1.88 1.88 0 0 0-.556.803c-.123.33-.185.7-.185 1.112s.062.783.185 1.112c.124.33.31.598.556.804.248.205.556.308.948.308zm3.707-5.395v6.302l1.235.02v-3.872c0-.267.062-.514.186-.74.123-.228.268-.392.473-.516.186-.123.412-.185.639-.185.33 0 .618.103.824.309.206.206.309.473.309.824v4.18h1.215v-4.016c0-.391.103-.7.33-.947.226-.247.535-.37.926-.37.309 0 .597.102.824.288.226.185.35.494.35.926v4.099h1.235v-4.222c0-.721-.164-1.277-.535-1.627s-.824-.536-1.4-.536c-.454 0-.845.103-1.174.31a1.8 1.8 0 0 0-.721.802h-.062a1.885 1.885 0 0 0-.638-.803c-.268-.185-.639-.288-1.05-.288s-.783.103-1.072.288a1.558 1.558 0 0 0-.638.803h-.082v-1.03zm9.618 8.65v-8.65h1.194v1.009h.103c.062-.124.165-.289.309-.453.123-.165.309-.33.556-.453.226-.124.556-.186.947-.186.515 0 .968.124 1.36.392.39.267.72.618.947 1.112.226.494.35 1.07.35 1.75s-.103 1.257-.33 1.75c-.226.495-.535.866-.926 1.113a2.504 2.504 0 0 1-1.36.391c-.39 0-.7-.061-.926-.185a2.164 2.164 0 0 1-.577-.453 2.217 2.217 0 0 1-.309-.453h-.082v3.315zm1.194-5.5c0 .433.062.824.185 1.154s.31.597.556.783c.248.185.536.288.886.288s.68-.103.927-.288.432-.454.556-.804c.123-.33.185-.72.185-1.132s-.062-.783-.185-1.112c-.124-.33-.31-.598-.556-.783-.247-.185-.556-.288-.927-.288s-.66.082-.906.267a1.638 1.638 0 0 0-.556.762c-.103.33-.165.721-.165 1.154zm6.096 3.07c.309.143.68.226 1.07.226.351 0 .66-.062.948-.165a2.27 2.27 0 0 0 .618-.391c.144-.165.268-.31.35-.474h.041v.865h1.195v-4.18c0-.454-.062-.824-.227-1.113a1.906 1.906 0 0 0-.617-.659c-.248-.165-.515-.268-.804-.33a3.79 3.79 0 0 0-1.894.083 2.65 2.65 0 0 0-.907.515c-.267.226-.453.535-.597.927l1.154.267c.102-.206.267-.411.494-.597.226-.185.576-.268.968-.268s.68.083.885.289c.206.185.31.473.31.824v.02c0 .165-.063.268-.166.33a1.29 1.29 0 0 1-.514.144c-.16.013-.345.035-.556.06l-.371.043c-.31.041-.597.103-.886.165a3.876 3.876 0 0 0-.782.308 1.385 1.385 0 0 0-.556.536c-.145.247-.206.535-.206.885 0 .412.103.783.288 1.05.185.269.453.495.762.64zm2.204-.969c-.247.144-.536.206-.865.206a1.59 1.59 0 0 1-.865-.247c-.227-.144-.33-.37-.33-.68 0-.226.062-.411.186-.535a.954.954 0 0 1 .473-.309c.186-.062.412-.123.639-.144.088 0 .19-.015.309-.032l.061-.01c.145-.02.289-.04.453-.061.065-.016.127-.03.186-.042.09-.019.172-.036.247-.06a.671.671 0 0 0 .247-.125v.804c0 .247-.062.473-.185.7a1.272 1.272 0 0 1-.556.535zm4.263-2.698v3.728h-1.236v-6.281h1.174v1.03h.082c.144-.33.371-.598.68-.804.309-.206.7-.309 1.174-.309.432 0 .803.083 1.133.268.329.185.576.453.74.803.186.35.269.783.269 1.298v3.995h-1.236v-3.851c0-.453-.124-.803-.35-1.071-.227-.247-.556-.391-.989-.391-.288 0-.535.061-.762.185a1.291 1.291 0 0 0-.515.535c-.123.227-.164.536-.164.865zm5.128 6.055c.144.02.309.041.494.041.35.021.639 0 .886-.123.247-.124.473-.268.659-.515.185-.247.33-.515.453-.844l2.595-7.126h-1.318l-1.586 4.88h-.062l-1.586-4.88H88.66l2.307 6.364-.144.412c-.103.267-.206.473-.35.597-.145.103-.289.185-.474.185-.186 0-.37-.02-.597-.082l-.289 1.009c.062.02.186.062.33.082z"})})}),exports.NumberInput=r=>{var{focused:n,isFloat:o=!1,onBlur:a,onChange:i,onFocus:s,value:l}=r,d=sl(r,["focused","isFloat","onBlur","onChange","onFocus","value"]);const[c,u]=t.useState(Boolean(n)),[f,p]=t.useState(l?l.toString():"");return t.useEffect(()=>{if(null===l)return p("");const e=null==l?void 0:l.toString();e&&e!==f&&p(e)},[l]),e.jsx(he,Object.assign({},d,{onFocus:()=>{u(!0),s&&s()},onBlur:()=>{u(!1),p(((e,t)=>{const r=Ep(e),n=t?parseFloat(r):parseInt(r,10);return isNaN(n)?"":n.toString()})(f,o)),a&&a()},onChange:e=>{const t=Ep(e,!0),r=t.endsWith(".");if(o&&Np.test(t)||!o&&jp.test(t)){if(p(t),r)return;if(""===t)return i(null);const e=o?parseFloat(t):parseInt(t,10);isNaN(e)||l===e||i(e)}},value:c?f:Ip(f,o)}))},exports.OfferSignatoryForm=({offerSignatoryInfo:r,errors:o,customErrorMessages:a={},updateOfferSignatory:i})=>{const{dateOfBirth:s,placeOfBirth:l,street:d,streetNumber:c,city:u,postCode:f,maritalStatus:p}=r,[h,g]=t.useState(n.listToString([c,d,f,u])),m=!!o.street||!!o.city||!!o.postCode,b=Object.assign(Object.assign({},Fd),a);return e.jsxs("div",{children:[e.jsxs(A,{children:[e.jsx(Pd,{dataTest:"offer-signatory-address",disabled:!1,label:Dd,value:h,onChange:e=>{g(e),e||i(Object.assign(Object.assign({},r),{city:"",postCode:"",street:"",streetNumber:""}))},onSelect:e=>{const{city:t,postalCode:o,street:a,streetNumber:s}=n.getFormattedAddressComponent(e);i(Object.assign(Object.assign({},r),{city:(null==t?void 0:t.long_name)||"",postCode:(null==o?void 0:o.long_name)||"",street:(null==a?void 0:a.long_name)||"",streetNumber:(null==s?void 0:s.long_name)||""}))},error:m,country:""}),m&&e.jsx(fr,{dataTest:"address",children:b.address})]}),e.jsx(A,{children:e.jsxs(q,{children:[e.jsxs("div",{children:[e.jsx(ad,{dataTest:"offer-signatory-birth-date",label:Td,disabled:!1,error:!!o.dateOfBirth,onChange:e=>e&&i(Object.assign(Object.assign({},r),{dateOfBirth:new Date(e)})),value:s?s.toISOString():""}),o.dateOfBirth&&e.jsx(fr,{dataTest:"dateOfBirth",children:b.dateOfBirth})]}),e.jsxs("div",{children:[e.jsx(he,{dataTest:"offer-signatory-birth-place",label:Ad,error:!!o.placeOfBirth,disabled:!1,onChange:e=>i(Object.assign(Object.assign({},r),{placeOfBirth:e})),value:l}),o.placeOfBirth&&e.jsx(fr,{dataTest:"placeOfBirth",children:b.placeOfBirth})]})]})}),e.jsx(A,{children:e.jsxs(q,{children:[e.jsxs("div",{children:[e.jsx(Gl,{dataTest:"offer-signatory-marital-status",disabled:!1,error:!!o.maritalStatus,label:Md,onSelect:({value:e})=>i(Object.assign(Object.assign({},r),{maritalStatus:e})),option:Ld.find(({value:e})=>e===p)||null,options:Ld}),o.maritalStatus&&e.jsx(fr,{dataTest:"maritalStatus",children:b.maritalStatus})]}),e.jsx("div",{})]})})]})},exports.OfferSignatoryFormSchema=Rd,exports.Option=Pl,exports.Phone=il,exports.PhoneAndFlag=({color:r=E.dark.base,errorMessage:n,onError:o,phone:a})=>{const i=a?Ql(a):null;return t.useEffect(()=>{!i&&o&&o()},[o,i]),i?e.jsx(_d,{children:e.jsxs(t.Fragment,{children:[e.jsx(Bd,{alt:i.country,"data-test":"flag",src:`https://appsales-cdn.casavo.com/assets/flags/${i.country}.svg`}),e.jsx(zd,{color:r,"data-test":"phone",children:Xl(i.number)})]})}):e.jsx(_d,{children:e.jsx(Wd,{"data-test":"incorrect-phone",children:n})})},exports.PhoneInput=({label:t,value:r,onChange:n,dataTest:o,disabled:a=!1,error:i=!1,phoneWithFlags:s=!1,required:l=!1})=>e.jsx(he,{dataTest:o||"customer-phone",name:"phone",type:exports.InputType.TEL,disabled:a,error:i,label:t,value:r,onChange:n,inputElement:il,phoneWithFlags:s,required:l}),exports.PlacesAutocomplete=vd,exports.Radio=({name:t,label:r,id:n,isChecked:o,onChange:a,value:i,dataTest:s})=>{const l=`${n}-${t}`;return e.jsxs(Pp,{"data-test":s||`radio-${t}`,children:[e.jsx(Ap,{type:"radio",id:l,name:t,value:i,onChange:e=>a(e),checked:o}),e.jsx(Tp,{htmlFor:l,children:r})]})},exports.Row=q,exports.Select=Gl,exports.SingleMonth=t=>e.jsx(Gt,{children:e.jsx(zt,Object.assign({},t))}),exports.Slider=t=>{const{decimals:r=0,disabled:n=!1,value:o=0,min:a=0,max:i=100,step:s=1,leftColor:l=E.terracota.base,leftLabel:d="",rightColor:c=E.terracota.base20,rightLabel:u="",onChange:f,showLeft:p=!0,showRight:h=!0,showPercentageSign:g=!0,thumbColor:m=E.terracota.base,dataTestSliderWrapper:b="slider-wrapper",dataTestSliderInput:y="slider-input"}=t;return e.jsxs(Th,{"data-test":b,children:[p&&e.jsxs(Dh,{children:[e.jsx(Mh,{children:d}),e.jsx(Fh,{children:`${o.toFixed(r)}${g?"%":""}`})]}),e.jsx(Ah,{"data-test":y,disabled:n,type:"range",percent:(o-a)/(i-a)*100,min:a,max:i,step:s,value:Number(o),leftColor:l,rightColor:c,thumbColor:m,onChange:e=>f(Number(e.target.value))}),h&&e.jsxs(Dh,{children:[e.jsx(Mh,{children:u}),e.jsx(Fh,{children:`${(i+a-o).toFixed(r)}${g?"%":""}`})]})]})},exports.Subtitle=({text:t,color:r=E.dark.base})=>e.jsx(Xp,{"data-test":"subtitle",children:e.jsx(Jp,{color:r,"data-test":"subtitle-label",children:t})}),exports.Tag=({appearance:r=exports.TagAppearance.BUSINESS,closeAriaLabel:n="Supprimer",color:o=exports.TagColorsTypes.TERRACOTA,dataTest:a="basic-tag",icon:i,labels:s,numberOfTags:l=s.length,onClose:d})=>{const c=s.slice(0,l),u=s.slice(l);return e.jsxs(t.Fragment,{children:[c.map((t,s)=>e.jsxs(oh,{appearance:r,color:o,close:!!d,"data-test":a,icon:!!i,children:[i&&e.jsx(dh,{color:o,"data-test":"tag-icon",children:e.jsx(e.Fragment,{children:i})}),t,d&&e.jsx(ah,{"aria-label":n,appearance:r,"data-test":"tag-closer",onClick:d,children:e.jsx(Qp,{})})]},s)),Boolean(u.length)&&e.jsxs(lh,{"data-test":"list-tag",children:[e.jsxs(oh,{appearance:r,color:o,"data-test":a,icon:!!i,children:[i&&e.jsx(dh,{color:o,"data-test":"tag-icon",children:e.jsx(e.Fragment,{children:i})}),`+ ${u.length}`]}),e.jsx(sh,{appearance:r,color:o,children:u.map((t,r)=>e.jsx(ih,{"data-test":"tag-element",children:t},r))})]})]})},exports.TagBase=th,exports.TextToggle=({text:r,dataTest:n="text-toggle",isComment:o=!1,maxLength:a=300,showLessLabel:i="Lire moins",showMoreLabel:s="Lire plus",title:l})=>{const d=(e=>e.split(Ph).filter(Boolean).join(" "))(r),c=d.length>a,[u,f]=t.useState(c),p=((e,t)=>{if(e.length<=t||t<0)return e;if(" "===e.charAt(t))return e.slice(0,t).concat("…");const r=e.slice(0,t),[n]=e.slice(t,e.length).split(" ");return r.concat(n).concat("…")})(d,a);return e.jsxs(Eh,{"data-test":n,children:[l&&e.jsx(Nh,{"data-test":"text-toggle-title",children:`${l} : `}),e.jsx(jh,{isComment:o,children:u?p:d}),c&&e.jsx(Ih,{isComment:o,hasTitle:Boolean(l),onClick:()=>f(!u),children:u?s:i})]})},exports.Textarea=kh,exports.Toggle=({label:t,id:r,checked:n=!1,disabled:o=!1,name:a,dataTest:i,onChange:s})=>e.jsxs(Zp,{children:[e.jsx(Vp,{checked:n,onChange:e=>{s(e.target.checked)},icons:!1,name:a,id:r,disabled:o,"data-test":i||`toggle-${a}`}),e.jsx(Kp,{htmlFor:r,disabled:o,"data-test":"toggle-label",children:t})]}),exports.Tooltip=_f,exports.UserForm=({disabledFields:t={},emailSuggestionI18nLabels:r,errorMessages:n={},errors:o,hasLanguagePreferences:a=!1,isEmailSuggestionEnabled:i=!0,labels:s=Hl,phoneWithFlags:l=!1,defaultCountry:d,user:c,userLanguageOptions:u=Ul,updateUser:f})=>{const{email:p,firstName:h,language:g,lastName:m,phone:b}=c,y=Object.assign(Object.assign({},Yl),n);return e.jsxs("div",{children:[e.jsx(A,{children:e.jsxs(q,{children:[e.jsxs("div",{children:[e.jsx(he,{dataTest:"customer-firstName",name:"first-name",type:exports.InputType.TEXT,disabled:t.firstName,error:!!o.firstName,label:s.firstName,value:h,onChange:e=>f(Object.assign(Object.assign({},c),{firstName:e}),"user.firstName")}),!!o.firstName&&e.jsx(fr,{dataTest:"invalid-firstName",children:y.firstName})]}),e.jsxs("div",{children:[e.jsx(he,{dataTest:"customer-lastName",name:"last-name",type:exports.InputType.TEXT,disabled:t.lastName,error:!!o.lastName,label:s.lastName,value:m,onChange:e=>f(Object.assign(Object.assign({},c),{lastName:e}),"user.lastName")}),!!o.lastName&&e.jsx(fr,{dataTest:"invalid-lastName",children:y.lastName})]})]})}),e.jsx(A,{children:e.jsxs(q,{children:[e.jsxs("div",{children:[e.jsx(wl,{dataTest:"customer-email",name:"email",disabled:t.email,error:!!o.email,label:s.email,isSuggestionEnabled:i,i18nLabels:r,value:p,onChange:e=>f(Object.assign(Object.assign({},c),{email:ql(e)}),"user.email")}),!!o.email&&e.jsx(fr,{dataTest:"invalid-email",children:y.email})]}),e.jsxs("div",{children:[e.jsx(he,{dataTest:"customer-phone",name:"phone",type:exports.InputType.TEL,disabled:t.phone,error:!!o.phone,label:s.phone,value:b,onChange:e=>f(Object.assign(Object.assign({},c),{phone:e||null}),"user.phone"),inputElement:il,phoneWithFlags:l,defaultCountry:d}),!!o.phone&&e.jsx(fr,{dataTest:"invalid-phone",children:y.phone})]})]})}),a&&e.jsx(A,{children:e.jsx(q,{children:e.jsxs("div",{children:[e.jsx(Gl,{dataTest:"customer-language",disabled:t.language,error:!!o.language,label:s.language,onSelect:({value:e})=>{f(Object.assign(Object.assign({},c),{language:e}),"user.language")},option:u.find(({value:e})=>e===g)||null,options:u}),!!o.language&&e.jsx(fr,{dataTest:"invalid-language",children:y.language})]})})})]})},exports.UserSchema=td,exports.breakpoints=C,exports.colors=E,exports.convertPxToRem=I,exports.createAction=Z,exports.fonts=T,exports.formatISODate=nd,exports.formatInternationalPhone=Xl,exports.formatPhoneNumber=e=>tl(e,rl),exports.geocodeByAddress=yd.geocodeByAddress,exports.getCarbonFootprintLevel=Xt,exports.getConsumptionLevel=Zt,exports.getEPCLevel=Jt,exports.getEPCLevels=(e,t,r)=>{const n=Zt(t,r),o=Xt(e,r);return{consumptionLevel:n,carbonFootprintLevel:o,EPCLevel:Jt(n,o,r)}},exports.getGeoSearchSuggestions=re,exports.isTouchDevice=Q,exports.isValidDate=od,exports.isValidPhoneNumber=Jl,exports.paragraphs=H,exports.parsePhoneNumber=Ql,exports.radius=Y,exports.resetCssButton=ee,exports.scrollbar=K,exports.shadows=V,exports.titles=oc,exports.useDebounce=gl,exports.useEmailSuggestion=yl,exports.useMobileDevice=()=>X(`(max-width: ${C.base-1}px)`),exports.useModal=({onAbort:r,onOpen:n,onClose:o}={})=>{const[{isAborting:a,fade:i,isLoading:s,isOpen:l},d]=t.useReducer(fp,{isAborting:!1,fade:dp.IN,isOpen:!1,isLoading:!1}),c=(()=>{const e=t.useRef(!0);return t.useEffect(()=>{e.current=!1},[]),e.current})(),u=t.useCallback(()=>{l&&d(up.toggleLoad())},[l]),f=t.useCallback(()=>{n&&n(),d(up.open())},[n]),p=t.useCallback(()=>{!s&&l&&d(up.close())},[s,l]),h=t.useCallback(()=>{!s&&l&&d(up.abort())},[s,l]),g=t.useCallback(()=>d(up.animationEnd()),[]),m=t.useCallback(()=>{a&&r&&r(),o&&o(),d(up.reset())},[a,r,o]);t.useEffect(()=>{l||c||m()},[l]);return{closeModal:p,createModal:({children:r,icon:n,isAlternative:o=!1,isClosable:a=!0,isFullScreen:d,noPadding:c,text:u,title:f})=>l?e.jsx(kp,{abortModal:h,fade:i,icon:n,isAlternative:o,isClosable:a,isFullScreen:d,isLoading:s,noPadding:c,onAnimationEnd:g,text:u,title:f,children:r}):e.jsx(t.Fragment,{}),openModal:f,toggleLoader:u}},exports.useOnClickOutside=x,exports.useSmallSmartphoneDevice=()=>X(`(max-width: ${C.smallest-1}px)`),exports.useSmartphoneDevice=J;
|
|
3093
|
+
`;function Gh(e){let t=0;return e.slice(0,-1).map(e=>t+=e.percent)}const Uh=(e,t,r)=>Math.max(t,Math.min(e,r));exports.Accordion=({children:t,preExpanded:r,allowMultipleExpanded:n})=>e.jsx(qd,{preExpanded:r,allowMultipleExpanded:n,children:t}),exports.AccordionHeader=({isAlternative:t,basic:r,children:n})=>e.jsx(hc,{children:({expanded:o,toggleExpanded:a})=>e.jsxs(ac,{onClick:()=>a(),"data-test":"accordion-header",children:[e.jsx(ic,{isAlternative:t,basic:r,children:e.jsx(e.Fragment,{children:n})}),e.jsx(sc,{isOpen:o,children:e.jsx(Cl,{})})]})}),exports.AccordionItem=({children:t,uuid:r,color:n=exports.AccordionItemColors.ORANGE})=>e.jsx(pc,{uuid:r,children:e.jsx(hc,{children:({expanded:o})=>e.jsx(dc,{isOpen:o,color:n,"data-test":""+(o?`${r}-item-opened`:`${r}-item-closed`),children:e.jsx(e.Fragment,{children:t})})})}),exports.AccordionPanel=({children:r,unmountOnCollapse:n})=>e.jsx(hc,{children:({expanded:o})=>e.jsx(lc,{isOpen:o,children:!n||o?e.jsx("div",{"data-test":"panel-content",children:r}):e.jsx(t.Fragment,{})})}),exports.AgentBanner=({children:t,agent:{image_agent:r,name:n,zone:o,fonction:a},rounded:i=!0})=>e.jsxs(bc,{"data-test":"agent-card",rounded:i,children:[e.jsxs(xc,{children:[n&&e.jsx(mc,{title:n,color:E.green.base}),a&&e.jsx(wc,{"data-test":"agent-fonction",children:a}),o&&e.jsx(wc,{"data-test":"agent-zone",children:o}),e.jsx(e.Fragment,{children:t})]}),e.jsx(vc,{children:e.jsx($c,{children:e.jsx(yc,{"data-test":"agent-image",src:r,loading:"lazy"})})})]}),exports.AgentCard=({agent:{image_agent:t,name:r,zone:n,fonction:o,trustpilot_comment:a},showComment:i=!0})=>t?e.jsxs(Cc,{"data-test":"agent-card-layout",children:[e.jsxs(Oc,{children:[n&&e.jsxs(jc,{"data-test":"agent-zone",children:[e.jsx("img",{src:"data:image/svg+xml,%3Csvg%20fill%3D%22none%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22m12%200c-4.198%200-8%203.403-8%207.602%200%204.198%203.469%209.21%208%2016.398%204.531-7.188%208-12.2%208-16.398%200-4.199-3.801-7.602-8-7.602zm0%2011c-1.657%200-3-1.343-3-3s1.343-3%203-3%203%201.343%203%203-1.343%203-3%203z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"}),n]}),e.jsx(kc,{"data-test":"agent-image",src:t,loading:"lazy"})]}),e.jsxs(Sc,{children:[r&&e.jsx(Ec,{"data-test":"agent-name",children:r}),o&&e.jsx(Ic,{"data-test":"agent-fontion",children:o}),i&&a&&e.jsxs("div",{children:[e.jsx(Nc,{"data-test":"agent-comment",children:a}),e.jsxs(Pc,{children:[e.jsx("img",{"data-test":"stars",src:"data:image/svg+xml,%3Csvg%20fill%3D%22none%22%20height%3D%2216%22%20width%3D%22112%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Cpattern%20id%3D%22a%22%20height%3D%221%22%20patternContentUnits%3D%22objectBoundingBox%22%20width%3D%221%22%3E%3Cimage%20height%3D%2216%22%20transform%3D%22matrix%28.00903%200%200%20.0625%20-.001%200%29%22%20width%3D%22111%22%20xlink%3Ahref%3D%22data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAG8AAAAQCAYAAAAYsSF0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAc%2FSURBVHgB3Vh7UFTXGf%2FOuXsfuywuIFQFCghxWVaCmSCObZrWam1Dp0k7UK0aa3nMwKQmM23SkEwcJ5t02klIbZtJm0SrkNYwaUKNbS2JxsqY6GDklUwevEFQYXkEVtZlH%2FfuvSff7pqNOBAF%2FmJ%2FM3f33u985zu%2F73HOPfcA3AA%2Bu2StaCnZJ2QV94iWUi%2Fe%2B%2FBqD8jEzJ2ZYcWaR1fBa7ZEWCCaD%2F%2FgTlggmg%2FfvQLtrIAFYrFxoeG7FWUGIav0MFXgPD49TBghwFgD3p9lAFJAxghfA9YtAhzZkwo6ugu224ZgAQg4as4zn1yosyuzrRVp1rTHYAFYjFxCyUvZESuYlFOEsZ1AoF7jtHW%2BjqoMX2fVRvzfJHdUrSRAvyv7IR%2F2ZiSC4j8ELlYJC0QqOhpl4uJSrCnzdrZ5%2F90romKlcmOcVNa8f%2F6BX4xcgskTDYanCJD1BOD3mKzvK5%2B%2B0nSjorfj4Gl4wghA2FsArBpKK6%2FCAhBw1GgSyz1jzRAdI5W9h88wD6TckVlB%2FMN6otr1yWuS5xX4xcqF8qt3rgHQHgIGp7wdVXtQxmbUfPWhJaA3nMDWBthWWSNYih7Xm3clwTwRcJRqI3qmykDZiN68xjxnZwOORicYypWpiyC7LoEpwTCvwC9WLkS0FL%2BAfw9qhOUq7dWtQSmzUSA2LaxV83gscOyfeGcBhVsPe%2Fq9okGawCw%2FhUuqDW4BDS9tTEpIMt0WlZBilgzeVfol4oOqs0nPNBWH54A35XncLt9fvC6l2zfm6OobnOzZ9ED94DQbf%2FyGPio%2BOiMuNdEsRketEgSSr5fGviNfvRBsF6LTwCPHvyu75eM%2B51T3yMBYl%2ByY6vnmw%2Bc8kcgFk1fSzxi45c4qayhRj%2BQCx72DTTbY9uwL8MYWDrT0I9jyY2CkALY%2FcxRyy3hxyn8FNzQtvs7qb39V0hoPbLgjPS%2BzHisxlinj4I%2B6B2CiFjR5HJjqDSlxDDiDiGSigFADUKoHoi0D55jH0dvYu3Fd2ckPu%2BoKq1NWp%2F2CI1eJShJAI9EAzv%2BDpriQBtYZCUSMABdlBKrD%2FgTtEBOovmh2uf3S32%2FLry2ONC4Ul8Fk3Ffag8r%2F%2BM3XgNO9hqPH4fR7Hl6veBIT97dQ4uCNYOICaDmgYMIHUC8ZboJ1Zac%2FHL4wusOvgFvze0AdfgVUz2CIIJIjS%2FCKYaAJXlAZOqFewgD4wC8Tt71vZEcgWAE7zsv9ux0jE3WUNwBWJqjjdaDKzmCwiIQ2YvHfqGIgJ9HGMF5DQWcdQxNvtV3s2x2JXHB5JKh17T236w%2Bj2PEBlPkxMSjF2QdQjFc%2FaP6K6WlhFDvJcAvILjh6fOCD%2FntVkuTmDTHhqiImtMBPf8Xy%2FErwu7%2FuHvj4wr2Bfl%2FI15a3uMffPl9o73Uck%2BJWYzBIUE6M2D%2BKhar9GgiRQBTywN7tPHbmcmPBfdg3ErlQrJYexlhGWGtL5Snww3ocdfxLBrAX7t83EH7eYNMRQjMwu6Nwi7AUHK3vbe35nkqSJ3ljYrCyrncyAB2XiASTJ%2Fuaujdb7jtaf6ONbFubPNz2SeHIBUeNFJ8LRI9C8cb9FQkGa7THUdMw1PjTrVvb5EjlQgkh7%2BBnQprOXPKtsPb9z7QA036ERkbxY%2BJf8LNnX73emDAyUIgzT4ejHIM5IGfr%2F855Jl1Hgo7SmTQITDmn3rx9e13DbDaw6pXepu4nFAUXB702gwbDJcwPAZ2ZghVJXHDm0UM4COMo%2B%2FM0%2FW2V74Os5YPH88g0ubksHk9ffssYcRFFeR3mCF4SrCq4viRATeF7jU2BKApZN7MRm7LUqhPlcIUSImIViuF2TpCDOjezs9i56OTOgx%2BJlqIXUX23mFX6V98V7lGwHwityz9%2FrvV65Zi0ohg3VfYjxVVAtce8fYcvwhyAmxzi6qJWxq4CR%2BNB4M2geAUQJRlkpQsCtUs4mh3QI2SW701E3LI4q4Y2COGB16XjuUHgiJXhK3oIFPUz0DQvxC5fmo3C45HMJTRJCff2NSu%2FFEz%2Bc6K56IfTrKcVSaK5JN8jkfdwiS1AyQG5vXrOx2OnX96QKhr5JSKfC5o3yzPY5tjX%2Bt%2FmrKHOiec0X46HlzaB3sgb3395fepX2RGjpds5GgsSfxdMDhk%2F6Dzbmd95tit%2F0m5s5YUCrFpsM4irI52LLvjLtJIv5j3%2B5uCIdUJmiRcfevCimHosKQhsgt2Y%2Bl%2F52g89D%2FPA8qT4bDw4kEcHp6qGmz5%2Beu2vz9ivNVXgacSf0q3pe5cmx5dGJybmQGCHOwso5bKv2NW2sd7uJzML%2FnMkITdUjViZJzr%2B%2FZOCZRnLn6aU5kQ6l2DGBEtJLY7mxIdmjbFmSuhOFN%2FJCCxDGYdquNNkrZJb%2FN3kxZccME80Vt%2BTp8jyxF3l9b2z6Zx5cVO6qIel64pPNc2mc%2F7g5i0DJ2Le3Fpbq87UzmxAW1I3F64tPlkLEczlc%2BQbm%2Bp%2FZ1T4AAAAAElFTkSuQmCC%22%2F%3E%3C%2Fpattern%3E%3Cpath%20d%3D%22M.906%200h110.727v16H.906z%22%20fill%3D%22url%28%23a%29%22%2F%3E%3C%2Fsvg%3E",width:"112",height:"16"}),e.jsx("img",{"data-test":"review-logo",src:"data:image/png;base64,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",width:"70",height:"28"})]})]})]})]}):null,exports.Autocomplete=r=>{var{list:o,native:a=!1,option:i,onSelect:s}=r,l=sl(r,["list","native","option","onSelect"]);const[{hasFullList:d,internalValue:c,isFocused:u},f]=t.useReducer((e,t)=>Object.assign(Object.assign({},e),t),{hasFullList:!1,internalValue:(null==i?void 0:i.label)||"",isFocused:!1}),p=o.filter(({label:e})=>n.normalizeString(e).includes(n.normalizeString(c))),h=Boolean(c.length>1&&!d)?p:o,g=(e="")=>{e||s(null),f({hasFullList:!1,internalValue:e})};return t.useEffect(()=>{(null==i?void 0:i.label)?g(i.label):f({internalValue:""})},[i]),e.jsx(Gl,Object.assign({focused:u,isAutocomplete:!0,native:a,option:i,options:a?o:h,onBlur:()=>f({hasFullList:!1,isFocused:!1}),onChange:g,onFocus:()=>{f({hasFullList:!0,isFocused:!0})},onSelect:e=>s(e),value:c},l))},exports.BagossFont=j,exports.Block=({children:t,picture:r,isCompact:n,isRounded:o})=>e.jsxs(Dc,{isRounded:o,"data-test":"block",children:[r&&e.jsx(Ac,{picture:r,"data-test":"picture"}),e.jsx(Tc,{isCompact:n,children:e.jsx(e.Fragment,{children:t})})]}),exports.BlockCheckIcon=({onClick:t,image:r,checked:n,name:o,text:a,dataTest:i})=>{const s=`checkbox-input-label-${a}`;return e.jsxs(ou,{checked:n,"data-test":i||`checkbox-button-${a}`,children:[e.jsx(ru,{"aria-labelledby":s,checked:n,name:o,onChange:({target:e})=>t(e.checked),type:"checkbox"}),e.jsx(nu,{children:e.jsx(e.Fragment,{children:r})}),e.jsx("span",{id:s,children:a})]})},exports.BlockIcon=function({onClick:t,image:r,text:n,name:o,selectedValue:a,dataTest:i,value:s,isContentCentered:l=!1}){const d=a===s,c=`radio-input-label-${n}`;return e.jsxs(tu,{"data-test":i||`radio-button-${n}`,isActive:d,isContentCentered:l,children:[e.jsx(ru,{"aria-labelledby":c,checked:d,name:o,onChange:()=>t(s),type:"radio"}),e.jsx("span",{id:c,children:n}),e.jsx(e.Fragment,{children:r})]})},exports.Burger=({isOpen:t,isSmall:r=!1,onClick:n,color:o})=>e.jsxs(Lc,{"data-test":"burger",onClick:n,isOpen:t,isSmall:r,color:o,children:[e.jsx(Fc,{}),e.jsx(Fc,{}),e.jsx(Fc,{})]}),exports.Button=t=>{var{appearance:r=exports.ButtonAppearance.PRIMARY,icon:n,iconPosition:o=exports.IconPosition.RIGHT,label:a,rounded:i=!1,size:s=exports.ButtonSizes.LARGE,theme:l=exports.ButtonTheme.BLACK}=t,d=sl(t,["appearance","icon","iconPosition","label","rounded","size","theme"]);return e.jsxs(Zc,Object.assign({appearance:r,"aria-label":a,icon:n,iconPosition:o,rounded:i,size:s,theme:l},d,{children:[n&&e.jsx(Kc,{appearance:r,iconPosition:o,size:s,theme:l,children:e.jsx(e.Fragment,{children:n})}),!i&&e.jsx(Vc,{"data-test":"label",children:a})]}))},exports.ButtonRadio=Qc,exports.ButtonRadioGroup=({label:t,name:r,onChange:n,options:o,value:a})=>e.jsx(eu,{role:"radiogroup","aria-label":t,children:o.map(t=>e.jsx(Qc,{isChecked:a===t.value,name:r,option:t,onClick:()=>n(t)},`radio-option-${t.value}`))}),exports.Card=({after:r,children:n,closeToggleAriaLabel:o="Cacher le contenu",dataTest:a="card-layout",disabled:i=!1,hasToggle:s=!1,headerIcon:l,headerIconColor:d=E.dark.base,headerIconSize:c=exports.CardHeaderIconSize.MEDIUM,isOpen:u,label:f,labelAfter:p,noPadding:h,onClose:g,onOpen:m,openToggleAriaLabel:b="Afficher le contenu",toggleLabel:y,tooltip:v})=>{const $=J(),[x,w]=t.useState(u||!1),C=void 0!==u,O=C&&s&&!g,k=C&&s&&!m;return t.useEffect(()=>{C&&w(u)},[u,C]),e.jsxs(zf,{"data-test":a,disabled:i,id:f,children:[e.jsxs(Wf,{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(qf,{"data-test":"title-container",children:[l&&e.jsx(Yf,{headerIconColor:d,headerIconSize:c,children:e.jsx(e.Fragment,{children:l})}),e.jsx("div",{dangerouslySetInnerHTML:{__html:f},"data-test":`title-${a}`}),p&&e.jsx(Uf,{children:e.jsx(e.Fragment,{children:p})}),v&&e.jsx(Gf,{onClick:e=>e.stopPropagation(),children:e.jsx(_f,{placement:"auto",tooltip:v,children:e.jsx(Hf,{children:e.jsx(au,{fill:E.grey.base})})})})]}),(r||s)&&e.jsxs(Vf,{children:[r&&e.jsx(Gf,{onClick:e=>e.stopPropagation(),children:e.jsx(e.Fragment,{children:r})}),s&&e.jsxs(Zf,{children:[!$&&y&&e.jsx("span",{"data-test":"toggle-label",children:y}),e.jsx(Jf,{"aria-controls":f,"aria-expanded":x,"aria-label":x?o:y||b})]})]})]}),e.jsx(e.Fragment,{children:(!s&&n||s&&x)&&e.jsx(Kf,{"data-test":"body-card",noPadding:h,children:e.jsx(e.Fragment,{children:n})})})]})},exports.Checkbox=({checkboxSize:t=exports.CheckboxSize.SMALL,checked:r,children:o,dataTest:a,disabled:i,id:s,indeterminate:l=!1,label:d,name:c,onChange:u})=>{const f=`${s}-${c}`;return e.jsxs(ep,{checkboxSize:t,"data-test":a||`checkbox-${c}`,children:[e.jsx(np,Object.assign({},Boolean(o)&&{"aria-label":d},{checkboxSize:t,checked:r,"data-test":a?`checkbox-${a}`:"checkbox-input",disabled:i,id:f,indeterminate:l,name:c,onChange:({target:e})=>u(e.checked),type:"checkbox"})),e.jsx(tp,{checkboxSize:t,"data-test":a?`checkbox-label-${a}`:"checkbox-label",hasLabel:n.isNotEmpty(d),htmlFor:f,children:e.jsx(e.Fragment,{children:o||e.jsx(rp,{dangerouslySetInnerHTML:{__html:d}})})})]})},exports.ClickableTag=({appearance:r=fh.BUSINESS,closeAriaLabel:n="Supprimer",color:o=ph.TERRACOTA,dataTest:a="basic-tag",icon:i,labels:s,numberOfTags:l=s.length,showCloseIcon:d,onClick:c})=>{const u=s.slice(0,l);return e.jsx(t.Fragment,{children:u.map((t,s)=>e.jsxs(bh,{appearance:r,color:o,close:d,click:!!c,"data-test":a,icon:!!i,onClick:c,children:[i&&e.jsx(vh,{color:o,"data-test":"tag-icon",children:e.jsx(e.Fragment,{children:i})}),t,d&&e.jsx(yh,{"aria-label":n,appearance:r,"data-test":"tag-closer",children:e.jsx(th,{})})]},s))})},exports.Container=N,exports.DateInput=ad,exports.DatePicker=({date:n,dataTest:o,disabled:a,disabledDays:i,error:s,formatter:l="EEEE dd MMMM yyyy",label:d,locale:c,onDateChange:u,zIndex:f})=>{const p=t.useRef(null),[h,g]=t.useReducer((e,t)=>Object.assign(Object.assign({},e),t),{isFocused:!1,isOpen:!1}),{isOpen:m,isFocused:b}=h;return x(p,({target:e})=>{var t;(null===(t=p.current)||void 0===t?void 0:t.contains(e))||g({isFocused:!1,isOpen:!1})}),e.jsx(Wt,{ref:p,isOpen:m,"data-test":o||"date-picker-wrapper",onClick:()=>{b||a||g({isFocused:!0,isOpen:!0})},children:e.jsx(he,{disabled:a,label:d,error:s,zIndex:f,focused:b,value:n&&r.format(n,l,{locale:c}),field:m?e.jsx(zt,{date:n,disabledDays:i,locale:c,onDateChange:e=>{u(e||null),g({isFocused:!1,isOpen:!1})}}):e.jsx(t.Fragment,{})})})},exports.EmailInput=wl,exports.Energy=({carbonFootprint:t,carbonFootprintLevel:r,consumption:n,consumptionLevel:o,EPCLevel:a,textContent:i})=>{const s=1===a?0:25*(a-1)+10*(a-2),{blankEPC:l,carbonFootprintLegend:d,carbonFootprintTitle:c,carbonFootprintUnit:u,consumptionLegend:f,consumptionTitle:p,consumptionUnit:h,EPCLegend:g,EPCTitle:m}=i;return t&&n?e.jsxs("div",{children:[e.jsx(tr,{children:m}),e.jsxs(er,{"aria-label":m,role:"document",children:[e.jsx("div",{"aria-label":g,role:"group",tabIndex:0,children:e.jsx(nr,{children:e.jsx(or,{background:Vt(a),isMainScore:!0,letterSize:25,pos:s,children:exports.EnergyLevel[a]})})}),e.jsxs(lr,{children:[e.jsxs(sr,{"aria-label":f,role:"group",tabIndex:0,children:[e.jsx(ar,{children:p}),e.jsxs(ir,{children:[e.jsx(dr,{children:n}),e.jsx(or,{background:Vt(o),children:exports.EnergyLevel[o]})]}),e.jsx(cr,{children:h})]}),e.jsxs(sr,{"aria-label":d,role:"group",tabIndex:0,children:[e.jsx(ar,{children:c}),e.jsxs(ir,{children:[e.jsx(dr,{children:t}),e.jsx(or,{background:Kt(r),children:exports.EnergyLevel[r]})]}),e.jsx(cr,{children:u})]})]})]})]}):e.jsx(rr,{children:l})},exports.ErrorLayout=fr,exports.FeesInputOutputSlider=({values:r,min:n=0,max:o=100,step:a=1,disabled:i=!1,onChange:s,thumbColors:l=[E.terracota.base80,E.terracota.base40,E.greenLight.base80,E.greenLight.base40],dataTestSliderWrapper:d="fees-input-output-slider-wrapper"})=>{const c=t.useRef(null),u=function(e,t){const{lead:r,mandate:n,viewingAgent:o,projectOwner:a}=e,i=[];return r.agentId===n.agentId?i.push({keys:["lead","mandate"],percent:r.percent+n.percent,agentId:r.agentId,color:t[0]}):(i.push({keys:["lead"],percent:r.percent,agentId:r.agentId,color:t[0]}),i.push({keys:["mandate"],percent:n.percent,agentId:n.agentId,color:t[1]})),o.agentId===a.agentId?i.push({keys:["viewingAgent","projectOwner"],percent:o.percent+a.percent,agentId:o.agentId,color:t[2]}):(i.push({keys:["viewingAgent"],percent:o.percent,agentId:o.agentId,color:t[2]}),i.push({keys:["projectOwner"],percent:a.percent,agentId:a.agentId,color:t[3]})),i}(r,l),f=Gh(u),p=t.useRef(r);function h(e,t){return Object.keys(e).every(r=>e[r].agentId===t[r].agentId&&e[r].percent===t[r].percent)}const g=e=>(e-n)/(o-n)*100,m=e=>t=>{if(i)return;const r=t.clientX,s=Gh(u),l=s[e],d=t=>{if(!c.current)return;const i=c.current.getBoundingClientRect(),d=(t.clientX-r)/i.width;let f=l+d*(o-n);f=Uh(f,n,o);const p=0===e?n:s[e-1],h=e===u.length-2?o:s[e+1];f=Uh(f,p+a,h-a);let g=Math.round((f-p)/a)*a,m=Math.round((h-f)/a)*a;g=Math.max(0,g),m=Math.max(0,m);const b=u.map(e=>Object.assign({},e));b[e].percent=g,b[e+1].percent=m,v(b,p,h)},f=()=>{window.removeEventListener("mousemove",d),window.removeEventListener("mouseup",f)};window.addEventListener("mousemove",d),window.addEventListener("mouseup",f)},y=e=>t=>{if(i)return;let r=0;if("ArrowLeft"!==t.key&&"ArrowDown"!==t.key||(r=-a),"ArrowRight"!==t.key&&"ArrowUp"!==t.key||(r=a),0===r)return;const s=Gh(u),l=0===e?n:s[e-1],d=e===u.length-2?o:s[e+1];let c=s[e]+r;c=Uh(c,l+a,d-a);let f=Math.round((c-l)/a)*a,p=Math.round((d-c)/a)*a;f=Math.max(0,f),p=Math.max(0,p);const h=u.map(e=>Object.assign({},e));h[e].percent=f,h[e+1].percent=p,v(h,l,d)};function v(e,t=n,a=o){const i=JSON.parse(JSON.stringify(r));let l=0;for(const t of e)for(const e of t.keys){let r=t.percent/t.keys.length;r=Number(r.toFixed(1)),i[e].percent=r,l+=r}const d=o-n;if(l!==d&&l>0){const t=d/l;for(const r of e)for(const e of r.keys){let r=i[e].percent*t;r=Number(r.toFixed(1)),i[e].percent=r}}const c=h(i,r),u=h(i,p.current);c||u||(p.current=i,s(i))}return e.jsx(e.Fragment,{children:e.jsxs(_h,{ref:c,"data-test":d,children:[e.jsx(Bh,{onClick:e=>{if(i||!c.current)return;const t=c.current.getBoundingClientRect(),r=(e.clientX-t.left)/t.width*100,s=n+(o-n)*r/100;if(u.length<2)return;let l=0,d=Math.abs(f[0]-s);for(let e=1;e<f.length;e++){const t=Math.abs(f[e]-s);t<d&&(d=t,l=e)}const p=0===l?n:f[l-1],h=l===u.length-2?o:f[l+1],g=Uh(s,p+a,h-a);let m=Math.round((g-p)/a)*a,b=Math.round((h-g)/a)*a;m=Math.max(0,m),b=Math.max(0,b);const y=u.map(e=>Object.assign({},e));y[l].percent=m,y[l+1].percent=b,v(y,p,h)},disabled:i}),u.map((t,r)=>{const n=0===r?0:f[r-1],o=t.percent;return e.jsxs(b.default.Fragment,{children:[e.jsx(zh,{left:g(n),width:g(o),color:t.color,disabled:i,"aria-label":`segment-${r+1}`}),r<u.length-1&&e.jsx(Wh,{style:{left:`calc(${g(f[r])}%)`},color:E.grey.base,disabled:i,onKeyDown:y(r),onMouseDown:m(r),tabIndex:0,"aria-disabled":i,"aria-label":`thumb-${r+1}`})]},r)})]})})},exports.Fieldset=({label:t,active:r=!1,error:n=!1,children:o})=>e.jsxs(ap,{"data-test":"fieldset-layout",active:r,error:n,children:[e.jsx(op,{"data-test":"fieldset-label",children:t}),e.jsx(de,{isVisible:!0,children:e.jsx("span",{dangerouslySetInnerHTML:{__html:t}})}),e.jsx(ip,{children:e.jsx(e.Fragment,{children:o})})]}),exports.GmapsAutocomplete=jd,exports.GmapsGeocode=Pd,exports.H1=({title:t,color:r=rc,isAlternative:n=nc})=>e.jsx(Fp,{isAlternative:n,color:r,dangerouslySetInnerHTML:{__html:t}}),exports.H2=({title:t,color:r=rc,isAlternative:n=nc})=>e.jsx(Lp,{isAlternative:n,color:r,dangerouslySetInnerHTML:{__html:t}}),exports.H3=({title:t,color:r=rc,isAlternative:n=!0})=>e.jsx(Rp,{isAlternative:n,color:r,dangerouslySetInnerHTML:{__html:t}}),exports.H4=({title:t,color:r=rc,isAlternative:n=nc})=>e.jsx(_p,{isAlternative:n,color:r,dangerouslySetInnerHTML:{__html:t}}),exports.H5=mc,exports.H6=({title:t,color:r=rc,isAlternative:n=!0})=>e.jsx(Bp,{isAlternative:n,color:r,dangerouslySetInnerHTML:{__html:t}}),exports.Input=he,exports.InputLoading=()=>e.jsx(Sp,{"data-test":"input-loading"}),exports.InterFont=P,exports.Line=A,exports.Loader=lp,exports.Logo=()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 178 41",children:e.jsx("g",{fill:"currentColor",children:e.jsx("path",{d:"M146.119.062 145.337 0l-.68.02a.538.538 0 0 0-.098.012.403.403 0 0 1-.067.01c-.535.04-1.071.082-1.606.164-2.636.474-4.902 1.668-6.693 3.625-2.657 2.883-3.707 6.302-3.151 10.173a11.458 11.458 0 0 0 3.645 6.94c2.904 2.699 6.364 3.749 10.297 3.152a11.458 11.458 0 0 0 6.797-3.584c2.903-3.089 3.933-6.775 3.109-10.915-.576-2.78-1.997-5.066-4.201-6.858a11.906 11.906 0 0 0-6.57-2.677zm5.087 12.192c-.062 3.357-2.842 6.096-6.219 6.075h-.124c-3.439-.082-6.158-2.924-6.075-6.343.082-3.44 2.924-6.158 6.343-6.075 3.439.082 6.158 2.924 6.075 6.343zM3.671 1.274l-3.32.003V24.59h6.301v-5.87H6.9c.722 0 1.441.003 2.16.005 1.434.005 2.866.01 4.307-.004 1.38 0 2.76-.206 4.057-.639 2.471-.824 4.16-2.45 4.881-4.984.577-2.018.577-4.14.02-6.158-.617-2.224-1.997-3.789-4.118-4.716a11.63 11.63 0 0 0-4.572-.927c-3.321-.03-6.642-.027-9.963-.023zM6.837 13.49h-.185V6.487H12.645c.577 0 1.153.103 1.71.31 1.256.473 1.894 1.4 2.038 2.718.083.7-.02 1.441-.309 2.1-.432.948-1.194 1.463-2.183 1.71a5.297 5.297 0 0 1-1.277.165c-1.29.013-2.57.009-3.854.004-.643-.002-1.287-.004-1.933-.004zM166.2 0c.268.02.536.041.783.062a11.863 11.863 0 0 1 7.002 3.068c2.08 1.875 3.398 4.222 3.831 6.982.597 3.748-.33 7.105-2.822 9.988a11.59 11.59 0 0 1-6.775 3.934c-4.058.762-7.621-.288-10.689-3.048a1.715 1.715 0 0 1-.188-.183h-.001v-.001a7.661 7.661 0 0 0-.099-.104 14.88 14.88 0 0 0 1.73-3.295 15.86 15.86 0 0 0 .864-3.605c.557 1.792 1.648 3.13 3.337 3.934a6.011 6.011 0 0 0 5.148.082c3.131-1.359 4.573-5.025 3.193-8.155a6.2 6.2 0 0 0-4.778-3.645c-3.213-.495-6.24 1.606-6.961 4.572a14.7 14.7 0 0 0-2.636-6.961c.206-.206.411-.412.638-.598 1.874-1.585 4.098-2.595 6.487-2.903a19.9 19.9 0 0 1 1.077-.08l.056-.003c.019 0 .037-.004.057-.009a.379.379 0 0 1 .087-.011zM47.677 24.57l-4.408-7.888c.007-.007.014-.012.019-.015l.005-.004c0-.002-.007-.002-.024-.002l.124-.082c1.792-1.133 2.924-2.719 3.398-4.778a10.168 10.168 0 0 0-.02-4.387c-.515-2.492-1.957-4.263-4.325-5.252-1.524-.638-3.151-.885-4.778-.885-2.856-.014-5.712-.01-8.568-.005-1.428.003-2.856.005-4.283.005h-.186v23.251h6.261v-6.384c0-.165.041-.227.227-.227h6.57a.276.276 0 0 1 .288.165c1.153 2.1 2.286 4.202 3.418 6.323.041.123.144.185.247.165h5.829zM31.077 13.2h-.144l-.02-.206V6.714c0-.165.04-.227.226-.227h5.931c.618 0 1.236.103 1.813.33 1.153.453 1.73 1.318 1.874 2.512.082.598.02 1.216-.165 1.792-.33 1.03-1.112 1.648-2.142 1.895a5.036 5.036 0 0 1-1.359.185c-1.333.014-2.674.01-4.013.005-.668-.002-1.336-.005-2-.005zM99.781 1.277h13.016c1.73.02 3.398.268 5.005.968 2.286 1.009 3.645 2.78 4.139 5.21.33 1.483.33 3.007-.02 4.49-.474 1.977-1.607 3.501-3.296 4.613l-.226.144 4.428 7.909h-6.014c-.123.02-.226-.062-.268-.165l-.002-.005a1758.215 1758.215 0 0 1-3.396-6.318c-.041-.103-.144-.164-.267-.164h-6.591c-.165 0-.206.04-.206.206v6.425h-6.26zm6.282 11.924h.185c.659 0 1.318.003 1.977.005 1.318.004 2.636.009 3.954-.005.474 0 .948-.062 1.401-.185.947-.227 1.668-.742 2.08-1.648.268-.638.35-1.338.247-2.039-.124-1.07-.597-1.894-1.586-2.389a4.656 4.656 0 0 0-2.1-.453h-5.952c-.165 0-.206.042-.206.227v6.281zm-32.87-.72c0-6.838-5.519-12.378-12.356-12.399C54.06.062 48.542 5.5 48.439 12.274v.165c0 6.838 5.52 12.378 12.357 12.398 6.837 0 12.398-5.52 12.398-12.357zm-12.418 6.343a6.324 6.324 0 0 1-6.281-6.364v-.062c.02-3.48 2.883-6.281 6.363-6.26 3.48 0 6.302 2.862 6.282 6.404a6.324 6.324 0 0 1-6.364 6.282zm20.986-.103v5.849h-6.26V1.277h12.933c1.647 0 3.254.247 4.778.885 2.368 1.01 3.81 2.801 4.345 5.314.391 1.75.37 3.583-.082 5.334-.66 2.574-2.266 4.284-4.758 5.19a10.28 10.28 0 0 1-3.418.659c-1.607.041-3.193.041-4.799.041h-2.533zm0-8.733v3.296c0 .185.041.226.227.226 1.894 0 3.789 0 5.684-.02.473 0 .926-.062 1.38-.165 1.132-.289 1.977-.948 2.327-2.1.247-.825.247-1.69 0-2.513s-.824-1.483-1.607-1.813a5 5 0 0 0-1.977-.412h-5.807c-.186 0-.206.062-.206.227-.021 1.091-.021 2.183-.021 3.274zm49.036-8.711h-6.261V24.57h6.261zM14.54 32.766h1.277a3.277 3.277 0 0 0-.371-1.174 3.156 3.156 0 0 0-.762-.885 3.213 3.213 0 0 0-1.05-.556 4.12 4.12 0 0 0-1.257-.186c-.72 0-1.359.165-1.936.515-.556.35-1.009.844-1.338 1.483-.33.638-.494 1.421-.494 2.307 0 .885.164 1.668.494 2.306.33.639.762 1.133 1.338 1.483.557.35 1.216.515 1.936.515.453 0 .886-.062 1.277-.206s.742-.33 1.05-.577c.289-.247.557-.535.742-.885.185-.35.33-.721.391-1.133H14.56a1.934 1.934 0 0 1-.288.7c-.144.206-.288.37-.494.515a2.472 2.472 0 0 1-.66.33 3.09 3.09 0 0 1-.761.103c-.494 0-.906-.124-1.298-.371-.39-.247-.68-.597-.906-1.071-.226-.474-.33-1.05-.33-1.73 0-.68.104-1.256.33-1.73.227-.474.536-.824.906-1.07.392-.248.824-.372 1.298-.372.268 0 .515.021.762.103.247.083.453.186.659.33.206.144.37.33.494.535.124.206.227.453.268.721zM1.05 38.347c.31.144.68.227 1.071.227.35 0 .639-.062.906-.165a2.27 2.27 0 0 0 .618-.391c.144-.165.268-.31.35-.474h.042v.865H5.23v-4.18c0-.454-.062-.824-.226-1.113a1.907 1.907 0 0 0-.618-.659 2.288 2.288 0 0 0-.804-.33 3.798 3.798 0 0 0-1.894.083 2.65 2.65 0 0 0-.906.515c-.268.226-.453.535-.598.927l1.154.267c.103-.206.267-.411.494-.597.226-.185.556-.268.968-.268s.7.103.906.289c.206.185.309.473.309.824v.02c0 .165-.062.268-.165.33s-.288.123-.515.144c-.134.012-.298.032-.486.054l-.42.049a6.117 6.117 0 0 0-.885.165c-.289.082-.556.185-.783.308s-.412.289-.556.536c-.144.247-.206.535-.206.885 0 .412.082.763.288 1.05.186.269.453.495.762.64zm2.204-.968c-.227.144-.536.206-.865.206-.35 0-.618-.103-.844-.247-.227-.144-.33-.37-.33-.68 0-.226.041-.411.165-.535.123-.144.288-.247.474-.309.185-.062.411-.123.638-.144.088 0 .19-.015.309-.032l.062-.01c.144-.02.288-.04.453-.061a5 5 0 0 1 .185-.042c.09-.019.172-.036.247-.06a.67.67 0 0 0 .247-.125v.804c0 .247-.061.473-.185.7s-.309.412-.556.535zm15.24 1.195c-.391 0-.762-.083-1.07-.227s-.578-.37-.763-.638a1.906 1.906 0 0 1-.288-1.05c0-.35.062-.639.206-.886s.33-.412.556-.536c.226-.123.494-.226.782-.308s.577-.124.886-.165l.42-.049c.188-.022.351-.042.486-.054.227-.02.412-.083.515-.144s.165-.165.165-.33v-.02c0-.35-.103-.639-.31-.824-.205-.186-.493-.289-.885-.289s-.741.083-.968.268a1.63 1.63 0 0 0-.494.597l-1.153-.267c.144-.392.33-.7.597-.927a2.65 2.65 0 0 1 .906-.515 3.798 3.798 0 0 1 1.895-.082c.288.062.556.165.803.33.247.164.453.37.597.658.144.289.247.66.247 1.112v4.181H20.43v-.865h-.041c-.083.165-.206.309-.35.474-.165.144-.371.288-.618.391a2.65 2.65 0 0 1-.927.165zm.268-.989c.33 0 .638-.062.865-.206.247-.123.432-.309.556-.535s.185-.453.185-.7v-.804a.67.67 0 0 1-.247.124c-.075.025-.157.042-.247.061-.059.013-.12.026-.185.042-.165.02-.31.041-.453.062l-.062.009c-.118.017-.221.032-.31.032-.246.02-.452.082-.658.144-.186.062-.35.165-.474.31-.123.123-.165.308-.165.535 0 .309.103.535.33.68.226.143.515.246.865.246zm7.496-3.727 1.112-.186c-.123-.494-.37-.885-.782-1.174-.391-.288-.927-.432-1.607-.432-.473 0-.885.062-1.256.226-.37.165-.659.371-.865.66a1.555 1.555 0 0 0-.309.967c0 .453.144.824.412 1.113.268.288.72.514 1.298.638l1.07.226c.289.083.515.186.66.31.164.123.226.288.226.494 0 .247-.123.453-.37.618-.248.164-.577.247-.969.247-.35 0-.659-.062-.885-.227-.227-.165-.37-.391-.453-.7l-1.195.185c.103.536.371.968.824 1.277.453.31 1.03.453 1.73.453.494 0 .947-.082 1.339-.247.391-.185.68-.412.906-.7.226-.288.33-.639.33-1.01 0-.452-.145-.802-.433-1.09-.288-.29-.721-.495-1.298-.619l-.988-.226c-.35-.083-.597-.186-.762-.31a.702.702 0 0 1-.227-.514c0-.247.124-.432.35-.597.227-.144.515-.227.865-.227.268 0 .453.041.639.124.185.082.309.185.412.309.103.144.185.267.226.412zm3.83 4.716c-.39 0-.761-.083-1.07-.227a1.926 1.926 0 0 1-.762-.638 1.906 1.906 0 0 1-.288-1.05c0-.35.061-.639.206-.886.144-.247.33-.412.556-.536.226-.123.494-.226.782-.308s.577-.124.886-.165l.42-.049c.188-.022.351-.042.486-.054a1.29 1.29 0 0 0 .515-.144c.103-.062.165-.165.165-.33v-.02c0-.35-.103-.639-.31-.824-.205-.186-.494-.289-.906-.289s-.74.083-.968.268a1.863 1.863 0 0 0-.494.597l-1.153-.267c.144-.392.33-.7.597-.927.268-.227.577-.412.906-.515s.7-.165 1.092-.165c.247 0 .515.02.803.083s.556.165.803.33c.247.164.453.37.597.658.145.289.227.66.227 1.112v4.181h-1.194v-.865h-.042c-.082.165-.206.309-.35.474a2.27 2.27 0 0 1-.618.391 2.264 2.264 0 0 1-.885.165zm.269-.989c.33 0 .638-.062.865-.206.247-.123.432-.309.556-.535.123-.227.185-.453.185-.7v-.804a.671.671 0 0 1-.247.124c-.075.025-.157.042-.247.061-.059.013-.12.026-.186.042-.164.02-.309.041-.453.062l-.061.009a2.288 2.288 0 0 1-.31.032c-.226.02-.452.082-.638.144-.185.062-.35.165-.474.31-.123.123-.185.308-.185.535 0 .309.103.535.33.68.226.164.514.246.865.246zm6.755.845 2.286-6.302H38.08l-1.586 4.84h-.062l-1.586-4.84h-1.318l2.266 6.302zm5.293.123c-.598 0-1.113-.144-1.545-.412a2.751 2.751 0 0 1-1.03-1.132c-.247-.495-.37-1.05-.37-1.71s.123-1.215.37-1.71c.247-.493.577-.864 1.03-1.132.432-.268.947-.412 1.545-.412.597 0 1.112.144 1.544.412.433.268.783.639 1.03 1.133s.37 1.05.37 1.71-.123 1.214-.37 1.709c-.247.494-.577.865-1.03 1.132a2.932 2.932 0 0 1-1.544.412zm0-1.03c.39 0 .7-.103.947-.308a1.88 1.88 0 0 0 .556-.804c.124-.33.185-.7.185-1.112s-.061-.762-.185-1.112a1.764 1.764 0 0 0-.556-.803c-.247-.206-.577-.309-.947-.309s-.7.103-.948.309c-.247.206-.432.474-.556.803s-.185.7-.185 1.112.062.783.185 1.112.309.598.556.804c.247.205.556.308.948.308zm7.29.618c.433.268.947.412 1.565.412a3.76 3.76 0 0 0 1.318-.226c.371-.186.68-.433.886-.762.206-.33.35-.68.391-1.092h-1.194a1.356 1.356 0 0 1-.268.577 1.191 1.191 0 0 1-.474.37 1.68 1.68 0 0 1-.638.124c-.35 0-.66-.082-.906-.268-.268-.185-.453-.453-.598-.782-.144-.35-.206-.742-.206-1.195s.062-.844.206-1.174c.145-.33.35-.576.598-.762.267-.185.556-.267.906-.267.391 0 .7.123.927.33.247.205.39.473.453.761h1.194a2.202 2.202 0 0 0-.412-1.112 2.479 2.479 0 0 0-.906-.741c-.37-.186-.803-.268-1.277-.268-.597 0-1.112.124-1.544.412-.433.288-.762.659-1.01 1.153-.247.494-.37 1.071-.37 1.689s.123 1.174.35 1.668c.226.494.577.886 1.01 1.153zm7.538.412c-.598 0-1.112-.144-1.545-.412a2.751 2.751 0 0 1-1.03-1.132c-.247-.495-.37-1.05-.37-1.71s.123-1.215.37-1.71c.247-.493.577-.864 1.03-1.132.433-.268.947-.412 1.545-.412.597 0 1.112.144 1.544.412.433.268.783.639 1.03 1.133s.37 1.05.37 1.71-.123 1.214-.37 1.709c-.247.494-.577.865-1.03 1.132a2.985 2.985 0 0 1-1.544.412zm0-1.03c.391 0 .7-.103.947-.308.247-.206.432-.474.556-.804s.186-.7.186-1.112-.062-.762-.186-1.112-.309-.597-.556-.803c-.247-.206-.577-.309-.947-.309s-.7.103-.948.309a1.88 1.88 0 0 0-.556.803c-.123.33-.185.7-.185 1.112s.062.783.185 1.112c.124.33.31.598.556.804.248.205.556.308.948.308zm3.707-5.395v6.302l1.235.02v-3.872c0-.267.062-.514.186-.74.123-.228.268-.392.473-.516.186-.123.412-.185.639-.185.33 0 .618.103.824.309.206.206.309.473.309.824v4.18h1.215v-4.016c0-.391.103-.7.33-.947.226-.247.535-.37.926-.37.309 0 .597.102.824.288.226.185.35.494.35.926v4.099h1.235v-4.222c0-.721-.164-1.277-.535-1.627s-.824-.536-1.4-.536c-.454 0-.845.103-1.174.31a1.8 1.8 0 0 0-.721.802h-.062a1.885 1.885 0 0 0-.638-.803c-.268-.185-.639-.288-1.05-.288s-.783.103-1.072.288a1.558 1.558 0 0 0-.638.803h-.082v-1.03zm9.618 8.65v-8.65h1.194v1.009h.103c.062-.124.165-.289.309-.453.123-.165.309-.33.556-.453.226-.124.556-.186.947-.186.515 0 .968.124 1.36.392.39.267.72.618.947 1.112.226.494.35 1.07.35 1.75s-.103 1.257-.33 1.75c-.226.495-.535.866-.926 1.113a2.504 2.504 0 0 1-1.36.391c-.39 0-.7-.061-.926-.185a2.164 2.164 0 0 1-.577-.453 2.217 2.217 0 0 1-.309-.453h-.082v3.315zm1.194-5.5c0 .433.062.824.185 1.154s.31.597.556.783c.248.185.536.288.886.288s.68-.103.927-.288.432-.454.556-.804c.123-.33.185-.72.185-1.132s-.062-.783-.185-1.112c-.124-.33-.31-.598-.556-.783-.247-.185-.556-.288-.927-.288s-.66.082-.906.267a1.638 1.638 0 0 0-.556.762c-.103.33-.165.721-.165 1.154zm6.096 3.07c.309.143.68.226 1.07.226.351 0 .66-.062.948-.165a2.27 2.27 0 0 0 .618-.391c.144-.165.268-.31.35-.474h.041v.865h1.195v-4.18c0-.454-.062-.824-.227-1.113a1.906 1.906 0 0 0-.617-.659c-.248-.165-.515-.268-.804-.33a3.79 3.79 0 0 0-1.894.083 2.65 2.65 0 0 0-.907.515c-.267.226-.453.535-.597.927l1.154.267c.102-.206.267-.411.494-.597.226-.185.576-.268.968-.268s.68.083.885.289c.206.185.31.473.31.824v.02c0 .165-.063.268-.166.33a1.29 1.29 0 0 1-.514.144c-.16.013-.345.035-.556.06l-.371.043c-.31.041-.597.103-.886.165a3.876 3.876 0 0 0-.782.308 1.385 1.385 0 0 0-.556.536c-.145.247-.206.535-.206.885 0 .412.103.783.288 1.05.185.269.453.495.762.64zm2.204-.969c-.247.144-.536.206-.865.206a1.59 1.59 0 0 1-.865-.247c-.227-.144-.33-.37-.33-.68 0-.226.062-.411.186-.535a.954.954 0 0 1 .473-.309c.186-.062.412-.123.639-.144.088 0 .19-.015.309-.032l.061-.01c.145-.02.289-.04.453-.061.065-.016.127-.03.186-.042.09-.019.172-.036.247-.06a.671.671 0 0 0 .247-.125v.804c0 .247-.062.473-.185.7a1.272 1.272 0 0 1-.556.535zm4.263-2.698v3.728h-1.236v-6.281h1.174v1.03h.082c.144-.33.371-.598.68-.804.309-.206.7-.309 1.174-.309.432 0 .803.083 1.133.268.329.185.576.453.74.803.186.35.269.783.269 1.298v3.995h-1.236v-3.851c0-.453-.124-.803-.35-1.071-.227-.247-.556-.391-.989-.391-.288 0-.535.061-.762.185a1.291 1.291 0 0 0-.515.535c-.123.227-.164.536-.164.865zm5.128 6.055c.144.02.309.041.494.041.35.021.639 0 .886-.123.247-.124.473-.268.659-.515.185-.247.33-.515.453-.844l2.595-7.126h-1.318l-1.586 4.88h-.062l-1.586-4.88H88.66l2.307 6.364-.144.412c-.103.267-.206.473-.35.597-.145.103-.289.185-.474.185-.186 0-.37-.02-.597-.082l-.289 1.009c.062.02.186.062.33.082z"})})}),exports.NumberInput=r=>{var{focused:n,isFloat:o=!1,canBeNegative:a=!1,onBlur:i,onChange:s,onFocus:l,value:d}=r,c=sl(r,["focused","isFloat","canBeNegative","onBlur","onChange","onFocus","value"]);const[u,f]=t.useState(Boolean(n)),[p,h]=t.useState(d?d.toString():"");return t.useEffect(()=>{if(null===d)return h("");const e=null==d?void 0:d.toString();e&&e!==p&&h(e)},[d]),e.jsx(he,Object.assign({},c,{onFocus:()=>{f(!0),l&&l()},onBlur:()=>{f(!1),h(((e,t)=>{const r=Ep(e),n=t?parseFloat(r):parseInt(r,10);return isNaN(n)?"":n.toString()})(p,o)),i&&i()},onChange:e=>{const t=Ep(e,!0),r=t.endsWith("."),n=a?Tp:jp;if(o&&(a?Pp:Np).test(t)||!o&&n.test(t)){if(h(t),r)return;if(""===t)return s(null);const e=o?parseFloat(t):parseInt(t,10);isNaN(e)||d===e||s(e)}},value:u?p:Ip(p,o)}))},exports.OfferSignatoryForm=({offerSignatoryInfo:r,errors:o,customErrorMessages:a={},updateOfferSignatory:i})=>{const{dateOfBirth:s,placeOfBirth:l,street:d,streetNumber:c,city:u,postCode:f,maritalStatus:p}=r,[h,g]=t.useState(n.listToString([c,d,f,u])),m=!!o.street||!!o.city||!!o.postCode,b=Object.assign(Object.assign({},Fd),a);return e.jsxs("div",{children:[e.jsxs(A,{children:[e.jsx(Pd,{dataTest:"offer-signatory-address",disabled:!1,label:Dd,value:h,onChange:e=>{g(e),e||i(Object.assign(Object.assign({},r),{city:"",postCode:"",street:"",streetNumber:""}))},onSelect:e=>{const{city:t,postalCode:o,street:a,streetNumber:s}=n.getFormattedAddressComponent(e);i(Object.assign(Object.assign({},r),{city:(null==t?void 0:t.long_name)||"",postCode:(null==o?void 0:o.long_name)||"",street:(null==a?void 0:a.long_name)||"",streetNumber:(null==s?void 0:s.long_name)||""}))},error:m,country:""}),m&&e.jsx(fr,{dataTest:"address",children:b.address})]}),e.jsx(A,{children:e.jsxs(q,{children:[e.jsxs("div",{children:[e.jsx(ad,{dataTest:"offer-signatory-birth-date",label:Td,disabled:!1,error:!!o.dateOfBirth,onChange:e=>e&&i(Object.assign(Object.assign({},r),{dateOfBirth:new Date(e)})),value:s?s.toISOString():""}),o.dateOfBirth&&e.jsx(fr,{dataTest:"dateOfBirth",children:b.dateOfBirth})]}),e.jsxs("div",{children:[e.jsx(he,{dataTest:"offer-signatory-birth-place",label:Ad,error:!!o.placeOfBirth,disabled:!1,onChange:e=>i(Object.assign(Object.assign({},r),{placeOfBirth:e})),value:l}),o.placeOfBirth&&e.jsx(fr,{dataTest:"placeOfBirth",children:b.placeOfBirth})]})]})}),e.jsx(A,{children:e.jsxs(q,{children:[e.jsxs("div",{children:[e.jsx(Gl,{dataTest:"offer-signatory-marital-status",disabled:!1,error:!!o.maritalStatus,label:Md,onSelect:({value:e})=>i(Object.assign(Object.assign({},r),{maritalStatus:e})),option:Ld.find(({value:e})=>e===p)||null,options:Ld}),o.maritalStatus&&e.jsx(fr,{dataTest:"maritalStatus",children:b.maritalStatus})]}),e.jsx("div",{})]})})]})},exports.OfferSignatoryFormSchema=Rd,exports.Option=Pl,exports.Phone=il,exports.PhoneAndFlag=({color:r=E.dark.base,errorMessage:n,onError:o,phone:a})=>{const i=a?Ql(a):null;return t.useEffect(()=>{!i&&o&&o()},[o,i]),i?e.jsx(_d,{children:e.jsxs(t.Fragment,{children:[e.jsx(Bd,{alt:i.country,"data-test":"flag",src:`https://appsales-cdn.casavo.com/assets/flags/${i.country}.svg`}),e.jsx(zd,{color:r,"data-test":"phone",children:Xl(i.number)})]})}):e.jsx(_d,{children:e.jsx(Wd,{"data-test":"incorrect-phone",children:n})})},exports.PhoneInput=({label:t,value:r,onChange:n,dataTest:o,disabled:a=!1,error:i=!1,phoneWithFlags:s=!1,required:l=!1})=>e.jsx(he,{dataTest:o||"customer-phone",name:"phone",type:exports.InputType.TEL,disabled:a,error:i,label:t,value:r,onChange:n,inputElement:il,phoneWithFlags:s,required:l}),exports.PlacesAutocomplete=vd,exports.Radio=({name:t,label:r,id:n,isChecked:o,onChange:a,value:i,dataTest:s,disabled:l=!1})=>{const d=`${n}-${t}`;return e.jsxs(Ap,{"data-test":s||`radio-${t}`,children:[e.jsx(Mp,{type:"radio",disabled:l,id:d,name:t,value:i,onChange:e=>a(e),checked:o}),e.jsx(Dp,{htmlFor:d,children:r})]})},exports.Row=q,exports.Select=Gl,exports.SingleMonth=t=>e.jsx(Gt,{children:e.jsx(zt,Object.assign({},t))}),exports.Slider=t=>{const{decimals:r=0,disabled:n=!1,value:o=0,min:a=0,max:i=100,step:s=1,leftColor:l=E.terracota.base,leftLabel:d="",rightColor:c=E.terracota.base20,rightLabel:u="",onChange:f,showLeft:p=!0,showRight:h=!0,showPercentageSign:g=!0,thumbColor:m=E.terracota.base,dataTestSliderWrapper:b="slider-wrapper",dataTestSliderInput:y="slider-input"}=t;return e.jsxs(Dh,{"data-test":b,children:[p&&e.jsxs(Fh,{children:[e.jsx(Lh,{children:d}),e.jsx(Rh,{children:`${o.toFixed(r)}${g?"%":""}`})]}),e.jsx(Mh,{"data-test":y,disabled:n,type:"range",percent:(o-a)/(i-a)*100,min:a,max:i,step:s,value:Number(o),leftColor:l,rightColor:c,thumbColor:m,onChange:e=>f(Number(e.target.value))}),h&&e.jsxs(Fh,{children:[e.jsx(Lh,{children:u}),e.jsx(Rh,{children:`${(i+a-o).toFixed(r)}${g?"%":""}`})]})]})},exports.Subtitle=({text:t,color:r=E.dark.base})=>e.jsx(Qp,{"data-test":"subtitle",children:e.jsx(eh,{color:r,"data-test":"subtitle-label",children:t})}),exports.Tag=({appearance:r=exports.TagAppearance.BUSINESS,closeAriaLabel:n="Supprimer",color:o=exports.TagColorsTypes.TERRACOTA,dataTest:a="basic-tag",icon:i,labels:s,numberOfTags:l=s.length,onClose:d})=>{const c=s.slice(0,l),u=s.slice(l);return e.jsxs(t.Fragment,{children:[c.map((t,s)=>e.jsxs(ih,{appearance:r,color:o,close:!!d,"data-test":a,icon:!!i,children:[i&&e.jsx(uh,{color:o,"data-test":"tag-icon",children:e.jsx(e.Fragment,{children:i})}),t,d&&e.jsx(sh,{"aria-label":n,appearance:r,"data-test":"tag-closer",onClick:d,children:e.jsx(th,{})})]},s)),Boolean(u.length)&&e.jsxs(ch,{"data-test":"list-tag",children:[e.jsxs(ih,{appearance:r,color:o,"data-test":a,icon:!!i,children:[i&&e.jsx(uh,{color:o,"data-test":"tag-icon",children:e.jsx(e.Fragment,{children:i})}),`+ ${u.length}`]}),e.jsx(dh,{appearance:r,color:o,children:u.map((t,r)=>e.jsx(lh,{"data-test":"tag-element",children:t},r))})]})]})},exports.TagBase=nh,exports.TextToggle=({text:r,dataTest:n="text-toggle",isComment:o=!1,maxLength:a=300,showLessLabel:i="Lire moins",showMoreLabel:s="Lire plus",title:l})=>{const d=(e=>e.split(Ah).filter(Boolean).join(" "))(r),c=d.length>a,[u,f]=t.useState(c),p=((e,t)=>{if(e.length<=t||t<0)return e;if(" "===e.charAt(t))return e.slice(0,t).concat("…");const r=e.slice(0,t),[n]=e.slice(t,e.length).split(" ");return r.concat(n).concat("…")})(d,a);return e.jsxs(Nh,{"data-test":n,children:[l&&e.jsx(Ph,{"data-test":"text-toggle-title",children:`${l} : `}),e.jsx(Th,{isComment:o,children:u?p:d}),c&&e.jsx(jh,{isComment:o,hasTitle:Boolean(l),onClick:()=>f(!u),children:u?s:i})]})},exports.Textarea=Eh,exports.Toggle=({label:t,id:r,checked:n=!1,disabled:o=!1,name:a,dataTest:i,onChange:s})=>e.jsxs(Jp,{children:[e.jsx(Zp,{checked:n,onChange:e=>{s(e.target.checked)},icons:!1,name:a,id:r,disabled:o,"data-test":i||`toggle-${a}`}),e.jsx(Xp,{htmlFor:r,disabled:o,"data-test":"toggle-label",children:t})]}),exports.Tooltip=_f,exports.UserForm=({disabledFields:t={},emailSuggestionI18nLabels:r,errorMessages:n={},errors:o,hasLanguagePreferences:a=!1,isEmailSuggestionEnabled:i=!0,labels:s=Hl,phoneWithFlags:l=!1,defaultCountry:d,user:c,userLanguageOptions:u=Ul,updateUser:f})=>{const{email:p,firstName:h,language:g,lastName:m,phone:b}=c,y=Object.assign(Object.assign({},Yl),n);return e.jsxs("div",{children:[e.jsx(A,{children:e.jsxs(q,{children:[e.jsxs("div",{children:[e.jsx(he,{dataTest:"customer-firstName",name:"first-name",type:exports.InputType.TEXT,disabled:t.firstName,error:!!o.firstName,label:s.firstName,value:h,onChange:e=>f(Object.assign(Object.assign({},c),{firstName:e}),"user.firstName")}),!!o.firstName&&e.jsx(fr,{dataTest:"invalid-firstName",children:y.firstName})]}),e.jsxs("div",{children:[e.jsx(he,{dataTest:"customer-lastName",name:"last-name",type:exports.InputType.TEXT,disabled:t.lastName,error:!!o.lastName,label:s.lastName,value:m,onChange:e=>f(Object.assign(Object.assign({},c),{lastName:e}),"user.lastName")}),!!o.lastName&&e.jsx(fr,{dataTest:"invalid-lastName",children:y.lastName})]})]})}),e.jsx(A,{children:e.jsxs(q,{children:[e.jsxs("div",{children:[e.jsx(wl,{dataTest:"customer-email",name:"email",disabled:t.email,error:!!o.email,label:s.email,isSuggestionEnabled:i,i18nLabels:r,value:p,onChange:e=>f(Object.assign(Object.assign({},c),{email:ql(e)}),"user.email")}),!!o.email&&e.jsx(fr,{dataTest:"invalid-email",children:y.email})]}),e.jsxs("div",{children:[e.jsx(he,{dataTest:"customer-phone",name:"phone",type:exports.InputType.TEL,disabled:t.phone,error:!!o.phone,label:s.phone,value:b,onChange:e=>f(Object.assign(Object.assign({},c),{phone:e||null}),"user.phone"),inputElement:il,phoneWithFlags:l,defaultCountry:d}),!!o.phone&&e.jsx(fr,{dataTest:"invalid-phone",children:y.phone})]})]})}),a&&e.jsx(A,{children:e.jsx(q,{children:e.jsxs("div",{children:[e.jsx(Gl,{dataTest:"customer-language",disabled:t.language,error:!!o.language,label:s.language,onSelect:({value:e})=>{f(Object.assign(Object.assign({},c),{language:e}),"user.language")},option:u.find(({value:e})=>e===g)||null,options:u}),!!o.language&&e.jsx(fr,{dataTest:"invalid-language",children:y.language})]})})})]})},exports.UserSchema=td,exports.breakpoints=C,exports.colors=E,exports.convertPxToRem=I,exports.createAction=Z,exports.fonts=T,exports.formatISODate=nd,exports.formatInternationalPhone=Xl,exports.formatPhoneNumber=e=>tl(e,rl),exports.geocodeByAddress=yd.geocodeByAddress,exports.getCarbonFootprintLevel=Xt,exports.getConsumptionLevel=Zt,exports.getEPCLevel=Jt,exports.getEPCLevels=(e,t,r)=>{const n=Zt(t,r),o=Xt(e,r);return{consumptionLevel:n,carbonFootprintLevel:o,EPCLevel:Jt(n,o,r)}},exports.getGeoSearchSuggestions=re,exports.isTouchDevice=Q,exports.isValidDate=od,exports.isValidPhoneNumber=Jl,exports.paragraphs=H,exports.parsePhoneNumber=Ql,exports.radius=Y,exports.resetCssButton=ee,exports.scrollbar=K,exports.shadows=V,exports.titles=oc,exports.useDebounce=gl,exports.useEmailSuggestion=yl,exports.useMobileDevice=()=>X(`(max-width: ${C.base-1}px)`),exports.useModal=({onAbort:r,onOpen:n,onClose:o}={})=>{const[{isAborting:a,fade:i,isLoading:s,isOpen:l},d]=t.useReducer(fp,{isAborting:!1,fade:dp.IN,isOpen:!1,isLoading:!1}),c=(()=>{const e=t.useRef(!0);return t.useEffect(()=>{e.current=!1},[]),e.current})(),u=t.useCallback(()=>{l&&d(up.toggleLoad())},[l]),f=t.useCallback(()=>{n&&n(),d(up.open())},[n]),p=t.useCallback(()=>{!s&&l&&d(up.close())},[s,l]),h=t.useCallback(()=>{!s&&l&&d(up.abort())},[s,l]),g=t.useCallback(()=>d(up.animationEnd()),[]),m=t.useCallback(()=>{a&&r&&r(),o&&o(),d(up.reset())},[a,r,o]);t.useEffect(()=>{l||c||m()},[l]);return{closeModal:p,createModal:({children:r,icon:n,isAlternative:o=!1,isClosable:a=!0,isFullScreen:d,noPadding:c,text:u,title:f})=>l?e.jsx(kp,{abortModal:h,fade:i,icon:n,isAlternative:o,isClosable:a,isFullScreen:d,isLoading:s,noPadding:c,onAnimationEnd:g,text:u,title:f,children:r}):e.jsx(t.Fragment,{}),openModal:f,toggleLoader:u}},exports.useOnClickOutside=x,exports.useSmallSmartphoneDevice=()=>X(`(max-width: ${C.smallest-1}px)`),exports.useSmartphoneDevice=J;
|
|
3078
3094
|
//# sourceMappingURL=index.js.map
|