1/*! For license information please see 4824.2c3977bce87b7c5d44a3.chunk.js.LICENSE.txt */ 2(self.webpackChunkmondoin_mobile_ui=self.webpackChunkmondoin_mobile_ui||[]).push([[4824],{827973:(e,t,a)=>{"use strict";var n=a(595318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var i=n(a(859713)),r=n(a(506479)),l=n(a(967154)),o=n(a(667294)),s=(n(a(45697)),n(a(294184))),c=(a(593142),n(a(78252))),u=a(494811),d=(n(a(347348)),[0,8,16,24,32,40]),p=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];var m=function(e){return(0,l.default)({container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-xs-center":{justifyContent:"center"},"justify-xs-flex-end":{justifyContent:"flex-end"},"justify-xs-space-between":{justifyContent:"space-between"},"justify-xs-space-around":{justifyContent:"space-around"},"justify-xs-space-evenly":{justifyContent:"space-evenly"}},function(e,t){var a={};return d.forEach((function(e,n){0!==n&&(a["spacing-".concat(t,"-").concat(e)]={margin:-e/2,width:"calc(100% + ".concat(e,"px)"),"& > $item":{padding:e/2}})})),a}(0,"xs"),u.keys.reduce((function(t,a){return function(e,t,a){var n={};p.forEach((function(e){var t="grid-".concat(a,"-").concat(e);if(!0!==e)if("auto"!==e){var i="".concat(Math.round(e/12*1e8)/1e6,"%");n[t]={flexBasis:i,flexGrow:0,maxWidth:i}}else n[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else n[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}})),"xs"===a?(0,l.default)(e,n):e[t.breakpoints.up(a)]=n}(t,e,a),t}),{}))};function f(e){var t,a=e.alignContent,n=e.alignItems,c=e.classes,u=e.className,d=e.component,p=e.container,m=e.direction,b=e.item,y=e.justify,g=e.lg,v=e.md,h=e.sm,x=e.spacing,P=e.wrap,w=e.xl,L=e.xs,S=e.zeroMinWidth,E=(0,r.default)(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),z=(0,s.default)((t={},(0,i.default)(t,c.container,p),(0,i.default)(t,c.item,b),(0,i.default)(t,c.zeroMinWidth,S),(0,i.default)(t,c["spacing-xs-".concat(String(x))],p&&0!==x),(0,i.default)(t,c["direction-xs-".concat(String(m))],m!==f.defaultProps.direction),(0,i.default)(t,c["wrap-xs-".concat(String(P))],P!==f.defaultProps.wrap),(0,i.default)(t,c["align-items-xs-".concat(String(n))],n!==f.defaultProps.alignItems),(0,i.default)(t,c["align-content-xs-".concat(String(a))],a!==f.defaultProps.alignContent),(0,i.default)(t,c["justify-xs-".concat(String(y))],y!==f.defaultProps.justify),(0,i.default)(t,c["grid-xs-".concat(String(L))],!1!==L),(0,i.default)(t,c["grid-sm-".concat(String(h))],!1!==h),(0,i.default)(t,c["grid-md-".concat(String(v))],!1!==v),(0,i.default)(t,c["grid-lg-".concat(String(g))],!1!==g),(0,i.default)(t,c["grid-xl-".concat(String(w))],!1!==w),t),u);return o.default.createElement(d,(0,l.default)({className:z},E))}t.styles=m,f.defaultProps={alignContent:"stretch",alignItems:"stretch",component:"div",container:!1,direction:"row",item:!1,justify:"flex-start",lg:!1,md:!1,sm:!1,spacing:0,wrap:"wrap",xl:!1,xs:!1,zeroMinWidth:!1};var b=(0,c.default)(m,{name:"MuiGrid"})(f);t.default=b},43198:(e,t,a)=>{"use strict";var n=a(595318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var i=n(a(967154)),r=n(a(859713)),l=n(a(506479)),o=n(a(667294)),s=(n(a(45697)),n(a(294184))),c=(n(a(234206)),n(a(78252))),u={root:{},horizontal:{paddingLeft:8,paddingRight:8,"&:first-child":{paddingLeft:0},"&:last-child":{paddingRight:0}},vertical:{},alternativeLabel:{flex:1,position:"relative"},completed:{}};function d(e){var t,a=e.active,n=e.alternativeLabel,c=e.children,u=e.classes,d=e.className,p=e.completed,m=e.connector,f=e.disabled,b=e.index,y=e.last,g=e.orientation,v=(0,l.default)(e,["active","alternativeLabel","children","classes","className","completed","connector","disabled","index","last","orientation"]),h=(0,s.default)(u.root,u[g],(t={},(0,r.default)(t,u.alternativeLabel,n),(0,r.default)(t,u.completed,p),t),d);return o.default.createElement("div",(0,i.default)({className:h},v),m&&n&&0!==b&&o.default.cloneElement(m,{orientation:g,alternativeLabel:n,index:b,active:a,completed:p,disabled:f}),o.default.Children.map(c,(function(e){return o.default.isValidElement(e)?o.default.cloneElement(e,(0,i.default)({active:a,alternativeLabel:n,completed:p,disabled:f,last:y,icon:b+1,orientation:g},e.props)):null})))}t.styles=u,d.defaultProps={active:!1,completed:!1,disabled:!1};var p=(0,c.default)(u,{name:"MuiStep"})(d);t.default=p},608396:(e,t,a)=>{"use strict";var n=a(595318);Object.defineProperty(t,"Z",{enumerable:!0,get:function(){return i.default}});var i=n(a(43198))},57967:(e,t,a)=>{"use strict";var n=a(595318);
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var i=n(a(967154)),r=n(a(859713)),l=n(a(506479)),o=n(a(667294)),s=(n(a(45697)),n(a(294184))),c=n(a(78252)),u=function(e){return{root:{flex:"1 1 auto"},horizontal:{},vertical:{marginLeft:12,padding:"0 0 8px"},alternativeLabel:{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"},active:{},completed:{},disabled:{},line:{display:"block",borderColor:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600]},lineHorizontal:{borderTopStyle:"solid",borderTopWidth:1},lineVertical:{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24}}};function d(e){var t,a,n=e.active,c=e.alternativeLabel,u=e.classes,d=e.className,p=e.completed,m=e.disabled,f=(e.index,e.orientation),b=(0,l.default)(e,["active","alternativeLabel","classes","className","completed","disabled","index","orientation"]);return o.default.createElement("div",(0,i.default)({className:(0,s.default)(u.root,u[f],(t={},(0,r.default)(t,u.alternativeLabel,c),(0,r.default)(t,u.active,n),(0,r.default)(t,u.completed,p),(0,r.default)(t,u.disabled,m),t),d)},b),o.default.createElement("span",{className:(0,s.default)(u.line,(a={},(0,r.default)(a,u.lineHorizontal,"horizontal"===f),(0,r.default)(a,u.lineVertical,"vertical"===f),a))}))}t.styles=u,d.defaultProps={alternativeLabel:!1,orientation:"horizontal"};var p=(0,c.default)(u,{name:"MuiStepConnector"})(d);t.default=p},154718:(e,t,a)=>{"use strict";var n=a(595318);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=n(a(57967))},784839:(e,t,a)=>{"use strict";var n=a(595318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var i=n(a(859713)),r=n(a(667294)),l=(n(a(45697)),n(a(294184))),o=n(a(473897)),s=n(a(212553)),c=n(a(78252)),u=n(a(140577)),d=function(e){return{root:{display:"block",color:e.palette.text.disabled,"&$active":{color:e.palette.primary.main},"&$completed":{color:e.palette.primary.main},"&$error":{color:e.palette.error.main}},text:{fill:e.palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily},active:{},completed:{},error:{}}};t.styles=d;var p=r.default.createElement("circle",{cx:"12",cy:"12",r:"12"});function m(e){var t=e.completed,a=e.icon,n=e.active,c=e.error,d=e.classes;return"number"==typeof a||"string"==typeof a?c?r.default.createElement(s.default,{className:(0,l.default)(d.root,d.error)}):t?r.default.createElement(o.default,{className:(0,l.default)(d.root,d.completed)}):r.default.createElement(u.default,{className:(0,l.default)(d.root,(0,i.default)({},d.active,n))},p,r.default.createElement("text",{className:d.text,x:"12",y:"16",textAnchor:"middle"},a)):a}m.defaultProps={active:!1,completed:!1,error:!1};var f=(0,c.default)(d,{name:"MuiStepIcon"})(m);t.default=f},508248:(e,t,a)=>{"use strict";var n=a(595318);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=n(a(784839))},677674:(e,t,a)=>{"use strict";var n=a(595318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var i=n(a(967154)),r=n(a(859713)),l=n(a(506479)),o=n(a(667294)),s=(n(a(45697)),n(a(294184))),c=(a(593142),n(a(78252))),u=n(a(571426)),d=n(a(508248)),p=function(e){return{root:{display:"flex",alignItems:"center","&$alternativeLabel":{flexDirection:"column"},"&$disabled":{cursor:"default"}},horizontal:{},vertical:{},label:{color:e.palette.text.secondary,"&$active":{color:e.palette.text.primary,fontWeight:500},"&$completed":{color:e.palette.text.primary,fontWeight:500},"&$alternativeLabel":{textAlign:"center",marginTop:16},"&$error":{color:e.palette.error.main}},active:{},completed:{},error:{},disabled:{},iconContainer:{flexShrink:0,display:"flex",paddingRight:8,"&$alternativeLabel":{paddingRight:0}},alternativeLabel:{},labelContainer:{width:"100%"}}};function m(e){var t,a,n=e.active,c=e.alternativeLabel,p=e.children,m=e.classes,f=e.className,b=e.completed,y=e.disabled,g=e.error,v=e.icon,h=(e.last,e.optional),x=e.orientation,P=e.StepIconComponent,w=e.StepIconProps,L=(0,l.default)(e,["active","alternativeLabel","children","classes","className","completed","disabled","error","icon","last","o
2ptional","orientation","StepIconComponent","StepIconProps"]),S=P;return v&&!S&&(S=d.default),o.default.createElement("span",(0,i.default)({className:(0,s.default)(m.root,m[x],(t={},(0,r.default)(t,m.disabled,y),(0,r.default)(t,m.alternativeLabel,c),(0,r.default)(t,m.error,g),t),f)},L),v||S?o.default.createElement("span",{className:(0,s.default)(m.iconContainer,(0,r.default)({},m.alternativeLabel,c))},o.default.createElement(S,(0,i.default)({completed:b,active:n,error:g,icon:v},w))):null,o.default.createElement("span",{className:m.labelContainer},o.default.createElement(u.default,{component:"span",className:(0,s.default)(m.label,(a={},(0,r.default)(a,m.alternativeLabel,c),(0,r.default)(a,m.completed,b),(0,r.default)(a,m.active,n),(0,r.default)(a,m.error,g),a))},p),h))}t.styles=p,m.defaultProps={active:!1,alternativeLabel:!1,completed:!1,disabled:!1,error:!1,last:!1,orientation:"horizontal"},m.muiName="StepLabel";var f=(0,c.default)(p,{name:"MuiStepLabel"})(m);t.default=f},824398:(e,t,a)=>{"use strict";var n=a(595318);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=n(a(677674))},907070:(e,t,a)=>{"use strict";var n=a(595318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.styles=void 0;var i=n(a(967154)),r=n(a(859713)),l=n(a(506479)),o=n(a(667294)),s=(n(a(45697)),n(a(294184))),c=n(a(78252)),u=n(a(168821)),d=n(a(154718)),p={root:{display:"flex",padding:24},horizontal:{flexDirection:"row",alignItems:"center"},vertical:{flexDirection:"column"},alternativeLabel:{alignItems:"flex-start"}};function m(e){var t=e.activeStep,a=e.alternativeLabel,n=e.children,c=e.classes,d=e.className,p=e.connector,m=e.nonLinear,f=e.orientation,b=(0,l.default)(e,["activeStep","alternativeLabel","children","classes","className","connector","nonLinear","orientation"]),y=(0,s.default)(c.root,c[f],(0,r.default)({},c.alternativeLabel,a),d),g=o.default.isValidElement(p)?o.default.cloneElement(p,{orientation:f}):null,v=o.default.Children.toArray(n),h=v.map((function(e,n){var r={alternativeLabel:a,connector:p,last:n+1===v.length,orientation:f},l={index:n,active:!1,completed:!1,disabled:!1};return t===n?l.active=!0:!m&&t>n?l.completed=!0:!m&&t<n&&(l.disabled=!0),[!a&&g&&0!==n&&o.default.cloneElement(g,(0,i.default)({key:n},l)),o.default.cloneElement(e,(0,i.default)({},r,l,e.props))]}));return o.default.createElement(u.default,(0,i.default)({square:!0,elevation:0,className:y},b),h)}t.styles=p,m.defaultProps={activeStep:0,alternativeLabel:!1,connector:o.default.createElement(d.default,null),nonLinear:!1,orientation:"horizontal"};var f=(0,c.default)(p,{name:"MuiStepper"})(m);t.default=f},821997:(e,t,a)=>{"use strict";var n=a(595318);Object.defineProperty(t,"Z",{enumerable:!0,get:function(){return i.default}});var i=n(a(907070))},473897:(e,t,a)=>{"use strict";var n=a(595318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(a(667294)),r=n(a(146949)),l=n(a(140577)),o=i.default.createElement("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),s=function(e){return i.default.createElement(l.default,e,o)};(s=(0,r.default)(s)).muiName="SvgIcon";var c=s;t.default=c},212553:(e,t,a)=>{"use strict";var n=a(595318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(a(667294)),r=n(a(146949)),l=n(a(140577)),o=i.default.createElement("path",{d:"M1 21h22L12 2
21 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),s=function(e){return i.default.createElement(l.default,e,o)};(s=(0,r.default)(s)).muiName="SvgIcon";var c=s;t.default=c},347348:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){return function(){return null}};t.default=a},838302:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>se});var n=a(667294),i=a.n(n),r=a(45697),l=a.n(r),o=a(793962),s=a(556261),c=a(615400),u=a(336817),d=a(97845),p=a(633311),m=a(953557),f=a(360869),b=a(74103),y=a(730381),g=a.n(y),v=a(749797),h=a(168821),x=a(821997),P=a(608396),w=a(824398),L=a(483638),S=a(571426),E=a(230866),z=a(230627),k=a(827973),N=a(248304),_=a(907554),C=a(108330),j=a(933084),T=a(22693),R=a(9887),O=a(231657),M=a(991629);const D=[{label:"Preview",type:"Buttons",id:"previewMode",props:{labels:[i().createElement("i",{className:"nc-icon-mini ui-1_check-square-11"}),i().createElement("i",{className:"nc-icon-mini business_currency-dollar"}),i().createElement("i",{className:"nc-icon-mini ui-1_check-curve"})],values:[0,1,2],tooltips:["Revision","Payment","Confirmation"]}},{label:"Options",type:"Section",id:"optionsSection",unlocks:[{label:"Display microchip number",type:"Optional",id:"step1Q2ChipNumberActive"}]},{label:"Limite pour les pièces jointes",type:"Section",id:"limitFileUploadSection",unlocks:[{type:"Nested",id:"limitFileUpload",props:{repeatable:!1,options:[{label:"Taille limite",type:"Number",id:"maxSize",description:"0 = pas de limite"},{label:"Unité",type:"Select",id:"sizeUnit",props:{labels:["ko","mo"],values:["ko","mo"]}},{label:"Précision à l'affichage",type:"Number",id:"precision",description:"ex: 0 => 700 ko | 2 => 10.54 mo"}],description:function(e){return 0===parseInt(e.maxSize,10)?"-":"".concat((parseFloat(e.maxSize)||0).toFixed(e.precision)," ").concat(e.sizeUnit)}}}]},{label:"Config",type:"Section",id:"configSection",unlocks:[{label:"Authorization letter",type:"LocalizedString",id:"authorizationLetter"}]},{label:"Translations",type:"Section",id:"translationsSection",unlocks:[{label:"Order review",type:"Section",id:"step3Section",unlocks:[{label:"New",type:"LocalizedString",id:"newLicense"},{label:"Renew",type:"LocalizedString",id:"renewLicense"},{label:"Medal",type:"LocalizedString",id:"replaceMedal"},{label:"Title",type:"LocalizedString",id:"step3Title"},{label:"Special price",type:"LocalizedString",id:"step3SpecialAmount"},{label:"Pay amount",type:"LocalizedString",id:"step3PayAmount"},{label:"Paid amount",type:"LocalizedString",id:"step3PayedAmount"},{label:"Total",type:"LocalizedString",id:"step3Total"},{label:"Not taxable",type:"LocalizedString",id:"step3NotTaxable"},{label:"Animal",type:"LocalizedString",id:"step3Review"},{label:"Name",type:"LocalizedString",id:"step3NameReview"},{label:"Type",type:"LocalizedString",id:"step3TypeReview"},{label:"Breed",type:"LocalizedString",id:"step3BreedReview"},{label:"Guide",type:"LocalizedString",id:"step3GuideDogReview"},{label:"Sterilized",type:"LocalizedString",id:"step3Q1Review"},{label:"Microchipped",type:"LocalizedString",id:"step3Q2Review"},{label:"Tattooed",type:"LocalizedString",id:"step3Q3Review"},{label:"Vaccinated",type:"LocalizedString",id:"step3Q4Review"},{label:"Free license",type:"LocalizedString",id:"step3FreeReview"},{label:"Declaration true info",type:"LocalizedString",id:"step1DeclarationTrueInfo"},{label:"Declaration cruelty",type:"LocalizedString",id:"step1DeclarationCruelty"},{label:"Authorization",type:"LocalizedString",id:"step1Authorization"},{label:"Authorization",type:"LocalizedString",id:"step1AuthorizationComp"},{label:"Special permit (cats)",type:"LocalizedString",id:"step1SpecialPermitCats"},{label:"Special permit (dogs)",type:"LocalizedString",id:"step1SpecialPermitDogs"},{label:"Special permit",type:"LocalizedString",id:"step1SpecialPermit"},{label:"Missing required files",type:"LocalizedString",id:"step1SpecialPermitMissing"},{label:"Missing medal number",type:"LocalizedString",id:"step1MedalMissing"},{label:"Own cats",type:"LocalizedString",id:"labelOwnCats"},{label:"Total cats",type:"LocalizedString",id:"labelTotalCats"},{label:"Total cat",type:"LocalizedString",id:"labelTotalCat"},{label:"Personal Info",type:"LocalizedString",id:"labelPersonalInfo"}]},{label:"Duplicates",type:"Section",id:"step3DuplicateSection",unlocks:[{label:"Fields duplicated",type:"LocalizedString",id:"step3Duplicated"},{label:"Basic info",type:"LocalizedString",id:"step3DuplicatedBaseInfo"},{label:"Chip number",type:"LocalizedString",id:"step3DuplicatedChipNumber"}]},{label:"Payment",type:"Section",id:"step4Section",unlocks:[{label:"Title",type:"LocalizedString",id:"step4Title"},{label:"Payed by",type:"LocalizedString",id:"labelPayedBy"},{label:"Payed on",type:"LocalizedString",id:"labelPayedOn"},{label:"Localisation",type:"LocalizedString",id:"labelLocalisation"}
2,{label:"Debit",type:"LocalizedString",id:"labelAmountDebit"},{label:"Money",type:"LocalizedString",id:"labelAmountMoney"},{label:"Check",type:"LocalizedString",id:"labelAmountCheck"},{label:"Order",type:"LocalizedString",id:"labelAmountOrder"},{label:"Paid",type:"LocalizedString",id:"labelAmountPaid"}]},{label:"Confirmation",type:"Section",id:"step5Section",unlocks:[{label:"Title",type:"LocalizedString",id:"step5Title"},{label:"Success",type:"LocalizedString",id:"labelSuccess"},{label:"Success (medal: avec PJ)",type:"LocalizedString",id:"labelSuccessMedal"},{label:"Success (medal: sans PJ)",type:"LocalizedString",id:"labelSuccessMedalProcessed"},{label:"Success (medal: sans PJ)",type:"LocalizedString",id:"labelSuccessMedalMissingFile"},{label:"Success (renew: avec PJ)",type:"LocalizedString",id:"labelSuccessRenew"},{label:"Success (renew: sans PJ)",type:"LocalizedString",id:"labelSuccessRenewProcessed"},{label:"Basket number",type:"LocalizedString",id:"labelBasketNumber"},{label:"Transaction number",type:"LocalizedString",id:"labelTransactionNumber"}]},{label:"Others",type:"Section",id:"otherSection",unlocks:[{label:"Remove",type:"LocalizedString",id:"step2QuestionRemove"},{label:"Remove basket",type:"LocalizedString",id:"step2QuestionRemoveBasket"},{label:"Remove permanently",type:"LocalizedString",id:"step2QuestionRemoveUndone"},{label:"Remove error",type:"LocalizedString",id:"labelErrorRemove"},{label:"Year",type:"LocalizedString",id:"step1Year"},{label:"Years",type:"LocalizedString",id:"step1Years"},{label:"Period (guide dog)",type:"LocalizedString",id:"step1PeriodGuide"},{label:"Error",type:"LocalizedString",id:"labelError"},{label:"Renew",type:"LocalizedString",id:"labelSuccessRenew"},{label:"Male",type:"LocalizedString",id:"labelMale"},{label:"Female",type:"LocalizedString",id:"labelFemale"},{label:"Cancel",type:"LocalizedString",id:"labelCancel"},{label:"Previous",type:"LocalizedString",id:"labelPrevious"},{label:"Next",type:"LocalizedString",id:"labelNext"},{label:"Add",type:"LocalizedString",id:"labelAdd"},{label:"Edit",type:"LocalizedString",id:"labelEdit"},{label:"Remove",type:"LocalizedString",id:"labelRemove"},{label:"Optional",type:"LocalizedString",id:"labelOptional"},{label:"Validate",type:"LocalizedString",id:"labelValidate"},{label:"Empty basket",type:"LocalizedString",id:"labelEmptyBasket"},{label:"Empty basket (employee)",type:"LocalizedString",id:"labelEmployeeEmptyBasket"},{label:"Owner space",type:"LocalizedString",id:"labelBackAccount"},{label:"User profile",type:"LocalizedString",id:"labelUserProfile"},{label:"Not found",type:"LocalizedString",id:"labelLicenseNotFound"},{label:"Invalid license on medal request",type:"LocalizedString",id:"step3InvalidMedal"}]}]}];var A=a(155271);const F={type:"formComponent",defaults:{marginPadding:{"padding-top":"10px","padding-right":"30px","padding-bottom":"25px","padding-left":"30px","margin-top":"0px","margin-right":"auto","margin-bottom":"0px","margin-left":"auto"},margin:{"margin-top":"0px","margin-right":"auto","margin-bottom":"0px","margin-left":"auto"},useMaxWidth:!0,maxWidth:"1200px"},rules:function(e){return{root:(0,A.Z)({}).setDisplay(e.display).setPosition(e.position).setMarginPadding(e.marginPadding).when(e.useMaxWidth).setProperty("maxWidth",e.maxWidth).setProperty("width","100%").setProperty("textAlign","left").rules}}}
vendor: 4,997 bytes, line 2
2,B="KeFu5ve6xjqncD0b7r9LwA==",I="bBh+AdtupX-IC-My2+OBag==",V="EdII7eR3lRKsLPBvfqQPWw==",q="wMLruhpgAOdB1Ya3hkWgwg==",Q="VMKJzK6fig1cC42D1iqNeg==";var Z,Y,U;function W(e){return W="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},W(e)}function G(){G=function(){return e};var e={},t=Object.prototype,a=t.hasOwnProperty,n=Object.defineProperty||function(e,t,a){e[t]=a.value},i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",o=i.toStringTag||"@@toStringTag";function s(e,t,a){return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,a){return e[t]=a}}function c(e,t,a,i){var r=t&&t.prototype instanceof p?t:p,l=Object.create(r.prototype),o=new E(i||[]);return n(l,"_invoke",{value:P(e,a,o)}),l}function u(e,t,a){try{return{type:"normal",arg:e.call(t,a)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function p(){}function m(){}function f(){}var b={};s(b,r,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(z([])));g&&g!==t&&a.call(g,r)&&(b=g);var v=f.prototype=p.prototype=Object.create(b);function h(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function i(n,r,l,o){var s=u(e[n],e,r);if("throw"!==s.type){var c=s.arg,d=c.value;return d&&"object"==W(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){i("next",e,l,o)}),(function(e){i("throw",e,l,o)})):t.resolve(d).then((function(e){c.value=e,l(c)}),(function(e){return i("throw",e,l,o)}))}o(s.arg)}var r;n(this,"_invoke",{value:function(e,a){function n(){return new t((function(t,n){i(e,a,t,n)}))}return r=r?r.then(n,n):n()}})}function P(e,t,a){var n="suspendedStart";return function(i,r){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw r;return k()}for(a.method=i,a.arg=r;;){var l=a.delegate;if(l){var o=w(l,a);if(o){if(o===d)continue;return o}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===n)throw n="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);n="executing";var s=u(e,t,a);if("normal"===s.type){if(n=a.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(n="completed",a.method="throw",a.arg=s.arg)}}}function w(e,t){var a=e.iterator[t.method];if(void 0===a){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=u(a,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function z(e){if(e){var t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(a.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:k}}function k(){return{value:void 0,done:!0}}return m.prototype=f,n(v,"constructor",{value:f,configurable:!0}),n(f,"constructor",{value:m,configurable:!0}),m.displayName=s(f,o,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,s(e,o,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},h(x.prototype),s(x.prototype,l,(function(){return this})),e.AsyncIterator=x,e.async=function(t,a,n,i,r){void 0===r&&(r=Promise);var l=new x(c(t,a,n,i),r);return e.isGeneratorFunction(a)?l:l.next().then((function(e){return e.done?e.value:l.next()}))},h(v),s(v,o,"Generator"),s(v,r,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),a=[];for(var n in t)a.push(n);return a.reverse(),function e(){for(;a.length;){var n=a.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=z,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEac
2h(S),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(a,n){return l.type="throw",l.arg=e,t.next=a,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],l=r.completion;if("root"===r.tryLoc)return n("end");if(r.tryLoc<=this.prev){var o=a.call(r,"catchLoc"),s=a.call(r,"finallyLoc");if(o&&s){if(this.prev<r.catchLoc)return n(r.catchLoc,!0);if(this.prev<r.finallyLoc)return n(r.finallyLoc)}else if(o){if(this.prev<r.catchLoc)return n(r.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return n(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var l=r?r.completion:{};return l.type=e,l.arg=t,r?(this.method="next",this.next=r.finallyLoc,d):this.complete(l)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.finallyLoc===e)return this.complete(a.completion,a.afterLoc),S(a),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.tryLoc===e){var n=a.completion;if("throw"===n.type){var i=n.arg;S(a)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,a){return this.delegate={iterator:z(e),resultName:t,nextLoc:a},"next"===this.method&&(this.arg=void 0),d}},e}function $(e,t,a,n,i,r,l){try{var o=e[r](l),s=o.value}catch(e){return void a(e)}o.done?t(s):Promise.resolve(s).then(n,i)}function J(e){return function(){var t=this,a=arguments;return new Promise((function(n,i){var r=e.apply(t,a);function l(e){$(r,n,i,l,o,"next",e)}function o(e){$(r,n,i,l,o,"throw",e)}l(void 0)}))}}function H(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function K(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ee(e,t){return ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ee(e,t)}function te(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(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}}();return function(){var a,n=ne(e);if(t){var i=ne(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return ae(this,a)}}function ae(e,t){if(t&&("object"===W(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ne(e){return ne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ne(e)}function ie(e,t,a,n,i){var r={};return Object.keys(n).forEach((function(e){r[e]=n[e]})),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=a.slice().reverse().reduce((function(a,n){return n(e,t,a)||a}),r),i&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),void 0===r.initializer&&(Object.defineProperty(e,t,r),r=null),r}var re=["cvc","expiryMonth","expiryYear","name","number","type"],le=["payedBy","payedOn","localisation","amountPaid"],oe=["payedBy","payedOn","localisation","amountPaid"],se=(0,f.Z)({copyStatics:["defaultProps"]})(Z=(0,s.JQ)((function(e,t){var a=e.getIn(["account","rights","groupMembership"]),n=a.includes("GROUP_GESTIONAIRES")||a.includes("GROUP_ADMIN"),i=n||a.includes("GROUP_EMPLOYEE"),r=i&&t.router&&t.router.location.query.userId,l=(0,d.VX)(e,"arrondissementsPrefs"),o=(0,d.FI)(e,"arrondissementsPrefs");return{userId:r?r.replace("h::",""):null,locale:e.getIn(["language","locale"]),token:e.getIn(["account","token"]),loading:o,placeOptions:l&&l.properties&&l.properties.values,settings:(0,d.jQ)(e),isEmployee:i,isGestionaire:n}}),(function(e){return{onShowMessage:function(t){return e((0,u.PV)(t))},onShowNotice:function(t){return e((0,u.s6)(t))},onLoadListData:function(t){return e((0,c.Zz)(t))},onRefreshMenuButton:function(){return e((0,u.rd)())},goTo:function(t){return e((0,p.VF)(t))},goToAccount:function(){return e((0,u.ZE)())}}}))(Z=(0,s.D2)((function(e){return{container:{position:"absolute",width:"100%",left:"0%",top:"-4%",zIndex:1300},sectionTitle:{fontWeight:"bold",fontSize:"1.8rem"},subSectionTitle:{marginTop:"50px",fontWeight:"bold",fontSize:"1.8rem"},removePetForm:{width:"250px",margin:"10px auto",paddingTop:"20px"},removePetFormIcon:{marginRight:e.spacing.unit},reviewButtons:{minWidth:"36px",marginLeft:"10px"},reviewPetActions:{marginBottom:"10px"},reviewPetName:{margin:"6px 0"},addOptional:{margin:"20px"},addOptionalQuestion:{marginBottom:"20px",textAlign:"center"},buttons:{padding:"12px",textAlign:e.isRtl?"left":"right"},sep:{margin:"0"},listSep:{marginBottom:"0"},alignToRight:{textAlign:"right"},label:{color:"gray",fontSize:"1.4rem"},value:{fontSize:"1.4rem"},button:{marginRight:e.spacing.unit},buttonBack:{float:e.isRtl?"right":"left"},buttonBackMobile:{marginTop:e.spacing.unit,textAlign:e.isRtl?"right":"left"},content:{padding:"12px",width:"100%",textAlign:e.isRtl?"right":"left"},contentEmpty:{padding:"24px",width:"100%",textAlign:e.isRtl?"right":"left"},contentBasketNumber:{padding:"24px 24px 0 24px",width:"100%",textAlign:e.isRtl?"right":"left"},contentConfirmation:{padding:"24px 12px",width:"100%",textAlign:"center",fontSize:"1.6rem",fontWeight:"bold"},contentConfirmationPet:{padding:"12px",width:"100%",textAlign:"center",fontSize:"1.6rem",fontWeight:"bold"},contentReview:{padding:"5px",width:"100%",textAlign:e.isRtl?"right":"left"},valueList:{padding:0,width:"100%",fontSize:"1.4rem",textAlign:e.isRtl?"left":"right",listStylePosition:"inside"},payment:{padding:"12px",maxWidth:"700px",margin:"0 auto"},paymentContent:{width:"100%",padding:"12px 0",fontSize:"1.4rem"},paper:{padding:"12px"},paperContent:{padding:"0px"},checkboxContainer:{padding:"10px",backgroundColor:"#eee",borderRadius:"10px",marginBottom:"5px"},photo:{position:"relative",backgroundColor:"#eee",borderRadius:"5px",width:"250px",height:"250px",margin:"10px auto",overflow:"hidden"},photoReview:{position:"relative",backgroundColor:"#eee",borderRadius:"5px",maxWidth:"100px",maxHeight:"100px",overflow:"hidden"},duplicatedReview:{margin:"5px",fontSize:"1.4rem"},duplicateList:{margin:0},duplicateIcon:{margin:"0 auto",verticalAlign:"inherit",paddingLeft:"5px"},duplicateIconTitle:{margin:"0 auto",verticalAlign:"inherit",paddingRight:"5px"},questionSwitch:{margin:"12px 0"},questionRequired:{color:"#f44336"},inputSwitch:{textAlign:"right"},photoUpload:{width:"250px",height:"50px",margin:"10px auto"},photoIcon:{margin:0,color:"#999",position:"absolute",top:"45%",left:"50%",transform:"translate(-50%, -50%)"},photoIconReview:{margin:0,color:"#999",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},loader:{width:"100%",textAlign:"center",display:"block",padding:"14px"},linkColor:{color:e.palette.primary1Color}}}),{withTheme:!0})((U=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ee(e,t)}(l,e);var t,a,n,r=te(l);function l(){var e;K(this,l);for(var t=arguments.length,a=new Array(t),n=0;n<t;n++)a[n]=arguments[n];return(e=r.call.apply(r,[this].concat(a))).handleChangeSwitch=function(t){return function(a){var n;e.setState((H(n={},t,a.target.checked),H(n,"".concat(t,"_error"),void 0),n),e.validateStep)}},e.cancelRemovePet=function(t){e.setState({removePet:null})},e.confirmRemovePet=function(t){return function(a){var n=e.props,i=n.token,r=n.userId,l=n.isEmployee,s=n.labelErrorRemove,c=n.localized,u=n.onShowMessage,d=n.goTo,p={animalId:e.state["petLicense".concat(t,".iid")],userId:r};e.setState({waiting:!0},(function(){return o.h.userAnimalRemove(i,p).then((function(t){t&&"OK"===t.code?setTimeout((function(){d(l&&r?"/account/petBasket?userId=".concat(r):"/account/petBasket")}),5e3):e.setState({waiting:!1,removePet:null},(function(){return u(c(s))}))})).catch((function(t){e.setState({waiting:!1,removePet:null},(function(){return u(c(s))}))}))}))}},e.handleOnLoad=J(G().mark((function t(){var a,n,i,r;return G().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=function(){return new Promise((function(e){setTimeout((function(){e("resolved")}),200)}))},n=e.props,i=n.localized,r=n.altertTextCONumberValidation,t.next=4,a();case 4:window.alert(i(r));case 5:case"end":return t.stop()}}),t)}))),e.handleNext=function(){var t=e.props.isEmployee,a=e.state.activeStep;t&&e.handleOnLoad(),e.setState({anchor:null,activeStep:a+1},e._scrollToTop)},e.handleBack=function(){var t=e.state.activeStep;e.setState((function(e){return{anchor:null,activeStep:t-1}}),e._scrollToTop)},e.handleValidate=function(){var t=e.props,a=t.token,n=t.locale,i=t.userId,r=t.labelError,l=t.localized,s=t.isEmployee,c=t.onRefreshMenuButton,u=e.state,d=u.cvc,p=u.expiryMonth,m=u.expiryYear,f=u.name,b=u.number,y=u.type,g=u.userPetList,v=u.totalToPay,h=u.step1AuthorizationFile,x=u.payedBy,P=u.payedOn,w=u.localisation,L=u.amountDebit,S=u.amountMoney,E=u.amountCheck,z=u.amountOrder,k=u.basketNumber,N=Array.from(g.values()).reduce((function(t,a){var n=[{iid:e.state["petLicense".concat(a,".iid")],medalPrice
2:e.getPetPrice(a,"medal").toFixed(2),licensePrice:e.getPetPrice(a,"license").toFixed(2),basketPeriod:e.state["petLicense".concat(a,".basketPeriod")],isDangerous:e._isPetDangerous(a)}];return t.concat(n)}),[]),_=new Date(Date.now()).toLocaleDateString(),C={userId:i,locale:n,date:s&&P?P.toDate().toLocaleDateString():_,animalList:N,cardNumber:s?null:b,cardName:s?null:f,cardType:s?null:y,cardExpiry:!s&&p&&m?"".concat(p,"/").concat(m):null,cardCVC:s?null:d,payedBy:s?x:null,localisation:s?w:null,basketNumber:s?k:null,paymentAmountDebit:s?parseFloat(L).toFixed(2):null,paymentAmountMoney:s?parseFloat(S).toFixed(2):null,paymentAmountCheck:s?parseFloat(E).toFixed(2):null,paymentAmountOrder:s?parseFloat(z).toFixed(2):null,paymentAmount:parseFloat(v).toFixed(2),paymentCurrency:"$",authorizationFile:h&&h[0]||null};e.setState({waiting:!0},(function(){return o.h.petBasketRequest(a,C).then((function(t){t&&"OK"===t.code?setTimeout((function(){return e.setState({waiting:!1,activeStep:2,requiredFileList:t.requiredFileList||[],transactionNumber:t.transactionNumber,authorizationNumber:t.authorizationNumber},(function(){return c()}))}),3e3):e.setState({waiting:!1,response:t.error?"".concat(t.error," ").concat(l(r)):l(r)})})).catch((function(t){e.setState({waiting:!1,response:t.error?"".concat(t.error," ").concat(l(r)):l(r)})}))}))},e}return t=l,a=[{key:"getInitState",value:function(){if(this._textPropertySetters={},this._selectPropertySetters={},this._callbacks={amountDebit:this.refreshPaidValue(),amountMoney:this.refreshPaidValue(),amountCheck:this.refreshPaidValue(),amountOrder:this.refreshPaidValue(),step1DeclarationTrueInfo:this.refreshPaidValue(),step1DeclarationCruelty:this.refreshPaidValue(),basketNumber:this.basketNumberChanged()},this._validators={},this.props.relax.building||this.props.relax.editing)return{activeStep:this.props.previewMode,totalToPay:20,payedOn:g(),waiting:!1,anchor:null,response:null,petOrder:2,duplicates:{1:["baseInfo","chipNumber"]},invalidMedals:[],petCountByType:{dog:{pay:{},free:{},medal:0},cat:{pay:{2:1},free:{},medal:0}},userPetList:new Set([1,2]),petInfo:this.initPetInfo(),"petLicense1.name":"Duggie","petLicense1.type":"dog","petLicense1.basketState":["new"],"petLicense1.animalType":"Dog","petLicense1.breed":"dog_223","petLicense1.animalBreed":"Akita Inu","petLicense1.sex":"Male","petLicense1.color":"Caramel","petLicense1.birthdate":g()().subtract(1300,"days"),"petLicense1.weight":"25","petLicense1.step1Q1":!0,"petLicense1.step1Q2":!0,"petLicense1.step1Q4":!0,"petLicense1.step1DogGuide":!0,"petLicense2.name":"Minou","petLicense2.type":"cat","petLicense2.basketState":["renew"],"petLicense2.animalType":"Cat","petLicense2.breed":"cat_057","petLicense2.animalBreed":"Bengal","petLicense2.sex":"Male","petLicense2.color":"Noir","petLicense2.birthdate":g()().subtract(500,"days"),"petLicense2.weight":"15","petLicense2.step1Q1":!0,cvc:"123",expiryMonth:"11",expiryYear:"22",name:"Jean Dupont",number:"4111 1111 1111 1111",type:"visa",userName:"Harry Potter",amountPaid:"0.00",amountPaid_disabled:!0,step0_valid:!0,step1_valid:!0};var e=new Date(Date.now()).toLocaleDateString();return{activeStep:0,totalToPay:0,payedOn:g()(),waiting:!0,anchor:null,response:null,petOrder:1,amountPaid:"0.00",amountPaid_disabled:!0,specialPermit:{},invalidMedals:[],missingDocs:[],missingMedalNumber:[],requiredFileList:[],duplicates:{},petCountByType:{},userPetList:new Set([1]),petInfo:this.initPetInfo(),date:e}}},{key:"componentDidMount",value:function(){var e=this.props,t=e.relax,a=e.onLoadListData,n=e.isEmployee;t.building||t.editing||(n&&a("arrondissementsPrefs"),this.onLoadBasketData())}},{key:"initPetInfo",value:function(){var e=this.props.settings;return e.petListConfig?{types:e.petListConfig.filter((function(e){return e.petCode&&e.petLicense})).reduce((function(e,t){return Object.assign(e,H({},t.petCode,t))}),{})}:{types:{}}}},{key:"getLimitValues",value:function(){var e=this.props.limitFileUpload;return{maxSize:e&&parseFloat(e[0].maxSize)||1,precision:e&&e[0].precision||2,sizeDisplay:this._getUnitDisplay(e&&e[0].sizeUnit||"mo"),unitValue:this._getUnitV
2alue(e&&e[0].sizeUnit||"mo")}}},{key:"_getUnitDisplay",value:function(e){var t=this.props.locale;switch(e){case"ko":return"en"===t?"kb":"ko";case"mo":return"en"===t?"mb":"mo";default:return""}}},{key:"onLoadBasketData",value:function(){var e=this,t=this.props,a=t.token,n=t.locale,i=t.userId,r=t.localized,l=t.labelError,s=t.labelEmptyBasket,c=t.labelEmployeeEmptyBasket,u=t.isEmployee,d=this.state,p=d.petOrder,m=d.userPetList,f={waiting:!1},b={},y=!1,v=!1;o.h.userAnimalBasket(a,i,n).then((function(t){t&&t.petList&&t.petList.length>0?(b=t.petList.reduce((function(e,t){var a;Object.keys(e).length>0&&(p+=1,m.add(p)),t.type;var n=(H(a={},"petLicense".concat(t.index,".picture"),t.picture?[t.picture]:[]),H(a,"petLicense".concat(t.index,".iid"),t.iid),H(a,"petLicense".concat(t.index,".name"),t.name),H(a,"petLicense".concat(t.index,".type"),t.type),H(a,"petLicense".concat(t.index,".animalType"),t.animalType),H(a,"petLicense".concat(t.index,".breed"),t.breed),H(a,"petLicense".concat(t.index,".animalBreed"),t.animalBreed),H(a,"petLicense".concat(t.index,".sex"),t.sex),H(a,"petLicense".concat(t.index,".birthdate"),t.birthdate&&g()(t.birthdate,"YYYY-MM-DD")),H(a,"petLicense".concat(t.index,".color"),t.color),H(a,"petLicense".concat(t.index,".weight"),t.weight),H(a,"petLicense".concat(t.index,".sign"),t.sign),H(a,"petLicense".concat(t.index,".dangerous"),t.dangerous),H(a,"petLicense".concat(t.index,".basketState"),t.basketState),H(a,"petLicense".concat(t.index,".basketPeriod"),t.basketPeriod),H(a,"petLicense".concat(t.index,".step1Q1"),t.sterilized),H(a,"petLicense".concat(t.index,".step1Q2"),t.microChipped),H(a,"petLicense".concat(t.index,".step1Q2ChipNumber"),"true"===t.microChipped?t.microChipNumber:null),H(a,"petLicense".concat(t.index,".step1Q4"),t.vaccinatedRabies),H(a,"petLicense".concat(t.index,".step1DogGuide"),t.dogGuide),H(a,"petLicense".concat(t.index,".medalNumber"),t.medalNumber),H(a,"petLicense".concat(t.index,".newMedalNumber"),t.newMedalNumber),H(a,"petLicense".concat(t.index,".specialPrice"),t.specialPrice),a);return y=y||t.basketState.includes("new"),v=v||t.basketState.includes("renew"),Object.assign({},e,n)}),{}),f={waiting:!1,activeStep:0,petOrder:p,userPetList:m,isMinor:t.isMinor||!1,totalCats:t.totalCats,userName:t.userName,basketNumber:t.basketNumber,hasNewRequest:y,hasRenewRequest:v},e.setState(Object.assign({userPetList:m},b),(function(){e.setState(Object.assign({petCountByType:e._getPetCountByType(),totalToPay:e._getTotalToPay(),payedOn:g()()},f),e.validatePetBasket)}))):(f={waiting:!1,response:r(u?c:s)},e.setState(f))})).catch((function(t){f={waiting:!1,response:r(l)},e.setState(f)}))}},{key:"getPositiveValueOrZero",value:function(e){var t=0;return null!=e&&""!==e&&(t=parseFloat(e)),t>0?t:0}},{key:"refreshPaidValue",value:function(){var e=this;return this.props.fields,function(t,a){var n,i,r,l;switch(a instanceof String&&(""===a||a.contains("-"))&&(a=0),(a=parseFloat(a))<0&&(a=0),t){case"amountDebit":n=a||0,i=e.getPositiveValueOrZero(e.state.amountMoney),r=e.getPositiveValueOrZero(e.state.amountCheck),l=e.getPositiveValueOrZero(e.state.amountOrder);break;case"amountMoney":n=e.getPositiveValueOrZero(e.state.amountDebit),i=a||0,r=e.getPositiveValueOrZero(e.state.amountCheck),l=e.getPositiveValueOrZero(e.state.amountOrder);break;case"amountCheck":n=e.getPositiveValueOrZero(e.state.amountDebit),i=e.getPositiveValueOrZero(e.state.amountMoney),r=a||0,l=e.getPositiveValueOrZero(e.state.amountOrder);break;case"amountOrder":n=e.getPositiveValueOrZero(e.state.amountDebit),i=e.getPositiveValueOrZero(e.state.amountMoney),r=e.getPositiveValueOrZero(e.state.amountCheck),l=a||0;break;default:n=e.getPositiveValueOrZero(e.state.amountDebit),i=e.getPositiveValueOrZero(e.state.amountMoney),r=e.getPositiveValueOrZero(e.state.amountCheck),l=e.getPositiveValueOrZero(e.state.amountOrder)}if(e.state.totalToPay>0){var o=parseFloat(n)+parseFloat(i)+parseFloat(r)+parseFloat(l)||0,s=e.state.totalToPay;e.setState({amountPaid:o,amountPaid_error:s!==o},e.validateStep)}}}},{key:"basketNumberChanged",value:function(){var e=this;return function(t,a){e.setState(H({},t,(a||"").substring(0,16)),e.validateStep)}}},{key:"_scrollToTop",value:function(){window.scrollTo({top:0,behavior:"smooth"}),this.validateStep()}},{key:"_getTotalToPay",value:function(){var e=this,t=this.state.userPetList;return Array.from(t.values()).reduce((function(t,a){return t+e.getPetPrice(a,"*")}),0)}},{key:"getPetPrice",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"*",a=this.props.settings,n=this.state["petLicense".concat(e,".type")],i=this.state["petLicense".concat(e,".basketPeriod")],r=this._isPetFree(e),l=this._isPetDangerous(e),o=this.state["petLicense".concat(e,".basketState")],s=parseFloat(this.state["petLicense".concat(e,".specialPrice")]);if(!isNaN(s))return s;var c=0;if(!a.petListConfig)return c;var u=a.petListConfig.filter((function(e){return e.petCode&&e.petLicense})),d=u.reduce((function(e,t){return Object.assign(e,H({},t.petCode,t))}),{});return n&&i&&(o.includes("new")||o.includes("renew"))&&("*"===t||"license"===t)&&("dog"===n?r?c=0:c+=l?parseFloat(d[n].petDangerousPrice)*i:parseFloat(d[n].petLicensePrice)*i:c+=parseFloat(d[n].petLicensePrice)*i),!o.includes("medal")||"*"!==t&&"medal"!==t||(a.petListConfig[0].petLicensePrice=1,c+=parseFloat(d[n].petMedalPrice)),c}},{key:"_isPetFree",value:function(e){return"dog"===this.state["petLicense".concat(e,".type")]&&!!this.state["petLicense".concat(e,".step1DogGuide")]}},{key:"_isPetDangerous",value:function(e){return"dog"===this.state["petLicense".concat(e,".type")]&&!!this.state["petLicense".concat(e,".dangerous")]}},{key:"_getYesNoExemptionValue",value:function(e){var t=this.props,a=t.intl,n=t.labelExemption,i=t.localized,r=a.formatMessage({id:"ConfirmDialog.yes",defaultMessage:"Yes"}),l=a.formatMessage({id:"ConfirmDialog.no",defaultMessage:"No"});return"true"===e?r:"exemption"===e?i(n):l}},{key:"_getPetCountByType",value:function(){var e=this,t=this.state.userPetList;return Array.from(t.values()).reduce((function(t,a){var n=e._isPetFree(a),i=e._isPetDangerous(a),r=e.state["petLicense".concat(a,".type")],l=e.state["petLicense".concat(a,".basketPeriod")],o=e.state["petLicense".concat(a,".basketState")],s=parseFloat(e.state["petLicense".concat(a,".specialPrice")]),c=t[r]||{};if(o.includes("new")||o.includes("renew"))if(isNaN(s))c=n?Object.assign({},c,{free:Object.assign(c&&c.free||{},H({},l,(c&&c.free&&c.free[l]||0)+1))}):i?Object.assign({},c,{dangerous:Object.assign(c&&c.dangerous||{},H({},l,(c&&c.dangerous&&c.dangerous[l]||0)+1))}):Object.assign({},c,{pay:Object.assign(c&&c.pay||{},H({},l,(c&&c.pay&&c.pay[l]||0)+1))});else{var u="special-"+l+"-"+s;c=Object.assign({},c,{pay:Object.assign(c&&c.pay||{},H({},u,(c&&c.pay&&c.pay[u]||0)+1))})}return o.includes("medal")&&(c=Object.assign({}
2,c,{medal:(c&&c.medal||0)+1})),Object.assign({},t,H({},r,c))}),{})}},{key:"handleRemovePet",value:function(e){this.setState({removePet:e})}},{key:"handleEditPet",value:function(e){var t=this.props,a=t.userId,n=t.isEmployee,i=this.state["petLicense".concat(e,".iid")],r=this.state["petLicense".concat(e,".basketState")].includes("medal")?"medalId":"licenseId";window.location.href=n&&a?"/account/petInfo?".concat(r,"=").concat(i,"&userId=").concat(a,"&fromBasket=true"):"/account/petInfo?".concat(r,"=").concat(i,"&fromBasket=true")}},{key:"getSteps",value:function(){var e=this.props,t=e.relax,a=e.localized,n=e.step3Title,i=e.step4Title,r=e.step5Title,l=this.state.activeStep,o=[a(n),a(i),a(r)];return"mobile"===t.display?["","",""].map((function(e,t){return t===l?o[l]:e})):o}},{key:"getStepContent",value:function(e){var t=this.props.isEmployee;switch(e){case 0:return this.renderReview();case 1:return t?this.renderPaymentEmployee():this.renderPayment();case 2:return this.renderConfirmation();default:return"Unknown step"}}},{key:"renderPetPropertyReview",value:function(e,t){var a=this.props,n=a.relax,r=a.classes;return i().createElement(k.default,{container:!0,justify:"space-between",classes:{container:r.contentReview}},i().createElement(k.default,{item:!0,xs:"mobile"===n.display&&12,sm:12,lg:6,classes:{item:r.label}},e," :"),i().createElement(k.default,{item:!0,xs:"mobile"===n.display&&12,sm:12,lg:6,classes:{item:r.value}},t))}},{key:"renderConfirmation",value:function(){var e=this.props,t=e.localized,a=e.classes,n=e.step3Review,r=e.labelAmountDebit,l=e.labelAmountMoney,o=e.labelAmountCheck,s=e.labelAmountOrder,c=e.labelPayedBy,u=e.labelLocalisation,d=this.props,p=d.labelBasketNumber,m=d.labelTransactionNumber,f=d.labelAuthorizationNumber,b=d.isEmployee,y=d.placeOptions,g=d.locale,v=d.step3DateOfTransaction,h=this.state,x=h.userName,P=h.basketNumber,w=h.transactionNumber,L=h.authorizationNumber,S=h.amountDebit,E=h.amountMoney,z=h.amountCheck,N=h.amountOrder,_=h.payedBy,C=h.payedOn,j=h.localisation,T=this.getOptionsForLocale(y,g);return i().createElement(i().Fragment,null,i().createElement(k.default,{container:!0,classes:{container:a.content}},i().createElement(k.default,{item:!0,sm:12,md:8,lg:9,classes:{item:a.content}},i().createElement("div",{className:a.sectionTitle},b?"".concat(t(n),": ").concat(x):t(n)),i().createElement("hr",{className:a.listSep}),this.renderAnimalInfo(!1),i().createElement("hr",{className:a.listSep})),this.renderTotalToPay(!0),P&&i().createElement("div",{className:a.content},i().createElement("b",null,t(p),": ")," ",P),w&&i().createElement("div",{className:a.content},i().createElement("b",null,t(m),": ")," ",w),L&&i().createElement("div",{className:a.content},i().createElement("b",null,t(f),": ")," ",L),i().createElement("div",{className:a.content},i().createElement("b",null,t(v),": ")," ",b&&C?C.toDate().toLocaleDateString():this.state.date),b&&i().createElement(i().Fragment,null,parseFloat(S)>0&&i().createElement("div",{className:a.content},i().createElement("b",null,t(r),": ")," ",parseFloat(S).toFixed(2)),parseFloat(E)>0&&i().createElement("div",{className:a.content},i().createElement("b",null,t(l),": ")," ",parseFloat(E).toFixed(2)),parseFloat(z)>0&&i().createElement("div",{className:a.content},i().createElement("b",null,t(o),": ")," ",parseFloat(z).toFixed(2)),parseFloat(N)>0&&i().createElement("div",{className:a.content},i().createElement("b",null,t(s),": ")," ",parseFloat(N).toFixed(2)),i().createElement("div",{className:a.content},i().createElement("b",null,t(c),": ")," ",_),i().createElement("div",{className:a.content},i().createElement("b",null,t(u),": ")," ",T.filter((function(e){return e.value===j})).map((function(e){return e.label}))))))}},{key:"renderBasketState",value:function(e){var t=this.props,a=t.localized,n=t.newLicense,i=t.renewLicense,r=t.replaceMedal;switch(e){case"new":return a(n);case"renew":return a(i);case"medal":return a(r);default:return e}}},{key:"renderAnimalInfo",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a=this.props,n=a.localized,r=a.classes,l=a.step3Duplicated,o=a.step3DuplicatedBaseInfo,s=a.step3DuplicatedChipNumber,c=a.step3InvalidMedal,u=a.step1SpecialPermitMissing,d=a.step1MedalMissing,p=a.step1Q5,m=a.step1PeriodGuide,f=a.step1Year,b=a.step1Years,y=a.labelSuccess,g=a.labelSuccessMedal,v=a.labelSuccessMedalMissingFile,h=a.labelSuccessRenewProcessed,x=a.labelSuccessRenew,P=a.relax,w=this.props,E=w.step3NameReview,z=w.step3TypeReview,_=w.step3BreedReview,C=w.step3GuideDogReview,j=w.step1Sex,T=w.step1Birthdate,R=w.step1Color,M=w.step1Weight,D=w.step1Sign,A=w.step3Q1Review,F=w.step3Q2Review,B=w.step3Q4Review,I=w.step1Q2ChipNumberActive,V=w.intl,q=w.labelRemove,Q=w.labelEdit,Z=this.state,Y=Z.duplicates,U=Z.missingDocs,W=Z.missingMedalNumber,G=Z.invalidMedals,$=Z.userPetList,J=Z.requiredFileList,H=V.formatMessage({id:"ConfirmDialog.yes",defaultMessage:"Yes"}),K=V.formatMessage({id:"ConfirmDialog.no",defaultMessage:"No"}),X=this.props.isEmployee;return Array.from($.values()).map((function(a){var w=e.state["petLicense".concat(a,".basketPeriod")]||1,Z=e.state["petLicense".concat(a,".basketState")],ee=e.state["petLicense".concat(a,".iid")],te=e._isPetFree(a),ae=e.state["petLicense".concat(a,".dangerous")]||!1,ne=te?n(m):"".concat(V.formatMessage({id:"AccountPetBasket.period",defaultMessage:"{peri
2od, number} {period, plural, one {{singular}} other {{plural}}}"},{period:w,singular:n(f),plural:n(b)}));return i().createElement(i().Fragment,{key:"petInfo_".concat(a)},i().createElement("div",{className:r.content},i().createElement(k.default,{container:!0,justify:"space-between",classes:{container:r.reviewPetActions}},i().createElement(k.default,{item:!0,xs:"mobile"===P.display&&6,sm:8,lg:7,classes:{item:r.reviewPetName}},i().createElement("b",null,e.state["petLicense".concat(a,".name")])),i().createElement(k.default,{item:!0,xs:"mobile"===P.display&&6,sm:4,lg:5,classes:{item:r.alignToRight}},t&&i().createElement(i().Fragment,null,i().createElement(O.Z,{title:n(Q)},i().createElement(L.default,{size:"small",variant:"outlined",onClick:function(){return e.handleEditPet(a)},classes:{sizeSmall:r.reviewButtons}},i().createElement(N.Z,{className:"material-icons"},"edit"))),i().createElement(O.Z,{title:n(q)},i().createElement(L.default,{size:"small",variant:"outlined",onClick:function(){return e.handleRemovePet(a)},classes:{sizeSmall:r.reviewButtons}},i().createElement(N.Z,{className:"material-icons",color:"error"},"delete")))))),i().createElement(k.default,{container:!0,justify:"space-between"},i().createElement(k.default,{item:!0,xs:"mobile"===P.display&&4,sm:4,lg:2},i().createElement("div",{className:r.photoReview},i().createElement("img",{role:"presentation",src:"/in/rest/Thumb/image?id=".concat(ee,"&TypeOfDocument=UserAnimal&ct=true&size=128"),width:"102"}))),i().createElement(k.default,{item:!0,xs:"mobile"===P.display&&8,sm:8,lg:10},i().createElement(k.default,{container:!0,justify:"space-between"},i().createElement(k.default,{item:!0,xs:"mobile"===P.display&&12,sm:12,lg:7},e.renderPetPropertyReview(n(E),e.state["petLicense".concat(a,".name")]),e.renderPetPropertyReview(n(z),e.state["petLicense".concat(a,".animalType")]),e.renderPetPropertyReview(n(_),e.state["petLicense".concat(a,".animalBreed")]),e.renderPetPropertyReview(n(j),e.state["petLicense".concat(a,".sex")]),e.renderPetPropertyReview(n(T),e.state["petLicense".concat(a,".birthdate")]?V.formatDate(e.state["petLicense".concat(a,".birthdate")]):"-"),e.renderPetPropertyReview(n(R),e.state["petLicense".concat(a,".color")]),e.renderPetPropertyReview(n(M),e.state["petLicense".concat(a,".weight")]||"-"),e.renderPetPropertyReview(n(D),e.state["petLicense".concat(a,".sign")]||"-")),i().createElement(k.default,{item:!0,xs:"mobile"===P.display&&12,sm:12,lg:5},e.renderPetPropertyReview(n(A),e._getYesNoExemptionValue(e.state["petLicense".concat(a,".step1Q1")])),e.renderPetPropertyReview(n(F),e._getYesNoExemptionValue(e.state["petLicense".concat(a,".step1Q2")])),e.renderPetPropertyReview(n(B),e.state["petLicense".concat(a,".step1Q4")]?H:K),"dog"===e.state["petLicense".concat(a,".type")]&&e.renderPetPropertyReview(n(C),e.state["petLicense".concat(a,".step1DogGuide")]?H:K)))),i().createElement("ul",{className:r.valueList},Z.map((function(t){return i().createElement("li",{key:"type_".concat(t)},"".concat(e.renderBasketState(t)," : "),i().createElement("b",null,"$ ",e.getPetPrice(a,"medal"===t?"medal":"license").toFixed(2)),"medal"!==t&&i().createElement(S.default,{variant:"caption"},ne,ae?" | ".concat(n(p)):""))}))),t&&Y[a]&&i().createElement("div",{className:r.contentReview},i().createElement(N.Z,{className:"material-icons",color:"error",fontSize:"small",classes:{root:r.duplicateIconTitle}},"error"),i().createElement("span",{className:r.value},n(l)),i().createElement("ul",{className:r.value},Y[a].map((function(e,t){return i().createElement("li",{key:"dup_".concat(a,"_").concat(t)},"baseInfo"===e&&n(o),"chipNumber"===e&&I&&n(s))})))),t&&U&&U.includes(a)&&i().createElement("div",{className:r.contentReview},i().createElement(N.Z,{className:"material-icons",color:"error",fontSize:"small",classes:{root:r.duplicateIconTitle}},"error"),i().createElement("span",{className:r.value},n(u))),t&&W&&W.includes(a)&&i().createElement("div",{className:r.contentReview},i().createElement(N.Z,{className:"material-icons",color:"error",fontSize:"small",classes:{root:r.duplicateIconTitle}},"error"),i().createElement("span",{className:r.value},n(d))),t&&G&&G.includes(a)&&i().createElement("div",{className:r.contentReview},i().createElement(N.Z,{className:"material-icons",color:"error",fontSize:"small",classes:{root:r.duplicateIconTitle}},"error"),i().createElement("span",{className:r.value},n(c))),!t&&i().createElement("div",{className:r.contentConfirmationPet},Z.includes("new")||Z.includes("medal")?X?i().createElement(i().Fragment,null,"".concat(n(y))):i().createElement(i().Fragment,null,J.includes(ee)?"".concat(n(y),". ").concat(n(v)):"".concat(n(g),".")):X?i().createElement(i().Fragment,null,"".concat(n(y))):i().createElement(i().Fragment,null,J.includes(ee)?"".concat(n(y),". ").concat(n(x)):"".concat(n(h),"."))))),a<$.size&&i().createElement("hr",{className:r.sep}))}))}},{key:"renderReview",value:function(){var e=this.props,t=e.localized,a=e.classes,n=e.authorizationLetter,r=e.step3Review,l=e.step1DeclarationTrueInfo,o=e.step1DeclarationCruelty,s=e.labelOwnCats,c=e.labelTotalCat,u=e.labelTotalCats,d=e.labelPersonalInfo,p=e.step1SpecialPermitCats,m=e.step1SpecialPermitDogs,f=e.step1SpecialPermit,b=e.userId,y=this.props,g=y.step1Authorization,h=y.step1AuthorizationComp,x=y.isEmployee,P=this.state,w=P.isMinor,L=P.totalCats,S=P.userName,E=P.specialPermit,z=P.hasNewRequest,_=P.hasRenewRequest,C=this.getLimitValues(),j=t(h),T=i().createElement("a",{href:n,target:"_blank",className:a.linkColor},j);j.indexOf("[")>-1&&j.indexOf("]")>-1&&(T=i().createElement(i().Fragment,null,i().createElement("span",null,j.substring(0,j.indexOf("["))),i().createElement("a",{href:n,target:"_blank",className:a.linkColor},j.substring(j.indexOf("[")+1,j.indexOf("]"))),i().createElement("span",null,j.substring(j.indexOf("]")+1,j.length))));var R=b?"/account/personalInfo?userId=".concat(b,"#cats"):"/account/personalInfo#cats",O=L>1?"".concat(L," ").concat(t(u)):"".concat(L," ").concat(t(c)),M="".concat(t(s),' <a href="').concat(R,'">').concat(t(d),"</a> : <b>").concat(O,"</b>");return i().createElement(i().Fragment,null,E&&E.category&&(z||_)&&i().createElement("div",{className:a.content},i().createElement(N.Z,{className:"material-icons",color:"error",fontSize:"small",classes:{root:a.duplicateIconTitle}},"error"),i().createElement("span",{className:a.value},"cat"===E.category&&t(p),"dog"===E.category&&t(m),"animal"===E.category&&t(f))),i().createElement(k.default,{container:!0,classes:{container:a.content}},i().createElement(k.default,{item:!0,sm:12,md:8,lg:9,classes:{item:a.content}},i().createElement("div",{className:a.sectionTitle},x?"".concat(t(r),": ").concat(S):t(r)),i().createElement("hr",{className:a.listSep}),this.renderAnimalInfo(!0),w&&z&&i().createElement(i().Fragment,null,i().createElement("div",{className:a.sectionTitle},t(g)),i().createElement("hr",null),i().createElement("div",{className:a.value},T),i().createElement(v.default,{form:this,relax:{element:{id:"step1AuthorizationFile"}},styleClassMap:this.getUploaderStyle("step1AuthorizationFile",!0),Element:this.renderChildren,accepts:"custom",customAccepts:this._getAllowedTypes(),maxFileSize:"".concat(C.maxSize*C.unitValue),maxFileSizeDisplay:"".concat((parseFloat(C.maxSize)||0).toFixed(C.precision)," ").concat(C.sizeDisplay),name:"step1AuthorizationFile",value:this.state.step1AuthorizationFile})),i().createElement("hr",null),i().createElement("div",{className:a.checkboxContainer},this.newHtmlCheckbox("step1DeclarationTotalCats",M)),i().createElement("div",{className:a.checkboxContainer},this.newCheckbox("step1DeclarationCruelty",t(o))),i().createElement("div",{className:a.checkboxContainer},this.newCheckbox("step1DeclarationTrueInfo",t(l)))),this.renderTotalToPay(!1)))}},{key:"renderTotalToPay",value:function(e){var t=this.props,a=t.localized,n=t.classes,r=t.step3SpecialAmount,l=t.step3PayAmount,o=t.step3PayedAmount,s=t.step3Total,c=t.step3NotTaxable,u=t.step1Q5,d=t.step1Year,p=t.step1Years,m=t.step1PeriodGuide,f=t.relax,b=t.intl,y=this.state,g=y.petInfo,v=y.totalToPay,h=y.petCountByType;return i().createElement(k.default,{item:!0,sm:12,md:4,lg:3,classes:{item:n.content}},i().createElement("div",{className:n.sectionTitle},a(e?o:l)),i().createElement("hr",{className:n.listSep}),Object.keys(h).map((function(e,t){return i().createElement(i().Fragment,{key:"pay_type_".concat(t)},Object.keys(h[e].pay||{}).sort().map((function(l,o){var s=g.types[e]?a(g.types[e].petLicense):"-",c=parseFloat(g.types[e]&&g.types[e].petLicensePrice*l||0),u=l;if(l.startsWith("special-")){var m=l.split("-");u=parseFloat(m[1]),c=parseFloat(m[2]),s=a(r)+" ("+c.toFixed(2)+")"}return i().createElement(i().Fragment,{key:"type_".concat(t,"_").concat(l)},i().createElement(k.default,{container:!0,justify:"space-between",classes:{container:n.paymentContent}},i().createElement(k.default,{item:!0,xs:"mobile"===f.display&&8,sm:8},h[e].pay[l],"x ",s,i().createElement(S.default,{variant:"caption"},b.formatMessage({id:"AccountPetBasket.period",defaultMessage:"{peri
2od, number} {period, plural, one {{singular}} other {{plural}}}"},{period:u,singular:a(d),plural:a(p)}))),i().createElement(k.default,{item:!0,xs:"mobile"===f.display&&4,sm:4,classes:{item:n.alignToRight}},i().createElement("b",null,"$ ",c.toFixed(2)))),i().createElement("hr",{className:n.sep}))})),Object.keys(h[e].dangerous||{}).sort().map((function(r,l){return i().createElement(i().Fragment,{key:"dangerous_type_".concat(t,"_").concat(r)},i().createElement(k.default,{container:!0,justify:"space-between",classes:{container:n.paymentContent}},i().createElement(k.default,{item:!0,xs:"mobile"===f.display&&8,sm:8},h[e].dangerous[r],"x ",g.types[e]?a(g.types[e].petLicense):"-",i().createElement(S.default,{variant:"caption"},"".concat(b.formatMessage({id:"AccountPetBasket.period",defaultMessage:"{period, number} {period, plural, one {{singular}} other {{plural}}}"},{period:r,singular:a(d),plural:a(p)})," | ").concat(a(u)))),i().createElement(k.default,{item:!0,xs:"mobile"===f.display&&4,sm:4,classes:{item:n.alignToRight}},i().createElement("b",null,"$ ",parseFloat(g.types[e]&&g.types[e].petDangerousPrice*r||0).toFixed(2)))),i().createElement("hr",{className:n.sep}))})),Object.keys(h[e].free||{}).sort().map((function(r,l){return i().createElement(i().Fragment,{key:"free_type_".concat(t,"_").concat(r)},i().createElement(k.default,{container:!0,justify:"space-between",classes:{container:n.paymentContent}},i().createElement(k.default,{item:!0,xs:"mobile"===f.display&&8,sm:8},h[e].free[r],"x ",g.types[e]?a(g.types[e].petLicense):"-",i().createElement(S.default,{variant:"caption"},a(m))),i().createElement(k.default,{item:!0,xs:"mobile"===f.display&&4,sm:4,classes:{item:n.alignToRight}},i().createElement("b",null,"$ ",(0).toFixed(2)))),i().createElement("hr",{className:n.sep}))})),h[e].medal>0&&i().createElement(i().Fragment,null,i().createElement(k.default,{container:!0,justify:"space-between",classes:{container:n.paymentContent}},i().createElement(k.default,{item:!0,xs:"mobile"===f.display&&8,sm:8},h[e].medal,"x ",g.types[e]?a(g.types[e].petMedal):"-"),i().createElement(k.default,{item:!0,xs:"mobile"===f.display&&4,sm:4,classes:{item:n.alignToRight}},i().createElement("b",null,"$ ",parseFloat(g.types[e]&&g.types[e].petMedalPrice||0).toFixed(2)))),i().createElement("hr",{className:n.sep})))})),i().createElement(k.default,{container:!0,justify:"space-between",classes:{container:n.paymentContent}},i().createElement(k.default,{item:!0,xs:"mobile"===f.display&&8,sm:8,lg:7},a(s),i().createElement(S.default,{variant:"caption"},a(c))),i().createElement(k.default,{item:!0,xs:"mobile"===f.display&&4,sm:4,lg:5,classes:{item:n.alignToRight}},i().createElement("b",null,"$ ",v.toFixed(2)))))}},{key:"getUploaderStyle",value:function(e,t){return t&&0===(this.state["".concat(e)]||[]).length?{uploadWrapper:B,dropZone:q,placeholder:Q}:{uploadWrapper:B,dropZone:I,placeholder:V}}},{key:"renderPayment",value:function(){var e=this.props.classes,t=this.state,a=t.number,n=t.name,r=t.expiryMonth,l=t.expiryYear,o=t.cvc;return i().createElement(k.default,{container:!0,classes:{container:e.content}},i().createElement(k.default,{item:!0,sm:12,md:8,lg:9,classes:{item:e.content}},i().createElement("div",{className:e.content},i().createElement("div",{className:e.payment},i().createElement(z.default,{required:!0,form:this,relax:{element:{id:"payment"}},styleClassMap:{},Element:this.renderChildren,defaultValue:{number:a,name:n,expiry:r&&l?"".concat(r,"/").concat(l):"",cvc:o},paybox:!1})))),this.renderTotalToPay(!1))}},{key:"renderPaymentEmployee",value:function(){var e=this.props,t=e.classes,a=e.locale,n=e.localized,r=e.step4Title,l=e.labelPayedBy,o=e.labelPayedOn,s=e.labelLocalisation,c=e.labelAmountDebit,u=e.labelAmountMoney,d=e.labelAmountCheck,p=e.labelAmountOrder,m=e.labelAmountPaid,f=e.labelBasketNumber,b=e.placeOptions,y=e.isEmployee,v=e.isGestionaire,h=e.relax,x=this.state,P=x.userName,w=x.totalToPay;return i().createElement(i().Fragment,null,y&&i().createElement(k.default,{container:!0,classes:{container:t.contentBasketNumber}},i().createElement(k.default,{item:!0,xs:"mobile"===h.display&&12,sm:8,lg:4}
2,this.newTextField("basketNumber","".concat(n(f)," *"),null,null))),i().createElement(k.default,{container:!0,classes:{container:t.content}},i().createElement(k.default,{item:!0,sm:12,md:8,lg:9,classes:{item:t.content}},i().createElement("div",{className:t.sectionTitle},y?"".concat(n(r),": ").concat(P):n(r)),i().createElement("hr",{className:t.listSep}),i().createElement("div",{className:t.content},i().createElement(k.default,{container:!0},i().createElement(k.default,{item:!0,sm:12,md:8,lg:4},w>0&&i().createElement(i().Fragment,null,this.newTextField("amountDebit","".concat(n(c)," *"),null,null,"0.00"),this.newTextField("amountMoney","".concat(n(u)," *"),null,null,"0.00"),this.newTextField("amountCheck","".concat(n(d)," *"),null,null,"0.00"),this.newTextField("amountOrder","".concat(n(p)," *"),null,null,"0.00")),this.newTextField("amountPaid","".concat(n(m))))),this.newTextField("payedBy","".concat(n(l)," *")),v&&this.newDatePicker("payedOn","".concat(n(o)," *"),null,null,g()().subtract(30,"years").format("YYYY-MM-DD"),g()().format("YYYY-MM-DD")),this.newSelectFieldNative("localisation","".concat(n(s)," *"),this.getOptionsForLocale(b.concat([{text:{en:"Administrator",fr:"Administrateur"},value:"administrateur"}]),a)))),this.renderTotalToPay(!1)))}},{key:"renderChildren",value:function(e){return e.children}},{key:"setProperty",value:function(e,t,a){var n;"payment"!==e&&this.setState((H(n={},t,a),H(n,"".concat(t,"_error"),void 0),n),this.validateStep)}},{key:"setElementProperties",value:function(e,t){if("payment"===e){var a={cvc:"",expiryMonth:"",expiryYear:"",name:"",number:"",type:"",step1_valid:!1};if(t.valid&&t.typeAccepted){var n=t.value.expiry;a.expiryMonth=n.split("/")[0],a.expiryYear=n.split("/")[1],a.cvc=t.value.cvc,a.name=t.value.name,a.number=t.value.number,a.type=t.value.type,a.step1_valid=!0}this.setState(a)}}},{key:"validatePetBasket",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],a=this.props,n=a.token,i=a.locale,r=a.userId,l=a.step1Q2ChipNumberActive,s=this.state,c=s.userPetList,u=s.totalCats,d=Array.from(c.values()).reduce((function(t,a){var n=e.state["petLicense".concat(a,".step1Q2")]?e.state["petLicense".concat(a,".step1Q2ChipNumber")]:null,i="dog"===e.state["petLicense".concat(a,".type")]&&e.state["petLicense".concat(a,".birthdate")]&&g()().diff(e.state["petLicense".concat(a,".birthdate")],"months")<15||"cat"===e.state["petLicense".concat(a,".type")]&&e.state["petLicense".concat(a,".birthdate")]&&g()().diff(e.state["petLicense".concat(a,".birthdate")],"months")<6,r=[{index:a,iid:e.state["petLicense".concat(a,".iid")],name:e.state["petLicense".concat(a,".name")],type:e.state["petLicense".concat(a,".type")],breed:e.state["petLicense".concat(a,".breed")],medalNumber:e.state["petLicense".concat(a,".medalNumber")],newMedalNumber:e.state["petLicense".concat(a,".newMedalNumber")],basketState:e.state["petLicense".concat(a,".basketState")],useMicroChipNumber:l,microChipNumber:n,isUnderAge:i}];return t.concat(r)}),[]),p={locale:i,animalList:d,userId:r,totalCats:u};this.setState({waiting:t},(function(){return o.h.validatePetBasket(n,p).then((function(t){t&&e.setState({waiting:!1,missingDocs:t.missingDocs,missingMedalNumber:t.missingMedalNumber,specialPermit:t.specialPermit,duplicates:t.duplicates,invalidMedals:t.invalidMedals,step1DeclarationTotalCats_error:!t.specialPermit||t.specialPermit.totalCats>t.specialPermit.profileTotalCats,step1DeclarationTotalCats_disabled:!t.specialPermit||t.specialPermit.totalCats>t.specialPermit.profileTotalCats},e.validateStep)}))}))}},{key:"validateStep",value:function(){var e=this,t=this.props.isEmployee,a=this.state,n=a.activeStep,i=a.step1DeclarationTrueInfo,r=a.step1DeclarationCruelty,l=a.step1DeclarationTotalCats,o=a.step1AuthorizationFile,s=a.isMinor,c=a.totalToPay,u=a.basketNumber,d=a.hasNewRequest,p=!0,m="step".concat(n,"_valid"),f=[];0===n?(s&&d&&0===(o||[]).length&&(p=!1),p=p&&i&&r&&l&&0===f.length):1===n&&(t?(f=(c>0?le:oe).reduce((function(t,a){return e.state[a]?t:t.concat([a])}),f),u&&""!==u||(f=f.concat(["basketNumber"])),p=0===f.length&&!this.state.amountPaid_error):p=0===(f=re.reduce((function(t,a){return e.state[a]?t:t.concat([a])}),f)).length);var b=f.reduce((function(e,t){return Object.assign(e,H({},"".concat(t,"_error"),!0))}),{});this.setState(Object.assign({},b,this.state[m]!==p?H({},m,p):{}))}},{key:"renderStepper",value:function(e){var t=this.props.classes,a=this.getSteps();return i().createElement(x.Z,{activeStep:e,alternativeLabel:!0,classes:{root:t.content}},a.map((function(e,t){return i().createElement(P.Z,{key:"step_".concat(t)},i().createElement(w.default,null,e))})))}},{key:"renderButtons",value:function(){var e=this.props,t=e.classes,a=e.relax,n=e.labelPrevious,r=e.labelNext,l=e.labelValidate,o=e.labelPrint,s=e.localized,c=e.isEmployee,u=this.state,d=u.activeStep,p=u.totalToPay,m=u.missingDocs,f=u.missingMedalNumber,b=u.duplicates,y=u.invalidMedals;if(2===d)return i().createElement(i().Fragment,null,i().createElement("hr",{className:t.
2sep}),i().createElement("div",{className:t.buttons},this.renderBackButton(),i().createElement(L.default,{variant:"contained",color:"primary",onClick:function(){return window.print()},className:t.button},s(o))));var g=d===this.getSteps().length-2||0===d&&0===p&&!c;return i().createElement(i().Fragment,null,i().createElement("hr",{className:t.sep}),i().createElement("div",{className:t.buttons},"mobile"!==a.display&&i().createElement("div",{className:t.buttonBack},this.renderBackButton()),i().createElement(L.default,{disabled:0===d,onClick:this.handleBack,className:t.button},s(n)),i().createElement(L.default,{variant:"contained",color:"primary",disabled:!this.state["step".concat(d,"_valid")]||Object.keys(b).length>0||m.length>0||f.length>0||y.length>0,onClick:g?this.handleValidate:this.handleNext,className:t.button},s(g?l:r)),"mobile"===a.display&&i().createElement("div",{className:t.buttonBackMobile},this.renderBackButton())))}},{key:"renderBackButton",value:function(){var e=this.props,t=e.classes,a=e.labelUserAccount,n=e.labelUserProfile,r=e.localized,l=e.isEmployee,o=e.goToAccount,s=e.onShowNotice,c=e.userId;return l?i().createElement(L.default,{variant:"outlined",onClick:function(){return s("h::".concat(c))},className:t.button},r(n)):i().createElement(L.default,{variant:"outlined",onClick:function(){return o()},className:t.button},r(a))}},{key:"renderRemovePetDialog",value:function(){var e=this.props,t=e.localized,a=e.step2QuestionRemove,n=e.step2QuestionRemoveUndone,r=e.step2QuestionRemoveBasket,l=e.labelRemove,o=e.intl,s=this.state.removePet;return null==s?null:i().createElement(C.default,{open:!0,TransitionComponent:M.Z},i().createElement(R.Z,null,t(l)),i().createElement(T.default,null,this.state["petLicense".concat(s,".basketState")].includes("new")?i().createElement("div",null,i().createElement("p",null,t(a)),i().createElement("br",null),i().createElement("p",null,t(n))):i().createElement("div",null,i().createElement("p",null,t(r)))),i().createElement(_.Z,null),i().createElement(j.default,null,i().createElement(L.default,{color:"primary",onClick:this.confirmRemovePet(s)},o.formatMessage({id:"ConfirmDialog.yes",defaultMessage:"Yes"})),i().createElement(L.default,{color:"primary",onClick:this.cancelRemovePet},o.formatMessage({id:"ConfirmDialog.no",defaultMessage:"No"}))))}},{key:"render",value:function(){var e=this.props,t=e.classes,a=e.loading,n=e.relax,r=e.previewMode,l=this.state,o=l.activeStep,s=l.waiting,c=l.response;if(s||a)return i().createElement(h.default,{className:t.paper},i().createElement("div",{className:t.loader},i().createElement(E.Z,{size:60})));if(null!=c)return i().createElement(h.default,{className:t.paperContent},i().createElement("div",{className:t.contentEmpty},c),i().createElement("hr",{className:t.sep}),i().createElement("div",{className:t.buttons},this.renderBackButton()));var u=n.building||n.editing?r:o;return i().createElement(h.default,{className:t.paperContent},this.renderStepper(u),this.getStepContent(u),this.renderButtons(),this.renderRemovePetDialog())}}],a&&X(t.prototype,a),n&&X(t,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(m.Z),U.propTypes={intl:s.gm,relax:l().object,styleClassMap:l().object,userId:l().string,locale:l().string,token:l().string,isEmployee:l().bool,isGestionaire:l().bool,loading:l().bool,step1Q2ChipNumberActive:l().bool,placeOptions:l().array,limitFileUpload:l().array,authorizationLetter:l().string,date:l().string,settings:l().object,localized:l().func.isRequired,onShowNotice:l().func.isRequired,onShowMessage:l().func.isRequired,onLoadListData:l().func.isRequired,goTo:l().func.isRequired,goToAccount:l().func.isRequired,onRefreshMenuButton:l().func.isRequired,step1Sex:l().object,step1Birthdate:l().object,step1Color:l().object,step1Weight:l().object,step1Sign:l().object,step1Year:l().object,step1Years:l().object,step1PeriodGuide:l().object,step1DeclarationTrueInfo:l().object,step1DeclarationCruelty:l().object,step1Authorization:l().object,step1AuthorizationComp:l().object,step1SpecialPermitCats:l().object,step1SpecialPermitDogs:l().object,step1SpecialPermit:l().object,step1SpecialPermitMissing:l().object,step1MedalMissing:l().object,step2QuestionRemove:l().object,step2QuestionRemoveUndone:l().object,step2QuestionRemoveBasket:l().object,labelErrorRemove:l().object,newLicense:l().object,renewLicense:l().object,replaceMedal:l().object,step3Title:l().object,step3PayAmount:l().object,step3PayedAmount:l().object,step3Total:l().object,step3NotTaxable:l().object,step3Review:l().object,step3NameReview:l().object,step3TypeReview:l().object,step3BreedReview:l().object,step3GuideDogReview:l().object,step3Q1Review:l().object,step3Q2Review:l().object,step3Q3Review:l().object,step3Q4Review:l().object,step3FreeReview:l().object,step3Duplicated:l().object,step3DuplicatedBaseInfo:l().object,step3DuplicatedChipNumber:l().object,step3InvalidMedal:l().object,step3DateOfTransaction:l().object,step4Title:l().object,step5Title:l().object,labelOwnCats:l().object,labelTotalCat:l().object,labelTotalCats:l().object,labelPersonalInfo:l().object,labelPayedBy:l().object,labelPayedOn:l().object,labelLocalisation:l().object,labelAmou
2ntDebit:l().object,labelAmountMoney:l().object,labelAmountCheck:l().object,labelAmountOrder:l().object,labelAmountPaid:l().object,labelBasketNumber:l().object,labelTransactionNumber:l().object,labelAuthorizationNumber:l().object,labelSuccess:l().object,labelSuccessMedal:l().object,labelSuccessMedalProcessed:l().object,labelSuccessRenew:l().object,labelSuccessRenewProcessed:l().object,labelError:l().object,labelMale:l().object,labelFemale:l().object,labelExemption:l().object,labelCancel:l().object,labelPrevious:l().object,labelPrint:l().object,labelNext:l().object,labelAdd:l().object,labelEdit:l().object,labelRemove:l().object,labelValidate:l().object,labelUserProfile:l().object,labelUserAccount:l().object,labelEmptyBasket:l().object,labelEmployeeEmptyBasket:l().object},U.defaultProps={previewMode:0,step1Q2ChipNumberActive:!1,limitFileUpload:[{maxSize:1,sizeUnit:"mo",precision:2}],authorizationLetter:"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",step1Sex:{fr:"Sexe",en:"Sex",_localized:!0},step1Birthdate:{fr:"Date de naissance",en:"Birthdate",_localized:!0},step1Color:{fr:"Couleur",en:"Color",_localized:!0},step1Weight:{fr:"Poids (en livre)",en:"Weight (in pounds)",_localized:!0},step1Sign:{fr:"Signe distinctif",en:"Distinctive sign",_localized:!0},step1Q2:{fr:"Votre animal est-il micropucé ?",en:"Is your animal microchipped?",_localized:!0},step1Q2Comp:{fr:"Veuillez nous fournir une preuve de micropucage qui indique le nom de votre animal.",en:"Please provide us proof of microchip showing your pet's name.",_localized:!0},step1Q2ChipNumber:{fr:"Numéro de la micropuce",en:"Microchip number",_localized:!0},step1Q4:{fr:"Votre animal est-il vacciné?",en:"Is your pet vaccinated against rabies?",_localized:!0},step1Q4Comp:{fr:"Veuillez nous fournir une preuve de vaccination contre la rage qui indique le nom de votre animal.",en:"Please provide us proof of rabies vaccination showing your pet's name.",_localized:!0},step1Q4LastVaccineDate:{fr:"Date du dernier vaccin",en:"Date of last vaccine",_localized:!0},step1Q4ReminderDate:{fr:"Date de rappel",en:"Reminder date",_localized:!0},step1Q5:{fr:"Potentiellement dangereux",en:"Potentially dangerous",_localized:!0},step1Year:{fr:"an",en:"year",_localized:!0},step1Years:{fr:"ans",en:"years",_localized:!0},step1PeriodGuide:{fr:"Gratuit à vie",en:"Free for life",_localized:!0},step1DeclarationTrueInfo:{fr:"Je déclare que tous les renseignements fournis dans cette demande sont véridiques.",en:"I declare that all information provided in this application is true.",_localized:!0},step1DeclarationCruelty:{fr:"Je déclare ne pas avoir été reconnu coupable dâune infraction relativement à la Loi sur le bien-être et la sécurité de lâanimal (RLRQ, c. B-3.1) ou à une disposition du Code criminel (L.R.C. (1985), ch. C-46) prévue à lâannexe I du Règlement sur les animaux domestiques (R.V.Q. 2698) au cours des 5 dernières années.",en:"I declare that I have not been convicted of an offense under the Animal Welfare and Safety Act (RLRQ, c, B-3.1) or a Criminal Code disposition (R.S.C., 1985, c, C-46) foreseen in the annex I of the Domestic Animals Regulation (R.V.Q. 2698) in the last 5 years.",_localized:!0},step1Authorization:{fr:"Consentement Parental",en:"Parental consent",_localized:!0},step1AuthorizationComp:{fr:"Une [consentement parentale] est requise pour les demande effectuée par une personne mineure.",en:"A [parental consent] is required for requests made by a minor.",_localized:!0},step1SpecialPermitCats:{fr:"Le nombre total d'animaux demeurant à votre addresse entraîne des conditions de garde particuilières. En vertu de la réglementation en vigueur, l'enregistrement, la stérilisation, micropuçage ainsi que la vaccination sont obligatoires pour tous les animaux à votre dossier. Vous devrez fournir des pièces justificatives lorsque requis.",en:"The total number of animals living at your address entails special custody conditions. Under current regulations, registration, sterilization, microchipping and vaccination are mandatory for all animals in your file. You will need to provide supporting documents when required.",_localized:!0},step1SpecialPermitDogs:{fr:"Le nombre total d'animaux demeurant à votre addresse entraîne des conditions de garde particuilières. En vertu de la réglementation en vigueur, l'enregistrement, la stérilisation, micropuçage ainsi que la vaccination sont obligatoires pour tous les animaux à votre dossier. Vous devrez fournir des pièces justificatives lorsque requis.",en:"The total number of animals living at your address entails special custody conditions. Under current regulations, registration, sterilization, microchipping and vaccination are mandatory for all animals in your file. You will need to provide supporting documents when required.",_localized:!0},step1SpecialPermit:{fr:"Le nombre total d'animaux demeurant à votre addresse entraîne des conditions de garde particuilières. En vertu de la réglementation en vigueur, l'enregistrement, la stérilisation, micropuçage ainsi que la vaccination sont obligatoires pour tous les animaux à votre dossier. Vous devrez fournir des pièces justificatives lorsque requis.",en:"The total number of animals living at your address entails special custody conditions. Under current regulations, registration, sterilization, microchipping and vaccination are mandatory for all animals in your file. You will need to provide supporting documents when required.",_localized:!0},step1SpecialPermitMissing:{fr:"Les fichiers requis sont manquants.",en:"Required files are missing.",_localized:!0},step1MedalMissing:{fr:"Le numéro de médaille est manquant.",en:"The medal number is missing.",_localized:!0},step2QuestionRemove:{fr:"Voulez-vous supprimer l'animal sélectionné ?",en:"Do you want to remove the selected animal?",_localized:!0},step2QuestionRemoveBasket:{fr:"Voulez-vous retirer l'animal sélectionné de votre panier ?",en:"Do you want to remove the selected animal from your basket?",_localized:!0},step2QuestionRemoveUndone:{fr:"Cette action ne peut pas être annulée.",en:"This action cannot be undone.",_localized:!0},labelErrorRemove:{fr:"L'animal sélectionné n'a pas été supprimé.",en:"The selected pet was not removed.",_localized:!0},step4Title:{fr:"Paiement",en:"Payment",_localized:!0},step5Title:{fr:"Confirmation",en:"Confirmation",_localized:!0},newLicense:{fr:"Demande de permis de garde",en:"Application for custody permit",_localized:!0},renewLicense:{fr:"Renouvellement de permis de garde",en:"Renewal of custody permit",_localized:!0},replaceMedal:{fr:"Remplacement de médaille",en:"Medal replacement",_localized:!0},step3Title:{fr:"Révision de la demande",en:"Application review",_localized:!0},step3SpecialAmount:{fr:"Tarification spéciale",en:"Special price",_localized:!0},step3PayAmount:{fr:"Montant à payer",en:"Pay amount",_localized:!0},step3PayedAmount:{fr:"Montant payé",en:"Paid amount",_localized:!0},step3Total:{fr:"Total",en:"Total",_localized:!0},step3NotTaxable:{fr:"Non taxable",en:"Not taxable",_localized:!0},step3Review:{fr:"Mon panier",en:"My basket",_localized:!0},step3NameReview:{fr:"Nom",en:"Name",_localized:!0},step3TypeReview:{fr:"Type",en:"Type",_localized:!0},step3BreedReview:{fr:"Race",en:"Breed",_localized:!0},step3GuideDogReview:{fr:"Chien d'assistance",en:"Assistance dog",_localized:!0},step3Q1Review:{fr:"Stérilisé",en:"Sterilized",_localized:!0},step3Q2Review:{fr:"Micropucé",en:"Microchipped",_localized:!0},step3Q3Review:{fr:"Tatoué",en:"Tattooed",_localized:!0},step3Q4Review:{fr:"Vacciné - Rage",en:"Vaccinated - Rabies",_localized:!0},step3FreeReview:{fr:"Gratuité",en:"Free",_localized:!0},step3Duplicated:{fr:"Vous avez déjà un autre animal avec :",en:"You already have another animal with:",_localized:!0},step3DuplicatedBaseInfo:{fr:"même nom, type et race;",en:"same name, type and breed;",_localized:!0},step3DuplicatedChipNumber:{fr:"même numéro de la micropuce;",en:"same microchip number;",_localized:!0},step3InvalidMedal:{fr:"La licence n'est plus valide.",en:"The license is no longer valid.",_localized:!0},step3DateOfTransaction:{fr:"Date de la transaction",en:"Date of transaction",_localized:!0},labelOwnCats:{fr:"Je confirme que le nombre de chat inscrit dans mes renseignement et demeurant à mon addresse est à jour:____",en:"I confirm that the number of cats entered in my information and residing at my address is up to date: ____",_localized:!0},labelTotalCat:{fr:"chat",en:"cat",_localized:!0},labelTotalCats:{fr:"chats",en:"cats",_localized:!0},labelPersonalInfo:{fr:"mes renseignement personnels",en:"my personal information",_localized:!0},labelPayedBy:{fr:"Payé par",en:"Paid by",_localized:!0},labelPayedOn:{fr:"Payé le",en:"Paid on",_localized:!0},labelLocalisation:{fr:"Lieu de la transaction",en:"Place of transaction",_localized:!0}
2,labelAmountDebit:{fr:"Débit",en:"Debit",_localized:!0},labelAmountMoney:{fr:"Comptant",en:"Money",_localized:!0},labelAmountCheck:{fr:"Chèque",en:"Check",_localized:!0},labelAmountOrder:{fr:"Mandat poste",en:"Money order",_localized:!0},labelAmountPaid:{fr:"Total payé",en:"Total paid",_localized:!0},labelBasketNumber:{fr:"Numéro de séquence de caisse",en:"Checkout sequence number",_localized:!0},labelTransactionNumber:{fr:"Numéro de transaction ",en:"Transaction number ",_localized:!0},labelAuthorizationNumber:{fr:"Numéro d'autorisation ",en:"Authorization number",_localized:!0},labelSuccess:{fr:"Votre demande a été transmise avec succès.\n",en:"Your request has been completed successfully.\n",_localized:!0},labelSuccessMedal:{fr:"Votre demande a été transmise avec succès. Le traitement de celle-ci, incluant lâenvoi postal de la médaille, se fera dans un délai maximal de 7 jours ouvrables.",en:"A medal will be mailed to you within a maximum of 7 working days following the validation of the supporting documents that you have submitted. It is possible that someone will contact you to finalize your request.",_localized:!0},labelSuccessMedalProcessed:{fr:" Une médaille vous sera postée dans un délai maximal de 7 jours ouvrables.",en:"A medal will be mailed to you within a maximum of 7 working days.",_localized:!0},labelSuccessMedalMissingFile:{fr:" Le traitement de celle-ci, incluant lâenvoi postal de la médaille, se fera dans un délai maximal de 7 jours ouvrables. Il est possible qu'une personne communique avec vous pour finaliser votre demande.",en:"A medal will be mailed to you within a maximum of 7 working days following the validation of the supporting documents that you have submitted. It is possible that someone will contact you to finalize your request. It is possible that someone will contact you to finalize your request. It is possible that someone will contact you to finalize your request",_localized:!0},labelSuccessRenew:{fr:" Le traitement de celle-ci se fera dans un délai maximal de 7 jours ouvrables. Il est possible qu'une personne communique avec vous pour finaliser votre demande.",en:"This will be processed within a maximum of 7 working days following the validation of the supporting documents that you have submitted. It is possible that someone will contact you to finalize your request.",_localized:!0},labelSuccessRenewProcessed:{fr:"Votre demande a été transmise avec succès.",en:"Your request has been completed successfully.",_localized:!0},labelError:{fr:"Une erreur s'est produite lors du traitement de votre demande.",en:"An error occurred while processing your request.",_localized:!0},labelMale:{fr:"Mâle",en:"Male",_localized:!0},labelFemale:{fr:"Femelle",en:"Female",_localized:!0},labelExemption:{fr:"Exempté",en:"Exempt",_localized:!0},labelCancel:{fr:"Annuler",en:"Cancel",_localized:!0},labelPrevious:{fr:"Précédent",en:"Previous",_localized:!0},labelPrint:{fr:"Imprimer",en:"Print",_localized:!0},labelNext:{fr:"Suivant",en:"Next",_localized:!0},labelAdd:{fr:"Ajouter un animal",en:"Add an animal",_localized:!0},labelEdit:{fr:"Ãditer",en:"Edit",_localized:!0},labelRemove:{fr:"Supprimer",en:"Remove",_localized:!0},labelValidate:{fr:"Valider",en:"Validate",_localized:!0},labelUserProfile:{fr:"Retourner à la fiche du propriétaire",en:"Return to the owner's file",_localized:!0},labelUserAccount:{fr:"Retourner à mon espace propriétaire",en:"Return to my owner space",_localized:!0},labelEmptyBasket:{fr:"Votre panier est vide.",en:"Your basket is empty.",_localized:!0},labelEmployeeEmptyBasket:{fr:"Le panier du propriétaire est vide.",en:"The owner's basket is empty.",_localized:!0},altertTextCONumberValidation:{fr:"Validation du numéro de caisse: Veuillez vérifier que le numéro de séquence de caisse est valide.",en:"Register Number Validation: Make sure that the Checkout sequence number is valid.",_localized:!0}},U.iconClass="nc-icon-mini ui-1_edit-74",U.propsSchema=D,U.style=F,ie((Y=U).prototype,"onLoadBasketData",[b.Z],Object.getOwnPropertyDescriptor(Y.prototype,"onLoadBasketData"),Y.prototype),ie(Y.prototype,"refreshPaidValue",[b.Z],Object.getOwnPropertyDescriptor(Y.prototype,"refreshPaidValue"),Y.prototype),ie(Y.prototype,"basketNumberChanged",[b.Z],Object.getOwnPropertyDescriptor(Y.prototype,"basketNumberChanged"),Y.prototype),ie(Y.prototype,"_scrollToTop",[b.Z],Object.getOwnPropertyDescriptor(Y.prototype,"_scrollToTop"),Y.prototype),ie(Y.prototype,"_getTotalToPay",[b.Z],Object.getOwnPropertyDescriptor(Y.prototype,"_getTotalToPay"),Y.prototype),ie(Y.prototype,"getPetPrice",[b.Z],Object.getOwnPropertyDescriptor(Y.prototype,"getPetPrice"),Y.prototype),ie(Y.prototype,"_isPetFree",[b.Z],Object.getOwnPropertyDescriptor(Y.prototype,"_isPetFree"),Y.prototype),ie(Y.prototype,"_isPetDangerous",[b.Z],Object.getOwnPropertyDescriptor(Y.prototype,"_isPetDangerous"),Y.prototype),ie(Y.prototype,"_getYesNoExemptionValue",[b.Z],Object.getOwnPropertyDescriptor(Y.prototype,"_getYesNoExemptionValue"),Y.prototype),ie(Y.prototype,"_getPetCountByType",[b.Z],Object.getOwnPropertyDescriptor(Y.prototype,"_getPetCountByType"),Y.prototype),ie(Y.prototype,"validatePetBasket",[b.Z],Object.getOwnPropertyDescriptor(Y.prototype,"validatePetBasket"),Y.prototype),ie(Y.prototype,"validateStep",[b.Z],Object.getOwnPropertyDescriptor(Y.prototype,"validateStep"),Y.prototype),Z=Y))||Z)||Z)||Z}}]);
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.