@proprioo/salatim 32.1.0 → 32.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## Changelog
2
2
 
3
+ **32.1.2**
4
+
5
+ * Fix(DatePickerWrapper): Use isOpen to change z-index
6
+
7
+ **32.1.1**
8
+
9
+ * Fix(DatePickerWrapper): Add missing z-index
10
+
3
11
  **32.1.0**
4
12
 
5
13
  * Feat(SingleMonth): Add a SingleMonth behavior
@@ -1,5 +1,5 @@
1
1
  import 'react-day-picker/dist/style.css';
2
2
  import { FC } from 'react';
3
- import { DatePickerProps } from '../interfaces';
4
- declare const PickerDate: FC<DatePickerProps>;
3
+ import { DatePickerGenericProps } from '../interfaces';
4
+ declare const PickerDate: FC<DatePickerGenericProps>;
5
5
  export default PickerDate;
@@ -1 +1 @@
1
- {"version":3,"file":"DatePicker.js","sourceRoot":"","sources":["../../../../packages/date/src/datePicker/DatePicker.tsx"],"names":[],"mappings":";;;AAAA,2CAAyC;AAGzC,uDAA6C;AAG7C,2DAAuD;AAEvD,MAAM,UAAU,GAAwB,CAAC,EACvC,IAAI,EACJ,YAAY,EACZ,MAAM,EACN,YAAY,EACb,EAAE,EAAE,CAAC,CACJ,uBAAC,oCAAgB,iBAAW,aAAa,YACvC,uBAAC,4BAAS,kBACR,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,YAAY,EACtB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,WAAW,CAAC,EAAE,CAAC,YAAY,CAAC,WAAW,IAAI,IAAI,CAAC,IACtD,CAAC,IAAI,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,EAC7C,GACe,CACpB,CAAC;AAEF,kBAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"DatePicker.js","sourceRoot":"","sources":["../../../../packages/date/src/datePicker/DatePicker.tsx"],"names":[],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CAAC,CAAC;QAExC,kBAAQ,CAAC,KAAK,EAAE,CAAC;IACnB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE;QAC1C,kBAAQ,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC;QAErC,IAAA,cAAM,EACJ,uBAAC,oBAAU,oBACL,YAAY,IAChB,YAAY,EAAE,EAAE,MAAM,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC,EAAE,IAChD,CACH,CAAC;QAEF,MAAM,IAAI,GAAG,cAAM,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;QAC7C,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,CAC9B,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,YAAY,CAAC,UAAU,CAAC,KAAK,IAAI,CAC7C,CAAC;QAEF,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAChC,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QAEvC,kBAAQ,CAAC,KAAK,EAAE,CAAC;IACnB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { FC } from 'react';
2
2
  import { GenericInputProps } from '../../../utils';
3
- import { DatePickerProps } from '../interfaces';
4
- export type DatePickerWrapperProps = GenericInputProps & DatePickerProps & {
3
+ import { DatePickerGenericProps } from '../interfaces';
4
+ export type DatePickerWrapperProps = GenericInputProps & DatePickerGenericProps & {
5
5
  formatter?: string;
6
6
  onDateChange(date: Date | null): void;
7
7
  };
@@ -32,7 +32,7 @@ const DatePickerWrapper = ({ date, dataTest, disabled, disabledDays, error, form
32
32
  updateReducer({ isFocused: false, isOpen: false });
33
33
  }
34
34
  });
35
- return ((0, jsx_runtime_1.jsx)(DatepickerWrapper_styles_1.DatePickerWrapperLayout, { ref: ref, "data-test": dataTest || 'date-picker-wrapper', onClick: handleOpen, children: (0, jsx_runtime_1.jsx)(InputBase_1.default, { disabled: disabled, label: label, error: error, zIndex: zIndex, focused: isFocused, value: date && (0, date_fns_1.format)(date, formatter, { locale }), field: isOpen ? ((0, jsx_runtime_1.jsx)(DatePicker_1.default, { date: date, disabledDays: disabledDays, locale: locale, onDateChange: handleSelect })) : ((0, jsx_runtime_1.jsx)(react_1.Fragment, {})) }) }));
35
+ return ((0, jsx_runtime_1.jsx)(DatepickerWrapper_styles_1.DatePickerWrapperLayout, { ref: ref, isOpen: isOpen, "data-test": dataTest || 'date-picker-wrapper', onClick: handleOpen, children: (0, jsx_runtime_1.jsx)(InputBase_1.default, { disabled: disabled, label: label, error: error, zIndex: zIndex, focused: isFocused, value: date && (0, date_fns_1.format)(date, formatter, { locale }), field: isOpen ? ((0, jsx_runtime_1.jsx)(DatePicker_1.default, { date: date, disabledDays: disabledDays, locale: locale, onDateChange: handleSelect })) : ((0, jsx_runtime_1.jsx)(react_1.Fragment, {})) }) }));
36
36
  };
37
37
  exports.default = DatePickerWrapper;
38
38
  //# sourceMappingURL=DatePickerWrapper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DatePickerWrapper.js","sourceRoot":"","sources":["../../../../packages/date/src/datePickerWrapper/DatePickerWrapper.tsx"],"names":[],"mappings":";;;;;;AAAA,uCAAkC;AAClC,iCAAgE;AAIhE,2GAAmF;AACnF,oFAA4D;AAE5D,0EAAkD;AAElD,yEAAqE;AAQrE,MAAM,iBAAiB,GAA+B,CAAC,EACrD,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,KAAK,EACL,SAAS,GAAG,mBAAmB,EAC/B,KAAK,EACL,MAAM,EACN,YAAY,EACZ,MAAM,EACP,EAAE,EAAE;IACH,MAAM,GAAG,GAAG,IAAA,cAAM,EAAwB,IAAI,CAAC,CAAC;IAEhD,MAAM,CAAC,eAAe,EAAE,aAAa,CAAC,GAAG,IAAA,kBAAU,EACjD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EAClD,KAAK,EACH,MAAM,CAAC,CAAC,CAAC,CACP,uBAAC,oBAAU,IACT,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,YAAY,EAC1B,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,YAAY,GAC1B,CACH,CAAC,CAAC,CAAC,CACF,uBAAC,gBAAQ,KAAG,CACb,GAEH,GACsB,CAC3B,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"DatePickerWrapper.js","sourceRoot":"","sources":["../../../../packages/date/src/datePickerWrapper/DatePickerWrapper.tsx"],"names":[],"mappings":";;;;;;AAAA,uCAAkC;AAClC,iCAAgE;AAIhE,2GAAmF;AACnF,oFAA4D;AAE5D,0EAAkD;AAElD,yEAAqE;AAQrE,MAAM,iBAAiB,GAA+B,CAAC,EACrD,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,KAAK,EACL,SAAS,GAAG,mBAAmB,EAC/B,KAAK,EACL,MAAM,EACN,YAAY,EACZ,MAAM,EACP,EAAE,EAAE;IACH,MAAM,GAAG,GAAG,IAAA,cAAM,EAAwB,IAAI,CAAC,CAAC;IAEhD,MAAM,CAAC,eAAe,EAAE,aAAa,CAAC,GAAG,IAAA,kBAAU,EACjD,CAAC,IAAuB,EAAE,IAAgC,EAAE,EAAE,CAAC,iCAC1D,IAAI,GACJ,IAAI,EACP,EACF;QACE,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE,KAAK;KACd,CACF,CAAC;IAEF,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,eAAe,CAAC;IAE9C,MAAM,YAAY,GAAG,CAAC,OAAmB,EAAE,EAAE;QAC3C,YAAY,CAAC,OAAO,IAAI,IAAI,CAAC,CAAC;QAE9B,aAAa,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IACrD,CAAC,CAAC;IAEF,MAAM,UAAU,GAAG,GAAG,EAAE;QACtB,IAAI,CAAC,SAAS,IAAI,CAAC,QAAQ,EAAE;YAC3B,aAAa,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;SAClD;IACH,CAAC,CAAC;IAEF,IAAA,2BAAiB,EAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE;;QACpC,IAAI,CAAC,CAAA,MAAA,GAAG,CAAC,OAAO,0CAAE,QAAQ,CAAC,MAAc,CAAC,CAAA,EAAE;YAC1C,aAAa,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;SACpD;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,CACL,uBAAC,kDAAuB,IACtB,GAAG,EAAE,GAAG,EACR,MAAM,EAAE,MAAM,eACH,QAAQ,IAAI,qBAAqB,EAC5C,OAAO,EAAE,UAAU,YAEnB,uBAAC,mBAAS,IACR,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,SAAS,EAClB,KAAK,EAAE,IAAI,IAAI,IAAA,iBAAM,EAAC,IAAI,EAAE,SAAS,EAAE,EAAE,MAAM,EAAE,CAAC,EAClD,KAAK,EACH,MAAM,CAAC,CAAC,CAAC,CACP,uBAAC,oBAAU,IACT,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,YAAY,EAC1B,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,YAAY,GAC1B,CACH,CAAC,CAAC,CAAC,CACF,uBAAC,gBAAQ,KAAG,CACb,GAEH,GACsB,CAC3B,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,iBAAiB,CAAC"}
@@ -1 +1,3 @@
1
- export declare const DatePickerWrapperLayout: import("styled-components").StyledComponent<"div", any, {}, never>;
1
+ export declare const DatePickerWrapperLayout: import("styled-components").StyledComponent<"div", any, {
2
+ isOpen: boolean;
3
+ }, never>;
@@ -9,6 +9,7 @@ const utils_1 = require("../../../utils");
9
9
  const DatePicker_styles_1 = require("../datePicker/DatePicker.styles");
10
10
  exports.DatePickerWrapperLayout = styled_components_1.default.div `
11
11
  position: relative;
12
+ z-index: ${({ isOpen }) => (isOpen ? 1 : 0)};
12
13
 
13
14
  ${DatePicker_styles_1.DatePickerLayout} {
14
15
  top: ${(0, utils_1.convertPxToRem)(60)};
@@ -1 +1 @@
1
- {"version":3,"file":"DatepickerWrapper.styles.js","sourceRoot":"","sources":["../../../../packages/date/src/datePickerWrapper/DatepickerWrapper.styles.ts"],"names":[],"mappings":";;;;;;AAAA,0EAAuC;AAEvC,0CAAgD;AAChD,uEAAmE;AAEtD,QAAA,uBAAuB,GAAG,2BAAM,CAAC,GAAG,CAAA;;;IAG7C,oCAAgB;WACT,IAAA,sBAAc,EAAC,EAAE,CAAC;;CAE5B,CAAC"}
1
+ {"version":3,"file":"DatepickerWrapper.styles.js","sourceRoot":"","sources":["../../../../packages/date/src/datePickerWrapper/DatepickerWrapper.styles.ts"],"names":[],"mappings":";;;;;;AAAA,0EAAuC;AAEvC,0CAAgD;AAChD,uEAAmE;AAEtD,QAAA,uBAAuB,GAAG,2BAAM,CAAC,GAAG,CAAqB;;aAEzD,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;IAEzC,oCAAgB;WACT,IAAA,sBAAc,EAAC,EAAE,CAAC;;CAE5B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { Matcher } from 'react-day-picker';
2
2
  import { nullOrDate } from '@proprioo/hokkaido';
3
- export type DatePickerProps = {
3
+ export type DatePickerGenericProps = {
4
4
  date: nullOrDate;
5
5
  disabledDays?: Matcher | Matcher[] | undefined;
6
6
  locale?: Locale;
@@ -1,4 +1,4 @@
1
1
  import { FC } from 'react';
2
- import { DatePickerProps } from '../interfaces';
3
- declare const SingleMonth: FC<DatePickerProps>;
2
+ import { DatePickerGenericProps } from '../interfaces';
3
+ declare const SingleMonth: FC<DatePickerGenericProps>;
4
4
  export default SingleMonth;
@@ -1 +1 @@
1
- {"version":3,"file":"SingleMonth.js","sourceRoot":"","sources":["../../../../packages/date/src/singleMonth/SingleMonth.tsx"],"names":[],"mappings":";;;;;;AAEA,0EAAkD;AAElD,6DAA8C;AAE9C,MAAM,WAAW,GAAwB,KAAK,CAAC,EAAE,CAAC,CAChD,uBAAC,2BAAM,cACL,uBAAC,oBAAU,oBAAK,KAAK,EAAI,GAClB,CACV,CAAC;AAEF,kBAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"SingleMonth.js","sourceRoot":"","sources":["../../../../packages/date/src/singleMonth/SingleMonth.tsx"],"names":[],"mappings":";;;;;;AAEA,0EAAkD;AAElD,6DAA8C;AAE9C,MAAM,WAAW,GAA+B,KAAK,CAAC,EAAE,CAAC,CACvD,uBAAC,2BAAM,cACL,uBAAC,oBAAU,oBAAK,KAAK,EAAI,GAClB,CACV,CAAC;AAEF,kBAAe,WAAW,CAAC"}
package/lib/index.js CHANGED
@@ -412,6 +412,7 @@
412
412
  }
413
413
  `,Lt=({date:t,disabledDays:n,locale:r,onDateChange:o})=>e.jsx(Ft,{"data-test":"date-picker",children:e.jsx(Dt,Object.assign({mode:"single",disabled:n,locale:r,onSelect:e=>o(e||null)},t&&{selected:t,today:t}))}),Mt=p.default.div`
414
414
  position: relative;
415
+ z-index: ${({isOpen:e})=>e?1:0};
415
416
 
416
417
  ${Ft} {
417
418
  top: ${C(60)};
@@ -2660,5 +2661,5 @@ object-assign
2660
2661
  color: ${({color:e})=>e};
2661
2662
  `,$h=p.default.span`
2662
2663
  color: ${w.red.base};
2663
- `;exports.Accordion=({children:t,preExpanded:n,allowMultipleExpanded:r})=>e.jsx(Ll,{preExpanded:n,allowMultipleExpanded:r,children:t}),exports.AccordionHeader=({isAlternative:t,basic:n,children:r})=>e.jsx(nd,{children:({expanded:o,toggleExpanded:a})=>e.jsxs(ql,{onClick:()=>a(),"data-test":"accordion-header",children:[e.jsx(Yl,{isAlternative:t,basic:n,children:r}),e.jsx(Kl,{isOpen:o,children:e.jsx(od,{})})]})}),exports.AccordionItem=rd,exports.AccordionPanel=({children:t,unmountOnCollapse:r})=>e.jsx(nd,{children:({expanded:o})=>e.jsx(Xl,{isOpen:o,children:!r||o?e.jsx("div",{"data-test":"panel-content",children:t}):e.jsx(n.Fragment,{})})}),exports.AgentBanner=({children:t,agent:{image_agent:n,name:r,zone:o,fonction:a},rounded:i=!0})=>e.jsxs(sd,{"data-test":"agent-card",rounded:i,children:[e.jsxs(ud,{children:[r&&e.jsx(id,{title:r,color:w.green.base}),a&&e.jsx(fd,{"data-test":"agent-fonction",children:a}),o&&e.jsx(fd,{"data-test":"agent-zone",children:o}),t]}),e.jsx(dd,{children:e.jsx(cd,{children:e.jsx(ld,{"data-test":"agent-image",src:n,loading:"lazy"})})})]}),exports.AgentCard=wd,exports.Autocomplete=t=>{var{list:o,native:a=!1,option:i,onSelect:s}=t,l=As(t,["list","native","option","onSelect"]);const[{hasFullList:d,internalValue:c,isFocused:u},f]=n.useReducer(((e,t)=>Object.assign(Object.assign({},e),t)),{hasFullList:!1,internalValue:(null==i?void 0:i.label)||"",isFocused:!1}),p=o.filter((({label:e})=>r.normalizeString(e).includes(r.normalizeString(c)))),h=Boolean(c.length>1&&!d)?p:o,g=(e="")=>{e||s(null),f({hasFullList:!1,internalValue:e})};return n.useEffect((()=>{(null==i?void 0:i.label)?g(i.label):f({internalValue:""})}),[i]),e.jsx(Gd,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=k,exports.Block=({children:t,picture:n,isCompact:r,isRounded:o})=>e.jsxs(Hd,{isRounded:o,"data-test":"block",children:[n&&e.jsx(Wd,{picture:n,"data-test":"picture"}),e.jsx(Ud,{isCompact:r,children:t})]}),exports.BlockCheckIcon=({onClick:t,image:n,checked:r,name:o,text:a,dataTest:i})=>{const s=`checkbox-input-label-${a}`;return e.jsxs(gc,{checked:r,"data-test":i||`checkbox-button-${a}`,children:[e.jsx(pc,{"aria-labelledby":s,checked:r,name:o,onChange:({target:e})=>t(e.checked),type:"checkbox"}),e.jsx(hc,{children:n}),e.jsx("span",{id:s,children:a})]})},exports.BlockIcon=function({onClick:t,image:n,text:r,name:o,selectedValue:a,dataTest:i,value:s,isContentCentered:l=!1}){const d=a===s,c=`radio-input-label-${r}`;return e.jsxs(fc,{"data-test":i||`radio-button-${r}`,isActive:d,isContentCentered:l,children:[e.jsx(pc,{"aria-labelledby":c,checked:d,name:o,onChange:()=>t(s),type:"radio"}),e.jsx("span",{id:c,children:r}),n]})},exports.Burger=({isOpen:t,isSmall:n=!1,onClick:r,color:o})=>e.jsxs(Yd,{"data-test":"burger",onClick:r,isOpen:t,isSmall:n,color:o,children:[e.jsx(qd,{}),e.jsx(qd,{}),e.jsx(qd,{})]}),exports.Button=t=>{var{appearance:r=exports.ButtonAppearance.PRIMARY,icon:o,iconPosition:a=exports.IconPosition.RIGHT,label:i,rounded:s=!1,size:l=exports.ButtonSizes.LARGE,theme:d=exports.ButtonTheme.BLACK}=t,c=As(t,["appearance","icon","iconPosition","label","rounded","size","theme"]);return e.jsxs(sc,Object.assign({appearance:r,"aria-label":i,icon:o,iconPosition:a,rounded:s,size:l,theme:d},c,{children:[o&&e.jsx(ic,{appearance:r,iconPosition:a,size:l,theme:d,children:n.isValidElement(o)?n.cloneElement(o,{"aria-hidden":!0,focusable:!1}):o}),!s&&e.jsx(ac,{"data-test":"label",children:i})]}))},exports.ButtonRadio=cc,exports.ButtonRadioGroup=({label:t,name:n,onChange:r,options:o,value:a})=>e.jsx(uc,{role:"radiogroup","aria-label":t,children:o.map((t=>e.jsx(cc,{isChecked:a===t.value,name:n,option:t,onClick:()=>r(t)},`radio-option-${t.value}`)))}),exports.Card=({after:t,children:r,closeToggleAriaLabel:o="Cacher le contenu",dataTest:a="card-layout",disabled:i=!1,hasToggle:s=!1,headerIcon:l,headerIconColor:d=w.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:v,tooltip:y})=>{const $=q(),[x,C]=n.useState(u||!1),O=void 0!==u,k=O&&s&&!g,E=O&&s&&!m;return n.useEffect((()=>{O&&C(u)}),[u,O]),e.jsxs(nf,{"data-test":a,disabled:i,id:f,children:[e.jsxs(rf,{disabled:i,hasToggle:s,onClick:s&&!i?()=>x?(O&&!k||C(!1),void(g&&g())):(O&&!E||C(!0),void(m&&m())):void 0,children:[e.jsxs(df,{"data-test":"title-container",children:[l&&e.jsx(lf,{headerIconColor:d,headerIconSize:c,children:l}),e.jsx("div",{dangerouslySetInnerHTML:{__html:f},"data-test":`title-${a}`}),p&&e.jsx(af,{children:p}),y&&e.jsx(of,{onClick:e=>e.stopPropagation(),children:e.jsx(ef,{placement:"auto",tooltip:y,children:e.jsx(sf,{children:e.jsx(mc,{fill:w.grey.base})})})})]}),(t||s)&&e.jsxs(cf,{children:[t&&e.jsx(of,{onClick:e=>e.stopPropagation(),children:t}),s&&e.jsxs(ff,{children:[!$&&v&&e.jsx("span",{"data-test":"toggle-label",children:v}),e.jsx(hf,{"aria-controls":f,"aria-expanded":x,"aria-label":x?o:v||b})]})]})]}),(!s&&r||s&&x)&&e.jsx(uf,{"data-test":"body-card",noPadding:h,children:r})]})},exports.Checkbox=({checkboxSize:t=exports.CheckboxSize.SMALL,checked:n,children:o,dataTest:a,disabled:i,id:s,indeterminate:l=!1,label:d,name:c,onChange:u})=>{const f=`${s}-${c}`;return e.jsxs(mf,{checkboxSize:t,"data-test":a||`checkbox-${c}`,children:[e.jsx(yf,Object.assign({},Boolean(o)&&{"aria-label":d},{checkboxSize:t,checked:n,"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(bf,{checkboxSize:t,"data-test":a?`checkbox-label-${a}`:"checkbox-label",hasLabel:r.isNotEmpty(d),htmlFor:f,children:o||e.jsx(vf,{dangerouslySetInnerHTML:{__html:d}})})]})},exports.Container=O,exports.DateInput=wf,exports.DatePicker=({date:r,dataTest:o,disabled:a,disabledDays:i,error:s,formatter:l="EEEE dd MMMM yyyy",label:d,locale:c,onDateChange:u,zIndex:f})=>{const p=n.useRef(null),[h,g]=n.useReducer(((e,t)=>Object.assign(Object.assign({},e),t)),{isFocused:!1,isOpen:!1}),{isOpen:b,isFocused:v}=h;return m(p,(({target:e})=>{var t;(null===(t=p.current)||void 0===t?void 0:t.contains(e))||g({isFocused:!1,isOpen:!1})})),e.jsx(Mt,{ref:p,"data-test":o||"date-picker-wrapper",onClick:()=>{v||a||g({isFocused:!0,isOpen:!0})},children:e.jsx(de,{disabled:a,label:d,error:s,zIndex:f,focused:v,value:r&&t.format(r,l,{locale:c}),field:b?e.jsx(Lt,{date:r,disabledDays:i,locale:c,onDateChange:e=>{u(e||null),g({isFocused:!1,isOpen:!1})}}):e.jsx(n.Fragment,{})})})},exports.EmailInput=Us,exports.Energy=({carbonFootprint:t,carbonFootprintLevel:n,consumption:r,consumptionLevel:o,EPCLevel:a,textContent:i})=>{const s=1===a?0:25*(a-1)+10*(a-2),{blankEPC:l,carbonFootprintLegend:d,carbonFootprintTitle:c,carbonFootprintUnit:u,consumptionLegend:f,consumptionTitle:p,consumptionUnit:h,EPCLegend:g,EPCTitle:m}=i;return t&&r?e.jsxs("div",{children:[e.jsx(Xt,{children:m}),e.jsxs(Kt,{"aria-label":m,role:"document",children:[e.jsx("div",{"aria-label":g,role:"group",tabIndex:0,children:e.jsx(Jt,{children:e.jsx(Qt,{background:Ut(a),isMainScore:!0,letterSize:25,pos:s,children:exports.EnergyLevel[a]})})}),e.jsxs(rn,{children:[e.jsxs(nn,{"aria-label":f,role:"group",tabIndex:0,children:[e.jsx(en,{children:p}),e.jsxs(tn,{children:[e.jsx(on,{children:r}),e.jsx(Qt,{background:Ut(o),children:exports.EnergyLevel[o]})]}),e.jsx(an,{children:h})]}),e.jsxs(nn,{"aria-label":d,role:"group",tabIndex:0,children:[e.jsx(en,{children:c}),e.jsxs(tn,{children:[e.jsx(on,{children:t}),e.jsx(Qt,{background:Wt(n),children:exports.EnergyLevel[n]})]}),e.jsx(an,{children:u})]})]})]})]}):e.jsx(Zt,{children:l})},exports.ErrorLayout=ln,exports.Fieldset=({label:t,active:n=!1,error:r=!1,children:o})=>e.jsxs(Of,{"data-test":"fieldset-layout",active:n,error:r,children:[e.jsx(Cf,{"data-test":"fieldset-label",children:t}),e.jsx(oe,{isVisible:!0,children:e.jsx("span",{dangerouslySetInnerHTML:{__html:t}})}),e.jsx(kf,{children:o})]}),exports.GmapsAutocomplete=Ff,exports.GmapsGeocode=Lf,exports.H1=up,exports.H2=pp,exports.H3=gp,exports.H4=bp,exports.H5=id,exports.H6=yp,exports.Input=de,exports.InputLoading=()=>e.jsx(np,{"data-test":"input-loading"}),exports.InterFont=E,exports.Line=j,exports.Loader=Rf,exports.Logo=()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 178 41",children:e.jsx("g",{fill:"currentColor",children:e.jsx("path",{d:"M146.119.062 145.337 0l-.68.02a.538.538 0 0 0-.098.012.403.403 0 0 1-.067.01c-.535.04-1.071.082-1.606.164-2.636.474-4.902 1.668-6.693 3.625-2.657 2.883-3.707 6.302-3.151 10.173a11.458 11.458 0 0 0 3.645 6.94c2.904 2.699 6.364 3.749 10.297 3.152a11.458 11.458 0 0 0 6.797-3.584c2.903-3.089 3.933-6.775 3.109-10.915-.576-2.78-1.997-5.066-4.201-6.858a11.906 11.906 0 0 0-6.57-2.677zm5.087 12.192c-.062 3.357-2.842 6.096-6.219 6.075h-.124c-3.439-.082-6.158-2.924-6.075-6.343.082-3.44 2.924-6.158 6.343-6.075 3.439.082 6.158 2.924 6.075 6.343zM3.671 1.274l-3.32.003V24.59h6.301v-5.87H6.9c.722 0 1.441.003 2.16.005 1.434.005 2.866.01 4.307-.004 1.38 0 2.76-.206 4.057-.639 2.471-.824 4.16-2.45 4.881-4.984.577-2.018.577-4.14.02-6.158-.617-2.224-1.997-3.789-4.118-4.716a11.63 11.63 0 0 0-4.572-.927c-3.321-.03-6.642-.027-9.963-.023zM6.837 13.49h-.185V6.487H12.645c.577 0 1.153.103 1.71.31 1.256.473 1.894 1.4 2.038 2.718.083.7-.02 1.441-.309 2.1-.432.948-1.194 1.463-2.183 1.71a5.297 5.297 0 0 1-1.277.165c-1.29.013-2.57.009-3.854.004-.643-.002-1.287-.004-1.933-.004zM166.2 0c.268.02.536.041.783.062a11.863 11.863 0 0 1 7.002 3.068c2.08 1.875 3.398 4.222 3.831 6.982.597 3.748-.33 7.105-2.822 9.988a11.59 11.59 0 0 1-6.775 3.934c-4.058.762-7.621-.288-10.689-3.048a1.715 1.715 0 0 1-.188-.183h-.001v-.001a7.661 7.661 0 0 0-.099-.104 14.88 14.88 0 0 0 1.73-3.295 15.86 15.86 0 0 0 .864-3.605c.557 1.792 1.648 3.13 3.337 3.934a6.011 6.011 0 0 0 5.148.082c3.131-1.359 4.573-5.025 3.193-8.155a6.2 6.2 0 0 0-4.778-3.645c-3.213-.495-6.24 1.606-6.961 4.572a14.7 14.7 0 0 0-2.636-6.961c.206-.206.411-.412.638-.598 1.874-1.585 4.098-2.595 6.487-2.903a19.9 19.9 0 0 1 1.077-.08l.056-.003c.019 0 .037-.004.057-.009a.379.379 0 0 1 .087-.011zM47.677 24.57l-4.408-7.888c.007-.007.014-.012.019-.015l.005-.004c0-.002-.007-.002-.024-.002l.124-.082c1.792-1.133 2.924-2.719 3.398-4.778a10.168 10.168 0 0 0-.02-4.387c-.515-2.492-1.957-4.263-4.325-5.252-1.524-.638-3.151-.885-4.778-.885-2.856-.014-5.712-.01-8.568-.005-1.428.003-2.856.005-4.283.005h-.186v23.251h6.261v-6.384c0-.165.041-.227.227-.227h6.57a.276.276 0 0 1 .288.165c1.153 2.1 2.286 4.202 3.418 6.323.041.123.144.185.247.165h5.829zM31.077 13.2h-.144l-.02-.206V6.714c0-.165.04-.227.226-.227h5.931c.618 0 1.236.103 1.813.33 1.153.453 1.73 1.318 1.874 2.512.082.598.02 1.216-.165 1.792-.33 1.03-1.112 1.648-2.142 1.895a5.036 5.036 0 0 1-1.359.185c-1.333.014-2.674.01-4.013.005-.668-.002-1.336-.005-2-.005zM99.781 1.277h13.016c1.73.02 3.398.268 5.005.968 2.286 1.009 3.645 2.78 4.139 5.21.33 1.483.33 3.007-.02 4.49-.474 1.977-1.607 3.501-3.296 4.613l-.226.144 4.428 7.909h-6.014c-.123.02-.226-.062-.268-.165l-.002-.005a1758.215 1758.215 0 0 1-3.396-6.318c-.041-.103-.144-.164-.267-.164h-6.591c-.165 0-.206.04-.206.206v6.425h-6.26zm6.282 11.924h.185c.659 0 1.318.003 1.977.005 1.318.004 2.636.009 3.954-.005.474 0 .948-.062 1.401-.185.947-.227 1.668-.742 2.08-1.648.268-.638.35-1.338.247-2.039-.124-1.07-.597-1.894-1.586-2.389a4.656 4.656 0 0 0-2.1-.453h-5.952c-.165 0-.206.042-.206.227v6.281zm-32.87-.72c0-6.838-5.519-12.378-12.356-12.399C54.06.062 48.542 5.5 48.439 12.274v.165c0 6.838 5.52 12.378 12.357 12.398 6.837 0 12.398-5.52 12.398-12.357zm-12.418 6.343a6.324 6.324 0 0 1-6.281-6.364v-.062c.02-3.48 2.883-6.281 6.363-6.26 3.48 0 6.302 2.862 6.282 6.404a6.324 6.324 0 0 1-6.364 6.282zm20.986-.103v5.849h-6.26V1.277h12.933c1.647 0 3.254.247 4.778.885 2.368 1.01 3.81 2.801 4.345 5.314.391 1.75.37 3.583-.082 5.334-.66 2.574-2.266 4.284-4.758 5.19a10.28 10.28 0 0 1-3.418.659c-1.607.041-3.193.041-4.799.041h-2.533zm0-8.733v3.296c0 .185.041.226.227.226 1.894 0 3.789 0 5.684-.02.473 0 .926-.062 1.38-.165 1.132-.289 1.977-.948 2.327-2.1.247-.825.247-1.69 0-2.513s-.824-1.483-1.607-1.813a5 5 0 0 0-1.977-.412h-5.807c-.186 0-.206.062-.206.227-.021 1.091-.021 2.183-.021 3.274zm49.036-8.711h-6.261V24.57h6.261zM14.54 32.766h1.277a3.277 3.277 0 0 0-.371-1.174 3.156 3.156 0 0 0-.762-.885 3.213 3.213 0 0 0-1.05-.556 4.12 4.12 0 0 0-1.257-.186c-.72 0-1.359.165-1.936.515-.556.35-1.009.844-1.338 1.483-.33.638-.494 1.421-.494 2.307 0 .885.164 1.668.494 2.306.33.639.762 1.133 1.338 1.483.557.35 1.216.515 1.936.515.453 0 .886-.062 1.277-.206s.742-.33 1.05-.577c.289-.247.557-.535.742-.885.185-.35.33-.721.391-1.133H14.56a1.934 1.934 0 0 1-.288.7c-.144.206-.288.37-.494.515a2.472 2.472 0 0 1-.66.33 3.09 3.09 0 0 1-.761.103c-.494 0-.906-.124-1.298-.371-.39-.247-.68-.597-.906-1.071-.226-.474-.33-1.05-.33-1.73 0-.68.104-1.256.33-1.73.227-.474.536-.824.906-1.07.392-.248.824-.372 1.298-.372.268 0 .515.021.762.103.247.083.453.186.659.33.206.144.37.33.494.535.124.206.227.453.268.721zM1.05 38.347c.31.144.68.227 1.071.227.35 0 .639-.062.906-.165a2.27 2.27 0 0 0 .618-.391c.144-.165.268-.31.35-.474h.042v.865H5.23v-4.18c0-.454-.062-.824-.226-1.113a1.907 1.907 0 0 0-.618-.659 2.288 2.288 0 0 0-.804-.33 3.798 3.798 0 0 0-1.894.083 2.65 2.65 0 0 0-.906.515c-.268.226-.453.535-.598.927l1.154.267c.103-.206.267-.411.494-.597.226-.185.556-.268.968-.268s.7.103.906.289c.206.185.309.473.309.824v.02c0 .165-.062.268-.165.33s-.288.123-.515.144c-.134.012-.298.032-.486.054l-.42.049a6.117 6.117 0 0 0-.885.165c-.289.082-.556.185-.783.308s-.412.289-.556.536c-.144.247-.206.535-.206.885 0 .412.082.763.288 1.05.186.269.453.495.762.64zm2.204-.968c-.227.144-.536.206-.865.206-.35 0-.618-.103-.844-.247-.227-.144-.33-.37-.33-.68 0-.226.041-.411.165-.535.123-.144.288-.247.474-.309.185-.062.411-.123.638-.144.088 0 .19-.015.309-.032l.062-.01c.144-.02.288-.04.453-.061a5 5 0 0 1 .185-.042c.09-.019.172-.036.247-.06a.67.67 0 0 0 .247-.125v.804c0 .247-.061.473-.185.7s-.309.412-.556.535zm15.24 1.195c-.391 0-.762-.083-1.07-.227s-.578-.37-.763-.638a1.906 1.906 0 0 1-.288-1.05c0-.35.062-.639.206-.886s.33-.412.556-.536c.226-.123.494-.226.782-.308s.577-.124.886-.165l.42-.049c.188-.022.351-.042.486-.054.227-.02.412-.083.515-.144s.165-.165.165-.33v-.02c0-.35-.103-.639-.31-.824-.205-.186-.493-.289-.885-.289s-.741.083-.968.268a1.63 1.63 0 0 0-.494.597l-1.153-.267c.144-.392.33-.7.597-.927a2.65 2.65 0 0 1 .906-.515 3.798 3.798 0 0 1 1.895-.082c.288.062.556.165.803.33.247.164.453.37.597.658.144.289.247.66.247 1.112v4.181H20.43v-.865h-.041c-.083.165-.206.309-.35.474-.165.144-.371.288-.618.391a2.65 2.65 0 0 1-.927.165zm.268-.989c.33 0 .638-.062.865-.206.247-.123.432-.309.556-.535s.185-.453.185-.7v-.804a.67.67 0 0 1-.247.124c-.075.025-.157.042-.247.061-.059.013-.12.026-.185.042-.165.02-.31.041-.453.062l-.062.009c-.118.017-.221.032-.31.032-.246.02-.452.082-.658.144-.186.062-.35.165-.474.31-.123.123-.165.308-.165.535 0 .309.103.535.33.68.226.143.515.246.865.246zm7.496-3.727 1.112-.186c-.123-.494-.37-.885-.782-1.174-.391-.288-.927-.432-1.607-.432-.473 0-.885.062-1.256.226-.37.165-.659.371-.865.66a1.555 1.555 0 0 0-.309.967c0 .453.144.824.412 1.113.268.288.72.514 1.298.638l1.07.226c.289.083.515.186.66.31.164.123.226.288.226.494 0 .247-.123.453-.37.618-.248.164-.577.247-.969.247-.35 0-.659-.062-.885-.227-.227-.165-.37-.391-.453-.7l-1.195.185c.103.536.371.968.824 1.277.453.31 1.03.453 1.73.453.494 0 .947-.082 1.339-.247.391-.185.68-.412.906-.7.226-.288.33-.639.33-1.01 0-.452-.145-.802-.433-1.09-.288-.29-.721-.495-1.298-.619l-.988-.226c-.35-.083-.597-.186-.762-.31a.702.702 0 0 1-.227-.514c0-.247.124-.432.35-.597.227-.144.515-.227.865-.227.268 0 .453.041.639.124.185.082.309.185.412.309.103.144.185.267.226.412zm3.83 4.716c-.39 0-.761-.083-1.07-.227a1.926 1.926 0 0 1-.762-.638 1.906 1.906 0 0 1-.288-1.05c0-.35.061-.639.206-.886.144-.247.33-.412.556-.536.226-.123.494-.226.782-.308s.577-.124.886-.165l.42-.049c.188-.022.351-.042.486-.054a1.29 1.29 0 0 0 .515-.144c.103-.062.165-.165.165-.33v-.02c0-.35-.103-.639-.31-.824-.205-.186-.494-.289-.906-.289s-.74.083-.968.268a1.863 1.863 0 0 0-.494.597l-1.153-.267c.144-.392.33-.7.597-.927.268-.227.577-.412.906-.515s.7-.165 1.092-.165c.247 0 .515.02.803.083s.556.165.803.33c.247.164.453.37.597.658.145.289.227.66.227 1.112v4.181h-1.194v-.865h-.042c-.082.165-.206.309-.35.474a2.27 2.27 0 0 1-.618.391 2.264 2.264 0 0 1-.885.165zm.269-.989c.33 0 .638-.062.865-.206.247-.123.432-.309.556-.535.123-.227.185-.453.185-.7v-.804a.671.671 0 0 1-.247.124c-.075.025-.157.042-.247.061-.059.013-.12.026-.186.042-.164.02-.309.041-.453.062l-.061.009a2.288 2.288 0 0 1-.31.032c-.226.02-.452.082-.638.144-.185.062-.35.165-.474.31-.123.123-.185.308-.185.535 0 .309.103.535.33.68.226.164.514.246.865.246zm6.755.845 2.286-6.302H38.08l-1.586 4.84h-.062l-1.586-4.84h-1.318l2.266 6.302zm5.293.123c-.598 0-1.113-.144-1.545-.412a2.751 2.751 0 0 1-1.03-1.132c-.247-.495-.37-1.05-.37-1.71s.123-1.215.37-1.71c.247-.493.577-.864 1.03-1.132.432-.268.947-.412 1.545-.412.597 0 1.112.144 1.544.412.433.268.783.639 1.03 1.133s.37 1.05.37 1.71-.123 1.214-.37 1.709c-.247.494-.577.865-1.03 1.132a2.932 2.932 0 0 1-1.544.412zm0-1.03c.39 0 .7-.103.947-.308a1.88 1.88 0 0 0 .556-.804c.124-.33.185-.7.185-1.112s-.061-.762-.185-1.112a1.764 1.764 0 0 0-.556-.803c-.247-.206-.577-.309-.947-.309s-.7.103-.948.309c-.247.206-.432.474-.556.803s-.185.7-.185 1.112.062.783.185 1.112.309.598.556.804c.247.205.556.308.948.308zm7.29.618c.433.268.947.412 1.565.412a3.76 3.76 0 0 0 1.318-.226c.371-.186.68-.433.886-.762.206-.33.35-.68.391-1.092h-1.194a1.356 1.356 0 0 1-.268.577 1.191 1.191 0 0 1-.474.37 1.68 1.68 0 0 1-.638.124c-.35 0-.66-.082-.906-.268-.268-.185-.453-.453-.598-.782-.144-.35-.206-.742-.206-1.195s.062-.844.206-1.174c.145-.33.35-.576.598-.762.267-.185.556-.267.906-.267.391 0 .7.123.927.33.247.205.39.473.453.761h1.194a2.202 2.202 0 0 0-.412-1.112 2.479 2.479 0 0 0-.906-.741c-.37-.186-.803-.268-1.277-.268-.597 0-1.112.124-1.544.412-.433.288-.762.659-1.01 1.153-.247.494-.37 1.071-.37 1.689s.123 1.174.35 1.668c.226.494.577.886 1.01 1.153zm7.538.412c-.598 0-1.112-.144-1.545-.412a2.751 2.751 0 0 1-1.03-1.132c-.247-.495-.37-1.05-.37-1.71s.123-1.215.37-1.71c.247-.493.577-.864 1.03-1.132.433-.268.947-.412 1.545-.412.597 0 1.112.144 1.544.412.433.268.783.639 1.03 1.133s.37 1.05.37 1.71-.123 1.214-.37 1.709c-.247.494-.577.865-1.03 1.132a2.985 2.985 0 0 1-1.544.412zm0-1.03c.391 0 .7-.103.947-.308.247-.206.432-.474.556-.804s.186-.7.186-1.112-.062-.762-.186-1.112-.309-.597-.556-.803c-.247-.206-.577-.309-.947-.309s-.7.103-.948.309a1.88 1.88 0 0 0-.556.803c-.123.33-.185.7-.185 1.112s.062.783.185 1.112c.124.33.31.598.556.804.248.205.556.308.948.308zm3.707-5.395v6.302l1.235.02v-3.872c0-.267.062-.514.186-.74.123-.228.268-.392.473-.516.186-.123.412-.185.639-.185.33 0 .618.103.824.309.206.206.309.473.309.824v4.18h1.215v-4.016c0-.391.103-.7.33-.947.226-.247.535-.37.926-.37.309 0 .597.102.824.288.226.185.35.494.35.926v4.099h1.235v-4.222c0-.721-.164-1.277-.535-1.627s-.824-.536-1.4-.536c-.454 0-.845.103-1.174.31a1.8 1.8 0 0 0-.721.802h-.062a1.885 1.885 0 0 0-.638-.803c-.268-.185-.639-.288-1.05-.288s-.783.103-1.072.288a1.558 1.558 0 0 0-.638.803h-.082v-1.03zm9.618 8.65v-8.65h1.194v1.009h.103c.062-.124.165-.289.309-.453.123-.165.309-.33.556-.453.226-.124.556-.186.947-.186.515 0 .968.124 1.36.392.39.267.72.618.947 1.112.226.494.35 1.07.35 1.75s-.103 1.257-.33 1.75c-.226.495-.535.866-.926 1.113a2.504 2.504 0 0 1-1.36.391c-.39 0-.7-.061-.926-.185a2.164 2.164 0 0 1-.577-.453 2.217 2.217 0 0 1-.309-.453h-.082v3.315zm1.194-5.5c0 .433.062.824.185 1.154s.31.597.556.783c.248.185.536.288.886.288s.68-.103.927-.288.432-.454.556-.804c.123-.33.185-.72.185-1.132s-.062-.783-.185-1.112c-.124-.33-.31-.598-.556-.783-.247-.185-.556-.288-.927-.288s-.66.082-.906.267a1.638 1.638 0 0 0-.556.762c-.103.33-.165.721-.165 1.154zm6.096 3.07c.309.143.68.226 1.07.226.351 0 .66-.062.948-.165a2.27 2.27 0 0 0 .618-.391c.144-.165.268-.31.35-.474h.041v.865h1.195v-4.18c0-.454-.062-.824-.227-1.113a1.906 1.906 0 0 0-.617-.659c-.248-.165-.515-.268-.804-.33a3.79 3.79 0 0 0-1.894.083 2.65 2.65 0 0 0-.907.515c-.267.226-.453.535-.597.927l1.154.267c.102-.206.267-.411.494-.597.226-.185.576-.268.968-.268s.68.083.885.289c.206.185.31.473.31.824v.02c0 .165-.063.268-.166.33a1.29 1.29 0 0 1-.514.144c-.16.013-.345.035-.556.06l-.371.043c-.31.041-.597.103-.886.165a3.876 3.876 0 0 0-.782.308 1.385 1.385 0 0 0-.556.536c-.145.247-.206.535-.206.885 0 .412.103.783.288 1.05.185.269.453.495.762.64zm2.204-.969c-.247.144-.536.206-.865.206a1.59 1.59 0 0 1-.865-.247c-.227-.144-.33-.37-.33-.68 0-.226.062-.411.186-.535a.954.954 0 0 1 .473-.309c.186-.062.412-.123.639-.144.088 0 .19-.015.309-.032l.061-.01c.145-.02.289-.04.453-.061.065-.016.127-.03.186-.042.09-.019.172-.036.247-.06a.671.671 0 0 0 .247-.125v.804c0 .247-.062.473-.185.7a1.272 1.272 0 0 1-.556.535zm4.263-2.698v3.728h-1.236v-6.281h1.174v1.03h.082c.144-.33.371-.598.68-.804.309-.206.7-.309 1.174-.309.432 0 .803.083 1.133.268.329.185.576.453.74.803.186.35.269.783.269 1.298v3.995h-1.236v-3.851c0-.453-.124-.803-.35-1.071-.227-.247-.556-.391-.989-.391-.288 0-.535.061-.762.185a1.291 1.291 0 0 0-.515.535c-.123.227-.164.536-.164.865zm5.128 6.055c.144.02.309.041.494.041.35.021.639 0 .886-.123.247-.124.473-.268.659-.515.185-.247.33-.515.453-.844l2.595-7.126h-1.318l-1.586 4.88h-.062l-1.586-4.88H88.66l2.307 6.364-.144.412c-.103.267-.206.473-.35.597-.145.103-.289.185-.474.185-.186 0-.37-.02-.597-.082l-.289 1.009c.062.02.186.062.33.082z"})})}),exports.NumberInput=t=>{var{focused:r,isFloat:o=!1,onBlur:a,onChange:i,onFocus:s,value:l}=t,d=As(t,["focused","isFloat","onBlur","onChange","onFocus","value"]);const[c,u]=n.useState(Boolean(r)),[f,p]=n.useState(l?l.toString():"");return n.useEffect((()=>{if(null===l)return p("");const e=null==l?void 0:l.toString();e&&e!==f&&p(e)}),[l]),e.jsx(de,Object.assign({},d,{onFocus:()=>{u(!0),s&&s()},onBlur:()=>{u(!1),p(((e,t)=>{const n=rp(e),r=t?parseFloat(n):parseInt(n,10);return isNaN(r)?"":r.toString()})(f,o)),a&&a()},onChange:e=>{const t=rp(e,!0),n=t.endsWith(".");if(o&&ap.test(t)||!o&&ip.test(t)){if(p(t),n)return;if(""===t)return i(null);const e=o?parseFloat(t):parseInt(t,10);isNaN(e)||l===e||i(e)}},value:c?f:op(f,o)}))},exports.OfferSignatoryForm=({offerSignatoryInfo:t,errors:o,customErrorMessages:a={},updateOfferSignatory:i})=>{const{dateOfBirth:s,placeOfBirth:l,street:d,streetNumber:c,city:u,postCode:f,maritalStatus:p}=t,[h,g]=n.useState(r.listToString([c,d,f,u])),m=!!o.street||!!o.city||!!o.postCode,b=Object.assign(Object.assign({},hh),a);return e.jsxs("div",{children:[e.jsxs(j,{children:[e.jsx(Lf,{dataTest:"offer-signatory-address",disabled:!1,label:fh,value:h,onChange:e=>{g(e),e||i(Object.assign(Object.assign({},t),{city:"",postCode:"",street:"",streetNumber:""}))},onSelect:e=>{const{city:n,postalCode:o,street:a,streetNumber:s}=r.getFormattedAddressComponent(e);i(Object.assign(Object.assign({},t),{city:(null==n?void 0:n.long_name)||"",postCode:(null==o?void 0:o.long_name)||"",street:(null==a?void 0:a.long_name)||"",streetNumber:(null==s?void 0:s.long_name)||""}))},error:m,country:""}),m&&e.jsx(ln,{dataTest:"address",children:b.address})]}),e.jsx(j,{children:e.jsxs(G,{children:[e.jsxs("div",{children:[e.jsx(wf,{dataTest:"offer-signatory-birth-date",label:ch,disabled:!1,error:!!o.dateOfBirth,onChange:e=>e&&i(Object.assign(Object.assign({},t),{dateOfBirth:new Date(e)})),value:s?s.toISOString():""}),o.dateOfBirth&&e.jsx(ln,{dataTest:"dateOfBirth",children:b.dateOfBirth})]}),e.jsxs("div",{children:[e.jsx(de,{dataTest:"offer-signatory-birth-place",label:uh,error:!!o.placeOfBirth,disabled:!1,onChange:e=>i(Object.assign(Object.assign({},t),{placeOfBirth:e})),value:l}),o.placeOfBirth&&e.jsx(ln,{dataTest:"placeOfBirth",children:b.placeOfBirth})]})]})}),e.jsx(j,{children:e.jsxs(G,{children:[e.jsxs("div",{children:[e.jsx(Gd,{dataTest:"offer-signatory-marital-status",disabled:!1,error:!!o.maritalStatus,label:ph,onSelect:({value:e})=>i(Object.assign(Object.assign({},t),{maritalStatus:e})),option:gh.find((({value:e})=>e===p))||null,options:gh}),o.maritalStatus&&e.jsx(ln,{dataTest:"maritalStatus",children:b.maritalStatus})]}),e.jsx("div",{})]})})]})},exports.OfferSignatoryFormSchema=mh,exports.Option=Id,exports.Phone=Ns,exports.PhoneAndFlag=({phone:t,color:r=w.dark.base,errorMessage:o})=>{const a=t?Xs(t):null;return e.jsx(bh,{children:a&&"FR"===(null==a?void 0:a.country)?e.jsx(yh,{"data-test":"french-phone",color:r,children:Ys(a.number)}):a?e.jsxs(n.Fragment,{children:[e.jsx(vh,{"data-test":"flag",alt:a.country,src:`https://cdn.proprioo.fr/assets/flags/${a.country}.svg`}),e.jsx(yh,{"data-test":"phone",color:r,children:Ys(a.number)})]}):e.jsx($h,{"data-test":"incorrect-phone",children:o})})},exports.PhoneInput=({label:t,value:n,onChange:r,dataTest:o,disabled:a=!1,error:i=!1,phoneWithFlags:s=!1,required:l=!1})=>e.jsx(de,{dataTest:o||"customer-phone",name:"phone",type:exports.InputType.TEL,disabled:a,error:i,label:t,value:n,onChange:r,inputElement:Ns,phoneWithFlags:s,required:l}),exports.PlacesAutocomplete=Al,exports.Radio=({name:t,label:n,id:r,isChecked:o,onChange:a,value:i,dataTest:s})=>{const l=`${r}-${t}`;return e.jsxs(sp,{"data-test":s||`radio-${t}`,children:[e.jsx(dp,{type:"radio",id:l,name:t,value:i,onChange:e=>a(e),checked:o}),e.jsx(lp,{htmlFor:l,children:n})]})},exports.Row=G,exports.Select=Gd,exports.SingleMonth=t=>e.jsx(Rt,{children:e.jsx(Lt,Object.assign({},t))}),exports.Subtitle=({text:t,color:n=w.dark.base})=>e.jsx(_p,{"data-test":"subtitle",children:e.jsx(zp,{color:n,"data-test":"subtitle-label",children:t})}),exports.Tag=({appearance:t=exports.TagAppearance.BUSINESS,closeAriaLabel:r="Supprimer",color:o=exports.TagColorsTypes.TERRACOTA,dataTest:a="basic-tag",icon:i,labels:s,numberOfTags:l=s.length,onClose:d})=>{const c=s.slice(0,l),u=s.slice(l);return e.jsxs(n.Fragment,{children:[c.map(((n,s)=>e.jsxs(Kp,{appearance:t,color:o,close:!!d,"data-test":a,icon:!!i,children:[i&&e.jsx(eh,{color:o,"data-test":"tag-icon",children:i}),n,d&&e.jsx(Xp,{"aria-label":r,appearance:t,"data-test":"tag-closer",onClick:d,children:e.jsx(Wp,{})})]},s))),Boolean(u.length)&&e.jsxs(Qp,{"data-test":"list-tag",children:[e.jsxs(Kp,{appearance:t,color:o,"data-test":a,icon:!!i,children:[i&&e.jsx(eh,{color:o,"data-test":"tag-icon",children:i}),`+ ${u.length}`]}),e.jsx(Jp,{appearance:t,color:o,children:u.map(((t,n)=>e.jsx(Zp,{"data-test":"tag-element",children:t},n)))})]})]})},exports.TagBase=Vp,exports.TextToggle=({text:t,dataTest:r="text-toggle",isComment:o=!1,maxLength:a=300,showLessLabel:i="Lire moins",showMoreLabel:s="Lire plus",title:l})=>{const d=(e=>e.split(dh).filter(Boolean).join(" "))(t),c=d.length>a,[u,f]=n.useState(c),p=((e,t)=>{if(e.length<=t||t<0)return e;if(" "===e.charAt(t))return e.slice(0,t).concat("…");const n=e.slice(0,t),[r]=e.slice(t,e.length).split(" ");return n.concat(r).concat("…")})(d,a);return e.jsxs(ah,{"data-test":r,children:[l&&e.jsx(sh,{"data-test":"text-toggle-title",children:`${l} : `}),e.jsx(lh,{isComment:o,children:u?p:d}),c&&e.jsx(ih,{isComment:o,hasTitle:Boolean(l),onClick:()=>f(!u),children:u?s:i})]})},exports.Textarea=rh,exports.Toggle=({label:t,id:n,checked:r=!1,disabled:o=!1,name:a,dataTest:i,onChange:s})=>e.jsxs(Bp,{children:[e.jsx(Mp,{checked:r,onChange:e=>{s(e.target.checked)},icons:!1,name:a,id:n,disabled:o,"data-test":i||`toggle-${a}`}),e.jsx(Rp,{htmlFor:n,disabled:o,"data-test":"toggle-label",children:t})]}),exports.Tooltip=ef,exports.UserForm=({user:t,errors:n,updateUser:r,disabledFields:o={},emailSuggestionI18nLabels:a,errorMessages:i={},isEmailSuggestionEnabled:s=!0,labels:l=Ws,phoneWithFlags:d=!1})=>{const{firstName:c,lastName:u,email:f,phone:p}=t,h=Object.assign(Object.assign({},Hs),i);return e.jsxs("div",{children:[e.jsx(j,{children:e.jsxs(G,{children:[e.jsxs("div",{children:[e.jsx(de,{dataTest:"customer-firstName",name:"first-name",type:exports.InputType.TEXT,disabled:o.firstName,error:!!n.firstName,label:l.firstName,value:c,onChange:e=>r(Object.assign(Object.assign({},t),{firstName:e}),"user.firstName")}),n.firstName&&e.jsx(ln,{dataTest:"invalid-firstName",children:h.firstName})]}),e.jsxs("div",{children:[e.jsx(de,{dataTest:"customer-lastName",name:"last-name",type:exports.InputType.TEXT,disabled:o.lastName,error:!!n.lastName,label:l.lastName,value:u,onChange:e=>r(Object.assign(Object.assign({},t),{lastName:e}),"user.lastName")}),n.lastName&&e.jsx(ln,{dataTest:"invalid-lastName",children:h.lastName})]})]})}),e.jsx(j,{children:e.jsxs(G,{children:[e.jsxs("div",{children:[e.jsx(Us,{dataTest:"customer-email",name:"email",disabled:o.email,error:!!n.email,label:l.email,isSuggestionEnabled:s,i18nLabels:a,value:f,onChange:e=>r(Object.assign(Object.assign({},t),{email:Vs(e)}),"user.email")}),n.email&&e.jsx(ln,{dataTest:"invalid-email",children:h.email})]}),e.jsxs("div",{children:[e.jsx(de,{dataTest:"customer-phone",name:"phone",type:exports.InputType.TEL,disabled:o.phone,error:!!n.phone,label:l.phone,value:p,onChange:e=>r(Object.assign(Object.assign({},t),{phone:e||null}),"user.phone"),inputElement:Ns,phoneWithFlags:d}),n.phone&&e.jsx(ln,{dataTest:"invalid-phone",children:h.phone})]})]})})]})},exports.UserSchema=Js,exports.breakpoints=v,exports.colors=w,exports.convertPxToRem=C,exports.createAction=H,exports.fonts=S,exports.formatInternationalPhone=Ys,exports.formatPhoneNumber=e=>Es(e,Ss),exports.getCarbonFootprintLevel=Vt,exports.getConsumptionLevel=Ht,exports.getEPCLevel=qt,exports.getEPCLevels=(e,t,n)=>{const r=Ht(t,n),o=Vt(e,n);return{consumptionLevel:r,carbonFootprintLevel:o,EPCLevel:qt(r,o,n)}},exports.getGeoSearchSuggestions=Z,exports.isTouchDevice=Y,exports.isValidDate=xf,exports.isValidPhoneNumber=Ks,exports.paragraphs=_,exports.parsePhoneNumber=Xs,exports.radius=z,exports.resetCssButton=K,exports.scrollbar=W,exports.shadows=U,exports.titles=Vl,exports.useDebounce=Ls,exports.useEmailSuggestion=Bs,exports.useMobileDevice=()=>V(`(max-width: ${v.base-1}px)`),exports.useModal=({onAbort:t,onOpen:r,onClose:o}={})=>{const[{isAborting:a,fade:i,isLoading:s,isOpen:l},d]=n.useReducer(Gf,{isAborting:!1,fade:Bf.IN,isOpen:!1,isLoading:!1}),c=(()=>{const e=n.useRef(!0);return n.useEffect((()=>{e.current=!1}),[]),e.current})(),u=n.useCallback((()=>{l&&d(zf.toggleLoad())}),[l]),f=n.useCallback((()=>{r&&r(),d(zf.open())}),[r]),p=n.useCallback((()=>{!s&&l&&d(zf.close())}),[s,l]),h=n.useCallback((()=>{!s&&l&&d(zf.abort())}),[s,l]),g=n.useCallback((()=>d(zf.animationEnd())),[]),m=n.useCallback((()=>{a&&t&&t(),o&&o(),d(zf.reset())}),[a,t,o]);n.useEffect((()=>{l||c||m()}),[l]);return{closeModal:p,createModal:({children:t,icon:r,isAlternative:o=!1,isClosable:a=!0,isFullScreen:d,noPadding:c,text:u,title:f})=>l?e.jsx(tp,{abortModal:h,fade:i,icon:r,isAlternative:o,isClosable:a,isFullScreen:d,isLoading:s,noPadding:c,onAnimationEnd:g,text:u,title:f,children:t}):e.jsx(n.Fragment,{}),openModal:f,toggleLoader:u}},exports.useOnClickOutside=m,exports.useSmallSmartphoneDevice=()=>V(`(max-width: ${v.smallest-1}px)`),exports.useSmartphoneDevice=q;
2664
+ `;exports.Accordion=({children:t,preExpanded:n,allowMultipleExpanded:r})=>e.jsx(Ll,{preExpanded:n,allowMultipleExpanded:r,children:t}),exports.AccordionHeader=({isAlternative:t,basic:n,children:r})=>e.jsx(nd,{children:({expanded:o,toggleExpanded:a})=>e.jsxs(ql,{onClick:()=>a(),"data-test":"accordion-header",children:[e.jsx(Yl,{isAlternative:t,basic:n,children:r}),e.jsx(Kl,{isOpen:o,children:e.jsx(od,{})})]})}),exports.AccordionItem=rd,exports.AccordionPanel=({children:t,unmountOnCollapse:r})=>e.jsx(nd,{children:({expanded:o})=>e.jsx(Xl,{isOpen:o,children:!r||o?e.jsx("div",{"data-test":"panel-content",children:t}):e.jsx(n.Fragment,{})})}),exports.AgentBanner=({children:t,agent:{image_agent:n,name:r,zone:o,fonction:a},rounded:i=!0})=>e.jsxs(sd,{"data-test":"agent-card",rounded:i,children:[e.jsxs(ud,{children:[r&&e.jsx(id,{title:r,color:w.green.base}),a&&e.jsx(fd,{"data-test":"agent-fonction",children:a}),o&&e.jsx(fd,{"data-test":"agent-zone",children:o}),t]}),e.jsx(dd,{children:e.jsx(cd,{children:e.jsx(ld,{"data-test":"agent-image",src:n,loading:"lazy"})})})]}),exports.AgentCard=wd,exports.Autocomplete=t=>{var{list:o,native:a=!1,option:i,onSelect:s}=t,l=As(t,["list","native","option","onSelect"]);const[{hasFullList:d,internalValue:c,isFocused:u},f]=n.useReducer(((e,t)=>Object.assign(Object.assign({},e),t)),{hasFullList:!1,internalValue:(null==i?void 0:i.label)||"",isFocused:!1}),p=o.filter((({label:e})=>r.normalizeString(e).includes(r.normalizeString(c)))),h=Boolean(c.length>1&&!d)?p:o,g=(e="")=>{e||s(null),f({hasFullList:!1,internalValue:e})};return n.useEffect((()=>{(null==i?void 0:i.label)?g(i.label):f({internalValue:""})}),[i]),e.jsx(Gd,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=k,exports.Block=({children:t,picture:n,isCompact:r,isRounded:o})=>e.jsxs(Hd,{isRounded:o,"data-test":"block",children:[n&&e.jsx(Wd,{picture:n,"data-test":"picture"}),e.jsx(Ud,{isCompact:r,children:t})]}),exports.BlockCheckIcon=({onClick:t,image:n,checked:r,name:o,text:a,dataTest:i})=>{const s=`checkbox-input-label-${a}`;return e.jsxs(gc,{checked:r,"data-test":i||`checkbox-button-${a}`,children:[e.jsx(pc,{"aria-labelledby":s,checked:r,name:o,onChange:({target:e})=>t(e.checked),type:"checkbox"}),e.jsx(hc,{children:n}),e.jsx("span",{id:s,children:a})]})},exports.BlockIcon=function({onClick:t,image:n,text:r,name:o,selectedValue:a,dataTest:i,value:s,isContentCentered:l=!1}){const d=a===s,c=`radio-input-label-${r}`;return e.jsxs(fc,{"data-test":i||`radio-button-${r}`,isActive:d,isContentCentered:l,children:[e.jsx(pc,{"aria-labelledby":c,checked:d,name:o,onChange:()=>t(s),type:"radio"}),e.jsx("span",{id:c,children:r}),n]})},exports.Burger=({isOpen:t,isSmall:n=!1,onClick:r,color:o})=>e.jsxs(Yd,{"data-test":"burger",onClick:r,isOpen:t,isSmall:n,color:o,children:[e.jsx(qd,{}),e.jsx(qd,{}),e.jsx(qd,{})]}),exports.Button=t=>{var{appearance:r=exports.ButtonAppearance.PRIMARY,icon:o,iconPosition:a=exports.IconPosition.RIGHT,label:i,rounded:s=!1,size:l=exports.ButtonSizes.LARGE,theme:d=exports.ButtonTheme.BLACK}=t,c=As(t,["appearance","icon","iconPosition","label","rounded","size","theme"]);return e.jsxs(sc,Object.assign({appearance:r,"aria-label":i,icon:o,iconPosition:a,rounded:s,size:l,theme:d},c,{children:[o&&e.jsx(ic,{appearance:r,iconPosition:a,size:l,theme:d,children:n.isValidElement(o)?n.cloneElement(o,{"aria-hidden":!0,focusable:!1}):o}),!s&&e.jsx(ac,{"data-test":"label",children:i})]}))},exports.ButtonRadio=cc,exports.ButtonRadioGroup=({label:t,name:n,onChange:r,options:o,value:a})=>e.jsx(uc,{role:"radiogroup","aria-label":t,children:o.map((t=>e.jsx(cc,{isChecked:a===t.value,name:n,option:t,onClick:()=>r(t)},`radio-option-${t.value}`)))}),exports.Card=({after:t,children:r,closeToggleAriaLabel:o="Cacher le contenu",dataTest:a="card-layout",disabled:i=!1,hasToggle:s=!1,headerIcon:l,headerIconColor:d=w.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:v,tooltip:y})=>{const $=q(),[x,C]=n.useState(u||!1),O=void 0!==u,k=O&&s&&!g,E=O&&s&&!m;return n.useEffect((()=>{O&&C(u)}),[u,O]),e.jsxs(nf,{"data-test":a,disabled:i,id:f,children:[e.jsxs(rf,{disabled:i,hasToggle:s,onClick:s&&!i?()=>x?(O&&!k||C(!1),void(g&&g())):(O&&!E||C(!0),void(m&&m())):void 0,children:[e.jsxs(df,{"data-test":"title-container",children:[l&&e.jsx(lf,{headerIconColor:d,headerIconSize:c,children:l}),e.jsx("div",{dangerouslySetInnerHTML:{__html:f},"data-test":`title-${a}`}),p&&e.jsx(af,{children:p}),y&&e.jsx(of,{onClick:e=>e.stopPropagation(),children:e.jsx(ef,{placement:"auto",tooltip:y,children:e.jsx(sf,{children:e.jsx(mc,{fill:w.grey.base})})})})]}),(t||s)&&e.jsxs(cf,{children:[t&&e.jsx(of,{onClick:e=>e.stopPropagation(),children:t}),s&&e.jsxs(ff,{children:[!$&&v&&e.jsx("span",{"data-test":"toggle-label",children:v}),e.jsx(hf,{"aria-controls":f,"aria-expanded":x,"aria-label":x?o:v||b})]})]})]}),(!s&&r||s&&x)&&e.jsx(uf,{"data-test":"body-card",noPadding:h,children:r})]})},exports.Checkbox=({checkboxSize:t=exports.CheckboxSize.SMALL,checked:n,children:o,dataTest:a,disabled:i,id:s,indeterminate:l=!1,label:d,name:c,onChange:u})=>{const f=`${s}-${c}`;return e.jsxs(mf,{checkboxSize:t,"data-test":a||`checkbox-${c}`,children:[e.jsx(yf,Object.assign({},Boolean(o)&&{"aria-label":d},{checkboxSize:t,checked:n,"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(bf,{checkboxSize:t,"data-test":a?`checkbox-label-${a}`:"checkbox-label",hasLabel:r.isNotEmpty(d),htmlFor:f,children:o||e.jsx(vf,{dangerouslySetInnerHTML:{__html:d}})})]})},exports.Container=O,exports.DateInput=wf,exports.DatePicker=({date:r,dataTest:o,disabled:a,disabledDays:i,error:s,formatter:l="EEEE dd MMMM yyyy",label:d,locale:c,onDateChange:u,zIndex:f})=>{const p=n.useRef(null),[h,g]=n.useReducer(((e,t)=>Object.assign(Object.assign({},e),t)),{isFocused:!1,isOpen:!1}),{isOpen:b,isFocused:v}=h;return m(p,(({target:e})=>{var t;(null===(t=p.current)||void 0===t?void 0:t.contains(e))||g({isFocused:!1,isOpen:!1})})),e.jsx(Mt,{ref:p,isOpen:b,"data-test":o||"date-picker-wrapper",onClick:()=>{v||a||g({isFocused:!0,isOpen:!0})},children:e.jsx(de,{disabled:a,label:d,error:s,zIndex:f,focused:v,value:r&&t.format(r,l,{locale:c}),field:b?e.jsx(Lt,{date:r,disabledDays:i,locale:c,onDateChange:e=>{u(e||null),g({isFocused:!1,isOpen:!1})}}):e.jsx(n.Fragment,{})})})},exports.EmailInput=Us,exports.Energy=({carbonFootprint:t,carbonFootprintLevel:n,consumption:r,consumptionLevel:o,EPCLevel:a,textContent:i})=>{const s=1===a?0:25*(a-1)+10*(a-2),{blankEPC:l,carbonFootprintLegend:d,carbonFootprintTitle:c,carbonFootprintUnit:u,consumptionLegend:f,consumptionTitle:p,consumptionUnit:h,EPCLegend:g,EPCTitle:m}=i;return t&&r?e.jsxs("div",{children:[e.jsx(Xt,{children:m}),e.jsxs(Kt,{"aria-label":m,role:"document",children:[e.jsx("div",{"aria-label":g,role:"group",tabIndex:0,children:e.jsx(Jt,{children:e.jsx(Qt,{background:Ut(a),isMainScore:!0,letterSize:25,pos:s,children:exports.EnergyLevel[a]})})}),e.jsxs(rn,{children:[e.jsxs(nn,{"aria-label":f,role:"group",tabIndex:0,children:[e.jsx(en,{children:p}),e.jsxs(tn,{children:[e.jsx(on,{children:r}),e.jsx(Qt,{background:Ut(o),children:exports.EnergyLevel[o]})]}),e.jsx(an,{children:h})]}),e.jsxs(nn,{"aria-label":d,role:"group",tabIndex:0,children:[e.jsx(en,{children:c}),e.jsxs(tn,{children:[e.jsx(on,{children:t}),e.jsx(Qt,{background:Wt(n),children:exports.EnergyLevel[n]})]}),e.jsx(an,{children:u})]})]})]})]}):e.jsx(Zt,{children:l})},exports.ErrorLayout=ln,exports.Fieldset=({label:t,active:n=!1,error:r=!1,children:o})=>e.jsxs(Of,{"data-test":"fieldset-layout",active:n,error:r,children:[e.jsx(Cf,{"data-test":"fieldset-label",children:t}),e.jsx(oe,{isVisible:!0,children:e.jsx("span",{dangerouslySetInnerHTML:{__html:t}})}),e.jsx(kf,{children:o})]}),exports.GmapsAutocomplete=Ff,exports.GmapsGeocode=Lf,exports.H1=up,exports.H2=pp,exports.H3=gp,exports.H4=bp,exports.H5=id,exports.H6=yp,exports.Input=de,exports.InputLoading=()=>e.jsx(np,{"data-test":"input-loading"}),exports.InterFont=E,exports.Line=j,exports.Loader=Rf,exports.Logo=()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 178 41",children:e.jsx("g",{fill:"currentColor",children:e.jsx("path",{d:"M146.119.062 145.337 0l-.68.02a.538.538 0 0 0-.098.012.403.403 0 0 1-.067.01c-.535.04-1.071.082-1.606.164-2.636.474-4.902 1.668-6.693 3.625-2.657 2.883-3.707 6.302-3.151 10.173a11.458 11.458 0 0 0 3.645 6.94c2.904 2.699 6.364 3.749 10.297 3.152a11.458 11.458 0 0 0 6.797-3.584c2.903-3.089 3.933-6.775 3.109-10.915-.576-2.78-1.997-5.066-4.201-6.858a11.906 11.906 0 0 0-6.57-2.677zm5.087 12.192c-.062 3.357-2.842 6.096-6.219 6.075h-.124c-3.439-.082-6.158-2.924-6.075-6.343.082-3.44 2.924-6.158 6.343-6.075 3.439.082 6.158 2.924 6.075 6.343zM3.671 1.274l-3.32.003V24.59h6.301v-5.87H6.9c.722 0 1.441.003 2.16.005 1.434.005 2.866.01 4.307-.004 1.38 0 2.76-.206 4.057-.639 2.471-.824 4.16-2.45 4.881-4.984.577-2.018.577-4.14.02-6.158-.617-2.224-1.997-3.789-4.118-4.716a11.63 11.63 0 0 0-4.572-.927c-3.321-.03-6.642-.027-9.963-.023zM6.837 13.49h-.185V6.487H12.645c.577 0 1.153.103 1.71.31 1.256.473 1.894 1.4 2.038 2.718.083.7-.02 1.441-.309 2.1-.432.948-1.194 1.463-2.183 1.71a5.297 5.297 0 0 1-1.277.165c-1.29.013-2.57.009-3.854.004-.643-.002-1.287-.004-1.933-.004zM166.2 0c.268.02.536.041.783.062a11.863 11.863 0 0 1 7.002 3.068c2.08 1.875 3.398 4.222 3.831 6.982.597 3.748-.33 7.105-2.822 9.988a11.59 11.59 0 0 1-6.775 3.934c-4.058.762-7.621-.288-10.689-3.048a1.715 1.715 0 0 1-.188-.183h-.001v-.001a7.661 7.661 0 0 0-.099-.104 14.88 14.88 0 0 0 1.73-3.295 15.86 15.86 0 0 0 .864-3.605c.557 1.792 1.648 3.13 3.337 3.934a6.011 6.011 0 0 0 5.148.082c3.131-1.359 4.573-5.025 3.193-8.155a6.2 6.2 0 0 0-4.778-3.645c-3.213-.495-6.24 1.606-6.961 4.572a14.7 14.7 0 0 0-2.636-6.961c.206-.206.411-.412.638-.598 1.874-1.585 4.098-2.595 6.487-2.903a19.9 19.9 0 0 1 1.077-.08l.056-.003c.019 0 .037-.004.057-.009a.379.379 0 0 1 .087-.011zM47.677 24.57l-4.408-7.888c.007-.007.014-.012.019-.015l.005-.004c0-.002-.007-.002-.024-.002l.124-.082c1.792-1.133 2.924-2.719 3.398-4.778a10.168 10.168 0 0 0-.02-4.387c-.515-2.492-1.957-4.263-4.325-5.252-1.524-.638-3.151-.885-4.778-.885-2.856-.014-5.712-.01-8.568-.005-1.428.003-2.856.005-4.283.005h-.186v23.251h6.261v-6.384c0-.165.041-.227.227-.227h6.57a.276.276 0 0 1 .288.165c1.153 2.1 2.286 4.202 3.418 6.323.041.123.144.185.247.165h5.829zM31.077 13.2h-.144l-.02-.206V6.714c0-.165.04-.227.226-.227h5.931c.618 0 1.236.103 1.813.33 1.153.453 1.73 1.318 1.874 2.512.082.598.02 1.216-.165 1.792-.33 1.03-1.112 1.648-2.142 1.895a5.036 5.036 0 0 1-1.359.185c-1.333.014-2.674.01-4.013.005-.668-.002-1.336-.005-2-.005zM99.781 1.277h13.016c1.73.02 3.398.268 5.005.968 2.286 1.009 3.645 2.78 4.139 5.21.33 1.483.33 3.007-.02 4.49-.474 1.977-1.607 3.501-3.296 4.613l-.226.144 4.428 7.909h-6.014c-.123.02-.226-.062-.268-.165l-.002-.005a1758.215 1758.215 0 0 1-3.396-6.318c-.041-.103-.144-.164-.267-.164h-6.591c-.165 0-.206.04-.206.206v6.425h-6.26zm6.282 11.924h.185c.659 0 1.318.003 1.977.005 1.318.004 2.636.009 3.954-.005.474 0 .948-.062 1.401-.185.947-.227 1.668-.742 2.08-1.648.268-.638.35-1.338.247-2.039-.124-1.07-.597-1.894-1.586-2.389a4.656 4.656 0 0 0-2.1-.453h-5.952c-.165 0-.206.042-.206.227v6.281zm-32.87-.72c0-6.838-5.519-12.378-12.356-12.399C54.06.062 48.542 5.5 48.439 12.274v.165c0 6.838 5.52 12.378 12.357 12.398 6.837 0 12.398-5.52 12.398-12.357zm-12.418 6.343a6.324 6.324 0 0 1-6.281-6.364v-.062c.02-3.48 2.883-6.281 6.363-6.26 3.48 0 6.302 2.862 6.282 6.404a6.324 6.324 0 0 1-6.364 6.282zm20.986-.103v5.849h-6.26V1.277h12.933c1.647 0 3.254.247 4.778.885 2.368 1.01 3.81 2.801 4.345 5.314.391 1.75.37 3.583-.082 5.334-.66 2.574-2.266 4.284-4.758 5.19a10.28 10.28 0 0 1-3.418.659c-1.607.041-3.193.041-4.799.041h-2.533zm0-8.733v3.296c0 .185.041.226.227.226 1.894 0 3.789 0 5.684-.02.473 0 .926-.062 1.38-.165 1.132-.289 1.977-.948 2.327-2.1.247-.825.247-1.69 0-2.513s-.824-1.483-1.607-1.813a5 5 0 0 0-1.977-.412h-5.807c-.186 0-.206.062-.206.227-.021 1.091-.021 2.183-.021 3.274zm49.036-8.711h-6.261V24.57h6.261zM14.54 32.766h1.277a3.277 3.277 0 0 0-.371-1.174 3.156 3.156 0 0 0-.762-.885 3.213 3.213 0 0 0-1.05-.556 4.12 4.12 0 0 0-1.257-.186c-.72 0-1.359.165-1.936.515-.556.35-1.009.844-1.338 1.483-.33.638-.494 1.421-.494 2.307 0 .885.164 1.668.494 2.306.33.639.762 1.133 1.338 1.483.557.35 1.216.515 1.936.515.453 0 .886-.062 1.277-.206s.742-.33 1.05-.577c.289-.247.557-.535.742-.885.185-.35.33-.721.391-1.133H14.56a1.934 1.934 0 0 1-.288.7c-.144.206-.288.37-.494.515a2.472 2.472 0 0 1-.66.33 3.09 3.09 0 0 1-.761.103c-.494 0-.906-.124-1.298-.371-.39-.247-.68-.597-.906-1.071-.226-.474-.33-1.05-.33-1.73 0-.68.104-1.256.33-1.73.227-.474.536-.824.906-1.07.392-.248.824-.372 1.298-.372.268 0 .515.021.762.103.247.083.453.186.659.33.206.144.37.33.494.535.124.206.227.453.268.721zM1.05 38.347c.31.144.68.227 1.071.227.35 0 .639-.062.906-.165a2.27 2.27 0 0 0 .618-.391c.144-.165.268-.31.35-.474h.042v.865H5.23v-4.18c0-.454-.062-.824-.226-1.113a1.907 1.907 0 0 0-.618-.659 2.288 2.288 0 0 0-.804-.33 3.798 3.798 0 0 0-1.894.083 2.65 2.65 0 0 0-.906.515c-.268.226-.453.535-.598.927l1.154.267c.103-.206.267-.411.494-.597.226-.185.556-.268.968-.268s.7.103.906.289c.206.185.309.473.309.824v.02c0 .165-.062.268-.165.33s-.288.123-.515.144c-.134.012-.298.032-.486.054l-.42.049a6.117 6.117 0 0 0-.885.165c-.289.082-.556.185-.783.308s-.412.289-.556.536c-.144.247-.206.535-.206.885 0 .412.082.763.288 1.05.186.269.453.495.762.64zm2.204-.968c-.227.144-.536.206-.865.206-.35 0-.618-.103-.844-.247-.227-.144-.33-.37-.33-.68 0-.226.041-.411.165-.535.123-.144.288-.247.474-.309.185-.062.411-.123.638-.144.088 0 .19-.015.309-.032l.062-.01c.144-.02.288-.04.453-.061a5 5 0 0 1 .185-.042c.09-.019.172-.036.247-.06a.67.67 0 0 0 .247-.125v.804c0 .247-.061.473-.185.7s-.309.412-.556.535zm15.24 1.195c-.391 0-.762-.083-1.07-.227s-.578-.37-.763-.638a1.906 1.906 0 0 1-.288-1.05c0-.35.062-.639.206-.886s.33-.412.556-.536c.226-.123.494-.226.782-.308s.577-.124.886-.165l.42-.049c.188-.022.351-.042.486-.054.227-.02.412-.083.515-.144s.165-.165.165-.33v-.02c0-.35-.103-.639-.31-.824-.205-.186-.493-.289-.885-.289s-.741.083-.968.268a1.63 1.63 0 0 0-.494.597l-1.153-.267c.144-.392.33-.7.597-.927a2.65 2.65 0 0 1 .906-.515 3.798 3.798 0 0 1 1.895-.082c.288.062.556.165.803.33.247.164.453.37.597.658.144.289.247.66.247 1.112v4.181H20.43v-.865h-.041c-.083.165-.206.309-.35.474-.165.144-.371.288-.618.391a2.65 2.65 0 0 1-.927.165zm.268-.989c.33 0 .638-.062.865-.206.247-.123.432-.309.556-.535s.185-.453.185-.7v-.804a.67.67 0 0 1-.247.124c-.075.025-.157.042-.247.061-.059.013-.12.026-.185.042-.165.02-.31.041-.453.062l-.062.009c-.118.017-.221.032-.31.032-.246.02-.452.082-.658.144-.186.062-.35.165-.474.31-.123.123-.165.308-.165.535 0 .309.103.535.33.68.226.143.515.246.865.246zm7.496-3.727 1.112-.186c-.123-.494-.37-.885-.782-1.174-.391-.288-.927-.432-1.607-.432-.473 0-.885.062-1.256.226-.37.165-.659.371-.865.66a1.555 1.555 0 0 0-.309.967c0 .453.144.824.412 1.113.268.288.72.514 1.298.638l1.07.226c.289.083.515.186.66.31.164.123.226.288.226.494 0 .247-.123.453-.37.618-.248.164-.577.247-.969.247-.35 0-.659-.062-.885-.227-.227-.165-.37-.391-.453-.7l-1.195.185c.103.536.371.968.824 1.277.453.31 1.03.453 1.73.453.494 0 .947-.082 1.339-.247.391-.185.68-.412.906-.7.226-.288.33-.639.33-1.01 0-.452-.145-.802-.433-1.09-.288-.29-.721-.495-1.298-.619l-.988-.226c-.35-.083-.597-.186-.762-.31a.702.702 0 0 1-.227-.514c0-.247.124-.432.35-.597.227-.144.515-.227.865-.227.268 0 .453.041.639.124.185.082.309.185.412.309.103.144.185.267.226.412zm3.83 4.716c-.39 0-.761-.083-1.07-.227a1.926 1.926 0 0 1-.762-.638 1.906 1.906 0 0 1-.288-1.05c0-.35.061-.639.206-.886.144-.247.33-.412.556-.536.226-.123.494-.226.782-.308s.577-.124.886-.165l.42-.049c.188-.022.351-.042.486-.054a1.29 1.29 0 0 0 .515-.144c.103-.062.165-.165.165-.33v-.02c0-.35-.103-.639-.31-.824-.205-.186-.494-.289-.906-.289s-.74.083-.968.268a1.863 1.863 0 0 0-.494.597l-1.153-.267c.144-.392.33-.7.597-.927.268-.227.577-.412.906-.515s.7-.165 1.092-.165c.247 0 .515.02.803.083s.556.165.803.33c.247.164.453.37.597.658.145.289.227.66.227 1.112v4.181h-1.194v-.865h-.042c-.082.165-.206.309-.35.474a2.27 2.27 0 0 1-.618.391 2.264 2.264 0 0 1-.885.165zm.269-.989c.33 0 .638-.062.865-.206.247-.123.432-.309.556-.535.123-.227.185-.453.185-.7v-.804a.671.671 0 0 1-.247.124c-.075.025-.157.042-.247.061-.059.013-.12.026-.186.042-.164.02-.309.041-.453.062l-.061.009a2.288 2.288 0 0 1-.31.032c-.226.02-.452.082-.638.144-.185.062-.35.165-.474.31-.123.123-.185.308-.185.535 0 .309.103.535.33.68.226.164.514.246.865.246zm6.755.845 2.286-6.302H38.08l-1.586 4.84h-.062l-1.586-4.84h-1.318l2.266 6.302zm5.293.123c-.598 0-1.113-.144-1.545-.412a2.751 2.751 0 0 1-1.03-1.132c-.247-.495-.37-1.05-.37-1.71s.123-1.215.37-1.71c.247-.493.577-.864 1.03-1.132.432-.268.947-.412 1.545-.412.597 0 1.112.144 1.544.412.433.268.783.639 1.03 1.133s.37 1.05.37 1.71-.123 1.214-.37 1.709c-.247.494-.577.865-1.03 1.132a2.932 2.932 0 0 1-1.544.412zm0-1.03c.39 0 .7-.103.947-.308a1.88 1.88 0 0 0 .556-.804c.124-.33.185-.7.185-1.112s-.061-.762-.185-1.112a1.764 1.764 0 0 0-.556-.803c-.247-.206-.577-.309-.947-.309s-.7.103-.948.309c-.247.206-.432.474-.556.803s-.185.7-.185 1.112.062.783.185 1.112.309.598.556.804c.247.205.556.308.948.308zm7.29.618c.433.268.947.412 1.565.412a3.76 3.76 0 0 0 1.318-.226c.371-.186.68-.433.886-.762.206-.33.35-.68.391-1.092h-1.194a1.356 1.356 0 0 1-.268.577 1.191 1.191 0 0 1-.474.37 1.68 1.68 0 0 1-.638.124c-.35 0-.66-.082-.906-.268-.268-.185-.453-.453-.598-.782-.144-.35-.206-.742-.206-1.195s.062-.844.206-1.174c.145-.33.35-.576.598-.762.267-.185.556-.267.906-.267.391 0 .7.123.927.33.247.205.39.473.453.761h1.194a2.202 2.202 0 0 0-.412-1.112 2.479 2.479 0 0 0-.906-.741c-.37-.186-.803-.268-1.277-.268-.597 0-1.112.124-1.544.412-.433.288-.762.659-1.01 1.153-.247.494-.37 1.071-.37 1.689s.123 1.174.35 1.668c.226.494.577.886 1.01 1.153zm7.538.412c-.598 0-1.112-.144-1.545-.412a2.751 2.751 0 0 1-1.03-1.132c-.247-.495-.37-1.05-.37-1.71s.123-1.215.37-1.71c.247-.493.577-.864 1.03-1.132.433-.268.947-.412 1.545-.412.597 0 1.112.144 1.544.412.433.268.783.639 1.03 1.133s.37 1.05.37 1.71-.123 1.214-.37 1.709c-.247.494-.577.865-1.03 1.132a2.985 2.985 0 0 1-1.544.412zm0-1.03c.391 0 .7-.103.947-.308.247-.206.432-.474.556-.804s.186-.7.186-1.112-.062-.762-.186-1.112-.309-.597-.556-.803c-.247-.206-.577-.309-.947-.309s-.7.103-.948.309a1.88 1.88 0 0 0-.556.803c-.123.33-.185.7-.185 1.112s.062.783.185 1.112c.124.33.31.598.556.804.248.205.556.308.948.308zm3.707-5.395v6.302l1.235.02v-3.872c0-.267.062-.514.186-.74.123-.228.268-.392.473-.516.186-.123.412-.185.639-.185.33 0 .618.103.824.309.206.206.309.473.309.824v4.18h1.215v-4.016c0-.391.103-.7.33-.947.226-.247.535-.37.926-.37.309 0 .597.102.824.288.226.185.35.494.35.926v4.099h1.235v-4.222c0-.721-.164-1.277-.535-1.627s-.824-.536-1.4-.536c-.454 0-.845.103-1.174.31a1.8 1.8 0 0 0-.721.802h-.062a1.885 1.885 0 0 0-.638-.803c-.268-.185-.639-.288-1.05-.288s-.783.103-1.072.288a1.558 1.558 0 0 0-.638.803h-.082v-1.03zm9.618 8.65v-8.65h1.194v1.009h.103c.062-.124.165-.289.309-.453.123-.165.309-.33.556-.453.226-.124.556-.186.947-.186.515 0 .968.124 1.36.392.39.267.72.618.947 1.112.226.494.35 1.07.35 1.75s-.103 1.257-.33 1.75c-.226.495-.535.866-.926 1.113a2.504 2.504 0 0 1-1.36.391c-.39 0-.7-.061-.926-.185a2.164 2.164 0 0 1-.577-.453 2.217 2.217 0 0 1-.309-.453h-.082v3.315zm1.194-5.5c0 .433.062.824.185 1.154s.31.597.556.783c.248.185.536.288.886.288s.68-.103.927-.288.432-.454.556-.804c.123-.33.185-.72.185-1.132s-.062-.783-.185-1.112c-.124-.33-.31-.598-.556-.783-.247-.185-.556-.288-.927-.288s-.66.082-.906.267a1.638 1.638 0 0 0-.556.762c-.103.33-.165.721-.165 1.154zm6.096 3.07c.309.143.68.226 1.07.226.351 0 .66-.062.948-.165a2.27 2.27 0 0 0 .618-.391c.144-.165.268-.31.35-.474h.041v.865h1.195v-4.18c0-.454-.062-.824-.227-1.113a1.906 1.906 0 0 0-.617-.659c-.248-.165-.515-.268-.804-.33a3.79 3.79 0 0 0-1.894.083 2.65 2.65 0 0 0-.907.515c-.267.226-.453.535-.597.927l1.154.267c.102-.206.267-.411.494-.597.226-.185.576-.268.968-.268s.68.083.885.289c.206.185.31.473.31.824v.02c0 .165-.063.268-.166.33a1.29 1.29 0 0 1-.514.144c-.16.013-.345.035-.556.06l-.371.043c-.31.041-.597.103-.886.165a3.876 3.876 0 0 0-.782.308 1.385 1.385 0 0 0-.556.536c-.145.247-.206.535-.206.885 0 .412.103.783.288 1.05.185.269.453.495.762.64zm2.204-.969c-.247.144-.536.206-.865.206a1.59 1.59 0 0 1-.865-.247c-.227-.144-.33-.37-.33-.68 0-.226.062-.411.186-.535a.954.954 0 0 1 .473-.309c.186-.062.412-.123.639-.144.088 0 .19-.015.309-.032l.061-.01c.145-.02.289-.04.453-.061.065-.016.127-.03.186-.042.09-.019.172-.036.247-.06a.671.671 0 0 0 .247-.125v.804c0 .247-.062.473-.185.7a1.272 1.272 0 0 1-.556.535zm4.263-2.698v3.728h-1.236v-6.281h1.174v1.03h.082c.144-.33.371-.598.68-.804.309-.206.7-.309 1.174-.309.432 0 .803.083 1.133.268.329.185.576.453.74.803.186.35.269.783.269 1.298v3.995h-1.236v-3.851c0-.453-.124-.803-.35-1.071-.227-.247-.556-.391-.989-.391-.288 0-.535.061-.762.185a1.291 1.291 0 0 0-.515.535c-.123.227-.164.536-.164.865zm5.128 6.055c.144.02.309.041.494.041.35.021.639 0 .886-.123.247-.124.473-.268.659-.515.185-.247.33-.515.453-.844l2.595-7.126h-1.318l-1.586 4.88h-.062l-1.586-4.88H88.66l2.307 6.364-.144.412c-.103.267-.206.473-.35.597-.145.103-.289.185-.474.185-.186 0-.37-.02-.597-.082l-.289 1.009c.062.02.186.062.33.082z"})})}),exports.NumberInput=t=>{var{focused:r,isFloat:o=!1,onBlur:a,onChange:i,onFocus:s,value:l}=t,d=As(t,["focused","isFloat","onBlur","onChange","onFocus","value"]);const[c,u]=n.useState(Boolean(r)),[f,p]=n.useState(l?l.toString():"");return n.useEffect((()=>{if(null===l)return p("");const e=null==l?void 0:l.toString();e&&e!==f&&p(e)}),[l]),e.jsx(de,Object.assign({},d,{onFocus:()=>{u(!0),s&&s()},onBlur:()=>{u(!1),p(((e,t)=>{const n=rp(e),r=t?parseFloat(n):parseInt(n,10);return isNaN(r)?"":r.toString()})(f,o)),a&&a()},onChange:e=>{const t=rp(e,!0),n=t.endsWith(".");if(o&&ap.test(t)||!o&&ip.test(t)){if(p(t),n)return;if(""===t)return i(null);const e=o?parseFloat(t):parseInt(t,10);isNaN(e)||l===e||i(e)}},value:c?f:op(f,o)}))},exports.OfferSignatoryForm=({offerSignatoryInfo:t,errors:o,customErrorMessages:a={},updateOfferSignatory:i})=>{const{dateOfBirth:s,placeOfBirth:l,street:d,streetNumber:c,city:u,postCode:f,maritalStatus:p}=t,[h,g]=n.useState(r.listToString([c,d,f,u])),m=!!o.street||!!o.city||!!o.postCode,b=Object.assign(Object.assign({},hh),a);return e.jsxs("div",{children:[e.jsxs(j,{children:[e.jsx(Lf,{dataTest:"offer-signatory-address",disabled:!1,label:fh,value:h,onChange:e=>{g(e),e||i(Object.assign(Object.assign({},t),{city:"",postCode:"",street:"",streetNumber:""}))},onSelect:e=>{const{city:n,postalCode:o,street:a,streetNumber:s}=r.getFormattedAddressComponent(e);i(Object.assign(Object.assign({},t),{city:(null==n?void 0:n.long_name)||"",postCode:(null==o?void 0:o.long_name)||"",street:(null==a?void 0:a.long_name)||"",streetNumber:(null==s?void 0:s.long_name)||""}))},error:m,country:""}),m&&e.jsx(ln,{dataTest:"address",children:b.address})]}),e.jsx(j,{children:e.jsxs(G,{children:[e.jsxs("div",{children:[e.jsx(wf,{dataTest:"offer-signatory-birth-date",label:ch,disabled:!1,error:!!o.dateOfBirth,onChange:e=>e&&i(Object.assign(Object.assign({},t),{dateOfBirth:new Date(e)})),value:s?s.toISOString():""}),o.dateOfBirth&&e.jsx(ln,{dataTest:"dateOfBirth",children:b.dateOfBirth})]}),e.jsxs("div",{children:[e.jsx(de,{dataTest:"offer-signatory-birth-place",label:uh,error:!!o.placeOfBirth,disabled:!1,onChange:e=>i(Object.assign(Object.assign({},t),{placeOfBirth:e})),value:l}),o.placeOfBirth&&e.jsx(ln,{dataTest:"placeOfBirth",children:b.placeOfBirth})]})]})}),e.jsx(j,{children:e.jsxs(G,{children:[e.jsxs("div",{children:[e.jsx(Gd,{dataTest:"offer-signatory-marital-status",disabled:!1,error:!!o.maritalStatus,label:ph,onSelect:({value:e})=>i(Object.assign(Object.assign({},t),{maritalStatus:e})),option:gh.find((({value:e})=>e===p))||null,options:gh}),o.maritalStatus&&e.jsx(ln,{dataTest:"maritalStatus",children:b.maritalStatus})]}),e.jsx("div",{})]})})]})},exports.OfferSignatoryFormSchema=mh,exports.Option=Id,exports.Phone=Ns,exports.PhoneAndFlag=({phone:t,color:r=w.dark.base,errorMessage:o})=>{const a=t?Xs(t):null;return e.jsx(bh,{children:a&&"FR"===(null==a?void 0:a.country)?e.jsx(yh,{"data-test":"french-phone",color:r,children:Ys(a.number)}):a?e.jsxs(n.Fragment,{children:[e.jsx(vh,{"data-test":"flag",alt:a.country,src:`https://cdn.proprioo.fr/assets/flags/${a.country}.svg`}),e.jsx(yh,{"data-test":"phone",color:r,children:Ys(a.number)})]}):e.jsx($h,{"data-test":"incorrect-phone",children:o})})},exports.PhoneInput=({label:t,value:n,onChange:r,dataTest:o,disabled:a=!1,error:i=!1,phoneWithFlags:s=!1,required:l=!1})=>e.jsx(de,{dataTest:o||"customer-phone",name:"phone",type:exports.InputType.TEL,disabled:a,error:i,label:t,value:n,onChange:r,inputElement:Ns,phoneWithFlags:s,required:l}),exports.PlacesAutocomplete=Al,exports.Radio=({name:t,label:n,id:r,isChecked:o,onChange:a,value:i,dataTest:s})=>{const l=`${r}-${t}`;return e.jsxs(sp,{"data-test":s||`radio-${t}`,children:[e.jsx(dp,{type:"radio",id:l,name:t,value:i,onChange:e=>a(e),checked:o}),e.jsx(lp,{htmlFor:l,children:n})]})},exports.Row=G,exports.Select=Gd,exports.SingleMonth=t=>e.jsx(Rt,{children:e.jsx(Lt,Object.assign({},t))}),exports.Subtitle=({text:t,color:n=w.dark.base})=>e.jsx(_p,{"data-test":"subtitle",children:e.jsx(zp,{color:n,"data-test":"subtitle-label",children:t})}),exports.Tag=({appearance:t=exports.TagAppearance.BUSINESS,closeAriaLabel:r="Supprimer",color:o=exports.TagColorsTypes.TERRACOTA,dataTest:a="basic-tag",icon:i,labels:s,numberOfTags:l=s.length,onClose:d})=>{const c=s.slice(0,l),u=s.slice(l);return e.jsxs(n.Fragment,{children:[c.map(((n,s)=>e.jsxs(Kp,{appearance:t,color:o,close:!!d,"data-test":a,icon:!!i,children:[i&&e.jsx(eh,{color:o,"data-test":"tag-icon",children:i}),n,d&&e.jsx(Xp,{"aria-label":r,appearance:t,"data-test":"tag-closer",onClick:d,children:e.jsx(Wp,{})})]},s))),Boolean(u.length)&&e.jsxs(Qp,{"data-test":"list-tag",children:[e.jsxs(Kp,{appearance:t,color:o,"data-test":a,icon:!!i,children:[i&&e.jsx(eh,{color:o,"data-test":"tag-icon",children:i}),`+ ${u.length}`]}),e.jsx(Jp,{appearance:t,color:o,children:u.map(((t,n)=>e.jsx(Zp,{"data-test":"tag-element",children:t},n)))})]})]})},exports.TagBase=Vp,exports.TextToggle=({text:t,dataTest:r="text-toggle",isComment:o=!1,maxLength:a=300,showLessLabel:i="Lire moins",showMoreLabel:s="Lire plus",title:l})=>{const d=(e=>e.split(dh).filter(Boolean).join(" "))(t),c=d.length>a,[u,f]=n.useState(c),p=((e,t)=>{if(e.length<=t||t<0)return e;if(" "===e.charAt(t))return e.slice(0,t).concat("…");const n=e.slice(0,t),[r]=e.slice(t,e.length).split(" ");return n.concat(r).concat("…")})(d,a);return e.jsxs(ah,{"data-test":r,children:[l&&e.jsx(sh,{"data-test":"text-toggle-title",children:`${l} : `}),e.jsx(lh,{isComment:o,children:u?p:d}),c&&e.jsx(ih,{isComment:o,hasTitle:Boolean(l),onClick:()=>f(!u),children:u?s:i})]})},exports.Textarea=rh,exports.Toggle=({label:t,id:n,checked:r=!1,disabled:o=!1,name:a,dataTest:i,onChange:s})=>e.jsxs(Bp,{children:[e.jsx(Mp,{checked:r,onChange:e=>{s(e.target.checked)},icons:!1,name:a,id:n,disabled:o,"data-test":i||`toggle-${a}`}),e.jsx(Rp,{htmlFor:n,disabled:o,"data-test":"toggle-label",children:t})]}),exports.Tooltip=ef,exports.UserForm=({user:t,errors:n,updateUser:r,disabledFields:o={},emailSuggestionI18nLabels:a,errorMessages:i={},isEmailSuggestionEnabled:s=!0,labels:l=Ws,phoneWithFlags:d=!1})=>{const{firstName:c,lastName:u,email:f,phone:p}=t,h=Object.assign(Object.assign({},Hs),i);return e.jsxs("div",{children:[e.jsx(j,{children:e.jsxs(G,{children:[e.jsxs("div",{children:[e.jsx(de,{dataTest:"customer-firstName",name:"first-name",type:exports.InputType.TEXT,disabled:o.firstName,error:!!n.firstName,label:l.firstName,value:c,onChange:e=>r(Object.assign(Object.assign({},t),{firstName:e}),"user.firstName")}),n.firstName&&e.jsx(ln,{dataTest:"invalid-firstName",children:h.firstName})]}),e.jsxs("div",{children:[e.jsx(de,{dataTest:"customer-lastName",name:"last-name",type:exports.InputType.TEXT,disabled:o.lastName,error:!!n.lastName,label:l.lastName,value:u,onChange:e=>r(Object.assign(Object.assign({},t),{lastName:e}),"user.lastName")}),n.lastName&&e.jsx(ln,{dataTest:"invalid-lastName",children:h.lastName})]})]})}),e.jsx(j,{children:e.jsxs(G,{children:[e.jsxs("div",{children:[e.jsx(Us,{dataTest:"customer-email",name:"email",disabled:o.email,error:!!n.email,label:l.email,isSuggestionEnabled:s,i18nLabels:a,value:f,onChange:e=>r(Object.assign(Object.assign({},t),{email:Vs(e)}),"user.email")}),n.email&&e.jsx(ln,{dataTest:"invalid-email",children:h.email})]}),e.jsxs("div",{children:[e.jsx(de,{dataTest:"customer-phone",name:"phone",type:exports.InputType.TEL,disabled:o.phone,error:!!n.phone,label:l.phone,value:p,onChange:e=>r(Object.assign(Object.assign({},t),{phone:e||null}),"user.phone"),inputElement:Ns,phoneWithFlags:d}),n.phone&&e.jsx(ln,{dataTest:"invalid-phone",children:h.phone})]})]})})]})},exports.UserSchema=Js,exports.breakpoints=v,exports.colors=w,exports.convertPxToRem=C,exports.createAction=H,exports.fonts=S,exports.formatInternationalPhone=Ys,exports.formatPhoneNumber=e=>Es(e,Ss),exports.getCarbonFootprintLevel=Vt,exports.getConsumptionLevel=Ht,exports.getEPCLevel=qt,exports.getEPCLevels=(e,t,n)=>{const r=Ht(t,n),o=Vt(e,n);return{consumptionLevel:r,carbonFootprintLevel:o,EPCLevel:qt(r,o,n)}},exports.getGeoSearchSuggestions=Z,exports.isTouchDevice=Y,exports.isValidDate=xf,exports.isValidPhoneNumber=Ks,exports.paragraphs=_,exports.parsePhoneNumber=Xs,exports.radius=z,exports.resetCssButton=K,exports.scrollbar=W,exports.shadows=U,exports.titles=Vl,exports.useDebounce=Ls,exports.useEmailSuggestion=Bs,exports.useMobileDevice=()=>V(`(max-width: ${v.base-1}px)`),exports.useModal=({onAbort:t,onOpen:r,onClose:o}={})=>{const[{isAborting:a,fade:i,isLoading:s,isOpen:l},d]=n.useReducer(Gf,{isAborting:!1,fade:Bf.IN,isOpen:!1,isLoading:!1}),c=(()=>{const e=n.useRef(!0);return n.useEffect((()=>{e.current=!1}),[]),e.current})(),u=n.useCallback((()=>{l&&d(zf.toggleLoad())}),[l]),f=n.useCallback((()=>{r&&r(),d(zf.open())}),[r]),p=n.useCallback((()=>{!s&&l&&d(zf.close())}),[s,l]),h=n.useCallback((()=>{!s&&l&&d(zf.abort())}),[s,l]),g=n.useCallback((()=>d(zf.animationEnd())),[]),m=n.useCallback((()=>{a&&t&&t(),o&&o(),d(zf.reset())}),[a,t,o]);n.useEffect((()=>{l||c||m()}),[l]);return{closeModal:p,createModal:({children:t,icon:r,isAlternative:o=!1,isClosable:a=!0,isFullScreen:d,noPadding:c,text:u,title:f})=>l?e.jsx(tp,{abortModal:h,fade:i,icon:r,isAlternative:o,isClosable:a,isFullScreen:d,isLoading:s,noPadding:c,onAnimationEnd:g,text:u,title:f,children:t}):e.jsx(n.Fragment,{}),openModal:f,toggleLoader:u}},exports.useOnClickOutside=m,exports.useSmallSmartphoneDevice=()=>V(`(max-width: ${v.smallest-1}px)`),exports.useSmartphoneDevice=q;
2664
2665
  //# sourceMappingURL=index.js.map