1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ffb83f44-eca2-481f-80af-08f11ecbad48",e._sentryDebugIdIdentifier="sentry-dbid-ffb83f44-eca2-481f-80af-08f11ecbad48")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3923],{5545:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var a=n(59860),i=n(14232),r=n(24309),s=n(39282),o=n(94692),l=n(69176),c=n(18803),d=n(52369),p=n(83224),u=n(67362),m=n(41481),h=n.n(m),b=n(37876);let g=["visible","onHide","t"],f=(0,r.withTranslation)(["common","authentication"])(e=>{let{visible:t,onHide:n,t:r}=e,m=(0,a.A)(e,g),{0:f,1:y}=(0,i.useState)(!1),{addToast:v}=(0,u.Yf)();return(0,b.jsx)(s.A,{visible:t,title:r("authentication:password-forgotten.forgot-password"),titleCustomClass:m.titleCustomClass,onHide:n,children:(0,b.jsx)(l.A,{initialValues:{email:""},onSubmit:e=>{y(!0),p.A.generatePasswordForgottenRequest(e).then(e=>{v(r("authentication:password-forgotten.link-successfully-sent-message"),{appearance:"success",autoDismiss:!0}),n&&n()}).finally(()=>y(!1))},schema:o.userSchema.password_forgotten_link_generation,render:e=>{let{handleSubmit:t,handleChange:a,handleBlur:i,values:s,errors:o}=e;return(0,b.jsxs)("form",{onSubmit:t,noValidate:!0,children:[(0,b.jsx)(c.A,{inputId:"email",inputLabel:r("authentication:password-forgotten.email"),inputName:"email",inputType:"email",inputPlaceholder:r("authentication:password-forgotten.email"),errors:o,value:s.email,onChange:a,onBlur:i}),(0,b.jsxs)("div",{className:h().btn_container,children:[(0,b.jsx)(d.A,{type:"submit",loading:f,className:h().btn__primary,children:r("authentication:password-forgotten.validate")}),(0,b.jsx)(d.A,{type:"button",className:h().btn__light,onClick:n,children:r("authentication:password-forgotten.cancel")})]})]})}})})})},6338:e=>{e.exports={btn:"Withdrawal_btn__xT6W5",btn__disabled:"Withdrawal_btn__disabled__xC3E_",btn__secondary_back:"Withdrawal_btn__secondary_back__tb4ik",btn__light:"Withdrawal_btn__light__w6yhi",btn__secondary:"Withdrawal_btn__secondary__zmKnU",btn__secondary_black:"Withdrawal_btn__secondary_black__INYHQ",btn__primary:"Withdrawal_btn__primary__69gGc",withdrawal_bloc:"Withdrawal_withdrawal_bloc__I7w7P",btn__primary__sim:"Withdrawal_btn__primary__sim__wK6Fn",btn__light__sim:"Withdrawal_btn__light__sim__4T2iW",btn__link:"Withdrawal_btn__link__jxItp",btn__link__primary:"Withdrawal_btn__link__primary__IG4Hy",btn__sticky:"Withdrawal_btn__sticky__Xy3F6",btn__underline:"Withdrawal_btn__underline__MExt2",btn__container:"Withdrawal_btn__container__0738U",withdrawal:"Withdrawal_withdrawal__GBk_B",giftCard:"Withdrawal_giftCard__bjcAv",amount_header:"Withdrawal_amount_header__yw2ZZ",iban_header:"Withdrawal_iban_header__lBrTM",modify:"Withdrawal_modify__6enA_",cashout_info:"Withdrawal_cashout_info__xlHq1",content:"Withdrawal_content__TLqQG",cashout_form:"Withdrawal_cashout_form__CZG_H",promocode:"Withdrawal_promocode__KIlR4",promocode_content:"Withdrawal_promocode_content__wNA3i",picto:"Withdrawal_picto__usJ7T",conditions:"Withdrawal_conditions__WqzGZ",comm:"Withdrawal_comm__LbxXg",comm_included:"Withdrawal_comm_included__04CxQ",error:"Withdrawal_error__YgSZg",ribless:"Withdrawal_ribless__OkExk",rib:"Withdrawal_rib__REhow",radio:"Withdrawal_radio__78bF2",active:"Withdrawal_active__IZ7LY",hidden:"Withdrawal_hidden__B2Cgd",title:"Withdrawal_title__sQ5z7",disable:"Withdrawal_disable__EJipq",amount_body:"Withdrawal_amount_body__sjBxu"}},12699:(e,t,n)=>{"use strict";n.d(t,{A:()=>b}),n(14232);var a=n(52369),i=n(87415),r=n(24309),s=n(48230),o=n.n(s),l=n(10685),c=n(89947),d=n.n(c),p=n(60686),u=n(63261),m=n(81303),h=n(37876);let b=(0,r.withTranslation)(["list"])(e=>{let{t,hasActivatedList:n,isMine:r,hasOutstandingPayments:s,outstandingPaymentBalance:c,onVDMEstimateButtonClick:b,kycStep:g,isIdCardRefused:f,userData:y,list:v}=e;return(0,h.jsxs)(h.Fragment,{children:[!n&&v.status==i.Cj.RUNNING&&(0,h.jsxs)("div",{className:`${d().container} ${d().inactive_list_margin}`,children:[(0,h.jsx)("img",{src:"/static/images/pictos/icon-information.svg"}),(0,h.jsxs)("div",{className:d().text,children:[(0,h.jsx)("h1",{children:t(r?((e,t)=>{if(t)return"list:notification.title-refused";switch(e){case 3.5:case 4:return"list:notification.title-waiting";default:return"list:notification.title-inactive"}})(g,f):"list:notification.title-inactive-participant")}),r?(0,h.jsx)("p",{children:(0,u.Ay)(t(((e,t)=>{if(t)return"list:notification.refused";switch(e){case 3.5:case 4:return"list:notification.waiting";default:return"list:notification.need-activation"}})(g,f)))}):(0,h.jsx)("p",{children:t("list:notification.cannot-participate-yet")})]}),r&&g!=m.Zh.WAITING_VALIDATION&&g!=m.Zh.TO_REVIEW_MANUALLY&&!f&&(0,h.jsx)(o(),{href:l.A.getFullRoute(l.A.ROUTES.ACCOUNT.ACTIVATE_LIST),children:(0,h.jsx)(a.A,{customClass:d().button,children:t("list:notification.button")})})]}),r&&n&&s&&(0,h.jsxs)("div",{className:`${d().container} ${d().active_list_margin}`,children:[(0,h.jsx)("img",{src:"/static/images/pictos/icon-information.svg"}),(0,h.jsxs)("div",{className:d().text,children:[(0,h.jsx)("h1",{children:t("list:notification.title-outstanding-payment")}),(0,h.jsx)("p",{children:t("list:notification.outstanding-payment",{balance:p.A.centsToEuro(c)})})]})]})]})})},18390:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var a=n(59860),i=n(14232),r=n(24309),s=n(14059),o=n(60686),l=n(19895),c=n(33142),d=n.n(c),p=n(37876);let u=["field","form","id","label","placeholder","maxLength","disabled"],m=e=>{let{field:{name:t,value:n,onChange:r,onBlur:l},form:{errors:c,touched:m,setFieldValue:h,setFieldTouched:b},id:g,label:f,placeholder:y,maxLength:v,disabled:x}=e,C=(0,a.A)(e,u),j=(0,i.useMemo)(()=>
1{if(""===n||null==n)return"";let e=Number(n);return Number.isFinite(e)?(e/100).toString():""},[n]),{0:N,1:w}=(0,i.useState)(j);(0,i.useEffect)(()=>{w(j)},[j]);let O=(0,i.useCallback)(e=>{let n=e.target.value.replace(/[^0-9.,]/g,"").replace(/,/g,".");(w(n),""===n)?h(t,"",!1):Number.isFinite(Number(n))&&h(t,o.A.eurosToCents(n),!1)},[t,h]),A=(0,i.useCallback)(e=>{b(t,!0,!0),l(e)},[t,b,l]);return(0,p.jsxs)("div",{className:d().input__wrapper,children:[(0,p.jsx)("label",{htmlFor:`duplicate_${g}`,className:d().label,children:f}),(0,p.jsx)("input",{type:"text",name:`duplicate_${t}`,id:`duplicate_${g}`,placeholder:y,className:`${d().input} ${x?d().disabled:""}`,value:N,onChange:O,onBlur:A,maxLength:v,disabled:x,inputMode:"decimal"}),(0,p.jsx)("input",{type:"hidden",name:t,id:g,placeholder:y,value:n??"",onChange:r,onBlur:l}),!C.hideErrors&&(0,p.jsx)(s.A,{name:t})]})},h=(0,r.withTranslation)(["common"])(e=>(0,p.jsx)(l.D0,{component:m,name:e.inputName,label:e.inputLabel,placeholder:e.inputPlaceholder,value:e.value,maxLength:e.maxLength,disabled:e.disabled,id:e.inputId,children:e.children}))},18868:function(e,t,n){e.exports=function(e){var t=[function(e,t,n){e.exports=n(2)()},function(t,n){t.exports=e},function(e,t,n){"use strict";var a=n(3);function i(){}function r(){}r.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,r,s){if(s!==a){var o=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:i}
1;return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";n.r(t);var a=n(1),i=n.n(a),r=n(0),s=n.n(r),o=function(e){return 0!==e};function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function p(e,t){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function u(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");s.prototype=Object.create(e&&e.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),e&&p(s,e);var t,n,a,r=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=m(s);return e=t?Reflect.construct(n,arguments,m(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return u(e)}(this,e)});function s(e){var t;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,s),h(u(t=r.call(this,e)),"continueOpenCollapsible",function(){var e=u(t).innerRef;t.setState({height:e.scrollHeight,transition:"height ".concat(t.props.transitionTime,"ms ").concat(t.props.easing),isClosed:!1,hasBeenOpened:!0,inTransition:o(e.scrollHeight),shouldOpenOnNextCycle:!1})}),h(u(t),"handleTriggerClick",function(e){t.props.triggerDisabled||t.state.inTransition||(e.preventDefault(),t.props.handleTriggerClick?t.props.handleTriggerClick(t.props.accordionPosition):!0===t.state.isClosed?(t.openCollapsible(),t.props.onOpening(),t.props.onTriggerOpening()):(t.closeCollapsible(),t.props.onClosing(),t.props.onTriggerClosing()))}),h(u(t),"handleTransitionEnd",function(e){e.target===t.innerRef&&(t.state.isClosed?(t.setState({inTransition:!1}),t.props.onClose()):(t.setState({height:"auto",overflow:t.props.overflowWhenOpen,inTransition:!1}),t.props.onOpen()))}),h(u(t),"setInnerRef",function(e){return t.innerRef=e}),t.timeout=void 0,t.contentId=e.contentElementId||"collapsible-content-".concat(Date.now()),t.triggerId=e.triggerElementProps.id||"collapsible-trigger-".concat(Date.now()),e.open?t.state={isClosed:!1,shouldSwitchAutoOnNextCycle:!1,height:"auto",transition:"none",hasBeenOpened:!0,overflow:e.overflowWhenOpen,inTransition:!1}:t.state={isClosed:!0,shouldSwitchAutoOnNextCycle:!1,height:0,transition:"height ".concat(e.transitionTime,"ms ").concat(e.easing),hasBeenOpened:!1,overflow:"hidden",inTransition:!1},t}return n=[{key:"componentDidUpdate",value:function(e,t){var n=this;this.state.shouldOpenOnNextCycle&&this.continueOpenCollapsible(),"auto"!==t.height&&0!==t.height||!0!==this.state.shouldSwitchAutoOnNextCycle||(window.clearTimeout(this.timeout),this.timeout=window.setTimeout(function(){n.setState({height:0,overflow:"hidden",isClosed:!0,shouldSwitchAutoOnNextCycle:!1})},50)),e.open!==this.props.open&&(!0===this.props.open?(this.openCollapsible(),this.props.onOpening()):(this.closeCollapsible(),this.props.onClosing()))}},{key:"componentWillUnmount",value:function(){window.clearTimeout(this.timeout)}},{key:"closeCollapsible",value:function(){var e=this.innerRef;this.setState({shouldSwitchAutoOnNextCycle:!0,height:e.scrollHeight,transition:"height ".concat(this.props.transitionCloseTime?this.props.transitionCloseTime:this.props.transitionTime,"ms ").concat(this.props.easing),inTransition:o(e.scrollHeight)})}},{key:"openCollapsible",value:function(){this.setState({inTransition:o(this.innerRef.scrollHeight),shouldOpenOnNextCycle:!0})}},{key:"renderNonClickableTriggerElement",value:function(){var e=this.props,t=e.triggerSibling,n=e.classParentString;if(!t)return null;switch(c(t)){case"string":return i.a.createElement("span",{className:"".concat(n,"__trigger-sibling")},t);case"function":return t();case"object":return t;default:return null}}},{key:"render",value:function(){var e=this,t={height:this.state.height,WebkitTransition:this.state.transition,msTransition:this.state.transition,transition:this.state.transition,overflow:this.state.overflow},n=this.state.isClosed?"is-closed":"is-open",a=this.props.triggerDisabled?"is-disabled":"",r=!1===this.state.isClosed&&void 0!==this.props.triggerWhenOpen?this.props.triggerWhenOpen:this.props.trigger,s=this.props.contentContainerTagName,o=this.props.triggerTagName,c=this.props.lazyRender&&!this.state.hasBeenOpened&&this.state.isClosed&&!this.state.inTransition?null:this.props.children,d=this.props,p=d.classParentString,u=d.contentOuterClassName,m=d.contentInnerClassName,h="".concat(p,"__trigger ").concat(n," ").concat(a," ").concat(this.state.isClosed?this.props.triggerClassName:this.props.triggerOpenedClassName),b="".concat(p," ").concat(this.state.isClosed?this.props.className:this.props.openedClassName),g="".concat(p,"__contentOuter ").concat(u),f="".concat(p,"__contentInner ").concat(m);return i.a.createElement(s,l({className:b.trim()},this.props.containerElementProps),i.a.createElement(o,l({id:this.triggerId,className:h.trim(),onClick:this.handleTriggerClick,style:this.props.triggerStyle&&this.props.triggerStyle,onKeyPress:function(t){var n=t.key;(" "===n&&"button"!==e.props.triggerTagName.toLowerCase()||"Enter"===n)&&e.handleTriggerClick(t)},tabIndex:this.props.tabIndex&&this.props.tabIndex,"aria-expanded":!this.state.isClosed,"aria-disabled":this.props.triggerDisabled,"aria-controls":this.contentId,role:"button"},this.props.triggerElementProps),r),this.renderNonClickableTriggerElement(),i.a.createElement("div",{id:this.contentId,className:g.trim(),style:t,onTransitionEnd:this.handleTransitionEnd,ref:this.setInnerRef,hidden:this.props.contentHiddenWhenClosed&&this.state.isClosed&&!this.state.inTransition,role:"region","aria-labelledby":this.triggerId},i.a.createElement("div",{className:f.trim()},c)))}}],d(s.prototype,n),a&&d(s,a),Object.defineProperty(s,"prototype",{writable:!1}),s}(a.Component);b.propTypes={transitionTime:s.a.number,transitionCloseTime:s.a.number,triggerTagName:s.a.string,easing:s.a.string,open:s.a.bool,containerElementProps:s.a.object,triggerElementProps:s.a.object,contentElementId:s.a.string,classParentString:s.a.string,className:s.a.string,openedClassName:s.a.string,triggerStyle:s.a.object,triggerClassName:s.a.string,triggerOpenedClassName:s.a.string,contentOuterClassName:s.a.string,contentInnerClassName:s.a.string,accordionPosition:s.a.oneOfType([s.a.string,
1s.a.number]),handleTriggerClick:s.a.func,onOpen:s.a.func,onClose:s.a.func,onOpening:s.a.func,onClosing:s.a.func,onTriggerOpening:s.a.func,onTriggerClosing:s.a.func,trigger:s.a.oneOfType([s.a.string,s.a.element]),triggerWhenOpen:s.a.oneOfType([s.a.string,s.a.element]),triggerDisabled:s.a.bool,lazyRender:s.a.bool,overflowWhenOpen:s.a.oneOf(["hidden","visible","auto","scroll","inherit","initial","unset"]),contentHiddenWhenClosed:s.a.bool,triggerSibling:s.a.oneOfType([s.a.string,s.a.element,s.a.func]),tabIndex:s.a.number,contentContainerTagName:s.a.string,children:s.a.oneOfType([s.a.string,s.a.element])},b.defaultProps={transitionTime:400,transitionCloseTime:null,triggerTagName:"span",easing:"linear",open:!1,classParentString:"Collapsible",triggerDisabled:!1,lazyRender:!1,overflowWhenOpen:"hidden",contentHiddenWhenClosed:!1,openedClassName:"",triggerStyle:null,triggerClassName:"",triggerOpenedClassName:"",contentOuterClassName:"",contentInnerClassName:"",className:"",triggerSibling:null,onOpen:function(){},onClose:function(){},onOpening:function(){},onClosing:function(){},onTriggerOpening:function(){},onTriggerClosing:function(){},tabIndex:null,contentContainerTagName:"div",triggerElementProps:{}},t.default=b}],n={};function a(e){if(n[e])return n[e].exports;var i=n[e]={i:e,l:!1,exports:{}};return t[e].call(i.exports,i,i.exports,a),i.l=!0,i.exports}return a.m=t,a.c=n,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(n,i,(function(t){return e[t]}).bind(null,i));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=4)}(n(14232))},23509:e=>{e.exports={btn:"VDMEstimateModal_btn__pXvtZ",btn__disabled:"VDMEstimateModal_btn__disabled__HCbLU",btn__secondary_back:"VDMEstimateModal_btn__secondary_back__6JCyj",btn__light:"VDMEstimateModal_btn__light__0jM_k",btn__container:"VDMEstimateModal_btn__container__ldTmZ",light:"VDMEstimateModal_light__avbmb",btn__secondary:"VDMEstimateModal_btn__secondary__xkzur",btn__secondary_black:"VDMEstimateModal_btn__secondary_black__UyQHK",btn__primary:"VDMEstimateModal_btn__primary__i4n1s",primary:"VDMEstimateModal_primary__2CjYl",btn__primary__sim:"VDMEstimateModal_btn__primary__sim___mIsm",btn__light__sim:"VDMEstimateModal_btn__light__sim__miQS8",btn__link:"VDMEstimateModal_btn__link__jTb_z",btn__link__primary:"VDMEstimateModal_btn__link__primary__StaAT",btn__sticky:"VDMEstimateModal_btn__sticky__X2Ftt",btn__underline:"VDMEstimateModal_btn__underline__xKM1K",modal:"VDMEstimateModal_modal__6DpqD",content:"VDMEstimateModal_content__ukOIh",form_section:"VDMEstimateModal_form_section__qwlnw",vdm_form_desc:"VDMEstimateModal_vdm_form_desc__ZtAFO",modal_desc:"VDMEstimateModal_modal_desc__1d_ix"}},25916:e=>{e.exports={title:"ListTitle_title__Fdqub"}},26454:e=>{e.exports={btn:"CreditCardAdvantages_btn__6SWTZ",btn__disabled:"CreditCardAdvantages_btn__disabled__nqr8M",btn__secondary_back:"CreditCardAdvantages_btn__secondary_back__UU2V0",btn__light:"CreditCardAdvantages_btn__light__r9s__",btn__secondary:"CreditCardAdvantages_btn__secondary__zH23u",btn__secondary_black:"CreditCardAdvantages_btn__secondary_black__wZ5ob",btn__primary:"CreditCardAdvantages_btn__primary__Zwn_W",credit_card:"CreditCardAdvantages_credit_card__MTCrO",btn__primary__sim:"CreditCardAdvantages_btn__primary__sim___Wu1R",btn__light__sim:"CreditCardAdvantages_btn__light__sim__HhLyD",btn__link:"CreditCardAdvantages_btn__link__o_JGY",btn__link__primary:"CreditCardAdvantages_btn__link__primary__9mRDT",btn__sticky:"CreditCardAdvantages_btn__sticky__Whlgs",btn__underline:"CreditCardAdvantages_btn__underline__dmn8W",btn__container:"CreditCardAdvantages_btn__container__VCee8",split:"CreditCardAdvantages_split__m8Tht"}},33142:e=>{e.exports={label:"AmountInput_label__b7xqM",input:"AmountInput_input__0kVcQ",input__wrapper:"AmountInput_input__wrapper__WDOjH",input__errors:"AmountInput_input__errors__vp6PJ",disabled:"AmountInput_disabled__t8mNH"}},35968:e=>{e.exports={btn:"VopResult_btn__P0B6x",btn__disabled:"VopResult_btn__disabled__Bm3td",btn__secondary_back:"VopResult_btn__secondary_back__F2ecj",btn__light:"VopResult_btn__light__ngjNr",btn__secondary:"VopResult_btn__secondary__02g7B",btn__secondary_black:"VopResult_btn__secondary_black__6bf0u",btn__primary:"VopResult_btn__primary__SWISi",btn__primary__sim:"VopResult_btn__primary__sim__ou5zX",btn__light__sim:"VopResult_btn__light__sim__tOWmI",btn__link:"VopResult_btn__link__Z46Ib",btn__link__primary:"VopResult_btn__link__primary__ld4Aw",btn__sticky:"VopResult_btn__sticky__dy9Vm",btn__underline:"VopResult_btn__underline__iAXHU",btn__container:"VopResult_btn__container__BcCll",container:"VopResult_container__UtMLP",loading:"VopResult_loading__9wuOv",content:"VopResult_content__oyVtz",buttons:"VopResult_buttons__2EMKf",icon_container:"VopResult_icon_container__AkGdH",icon:"VopResult_icon__Tfo8X",text_content:"VopResult_text_content___YAh3",title:"VopResult_title__4Oh_e",description:"VopResult_description__9YmpW",action:"VopResult_action__VKntT",cta:"VopResult_cta__FzkwO",loadingOverlay:"VopResult_loadingOverlay__PKbW5",spinner:"VopResult_spinner__Gks7U",spin:"VopResult_spin__oRgv2"}},36330:(e,t,n)=>{"use strict";n.d(t,{A:()=>s}),n(14232);var a=n(25916),i=n.n(a),r=n(37876);let s=e=>{let{title:t,subtitle:n,align:a,size:s,subSize:o,customClassTitle:l,customClassSubtitle:c}=e;return(0,r.jsxs)("h2",{className:`${i().title} ${l}`,style:{fontSize:s,textAlign:a},children:[t,(0,r.jsx)("span",{className:c,style:{fontSize:o},children:n})]})}},37563:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var a=n(14232),i=n(18803),r=n(39282),s=n(69176),o=n(94692),l=n(24309),c=n(84479),d=n(67362),p=n(52369);n(5545);var u=n(68092),m=n.n(u),h=n(86200),b=n(45137),g=n(40199),f=n(37876);let y=(0,l.withTranslation)(["dashboard","common"])(e=>{let{t,visible:n,editingRib:l,onHide:u,principal:y,refresh:v,initialValues:x}=e,{0:C,1:j}=(0,a.useState)(!1),{0:N,1:w}=(0,a.useState)(!1),{0:O,1:A}=(0,a.useState)(null),{0:T,1:E}=(0,a.useState)(!1),{0:I,1:S}=(0,a.useState)(null),{addToast:k}=(0,d.Yf)();return(0,f.jsx)(r.A,{visible:n,title:l?t("dashboard:edit-iban-modal"):t("dashboard:add-iban-modal"),customClass:`${N?m().hidden:""}`,onHide:u,children:(0,f.jsx)(s.A,{initialValues:(l&&(x=l),{owner_name:x&&x.owner_name?x.owner_name:"",iban:x&&x.iban?x.iban:"",bic:x&&x.bic?x.bic:""}),schema:l?o.ribSchema.update:o.ribSchema.create,onSubmit:(e,n)=>{j(!0),l?c.A.updateRib(l.reference,e).then(e=>{console.log("result ",e),e.is_strong_auth_resp?e.status!==b.w.PENDING?k(t("common:errors.E_STRONG_AUTHENTICATION_FAILED"),{appearance:"error",autoDismiss:!0}):(S(e.reference),E(!0)):(k(t("dashboard:add-iban.success-toast"),{appearance:"success",autoDismiss:!0}),u&&u(),v&&v(e))}).catch(e=>{let n=e.data&&"E_BANKING"===e.data.code&&e.data.data?e.data.data.message:void 0;n?A(n):e.data&&e.data.code?A(t("common:errors."+e.data.code)):e.data&&e.data.errors&&e.data.errors.length?A(t("common:errors."+e.data.errors[0].code)):A(t("common:errors.GENERAL_ER
1ROR"))}).finally(()=>j(!1)):c.A.createRib(e).then(e=>{e.is_strong_auth_resp?e.status!==b.w.PENDING?k(t("common:errors.E_STRONG_AUTHENTICATION_FAILED"),{appearance:"error",autoDismiss:!0}):(S(e.reference),E(!0)):(k(t("dashboard:add-iban.success-toast"),{appearance:"success",autoDismiss:!0}),u&&u(),v&&v(e))}).catch(e=>{let n=e.data&&"E_BANKING"===e.data.code&&e.data.data?e.data.data.message:void 0;n?A(n):e.data&&e.data.code?A(t("common:errors."+e.data.code)):e.data&&e.data.errors&&e.data.errors.length?A(t("common:errors."+e.data.errors[0].code)):A(t("common:errors.GENERAL_ERROR"))}).finally(()=>j(!1))},render:e=>{let{handleSubmit:n,handleChange:a,handleBlur:r,values:s,touched:o,errors:c,dirty:d}=e;return(0,f.jsxs)("form",{onSubmit:n,noValidate:!0,children:[(0,f.jsx)(g.A,{visible:T,onHide:(e,n)=>{E(!1),S(null),e===b.w.SUCCEEDED?(k(t("dashboard:add-iban.success-toast"),{appearance:"success",autoDismiss:!0}),u&&u(),v&&v()):e===b.w.FAILED&&(u&&u(),k(n?.ErrorMessage||t("common:errors.E_STRONG_AUTHENTICATION_FAILED"),{appearance:"error",autoDismiss:!0}))},strongAuthReference:I}),O&&(0,f.jsx)(h.A,{customClass:m().notification__wrapper,children:(0,f.jsx)("div",{className:m().notification,children:(0,f.jsxs)("div",{className:m().notification__content,children:[(0,f.jsx)("img",{src:"/static/images/pictos/icon-information.svg"}),O]})})}),(0,f.jsx)(i.A,{inputId:"owner_name",inputLabel:t("dashboard:add-iban.owner-name"),inputName:"owner_name",inputType:"text",inputPlaceholder:t("dashboard:add-iban.owner-name-placeholder"),errors:c,value:s.owner_name,onChange:a,onBlur:r}),(0,f.jsx)(i.A,{inputId:"iban",inputLabel:t("dashboard:add-iban.iban"),inputName:"iban",inputType:"text",inputPlaceholder:t("dashboard:add-iban.iban-placeholder"),errors:c,value:s.iban,onChange:a,onBlur:r,autocomplete:"off",disabled:!!l}),(0,f.jsx)(i.A,{inputId:"bic",inputLabel:t("dashboard:add-iban.bic"),inputName:"bic",inputType:"text",inputPlaceholder:t("dashboard:add-iban.bic-placeholder"),errors:c,value:s.bic,touched:!0,onChange:a,onBlur:r,autocomplete:"off",disabled:!!l}),(0,f.jsxs)("div",{className:m().btn__container,children:[(0,f.jsx)(p.A,{type:"submit",className:m().btn__primary,loading:C,children:t("dashboard:validate")}),(0,f.jsx)(p.A,{type:"button",onClick:u,className:m().btn__light,children:t("dashboard:cancel")})]})]})},hideGenericErrors:!0})})})},40357:(e,t,n)=>{"use strict";n.d(t,{A:()=>j});var a=n(14232),i=n(52369),r=n(39282),s=n(69176),o=n(24309),l=n(94692),c=n(18803),d=n(46369),p=n(23509),u=n.n(p);n(12699),n(10685);var m=n(98003),h=n(10841),b=n.n(h),g=n(11356),f=n(36851),y=n(73693),v=n(81303),x=n(34605),C=n(37876);let j=(0,o.withTranslation)(["list"])(e=>{let{t,visible:n,onHide:o,onError:p,onSuccess:h,listReference:j,userData:N}=e,{0:w,1:O}=(0,a.useState)(!1),A=f.VDM_COUNTRY[f.VDM_COUNTRY.findIndex(e=>"FRA"===e.code)];return(0,C.jsxs)(r.A,{customClass:u().modal,visible:n,onHide:o,title:t("list:vdm.estimate-modal-title"),children:[(0,C.jsxs)("div",{className:u().modal_desc,children:[(0,C.jsx)("p",{children:t("list:vdm.estimate-modal-desc-1")}),(0,C.jsx)("p",{children:t("list:vdm.estimate-modal-desc-2")})]}),(0,C.jsx)(s.A,{initialValues:{destination:void 0,departure_date:void 0,duration:void 0,adults_count:void 0,children_count:void 0,residency_country:A.code,civility:N.civility===v.kZ.M?v.XZ.M:v.XZ.MME,last_name:N&&N.last_name?N.last_name:void 0,first_name:N&&N.first_name?N.first_name:void 0,phone:N&&N.phone?N.phone:void 0,email:N&&N.email?N.email:void 0,zip_code:N&&N.address_zip_code?N.address_zip_code:void 0,description:void 0},schema:l.potSchema.addVDMEstimate,onSubmit:e=>{O(!0),e.children_count=e.children_count||0===e.children_count?e.children_count:void 0,x.A.addVDMEstimate(j,e).then(e=>{o&&o(),h&&h()}).catch(e=>{o&&o(),p&&p(e)}).finally(()=>{O(!1)})},render:e=>{let{handleSubmit:n,handleChange:a,handleBlur:r,values:s,touched:o,errors:l,dirty:p}=e;return(0,C.jsxs)("form",{onSubmit:n,noValidate:!0,children:[(0,C.jsxs)("div",{className:u().content,children:[(0,C.jsxs)("div",{className:u().form_section,children:[(0,C.jsx)(g.A,{options:Object.values(f.VDM_COUNTRY).map(e=>({value:e.code,label:e.name})),defaultValue:" ",label:`${t("list:vdm.estimate-fields.destination")}*`,inputPlaceholder:t("list:vdm.estimate-fields.destination"),inputId:"destination",inputName:"destination",errors:l,value:s.destination,onBlur:r,fullWidth:!0}),(0,C.jsx)(m.A,{label:`${t("list:vdm.estimate-fields.departure_date")}*`,inputName:"departure_date",inputId:"departure_date",errors:l,inputMinDate:b()().set({h:0,m:0,s:0}),inputMaxDate:b()().add(10,"years").set({h:23,m:59,s:59}),inputPlaceholder:b()().format("DD/MM/YYYY"),value:s.departure_date,selectableMonthYear:!0}),(0,C.jsx)(c.A,{inputId:"duration",inputLabel:`${t("list:vdm.estimate-fields.duration")}*`,inputName:"duration",inputType:"number",errors:l,value:s.duration,onChange:a,onBlur:r,touched:o,inputPlaceholder:t("list:vdm.estimate-fields.duration")}),(0,C.jsx)(c.A,{inputId:"adults_count",inputLabel:`${t("list:vdm.estimate-fields.adults_count")}*`,inputName:"adults_count",inputType:"number",errors:l,value:s.adults_count,onChange:a,onBlur:r,touched:o,inputPlaceholder:t("list:vdm.estimate-fields.adults_count")}),(0,C.jsx)(c.A,{inputId:"children_count",inputLabel:`${t("list:vdm.estimate-fields.children_count")}`,inputName:"children_count",inputType:"number",errors:l,value:s.children_count??s.children_count,onChange:a,onBlur:r,touched:o,inputPlaceholder:t("list:vdm.estimate-fields.children_count")}),(0,C.jsx)(g.A,{options:Object.values(f.VDM_COUNTRY).map(e=>({value:e.code,label:e.name})),defaultValue:A,label:`${t("list:vdm.estimate-fields.residency_country")}*`,inputId:"residency_country",inputName:"residency_country",errors:l,value:s.residency_country?s.residency_country:A.code,onBlur:r,fullWidth:!0})]}),(0,C.jsxs)("div",{className:u().form_section,children:[(0,C.jsx)(y.A,{label:`${t("list:vdm.estimate-fields.civility")}*`,inputName:"civility",inputId:"civility",inputPlaceholder:t("list:vdm.estimate-fields.civility"),value:s.civility?s.civility:v.XZ.MME,options:Object.values(v.XZ).map(e=>({value:e,label:t(`list:vdm.estimate-fields.civility-${e}`)}))}),(0,C.jsx)(c.A,{inputId:"last_name",inputLabel:`${t("list:vdm.estimate-fields.last_name")}*`,inputName:"last_name",errors:l,value:s.last_name,onChange:a,onBlur:r,touched:o,inputPlaceholder:t("list:vdm.estimate-fields.last_name")}
1),(0,C.jsx)(c.A,{inputId:"first_name",inputLabel:`${t("list:vdm.estimate-fields.first_name")}*`,inputName:"first_name",errors:l,value:s.first_name,onChange:a,onBlur:r,touched:o,inputPlaceholder:t("list:vdm.estimate-fields.first_name")}),(0,C.jsx)(c.A,{inputId:"phone",inputLabel:`${t("list:vdm.estimate-fields.phone")}*`,inputName:"phone",errors:l,value:s.phone,onChange:a,onBlur:r,touched:o,inputPlaceholder:t("list:vdm.estimate-fields.phone")}),(0,C.jsx)(c.A,{inputId:"email",inputLabel:`${t("list:vdm.estimate-fields.email")}*`,inputName:"email",errors:l,value:s.email,onChange:a,onBlur:r,touched:o,inputPlaceholder:t("list:vdm.estimate-fields.email")}),(0,C.jsx)(c.A,{inputId:"zip_code",inputLabel:`${t("list:vdm.estimate-fields.zip_code")}*`,inputName:"zip_code",errors:l,value:s.zip_code,onChange:a,onBlur:r,touched:o,inputPlaceholder:t("list:vdm.estimate-fields.zip_code")})]}),(0,C.jsx)(d.A,{textareaId:"description",textareaName:"description",value:s.description,onChange:a,wrapperCustomClass:u().vdm_form_desc,onBlur:r,errors:l,textareaPlaceholder:t("list:vdm.estimate-fields.description-placeholder"),textareaLabel:t("list:vdm.estimate-fields.description")})]}),(0,C.jsx)("div",{className:u().btn__container,children:(0,C.jsx)(i.A,{type:"submit",loading:w,disabled:!_.isEmpty(l),className:u().primary,children:t("list:vdm.estimate-fields.submit")})}),(0,C.jsx)("div",{className:u().modal_desc,children:(0,C.jsx)("p",{className:u().vdm_cgu,children:t("list:vdm.estimate-cgu")})})]})}})]})})},41481:e=>{e.exports={btn:"PasswordForgottenModal_btn__lnoi4",btn__disabled:"PasswordForgottenModal_btn__disabled__4aSPC",btn__secondary_back:"PasswordForgottenModal_btn__secondary_back__8O9qy",btn__light:"PasswordForgottenModal_btn__light__rl28n",btn__secondary:"PasswordForgottenModal_btn__secondary__oILYp",btn__secondary_black:"PasswordForgottenModal_btn__secondary_black__x2ulR",btn__primary:"PasswordForgottenModal_btn__primary__z09YR",btn__primary__sim:"PasswordForgottenModal_btn__primary__sim__InA_L",btn__light__sim:"PasswordForgottenModal_btn__light__sim__5O3AB",btn__link:"PasswordForgottenModal_btn__link__0Q_9M",btn__link__primary:"PasswordForgottenModal_btn__link__primary__Z3LJl",btn__sticky:"PasswordForgottenModal_btn__sticky__XsfGA",btn__underline:"PasswordForgottenModal_btn__underline__ti3OC",btn__container:"PasswordForgottenModal_btn__container__qcoWQ",btn_container:"PasswordForgottenModal_btn_container__7X9tr"}},44075:e=>{e.exports={btn:"CashOut_btn__Dg5nM",btn__disabled:"CashOut_btn__disabled__wyutV",btn__secondary_back:"CashOut_btn__secondary_back__ikKIp",btn__light:"CashOut_btn__light__ucnFh",btn__secondary:"CashOut_btn__secondary__lomjz",btn__secondary_black:"CashOut_btn__secondary_black__a19NG",btn__primary:"CashOut_btn__primary__QWMOY",btn__primary__sim:"CashOut_btn__primary__sim__DJjJb",btn__light__sim:"CashOut_btn__light__sim__ys_gn",btn__link:"CashOut_btn__link__aPrm3",btn__link__primary:"CashOut_btn__link__primary__Qcce6",btn__sticky:"CashOut_btn__sticky__tizRV",btn__underline:"CashOut_btn__underline__y5Z6s",btn__container:"CashOut_btn__container__4tLGu",cashout:"CashOut_cashout__mjpxt",title:"CashOut_title__KerDR",flex_container:"CashOut_flex_container__py8tz",left_section:"CashOut_left_section__n4j5c",right_section:"CashOut_right_section__HfBqq",image:"CashOut_image__M9ziT",notification:"CashOut_notification__0sQWc",card:"CashOut_card__u6c9j"}},46369:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var a=n(14232),i=n(14059),r=n(97753),s=n.n(r),o=n(37876);class l extends a.Component{render(){return l.defaultProps={textareaId:"addAnId",textareaLabel:"textarea desc :",textareaName:"addName",textareaPlaceholder:"Write Something"},(0,o.jsxs)("div",{className:`css.textarea__wrapper ${this.props.wrapperCustomClass?this.props.wrapperCustomClass:""}`,children:[(0,o.jsx)("label",{htmlFor:this.props.textareaId,className:s().label,children:this.props.textareaLabel}),(0,o.jsx)("textarea",{name:this.props.textareaName,id:this.props.textareaId,disabled:this.props.disabled,placeholder:this.props.textareaPlaceholder,className:`${s().textarea} ${!this.props.hideErrors&&this.props.errors[this.props.textareaName]&&s().textarea__border_error} ${this.props.customClass?this.props.customClass:""}`,value:this.props.value,onChange:this.props.onChange,onBlur:this.props.onBlur,onFocus:()=>this.props.hideErrors&&this.props.makeErrorsVisible&&this.props.makeErrorsVisible()}),!this.props.hideErrors&&(0,o.jsx)(i.A,{name:this.props.textareaName})]})}}let c=l},49558:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/list/[reference]/Spending/CashOut",function(){return n(85171)}])},68092:e=>{e.exports={btn:"Iban_btn__iK7Zo",btn__disabled:"Iban_btn__disabled__6ej6k",btn__secondary_back:"Iban_btn__secondary_back__gKIO0",btn__light:"Iban_btn__light__Tmwyn",btn__secondary:"Iban_btn__secondary__i84Pe",btn__secondary_black:"Iban_btn__secondary_black___1LmY",btn__primary:"Iban_btn__primary__HGboY",btn__primary__sim:"Iban_btn__primary__sim__2Xrda",btn__light__sim:"Iban_btn__light__sim__BkY14",btn__link:"Iban_btn__link__WJOeQ",btn__link__primary:"Iban_btn__link__primary__RAnjp",btn__sticky:"Iban_btn__sticky__9nxWM",btn__underline:"Iban_btn__underline__9pkpn",btn__container:"Iban_btn__container____zNY",iban:"Iban_iban__2QI0O",rib:"Iban_rib__Lvtqo",rib__container:"Iban_rib__container__GkUVB",rib__edit:"Iban_rib__edit__s5Yii",actions:"Iban_actions__9VJ91",rib_container:"Iban_rib_container__qBMjp",password_title:"Iban_password_title__YEVBe",password_desc:"Iban_password_desc___3KOZ",forgotten_pswrd:"Iban_forgotten_pswrd__lb9ia",hidden:"Iban_hidden__sW3aV",notification:"Iban_notification__1pIWl",notification__content:"Iban_notification__content__eVRwM",notification__wrapper:"Iban_notification__wrapper__T002H"}},78110:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var a=n(59860);n(14232);
1var i=n(77328),r=n.n(i),s=n(10685),o=n(24309),l=n(89099),c=n(37876);let d=["title","meta_title","description","url","image","t"],p=(0,o.withTranslation)(["home"])(e=>{let{title:t,meta_title:n,description:i,url:o,image:p,t:u}=e,m=(0,a.A)(e,d),h=(0,l.useRouter)(),b=i||u("home:meta-description"),g=p||s.A.getFullRoute("/static/images/logos/og-image.webp"),f=o||h.pathname,y=t||u("home:meta-title");return(0,c.jsxs)(r(),{children:[(0,c.jsx)("title",{children:n||y}),(0,c.jsx)("meta",{name:"description",content:b},"description"),(0,c.jsx)("meta",{property:"og:type",content:"website"},"og_type"),(0,c.jsx)("meta",{property:"og:title",content:y},"og_title"),(0,c.jsx)("meta",{property:"og:url",content:f},"og_url"),(0,c.jsx)("meta",{property:"og:description",content:b},"og_description"),(0,c.jsx)("meta",{property:"fb:app_id",content:"353828648891330"},"fb_app_id"),(0,c.jsx)("meta",{property:"og:image",content:g},"og_image"),(0,c.jsx)("meta",{property:"og:image:width",content:"1200"},"og_image_width"),(0,c.jsx)("meta",{property:"og:image:height",content:"630"},"og_image_height"),m.children]})})},85171:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>ea,default:()=>ei});var a=n(14232),i=n(80095),r=n(78974),s=n(42174),o=n(80308),l=n(48230),c=n.n(l),d=n(10685),p=n(66284),u=n(24309),m=n(6338),h=n.n(m),b=n(26454),g=n.n(b),f=n(37876);let y=(0,u.withTranslation)(["common","spending"])(e=>{let{t,list:n,pagesData:a}=e;return(0,f.jsxs)("div",{className:`${g().credit_card}`,children:[(0,f.jsx)("h3",{children:t("spending:cashout-card.credit-card-title")}),(0,f.jsxs)("div",{className:g().split,children:[(0,f.jsxs)("div",{children:[(0,f.jsx)("span",{}),(0,f.jsxs)("p",{children:[t("spending:cashout-card.credit-card"),(0,f.jsx)("b",{children:t("spending:cashout-card.bonus",{bonus:a.bonus.bonus_percentage})})]})]}),(0,f.jsxs)("div",{children:[(0,f.jsx)("span",{}),(0,f.jsxs)("p",{children:[t("spending:cashout-card.withdrawal"),(0,f.jsx)("b",{children:t("spending:cashout-card.comm",{comm:a.comm.comm_percentage})})]})]})]})]})});var v=n(62538),x=n(18390),C=n(52369),j=n(60427),N=n(18868),w=n.n(N),O=n(69176),A=n(94692),T=n(33513),E=n(60686),I=n(19895);let S=(0,u.withTranslation)(["common","spending","ListAmountStatus","promocode"])(e=>{let{t,onValidate:n,onEdit:i,pool:r,pagesData:s}=e,{0:o,1:l}=(0,a.useState)(!0),{0:c,1:d}=(0,a.useState)(!1),{0:p,1:u}=(0,a.useState)(null),{0:m}=(0,a.useState)(a.createRef()),b=r.total_amount_left,g=v.A.isPromoCodeConsumed(r),y=e=>{let t={};return e.amount?e.amount<=100?t.amount="E_CASH_OUT_MIN_AMOUNT":e.amount>b&&(t.amount="E_CASH_OUT_MAX_AMOUNT"):t.amount="Required",t};return(0,f.jsx)(w(),{classParentString:h().amount,triggerDisabled:!0,open:!0,onOpen:()=>{(()=>{if(!m||!m.current)return;let e=j.A.offset(m.current),t=document.querySelector("nav").offsetHeight+10;j.A.scrollTo(e,t)})()},trigger:(0,f.jsxs)("div",{ref:m,className:h().iban_header,children:[(0,f.jsxs)("h2",{children:[t("spending:cashout.step-1-title"),!o&&(0,f.jsxs)("b",{children:[p.amount/100," â¬",(0,f.jsx)("span",{className:h().modify,onClick:()=>{l(!o),i&&i()},children:t("spending:edit")})]})]}),!o&&(0,f.jsx)("img",{src:"/static/images/pictos/icon-check-success.svg"})]}),children:o&&(0,f.jsx)(O.A,{initialValues:p||{amount:""},onSubmit:e=>{u(e),n&&n(e),l(!1)},customValidate:y,render:e=>{let n,a,{values:i,errors:o,handleChange:l,handleBlur:d,handleSubmit:p}=e;return(0,f.jsxs)(I.lV,{children:[(0,f.jsx)("div",{className:h().amount_body}),(0,f.jsxs)("div",{className:h().cashout_form,children:[(0,f.jsx)(x.A,{inputId:"amount",inputType:"number",inputLabel:t("spending:cashout.amount-label"),inputName:"amount",value:i.amount,errors:o,onChange:()=>y,onBlur:d,inputPlaceholder:t("spending:cashout.amount-placeholder")}),i.amount>b&&(0,f.jsx)("p",{className:h().error,children:t("spending:cashout.amount-cant-be-more",{amount:E.A.centsToEuro(b)})}),!r.is_beneficiary&&!g&&(0,f.jsx)("div",{className:h().promocode,children:(0,f.jsx)(T.A,{code:r.promo_code_data,customClass:h().promocode_content})}),(0,f.jsx)("div",{className:h().comm,children:(0,f.jsx)("p",{children:t("spending:cashout.comm-alert",{amount:isNaN(n=i.amount)||!n?"":`- ${(parseFloat(n/100)*s.comm.comm_value).toFixed(2)} â¬`,comm:s.comm.comm_percentage})})}),(0,f.jsx)("div",{className:h().comm_included,dangerouslySetInnerHTML:{__html:t("spending:cashout.comm-included",{amount:isNaN(a=i.amount)||!a?"-":parseFloat(a/100-a/100*s.comm.comm_percentage/100).toFixed(2)})}}),(0,f.jsx)(C.A,{className:h().btn__primary,type:"submit",disabled:parseFloat(i.amount)>parseFloat(b)||""===i.amount||"Invalid Value"===i.amount,loading:c,children:t("spending:validate")})]})]})}})})});var k=n(37563),R=n(84479),D=n(67362),M=n(89099),P=n(85544);let V={};V.vopDecision=(e,t)=>(0,P.A)().post(d.A.get(d.A.API.CASH_OUTS.VOP_DECISION,{reference:e}),t).then(e=>e);var L=n(35968),W=n.n(L);n(55910);var B=n(45137),F=n(40199);let H=(0,u.withTranslation)(["common","spending"])(e=>{var t;let n,i,{t:r,vopData:s,potReference:o,cashoutReference:l,onDecisionMade:c,onHide:p,rib:u,refresh:m,loading:h=!1,userChangedRib:b=!1,isInstantPayment:g=!1}=e,{0:y,1:v}=(0,a.useState)(!1),{0:x,1:j}=(0,a.useState)(!1),{0:N,1:w}=(0,a.useState)(null),{0:O,1:A}=(0,a.useState)(!1),{0:T,1:E}=(0,a.useState)(null),{addToast:I}=(0,D.Yf)(),S=(0,M.useRouter)(),k=async e=>
1{if(E(e),!o||!l)return void I(r("common:errors.GENERAL_ERROR"),{appearance:"error",autoDismiss:!0});"approve"===e?v(!0):j(!0);try{let t={vop_reference:s.vop_reference,cashout_reference:l,decision:e,vop_status:s.vop_status,vop_decision:"approve"===e?"approved":"cancelled",isInstantPayment:!!g},n=await V.vopDecision(o,t);w(n.reference),A(!0)}catch(t){I(r("common:errors.E_STRONG_AUTHENTICATION_FAILED"),{appearance:"error",autoDismiss:!0}),"approve"===e?v(!1):j(!1),o&&S.push(d.A.get(d.A.ROUTES.LIST.LIST,{reference:o}))}};if((0,a.useEffect)(()=>{s?.vop_result?.toLowerCase()==="match"&&c("approve")},[s]),!s||s.vop_result?.toLowerCase()==="match")return null;let R=(s.vop_status,t=s.vop_result,n=t?.toLowerCase(),i={closematch:{icon:"â¹",iconColor:"#f0b856",title:r("spending:vop.close-match.title"),description:r("spending:vop.close-match.description",{first_name:u.rib_owner_name?.split(" ")[0]||u.owner_name?.split(" ")[0]||"N/A",last_name:u.rib_owner_name?.split(" ").slice(1).join(" ")||u.owner_name?.split(" ").slice(1).join(" ")||"N/A",interpolation:{escapeValue:!0}}),action:r("spending:vop.close-match.action")},nomatch:{icon:"!",iconColor:"#dc2626",title:r("spending:vop.no-match.title"),description:r("spending:vop.no-match.description"),action:r("spending:vop.no-match.action")},verificationnotpossible:{icon:"X",iconColor:"#cecac7",title:r("spending:vop.verification-not-possible.title"),description:r("spending:vop.verification-not-possible.description"),action:r("spending:vop.verification-not-possible.action")}},n?.includes("closematch")||n?.includes("close")?i.closematch:n?.includes("nomatch")?i.nomatch:i.verificationnotpossible),P=s.vop_result?.toLowerCase()==="match"&&b;return(0,f.jsxs)("div",{className:`${W().container} ${h?W().loading:""}`,children:[h&&(0,f.jsx)("div",{className:W().loadingOverlay,children:(0,f.jsx)("div",{className:W().spinner})}),(0,f.jsxs)("div",{className:W().content,children:[(0,f.jsx)("div",{className:W().icon_container,children:(0,f.jsx)("div",{className:W().icon,style:{backgroundColor:P?"#22c55e":R.iconColor},children:P?"â":R.icon})}),(0,f.jsx)("div",{className:W().text_content,children:P?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("h3",{className:W().title,children:"â
V\xe9rification r\xe9ussie"}),(0,f.jsx)("p",{className:W().description,children:"Le RIB s\xe9lectionn\xe9 correspond parfaitement aux informations du b\xe9n\xe9ficiaire."}),(0,f.jsx)("p",{className:W().action,children:"Vous pouvez maintenant proc\xe9der au virement en toute s\xe9curit\xe9."})]}):(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("h3",{className:W().title,children:R.title}),(0,f.jsx)("p",{className:W().description,dangerouslySetInnerHTML:{__html:R.description}}),(0,f.jsx)("p",{className:W().action,children:R.action})]})})]}),o&&l&&!s.vop_decision&&(0,f.jsx)("div",{className:W().buttons,children:P?(0,f.jsx)(C.A,{className:W().btn__primary,onClick:()=>k("approve"),disabled:x||y,loading:y,children:(0,f.jsx)("div",{className:W().cta,children:"VALIDER"})}):(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(C.A,{className:W().btn__light,onClick:()=>k("cancel"),disabled:x||y,loading:x,children:(0,f.jsx)("div",{className:W().cta,children:"ANNULER LE VIREMENT"})}),(0,f.jsx)(C.A,{className:W().btn__primary,onClick:()=>k("approve"),disabled:x||y,loading:y,children:(0,f.jsx)("div",{className:W().cta,children:"EFFECTUER LE VIREMENT"})})]})}),(0,f.jsx)(F.A,{visible:O,onHide:e=>{A(!1),w(null),v(!1),j(!1),e===B.w.SUCCEEDED?(I(r("dashboard:add-iban.success-toast"),{appearance:"success",autoDismiss:!0}),m&&m(),c&&c(T),p&&p()):e===B.w.FAILED&&(I(r("common:errors.E_STRONG_AUTHENTICATION_FAILED"),{appearance:"error",autoDismiss:!0}),o&&S.push(d.A.get(d.A.ROUTES.LIST.LIST,{reference:o})),p&&p())},strongAuthReference:N})]})});function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}let $=(0,u.withTranslation)(["common","spending"])(e=>{let{t,onValidate:n,initialRibs:i,open:r,profile:s,vopData:o,pot:l,cashout:c,isInstantPayment:u}
1=e,m=(0,M.useRouter)(),{0:b,1:g}=(0,a.useState)(!1),{0:y,1:v}=(0,a.useState)(!1),{0:x,1:N}=(0,a.useState)(null),{0:T,1:E}=(0,a.useState)(!1),{0:I,1:S}=(0,a.useState)(!1),{0:P}=(0,a.useState)(a.createRef()),{0:V,1:L}=(0,a.useState)(i),{addToast:W}=(0,D.Yf)();return a.useEffect(()=>{o&&v(!1)},[o]),(0,f.jsxs)(a.Fragment,{children:[(0,f.jsx)(k.A,{visible:I,refresh:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e&&e.length?L(e):(g(!0),R.A.getUserRib().then(e=>{g(!1),L(e)}).catch(e=>{g(!1),W(t("common:errors.GENERAL_ERROR"),{appearance:"error",autoDismiss:!0})}))},principal:s,onHide:()=>S(!1)}),(0,f.jsx)(w(),{classParentString:h().amount,triggerDisabled:!0,open:r,showModal:()=>I(!0),onOpen:()=>{(()=>{if(!P||!P.current)return;let e=j.A.offset(P.current),t=document.querySelector("nav").offsetHeight+10;j.A.scrollTo(e,t)})()},trigger:(0,f.jsxs)("div",{ref:P,className:h().iban_header,children:[(0,f.jsx)("h2",{className:`${r?h().open:h().disable} ${h().title}`,children:t("spending:cashout.step-2-title")}),r&&(0,f.jsx)("span",{className:h().btn__light,onClick:()=>S(!0),children:t("spending:add-rib")})]}),children:(0,f.jsx)(O.A,{initialValues:x||{rib:""},onSubmit:e=>{g(!0),o?.vop_result?.toLowerCase()==="match"?m.push(d.A.get(d.A.ROUTES.LIST.WITHDRAWAL_CONFIRM,{reference:l.reference,cashOutReference:c})):n&&n(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach(function(t){(0,p.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e))}
1,schema:A.cashOutSchema.rib,render:e=>{let{handleSubmit:n,setFieldValue:a,values:i}=e;return(0,f.jsxs)("form",{onSubmit:n,children:[(0,f.jsxs)("div",{className:h().amount_body,children:[V&&V.length>0&&V.filter(e=>!o||o?.vop_result?.toLowerCase()=="match"||e.reference===x).map((e,t)=>(0,f.jsxs)("label",{className:h().rib,children:[(0,f.jsxs)("div",{children:[(0,f.jsx)("h3",{children:e.owner_name}),(0,f.jsx)("p",{children:e.iban})]}),(0,f.jsx)("input",{type:"radio",id:`rib_${e.reference}`,name:"rib",value:e.reference,className:h().hidden,onChange:t=>{N(e.reference),a("rib",t.target.value),E(!0)}}),(0,f.jsx)("span",{className:`${h().radio} ${x===e.reference?h().active:""}`})]},t)),(!V||!V.length)&&(0,f.jsx)("p",{className:h().ribless,children:t("spending:cashout.no-rib")})]}),o&&(0,f.jsx)(H,{vopData:o,potReference:l.reference,cashoutReference:c,loading:y,userChangedRib:T,isInstantPayment:u,onHide:()=>{console.log("hidieng")},refresh:()=>{console.log("refresh")},rib:V.find(e=>e.reference===x),onDecisionMade:e=>{"approve"==e?m.push(d.A.get(d.A.ROUTES.LIST.WITHDRAWAL_CONFIRM,{reference:l.reference,cashOutReference:c})):m.push(d.A.get(d.A.ROUTES.LIST.LIST,{reference:l.reference}))}}),(!o||"match"==o.vop_result.toLowerCase())&&(0,f.jsx)(C.A,{type:"submit",className:h().btn__primary,disabled:null===x,loading:b,children:t("spending:validate")})]})}})})]})});function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach(function(t){(0,p.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let z=(0,u.withTranslation)(["common","spending"])(e=>{let{t,list:n,ribs:i,profile:r,pagesData:s}=e,{0:o,1:l}=(0,a.useState)(null),{0:c,1:d}=(0,a.useState)(1),{0:p,1:u}=(0,a.useState)({}),{0:m,1:b}=(0,a.useState)(null),{0:g,1:x}=(0,a.useState)(null),{0:C,1:j}=(0,a.useState)(!1);(0,M.useRouter)();let{addToast:N}=(0,D.Yf)(),w=async e=>{try{let t=await v.A.createCashOut(n.reference,e);return t&&t.cash_out.verificationOfPayee&&(x(t.cash_out.reference),b(t.cash_out.verificationOfPayee)),t&&t.cash_out&&void 0!==t.cash_out.isInstantPayment&&j(!!t.cash_out.isInstantPayment),t}catch(e){if(e&&e.data&&e.data.code)switch(e.data.code){case"E_NEED_KYC":case"E_POT_ALREADY_CASHED_OUT":case"E_AVDN_ACTIVE":N(t(`common:errors.${e.data.code}`),{appearance:"error",autoDismiss:!0});break;default:N(t("common:errors.GENERAL_ERROR"),{appearance:"error",autoDismiss:!0})}else N(t("common:errors.GENERAL_ERROR"),{appearance:"error",autoDismiss:!0});throw e}};return(0,f.jsxs)("div",{className:h().withdrawal,children:[(0,f.jsx)("div",{className:`${h().withdrawal_bloc}`,children:(0,f.jsx)(y,{list:n,pagesData:s})}),(0,f.jsx)("div",{className:`${h().withdrawal_bloc}`,children:(0,f.jsx)(S,{pool:n,pagesData:s,onValidate:e=>{p.amount=e.amount,u(Y({},p)),l(e),d(2)},onEdit:()=>{d(1)}})}),(0,f.jsx)("div",{className:`${h().withdrawal_bloc}`,children:(0,f.jsx)($,{onValidate:e=>{p.rib=e.rib,u(Y({},p)),w(Y(Y({},p),{},{category:7}))},open:2===c,profile:r,initialRibs:i,vopData:m,pot:n,cashout:g,isInstantPayment:C})})]})});var q=n(28687),Z=n(44075),X=n.n(Z),K=n(36330),Q=n(78110),J=n(12699),ee=n(40357),et=n(87415);let en=[...u.COMMON_NAMESPACES,"pot","list","dashboard","ListAmountStatus","authentication","spending"];var ea=!0;let ei=(0,i.n)({namespacesRequired:en,authenticated:!0,hasAccess:(e,t)=>{let{list:n,profile:a,validationProgress:i}=e,r=3===n.status,s=n.is_mine,o=!(i&&i.activation_progression&&i.activation_progression.has_activated_list),l=n.total_amount_left>0,c=i.avdn_status===et.qb.VALIDATED;return!!s&&!o&&!r&&!!l&&!c||(q.A.addCookieErrorMessage("common:errors.E_PAGE_ACCESS_DENIED",t),t.res.writeHead(302,{Location:d.A.get(d.A.ROUTES.LIST.LIST,{reference:n.reference})}),t.res.end(),!1)}})(e=>{let{t,principal:n,list:i,pagesData:l,ribs:p,profile:u,validationProgress:m,userData:h}=e,{0:b,1:g}=(0,a.useState)(!1),{addToast:y}=(0,D.Yf)();return(0,f.jsxs)(r.A,{principal:n,children:[(0,f.jsxs)(s.A,{customClass:X().cashout,children:[(0,f.jsx)(Q.A,{title:t("spending:cashout.meta-title")}),(0,f.jsx)(o.A,{list:i,pagesData:l,customClass:X().poolInfo,showAdditionalInfo:!1,hadValidatedList:m.activation_progression&&m.activation_progression.has_activated_list,user:h}),(0,f.jsx)(J.A,{hasActivatedList:m.activation_progression&&m.activation_progression.has_activated_list,isMine:i.is_mine,isSpouse:i.is_spouse,hasOutstandingPayments:i.has_outstanding_payments,outstandingPaymentBalance:i.outstanding_payment_balance,onVDMEstimateButtonClick:()=>g(!0),userData:h,list:i}),(0,f.jsxs)("div",{className:X().flex_container,children:[(0,f.jsxs)("div",{className:X().left_section,children:[(0,f.jsx)(c(),{href:`${d.A.getFullRoute(d.A.ROUTES.LIST.USE_MONEY,{reference:i.reference})}
1`,legacyBehavior:!0,children:(0,f.jsxs)("a",{className:X().btn__secondary_back,children:[(0,f.jsx)("img",{src:"/static/images/pictos/icon-back-arrow.svg"}),(0,f.jsx)("span",{children:t("spending:back-to-spending")})]})}),(0,f.jsx)(K.A,{title:t("spending:cashout.title"),subtitle:t("spending:cashout.subtitle"),customClassTitle:X().title,customClassSubtitle:X().title}),(0,f.jsx)(z,{list:i,ribs:p,profile:u,pagesData:l})]}),(0,f.jsx)("div",{className:X().right_section,children:(0,f.jsx)("div",{className:X().image})})]})]}),(0,f.jsx)(ee.A,{visible:b,onClickAway:()=>g(!1),onHide:()=>g(!1),onError:e=>q.A.toastErrorCodeMessage(e,y,t),onSuccess:e=>{y(t("list:vdm.add-estimate-success"),{appearance:"success",autoDismiss:!0})},listReference:i.reference,principal:n,userData:h})]})})},87415:(e,t,n)=>{"use strict";n.d(t,{Cj:()=>a,Po:()=>i,Yw:()=>r,qb:()=>s});let a={RUNNING:0,DEACTIVATED:1,DELETED:2,ARCHIVED:3},i={is_open_participation:!0},r=e=>!e.reference&&!0===e.is_open_participation,s={PENDING:1,VALIDATED:2,CANCELED:3,COVERED:4}},89947:e=>{e.exports={btn:"NotificationBanner_btn__AHNnF",btn__disabled:"NotificationBanner_btn__disabled__M53nU",btn__secondary_back:"NotificationBanner_btn__secondary_back__6JauX",btn__light:"NotificationBanner_btn__light__PQP68",btn__secondary:"NotificationBanner_btn__secondary__t1dHq",btn__secondary_black:"NotificationBanner_btn__secondary_black__nZ0d3",btn__primary:"NotificationBanner_btn__primary__Q3Kb2",container:"NotificationBanner_container__PJs_v",button:"NotificationBanner_button__J3xXY",btn__primary__sim:"NotificationBanner_btn__primary__sim__YtJf6",btn__light__sim:"NotificationBanner_btn__light__sim__uCKyq",btn__link:"NotificationBanner_btn__link__EMBvB",btn__link__primary:"NotificationBanner_btn__link__primary__VDuoh",btn__sticky:"NotificationBanner_btn__sticky__RkzQG",btn__underline:"NotificationBanner_btn__underline__eHDa6",btn__container:"NotificationBanner_btn__container__lgszb",text:"NotificationBanner_text__0buR8",text_justify_vdm:"NotificationBanner_text_justify_vdm__s2QR7",justify_right_last_item:"NotificationBanner_justify_right_last_item__Zrj5f",button_vdm_dimensions:"NotificationBanner_button_vdm_dimensions__SfzpO",inactive_list_margin:"NotificationBanner_inactive_list_margin__X_a48",active_list_margin:"NotificationBanner_active_list_margin__smJ0I"}},97753:e=>{e.exports={label:"Textarea_label__hduq3",input:"Textarea_input__GuVCU",textarea:"Textarea_textarea__MuKMG",input__error:"Textarea_input__error__Mm6Iv",textarea__border_error:"Textarea_textarea__border_error__HBpvI",input__wrapper:"Textarea_input__wrapper__B98I5",input__errors:"Textarea_input__errors__80XI4",disabled_input:"Textarea_disabled_input__IFMb0",tooltip:"Textarea_tooltip__sGJ47",textarea__wrapper:"Textarea_textarea__wrapper__lIsXO",textarea__errors:"Textarea_textarea__errors__qhC_0"}}},e=>{e.O(0,[3716,5250,8230,9669,3219,3261,95,3241,6581,2799,636,6593,8792],()=>e(e.s=49558)),_N_E=e.O()}]); 2//# sourceMappingURL=CashOut-c1e4fa37b67dcc2f.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.