(self.webpackChunkserver_side_rendering=self.webpackChunkserver_side_rendering||[]).push([[3983],{86154:(e,t,n)=>{"use strict";n.d(t,{O:()=>F});var i=n(57826),o=n(40475),s=n(48661),l=n(6856),r=n(38578),a=n(9601);function c(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"a",12),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().changeSelectionForAll(!0)})),i["ɵɵtext"](1,"multiSelect.selectAll"),i["ɵɵelementEnd"]()}}function p(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"a",13),i["ɵɵlistener"]("click",(function(){return i["ɵɵrestoreView"](e),i["ɵɵnextContext"]().changeSelectionForAll(!1)})),i["ɵɵtext"](1,"multiSelect.deselectAll"),i["ɵɵelementEnd"]()}}function d(e,t){if(1&e&&(i["ɵɵelementStart"](0,"label",18),i["ɵɵtext"](1),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]().$implicit;i["ɵɵpropertyInterpolate"]("for",e.value),i["ɵɵadvance"](1),i["ɵɵtextInterpolate"](e.label)}}function u(e,t){if(1&e&&(i["ɵɵelementStart"](0,"label",19),i["ɵɵtext"](1),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]().$implicit;i["ɵɵpropertyInterpolate"]("for",e.value),i["ɵɵadvance"](1),i["ɵɵtextInterpolate"](e.label)}}function f(e,t){if(1&e&&(i["ɵɵelementStart"](0,"label",18),i["ɵɵtext"](1),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]().$implicit;i["ɵɵpropertyInterpolate"]("for",e.value),i["ɵɵadvance"](1),i["ɵɵtextInterpolate"](e.value)}}function h(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"li",14),i["ɵɵtext"](1,"\n                        "),i["ɵɵelementStart"](2,"input",15),i["ɵɵlistener"]("click",(function(){const t=i["ɵɵrestoreView"](e).index;return i["ɵɵnextContext"]().toggleOptionFirst(t)})),i["ɵɵelementEnd"](),i["ɵɵtext"](3,"\n                        "),i["ɵɵtemplate"](4,d,2,2,"label",16),i["ɵɵtext"](5,"\n                        "),i["ɵɵtemplate"](6,u,2,2,"label",17),i["ɵɵtext"](7,"\n                        "),i["ɵɵtemplate"](8,f,2,2,"label",16),i["ɵɵtext"](9,"\n                    "),i["ɵɵelementEnd"]()}if(2&e){const e=t.$implicit,n=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵpropertyInterpolate"]("id",e.value),i["ɵɵproperty"]("checked",e.selected),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.label&&!n.translateOptionLabel),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.label&&n.translateOptionLabel),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",!e.label)}}function m(e,t){if(1&e&&(i["ɵɵelementStart"](0,"label",18),i["ɵɵtext"](1),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]().$implicit;i["ɵɵpropertyInterpolate"]("for",e.value),i["ɵɵadvance"](1),i["ɵɵtextInterpolate"](e.label)}}function g(e,t){if(1&e&&(i["ɵɵelementStart"](0,"label",19),i["ɵɵtext"](1),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]().$implicit;i["ɵɵpropertyInterpolate"]("for",e.value),i["ɵɵadvance"](1),i["ɵɵtextInterpolate"](e.label)}}function x(e,t){if(1&e&&(i["ɵɵelementStart"](0,"label",18),i["ɵɵtext"](1),i["ɵɵelementEnd"]()),2&e){const e=i["ɵɵnextContext"]().$implicit;i["ɵɵpropertyInterpolate"]("for",e.value),i["ɵɵadvance"](1),i["ɵɵtextInterpolate"](e.value)}}function C(e,t){if(1&e){const e=i["ɵɵgetCurrentView"]();i["ɵɵelementStart"](0,"li",14),i["ɵɵtext"](1,"\n                        "),i["ɵɵelementStart"](2,"input",15),i["ɵɵlistener"]("click",(function(){const t=i["ɵɵrestoreView"](e).index;return i["ɵɵnextContext"]().toggleOptionSecond(t)})),i["ɵɵelementEnd"](),i["ɵɵtext"](3,"\n                        "),i["ɵɵtemplate"](4,m,2,2,"label",16),i["ɵɵtext"](5,"\n                        "),i["ɵɵtemplate"](6,g,2,2,"label",17),i["ɵɵtext"](7,"\n                        "),i["ɵɵtemplate"](8,x,2,2,"label",16),i["ɵɵtext"](9,"\n                    "),i["ɵɵelementEnd"]()}if(2&e){const e=t.$implicit,n=i["ɵɵnextContext"]();i["ɵɵadvance"](2),i["ɵɵpropertyInterpolate"]("id",e.value),i["ɵɵproperty"]("checked",e.selected),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.label&&!n.translateOptionLabel),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",e.label&&n.translateOptionLabel),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",!e.label)}}const b=function(e){return{tag:"textContent",label:e}};function v(e,t){if(1&e&&i["ɵɵelement"](0,"p",20),2&e){const e=i["ɵɵnextContext"]();i["ɵɵproperty"]("bxTranslate",i["ɵɵpureFunction1"](1,b,e.errorMessage))}}const y=function(e,t,n){return{"invalid-field":e,"corrected-field":t,active:n}},S=function(){return{"active-field":!0}},O=function(e){return{active:e}};let F=(()=>{class e{constructor(e,t){this.elementRef=e,this.translateService=t,this.state="",this.translateOptionLabel=!0,this.optionsUpdated=new i.EventEmitter,this.propagateChange=()=>{},this.propagateTouch=()=>{}}set options(e){const t=Math.floor(e.length/2);this.optionsFirst=e.slice(0,t),this.optionsSecond=e.slice(t),this.updateMessage()}closeGlobal(e){this.elementRef.nativeElement.contains(e.target)||(this.opened=!1)}ngOnInit(){this.opened=this.config.opened,this.required=this.config.required,this.label=this.config.label,this.setTranslateOptionLabelFromConfig(),this.translateSubscription=this.translateService.loadTranslations(this.translateService.getCategory(this.config.severalSelectedLabel)).subscribe((e=>{this.translations=e,this.allOptionsSelectedTranslation=e[this.config.allSelectedLabel],this.noOptionsSelectedTranslation=e[this.config.noneSelectedLabel],this.severalOptionsSelectedTranslation=e[this.config.severalSelectedLabel],this.updateMessage(),this.notifyUpdate()}))}ngOnDestroy(){this.translateSubscription&&this.translateSubscription.unsubscribe()}toggleOpen(){this.opened=!this.opened}toggleOptionFirst(e){this.optionsFirst[e].selected=!this.optionsFirst[e].selected,this.updateMessage(),this.notifyUpdate()}toggleOptionSecond(e){this.optionsSecond[e].selected=!this.optionsSecond[e].selected,this.updateMessage(),this.notifyUpdate()}changeSelectionForAll(e){this.optionsFirst=this.optionsFirst.map((t=>(t.selected=e,t))),this.optionsSecond=this.optionsSecond.map((t=>(t.selected=e,t))),this.updateMessage(),this.notifyUpdate()}writeValue(e){e?(this.optionsFirst=this.optionsFirst.map((t=>(t.selected=e.includes(t.value),t))),this.optionsSecond=this.optionsSecond.map((t=>(t.selected=e.includes(t.value),t))),this.updateMessage()):(this.optionsFirst=this.optionsFirst.map((e=>(e.selected=!this.config.deSelectedByDefault,e))),this.optionsSecond=this.optionsSecond.map((e=>(e.selected=!this.config.deSelectedByDefault,e))),this.updateMessage()),this.notifyUpdate()}registerOnChange(e){this.propagateChange=e}registerOnTouched(e){this.propagateTouch=e}updateMessage(){if(this.numOfSelectedOptions=this.optionsFirst.concat(this.optionsSecond).filter((e=>e.selected)).length,this.optionsFirst.length+this.optionsSecond.length===this.numOfSelectedOptions&&this.numOfSelectedOptions>0)this.resultMessageLabel=this.allOptionsSelectedTranslation;else if(1===this.numOfSelectedOptions)this.resultMessageLabel=this.getSelected(this.optionsFirst.filter((e=>e.selected)).length?this.optionsFirst:this.optionsSecond);else if(0===this.numOfSelectedOptions)this.resultMessageLabel=this.noOptionsSelectedTranslation;else{let e={};this.config&&this.severalOptionsSelectedTranslation&&(e[this.config.severalSelectedLabelPlaceholderName]=this.numOfSelectedOptions.toString(),this.resultMessageLabel=this.translateService.interpolate(this.severalOptionsSelectedTranslation,e))}}getSelected(e){const t=e.filter((e=>e.selected))[0],n=t.label;return n?this.translations&&this.translations[n]?this.translations[n]:n:t.value}notifyUpdate(){let e=this.optionsFirst.concat(this.optionsSecond).filter((e=>e.selected)).map((e=>e.value));e=0===e.length?void 0:e,this.propagateChange(e),this.optionsUpdated.emit(this.optionsFirst.concat(this.optionsSecond)),this.notifyUpdateValues=[e,this.optionsFirst.concat(this.optionsSecond)]}setTranslateOptionLabelFromConfig(){let e=this.config.translateOptionLabel;null!=e&&(this.translateOptionLabel=e)}}return e.ɵfac=function(t){return new(t||e)(i["ɵɵdirectiveInject"](i.ElementRef),i["ɵɵdirectiveInject"](s.s))},e.ɵcmp=i["ɵɵdefineComponent"]({type:e,selectors:[["bx-multi-select"]],hostBindings:function(e,t){1&e&&i["ɵɵlistener"]("click",(function(e){return t.closeGlobal(e)}),!1,i["ɵɵresolveDocument"])},inputs:{bxId:"bxId",options:"options",state:"state",translateOptionLabel:"translateOptionLabel",errorMessage:"errorMessage",config:"config"},outputs:{optionsUpdated:"optionsUpdated"},features:[i["ɵɵProvidersFeature"]([{provide:o.NG_VALUE_ACCESSOR,useExisting:(0,i.forwardRef)((()=>e)),multi:!0}])],decls:35,vars:20,consts:[[1,"custom-dropdown","custom-field","multi-select",3,"ngClass"],["type","text","readonly","readonly",1,"selected-elements",3,"disabled","id","value","click"],[1,"active-field",3,"ngClass"],[3,"bxRequiredField","mandatory"],[1,"icon","icon-arrow-down"],[1,"multi-select-container",3,"ngClass"],[1,"multi-select-options"],[1,"clear-all"],["class","custom-link select-all",3,"bxTranslate","click",4,"ngIf"],["class","custom-link deselect-all",3,"bxTranslate","click",4,"ngIf"],["class","custom-checkbox native-toggle",4,"ngFor","ngForOf"],["class","error-msg",3,"bxTranslate",4,"ngIf"],[1,"custom-link","select-all",3,"bxTranslate","click"],[1,"custom-link","deselect-all",3,"bxTranslate","click"],[1,"custom-checkbox","native-toggle"],["type","checkbox","role","checkbox",3,"id","checked","click"],[3,"for",4,"ngIf"],[3,"for","bxTranslate",4,"ngIf"],[3,"for"],[3,"for","bxTranslate"],[1,"error-msg",3,"bxTranslate"]],template:function(e,t){1&e&&(i["ɵɵtext"](0,"\n        "),i["ɵɵelementStart"](1,"figure",0),i["ɵɵtext"](2,"\n            "),i["ɵɵelementStart"](3,"input",1),i["ɵɵlistener"]("click",(function(){return t.toggleOpen()})),i["ɵɵelementEnd"](),i["ɵɵtext"](4,"\n            "),i["ɵɵelementStart"](5,"label",2),i["ɵɵtext"](6,"\n                "),i["ɵɵelement"](7,"span",3),i["ɵɵtext"](8,"\n                "),i["ɵɵelement"](9,"i",4),i["ɵɵtext"](10,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](11,"\n            "),i["ɵɵelementStart"](12,"div",5),i["ɵɵtext"](13,"\n                "),i["ɵɵelementStart"](14,"ul",6),i["ɵɵtext"](15,"\n                    "),i["ɵɵelementStart"](16,"li",7),i["ɵɵtext"](17,"\n                        "),i["ɵɵtemplate"](18,c,2,0,"a",8),i["ɵɵtext"](19,"\n                        "),i["ɵɵtemplate"](20,p,2,0,"a",9),i["ɵɵtext"](21,"\n                    "),i["ɵɵelementEnd"](),i["ɵɵtext"](22,"\n                    "),i["ɵɵtemplate"](23,h,10,5,"li",10),i["ɵɵtext"](24,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](25,"\n                "),i["ɵɵelementStart"](26,"ul",6),i["ɵɵtext"](27,"\n                    "),i["ɵɵtemplate"](28,C,10,5,"li",10),i["ɵɵtext"](29,"\n                "),i["ɵɵelementEnd"](),i["ɵɵtext"](30,"\n            "),i["ɵɵelementEnd"](),i["ɵɵtext"](31,"\n            "),i["ɵɵtemplate"](32,v,1,3,"p",11),i["ɵɵtext"](33,"\n        "),i["ɵɵelementEnd"](),i["ɵɵtext"](34,"\n    ")),2&e&&(i["ɵɵadvance"](1),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction3"](13,y,"error"===t.state,"valid"===t.state,t.opened)),i["ɵɵadvance"](2),i["ɵɵpropertyInterpolate"]("id",t.bxId),i["ɵɵpropertyInterpolate"]("value",t.resultMessageLabel),i["ɵɵproperty"]("disabled",t.config.disabled),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction0"](17,S)),i["ɵɵadvance"](2),i["ɵɵproperty"]("bxRequiredField",t.label)("mandatory",t.required),i["ɵɵadvance"](5),i["ɵɵproperty"]("ngClass",i["ɵɵpureFunction1"](18,O,t.opened)),i["ɵɵadvance"](6),i["ɵɵproperty"]("ngIf",t.config.selectAll),i["ɵɵadvance"](2),i["ɵɵproperty"]("ngIf",t.config.deselectAll),i["ɵɵadvance"](3),i["ɵɵproperty"]("ngForOf",t.optionsFirst),i["ɵɵadvance"](5),i["ɵɵproperty"]("ngForOf",t.optionsSecond),i["ɵɵadvance"](4),i["ɵɵproperty"]("ngIf",t.errorMessage))},directives:[l.NgClass,r.w,l.NgIf,l.NgForOf,a.P],styles:["[_nghost-%COMP%]   .clear-all[_ngcontent-%COMP%]   a[_ngcontent-%COMP%] {\n  margin-right: 10px; }\n\n[_nghost-%COMP%]   .multi-select-container[_ngcontent-%COMP%] {\n  z-index: 2; }\n\n[_nghost-%COMP%]   .multi-select-container[_ngcontent-%COMP%]   label[_ngcontent-%COMP%] {\n    vertical-align: middle;\n    line-height: 1.17em;\n    padding-right: 19px; }\n\n[_nghost-%COMP%]   .multi-select-container[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   .custom-checkbox[_ngcontent-%COMP%] {\n    overflow: visible; }\n\n.two-rows[_nghost-%COMP%]   .multi-select-options[_ngcontent-%COMP%] {\n  width: 50%;\n  float: left;\n  padding: 0 10px; }\n\n.two-rows[_nghost-%COMP%]   .multi-select-options[_ngcontent-%COMP%]:first-child {\n    border-right: var(--multiSelectTwoColumsBorder, 2px solid #CECED3); }\n\n.two-rows[_nghost-%COMP%]   .multi-select-options[_ngcontent-%COMP%]:last-child {\n    padding-top: 36px; }\n\n.one-row[_nghost-%COMP%]   .multi-select-options[_ngcontent-%COMP%] {\n  width: 100%;\n  padding: 0 10px; }\n\n.one-row[_nghost-%COMP%]   .multi-select-options[_ngcontent-%COMP%]:first-child {\n    border-right: 0; }"]}),e})()},99132:(e,t,n)=>{"use strict";n.d(t,{q:()=>r});var i=n(77976),o=n(6856),s=n(55058),l=n(57826);let r=(()=>{class e{}return e.ɵfac=function(t){return new(t||e)},e.ɵmod=l["ɵɵdefineNgModule"]({type:e}),e.ɵinj=l["ɵɵdefineInjector"]({imports:[[o.CommonModule,i.a,s.D]]}),e})()},20280:(e,t,n)=>{"use strict";n.d(t,{O:()=>o.O,q:()=>i.q});var i=n(99132),o=n(86154)},50788:(e,t,n)=>{"use strict";n.d(t,{z:()=>a});var i=n(23550),o=n(4309),s=n(42998);class l{static fromJsonToHostedPlayer(e){return{profileId:e.profileId,isHostRequested:e.isHostRequested,hostName:e.hostName,contactFrequency:e.contactFrequency,preferredContactTime:e.preferredContactTime,preferredContactType:e.preferredContactType,preferredContactTimeFrom:e.preferredContactTimeFrom,preferredContactTimeTo:e.preferredContactTimeTo,familyKnows:e.familyKnows,strategy:e.strategy,nonFiatCertificationFull:e.nonFiatCertificationFull,nonFiatCertificationMedium:e.nonFiatCertificationMedium,nonFiatCertificationNone:e.nonFiatCertificationNone}}static fromJsonToPublicHostedPlayer(e){return{isHostRequested:e.isHostRequested,contactFrequency:e.contactFrequency,preferredContactType:e.preferredContactType,preferredContactTimeFrom:e.preferredContactTimeFrom,preferredContactTimeTo:e.preferredContactTimeTo}}static fromHostedPlayerToJson({contactFrequency:e,familyKnows:t,isHostRequested:n,hostName:i,nonFiatCertificationFull:o,nonFiatCertificationMedium:s,nonFiatCertificationNone:l,preferredContactTime:r,preferredContactType:a,preferredContactTimeFrom:c,preferredContactTimeTo:p,profileId:d,strategy:u}){return{profileId:d,isHostRequested:n||!1,hostName:i||null,contactFrequency:e||null,preferredContactTime:r||null,preferredContactType:a||null,preferredContactTimeFrom:c||null,preferredContactTimeTo:p||null,familyKnows:t||null,strategy:u||null,nonFiatCertificationFull:o||null,nonFiatCertificationMedium:s||null,nonFiatCertificationNone:l||null}}}var r=n(57826);let a=(()=>{class e{constructor(e){this.http=e,this.PROFILE_BASE_URL="/services/profile/v1/profiles"}getHostedPlayerUrl(t){const n=t||e.SESSION_ID_PLACEHOLDER;return`${this.PROFILE_BASE_URL}/${n}/hosted-player`}getPublicHostedPlayer(){return this.http.get(this.getHostedPlayerUrl(),{withCredentials:!0}).pipe((0,s.map)((e=>l.fromJsonToPublicHostedPlayer(e))),(0,s.catchError)((e=>404==e.status?(0,o.of)({}):(0,o.throwError)(e))))}getHostedPlayer(e){return this.http.get(this.getHostedPlayerUrl(e),{withCredentials:!0}).pipe((0,s.map)((e=>l.fromJsonToHostedPlayer(e))),(0,s.catchError)((e=>404==e.status?(0,o.of)({}):(0,o.throwError)(e))))}updateHostedPlayer(e){return this.http.put(this.getHostedPlayerUrl(e.profileId),l.fromHostedPlayerToJson(e),{withCredentials:!0})}}return e.SESSION_ID_PLACEHOLDER="<sessionId>",e.ɵfac=function(t){return new(t||e)(r["ɵɵinject"](i.HttpClient))},e.ɵprov=r["ɵɵdefineInjectable"]({token:e,factory:e.ɵfac}),e})()},35108:(e,t,n)=>{var i=n(83006),o=n(16071),s=n(63253);e.exports=i((function(e,t,n){return o(e,s(t,n))}))}}]);