1"use strict";(self.webpackChunkmeridianbet_web_v4=self.webpackChunkmeridianbet_web_v4||[]).push([[2271,1767,9562],{74951:(y,p,e)=>{e.d(p,{D:()=>tt});var r=e(10467),s=e(60177),t=e(54438),l=e(89417),a=e(72036),u=e(45817),M=e(27354),m=e(98099),_=e(95006);function x(o,I,n,g){return(0,m.T)(n)&&(g=n,n=void 0),g?x(o,I,n).pipe((0,_.T)(h=>(0,M.c)(h)?g(...h):g(h))):new u.c(h=>{i(o,I,function L(b){h.next(arguments.length>1?Array.prototype.slice.call(arguments):b)},h,n)})}function i(o,I,n,g,h){let L;if(function P(o){return o&&"function"==typeof o.addEventListener&&"function"==typeof o.removeEventListener}(o)){const b=o;o.addEventListener(I,n,h),L=()=>b.removeEventListener(I,n,h)}else if(function O(o){return o&&"function"==typeof o.on&&"function"==typeof o.off}(o)){const b=o;o.on(I,n),L=()=>b.off(I,n)}else if(function c(o){return o&&"function"==typeof o.addListener&&"function"==typeof o.removeListener}(o)){const b=o;o.addListener(I,n),L=()=>b.removeListener(I,n)}else{if(!o||!o.length)throw new TypeError("Invalid event target");for(let b=0,K=o.length;b<K;b++)i(o[b],I,n,g,h)}g.add(L)}var A=e(63020),R=e(20522),d=e(60488),f=e(58114),v=e(35357),D=e(31790),E=e(28026);let T=(()=>{class o{transform(n){return n?n.displayableName:""}static{this.\u0275fac=function(g){return new(g||o)}}static{this.\u0275pipe=t.EJ8({name:"formatAddressDropdownItem",type:o,pure:!0,standalone:!0})}}return o})();var w=e(46421),B=e(15539),S=e(94942);let W=(()=>{class o{constructor(n){this._configurationMiddlewareService=n,this._sessionToken=(0,w.A)()}getGeoLocation(){var n=this;return(0,r.A)(function*(){const g=yield n._getCurrentUserLocation();return n._configurationMiddlewareService.get(`geo/location?latLng=${g.lat},${g.lng}`).toPromise()})()}getAutocomplete(n,g="address"){var h=this;return(0,r.A)(function*(){return h._configurationMiddlewareService.get(`geo/autocomplete?input=${n}&sessionToken=${h._getEncodedSessionToken()}&autocompleteType=${g}`).toPromise()})()}getPlaceDetails(n){var g=this;return(0,r.A)(function*(){return g._configurationMiddlewareService.get(`geo/place_details?placeId=${n}&sessionToken=${g._getEncodedSessionToken()}`).pipe((0,B.M)(()=>{g._refreshSessionToken()})).toPromise()})()}_getCurrentUserLocation(){return new Promise((n,g)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(h=>{h&&n({lat:h.coords.latitude,lng:h.coords.longitude})},h=>console.log(h)):g("Geolocation is not supported by this browser.")})}_getEncodedSessionToken(){return encodeURIComponent(this._sessionToken)}_refreshSessionToken(){this._sessionToken=(0,w.A)()}static{this.\u0275fac=function(g){return new(g||o)(t.KVO(S.S))}}static{this.\u0275prov=t.jDH({token:o,factory:o.\u0275fac})}}return o})();var N=e(34405),G=e(96467),F=e(81237),V=e(23882);const $=["addressInput"],Y=(o,I,n,g)=>({"c-address-input-wrapper--active":o,"c-address-input-wrapper--invalid":I,"c-address-input-wrapper--disabled":n,"c-address-input-wrapper--registration":g}),j=o=>({"c-address-input-icon--hidden":o}),k=(o,I)=>({"c-address-input-icon--hidden":o,"c-address-input-icon--disabled":I});function H(o,I){if(1&o){const n=t.RV6();t.j41(0,"span",8),t.bIt("click",function(){t.eBV(n);const h=t.XpG(2);return t.Njj(h.toggleList())}),t.nrm(1,"svg-icon",9),t.k0s()}if(2&o){const n=t.XpG(2);t.Y8G("ngClass",t.eq3(1,j,!n.isListOpened))}}function X(o,I){if(1&o){const n=t.RV6();t.j41(0,"span",8),t.bIt("click",function(){t.eBV(n);const h=t.XpG(2);return t.Njj(h.handleGeoLocation())}),t.nrm(1,"svg-icon",10),t.k0s()}if(2&o){const n=t.XpG(2);t.Y8G("ngClass",t.l_i(1,k,n.isListOpened,n.handlingGeoLocation))}}function z(o,I){if(1&o&&(t.j41(0,"span",7),t.nrm(1,"svg-icon",11),t.k0s()),2&o){const n=t.XpG(2);t.R7$(),t.Y8G("icon",n.isValid?"success-indicator":"error")}}function J(o,I){if(1&o&&(t.DNE(0,H,2,3,"span",6),t.nI1(1,"generalCustomConfigurationPipe"),t.nI1(2,"generalCustomConfigurationPipe"),t.DNE(3,X,2,4,"span",6),t.nI1(4,"generalCustomConfigurationPipe"),t.DNE(5,z,2,1,"span",7)),2&o){const n=t.XpG();t.vxM(t.bMT(1,3,"enableGooglePlaceAPI")||t.bMT(2,5,"enableGoogleGeocodeAPI")?0:-1),t.R7$(3),t.vxM(t.bMT(4,7,"enableGoogleGeocodeAPI")?3:-1),t.R7$(2),t.vxM(n.styleType===n.AddressDropdownStyle.REGISTRATION&&n.isTouched?5:-1)}}function Z(o,I){1&o&&t.nrm(0,"local-loader",4),2&o&&t.Y8G("width",20)("height",20)}function Q(o,I){if(1&o){const n=t.RV6();t.j41(0,"li",14),t.bIt("click",function(){const h=t.eBV(n).$implicit,L=t.XpG(2);return t.Njj(L.selectAddress(h))}),t.EFF(1),t.nI1(2,"formatAddressDropdownItem"),t.k0s()}if(2&o){const n=I.$implicit;t.R7$(),t.SpI(" ",t.bMT(2,1,n)," ")}}function q(o,I){if(1&o&&(t.j41(0,"ul",12),t.Z7z(1,Q,3,3,"li",13,t.fX1),t.k0s()),2&o){const n=t.XpG();t.R7$(),t.Dyx(n.addressDropdownOptions)}}let tt=(()=>{class o{constructor(n,g,h){this._geolocationService=n,this._restConfigurationService=g,this._formatAddressPipe=h,this.addressSelected=new t.bkB,this.citySelected=new t.bkB,this.invalidStateOccurred=new t.bkB,this.styleType=D.d.ACCOUNT_DATA,this.isDisabled=!1,this.isListOpened=!1,this.addressDropdownOptions=[],this.handlingGeoLocation=!1,this.value="",this.isValid=!0,this.isTouched=!1,this.subscriptions=[],this.onChange=()=>{},this.onTouched=()=>{},this.AddressDropdownStyle=D.d}validate(n){const g=function U(o){return I=>I.value?o?new RegExp(o).test(I.value)?{}:{validateStreet:{valid:!1,error_message:"general.street_not_val
1id"}}:I.value.startsWith(" ")?{validateStreet:{valid:!1,error_message:"general.street_not_valid"}}:{}:{}}(this._restConfigurationService.getGeneralCustomConfigurationParams("streetOnRegistrationRegex"))(n);return this.isValid=(0,a.A)(g),g}handleValueChange(n){this.isTouched=!0,this._restConfigurationService.getGeneralCustomConfigurationParams("allowAddressEntryOnlyFromGoogleResponse")?(this.value=n,this._setFieldToInvalidState()):this.writeValue(n)}handleClickOutside(){this._restConfigurationService.getGeneralCustomConfigurationParams("allowAddressEntryOnlyFromGoogleResponse")&&this.isListOpened&&!this.isValid&&this._setFieldToInvalidState(),this.closeList()}writeValue(n){this.value="string"==typeof n?n:this._formatAddressPipe.transform(n)||"",this.onChange(this.value)}registerOnChange(n){this.onChange=n}registerOnTouched(n){this.onTouched=n}ngAfterViewInit(){this._restConfigurationService.getGeneralCustomConfigurationParams("enableGooglePlaceAPI")&&this._enableAutocomplete()}ngOnDestroy(){this.subscriptions.forEach(n=>n.unsubscribe)}toggleList(){this.isListOpened=!this.isListOpened}closeList(){this.isListOpened=!1}handleGeoLocation(){var n=this;return(0,r.A)(function*(){n.handlingGeoLocation=!0,n.isTouched=!1;try{const g=yield n._geolocationService.getGeoLocation();n._setAddressDropdownOptions(g)}catch{n.closeList(),n._setAddressDropdownOptions([])}finally{n.handlingGeoLocation=!1,n.isTouched=!0}})()}selectAddress(n){var g=this;return(0,r.A)(function*(){if(g.isTouched=!0,n.placeId){const h=yield g._geolocationService.getPlaceDetails(n.placeId);n.place=h.place,n.postalCode=h.postalCode}g.selectedAddress=n,g.addressSelected.emit(n),n.place&&g.citySelected.emit(n.place),g.value=n.street,g.toggleList()})()}_setAddressDropdownOptions(n){this.addressDropdownOptions=n,n?.length&&this.toggleList(),this._restConfigurationService.getGeneralCustomConfigurationParams("allowAddressEntryOnlyFromGoogleResponse")&&!n?.length&&(this._setFieldToInvalidState(),this.closeList())}_enableAutocomplete(){var n=this;this.subscriptions.push(x(this.addressInputField.nativeElement,"keyup").pipe((0,A.B)(500),(0,R.F)()).subscribe((0,r.A)(function*(){if(!n.value)return void n._setAddressDropdownOptions([]);n.closeList();const g=yield n._geolocationService.getAutocomplete(n.value,n._restConfigurationService.getGeneralCustomConfigurationParams("googleAutocompleteTypes"));n._setAddressDropdownOptions(g)})))}_setFieldToInvalidState(){this.isValid=!1,this.invalidStateOccurred.emit()}static{this.\u0275fac=function(g){return new(g||o)(t.rXU(W),t.rXU(N.M),t.rXU(T))}}static{this.\u0275cmp=t.VBU({type:o,selectors:[["app-address-dropdown"]],viewQuery:function(g,h){if(1&g&&t.GBs($,5),2&g){let L;t.mGM(L=t.lsd())&&(h.addressInputField=L.first)}},inputs:{styleType:"styleType",isDisabled:"isDisabled"},outputs:{addressSelected:"addressSelected",citySelected:"citySelected",invalidStateOccurred:"invalidStateOccurred"},standalone:!0,features:[t.Jv_([{provide:l.kq,useExisting:(0,t.Rfq)(()=>o),multi:!0},{provide:l.cz,useExisting:(0,t.Rfq)(()=>o),multi:!0},T,W]),t.aNF],decls:7,vars:10,consts:[["addressInput",""],[1,"c-address-input-wrapper",3,"clickOutside","ngClass"],["data-cy","streetInput","type","text",1,"c-address-input",3,"ngModelChange","ngModel","disabled"],[1,"c-address-input-icon-wrapper"],[3,"width","height"],["class","c-address-input__list",4,"ngIf"],[1,"c-address-input-icon",3,"ngClass"],[1,"c-address-input-icon"],[1,"c-address-input-icon",3,"click","ngClass"],["icon","dropdown-arrow-icon",1,"c-icon--xs","c-address-icon"],["icon","location-cursor",1,"c-icon--sm","c-address-icon"],[1,"c-icon--xs","c-address-icon",3,"icon"],[1,"c-address-input__list"],[1,"c-address-input__list-item"],[1,"c-address-input__list-item",3,"click"]],template:function(g,h){if(1&g){const L=t.RV6();t.j41(0,"div",1),t.bIt("clickOutside",function(){return t.eBV(L),t.Njj(h.handleClickOutside())}),t.j41(1,"input",2,0),t.bIt("ngModelChange",function(K){return t.eBV(L),t.Njj(h.handleValueChange(K))}),t.k0s(),t.j41(3,"div",3),t.DNE(4,J,6,9)(5,Z,1,2,"local-loader",4),t.k0s(),t.DNE(6,q,3,0,"ul",5),t.k0s()}2&g&&(t.Y8G("ngClass",t.ziG(5,Y,h.isListOpened,!h.isValid,h.isDisabled||h.handlingGeoLocation,h.styleType===h.AddressDropdownStyle.REGISTRATION)),t.R7$(),t.Y8G("ngModel",h.value)("disabled",h.isDisabled||h.handlingGeoLocation),t.R7$(3),t.vxM(h.handlingGeoLocation?5:4),t.R7$(2),t.Y8G("ngIf",(null==h.addressDropdownOptions?null:h.addressDropdownOptions.length)&&h.isListOpened))}
1,dependencies:[l.X1,l.me,l.BC,l.YN,l.vS,T,s.CommonModule,s.NgClass,s.NgIf,f.A,G.D,v.t,v.z,d.z,F.q,E.a,V.w],styles:[".c-address-input-wrapper[_ngcontent-%COMP%]{border:1px solid var(--baseAccountBlue05);background-color:var(--baseAccountBlue03);border-radius:10px;box-sizing:border-box;position:relative}.c-address-input-wrapper.c-address-input-wrapper--active[_ngcontent-%COMP%]{border-radius:10px 10px 0 0;border-color:var(--success-color)}.c-address-input-wrapper.c-address-input-wrapper--active[_ngcontent-%COMP%] .c-address-input__list[_ngcontent-%COMP%]{display:block;border-color:var(--success-color);z-index:99}.c-address-input-wrapper.c-address-input-wrapper--active[_ngcontent-%COMP%] .c-address-input__list-item[_ngcontent-%COMP%]:first-of-type{border-color:var(--success-color)}.c-address-input-wrapper[_ngcontent-%COMP%]:focus-within{border-color:var(--success-color)}.c-address-input-wrapper.c-address-input-wrapper--invalid[_ngcontent-%COMP%], .c-address-input-wrapper.c-address-input-wrapper--invalid[_ngcontent-%COMP%] .c-address-input__list[_ngcontent-%COMP%]{border-color:var(--base-primary)}.c-address-input-wrapper.c-address-input-wrapper--invalid[_ngcontent-%COMP%] .c-address-input__list-item[_ngcontent-%COMP%]:first-of-type{border-color:var(--base-primary)}.c-address-input-wrapper.c-address-input-wrapper--disabled[_ngcontent-%COMP%]{opacity:.4;pointer-events:none;touch-action:none}.c-address-input-wrapper.c-address-input-wrapper--disabled[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{background-color:var(--baseAccountSettingsColor06)}.c-address-input-wrapper--registration[_ngcontent-%COMP%]{border-radius:4px;border-color:var(--limitRadioButtonBorderColor);margin-top:5px}.c-address-input-wrapper--registration[_ngcontent-%COMP%] .c-address-input[_ngcontent-%COMP%]{color:var(--baseAccountSettingsColor09);background-color:var(--baseBlue09);padding:14px 40px 14px 10px;border-radius:4px}.c-address-input-wrapper--registration.c-address-input-wrapper--invalid[_ngcontent-%COMP%]{border-color:var(--base-primary)}.c-address-input-wrapper--registration.c-address-input-wrapper--invalid[_ngcontent-%COMP%] .c-address-input__list[_ngcontent-%COMP%], .c-address-input-wrapper--registration.c-address-input-wrapper--invalid[_ngcontent-%COMP%] .c-address-input__list-item[_ngcontent-%COMP%]:first-of-type{border-color:var(--base-primary)}.c-address-input-wrapper--registration.c-address-input-wrapper--active[_ngcontent-%COMP%]{border-radius:4px 4px 0 0}.c-address-input-wrapper--registration[_ngcontent-%COMP%] .c-address-input__list[_ngcontent-%COMP%]{border-radius:0 0 4px 4px}.c-address-input[_ngcontent-%COMP%]{width:100%;display:flex;background:var(--white);color:var(--baseTextColor);border:none;padding:14px 20px;outline:none;font-size:14px;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.c-address-icon[icon=dropdown-arrow-icon][_ngcontent-%COMP%]{width:14px;color:var(--baseTextColor);transform:rotate(180deg)}.c-address-icon[icon=location-cursor][_ngcontent-%COMP%]{color:var(--baseYellow12);cursor:pointer}.c-address-input[_ngcontent-%COMP%]{-webkit-appearance:none;-moz-appearance:none;background-color:transparent;border-radius:10px}.c-address-input-icon-wrapper[_ngcontent-%COMP%]{position:absolute;top:50%;right:16px;display:flex;transform:translateY(-50%)}.c-address-input-icon[_ngcontent-%COMP%]{display:flex;align-items:center;margin-left:5px}.c-address-input-icon.c-address-input-icon--hidden[_ngcontent-%COMP%]{display:none}.c-address-input-icon--disabled[_ngcontent-%COMP%]{cursor:none;pointer-events:none;-webkit-user-select:none;user-select:none;opacity:.6}.c-address-input__list[_ngcontent-%COMP%]{max-height:277px;overflow-y:auto;display:none;position:absolute;background-color:var(--baseAccountBlue03);left:-1px;width:calc(100% + 2px);border-left:1px solid var(--baseAccountBlue05);border-right:1px solid var(--baseAccountBlue05);border-bottom:1px solid var(--baseAccountBlue05);border-radius:0 0 10px 10px}.c-address-input__list-item[_ngcontent-%COMP%]{color:var(--baseTextColor);font-size:14px;padding:15px 20px;cursor:pointer;transition:all .2s ease}.c-address-input__list-item[_ngcontent-%COMP%]:first-of-type{border-top:1px solid var(--baseAccountBlue05)}.c-address-input__list-item[_ngcontent-%COMP%]:hover{color:var(--text-light-color)}.c-address-input-wrapper--invalid[_ngcontent-%COMP%]{border-color:var(--base-primary)}"]})}}return o}
1)()},29849:(y,p,e)=>{e.d(p,{n:()=>_});var r=e(54438),s=e(72036),t=e(20279),l=e(3287),a=e(60177),u=e(26917);const M=C=>({"c-footer-content--landing":C});function m(C,x){if(1&C&&(r.nrm(0,"div",0),r.nI1(1,"safeHtml")),2&C){const i=r.XpG();r.Y8G("ngClass",r.eq3(4,M,i.pageName()===i.PAGE_NAMES.LANDING))("innerHtml",r.bMT(1,2,i.template),r.npT)}}let _=(()=>{class C{constructor(){this._configTemplateService=(0,r.WQX)(l.c),this.pageName=(0,r.hFB)(t.Bi.DEFAULT),this.PAGE_NAMES=t.Bi,this.template="",this.hideFooter=!1,this._sliders=[]}ngOnInit(){this.setFooter()}ngOnDestroy(){this._sliders=[]}ngAfterViewInit(){this._handleSliders()}setFooter(){let i=this._getTemplate(this.pageName());i?.html||(i=this._getTemplate("default")),this.template=`${i?.html||""} ${i?.css||""}`,this.hideFooter=(0,s.A)(this.template.trim())}_getTemplate(i){return this._configTemplateService.getTemplate(i,"footer_content_web")}_handleSliders(){typeof window>"u"||document.querySelectorAll("slider").forEach((c,O)=>{const P=document.createElement("div"),A=c.querySelector("items");P.classList.add("slider-wrapper"),c.appendChild(P),c.id=`footer-slider-${O}`,P.appendChild(A),this._shouldSliderScroll(A)&&(this._sliders.push(A),this._attachSliderControls(P,A))})}_attachSliderControls(i,c){const O=document.createElement("button");O.innerHTML='\n <svg width="6" height="10" viewBox="0 0 6 10" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M1 9L5 5L1 1" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n </svg>\n ',O.classList.add("left","end");const P=document.createElement("button");P.innerHTML='\n <svg width="6" height="10" viewBox="0 0 6 10" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M1 9L5 5L1 1" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n </svg>\n ',P.classList.add("right"),O.addEventListener("click",()=>this._scroll(c,"left")),P.addEventListener("click",()=>this._scroll(c,"right")),i.prepend(O),i.appendChild(P)}_scroll(i,c){if(!i)return;const O=i.parentElement?.querySelectorAll("button");O&&O.forEach(R=>R.classList.remove("end"));const P=i.scrollLeft,A="left"===c?-200:200;i.scrollLeft+=A,P+A<=0&&(i.scrollLeft=0,O&&O[0].classList.add("end")),P+A+i.clientWidth>=i.scrollWidth&&(i.scrollLeft=i.scrollWidth,O&&O[1].classList.add("end"))}_shouldSliderScroll(i){return!!i&&i.scrollWidth>i.clientWidth}static{this.\u0275fac=function(c){return new(c||C)}}static{this.\u0275cmp=r.VBU({type:C,selectors:[["footer-component"]],inputs:{pageName:[1,"pageName"]},decls:1,vars:1,consts:[[1,"c-footer-content",3,"ngClass","innerHtml"]],template:function(c,O){1&c&&r.DNE(0,m,2,6,"div",0),2&c&&r.vxM(O.hideFooter?-1:0)},dependencies:[a.NgClass,u.$],styles:['footer-component{margin-top:auto}#footer-wrapper{flex:1}#footer-wrapper>div:nth-child(2n){background-color:var(--base-blue-01);padding:20px 25px;border-radius:4px}.c-footer-content{background-color:var(--base-blue-06);border-radius:10px;display:block;align-items:center;justify-content:center;padding:32px 0;font-size:22px;margin-top:10px}.c-footer-content.c-footer-content--landing{margin-top:0}.c-footer-content slider{display:flex;padding:10px 0;border-top:1px solid var(--base-blue-04)}.c-footer-content slider label{display:flex;min-width:fit-content;justify-content:center;flex-direction:column;padding-right:16px}.c-footer-content slider title{display:block;color:var(--white);font-family:var(--font);font-weight:700;font-size:12px;text-transform:uppercase;padding:5px 0}.c-footer-content slider description{font-family:var(--font);color:var(--base-white-02);font-size:11px;text-transform:uppercase;padding:5px 0}.c-footer-content slider .slider-wrapper{display:flex;align-items:center;position:relative;overflow:hidden}.c-footer-content slider .slider-wrapper button{display:flex;align-items:center;position:absolute;height:100%;padding-inline:30px;color:var(--white);font-size:2rem;z-index:10}.c-footer-content slider .slider-wrapper button:hover{opacity:1}.c-footer-content slider .slider-wrapper button svg{position:relative;z-index:6;width:11px;height:22px}.c-footer-content slider .slider-wrapper button.left{left:0;transform:rotate(180deg)}.c-footer-content slider .slider-wrapper button.right{right:0;top:0}.c-footer-content slider .slider-wrapper button:after{content:"";display:block;position:absolute;min-width:120px;top:0;right:0;bottom:0;background:linear-gradient(91.97deg,#10181c00 1.62%,#030a0e 70.13%);z-index:5;transition:all .2s linear;opacity:1}.c-footer-content slider .slider-wrapper button.end:after{opacity:0;pointer-events:none}.c-footer-content slider items{display:flex;flex-wrap:nowrap;overflow-x:hidden;scroll-behavior:smooth;align-items:center;height:100%;padding:0 55px;gap:25px}.c-footer-content slider items::-webkit-scrollbar{display:none;width:0}.c-footer-content slider items a{margin-inline:10px}.c-footer-content slider items img{object-fit:contain;max-height:25px}\n'],encapsulation:2})}}return C})()},44844:(y,p,e)=>{e.d(p,{k:()=>t});var r=e(60177),s=e(54438);let t=(()=>{class l{static{this.\u0275fac=function(M){return new(M||l)}}static{this.\u0275mod=s.$C({type:l})}static{this.\u0275inj=s.G2t({imports:[r.CommonModule]})}}return l})()},15348:(y,p,e)=>{e.d(p,{Cf:()=>l,Mg:()=>t,Sx:()=>r,ZM:()=>s});var r=function(a){return a.FIRST_NAME="firstName",a.LAST_NAME="lastName",a.PERSONAL_ID="personalId",a.PASSPORT_NUMBER="passportNumber",a.EMAIL="email",a.ACCOUNT_ACTIVATION_METHOD="accountActivationMethod",a.PHONE="phone",a.BIRTHDATE="birthdate",a.STREET="street",a.CITY="city",a.COUNTRY="country",a.GENDER="gender",a.ENABLE_NOTIFICATIONS="enableNotifications",a.NEWSLETTER_EMAIL="newsletterEmail",a.NEWSLETTER_LANGUAGE="newsletterLanguage",a.NEWSLETTER_SMS="newsletterSms",a.NEWSLETTER_PUSH="newsletterPush",a.POSTAL_CODE="postalCode",a.PEP="pep",a.TERMS_AND_CON
1DITIONS="termsAndConditions",a}(r||{});const s={MALE:"MALE",FEMALE:"FEMALE",OTHER:"OTHER",RATHER_WONT_SAY:"RATHER_WONT_SAY"},t=[s.MALE,s.FEMALE,s.OTHER,s.RATHER_WONT_SAY],l=[{key:"registration.male",value:s.MALE},{key:"registration.female",value:s.FEMALE},{key:"registration.other",value:s.OTHER},{key:"registration.rather_wont_say",value:s.RATHER_WONT_SAY}]},31790:(y,p,e)=>{e.d(p,{d:()=>r});var r=function(s){return s[s.ACCOUNT_DATA=0]="ACCOUNT_DATA",s[s.REGISTRATION=1]="REGISTRATION",s}(r||{})},2199:(y,p,e)=>{e.d(p,{_:()=>r,a:()=>s});const r="a",s="c"},59562:(y,p,e)=>{e.r(p),e.d(p,{RegistrationService:()=>_});var r=e(54438),s=e(45286),t=e(95447),l=e(19788),a=e(67374),M=e(94942),m=e(21626);let _=(()=>{class C{constructor(i,c){this._configurationMiddlewareService=i,this._httpClient=c,this.REGISTRATION="registration",this._registrationConfigurationData=new s.B7,this.registrationConfigurationData$=this._registrationConfigurationData.asObservable(),this.personalIdInputFieldValid=new s.B7,this.personalIdInputFieldValid$=this.personalIdInputFieldValid.asObservable(),this.registrationSelectedCountry=(0,r.vPA)(null),this.isSmsActivationActive=(0,r.vPA)(!1),this.smsActivationData=(0,r.vPA)({phone:"",password:""})}setRegistrationSelectedCountry(i){this.registrationSelectedCountry.set(i)}openSmsActivation(i,c){this.smsActivationData.set({phone:i,password:c}),this.isSmsActivationActive.set(!0)}closeSmsActivation(){this.isSmsActivationActive.set(!1),this.smsActivationData.set({phone:"",password:""})}getPersonalIdDate(i){if(!i||!(0,l.k)(i))return"";const c=i.substring(0,2),O=i.substring(2,4),P=("0"===i.charAt(4)?"2":"1")+i.substring(4,7);return this._isDateValid(c,O,P)?"":`${P}-${O}-${c}`}_isDateValid(i,c,O){return i<"01"||i>"31"||c<"01"||c>"12"||O<"1900"}fetchRegistrationConfiguration(){return this._configurationMiddlewareService.get(`${t.UG}/${this.REGISTRATION}`,t.PZ)}verifyEmail(i){return this._httpClient.get(`${BOUNCER_URL}/bouncer/verify-email?email=${i}`)}getRegistrationConfiguration(){this.fetchRegistrationConfiguration().subscribe(i=>{this._registrationConfigurationData.next(i.payload)})}getUserDataFromCPF(i){return this._httpClient.get(`${CONFIGURATION_MIDDLEWARE_URL}/cpf/${i}`)}getUserDataFromFactiliza(i,c){return this._httpClient.get(`${CONFIGURATION_MIDDLEWARE_URL}/${c?"dni":"cee"}/${i}`)}isBelgianPersonalIdBirthdateValid(i,c){const O=a(c,"YYYY-MM-DD"),P=i.substring(0,2),A=i.substring(2,4),R=i.substring(4,6),d=O.format("YY"),f=O.format("MM");return R===O.format("DD")&&A===f&&P===d}static{this.\u0275fac=function(c){return new(c||C)(r.KVO(M.S),r.KVO(m.Qq))}}static{this.\u0275prov=r.jDH({token:C,factory:C.\u0275fac,providedIn:"root"})}}return C})()},21767:(y,p,e)=>{e.r(p),e.d(p,{AffiliateCodeService:()=>M});var r=e(31635),s=e(62125),t=e(85375),l=e(2199),a=e(54438),u=e(63755);class M{constructor(_){this.localStorage=_,this.AFFILIATE_CODES="affiliate_codes",this.AFFILIATE_EXPIRE_IN_DAYS=30}saveAffiliateCodes(_){this._deleteExpiredCodes(),this._createNewCodes(_)}_createAffiliateObj(_,C){const x={name:_,value:C,expirationTime:this._getNewExpirationTime()};localStorage.setItem(_,JSON.stringify(x))}_getNewExpirationTime(){const _=new Date;return _.setHours(_.getHours()+24*this.AFFILIATE_EXPIRE_IN_DAYS),_.getTime()}_deleteExpiredCodes(){const _=this.localStorage.getItem(l._),C=this.localStorage.getItem(l.a);_&&_.expirationTime<Date.now()&&this.localStorage.removeItem(_.name),C&&C.expirationTime<Date.now()&&this.localStorage.removeItem(C.name)}deleteAffiliateCodes(){const _=this.localStorage.getItem(l._),C=this.localStorage.getItem(l.a);_&&this.localStorage.removeItem(_.name),C&&this.localStorage.removeItem(C.name)}_createNewCodes(_){const C=(0,s.A)(_,l._),x=(0,s.A)(_,l.a);C&&this._createAffiliateObj(l._,C),x&&this._createAffiliateObj(l.a,x)}getCode(_){return this.localStorage.getItem(_)}static{this.\u0275fac=function(C){return new(C||M)(a.KVO(u.s))}}static{this.\u0275prov=a.jDH({token:M,factory:M.\u0275fac,providedIn:"root"})}}(0,r.Cg)([t.X],M.prototype,"saveAffiliateCodes",null),(0,r.Cg)([t.X],M.prototype,"getCode",null)},35422:(y,p,e)=>{e.d(p,{g:()=>t});var r=e(45286),s=e(54438);let t=(()=>{class l{constructor(){this.suggestedEmail=new r.B7,this.suggestedEmail$=this.suggestedEmail.asObservable()}static{this.\u0275fac=function(M){return new(M||l)}}static{this.\u0275prov=s.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}}return l})()},65588:(y,p,e)=>{e.d(p,{B:()=>a});var r=e(15455),s=e(72036),t=e(45286),l=e(54438);let a=(()=>{class u{constructor(){this._client={},this._isConnected=!1,this.RECONNECT_RETRY_TIME=2e3,this._ipificationUserData=new t.B7,this.ipificationUserData$=this._ipificationUserData.asObservable()}createClient(){return r.connect(WEBSITE_URL,{path:"/microservice-socket/socket.io",reconnect:!0,reconnectionDelayMax:this.RECONNECT_RETRY_TIME})}connect(){(0,s.A)(this._client)&&(this._client=this.createClient(),this.setEventHandlers())}setEventHandlers(){this._client.on("error",(m,_,C)=>{console.error(`Topic: ${C}, Event: ${_}, Message: ${m}`),this._setSocketConnectionStatus(!1)}),this._client.on("connect",()=>{this._setSocketConnectionStatus(!0)}),this._client.on("disconnect",()=>{this._setSocketConnectionStatus(!1)}),this._client.on("connect_timeout",()=>{this._setSocketConnectionStatus(!1)}),this._client.on("reconnect",()=>{this._isConnected||this._setSocketConnectionStatus(!0)}),this._client.on("reconnect_attempt",()=>{this._setSocketConnectionStatus(!1)}),this._client.on("reconnect_error",()=>{this._setSocketConnectionStatus(!1)}),this._client.on("ipification",m=>{this._ipificationUserData.next(m)})}disconnect(){(0,s.A)(this._client)||(this._client.disconnect(),this._client=null)}
1subscribe(m){(0,s.A)(this._client)||(this._client.emit("subscribe",m),this._client.on(m,_=>{this.handleIpificationUserData(_)}))}unsubscribe(m){(0,s.A)(this._client)||this._client.emit("unsubscribe",m)}handleIpificationUserData(m){this._ipificationUserData.next(m)}_setSocketConnectionStatus(m){this._isConnected=m}static{this.\u0275fac=function(_){return new(_||u)}}static{this.\u0275prov=l.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}}return u})()},49995:(y,p,e)=>{function r(){return s=>s.value&&s.value.startsWith(" ")?{loyaltycardNumber:{valid:!1,error_message:"general.loyalty_card_number"}}:{}}e.d(p,{C:()=>r})},19702:(y,p,e)=>{e.d(p,{C:()=>A});var r=e(94727),s=e(14421),t=e(68002),l=e(49090),a=e(95006),u=e(83921),M=e(72036),m=e(62125),_=e(54438),C=e(65283),x=e(58167),i=e(59562),c=e(35422),O=e(73955),P=e(34405);let A=(()=>{class R{constructor(f,v,D,E,T,w){this._httpService=f,this._authService=v,this._registrationService=D,this._bouncerService=E,this._translate=T,this._restConfiguration=w,this.validate=B=>{if((0,M.A)(B.value))return(0,s.of)(null);const S=B.parent?.controls;if(!S)return(0,s.of)(null);const W=Object.keys(S).find(U=>B===S[U])??null;if(W){const U=(0,m.A)(this._authService.currentUser(),W);if(U&&U===B.value)return(0,s.of)(null)}return(0,s.of)(B.value).pipe((0,t.c)(300),(0,l.n)(()=>this.checkUniqueness(W,B.value)),(0,l.n)(U=>(0,m.A)(U,"alreadyExist")?(0,s.of)(U):this.isExcludedFromBouncer(B.value)?(0,s.of)(null):this.runBouncerCheck(B.value)))}}checkUniqueness(f,v){return this._httpService.post("api/v1/account/validate",{fieldName:f,fieldValue:v,country:this._registrationService.registrationSelectedCountry()?.iso3}).pipe((0,a.T)(D=>(0,m.A)(D,"errorCode")!==r.L0&&(0,m.A)(D,"payload")?null:{alreadyExist:!0}),(0,u.W)(()=>(0,s.of)(null)))}isExcludedFromBouncer(f){const v=this._restConfiguration.getGeneralCustomConfigurationParams("domainsExcludedFromBouncer");if("string"!=typeof v)return!1;const D=f.split("@")[1];return v.replace(/\s/g,"").split(",").includes(D)}runBouncerCheck(f){return this._registrationService.verifyEmail(f).pipe((0,a.T)(v=>(this.updateSuggestion(v.didYouMean??null),this.isBouncerEmailValid(v)&&!v.didYouMean?null:{bouncerError:!0})))}isBouncerEmailValid(f){return("deliverable"===f.status||"risky"===f.status)&&"yes"!==f.domain?.disposable}updateSuggestion(f){this._bouncerService.suggestedEmail.next(f?{message:`${this._translate.instant("general.did_you_mean_email")} ${f}`,email:f}:null)}static{this.\u0275fac=function(v){return new(v||R)(_.KVO(C.k),_.KVO(x.u),_.KVO(i.RegistrationService),_.KVO(c.g),_.KVO(O.c$),_.KVO(P.M))}}static{this.\u0275prov=_.jDH({token:R,factory:R.\u0275fac})}}return R})()},80209:(y,p,e)=>{e.d(p,{i:()=>c});var r=e(94727),s=e(14421),t=e(68002),l=e(49090),a=e(95006),u=e(83921),M=e(72036),m=e(62125),_=e(54438),C=e(65283),x=e(58167),i=e(59562);let c=(()=>{class O{constructor(A,R,d){this._httpService=A,this._authService=R,this._registrationService=d}validate(A){if((0,M.A)(A.value))return(0,s.of)(null);const R=(0,m.A)(A,"parent.controls");if(!R)return(0,s.of)(null);const d=Object.keys(R).find(v=>A===R[v])||null;if(d===r.Ok.ALIEN_REGISTRATION_CARD_NUMBER.name)return this._registrationService.personalIdInputFieldValid.next(!0),(0,s.of)(null);const f=this._authService.currentUser();return(0,m.A)(f,`${d}`)&&(0,m.A)(f,`${d}`)===A.value?(0,s.of)(null):(0,s.of)(A.value).pipe((0,t.c)(300),(0,l.n)(()=>this._httpService.post("api/v1/account/validate",{fieldName:d,fieldValue:A.value,country:this._registrationService.registrationSelectedCountry()?.iso3}).pipe((0,a.T)(v=>(0,m.A)(v,"errorCode")!==r.L0&&(0,m.A)(v,"payload")?((d===r.Ok.PERSONAL_ID.name||d===r.Ok.ALIEN_REGISTRATION_CARD_NUMBER.name)&&this._registrationService.personalIdInputFieldValid.next(!0),null):{alreadyExist:!0}),(0,u.W)(()=>(0,s.of)(null)))))}static{this.\u0275fac=function(R){return new(R||O)(_.KVO(C.k),_.KVO(x.u),_.KVO(i.RegistrationService))}}static{this.\u0275prov=_.jDH({token:O,factory:O.\u0275fac})}}return O})()},71507:(y,p,e)=>{function r(s=""){return t=>s&&t.value&&!new RegExp(s).test(t.value)?{custom_error_message:"registration.alien_registration_card_number_not_val
1id"}:{}}e.d(p,{_:()=>r})},41945:(y,p,e)=>{e.d(p,{D:()=>s});var r=e(94727);function s(t=[]){return l=>""===l.value?{}:r.Xw.test(l.value)?t.includes(l.value.split("@")[1])?{validateEmail:{valid:!1,error_message:"general.email_address_domain_is_forbidden"}}:{}:{validateEmail:{valid:!1,error_message:"general.email_address_not_valid"}}}},21931:(y,p,e)=>{e.d(p,{u:()=>s});var r=e(94727);function s(t="",l=null){return a=>{if(!a.value||a.value===l)return{};const u={validateFirstName:{valid:!1,error_message:"general.first_name_not_valid"}};try{if(a.value.startsWith(" ")||t&&!new RegExp(t).test(a.value))return u}catch{if(!r.AE.test(a.value))return u}return{}}}},72085:(y,p,e)=>{e.d(p,{g:()=>s});var r=e(94727);function s(t="",l=null){return a=>{if(!a.value||a.value===l)return{};const u={validateLastName:{valid:!1,error_message:"general.last_name_not_valid"}};try{if(a.value.startsWith(" ")||t&&!new RegExp(t).test(a.value))return u}catch{if(!r.AE.test(a.value))return u}return{}}}},9277:(y,p,e)=>{function r(){return s=>""===s.value?{}:s.value.length<3?{validateNickname:{valid:!1,error_message:"general.nickname_too_short"}}:s.value.length>255?{validateNickname:{valid:!1,error_message:"general.nickname_too_long"}}:s.value.includes(" ")||s.value.startsWith(" ")?{validateNickname:{valid:!1,error_message:"general.nickname_invalid"}}:{}}e.d(p,{T:()=>r})},99553:(y,p,e)=>{function r(){return s=>s.value&&s.value.startsWith(" ")?{validatePassportNumber:{valid:!1,error_message:"general.passport_number_not_valid"}}:{}}e.d(p,{_:()=>r})},19788:(y,p,e)=>{e.d(p,{c:()=>u,k:()=>x});var r=e(94727),s=e(67374),l=e(72036),a=e(96503);function u(d="",f="",v,D){return E=>{if(!E.value)return{};if(d===r.dX&&E.value&&!new RegExp(f).test(E.value))return{custom_error_message:"registration.selected_document_not_valid"};const w=d===r.uZ.BELGIAN_JMBG;if(w&&!r.Ai.test(E.value)||w&&E.value.startsWith(" "))return{custom_error_message:"registration.belgian_personal_id_not_valid"};if("BEL"===D.iso3){if(!function O(d){return d&&!(0,l.A)(d)&&11===d.length}(E.value))return{custom_error_message:"registration.document_id_format_error"};if(!function A(d,f){const v=s(f,"YYYY-MM-DD"),D=d.substring(4,6),E=d.substring(2,4),T=d.substring(0,2),w=v.format("DD"),B=v.format("MM"),S=v.format("YY");return D===w&&E===B&&T===S}(E.value,`${E.root.get("yearOfBirth")?.value}-${E.root.get("monthOfBirth")?.value}-${E.root.get("dayOfBirth")?.value}`))return{custom_error_message:"registration.document_id_date_error"};if(!function P(d,f){const v=(0,a.A)(d.substring(9,11)),D=(0,a.A)(function R(d,f){return new Date(f).getFullYear()<2e3?d.substring(0,9):"2"+d.substring(0,9)}(d,f));return v===97-D%97}(E.value,`${E.root.get("yearOfBirth")?.value}-${E.root.get("monthOfBirth")?.value}-${E.root.get("dayOfBirth")?.value}`))return{custom_error_message:"registration.document_id_integrity_error"}}const B=d===r.uZ.EX_YU_JMBG,{day:S,month:W,year:U}=function M(d){const f=parseInt(d.substring(0,2),10),v=parseInt(d.substring(2,4),10),D="0"===d.charAt(4)?"2":"1";return{day:f,month:v,year:parseInt(D+d.substring(4,7),10)}}(E.value);if(B){if(!r.Ui.test(E.value)||E.value.startsWith(" ")||!x(E.value)||E.value.length>6&&!function m(d,f,v){if(d<1||d>31||f<1||f>12||v<1900)return!1;const D=new Date(v,f-1,d);return D.getFullYear()===v&&D.getMonth()+1===f&&D.getDate()===d}(S,W,U))return{custom_error_message:"registration.ex_yu_personal_id_not_valid"};if(!function _(d,f,v){return new Date(v,f-1,d)<=new Date}(S,W,U)||!function C(d,f,v,D){const E=new Date,T=new Date(v,f-1,d),w=E.getMonth()>T.getMonth()||E.getMonth()===T.getMonth()&&E.getDate()>=T.getDate(),B=E.getFullYear()-T.getFullYear();return B>D||B===D&&w}(S,W,U,v))return{custom_error_message:"registration.ex_yu_personal_id_under_age"}}return d!==r.uZ.BRAZILIAN_CPF||function c(d){if(d=d.replace(/[.-]/g,""),!/^\d{11}$/.test(d)||d.split("").every(T=>T===d[0]))return!1;let f=0;for(let T=0;T<9;T++)f+=parseInt(d[T])*(10-T);let v=10*f%11;10===v&&(v=0);let D=0;for(let T=0;T<10;T++)D+=parseInt(d[T])*(11-T);let E=10*D%11;return 10===E&&(E=0),v===parseInt(d[9])&&E===parseInt(d[10])}(E.value)?E.value.startsWith(" ")?{custom_error_message:"registration.personal_id_not_valid"}:d!==r.uZ.EXACTLY_9_DIGITS||r.er.test(E.value)?{}:{custom_error_message:"registration.not_exactly_nine_digits"}:{custom_error_message:"registration.personal_id_not_valid"}}}function x(d){return/^60|66$/.test(d.substring(7,9))||parseInt(d.charAt(12),10)===function i(d,f){let D,E,v=0;for(D=d.length-1,E=2;D>=0;D--)v+=parseInt(d.charAt(D),10)*E,E=7===E?2:E+1;return v=11-v%11,typeof f>"u"?v:f(v)}(d.substring(0,12),function(f){return 11===f?0:10===f?"X":f})}},45181:(y,p,e)=>{e.d(p,{F:()=>t,r:()=>l});var r=e(94727),s=e(67640);function t(a,u,M){return m=>(0,s.A)(m.value)||m.value===u&&!M?{}:a?new RegExp(a).test(m.value.slice(1))?{}
1:{phone_message:"registration.phone_invalid"}:r.fC.test(m.value)?{}:{phone_message:"registration.phone_invalid"}}function l(a,u){if(!a||!u)return a;const M=u.split(",").map(m=>m.trim()).filter(Boolean);for(const m of M)if(a.startsWith(`${m}0`))return m+a.slice(m.length+1);return a}},42641:(y,p,e)=>{function r(s="",t="selected_document_not_valid"){return l=>l.value&&s&&""!==s?new RegExp(s).test(l.value)?{}:{custom_error_message:`registration.${t}`}:{}}e.d(p,{G:()=>r})},46421:(y,p,e)=>{e.d(p,{A:()=>x});const s={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let t;const l=new Uint8Array(16);function a(){if(!t&&(t=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!t))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return t(l)}const u=[];for(let i=0;i<256;++i)u.push((i+256).toString(16).slice(1));const x=function C(i,c,O){if(s.randomUUID&&!c&&!i)return s.randomUUID();const P=(i=i||{}).random||(i.rng||a)();if(P[6]=15&P[6]|64,P[8]=63&P[8]|128,c){O=O||0;for(let A=0;A<16;++A)c[O+A]=P[A];return c}return function M(i,c=0){return u[i[c+0]]+u[i[c+1]]+u[i[c+2]]+u[i[c+3]]+"-"+u[i[c+4]]+u[i[c+5]]+"-"+u[i[c+6]]+u[i[c+7]]+"-"+u[i[c+8]]+u[i[c+9]]+"-"+u[i[c+10]]+u[i[c+11]]+u[i[c+12]]+u[i[c+13]]+u[i[c+14]]+u[i[c+15]]}(P)}},41163:(y,p,e)=>{e.d(p,{A:()=>l});var r=e(1827);const l=(0,e(35528).A)(function(a,u,M){(0,r.A)(a,M,u)})},35475:(y,p,e)=>{e.d(p,{A:()=>m});var r=e(54367),s=e(71981),t=e(14495),l=e(90941),a=e(98388),u=e(6165);const m=(0,t.A)(function(_){var C=(0,u.A)(_);return(0,a.A)(C)&&(C=void 0),(0,l.A)((0,r.A)(_,1,a.A,!0),(0,s.A)(C,2))})},32661:(y,p,e)=>{e.d(p,{A:()=>l});var r=e(71981),s=e(90941);const l=function t(a,u){return a&&a.length?(0,s.A)(a,(0,r.A)(u,2)):[]}}}]);
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.