1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="784189e1-5244-53ef-a411-84d2699d0a2a")}catch(e){}}(); 3import{c as nn,e as an,f as ln,g as sn,h as _n,i as dn,j as cn}from"./chunk-3VQY7CP5.js";import{a as Ji,b as en,c as Ze,d as tn,e as ct,f as Ae,g as We,h as on,i as rn}from"./chunk-WD63J25I.js";import"./chunk-MRC2CX5X.js";import{a as mn,c as gn}from"./chunk-IZSQUGEY.js";import{a as un}from"./chunk-FSQAHYSY.js";import{a as Wi}from"./chunk-KBCTSQFJ.js";import{a as Qi}from"./chunk-SW6CAPI4.js";import{b as Zi}from"./chunk-7QJ77ZCD.js";import{a as be}from"./chunk-ZPM45NLY.js";import{a as Yi,c as ji,d as Hi}from"./chunk-VLPNYV4A.js";import{a as Ki}from"./chunk-YQXGMYTO.js";import"./chunk-EHVW67QS.js";import{a as yi}from"./chunk-APEUVV3O.js";import{a as Ri}from"./chunk-5LMAWQYI.js";import"./chunk-UPRC7JJP.js";import{a as ki}from"./chunk-MHQHHVUD.js";import{b as Bi,c as Pi}from"./chunk-DPILNUQ3.js";import{b as wi}from"./chunk-7SCCCBYQ.js";import"./chunk-LC4GL6BY.js";import{c as $i,e as Di}from"./chunk-2ICD3D72.js";import"./chunk-2NRTP7BR.js";import"./chunk-UHMKYJG2.js";import{a as Si,c as Ci}from"./chunk-A22WE6F5.js";import{C as qi,D as Xi,d as Vi,e as _t,h as dt,r as Ui,z as zi}from"./chunk-TY2GBP32.js";import{v as ni}from"./chunk-YWQYW5MA.js";import"./chunk-KNCHZJHO.js";import"./chunk-UXXP5PY7.js";import{a as ii}from"./chunk-BBT3V5DN.js";import"./chunk-QPQ5U7CL.js";import"./chunk-NCFVXXCT.js";import{w as ti}from"./chunk-V6MPAE46.js";import{a as mi,b as gi,c as ui,d as pi}from"./chunk-LNJURUA7.js";import{j as He}from"./chunk-WBWFC5I2.js";import"./chunk-JARYQ55D.js";import"./chunk-SVCKQJI6.js";import"./chunk-WSR2LQXJ.js";import"./chunk-IFE2GPQA.js";import"./chunk-DB2EWK5V.js";import{b as ci}from"./chunk-KZCV2X3U.js";import"./chunk-N5I6IL56.js";import"./chunk-5PGIH6PG.js";import"./chunk-HGY444TQ.js";import{d as hi}from"./chunk-2P33FOQL.js";import"./chunk-HTX22PMO.js";import{e as fi,f as Mi}from"./chunk-SIQ7V5LT.js";import{a as Qe}from"./chunk-A5MRUSUO.js";import"./chunk-SOH3N7R2.js";import"./chunk-SEYW75FS.js";import{a as xi,c as Ai,e as Fi,f as Li}from"./chunk-AQP6QX3A.js";import"./chunk-YOTUHAUV.js";import{a as Ne}from"./chunk-RNZLFFKC.js";import{a as Oi}from"./chunk-ASPQ7FYG.js";import{b as Gi}from"./chunk-URCHDJUK.js";import"./chunk-TNHIGFEG.js";import{a as bi}from"./chunk-PYERVEJ7.js";import{a as Ni}from"./chunk-UP5NWMB2.js";import{a as vi}from"./chunk-NG2UH5JV.js";import"./chunk-V7KFNQFG.js";import"./chunk-UCWNRO56.js";import"./chunk-IPHVRA3S.js";import"./chunk-PXSA72QB.js";import{b as di}from"./chunk-MC32HPIJ.js";import{b as Ii}from"./chunk-LM6YNNWJ.js";import"./chunk-CN6LWDZI.js";import{b as ve}from"./chunk-PGDKNYNP.js";import"./chunk-K43FAQHA.js";import"./chunk-FLXVTRWX.js";import"./chunk-SAVWZB3V.js";import"./chunk-UAKJ6LOD.js";import{c as oi}from"./chunk-R5JSEUD6.js";import{a as ei}from"./chunk-MWL2FFFD.js";import{b as Ei,d as Ti}from"./chunk-A32FKUNT.js";import{a as ri}from"./chunk-5OIQMPTD.js";import"./chunk-WK7JGA4O.js";import"./chunk-LQ4VKUEJ.js";import"./chunk-BEUPFSZF.js";import{c as Ue}from"./chunk-WYHHUQGQ.js";import{a as de}from"./chunk-ASX35LZ3.js";import"./chunk-5CMGDIGY.js";import{a as li,c as si,d as G,e as he,f as qe,g as ce,j as Q,l as Xe,n as Ye,o as _i,r as Ke,s as je,z as Oe}from"./chunk-3I3QRXE3.js";import"./chunk-KP4ZWBAU.js";import{i as Me}from"./chunk-LENXEETP.js";import{b as ai,c as ze}from"./chunk-QYZK7QCM.js";import{a as st}from"./chunk-IB7PDLZR.js";import{i as fe,n as Ve}from"./chunk-VCEBYPVT.js";import"./chunk-RUVMA635.js";import"./chunk-QY63XGLG.js";import"./chunk-JP3J2EIG.js";import"./chunk-B4OJV77W.js";import"./chunk-TJLDHIGF.js";import"./chunk-TUAUSIH7.js";import"./chunk-H5VGPPNX.js";import{Q as Zt,x as Ht,z as Qt}from"./chunk-IJME5RCK.js";import"./chunk-VVHXKJVC.js";import"./chunk-53LEKQ6W.js";import"./chunk-TBDJQ7TF.js";import"./chunk-GHFNDSJY.js";import{b as xe,e as qt,j as De,k as Xt,p as we}from"./chunk-EIJYTSSU.js";import{e as se,f as _e}from"./chunk-YSIK6MXW.js";import{a as Ie}from"./chunk-JSFO5J2A.js";import"./chunk-W46QXR7J.js";import"./chunk-7JZBFRBC.js";import"./chunk-VEE7FFD6.js";import"./chunk-Y3BOGZA4.js";import"./chunk-R6OQSG5T.js";import"./chunk-RFGDW4TP.js";import"./chunk-HW4GJV3L.js";import"./chunk-E4PRIN5E.js";import"./chunk-VYMYI5JX.js";import"./chunk-XSGLK73N.js";import"./chunk-2FDBDQC5.js";import{b as Wt}from"./chunk-QRUNXDIJ.js";import{a as Jt}from"./chunk-UBZAA23F.js";import"./chunk-IKI4AKGO.js";import"./chunk-AYDJY52V.js";import"./chunk-J62MJSSO.js";import{a as te}from"./chunk-J77BE44H.js";import"./chunk-QZXYJUOV.js";import{a as Yt,d as Kt}from"./chunk-EDGYPARL.js";import{m as W,n as jt}from"./chunk-HHMEJT5Q.js";import"./chunk-G3UAL5O7.js";import{a as k,c as zt}from"./chunk-RE4Z5UYO.js";import{J as Vt,da as le}from"./chunk-UHERDYYU.js";import{F as Y,m as $e,t as wt,v as ae}from"./chunk-AI7XZROF.js";import{a as J,b as pe}from"./chunk-QYBPOF7X.js";import{a as Ut}from"./chunk-ZRIFOCYK.js";import"./chunk-U4TDMDM3.js";import{A as Mt,Aa as C,Ac as m,Ad as Rt,Bc as $,Bd as Ee,C as It,Cc as q,Cd as Te,Db as l,Dc as Lt,Dd as Bt,E as ht,Ha as O,I as me,Ia as v,Ib as At,Id as E,Ja as Nt,Jd as I,Ka as bt,Kc as A,Kd as B,La as Gt,Ld as Pt,Ma as xt,Na as ne,Qc as ge,R as Ge,Rc as ue,Rd as Pe,Sc as f,Ta as w,Td as ke,Uc as j,Ud as kt,Vb as N,Vc as H,Vd as $t,Wa as oe,Wc as Be,Xc as M,Yb as re,Zc as at,Zd as P,_c as d,_d as h,ce as Dt,f as ot,id as lt,ka as Ot,kd as D,ma as Ce,md as yt,nd as b,od as X,pc as Le,pd as V,qc as g,rc as ye,sc as u,t as Et,tc as Ft,ua as rt,uc as Re,ud as y,v as Tt,va as vt,vc as U,vd as R,w as ft,wc as z,wd as x,xc as p,yc as s,zc as _}from"./chunk-P7PFFTQP.js";import{a as Z,b as ie}from"./chunk-CHCY4HII.js";var Je=(()=>{let i=class i{constructor(){this.checkRequestClick=P(),this.ASSET=J;}};i.ɵfac=function(t){return new(t||i)();},i.ɵcmp=N({type:i,selectors:[["eld-boosting-game-active-request"]],outputs:{checkRequestClick:"checkRequestClick"},decls:9,vars:6,consts:()=>{let e;e="Exclamation mark";let t;t="Check request";let r;r="You already have an active request";let a;return a=" If you'd like to submit a new one, cancel the current request first. ",[r,a,[1,"bg-marine-20","border-marine","flex","flex-col","gap-2.5","rounded-2xl","border","px-2.5","py-3"],[1,"flex","items-center","gap-2"],["alt",e,3,"filePath","height","width"],[1,"text-base","font-bold"],["text",t,"theme","secondary-reverse",3,"buttonClick"]];},template:function(t,r){t&1&&(s(0,"div",2)(1,"div",3),m(2,"eld-image",4),E(3,"getElDragoAssetUrl"),s(4,"p",5),f(5,0),_()(),s(6,"p"),f(7,1),_(),s(8,"eld-button",6),M("buttonClick",function(){return r.checkRequestClick.emit();}),_()()),t&2&&(l(2),p("filePath",B(3,3,"exclamation-mark-filled.svg",r.ASSET.Miscellaneous))("height",26)("width",27));},dependencies:[_e,de,di],encapsulation:2,changeDetection:0});let n=i;return n;})();var Se=(()=>{let i=class i{constructor(){this.sessionStorageService=C(Kt),this.locale=C(Pe);}
3saveValues(e){let t=this.generateStorageKey(e.key),r=this.stripFileObjects(e.formData),a={version:e.version,locale:this.locale,value:r};this.sessionStorageService.setItem(t,JSON.stringify(a));}getValues(e){let t=this.generateStorageKey(e.key),r=this.sessionStorageService.getItemValue(t);if(r)try{let a=JSON.parse(r);if(a.version===e.currentVersion&&a.locale===this.locale)return a.value;}catch{return null;}return null;}stripFileObjects(e){return e==null?e:e instanceof File?null:Array.isArray(e)?this.shouldReplaceArray(e)?void 0:e.map(t=>this.stripFileObjects(t)):this.isObject(e)?this.processObject(e):e;}shouldReplaceArray(e){return e.length>0&&(e[0]instanceof File||e.every(t=>t===null));}isObject(e){return typeof e=="object"&&e!==null&&!Array.isArray(e);}processObject(e){let t=Z({},e);return Object.keys(t).forEach(r=>{t[r]!==null&&t[r]!==void 0&&(t[r]=this.stripFileObjects(t[r]));}),t;}generateStorageKey(e){return`${e.gameId}-${e.categoryId}-boosting-${e.formType}-form`;}};i.ɵfac=function(t){return new(t||i)();},i.ɵprov=vt({token:i,factory:i.ɵfac,providedIn:"root"});let n=i;return n;})();var An=()=>({mobile:"1rem"});function Fn(n,i){if(n&1){let o=A();s(0,"span",2),b(1),_(),s(2,"div",3)(3,"div",4)(4,"eld-tabs-v2",5),M("activeTabIdChange",function(t){O(o);let r=d();return v(r.changeTab(t));}),_()()();}if(n&2){let o,e=d(),t=x(0);l(),V(" ",e.gameName()," "),l(3),p("activeTabId",((o=e.selectedCategory())==null?null:o.id)??null)("padding",Ee(4,An))("tabs",t);}}function Ln(n,i){n&1&&m(0,"eld-skeleton",6);}function yn(n,i){if(n&1&&(s(0,"div",1),U(1,Ln,1,0,"eld-skeleton",6,Ft),_()),n&2){let o=d();l(),z(o.SKELETONS);}}var pn=(()=>{let i=class i{constructor(){this.boostingCategories=h.required(),this.gameName=h.required(),this.gameId=h.required(),this.categorySelected=P(),this.platform=C(le),this.boostingFormStorage=C(Se),this.ASSET=J,this.CATEGORY=te,this.SKELETONS=new Array(4),this.selectedCategory=$t(()=>{let e=this.boostingCategories();if(!e?.length)return null;let t=this.boostingFormStorage.getValues({key:this.storageKey()});return e.every(r=>r.id!==t?.id)?e[0]:t;}),this.storageKey=kt(()=>({gameId:this.gameId(),formType:"categories",categoryId:null})),oe(()=>{let e=this.selectedCategory();e&&this.categorySelected.emit(e);});}changeTab(e){let t=this.boostingCategories();if(!t?.length)return;let r=t.find(a=>a.id===e);r&&(this.boostingFormStorage.saveValues({key:this.storageKey(),formData:r}),this.selectedCategory.set(r));}};i.ɵfac=function(t){return new(t||i)();},i.ɵcmp=N({type:i,selectors:[["eld-boosting-game-categories"]],inputs:{boostingCategories:[1,"boostingCategories"],gameName:[1,"gameName"],gameId:[1,"gameId"]},outputs:{categorySelected:"categorySelected"},decls:4,vars:2,consts:[[1,"flex","flex-col","py-4"],[1,"flex","items-center","gap-2","pt-11","pb-3","md:pt-4"],[1,"text-primary","text-5","font-bold","md:hidden"],[1,"-mx-3.5","md:mx-0"],[1,"my-3.5","mb-2.5","flex","min-w-0","gap-3.5"],[1,"relative","min-w-0","flex-1",3,"activeTabIdChange","activeTabId","padding","tabs"],[1,"h-8","w-32","rounded-full"]],template:function(t,r){if(t&1&&(y(0),s(1,"div",0),g(2,Fn,5,5)(3,yn,3,0,"div",1),_()),t&2){let a=R(r.boostingCategories());l(2),u(r.platform.browser&&a?2:3);}},dependencies:[se,Ji],encapsulation:2,changeDetection:0});let n=i;return n;})();var Sn=(()=>{let i=class i{};i.ɵfac=function(t){return new(t||i)();},i.ɵcmp=N({type:i,selectors:[["eld-boosting-game-custom-request-text"]],decls:14,vars:0,consts:()=>{let e;e="Custom Request";let t;t=" Looking for something that does not fit into regular boosting categories? Our vast selection of boosters can take care of any possible request, including: ";let r;r="Coaching";let a;a="Leveling";let c;c="Deranking";let S;return S="And lots more!",[e,t,r,a,c,S,[1,"relative","mb-[24px]"],[1,"mb-[24px]","text-[24px]","font-bold"],[1,"ml-[24px]"]];},template:function(t,r){t&1&&($(0,"div",6)(1,"div",7),f(2,0),q(),$(3,"div"),f(4,1),q(),$(5,"ul",8)(6,"li"),f(7,2),q(),$(8,"li"),f(9,3),q(),$(10,"li"),f(11,4),q(),$(12,"li"),f(13,5),q()()());},encapsulation:2,changeDetection:0});let n=i;return n;})();var Rn=(n,i)=>(i.value.skill==null?null:i.value.skill.id)??n;function Bn(n,i){n&1&&m(0,"hr",12);}
3function Pn(n,i){if(n&1&&(s(0,"span",16),f(1,2),_()),n&2){let o=d().$index;l(),j(o+1),H(1);}}function kn(n,i){n&1&&(s(0,"span",16),f(1,3),_());}function $n(n,i){n&1&&(s(0,"eld-error-message"),f(1,4),_());}function Dn(n,i){if(n&1&&(s(0,"eld-error-message"),f(1,5),_()),n&2){d(3);let o=x(2);l(),j(o.validation.min)(o.validation.max),H(1);}}function wn(n,i){n&1&&(s(0,"eld-error-message"),f(1,6),_());}function Vn(n,i){if(n&1&&g(0,Dn,2,2,"eld-error-message")(1,wn,2,0,"eld-error-message"),n&2){d(2);let o=x(0);u(o!=null&&o.hasError("min")||o!=null&&o.hasError("max")?0:o!=null&&o.hasError("required")?1:-1);}}function Un(n,i){if(n&1&&(s(0,"eld-error-message"),f(1,7),_()),n&2){d(3);let o=x(2);l(),j(o.validation.min)(o.validation.max),H(1);}}function zn(n,i){n&1&&(s(0,"eld-error-message"),f(1,8),_());}function qn(n,i){if(n&1&&g(0,Un,2,2,"eld-error-message")(1,zn,2,0,"eld-error-message"),n&2){d(2);let o=x(1);u(o!=null&&o.hasError("min")||o!=null&&o.hasError("max")?0:o!=null&&o.hasError("required")?1:-1);}}function Xn(n,i){n&1&&(s(0,"eld-error-message"),f(1,9),_());}function Yn(n,i){if(n&1&&(s(0,"div",24),g(1,$n,2,0,"eld-error-message"),g(2,Vn,2,1),g(3,qn,2,1),g(4,Xn,2,0,"eld-error-message"),_()),n&2){let o,e=d().$implicit,t=x(0),r=x(1),a=x(2);l(),u((o=e.get("skill"))!=null&&o.hasError("required")?1:-1),l(),u(a&&t!=null&&t.invalid?2:-1),l(),u(a&&r!=null&&r.invalid?3:-1),l(),u(e.hasError("desiredLevelTooLow")?4:-1);}}function Kn(n,i){n&1&&m(0,"hr",12);}function jn(n,i){if(n&1){let o=A();y(0)(1)(2),g(3,Bn,1,0,"hr",12),s(4,"form",13)(5,"div",14)(6,"div",15),g(7,Pn,2,1,"span",16)(8,kn,2,0,"span",16),s(9,"eld-icon",17),M("click",function(){let t=O(o).$index,r=d();return v(r.removeSkill(t));}),_()(),m(10,"eld-dropdown",18),_(),s(11,"div",19)(12,"div",20)(13,"label"),f(14,0),_(),m(15,"eld-numeric-input",21),_(),s(16,"div",20)(17,"label"),f(18,1),_(),m(19,"eld-numeric-input",22),_(),s(20,"eld-icon",23),M("click",function(){let t=O(o).$index,r=d();return v(r.removeSkill(t));}),_()()(),g(21,Yn,5,4,"div",24),g(22,Kn,1,0,"hr",12);}if(n&2){let o,e=i.$implicit,t=i.$index,r=i.$index,a=i.$count,c=i.$count,S=d();R(e.get("currentLevel")),l(),R(e.get("desiredLevel")),l();let T=R((o=e.get("skill"))==null?null:o.value);l(),u(r!==0?3:-1),l(),p("formGroup",e)("id","skill-form-"+((T==null?null:T.id)??t)),l(3),u(a>1?7:8),l(2),D("invisible",a===1),p("size",20),l(),p("clearable",!1)("hugContent",!1)("options",S.availableValuesByIndex[t])("virtualScrolling",!0),l(5),p("max",(T??S.values()[0]).validation.max)("min",(T??S.values()[0]).validation.min),l(4),p("max",(T??S.values()[0]).validation.max)("min",(T??S.values()[0]).validation.min),l(),D("invisible",a===1),l(),u(e.invalid&&S.isFormSubmitted()?21:-1),l(),u(r===c-1?22:-1);}}function Hn(n,i){if(n&1){let o=A();s(0,"eld-button",25),M("buttonClick",function(){O(o);let t=d();return v(t.addSkill());}),_();}}var mt=(()=>{let i=class i{constructor(){this.values=h.required(),this.isFormSubmitted=h(!1),this.availableValuesByIndex=[],this.destroyRef=C(ne),this.unsubscribeFormArray$=new ot(),this.unsubscribeFormGroups$=new ot(),this.onChange=()=>{},this.onTouched=()=>{},oe(()=>{let e=this.values();!this.skillsFormArray&&e.length?(this.skillsFormArray=new Ye([this.createSkillFormGroup(e[0])]),this.subscribeToSkillChanges()):this.skillsFormArray&&e.length&&(this.resolveSkillReferences(),this.updateAvailableValues(),this.syncSkillReferences(),this.subscribeToSkillChanges());});}writeValue(e){let t=this.values();if(t.length){if(this.unsubscribeFormGroups$.next(),!e||e.length===0)this.skillsFormArray=new Ye([this.createSkillFormGroup(t[0])]);else{let r=e.map((a,c)=>{let S=t.find(T=>T.id===a.skill?.id)??(c===0?t[0]:null);return this.createSkillFormGroup(S,a);});this.skillsFormArray=new Ye(r);}this.subscribeToSkillChanges(),this.updateAvailableValues(),this.syncSkillReferences();}}registerOnChange(e){this.onChange=e;}registerOnTouched(e){this.onTouched=e;}setDisabledState(e){this.skillsFormArray&&(e?this.skillsFormArray.disable():this.skillsFormArray.enable());}validate(){return this.skillsFormArray?.invalid?{invalid:!0}:null;}createSkillFormGroup(e,t){let r=t?.skill??e,a=(r??this.values()[0])?.validation,c=new ce({skill:new Q(r,[G.required]),currentLevel:new Q(t?.currentLevel??a.min,[G.required,G.min(a.min),G.max(a.max)]),desiredLevel:new Q(t?.desiredLevel??a.max,[G.required,G.min(a.min),G.max(a.max)])},{validators:this.desiredLevelGreaterThanCurrent});return this.subscribeToSkillControl(c),c;}addSkill(){let e=this.skillsFormArray.controls.map(r=>r.value.skill);this.values().filter(r=>!e.some(a=>a?.id===r.id)).length>0&&(this.skillsFormArray.push(this.createSkillFormGroup(null)),this.updateAvailableValues(),this.syncSkillReferences(),this.onChange(this.skillsFormArray.value));}removeSkill(e){e>=0&&e<this.skillsFormArray.length&&(this.skillsFormArray.removeAt(e),this.updateAvailableValues(),this.syncSkillReferences(),this.onChange(this.skillsFormArray.value));}subscribeToSkillControl(e){e.controls.skill.valueChanges.pipe(Ce(this.unsubscribeFormGroups$),k(this.destroyRef),me(Boolean)).subscribe(t=>{e.controls.currentLevel.setValidators([G.required,G.min(t.validation.min),G.max(t.validation.max)]),e.controls.desiredLevel.setValidators([G.required,G.min(t.validation.min),G.max(t.validation.max)]),e.controls.currentLevel.updateValueAndValidity(),e.controls.desiredLevel.updateValueAndValidity(),this.updateAvailableValues(),this.syncSkillReferences();});}subscribeToSkillChanges(){this.unsubscribeFormArray$.next(),this.skillsFormArray.valueChanges.pipe(Ce(this.unsubscribeFormArray$),k(this.destroyRef)).subscribe(e=>{this.updateAvailableValues(),this.onChange(e),this.onTouched();}),this.skillsFormArray.statusChanges.pipe(Ce(this.unsubscribeFormArray$),k(this.destroyRef)).subscribe(()=>{this.onChange(this.skillsFormArray.value),this.onTouched();});}updateAvailableValues(){this.availableValuesByIndex=[],this.skillsFormArray.controls.forEac
3h((e,t)=>{let r=e.value.skill?.id,a=this.skillsFormArray.controls.map(T=>T.value.skill).filter(T=>T&&(!r||T.id!==r)),c=this.values().filter(T=>!a.some(L=>L?.id===T.id)),S=e.value.skill;S&&!c.some(T=>T.id===S.id)&&c.unshift(S),this.availableValuesByIndex[t]=c;});}resolveSkillReferences(){this.skillsFormArray.controls.forEach(e=>{let t=e.value.skill?.id;if(t){let r=this.values().find(a=>a.id===t);r&&e.patchValue({skill:r});}});}syncSkillReferences(){this.skillsFormArray.controls.forEach((e,t)=>{let r=e.value.skill;if(r){let a=this.availableValuesByIndex[t]?.find(c=>c.id===r.id);a&&a!==r&&e.patchValue({skill:a});}});}desiredLevelGreaterThanCurrent(e){let t=e.get("currentLevel")?.value,r=e.get("desiredLevel")?.value;return t!=null&&r!=null&&r<=t?{desiredLevelTooLow:!0}:null;}};i.ɵfac=function(t){return new(t||i)();},i.ɵcmp=N({type:i,selectors:[["eld-multi-skill-leveling"]],inputs:{values:[1,"values"],isFormSubmitted:[1,"isFormSubmitted"]},features:[Rt([{provide:li,useExisting:rt(()=>i),multi:!0},{provide:si,useExisting:rt(()=>i),multi:!0}])],decls:4,vars:1,consts:()=>{let e;e="Add another skill";let t;t="Select a skill";let r;r=" Current level ";let a;a=" Desired level ";let c;c=" Skill #"+"\uFFFD0\uFFFD"+" ";let S;S=" Skill ";let T;T=" Skill is required ";let L;L=" Current level must be between "+"\uFFFD0\uFFFD"+" and "+"\uFFFD1\uFFFD"+" ";let ee;ee=" Current level is required ";let pt;pt=" Desired level must be between "+"\uFFFD0\uFFFD"+" and "+"\uFFFD1\uFFFD"+" ";let St;St=" Desired level is required ";let Ct;return Ct=" Desired level must be greater than current level ",[r,a,c,S,T,L,ee,pt,St,Ct,[1,"mt-3","flex","flex-col","gap-4","md:gap-3"],["iconBeforeText","add","text",e,"theme","secondary",1,"mt-5","block","md:max-w-fit"],[1,"border-stroke","border-divider","md:hidden"],[1,"skill-form","flex","flex-col","gap-3","md:grid","md:grid-cols-2","md:items-end","md:gap-8",3,"formGroup","id"],[1,"flex","flex-col","gap-2.5","md:gap-1.5"],[1,"flex","items-center","justify-between"],[1,"text-secondary","text-lg","font-bold","md:text-sm","md:font-normal"],["name","delete",1,"text-secondary","flex","h-8","w-8","cursor-pointer","items-center","justify-center","md:hidden",3,"click","size"],["bindImage","iconLocation","bindLabel","name","formControlName","skill","placeholder",t,"size","l",3,"clearable","hugContent","options","virtualScrolling"],[1,"flex","gap-3.5","md:flex-row","md:items-center"],[1,"flex","flex-1","flex-col","gap-1.5","self-end"],["formControlName","currentLevel","size","xl",3,"max","min"],["formControlName","desiredLevel","size","xl",3,"max","min"],["name","delete",1,"hidden","cursor-pointer","pt-6.25","md:block",3,"click"],[1,"-mt-1.5"],["iconBeforeText","add","text",e,"theme","secondary",1,"mt-5","block","md:max-w-fit",3,"buttonClick"]];},template:function(t,r){t&1&&(s(0,"div",10),U(1,jn,23,22,null,null,Rn),_(),g(3,Hn,1,0,"eld-button",11)),t&2&&(l(),z(r.skillsFormArray.controls),l(2),u(r.skillsFormArray.length!==r.values().length?3:-1));},dependencies:[de,ve,be,He,Oe,Xe,he,qe,je,Ke,Me],encapsulation:2,changeDetection:0});let n=i;return n;})();var et=class n extends ce{constructor(i){super(n.createCardControls(i)),this.cards=i,this.cardGroups=[],this.initializeCardGroups();}getAllHeaderData(){return this.cards.map((i,o)=>this.getHeaderInputData(o)).filter(i=>!!i);}getCardRequestDetails(){let i=[],o=[];return this.cards.forEach((e,t)=>{let r=this.cardGroups[t];e.inputs.forEach((a,c)=>{if(Ae(a)){(r.get(c.toString())?.value||[]).forEach(ee=>{!ee.skill||ee.currentLevel==null||ee.desiredLevel==null||i.push({id:ee.skill.id,value:`${ee.currentLevel}-${ee.desiredLevel}`,includeInNotification:!!a.includeInNotification});});return;}let S=r.get(c.toString())?.value,T="";ct(a)?a.type===Ze.MultiSelect&&Array.isArray(S)?T=S.map(L=>L.name).join(", "):T=String(S.id):We(a)?T=S?.toString():rn(a)&&S?S.forEach(L=>{o.push({id:+a.id,value:L});}):T=S,T&&i.push({id:+a.id,value:T,includeInNotification:!!a.includeInNotification});});}),{descriptionValues:i,images:o};}initializeCardGroups(){this.cardGroups.length=0;for(let i=0;i<this.cards.length;i++)this.cardGroups.push(this.get(i.toString()));}static createCardControls(i){let o={};
3return i.forEach((e,t)=>{let r={};e.inputs.forEach((a,c)=>{Ae(a)?r[c]=new Q(n.getMultiSkillDefaultValue(a),n.getValidators(a)):r[c]=new Q(n.getDefaultValue(a),n.getValidators(a));}),o[t]=new ce(r);}),o;}static getDefaultValue(i){if(We(i))return i.default??i.validation?.min??0;if(ct(i)&&i.values.length>0){if(i.defaultValueId){let o=i.values.find(e=>e.id===i.defaultValueId);if(o)return o;}return i.values[0];}return"";}static getMultiSkillDefaultValue(i){if(Ae(i)){let o=i.values[0];return[{skill:o,currentLevel:o.validation.min,desiredLevel:o.validation.max}];}return[];}static getValidators(i){let o=[];return i.required&&o.push(G.required),We(i)&&i.validation&&(i.validation.min!==void 0&&o.push(G.min(i.validation.min)),i.validation.max!==void 0&&o.push(G.max(i.validation.max))),on(i)&&(i.validation?.minLength?o.push(G.minLength(i.validation.minLength)):o.push(G.minLength(2)),i.required&&o.push(G.required),i.validation?.maxLength&&o.push(G.maxLength(i.validation.maxLength))),Ae(i)&&i.required&&o.push(G.required),o;}getHeaderInputData(i){let o=this.cardGroups[i],e=this.cards[i],t=e?.inputs.findIndex(r=>r.updatesCardHeader)??-1;if(t!==-1)return{title:e?.inputs[t]?.title,value:o.get(t.toString())?.value??""};}};var Fe="default-boosting-card-bg.png";var En=(()=>{let i=class i{transform(e){switch(e){case"White":return"radial-gradient(39.28% 38.28% at 50.21% 50.21%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%)";case"Brown":return"radial-gradient(39.28% 38.28% at 50.21% 50.21%, rgba(240, 147, 27, 0.2) 0%, rgba(240, 147, 27, 0) 100%)";case"Orange":return"radial-gradient(39.28% 38.28% at 50.21% 50.21%, rgba(222, 159, 72, 0.2) 0%, rgba(222, 159, 72, 0) 100%)";case"Cyan":return"radial-gradient(39.28% 38.28% at 50.21% 50.21%, rgba(62, 163, 178, 0.2) 0%, rgba(62, 163, 178, 0) 100%)";case"Lavender":return"radial-gradient(39.28% 38.28% at 50.21% 50.21%, rgba(218, 138, 234, 0.2) 0%, rgba(218, 138, 234, 0) 100%)";case"Green":return"radial-gradient(39.28% 38.28% at 50.21% 50.21%, rgba(34, 223, 124, 0.15) 0%, rgba(34, 223, 124, 0) 100%)";case"Red":return"radial-gradient(39.28% 38.28% at 50.21% 50.21%, rgba(233, 140, 131, 0.2) 0%, rgba(233, 140, 131, 0) 100%)";case"Yellow":return"radial-gradient(39.28% 38.28% at 50.21% 50.21%, rgba(255, 214, 106, 0.2) 0%, rgba(255, 214, 106, 0) 100%)";default:return"";}}};i.ɵfac=function(t){return new(t||i)();},i.ɵpipe=re({name:"boostingGameCardGradient",type:i,pure:!0});let n=i;return n;})();var Tn=(()=>{let i=class i{transform(e,t){return e?.backgroundImageLocation===Fe&&t?pe.getMiscellaneousImageUrl("default-boosting-card-bg.png"):pe.getBoostingImageUrl(t,e.backgroundImageLocation??Fe);}};i.ɵfac=function(t){return new(t||i)();},i.ɵpipe=re({name:"cardBgImage",type:i,pure:!0});let n=i;return n;})();var Qn=n=>({"not-submitted":n}),Zn=n=>({background:n}),Wn=(n,i)=>i.id;function Jn(n,i){if(n&1&&(s(0,"div",9),m(1,"eld-image",14),E(2,"cardBgImage"),_()),n&2){let o=d().$implicit,e=d(2);l(),D("default",o.backgroundImageLocation===e.DEFAULT_CARD_BG_IMAGE),p("filePath",B(2,6,o,e.gameId()))("height",200)("quality",50)("width",o.width===e.WIDTH_TYPES.Half?300:600);}}function eo(n,i){n&1&&m(0,"eld-boosting-game-custom-request-text");}function to(n,i){if(n&1&&(m(0,"eld-image",18),E(1,"cardHeaderIcon")),n&2){let o=d(),e=d().$implicit,t=d(2);p("filePath",Pt(1,4,e,t.gameId(),o.value.iconLocation))("height",90)("quality",80)("width",90);}}function io(n,i){if(n&1&&(s(0,"div",15),m(1,"div",16),E(2,"boostingGameCardGradient"),_(),s(3,"div",17),g(4,to,2,8,"eld-image",18),s(5,"div",19)(6,"div",20),b(7),_(),s(8,"div",21),b(9),_()()()),n&2){let o=i,e=d().$implicit;l(),p("ngStyle",Te(6,Zn,I(2,4,o.value.color))),l(3),u(e.headerIconLocation||o.value.iconLocation?4:-1),l(3),X(o.title),l(2),V(" ",o.value.name," ");}}function no(n,i){if(n&1&&(s(0,"div",10),b(1),_()),n&2){let o=d().$implicit;l(),X(o.title);}}function oo(n,i){if(n&1&&(s(0,"div",11),b(1),_()),n&2){let o=d().$implicit;l(),X(o.description);}}function ro(n,i){if(n&1&&(s(0,"div",24),b(1),_()),n&2){let o=d().$implicit;l(),X(o.title);}}function ao(n,i){if(n&1){let o=A();s(0,"div",28),M("click",function(){O(o);let t=d(2).$implicit,r=d(3);return v(r.viewExampleImage.emit(t.exampleImageLocation));}),f(1,0),_();}}
3function lo(n,i){if(n&1&&g(0,ao,2,0,"div",27),n&2){let o=d().$implicit;u(o.exampleImageLocation?0:-1);}}function so(n,i){if(n&1&&m(0,"eld-dropdown",25),n&2){let o=d(),e=o.$implicit,t=o.$index,r=d(3),a=e.type===r.INPUT_TYPES.MultiSelect;p("ariaLabel",e.title)("clearable",!1)("formControlName",t)("markFirst",!a)("multiSelect",a)("options",e.values)("placeholder",e.placeholder||r.defaultMultiSelectPlaceholder)("searchable",a||e.values.length>=10)("virtualScrolling",!0);}}function _o(n,i){n&1&&m(0,"hr",29);}function co(n,i){if(n&1&&(g(0,_o,1,0,"hr",29),m(1,"eld-multi-skill-leveling",30),E(2,"resolveSkillIcons")),n&2){let o=d(),e=o.$implicit,t=o.$index,r=d(3);u(t!==0?0:-1),l(),p("formControlName",t)("isFormSubmitted",r.isFormSubmitted())("values",B(2,4,e.values,r.gameId()));}}function mo(n,i){if(n&1&&(s(0,"eld-error-message"),f(1,1),_()),n&2){let o=d(3).$implicit;l(),j(o.validation==null?null:o.validation.min)(o.validation==null?null:o.validation.max),H(1);}}function go(n,i){if(n&1&&(s(0,"eld-error-message"),f(1,2),_()),n&2){let o=d(3).$implicit;l(),j(o.validation==null?null:o.validation.min),H(1);}}function uo(n,i){if(n&1&&(g(0,mo,2,2,"eld-error-message"),E(1,"isNil"),E(2,"isNil"),E(3,"isNil"),ye(4,go,2,1,"eld-error-message")),n&2){let o=d(2).$implicit;u(!I(1,1,o.validation==null?null:o.validation.min)&&!I(2,3,o.validation==null?null:o.validation.max)?0:!I(3,5,o.validation==null?null:o.validation.min)&&!(o.validation!=null&&o.validation.max)?4:-1);}}function po(n,i){if(n&1&&(m(0,"eld-numeric-input",31),g(1,uo,5,7)),n&2){let o=d(),e=o.$implicit,t=o.$index,r=x(0),a=d(3);p("ariaLabel",e.title)("formControlName",t)("max",(e.validation==null?null:e.validation.max)??a.MAX_SAFE_INTEGER)("min",(e.validation==null?null:e.validation.min)??a.MIN_SAFE_INTEGER)("placeholder",a.defaultNumberPlaceholder),l(),u(r!=null&&r.invalid&&a.isFormSubmitted()?1:-1);}}function So(n,i){if(n&1&&m(0,"eld-input",32),n&2){let o=d(2),e=o.$implicit,t=o.$index,r=d(3);p("formControlName",t)("placeholder",e.placeholder||r.defaultTextPlaceholder);}}function Co(n,i){if(n&1&&m(0,"eld-textarea",32),n&2){let o=d(2),e=o.$implicit,t=o.$index,r=d(3);p("formControlName",t)("placeholder",e.placeholder||r.defaultTextPlaceholder);}}function Eo(n,i){if(n&1&&(s(0,"eld-error-message"),f(1,3),_()),n&2){let o=d(2).$implicit;l(),j(o.validation==null?null:o.validation.maxLength),H(1);}}function To(n,i){if(n&1&&(g(0,So,1,2,"eld-input",32)(1,Co,1,2,"eld-textarea",32),g(2,Eo,2,1,"eld-error-message")),n&2){let o=d().$implicit,e=x(0),t=d(3);u(o.type===t.INPUT_TYPES.TextShort?0:o.type===t.INPUT_TYPES.TextLong?1:-1);let r=e==null||e.errors==null?null:e.errors.maxlength;l(2),u(r&&t.isFormSubmitted()?2:-1);}}function fo(n,i){if(n&1&&m(0,"eld-file-upload",26),n&2){let o=d().$index;p("formControlName",o)("isMultiple",!0)("maxFileCount",3)("showPreview",!1);}}function Mo(n,i){n&1&&(s(0,"eld-error-message"),f(1,4),_());}function Io(n,i){if(n&1&&(s(0,"eld-error-message"),f(1,5),_()),n&2){d();let o=x(18);l(),j(o.requiredLength),H(1);}}function ho(n,i){if(n&1&&(y(0),s(1,"div",22)(2,"div",23),g(3,ro,2,1,"div",24),E(4,"isMultiSkillLevelingInput"),g(5,lo,1,1),E(6,"isImageInput"),_(),g(7,so,1,9,"eld-dropdown",25),E(8,"isSelectInput"),g(9,co,3,7),E(10,"isMultiSkillLevelingInput"),g(11,po,2,6),E(12,"isNumberInput"),g(13,To,3,2),E(14,"isTextInput"),g(15,fo,1,4,"eld-file-upload",26),E(16,"isImageInput"),g(17,Mo,2,0,"eld-error-message"),y(18),g(19,Io,2,1,"eld-error-message"),_()),n&2){let o=i.$implicit,e=i.$index,t=d().$index,r=d(2),a=R(r.cardsForm.cardGroups[t].get(e.toString()));l(),D("full-width",o.width===r.WIDTH_TYPES.Full),l(2),u(I(4,12,o)?-1:3),l(2),u(I(6,14,o)?5:-1),l(2),u(I(8,16,o)?7:-1),l(2),u(I(10,18,o)?9:-1),l(2),u(I(12,20,o)?11:-1),l(2),u(I(14,22,o)?13:-1),l(2),u(I(16,24,o)?15:-1);let c=a==null||a.errors==null?null:a.errors.required;l(2),u(c&&r.isFormSubmitted()?17:-1),l();let S=R(a==null||a.errors==null?null:a.errors.minlength);l(),u(S&&r.isFormSubmitted()?19:-1);}}function Oo(n,i){if(n&1&&(s(0,"div",8),g(1,Jn,3,9,"div",9),g(2,eo,1,0,"eld-boosting-game-custom-request-text"),g(3,io,10,8)(4,no,2,1,"div",10),g(5,oo,2,1,"div",11),s(6,"form",12),U(7,ho,20,27,"div",13,Wn),_()()),n&2){let o,e=i.$implicit,t=i.$index,r=d(2);D("half-width",e.width===r.WIDTH_TYPES.Half),l(),u(e.backgroundImageLocation?1:-1),l(),u(r.type()===r.CATEGORY_TYPES.CustomRequest?2:-1),l(),u((o=r.headerData[t])?3:e.title?4:-1,o),l(2),u(e.description?5:-1),l(),p("formGroup",r.cardsForm.cardGroups[t])("ngClass",Te(8,Qn,!r.isFormSubmitted())),l(),z(e.input
3s);}}function vo(n,i){if(n&1&&U(0,Oo,9,10,"div",7,Re),n&2){d();let o=x(1);z(o);}}function No(n,i){n&1&&m(0,"eld-skeleton");}var gt=(()=>{let i=class i{constructor(){this.gameId=h.required(),this.boostingCategoryId=h.required(),this.cards=h.required(),this.version=h.required(),this.isFormSubmitted=h.required(),this.type=h(),this.formValuesChange=P(),this.formStatusChange=P(),this.viewExampleImage=P(),this.platform=C(le),this.boostingFormStorageService=C(Se),this.destroyRef=C(ne),this.injector=C(Gt),this.store=C(W),this.headerData=[],this.defaultTextPlaceholder="Type here",this.defaultNumberPlaceholder="Type a number",this.defaultMultiSelectPlaceholder="Select an option",this.isGameCategoryLoading$=this.store.select(pi),this.DEFAULT_CARD_BG_IMAGE=Fe,this.INPUT_TYPES=Ze,this.CATEGORY_TYPES=en,this.WIDTH_TYPES=tn,this.MAX_SAFE_INTEGER=Number.MAX_SAFE_INTEGER,this.MIN_SAFE_INTEGER=Number.MIN_SAFE_INTEGER,this.FORM_TYPE="cards",oe(()=>{this.cardsForm=new et(this.cards()),this.subscribeFormValueChanges(),this.subscribeFormStatusChanges(),ke(()=>this.patchSavedFormValues()),this.formValuesChange.emit(this.cardsForm.getCardRequestDetails()),this.formStatusChange.emit(this.cardsForm.valid),this.updateHeaderData(),At(()=>{this.formStatusChange.emit(this.cardsForm.valid);},{injector:this.injector});});}ngOnDestroy(){this.valueChangesSubscription?.unsubscribe(),this.statusChangesSubscription?.unsubscribe();}subscribeFormValueChanges(){this.valueChangesSubscription?.unsubscribe(),this.valueChangesSubscription=this.cardsForm.valueChanges.pipe(k(this.destroyRef)).subscribe(()=>{this.saveFormValues(),this.formValuesChange.emit(this.cardsForm.getCardRequestDetails()),this.updateHeaderData();});}updateHeaderData(){this.headerData=this.cardsForm.getAllHeaderData();}saveFormValues(){let e={gameId:this.gameId(),categoryId:this.boostingCategoryId(),formType:this.FORM_TYPE};this.boostingFormStorageService.saveValues({key:e,formData:this.cardsForm.value,version:this.version()});}patchSavedFormValues(){let e={gameId:this.gameId(),categoryId:this.boostingCategoryId(),formType:this.FORM_TYPE},t=this.boostingFormStorageService.getValues({key:e,currentVersion:this.version()});t&&this.cardsForm.patchValue(t);}subscribeFormStatusChanges(){this.statusChangesSubscription?.unsubscribe(),this.statusChangesSubscription=this.cardsForm.statusChanges.pipe(k(this.destroyRef)).subscribe(()=>{this.formStatusChange.emit(this.cardsForm.valid);});}};i.ɵfac=function(t){return new(t||i)();},i.ɵcmp=N({type:i,selectors:[["eld-boosting-game-category-cards"]],inputs:{gameId:[1,"gameId"],boostingCategoryId:[1,"boostingCategoryId"],cards:[1,"cards"],version:[1,"version"],isFormSubmitted:[1,"isFormSubmitted"],type:[1,"type"]},outputs:{formValuesChange:"formValuesChange",formStatusChange:"formStatusChange",viewExampleImage:"viewExampleImage"},decls:6,vars:4,consts:()=>{let e;e="Background image";let t;t=" View example ";let r;r=" Value must be between "+"\uFFFD0\uFFFD"+" and "+"\uFFFD1\uFFFD"+" ";let a;a=" Value must be at least "+"\uFFFD0\uFFFD"+" ";let c;c=" Maximum input length is "+"\uFFFD0\uFFFD"+" characters ";let S;S=" Field is required ";let T;return T=" Minimum input length is "+"\uFFFD0\uFFFD"+" characters. ",[t,r,a,c,S,T,[1,"cards"],[1,"card-container",3,"half-width"],[1,"card-container"],[1,"bg-image-wrapper"],[1,"mb-6","text-2xl","font-bold"],[1,"relative","mb-6","text-base"],[1,"card-form",3,"formGroup","ngClass"],[1,"form-input",3,"full-width"],["alt",e,1,"bg-image",3,"filePath","height","quality","width"],[1,"gradient-wrapper"],[1,"gradient",3,"ngStyle"],[1,"title-wrapper"],["alt","Card header icon",3,"filePath","height","quality","width"],[1,"title"],[1,"label"],[1,"text-2xl"],[1,"form-input"],[1,"space-between","flex","items-center"],[1,"input-label"],["bindGroup","groupName","bindLabel","name","size","l",3,"ariaLabel","clearable","formControlName","markFirst","multiSelect","options","placeholder","searchable","virtualScrolling"],[3,"formControlName","isMultiple","maxFileCount","showPreview"],[1,"image-link"],[1,"image-link",3,"click"],[1,"border-stroke","border-divider","my-3","md:hidden"],[3,"formControlName","isFormSubmitted","values"],["format","0","size","xl",1,"input",3,"ariaLabel","formControlName","max","min","placeholder"],[3,"formControlName","placeholder"]];},template:function(t,r){if(t&1&&(s(0,"div",6),y(1)(2),E(3,"async"),g(4,vo,2,0)(5,No,1,0,"eld-skeleton"),_()),t&2){l();let a=R(r.cards()),c=I(3,2,r.isGameCategoryLoading$);l(3),u(r.platform.browser&&a.length&&!c?4:5);}},dependencies:[Y,$e,wt,_e,Oe,Xe,he,qe,je,Ke,He,be,se,Qi,Ii,Zi,Sn,ve,mt,ae,En,_n,sn,dn,an,wi,Tn,nn,ln,cn],styles:['[_nghost-%COMP%]{container-type:inline-size}.cards[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(280px,1fr));gap:32px}@container (max-width: 580px){.cards[_ngcontent-%COMP%]{grid-template-columns:1fr;column-gap:0}}.cards[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%]{position:relative;padding:24px;border-radius:var(--corner-large);background-color:var(--background-body-2);
3border:1px solid var(--divider-border);width:100%;grid-column:span 2}.cards[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .bg-image-wrapper[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;border-radius:var(--corner-large);pointer-events:none}.cards[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .bg-image[_ngcontent-%COMP%]{display:block}.cards[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .bg-image[_ngcontent-%COMP%]:after{content:"";position:absolute;left:0;width:100%;height:200px;pointer-events:none;background:linear-gradient(180deg,rgba(255,255,255,0) 80.25%,var(--background-body-2) 100%)}.cards[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .bg-image[_ngcontent-%COMP%] img{position:absolute;object-fit:cover;object-position:top;pointer-events:none;top:0;left:0;width:100%}.cards[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .default[_ngcontent-%COMP%] img{object-position:bottom right}.cards[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .gradient-wrapper[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;pointer-events:none}.cards[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .gradient-wrapper[_ngcontent-%COMP%] .gradient[_ngcontent-%COMP%]{position:absolute;pointer-events:none;top:-75px;left:-70px;width:296px;height:296px}.cards[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .title-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative;gap:10px;margin-bottom:24px}.cards[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .title-wrapper[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-weight:700}.cards[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .title-wrapper[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-size:16px;margin-bottom:10px;color:var(--text-secondary)}.cards[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card-form[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:16px 40px;position:relative}@container (max-width: 580px){.cards[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card-form[_ngcontent-%COMP%]{grid-template-columns:1fr}}.cards[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card-form[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{grid-column:1/-1}.cards[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card-form[_ngcontent-%COMP%] .form-input[_ngcontent-%COMP%]{min-width:0;align-self:center}.cards[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card-form[_ngcontent-%COMP%] .form-input[_ngcontent-%COMP%] .input-label[_ngcontent-%COMP%]{margin-bottom:6px}.cards[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card-form[_ngcontent-%COMP%] .form-input[_ngcontent-%COMP%] eld-numeric-input[_ngcontent-%COMP%]{width:100%}.cards[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card-form[_ngcontent-%COMP%] .form-input[_ngcontent-%COMP%] eld-numeric-input[_ngcontent-%COMP%] .number-input-container{height:58px}.cards[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card-form[_ngcontent-%COMP%] .form-input[_ngcontent-%COMP%] eld-numeric-input[_ngcontent-%COMP%] .input-wrapper{border-radius:var(--corner-medium)}.cards[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card-form[_ngcontent-%COMP%] .form-input[_ngcontent-%COMP%] eld-numeric-input[_ngcontent-%COMP%] .input-wrapperinput{background-color:var(--input-bg-default)}.cards[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card-form[_ngcontent-%COMP%] .form-input[_ngcontent-%COMP%] eld-numeric-input[_ngcontent-%COMP%] input{font-size:16px;font-weight:400}.cards[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card-form[_ngcontent-%COMP%] .form-input[_ngcontent-%COMP%] eld-input[_ngcontent-%COMP%]{width:100%}.cards[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card-form[_ngcontent-%COMP%] .form-input[_ngcontent-%COMP%] eld-input[_ngcontent-%COMP%] .input-wrapper, .cards[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card-form[_ngcontent-%COMP%] .form-input[_ngcontent-%COMP%] eld-input[_ngcontent-%COMP%] input{border-radius:var(--corner-medium);background-color:var(--input-bg-default)}.cards[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card-form[_ngcontent-%COMP%] .form-input[_ngcontent-%COMP%] eld-input[_ngcontent-%COMP%] input{font-size:16px;font-weight:400;height:58px}.cards[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card-form[_ngcontent-%COMP%] .image-link[_ngcontent-%COMP%]{font-size:14px;color:var(--brand-marine);cursor:pointer;margin-left:auto;min-width:100px;padding-left:10px}.cards[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card-form[_ngcontent-%COMP%] .image-link[_ngcontent-%COMP%]:hover{text-decoration:underline}.cards[_ngcontent-%COMP%] .half-width[_ngcontent-%COMP%]{grid-column:span 1}@container (max-width: 580px){.cards[_ngcontent-%COMP%] .half-width[_ngcontent-%COMP%]{grid-column:span 2}}.cards[_ngcontent-%COMP%] .half-width[_ngcontent-%COMP%] .card-form[_ngcontent-%COMP%]{grid-template-columns:1fr}.cards[_ngcontent-%COMP%] eld-skeleton[_ngcontent-%COMP%]{display:block;grid-column:span 2;height:381px;border-radius:var(--corner-large)}'],changeDetection:0});let n=i;return n;})();var ut=(()=>{let i=class i{constructor(){this.labelFalse=h.required(),this.labelTrue=h.required(),this.bottomTextFalse=h(),this.bottomTextTrue=h(),this.checked=Dt(!1),this.toggle=P();}toggleState(){let e=!this.checked();this.checked.set(e),this.toggle.emit(e);}};i.ɵfac=function(t){return new(t||i)();},i.ɵcmp=N({type:i,selectors:[["eld-advanced-toggle"]],inputs:{labelFalse:[1,"labelFalse"],labelTrue:[1,"labelTrue"],bottomTextFalse:[1,"bottomTextFalse"],bottomTextTrue:[1,"bottomTextTrue"],checked:[1,"checked"]},outputs:{checked:"checkedChange",toggle:"toggle"},decls:12,vars:13,consts:[["tabIndex","0",1,"switch-container"],[1,"slider"],["role","button","tabindex","0",1,"toggle",3,"click","keydown.enter"],[1,"text"],[1,"bottom-text"]],template:function(t,r){t&1&&($(0,"div",0),Lt(1,"div",1),$(2,"div",2),at("click",function(){return r.toggleState();})("keydown.enter",function(){return r.toggleState();}),$(3,"div",3),b(4),q(),$(5,"div",4),b(6),q()(),$(7,"div",2),at("click",function(){return r.toggleState();})("keydown.enter",function(){return r.toggleState();}),$(8,"div",3),b(9),q(),$(10,"div",4),b(11),q()()()),t&2&&(Le("aria-label",r.labelFalse()+" or "+r.labelTrue()+" toggle"),l(),D("active",r.checked()),l(),D("active",!r.checked()),Le("aria-label",r.labelFalse()),l(2),X(r.labelFalse()),l(2),X(r.bottomTextFalse()),l(),D("active",r.checked()),Le("aria-label","Select "+r.labelTrue()),l(2),X(r.labelTrue()),l(2),X(r.bottomTextTrue()));},styles:[".switch-container[_ngcontent-%COMP%]{width:100%;height:50px;padding:0 2px;position:relative;display:flex;gap:6px;align-items:center;border-radius:16px;
3border:1px solid var(--divider-border);background-color:var(--background-body-2)}.slider[_ngcontent-%COMP%]{position:absolute;width:calc(50% - 5px);height:44px;background-color:var(--background-alt-2);border:1px solid var(--divider-border);border-radius:15px;transition:left .3s ease;left:2px}.slider.active[_ngcontent-%COMP%]{left:calc(50% + 3px)}.toggle[_ngcontent-%COMP%]{flex:1;padding:7px 0;height:44px;display:flex;flex-direction:column;justify-content:center;align-items:center;z-index:1;border-radius:16px;cursor:pointer;transition:background-color .3s ease;-webkit-tap-highlight-color:transparent}.toggle[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{color:var(--text-primary);font-size:12px;text-align:center}.toggle[_ngcontent-%COMP%] .bottom-text[_ngcontent-%COMP%]{color:var(--adv-toggle-text);font-size:12px}@media(hover:hover){.toggle[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:var(--adv-toggle-hover)}}.toggle.active[_ngcontent-%COMP%]{cursor:default;pointer-events:none;background-color:transparent;transition:none}@media(hover:hover){.toggle.active[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:transparent}}@media(min-width:601px){.toggle[_ngcontent-%COMP%] > .text[_ngcontent-%COMP%], .toggle[_ngcontent-%COMP%] > .bottom-text[_ngcontent-%COMP%]{font-size:14px}}"],changeDetection:0});let n=i;return n;})();var it=class extends ce{constructor(i){let o={};i.forEach((e,t)=>{let r={};e?.inputs?.forEach((a,c)=>{let S=a.type==="MultiSelect"?[]:!1;r[c.toString()]=new Q(S);}),o[t.toString()]=new ce(r);}),super(ie(Z({},o),{selectedGroup:new Q(0),multiSelectToggle:new Q(!1)})),this.customizationGroups=i;}getSelectedGroupIndex(){return+this.controls.selectedGroup.value;}selectGroup(i){this.controls.selectedGroup.setValue(i);}getCurrentGroupControl(){let i=this.getSelectedGroupIndex();return this.get(i.toString());}getInputValue(i){return this.getCurrentGroupControl()?.get(i.toString())?.value||!1;}setInputValue(i,o){this.getCurrentGroupControl()?.get(i.toString())?.setValue(o);}getToggleInputs(){let i=this.getSelectedGroupIndex();
3return this.customizationGroups[i]?.inputs.filter(o=>o.type==="Toggle")||[];}getMultiSelectInputs(){let i=this.getSelectedGroupIndex();return this.customizationGroups[i]?.inputs.filter(o=>o.type==="MultiSelect")||[];}getMultiSelectInputIndex(){let i=this.getSelectedGroupIndex(),o=this.customizationGroups[i]?.inputs;if(!o)return null;let e=o.findIndex(t=>t.type==="MultiSelect");return e>=0?e:null;}getPayloadValues(){let i=this.getSelectedGroupIndex(),o=this.customizationGroups[i],e=this.getCurrentGroupControl();if(!o||!e)return[];let t=[];return this.customizationGroups.length>1&&t.push({id:o.id,value:String(o.id),includeInNotification:!1}),o.inputs.forEach((r,a)=>{let c=e.get(a.toString());if(c){if(r.type==="Toggle"&&c.value===!0)t.push({id:r.id,value:"Yes",includeInNotification:!!r.includeInNotification});else if(r.type==="MultiSelect"&&this.getMultiSelectInputToggleState()&&c.value.length>0){let T=c.value.join(", ");t.push({id:r.id,value:T,includeInNotification:!!r.includeInNotification});}}}),t;}getMultiSelectInputControl(){let i=this.getMultiSelectInputIndex();return i===null?null:this.getCurrentGroupControl()?.get(i.toString())||null;}getMultiSelectInputToggleState(){return this.get("multiSelectToggle")?.value??!1;}setMultiSelectInputToggleState(i){this.get("multiSelectToggle")?.setValue(i);let o=this.getMultiSelectInputControl();o&&(i?(o.setValidators([G.required]),o.updateValueAndValidity(),o.markAsUntouched()):(o.clearValidators(),o.setValue([]),o.updateValueAndValidity()));}};var fn=(()=>{let i=class i{constructor(){this.title=w(null),this.description=w(null),this.dismiss=()=>{};}setData(e){this.title.set(e.title),this.description.set(e.description);}registerDismiss(e){this.dismiss=e;}};i.ɵfac=function(t){return new(t||i)();},i.ɵcmp=N({type:i,selectors:[["eld-boosting-order-customization-bottom-sheet"]],decls:8,vars:2,consts:()=>{let e;return e="Close",[["aria-label",e,1,"text-primary","absolute","top-8","right-3.5",3,"click"],["name","close"],[1,"mb-3"],[1,"text-lg","font-bold"],[1,"text-base","leading-5"]];},template:function(t,r){t&1&&(s(0,"button",0),M("click",function(){return r.dismiss();}),m(1,"eld-icon",1),_(),s(2,"eld-bottom-sheet-title",2)(3,"div",3),b(4),_()(),s(5,"eld-bottom-sheet-content")(6,"div",4),b(7),_()()),t&2&&(l(4),V(" ",r.title()," "),l(3),V(" ",r.description()," "));},dependencies:[vi,bi,Me,Y],encapsulation:2,changeDetection:0});let n=i;return n;})();function bo(n,i){if(n&1&&(y(0),E(1,"async"),s(2,"div",1)(3,"div",2),m(4,"eld-image",3),E(5,"toPaymentMethodIcons"),_(),s(6,"span"),b(7),_()()),n&2){let o=d().$implicit,e=I(1,8,d().theme$)??"dark-theme";l(2),yt(e),l(2),p("alt",o.title)("filePath",B(5,10,o.paymentMethod,e)[0])("height",16)("ignoreNgSrcset",!0)("width",24),l(3),X(o.title);}}function Go(n,i){if(n&1&&(g(0,bo,8,13,"div",0),E(1,"async")),n&2){let o=i.$implicit;u(I(1,1,o.isAvailable)?0:-1);}}var Mn=(()=>{let i=class i{constructor(){this.store=C(W),this.themeService=C(oi),this.locale=C(Pe),this.payments=[{title:"Pay with PIX - fast, reliable and without fees",paymentMethod:Ht.PrimerPix,isAvailable:this.store.select(Qt).pipe(Tt(e=>e==="BRL"&&this.locale===Ut.BR))}],this.theme$=Mt(()=>this.themeService.themeChange.pipe(Ot(this.themeService.getActiveTheme())));}};i.ɵfac=function(t){return new(t||i)();},i.ɵcmp=N({type:i,selectors:[["eld-payment-promo"]],decls:2,vars:0,consts:[[1,"item",3,"class"],[1,"item"],[1,"left-side"],["srcset","",3,"alt","filePath","height","ignoreNgSrcset","width"]],template:function(t,r){t&1&&U(0,Go,2,3,null,null,Re),t&2&&z(r.payments);},dependencies:[Y,_e,ae,hi],styles:[".item[_ngcontent-%COMP%]{background-color:var(--background-mix);display:flex;gap:4px;align-items:center;justify-content:center;padding:8px 24px;font-size:14px}@media(min-width:481px){.item[_ngcontent-%COMP%]{justify-content:normal}}.item.light-theme[_ngcontent-%COMP%]{background-color:var(--background-base-1)}.item[_ngcontent-%COMP%] .left-side[_ngcontent-%COMP%]{display:flex;width:32px;height:32px;align-items:center;justify-content:center}.mobile[_nghost-%COMP%] .item[_ngcontent-%COMP%], .mobile [_nghost-%COMP%] .item[_ngcontent-%COMP%], .transparent[_nghost-%COMP%] .item[_ngcontent-%COMP%], .transparent [_nghost-%COMP%] .item[_ngcontent-%COMP%]{background-color:transparent;padding:10px 0}"],changeDetection:0});let n=i;return n;})();var In=(()=>{let i=class i{transform(e){return mn(e);}};i.ɵfac=function(t){return new(t||i)();},i.ɵpipe=re({name:"activeBoostersCount",type:i,pure:!0});let n=i;return n;})();var xo=n=>({empty:n}
3),Ao=n=>({"cursor-help":n}),Fo=()=>[],Lo=(n,i)=>({"cursor-help":n,"cursor-pointer md:cursor-help":i}),yo=(n,i)=>i.title,Ro=(n,i)=>i.text+i.icon;function Bo(n,i){if(n&1){let o=A();s(0,"eld-advanced-toggle",11),M("toggle",function(t){O(o);let r=d(2);return v(r.onToggleGroup(t));}),_();}if(n&2){d();let o=x(0),e=d();p("checked",+e.customizationForm.controls.selectedGroup.value==1)("labelFalse",o[0].title)("labelTrue",o[1].title);}}function Po(n,i){if(n&1){let o=A();s(0,"div",12)(1,"div",13),M("click",function(){let t=O(o).$implicit,r=d(2);return v(r.showBottomSheet(t.title,t==null?null:t.tooltip));}),b(2),s(3,"eld-tooltip",14,0),b(5),_()(),s(6,"eld-toggle",15),M("toggle",function(t){let r=O(o).$index,a=d(2);return v(a.customizationForm.setInputValue(r,t));}),_()();}if(n&2){let o=i.$implicit,e=i.$index,t=lt(4),r=d(2);D("below-toggle",r.showAdvancedToggle),l(),p("eldTooltip",o.tooltip?t:"")("ngClass",Te(8,Ao,o==null?null:o.tooltip)),l(),V(" ",o.title," "),l(3),V(" ",o.tooltip," "),l(),p("ariaLabel",o.title)("checked",r.customizationForm.getInputValue(e));}}function ko(n,i){n&1&&(s(0,"eld-error-message")(1,"span"),f(2,2),_()());}function $o(n,i){if(n&1&&(m(0,"eld-dropdown",17),g(1,ko,3,0,"eld-error-message")),n&2){d();let o=x(4),e=d(2);p("clearable",!1)("formControl",o)("markFirst",!1)("multiSelect",!0)("options",e.multiSelectInput.values??Ee(6,Fo)),l(),u(e.getMultiSelectError()?1:-1);}}function Do(n,i){if(n&1){let o=A();s(0,"div",12)(1,"div",16),b(2),_(),s(3,"eld-toggle",15),M("toggle",function(t){O(o);let r=d(2);return v(r.onMultiSelectToggle(t));}),_()(),y(4),g(5,$o,2,7);}if(n&2){let o=d(2);D("below-toggle",o.showAdvancedToggle),l(2),V(" ",o.multiSelectInput.title," "),l(),p("ariaLabel",o.multiSelectInput.title)("checked",o.customizationForm.getMultiSelectInputToggleState()),l();let e=R(o.customizationForm.getMultiSelectInputControl());l(),u(o.customizationForm.getMultiSelectInputToggleState()&&e?5:-1);}}function wo(n,i){if(n&1){let o=A();s(0,"eld-boosting-game-active-request",18),M("checkRequestClick",function(){O(o);let t=d(2);return v(t.checkRequestClick.emit());}),_();}}
3function Vo(n,i){if(n&1&&(s(0,"div",19)(1,"span",24),m(2,"span",25)(3,"span",26),_(),s(4,"span",27),b(5),E(6,"activeBoostersCount"),_(),s(7,"span"),f(8,3),_()()),n&2){let o=d(3);l(5),V("",I(6,1,o.gameId())," ");}}function Uo(n,i){if(n&1){let o=A();s(0,"div",29),M("click",function(){let t=O(o),r=t.$implicit,a=t.$index,c=d(4);return v(c.onChipClick(a,r.text,r.tooltip));})("mouseenter",function(t){let r=O(o).$index,a=d(4);return v(a.onChipHover(t,r));}),m(1,"eld-chip",30),s(2,"eld-tooltip",31,1),b(4),_()();}if(n&2){let o=i.$implicit,e=lt(3);p("eldTooltip",o.tooltip?e:"")("ngClass",Bt(5,Lo,o.tooltip,o.tooltip)),l(),p("icon",o.icon)("text",o.text),l(3),V(" ",o.tooltip," ");}}function zo(n,i){if(n&1&&(s(0,"div",22),U(1,Uo,5,8,"div",28,Ro),_()),n&2){let o=d(3);l(),z(o.trustChips);}}function qo(n,i){if(n&1){let o=A();s(0,"div",23),m(1,"eld-icon",32),s(2,"span"),f(3,4),_(),s(4,"span",33),M("click",function(){O(o);let t=d(3);return v(t.tradeShieldClick());}),b(5," TradeShield "),_()();}n&2&&(l(),p("size",14));}function Xo(n,i){if(n&1){let o=A();g(0,Vo,9,3,"div",19),s(1,"eld-button",20),M("buttonClick",function(){O(o);let t=d(2);return v(t.emitPayloadValues());}),_(),m(2,"eld-payment-promo",21),g(3,zo,3,0,"div",22)(4,qo,6,1,"div",23);}if(n&2){let o=d(2);u(o.valuePropositionExperiment?0:-1),l(),p("isDisabled",o.buttonDisabled())("isLoading",o.buttonLoading()),l(2),u(o.valuePropositionExperiment?3:4);}}function Yo(n,i){if(n&1&&(y(0),s(1,"div",5)(2,"div",6),b(3),_(),s(4,"div",7),g(5,Bo,1,3,"eld-advanced-toggle",8),U(6,Po,7,10,"div",9,yo),g(8,Do,6,7),_(),s(9,"div",10),g(10,wo,1,0,"eld-boosting-game-active-request")(11,Xo,5,4),_()()),n&2){let o=d(),e=x(0),t=R(e.customizations);l(3),V(" ",t!=null&&t.length?o.customizeOrderText:o.confirmOrderText," "),l(),D("not-submitted",!o.formSubmitAttempt),l(),u(o.showAdvancedToggle?5:-1),l(),z(o.toggleInputs),l(2),u(o.multiSelectInput?8:-1),l(),p("ngClass",Te(8,xo,!e.customizations.length)),l(),u(o.boostingRequestId()?10:11);}}function Ko(n,i){n&1&&m(0,"eld-skeleton");}var hn=(()=>{let i=class i{constructor(){this.gameId=h.required(),this.boostingCategoryId=h.required(),this.config=h.required(),this.version=h.required(),this.buttonLoading=h.required(),this.buttonDisabled=h.required(),this.boostingRequestId=h.required(),this.userId=h(),this.checkRequestClick=P(),this.formValuesChange=P(),this.getOffersButtonClick=P(),this.platform=C(le),this.store=C(W),this.bottomSheets=C(ri),this.abTestsService=C(we),this.boostingFormStorageService=C(Se),this.destroyRef=C(ne),this.analyticsService=C(Ve),this.windowService=C(ei),this.customizeOrderText="Customize order",this.confirmOrderText="Confirm your order",this.toggleInputs=[],this.multiSelectInput=null,this.showAdvancedToggle=!1,this.valuePropositionExperiment=!1,this.formSubmitAttempt=!1,this.screenWidth$=this.store.pipe(jt(ai)),this.currencyPreference$=this.store.select(Zt),this.trustChips=gn,this.screenWidth=zt(this.screenWidth$,{initialValue:null}),this.FORM_TYPE="customization",this.orderCustomizationBottomSheet=null,oe(()=>{let e=this.config();e&&(this.customizationForm=new it(e.customizations||[]),e.customizations?.length&&this.customizationForm.selectGroup(0),this.showAdvancedToggle=e.customizations?.length===2,ke(()=>{this.patchSavedFormValues(),this.initializeFormFields();}),this.subscribeFormValueChanges());});}ngOnInit(){this.valuePropositionExperiment=this.abTestsService.getTestVariant(De.BO_VALUE)===xe.EXPERIMENT;}ngOnDestroy(){this.valueChangesSubscription?.unsubscribe(),this.orderCustomizationBottomSheet?.dismiss();}initializeFormFields(){this.toggleInputs=this.customizationForm?.getToggleInputs()||[];let e=this.customizationForm?.getMultiSelectInputs()||[];this.multiSelectInput=e[0]??null,this.multiSelectInput&&(this.multiSelectInput=this.transformMultiSelectInput(this.multiSelectInput));}onToggleGroup(e){let t=e?1:0;this.customizationForm.selectGroup(t),this.toggleInputs=this.customizationForm?.getToggleInputs()||[];let r=this.customizationForm?.getMultiSelectInputs()||[];this.multiSelectInput=r[0]??null,this.multiSelectInput&&(this.multiSelectInput=this.transformMultiSelectInput(this.multiSelectInput));}transformMultiSelectInput(e){return ie(Z({},e),{values:e.values?.map(t=>ie(Z({},t),{iconLocation:t.iconLocation?pe.getBoostingImageUrl(this.gameId(),t.iconLocation):void 0}))});}emitPayloadValues(){if(this.formSubmitAttempt=!0,this.customizationForm.getMultiSelectInputToggleState()&&this.customizationForm.getMultiSelectInputControl()?.invalid)return;let e=this.customizationForm.getPayloadValues();this.getOffersButtonClick.emit(e);}showBottomSheet(e,t,r){let a=this.screenWidth();!t||!a||a>st.MD2||(this.analyticsService.trackEvent({name:"boosting_click_value_proposition",params:{buyer_id:this.userId(),game_id:this.gameId(),category_id:this.boostingCategoryId(),clicked_chip:r},deliveryMethod:fe.STANDARD}),this.orderCustomizationBottomSheet=this.bottomSheets.display({content:fn,data:{title:e,description:t}}));}onMultiSelectToggle(e){this.customizationForm.setMultiSelectInputToggleState(e),this.formSubmitAttempt=!1;}
3tradeShieldClick(){this.windowService.open(Ni.tradeShieldBuying,"_blank","noreferrer, noopener");}saveFormValues(){let e={gameId:this.gameId(),categoryId:this.boostingCategoryId(),formType:this.FORM_TYPE};this.boostingFormStorageService.saveValues({key:e,formData:this.customizationForm.value,version:this.version()});}patchSavedFormValues(){let e={gameId:this.gameId(),categoryId:this.boostingCategoryId(),formType:this.FORM_TYPE},t=this.boostingFormStorageService.getValues({key:e,currentVersion:this.version()});if(t){let r=t.multiSelectToggle??!1;this.customizationForm.patchValue(t),this.customizationForm.setMultiSelectInputToggleState(r);}}subscribeFormValueChanges(){this.valueChangesSubscription?.unsubscribe(),this.valueChangesSubscription=this.customizationForm.valueChanges.pipe(k(this.destroyRef)).subscribe(()=>{this.saveFormValues(),this.formValuesChange.emit();});}getMultiSelectError(){let e=this.customizationForm.getMultiSelectInputControl();return this.customizationForm.getMultiSelectInputToggleState()&&!!e&&(this.formSubmitAttempt&&e.invalid||e.invalid&&e.touched);}onChipClick(e,t,r){this.showBottomSheet(t,r,e);}onChipHover(e,t){let r=this.screenWidth();if(!r||r<=st.MD2)return;let a=e.currentTarget,c=It(a,"mouseleave").pipe(Ge(1));ht(2e3).pipe(Ce(c),k(this.destroyRef)).subscribe(()=>{this.trackChipHover(t);});}trackChipHover(e){this.analyticsService.trackEvent({name:"boosting_hover_value_proposition",params:{buyer_id:this.userId(),game_id:this.gameId(),category_id:this.boostingCategoryId(),hovered_chip:e},deliveryMethod:fe.STANDARD});}};i.ɵfac=function(t){return new(t||i)();},i.ɵcmp=N({type:i,selectors:[["eld-boosting-game-category-customization"]],inputs:{gameId:[1,"gameId"],boostingCategoryId:[1,"boostingCategoryId"],config:[1,"config"],version:[1,"version"],buttonLoading:[1,"buttonLoading"],buttonDisabled:[1,"buttonDisabled"],boostingRequestId:[1,"boostingRequestId"],userId:[1,"userId"]},outputs:{checkRequestClick:"checkRequestClick",formValuesChange:"formValuesChange",getOffersButtonClick:"getOffersButtonClick"},decls:3,vars:2,consts:()=>{let e;e="Please select at least one option";let t;t="Get offers now";let r;r="PRO boosters currently active";let a;return a=" Protected by ",[["inputTooltip",""],["chipTooltip",""],e,r,a,[1,"customization-card"],[1,"header-text"],[1,"content-container"],[3,"checked","labelFalse","labelTrue"],[1,"selection",3,"below-toggle"],[1,"actions-container",3,"ngClass"],[3,"toggle","checked","labelFalse","labelTrue"],[1,"selection"],[1,"name","text-primary",3,"click","eldTooltip","ngClass"],["placement","left","tooltipStyle","plain",1,"hidden","md:block"],[3,"toggle","ariaLabel","checked"],[1,"name","text-primary"],["bindGroup","groupName","bindImage","iconLocation","bindLabel","name","bindValue","id",1,"w-full","py-2",3,"clearable","formControl","markFirst","multiSelect","options"],[3,"checkRequestClick"],[1,"pb-2.5","text-center","text-sm"],["size","xl","text",t,"theme","primary",3,"buttonClick","isDisabled","isLoading"],[1,"transparent"],[1,"flex","flex-wrap","gap-2","pt-6"],[1,"mt-3","flex","w-full","items-center","justify-center","gap-1","text-sm"],[1,"relative","mr-2","inline-flex","size-2","translate-y-[-1px]","align-middle"],[1,"absolute","inline-flex","h-full","w-full","animate-ping","rounded-full","bg-(--brand-emerald)","opacity-75"],[1,"relative","inline-flex","size-2","rounded-full","bg-(--brand-emerald)"],[1,"font-bold"],[3,"eldTooltip","ngClass"],[3,"click","mouseenter","eldTooltip","ngClass"],["type","trust",3,"icon","text"],["placement","top","tooltipStyle","plain",1,"hidden","md:block"],["name","lock",3,"size"],[1,"text-link","cursor-pointer","underline","hover:no-underline",3,"click"]];},template:function(t,r){if(t&1&&(y(0),g(1,Yo,12,10,"div",5)(2,Ko,1,0,"eld-skeleton")),t&2){let a=R(r.config());l(),u(r.platform.browser&&a?1:2);}},dependencies:[Y,$e,Oe,he,_i,de,ut,Ri,ve,Di,$i,se,Mn,Je,Qe,be,Me,In],styles:[".customization-card[_ngcontent-%COMP%]{border-radius:16px;background:linear-gradient(340deg,#4783ff00 66.76%,#4783ff 96.04%),#d1f08f;padding:1px}.header-text[_ngcontent-%COMP%]{padding:20px 24px 17px;font-size:14px;font-weight:900;line-height:140%;letter-spacing:.42px;text-transform:uppercase}.content-container[_ngcontent-%COMP%]{padding:24px 16px 16px;margin:0;background-color:var(--background-body-2);background-clip:padding-box;border-top-left-radius:var(--corner-large);border-top-right-radius:var(--corner-large)}.content-container[_ngcontent-%COMP%]:empty{display:none}@media(min-width:961px){.content-container[_ngcontent-%COMP%]{padding:24px 22px 16px}}.selection[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;color:var(--text-secondary)}.selection[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.selection[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;color:var(--text-link)}.selection.no-margin[_ngcontent-%COMP%]{margin-top:0}.below-toggle[_ngcontent-%COMP%]:first-of-type{margin-top:18px}.selection-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;color:var(--text-secondary);
3box-shadow:inset 0 1px 0 0 var(--divider-border);background-color:var(--background-body-2);background-clip:padding-box;padding:12px 24px;margin:0}.selection-header[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.selection-header.no-margin[_ngcontent-%COMP%]{margin-top:0}.selection-values[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;color:var(--text-secondary);padding:8px 24px 12px;background-color:var(--background-body-2);background-clip:padding-box;margin:0}.selection-values[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.selection-values.multi[_ngcontent-%COMP%]{font-size:14px;padding:10px 0 10px 24px}.selection-values.description[_ngcontent-%COMP%]{padding:0 24px 14px}.selection-values.price[_ngcontent-%COMP%]{display:block;padding:14px 24px 0}.actions-container[_ngcontent-%COMP%]{padding:22px 22px 28px;margin:0;background-color:var(--background-body-2);background-clip:padding-box;box-shadow:inset 0 1px 0 0 var(--divider-border);border-bottom-left-radius:var(--corner-large);border-bottom-right-radius:var(--corner-large)}.empty[_ngcontent-%COMP%]{border-top-left-radius:var(--corner-large);border-top-right-radius:var(--corner-large)}.multi[_ngcontent-%COMP%]{font-size:14px;padding:10px 0}[_nghost-%COMP%] eld-skeleton[_ngcontent-%COMP%]{display:block;height:400px;border-radius:var(--corner-large)}[_nghost-%COMP%] eld-numeric-input .input::placeholder{color:var(--input-text-color-placeholder)}@keyframes _ngcontent-%COMP%_radioPulse{0%{transform:scale(.4);opacity:1}to{transform:scale(1);opacity:0}}"],changeDetection:0});let n=i;return n;})();var On={35:"70",10:"70",142:"60",48:"60",70:"30",92:"30",52:"20",227:"20",32:"20"},vn="40";var Nn=(()=>{let i=class i{transform(e){return On[e]??vn;}};i.ɵfac=function(t){return new(t||i)();},i.ɵpipe=re({name:"boostingDiscount",type:i,pure:!0});let n=i;return n;})();function jo(n,i){if(n&1&&(m(0,"eld-image",11),E(1,"getAssetUrl")),n&2){let o=d();p("filePath",B(1,4,"money-dragon.svg",o.assetEnum.Miscellaneous))("height",78)("quality",40)("width",78);}}function Ho(n,i){if(n&1&&(m(0,"eld-image",12),E(1,"getAssetUrl")),n&2){let o=d();p("filePath",B(1,4,"money-dragon.svg",o.assetEnum.Miscellaneous))("height",64)("quality",40)("width",64);}}var bn=(()=>{let i=class i{constructor(){this.gameId=h.required(),this.store=C(W),this.isDesktop$=this.store.select(ze),this.assetEnum=J;}};i.ɵfac=function(t){return new(t||i)();},i.ɵcmp=N({type:i,selectors:[["eld-boosting-money-save-banner"]],inputs:{gameId:[1,"gameId"]},decls:16,vars:11,consts:()=>{let e;e="Save money banner background image";let t;t="Money Dragon image";let r;r="Money Dragon image";let a;a=" Save up to "+"\uFFFD#6\uFFFD"+""+"\uFFFD#7\uFFFD"+""+"\uFFFD#8\uFFFD"+""+"\uFFFD/#8\uFFFD"+""+"\uFFFD/#7\uFFFD"+""+"\uFFFD#9\uFFFD"+""+"\uFFFD0\uFFFD"+"%"+"[\uFFFD/#9\uFFFD|\uFFFD/#6\uFFFD]"+""+"[\uFFFD/#9\uFFFD|\uFFFD/#6\uFFFD]"+" on boosting. ",a=Be(a);let c;return c=" Hundreds of boosters compete, so prices stay low. ",[a,c,[1,"border-divider","bg-body-2","relative","flex","overflow-hidden","rounded-lg","border","px-4","py-3"],["alt",e,1,"z-0",3,"desktopPath","lazyLoading"],[1,"relative","z-10","flex","max-w-[calc(100%-80px)]","flex-col","gap-2"],[1,"text-sm","font-bold","text-nowrap"],[1,"relative","mx-1","inline-block","px-2"],["fill","none","height","23","viewBox","0 0 52 23","width","52","xmlns","http://www.w3.org/2000/svg","aria-hidden","true",1,"absolute","top-1/2","left-0","-z-10","-translate-y-1/2"],["d","M3.22254 0.989247L51.4141 0L52 22.2581L0 23L3.22254 0.989247Z","fill","var(--brand-yellow-1)"],[1,"relative","z-10","text-lg","font-black","text-black"],[1,"text-secondary","text-sm","font-normal"],["alt",t,1,"absolute","right-4","bottom-0","z-0",3,"filePath","height","quality","width"],["alt",r,1,"absolute","right-4","bottom-0","z-0",3,"filePath","height","quality","width"]];},template:function(t,r){t&1&&(s(0,"div",2),m(1,"eld-bg-image",3),E(2,"getAssetUrl"),s(3,"div",4)(4,"div",5),ge(5,0),s(6,"span",6),Nt(),s(7,"svg",7),m(8,"path",8),_(
3),bt(),m(9,"span",9),E(10,"boostingDiscount"),_(),ue(),_(),s(11,"div",10),f(12,1),_()(),g(13,jo,2,7,"eld-image",11),E(14,"async"),ye(15,Ho,2,7,"eld-image",12),_()),t&2&&(l(),p("desktopPath",B(2,4,"vector-rainbow.svg",r.assetEnum.Miscellaneous))("lazyLoading",!0),l(9),j(I(10,7,r.gameId())),H(5),l(3),u(I(14,9,r.isDesktop$)?13:15));},dependencies:[Y,_e,Ne,ae,Ie,Nn],encapsulation:2,changeDetection:0});let n=i;return n;})();var Gn=(()=>{let i=class i{constructor(){this.ASSET=J,this.buttonClick=P();}};i.ɵfac=function(t){return new(t||i)();},i.ɵcmp=N({type:i,selectors:[["eld-boosting-game-rank-up-banner"]],outputs:{buttonClick:"buttonClick"},decls:11,vars:5,consts:()=>{let e;e="Get offers now";let t;t="Rank-up with confidence:";let r;return r=""+"[\uFFFD#8\uFFFD|\uFFFD#9\uFFFD]"+"trusted boosters, 24/7 support"+"[\uFFFD/#8\uFFFD|\uFFFD/#9\uFFFD]"+" and a "+"[\uFFFD#8\uFFFD|\uFFFD#9\uFFFD]"+"money-back guarantee"+"[\uFFFD/#8\uFFFD|\uFFFD/#9\uFFFD]"+". ",r=Be(r),[t,r,[1,"banner-container"],["alt","Lightning background image",3,"desktopPath","lazyLoading"],[1,"banner-text"],["text",e,"theme","primary",3,"buttonClick"]];},template:function(t,r){t&1&&(s(0,"div",2),m(1,"eld-bg-image",3),E(2,"getAssetUrl"),s(3,"div",4)(4,"div"),f(5,0),_(),s(6,"div"),ge(7,1),m(8,"span")(9,"span"),ue(),_(),s(10,"eld-button",5),M("buttonClick",function(){return r.buttonClick.emit();}),_()()()),t&2&&(l(),p("desktopPath",B(2,2,"lightnings.png",r.ASSET.Miscellaneous))("lazyLoading",!0));},dependencies:[de,Ne,Ie],styles:[".banner-container[_ngcontent-%COMP%]{position:relative;display:flex;justify-content:center;text-align:center;min-height:500px}.banner-container[_ngcontent-%COMP%] .banner-text[_ngcontent-%COMP%]{color:var(--text-primary);max-width:955px;margin:84px 28px;font-size:36px;font-style:normal;font-weight:700;line-height:normal}.banner-container[_ngcontent-%COMP%] .banner-text[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--button-primary-bg)}[_nghost-%COMP%] eld-button[_ngcontent-%COMP%] button{max-width:fit-content;margin-top:47px}"],changeDetection:0});let n=i;return n;})();var xn=(()=>{let i=class i{constructor(){this.ASSET=J;}};i.ɵfac=function(t){return new(t||i)();},i.ɵcmp=N({type:i,selectors:[["eld-boosting-game-selected-boosters"]],decls:10,vars:8,consts:()=>{let e;e="Selected boosters";let t;t=" Boosters with Eldorado\u2019s stamp of approval ";let r;return r=" Eldorado provides a premium boosting experience with top-rated veteran boosters, constant communication, and a money-back guarantee. Enjoy quick, secure service with our expertly selected boosters and dedicated Customer Support. ",[t,r,[1,"boosters-container"],["alt","Booster background image",3,"desktopPath","mobilePath"],[1,"content"],["text",e,"type","price"],[1,"boosters-title"],[1,"boosters-description"]];},template:function(t,r){t&1&&(s(0,"div",2),m(1,"eld-bg-image",3),E(2,"getAssetUrl"),E(3,"getAssetUrl"),s(4,"div",4),m(5,"eld-chip",5),s(6,"div",6),f(7,0),_(),s(8,"div",7),f(9,1),_()()()),t&2&&(l(),p("desktopPath",B(2,2,"selected-boosters-bg.png",r.ASSET.Miscellaneous))("mobilePath",B(3,5,"selected-boosters-bg-mobile.png",r.ASSET.Miscellaneous)));},dependencies:[Qe,Ne,Ie],styles:[".boosters-container[_ngcontent-%COMP%]{display:flex;justify-content:center;position:relative;padding:111px 14px}@media(min-width:841px){.boosters-container[_ngcontent-%COMP%]{padding:180px 0 142px}}.boosters-container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-width:721px;padding:0 14px}.boosters-container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .boosters-title[_ngcontent-%COMP%]{margin:18px 0 41px;font-size:36px;font-style:normal;font-weight:700;line-height:normal}.boosters-container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .boosters-description[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:24px;font-style:normal;font-weight:400;line-height:42px}"],changeDetection:0});let n=i;return n;})();var nt="unsent-boosting-request";var Qo=()=>[];function Zo(n,i){n&1&&m(0,"eld-rich-snippet",2),n&2&&p("productJson",i);}
3function Wo(n,i){if(n&1){let o=A();s(0,"eld-boosting-game-active-request",14),M("checkRequestClick",function(){O(o);let t=d(),r=x(1);return v(t.goToRequestPage(r,"top"));}),_();}}function Jo(n,i){if(n&1){let o=A();s(0,"div",11)(1,"eld-boosting-game-category-cards",15),E(2,"async"),E(3,"async"),E(4,"async"),M("formStatusChange",function(t){O(o);let r=d();return v(r.isFormValid=t);})("formValuesChange",function(t){O(o);let r=d();return v(r.onCardFormValuesChange(t));})("viewExampleImage",function(t){O(o);let r=d();return v(r.openPreviewImageModal(t));}),_(),s(5,"div",16)(6,"eld-boosting-game-category-customization",17),E(7,"async"),E(8,"async"),E(9,"async"),M("checkRequestClick",function(){O(o);let t=d(),r=x(1);return v(t.goToRequestPage(r,"bottom"));})("getOffersButtonClick",function(t){O(o);let r=d();return v(r.onBoostingRequestSubmit(t));}),_(),m(10,"eld-boosting-money-save-banner",18),_(),m(11,"eld-usp-trust",19),_();}if(n&2){let o,e,t,r,a=d(),c=x(1);l(),p("boostingCategoryId",a.selectedBoostingCategoryId??"")("cards",((o=I(2,16,a.boostingFormConfig$))==null?null:o.cards)??Ee(28,Qo))("gameId",a.gameId())("isFormSubmitted",a.isFormSubmitted)("type",(e=I(3,18,a.boostingFormConfig$))==null?null:e.type)("version",((t=I(4,20,a.boostingFormConfig$))==null?null:t.version)??
30),l(5),p("boostingCategoryId",a.selectedBoostingCategoryId)("boostingRequestId",c)("buttonDisabled",!a.isFormValid&&a.isFormSubmitted)("buttonLoading",I(7,22,a.isBoostingSubmitting$)??!1)("config",I(8,24,a.boostingFormConfig$))("gameId",a.gameId())("userId",a.userId())("version",((r=I(9,26,a.boostingFormConfig$))==null?null:r.version)??0),l(4),p("gameId",a.gameId()),l(),p("trustReasons",a.TRUST_REASONS);}}function er(n,i){if(n&1&&(s(0,"div",20),m(1,"eld-trustpilot-usp",25),_()),n&2){let o=d(2);l(),p("category",o.CATEGORY.Boosting)("gameId",o.gameId());}}function tr(n,i){if(n&1&&m(0,"eld-usp-community-feedback",22),n&2){let o=d(2);p("category",o.CATEGORY.Boosting)("userReviews",o.userReviews());}}function ir(n,i){if(n&1){let o=A();g(0,er,2,2,"div",20),s(1,"eld-usp-process",21),M("buttonClick",function(){O(o);let t=d();return v(t.scrollToTop());}),ge(2,1),m(3,"span",7),ue(),_(),m(4,"eld-boosting-game-selected-boosters"),g(5,tr,1,2,"eld-usp-community-feedback",22),s(6,"eld-boosting-game-rank-up-banner",23),M("buttonClick",function(){O(o);let t=d();return v(t.scrollToTop());}),_(),s(7,"section"),m(8,"eld-faq",24),_();}if(n&2){let o=d();u(o.isProductFeedbackUspExperiment()?0:-1),l(),p("steps",o.RANK_UP_PROCESS_STEPS),l(4),u(o.isProductFeedbackUspExperiment()?-1:5),l(3),p("faq",o.faq());}}function nr(n,i){n&1&&m(0,"eld-skeleton",12);}function or(n,i){if(n&1&&m(0,"eld-seo-text",13),n&2){let o=d();p("category",o.CATEGORY.Boosting)("seoText",i);}}var P_=(()=>{let i=class i{constructor(){this.platform=C(le),this.store=C(W),this.activatedRoute=C(Vt),this.notificationService=C(ni),this.contentfulService=C(Ti),this.analyticsService=C(Ve),this.richSnippetService=C(Pi),this.localStorageService=C(Yt),this.authService=C(ii),this.abTestsService=C(we),this.document=C(xt),this.destroyRef=C(ne),this.gallery=C(Ci),this.lightbox=C(un),this.recentlyViewedOfferStorageService=C(ki),this.recentlyViewedGamesStorageService=C(yi),this.library$=this.store.select(ci),this.gameCategory$=this.store.select(ui),this.userProfile$=this.store.select(ti),this.isBoostingSubmitting$=this.store.select(Xi),this.desktop$=this.store.select(ze),this.boostingRequestId$=this.store.select(zi),this.boostingFormConfig$=this.store.select(qi),this.gameId=w(""),this.seoTextEntry=w(void 0),this.userId=w(void 0),this.faq=w(void 0),this.gameCategory=w(null),this.isFormSubmitted=!1,this.isFormValid=!1,this.resolvingPrefillValues=w(!1),this.userReviews=w([]),this.gameName=w(""),this.productRichSnippet=w(null),this.selectedBoostingCategoryId=null,this.isProductFeedbackUspExperiment=w(!1),this.CATEGORY=te,this.TRUST_REASONS=Hi,this.RANK_UP_PROCESS_STEPS=ji,this.TRANSPARENT_CITY_BANNER_IMAGES=fi,this.hubCallback=this.getBoostingRequestId.bind(this),this.isInBuyerStartsChatExperiment=this.abTestsService.getTestVariant(Xt.OR_CHATLESS_BOOSTING)===xe.EXPERIMENT;}ngOnInit(){this.abTestsService.getTestVariant(De.BO_GAME_PAGE_TEST),this.subscribeRouteParams(),this.subscribeUserProfile(),this.subscribeGame(),this.saveOfferToRecentlyViewed(),this.subscribeHubServiceInitialized(),this.initProductFeedbackUspABTest();}ngOnDestroy(){this.store.dispatch(new gi()),this.notificationService.removeHubCallback("BoostingRequestUpdated",this.hubCallback);}selectCategory(e){this.selectedBoostingCategoryId=e.id,this.setBoostingCategoryValues(e.id);}onCardFormValuesChange(e){this.categoryCardValues=e;}async onBoostingRequestSubmit(e){if(this.isFormSubmitted=!0,!this.isFormValid){this.scrollToRequiredField();return;}let t=await this.generatePayload(e);this.sendClickBuyAnalyticsEvent(t),this.userId()?this.store.dispatch(new _t(ie(Z({},t),{isInBuyerStartsChatExperiment:this.isInBuyerStartsChatExperiment}))):this.saveUnsentRequest(t);}openPreviewImageModal(e){let t=pe.getBoostingImageUrl(this.gameId(),e);this.gallery.ref("boostingImageGallery").load([new Si({src:t,thumb:t})]),this.lightbox.open(0,"boostingImageGallery");}async generatePayload(e){let t=await Et(this.boostingFormConfig$.pipe(me(Boolean))),a=[...(this.categoryCardValues.descriptionValues??[]).map(c=>({id:c.id,value:c.value,includeInNotification:c.includeInNotification||!1})),...e];return{gameId:this.gameId(),boostingCategoryId:this.selectedBoostingCategoryId,descriptionValues:a,images:this.categoryCardValues.images??[],version:t.version};}saveUnsentRequest(e){Promise.all(e.images.map(t=>this.imageToBase64Promise(t.value).then(r=>({id:t.id,imageName:t.value.name,mimeType:t.value.type,base64Image:r})))).then(t=>{let r={descriptionValues:e.descriptionValues,images:t,gameId:e.gameId,boostingCategoryId:e.boostingCategoryId,version:e.version};this.localStorageService.setItem(nt,r);}).finally(()=>{this.authService.signIn();});}imageToBase64Promise(e){return new Promise((t,r)=>{let a=new FileReader();a.readAsDataURL(e),a.onload=()=>t(a.result),a.onerror=c=>r(c);});}sendClickBuyAnalyticsEvent(e){let t=ie(Z({},e),{descriptionValues:JSON.stringify(e.descriptionValues)});this.analyticsService.trackEvent({name:"submit_boosting_request",params:t,deliveryMethod:fe.STANDARD});}setBoostingCategoryValues(e){this.selectedBoostingCategoryId=e,this.isFormSubmitted=!1,this.store.dispatch(new Ui({gameId:this.gameId(),boostingCategoryId:e})),this.store.dispatch(new Vi()),this.userProfile$.pipe(me(Boolean),k(this.destroyRef),Ge(1)).subscribe(()=>{this.store.dispatch(new dt({gameId:this.gameId(),boostingCategoryId:e}));});}scrollToTop(){Ue.scrollToTop();}goToRequestPage(e,t){this.analyticsService.trackEvent({name:"check_boosting_request",params:{requestId:e,gameId:this.gameId(),boostingCategoryId:this.selectedBoostingCategoryId,location:t},deliveryMethod:fe.STANDARD}),this.store.dispatch(new Wt({path:[`/boosting-request/${e}`]}));}checkForUnsentRequest(){let e=this.localStorageService.getItem(nt);e&&this.gameId().includes(e?.gameId)&&(this.resolvingPrefillValues.set(!0),Promise.all(e.images.map(t=>this.base64ToImagePromise(t.base64Image,t.imageName,t.mimeType).then(r=>({value:r,id:t.id})))).then(t=>{let r={descriptionValues:e.descriptionValues,images:t,gameId:e.gameId,boostingCategoryId:e.boostingCategoryId,isInBuyerStartsChatExperiment:this.isInBuyerStartsChatExperiment,ver
3sion:e.version};this.store.dispatch(new _t(r));}).finally(()=>{this.resolvingPrefillValues.set(!1);})),this.localStorageService.removeItem(nt);}async base64ToImagePromise(e,t,r){let c=await(await fetch(e)).arrayBuffer();return new File([c],t,{type:r});}initProductFeedbackUspABTest(){this.isProductFeedbackUspExperiment.set(this.abTestsService.getTestVariant(qt.CR_PRODUCT_FEEDBACK_USP)===xe.EXPERIMENT);}subscribeRouteParams(){ft([this.activatedRoute.params,this.library$]).pipe(k(this.destroyRef)).subscribe(([e,t])=>{let r=e.urlId;if(r&&(this.gameId.set(Jt.getGameIdFromUrlId(r)),this.recentlyViewedGamesStorageService.saveGame(this.gameId()),this.getGameCategory(),t)){let a=t.getByGameIdAndCategory(this.gameId(),te.Boosting);a&&(this.gameName.set(a.gameName),this.loadSeoContent(a.seoAlias));}});}loadSeoContent(e){this.contentfulService.getSeoTextEntry(e).then(t=>this.seoTextEntry.set(t)),this.contentfulService.getProductPageFaq(e,te.Boosting).then(t=>this.faq.set(t?.fields)),this.contentfulService.getReviews(e,te.Boosting,Ei).then(t=>this.userReviews.set(t));}subscribeUserProfile(){this.userProfile$.pipe(k(this.destroyRef)).subscribe(e=>{this.userId.set(e?.id),this.checkForUnsentRequest();});}getGameCategory(){this.platform.ssg||this.store.dispatch(new mi({category:te.Boosting,gameId:this.gameId()}));}setRichSnippet(){this.gameName()&&this.productRichSnippet.set(this.richSnippetService.getBoostingRichSnippet(this.gameName(),this.gameId()));}subscribeGame(){this.gameCategory$.pipe(k(this.destroyRef)).subscribe(e=>{e?.boostingCategories?.length&&(this.gameCategory.set(e),this.setSeoElements());});}subscribeHubServiceInitialized(){this.notificationService.registerEventAfterInitialization("BoostingRequestUpdated",this.hubCallback,this.destroyRef);}saveOfferToRecentlyViewed(){this.gameCategory$.pipe(k(this.destroyRef),me(e=>!!e?.boostingCategories?.length)).subscribe(e=>{this.recentlyViewedOfferStorageService.saveOffer({gameId:this.gameId(),category:te.Boosting,boostingCategoryName:e.boostingCategories[0].name});});}getBoostingRequestId(e){this.boostingRequestId$.pipe(Ge(1),me(Boolean)).subscribe(t=>{t===e&&this.selectedBoostingCategoryId&&this.store.dispatch(new dt({gameId:this.gameId(),boostingCategoryId:this.selectedBoostingCategoryId}));});}setSeoElements(){this.setRichSnippet();}scrollToRequiredField(){let e=this.document.querySelector(".skill-form.ng-invalid");e?.id?Ue.scrollToTop(`#${e.id}`,0,84):Ue.scrollToTop(".ng-invalid",0,84);}};i.ɵfac=function(t){return new(t||i)();},i.ɵcmp=N({type:i,selectors:[["eld-boosting-game-page"]],decls:18,vars:15,consts:()=>{let e;e="Boosting banner background image";let t;t="Get deals from expert boosters in under "+"\uFFFD#9\uFFFD"+"2 minutes"+"\uFFFD/#9\uFFFD"+"";let r;r="From start to finish, the boosting service is supervised and safe";let a;a="Get offers now";let c;return c=" Effortless "+"\uFFFD#3\uFFFD"+"rank-up"+"\uFFFD/#3\uFFFD"+" process ",[t,c,[3,"productJson"],["alt",e,3,"bannerImages"],[1,"primary-container"],[1,"flex","items-center","justify-between"],[1,"text-xl","font-bold"],[1,"text-button-primary-background"],["size","small",1,"hidden","md:block",3,"category"],[3,"categorySelected","boostingCategories","gameId","gameName"],[1,"mb-6","block"],[1,"inputs"],[1,"mt-8","block","h-1254","w-full","md:mt-27.25","md:h-685"],[1,"primary-container","seo-text","mt-[80px]","block",3,"category","seoText"],[1,"mb-6","block",3,"checkRequestClick"],[3,"formStatusChange","formValuesChange","viewExampleImage","boostingCategoryId","cards","gameId","isFormSubmitted","type","version"],[1,"customization-wrapper"],[3,"checkRequestClick","getOffersButtonClick","boostingCategoryId","boostingRequestId","buttonDisabled","buttonLoading","config","gameId","userId","version"],[3,"gameId"],["subTitle",r,3,"trustReasons"],[1,"relative","mx-auto","mt-8","mb-20","max-w-302","px-3.5","py-0","md:mt-27.25","md:mb-0","md:px-6"],["buttonText",a,3,"buttonClick","steps"],[3,"category","userReviews"],[3,"buttonClick"],[1,"mx-auto","block","max-w-[768px]","p-3.5","md:p-6",3,"faq"],[3,"category","gameId"]];},template:function(t,r){if(t&1&&(m(0,"eld-game-listing-header"),y(1),E(2,"async"),g(3,Zo,1,1,"eld-rich-snippet",2),m(4,"eld-banner",3),s(5,"section",4)(6,"div",5)(7,"div",6),ge(8,0),m(9,"span",7),ue(),_(),m(10,"eld-feedback-star",8),_(),s(11,"eld-boosting-game-categories",9),M("categorySelected",function(c){return r.selectCategory(c);}),_(),g(12,Wo,1,0,"eld-boosting-game-active-request",10),E(13,"async"),g(14,Jo,12,29,"div",11),_(),g(15,ir,9,4)(16,nr,1,0,"eld-skeleton",12),g(17,or,1,2,"eld-seo-text",13)),t&2){let a,c,S;l();let T=R(I(2,10,r.boostingRequestId$));l(2),u((a=r.productRichSnippet())?3:-1,a),l(),p("bannerImages",r.TRANSPARENT_CITY_BANNER_IMAGES),l(6),p("category",r.CATEGORY.Boosting),l(),p("boostingCategories",((c=r.gameCategory())==null?null:c.boostingCategories)??null)("gameId",r.gameId())("gameName",r.gameName()),l(),u(!I(13,13,r.desktop$)&&T?12:-1),l(2),u(r.resolvingPrefillValues()?-1:14),l(),u(r.platform.browser?15:16),l(2),u((S=r.seoTextEntry())?17:-1,S);}}
3,dependencies:[Y,Mi,Li,Fi,bn,Yi,Gn,Ai,Bi,Gi,Oi,xn,pn,gt,hn,Je,xi,Wi,se,Ki,ae],styles:[".primary-container[_ngcontent-%COMP%]{padding:36px 14px 96px}@media(min-width:601px){.primary-container[_ngcontent-%COMP%]{padding:36px 24px 96px}}.inputs[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;grid-auto-flow:row;gap:32px}@media(min-width:961px){.inputs[_ngcontent-%COMP%]{grid-template-columns:2fr 1fr}}.inputs[_ngcontent-%COMP%] eld-boosting-game-category-cards[_ngcontent-%COMP%]{grid-column:1;grid-row:1;z-index:2}.inputs[_ngcontent-%COMP%] .customization-wrapper[_ngcontent-%COMP%]{grid-column:1;grid-row:2;display:flex;flex-direction:column;gap:32px}@media(min-width:961px){.inputs[_ngcontent-%COMP%] .customization-wrapper[_ngcontent-%COMP%]{grid-column:2;grid-row:1/3}}.inputs[_ngcontent-%COMP%] eld-usp-trust[_ngcontent-%COMP%]{grid-column:1;grid-row:3}@media(min-width:961px){.inputs[_ngcontent-%COMP%] eld-usp-trust[_ngcontent-%COMP%]{grid-column:1;grid-row:2}}.inputs[_ngcontent-%COMP%] eld-boosting-money-save-banner[_ngcontent-%COMP%]{display:block;grid-column:1;grid-row:4;margin-top:0}@media(min-width:961px){.inputs[_ngcontent-%COMP%] eld-boosting-money-save-banner[_ngcontent-%COMP%]{grid-column:1/-1;grid-row:3}}.left[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:76px}.customization-card[_ngcontent-%COMP%]{border-radius:16px;background:linear-gradient(340deg,#4783ff00 66.76%,#4783ff 96.04%),#d1f08f;overflow:auto}.customization-card[_ngcontent-%COMP%] .header-text[_ngcontent-%COMP%]{padding:20px 24px 17px;font-size:14px;font-weight:900;line-height:140%;letter-spacing:.42px;text-transform:uppercase}.customization-card[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%]{padding:24px 22px;margin:0 1px;background-color:var(--background-body-2)}.customization-card[_ngcontent-%COMP%] .inner.top[_ngcontent-%COMP%]{border-top-left-radius:16px;border-top-right-radius:16px}.customization-card[_ngcontent-%COMP%] .inner.bottom[_ngcontent-%COMP%]{padding:28px 22px;margin-bottom:1px;box-shadow:inset 0 1px 0 0 var(--divider-border);border-bottom-left-radius:16px;border-bottom-right-radius:16px}.customization-card[_ngcontent-%COMP%] .inner.middle[_ngcontent-%COMP%]{box-shadow:inset 0 1px 0 0 var(--divider-border);padding:12px 24px}.customization-card[_ngcontent-%COMP%] .inner.middle-no-border[_ngcontent-%COMP%]{padding:8px 24px 12px}eld-boosting-game-selected-boosters[_ngcontent-%COMP%]{display:block;margin-top:-14px}@media(min-width:601px){eld-boosting-game-selected-boosters[_ngcontent-%COMP%]{margin-top:-70px}}"],changeDetection:0});let n=i;return n;})();export{P_ as BoostingGamePageComponent};/**i18n:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855*/ 4//# debugId=784189e1-5244-53ef-a411-84d2699d0a2a
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.