1(function(){try{var C=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};C.SENTRY_RELEASE={id:"7d2ddbb7df702d1d453561367c6f6960e639ed86"};var o=new C.Error().stack;o&&(C._sentryDebugIds=C._sentryDebugIds||{},C._sentryDebugIds[o]="491f6f8e-713f-4e12-baa7-d049d04cd54d",C._sentryDebugIdIdentifier="sentry-dbid-491f6f8e-713f-4e12-baa7-d049d04cd54d")}catch{}})(),(function(C,o){try{if(typeof window>"u")return;var e=window,l=e[o]=e[o]||{},h=new Error().stack;h&&(l[h]=C)}catch{}})({service:"chicksgold-ui",version:"7d2ddbb7df702d1d453561367c6f6960e639ed86"},"DD_SOURCE_CODE_CONTEXT"),(self.webpackChunkchicksgold_ui=self.webpackChunkchicksgold_ui||[]).push([[13],{"async!resources/index":(function(C,o,e){C.exports=function(l){Promise.all([e.e(38),e.e(45),e.e(44),e.e(17)]).then((function(h){l(e(17809))}).bind(null,e)).catch(e.oe)}}),36281:(function(C,o,e){"use strict";e.d(o,{iT:function(){return r},F3:function(){return p},uU:function(){return E},Um:function(){return P.U},Fq:function(){return J},Zs:function(){return Q},cl:function(){return X}});var l=e("aurelia-framework"),h=e(31018),t=e(30953),u=e(10220),a,m;let r=(a=(0,l.inject)(h.Q,t.z),a(m=class{constructor(v,A){this.sessionService=v,this.authHandler=A}async run(v,A){const w=v.getAllInstructions().some(K=>K.config.settings.auth),L=await this.sessionService.isTokenValid(!0),B=new URLSearchParams(window.location.search),F=B.get("id"),W=B.get("token");if(w&&!L&&F&&W)return A.cancel(new u.rd(`/?id=${F}&token=${W}`));if(w&&!L&&!v.queryString.includes("id")&&!v.queryString.includes("token")&&!v.queryString.includes("ticketKey")&&!v.queryString.includes("messagePosition")){const{affiliateCode:K,savedReferralLink:g}=await this.sessionService.getReferralData();return this.authHandler.redirectToSSO({referralLink:K,refLink:g}),A.cancel()}return A()}})||m);var n=e(33092),c=function(b,v,A,w){var L=arguments.length,B=L<3?v:w===null?w=Object.getOwnPropertyDescriptor(v,A):w,F;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")B=Reflect.decorate(b,v,A,w);else for(var W=b.length-1;W>=0;W--)(F=b[W])&&(B=(L<3?F(B):L>3?F(v,A,B):F(v,A))||B);return L>3&&B&&Object.defineProperty(v,A,B),B},i=function(b,v){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(b,v)},d;let p=class{sessionService;constructor(v){this.sessionService=v}run(v,A){const w=v.fragment;if(this.sessionService.bannerClickFunctionName==="refresh"){A.cancel(),window.location.href=w;return}return A()}};p=c([(0,l.inject)(n.Qo),i("design:paramtypes",[typeof(d=typeof n.Qo<"u"&&n.Qo)=="function"?d:Object])],p);class E{async run(v,A){return window.Intercom&&window.Intercom("update"),A()}}var P=e(63911),s=e(17349),f=e(45246),y=e(6506),M,I;const O={sell:4,sellv2:7,"customer-portal":6,blog:4,"blog-category":[4,2],author:[4,2],sitemap:4,services:4,swap:4,"unique-names":4,currency:4},T=["items-game","accounts-game","skins-game","sign-in","blog-post"],R={"":3,"order-details":5,sold:6,purchased:6,swap:6,support:6,security:5,subscription:5,profile:5,verification:5},V=["profile","security","verification","balance","support","subscription","purchased","sold","swap","support","referrals","orders"],U=["chat","products"],_={sold:U,purchased:U,swap:U,support:["chat"],security:["withdraw","2fa","reset-password","delete-account"],subscription:["cashback","payment-details","manage-membership","cancel-membership"],profile:["marketplace-profile","your-offers","accounts","feedback","configuration","notifications","view-product"],verification:["mobile","email","address","additional","additional-information","business-account"]},x=["services","cart","sell","services","unique-names","contact","swap"],j=["profile","subscription","referrals","verification","purchased","sold","balance","security","support","services","cart","order-details","contact","unique-names","sell","swap"],$=["accounts"],z=["currency","sell","services","swap"],k=["chat","products","order-details"],H=new Map([["chat","orderchat"],["products","orderproducts"],["order-details","orderdetails"]]);let J=(M=(0,l.inject)(h.Q,s.b,y.Q,f.H),M(I=class{constructor(v,A,w,L){this.sessionService=v,this.productService=A,this.orderService=w,this.helper=L,this.staticRoutesWithChildRoutes=O,this.staticRoutesWithChildRoutesDefault=T,this.customerPortalChildRoutes=R,this.customerPortalChildRoutesDefault=V,this.chatRoutes=U,this.customerPortalMultiple=_,this.siteRoutes=x,this.profileRoutes=j,this.stockProductsRoutes=$,this.productRoutes=z,this.orderChatRoutes=k,this.orderChatMap=H,["staticRoutesWith","customerPortal"].forEach(B=>this.mapRanges(B))}mapRanges(v){const A=this[`${v}Multiple`];if(A){const B=[];Object.keys(A).forEach(F=>
1{A[F].forEach(W=>{B.push(`${F}/${W}`),this[`${v}ChildRoutes`][`${F}-${W}`]=this[`${v}ChildRoutes`][F]})}),this[`${v}MultipleRoutes`]=B}const w=this[`${v}ChildRoutes`];this[`${v}ChildRoutesDefault`]?.forEach(B=>w[B]=3),Object.keys(w).forEach(B=>{let F=w[B];typeof F=="number"?F=this.helper.range(F,!0):F=this.helper.range(F[0],!0,F[1]),w[B]=F})}run(v,A){if(!this.isValidPageParam(v.params.page))return this.helper.handlePrerender404(v.router,!0),v.router.navigateToRoute("404"),A();this.childRoute=v.params.childRoute,this.routeName=v.config.name;const w=this.staticRoutesWithChildRoutes[this.routeName]?this.routeName:this.routeName.replace(/-\w+$/,""),L=this.getRouteAction(this.profileRoutes,this.siteRoutes,this.sessionService.destroyProfilePath);L&&this.sessionService.saveProfilePath(L);const B=this.getRouteAction(this.stockProductsRoutes,this.stockProductsRoutes,this.productService.removeStockProductsPath);B&&this.productService.saveStockProductsPath(B);const F=this.getRouteAction(this.productRoutes,this.productRoutes,this.productService.removeProductPath);F&&this.productService.saveProductPath(F);const W=this.orderChatRoutes.find(K=>new RegExp(K).test(this.childRoute));if(W?this.orderService.saveOrderPath(this.orderChatMap.get(W)):this.orderService.removeOrderPath(),v.params.childRoute){const K=v.router.routes.find(D=>D.name===w),g=K?.route?.split("/"),S=v.fragment.slice(1).split("/");this.helper.includesSome(this.childRoute,this.customerPortalMultipleRoutes)?this.childRoute=this.childRoute.split("/").slice(0,2).join("-"):this.childRoute.includes("order-details")&&(this.childRoute=this.childRoute.split("/")[0]),(K?.name==="customer-portal"&&!this.customerPortalChildRoutes[this.childRoute]?.includes(S?.length)||S?.length!==g?.length&&!this.staticRoutesWithChildRoutes[w]||S?.length!==g?.length&&this.staticRoutesWithChildRoutes[w]&&!this.staticRoutesWithChildRoutes[w].includes(S?.length))&&v.router.navigateToRoute("404")}return A()}isValidPageParam(v){return v==null?!0:/^\d+$/.test(v)&&Number.parseInt(v,10)>=1}getRouteFromProfile(v,A){const L=(this.getRouteFromSite(A)??this.childRoute)?.split("/")[0];return v.find(B=>B===L)}getRouteFromSite(v){const A=this.staticRoutesWithChildRoutes[this.routeName]?this.routeName:this.routeName.replace(/-\w+$/,"");return v.find(w=>w===A)}getRouteAction(v,A,w){const L=this.getRouteFromProfile(v,A);return L||(w(),null)}})||I);class Q{run(v,A){const w=document.querySelector("#main-page-host .simplebar-content-wrapper");return w&&(w.scrollTop=0),A()}}var Y=e(58846);class X{constructor(){this.handleCanonicalUrl=(v,A,w=!1)=>{let L=document.querySelector("link[rel=canonical]");if(v?.config?.name==="404"||w){L?.remove();return}L||(L=document.createElement("link"),L.setAttribute("rel","canonical")),L.setAttribute("href",A)},this.handleRobotsMetaTag=(v,A,w)=>{let L=document.querySelector('meta[name="robots"]');L||(L=document.createElement("meta"),L.setAttribute("name","robots")),L.setAttribute("content",v||A||w?"noindex, follow":"index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1")}}run(v,A){const w=document.querySelector('meta[property="og:url"]'),L=document.querySelector('meta[property="og:type"]'),F=`${(0,Y.pc)().slice(0,-1)}${v.fragment}`;this.handleCanonicalUrl(v,F);const W=["404","rate-limit","site-down","expired-link"];return this.handleRobotsMetaTag(v.queryString,v.fragment?.includes("/page/"),W.includes(v.config.name)),w.setAttribute("content",F),L.setAttribute("content","website"),A()}}}),63911:(function(C,o,e){"use strict";e.d(o,{U:function(){return a}});var l=e("aurelia-framework"),h=e(42371),t,u;let a=(t=(0,l.inject)(h.HP),t(u=class{constructor(r){this.helper=r}run(r,n){let c,i;if(r.getAllInstructions()[0].viewPortInstructions?.default?.childNavigationInstruction?(c=r.getAllInstructions()[0].viewPortInstructions.default.childNavigationInstruction.config.title,i=r.getAllInstructions()[0].viewPortInstructions.default.childNavigationInstruction.config.settings.metaDescription):(c=r.getAllInstructions()[0].config.settings.title??r.getAllInstructions()[0].config.title,i=r.getAllInstructions()[0].config.settings.metaDescription),this.helper.saveWindowLocalStorageValue("meta_title",c?`${c} - Chicks Gold`:"Chicks Gold"),i){const d=document.querySelectorAll('meta[name="description"]');if(d.length){const P=d[0];P.content=i}else{const P=document.createElement("meta");P.setAttribute("name","description"),P.content=i,document.getElementsByTagName("head")[0].appendChild(P)}const p=document.querySelectorAll('meta[property="og:description"]');if(p.length){const P=p[0];P.content=i}else{const P=document.createElement("meta");P.setAttribute("property","og:description"),P.content=i,document.getElementsByTagName("head")[0].appendChild(P)}const E=document.querySelectorAll('meta[name="twitter:description"]');if(E.length){const P=E[0];P.content=i}else{const P=document.createElement("meta");P.setAttribute("property","twitter:description"),P.content=i,document.getElementsByTagName("head")[0].appendChild(P)}}if(c){const d=document.querySelectorAll('meta[property="og:title"]');if(d.length){const E=d[0];E.content=`${c} - Chicks Gold`}else{const E=document.createElement("meta");E.setAttribute("property","og:title"),E.content=`${c} - Chicks Gold`,document.getElementsByTagName("head")[0].appendChild(E)}const p=document.querySelectorAll('meta[name="twitter:title"]');if(p.length){const E=p[0];E.content=`${c} - Chicks Gold`}else{const E=document.createElement("meta");E.setAttribute("property","twitter:title"),E.content=`${c} - Chicks Gold`,document.getElementsByTagName("head")[0].appendChild(E)}}return typeof n=="function"?n():!0}})||u)}),60641:(function(C,o,e){"use strict";e.d(o,{Ay:function(){return t},OO:function(){return u}});var l=e(65804);const h=l.A;class t extends l.A{constructor(...m){super(...m),this.onPointerEvent=r=>{if(!this.axis.x.track.el||!this.axis.y.track.el||!this.axis.x.scrollbar.el||!this.axis.y.scrollbar.el)return;this.axis.x.track.rect=this.axis.x.track.el.getBoundingClientRect(),this.axis.y.track.rect=this.axis.y.track.el.getBoundingClientRect();const n=(this.axis.x.isOverflowing||this.axis.x.forceVisible)&&this.isWithinBounds(this.axis.x.track.rect),c=(this.axis.y.isOverflowing||this.axis.y.forceVisible)&&this.isWithinBounds(this.axis.y.track.rect);
1(n||c)&&(r.stopPropagation(),r.type==="pointerdown"&&r.pointerType!=="touch"&&(n&&(this.axis.x.scrollbar.rect=this.axis.x.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(this.axis.x.scrollbar.rect)?this.onDragStart(r,"x"):(this.mouseDown=!0,this.onTrackClick(r,"x"))),c&&(this.axis.y.scrollbar.rect=this.axis.y.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(this.axis.y.scrollbar.rect)?this.onDragStart(r,"y"):(this.mouseDown=!0,this.onTrackClick(r,"y")))))},this.getElementWindow=r=>r?.ownerDocument?.defaultView||window,t.instances.set(m[0],this),this.initListeners()}initListeners(){const m=this.el?.ownerDocument?.defaultView||window;if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),setTimeout(()=>{this.el.addEventListener("pointerdown",this.onPointerEvent)},1e3),["click","dblclick"].forEach(r=>{this.el.addEventListener(r,()=>{this.mouseDown=!1})}),this.contentWrapperEl?.addEventListener("scroll",this.onScroll),m.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(m.ResizeObserver){let r=!1;this.resizeObserver=new m.ResizeObserver(()=>{r&&m.requestAnimationFrame(()=>this.recalculate())}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),m.requestAnimationFrame(()=>{r=!0})}this.mutationObserver=new m.MutationObserver(()=>{m.requestAnimationFrame(()=>this.recalculate())}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}}onTrackClick(m,r="y"){const n=this.axis[r];if(this.scrolling||!this.contentWrapperEl||!this.contentEl)return;m.preventDefault();const c=this.getElementWindow(this.el);n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect();const i=n.track,d=i.el.getBoundingClientRect(),p=n.scrollSizeAttr,E=n.offsetAttr,P=n.offsetSizeAttr;let s=this.contentWrapperEl[n.scrollOffsetAttr];const M=((r==="y"?this.mouseY:this.mouseX)-d[E])/i.el[P]*this.contentEl[p],I=this.options.clickOnTrackSpeed??40,O=1,T=()=>{const R=M-s;if(Math.abs(R)<O||!this.mouseDown){this.scrolling=!1;return}s+=R>0?I:-I,this.contentWrapperEl.scrollTo({[E]:s}),c.requestAnimationFrame(T)};this.scrolling=!0,T()}}function u(a,m=t){if(!a)return null;const r=t.instances?.get(a);if(r)return r;const n=a.querySelector(".simplebar-content");if(n){const c=document.createDocumentFragment();for(;n.firstChild;)c.appendChild(n.firstChild);a.replaceChildren(c)}return a.removeAttribute("data-simplebar"),new m(a)}e.d(o,["AP",0,h])}),91771:(function(C,o,e){"use strict";e.d(o,{DT:function(){return M},Q5:function(){return P},zC:function(){return f}});var l,h,t,u,a=e(46341),m=e(69553),r=e(29393),n=e(59467),c=e(87300),i=e(17285),d=e(12259),p=e(46203);const E={sellState:a.Ay,swapState:m.Ay,buyPagesState:r.Ay,selectedGames:new Map,viewLocation:"Sell",steamInventory:null,flags:new Map,[n.J.vr]:n.J.ue,[n.a.Lv]:n.a.ue};function P(O,T,R){return(0,c.jM)(O,V=>{R?V.selectedGames.set(T,R):(V.selectedGames.delete(T),V.selectedGames=structuredClone(V.selectedGames))})}function s(O,T){return l(O,R=>{R.viewLocation=T})}function f(O,T){return(0,c.jM)(O,R=>{R.steamInventory=T})}function y(O,T,R){if(O.assetId){const U=O.price/(1-T);O.price=U-U*R;return}const V=O.price/(1+T);O.price=V+V*R}function M(O,T){return(0,c.jM)(O,R=>{R.steamInventory&&(R.steamInventory.items?.forEach(V=>y(V,R.steamInventory.fee,T)),R.sellState.selectedProducts.forEach(V=>y(V,R.steamInventory.fee,T)),R.steamInventory.fee=T)})}function I(O,T,R){return l(O,V=>{V.swapState.selectedProducts.sellProducts.filter(U=>u(U)).forEach(U=>t.recalculateItemPrice(U,this.steamInventory.fee,T)),V.swapState.selectedProducts.purchaseProducts.filter(U=>U.productCategory?.name===h.Skins).forEach(U=>t.recalculateItemPrice(U,R,T))})}o.Ay=E,(0,c.IP)()}),29393:(function(C,o,e){"use strict";e.d(o,{Fo:function(){return m},Gq:function(){return a},Im:function(){return r},LD:function(){return u},LO:function(){return t}});var l=e(87300);const h={selectedBuyProducts:new Map};function t(n,c,i=!1){return(0,l.jM)(n,d=>{const p=d.buyPagesState.selectedBuyProducts;p.has(c.id)?i?p.set(c.id,c):p.delete(c.id):p.set(c.id,c)})}function u(n,c){return(0,l.jM)(n,i=>{i.buyPagesState.selectedBuyProducts.delete(c)})}function a(n,c){return(0,l.jM)(n,i=>i.buyPagesState?.selectedBuyProducts.get(c))}function m(n){return(0,l.jM)(n,c=>{c.buyPagesState.selectedBuyProducts=new Map})}function r(n,c){return(0,l.jM)(n,i=>{let d=i.buyPagesState.selectedBuyProducts;if(c)for(let p of c)d.set(p.id,p)})}o.Ay=h}),46341:(function(C,o,e){"use strict";var l,h=e(87300);const t={selectedProducts:[]},u=(m,r,n)=>(0,h.jM)(m,c=>
1{if(r==="Add"){const i=c.sellState.selectedProducts.findIndex(d=>d.productId===n.productId&&d.assetId===n.assetId);i===-1?c.sellState.selectedProducts.push(n):c.sellState[i]=n}else c.sellState.selectedProducts=c.sellState.selectedProducts.filter(i=>i.productId!==n.productId||i.assetId!==n.assetId)}),a=m=>l(m,r=>{r.sellState.selectedProducts.length=0});o.Ay=t,e.d(o,["wi",0,u])}),69553:(function(C,o,e){"use strict";e.d(o,{RE:function(){return a},l9:function(){return u}});var l=e(87300),h=e(46203);const t={selectedProducts:{sellProducts:[],purchaseProducts:[]}};function u(m,r){return(0,l.jM)(m,n=>{switch(r){case"Sell":n.swapState.selectedProducts.sellProducts=[];break;case"Purchase":n.swapState.selectedProducts.purchaseProducts=[];break;default:n.swapState.selectedProducts.sellProducts=[],n.swapState.selectedProducts.purchaseProducts=[];break}})}function a(m,r,n,c=!1){return(0,l.jM)(m,i=>{let d;r==="Buy"?d=i.swapState.selectedProducts.purchaseProducts:d=i.swapState.selectedProducts.sellProducts;const p=d.findIndex(E=>(0,h.gw)(E)?E.productId===n.productId&&E.assetId===n.assetId:E.id===n.id);p===-1?d.push(n):c?d.splice(p,1,n):d.splice(p,1)})}o.Ay=t}),38304:(function(C,o,e){"use strict";e.d(o,{p:function(){return l}});class l{render(t){for(const{result:u,elements:a}of t.unrender)for(const m of a)this.remove(m,u);for(const{result:u,elements:a}of t.render)for(const m of a)this.add(m,u)}add(t,u){if(u.valid)return;switch(u.propertyName){case"newEmail":case"newPassword":case"confirmNewPassword":case"resetPassword":case"confirmPassword":case"recoveryEmail":case"email":case"password":case"token":case"slowValidateEmail":case"street":case"city":case"currentPassword":case"from":case"paypalEmail":case"contactEmail":case"cvv":return}t.classList.add("is-invalid");const a=t.closest(".mdc-text-field")||t.closest(".mdc-select");if(!a)return;const m=[...a.parentElement.children];for(const n of m)n!==a&&n.classList.contains("invalid-feedback")&&n.remove();const r=document.createElement("div");r.className="invalid-feedback mb-1",r.textContent=u.message,r.id=`validation-message-${u.id}`,a.after(r),a.classList.remove("mb-1")}remove(t,u){if(u.valid)return;switch(u.propertyName){case"newEmail":case"newPassword":case"confirmNewPassword":case"resetPassword":case"confirmPassword":case"recoveryEmail":case"email":case"password":case"token":case"slowValidateEmail":case"street":case"city":case"currentPassword":case"from":case"paypalEmail":case"contactEmail":case"cvv":return}const a=t.closest(".mdc-text-field")||t.closest(".mdc-select");if(!a)return;const m=document.querySelector(`#validation-message-${u.id}`),r=document.querySelectorAll("invalid-feedback mb-1");m&&(m.remove(),r.length===0&&a.classList.remove("is-invalid"))}}}),46110:(function(C,o,e){"use strict";e.r(o),e.d(o,{AutoSiteStringValueConverter:function(){return m}});var l=e("aurelia-framework"),h=e(91e3),t=e(41961),u,a;let m=(u=(0,l.inject)(t.Z,h.LanguageKeyFormatterValueConverter),u(a=class{constructor(n,c){this.signals=["admin-view-updated","site-strings-updated"],this.toView=i=>this.pageContentAreaService.displaySiteString(this.languageKeyFormatterValueConverter.toView(i),i),this.pageContentAreaService=n,this.languageKeyFormatterValueConverter=c}})||a)}),88424:(function(C,o,e){"use strict";e.r(o),e.d(o,{CalculateConvertedPriceValueConverter:function(){return m}});var l=e("aurelia-framework"),h=e(31018),t=e(56775),u,a;let m=(u=(0,l.inject)(h.Q,t.CurrencyFormatValueConverter),u(a=class{constructor(n,c){this.calculatePriceByCurrency=async(i,d=1500)=>{let p=d;return i!=="USD"&&(p=Math.ceil(await this.currencyFormatValueConverter.getConvertedPrice(p,null,null,null,null,!0))),p},this.sessionService=n,this.currencyFormatValueConverter=c}async toView(n){if(!n)return;let c=0;return n.salePrice&&n.salePrice>0?c=n.priceModification?n.salePrice+n.salePrice*(n.priceModification.percentage/100):n.salePrice:c=n.priceModification?n.price+n.price*(n.priceModification.percentage/100):n.price,{currency:"USD",price:c}}})||a)}),3682:(function(C,o,e){"use strict";e.r(o),e.d(o,{CamelCaseValueConverter:function(){return l}});class l{toView(t,u=!1){if(!t)return;if(u)return t.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g,(r,n)=>n.toUpperCase());const a=r=>r.split("_").reduce((i,d,p)=>(d=p!==0?d[0].toUpperCase()+d.slice(1):d,i+d),""),m=r=>{if(r)return Object.keys(r).forEach(c=>{const i=r[c];delete r[c];const d=a(c);r[d]=i,typeof r[d]=="object"&&m(r[d])}),r};return m(t)}}}),13581:(function(C,o,e){"use strict";e.r(o),e.d(o,{CapitalizeTextValueConverter:function(){return a}});var l=e("aurelia-framework"),h=e(45246),t,u;let a=(t=(0,l.inject)(h.H),t(u=class{constructor(r){this.helper=r}toView(r,n="first"){return this.helper.toCapitalize(r,n)}})||u)}),59055:(function(C,o,e){"use strict";e.r(o),e.d(o,{ClearationTimeoutValueConverter:function(){return a}});var l=e(45246),h=e("aurelia-framework"),t,u;let a=(t=(0,h.inject)(l.H),t(u=class{constructor(r){this.toView=n=>this.helper.clearTimeouts(n),this.helper=r}})||u)}),56775:(function(C,o,e){"use strict";e.r(o),e.d(o,{CurrencyFormatValueConverter:function(){return n}});var l=e("aurelia-framework"),h=e(31018),t=e(63747),u=e(45246),a=e(67906),m,r;let n=(m=(0,l.inject)(h.Q,t.P,u.H),m(r=class{constructor(i,d,p){this.signals=["currency-changed"],this.currentCurrency=void 0,this.checkForCurrentCurrency=async E=>this.helper.isEmpty(E)?await this.sessionService.getCurrency():E,this.sessionService=i,this.currencyService=d,this.helper=p}async toView(i,d,p,E=!1,P=!1,s=null){if(i==="-")return i;d=d||"(0,0.00)";const f=i;if(i=this.parseValue(i,f),i===null)return"0.00";d==="dynamic"&&i<1?d="(0,0.00[0000])":d==="dynamic"&&(d="(0,0.00)");const y=p&&typeof p=="object";let M=y?p?.currencyProductSymbol??"G":p;M=await this.checkForCurrentCurrency(M);let I;if(E)I=(0,a.ZV)(i,d);else{const R=await this.getConvertedPrice(i,y,p,M,P,!1,s);I=this.formatConvertedPrice(i,R,d)}const O=this.getCurrencyPrefix(M,p,y),T=i<0?"-":"";return this.composeReturnString(y,p,T,I,O)}parseValue(i,d){if(typeof i!="number"&&(i=Number(String(i).replace(/,/g,""))),Number.isNaN(i)){const p=String(d).replace(/[^0-9.
1-]/g,"");i=Number(p)}return!i&&i!==0?null:i}formatConvertedPrice(i,d,p){return i<0?(0,a.ZV)(d,p).replace("(","").replace(")",""):(0,a.ZV)(d,p)}composeReturnString(i,d,p,E,P){return i&&d?p+E+P:P?p+P+E:E}async getConvertedPrice(i,d,p,E,P,s=!1,f=null){E=await this.checkForCurrentCurrency(E);let y,M=0;if(f)y=f;else for(;M<5&&!y;)y=d&&p?p?.price:this.currencyService?.getStoredCurrencyRates(E,!0),y||(M++,M<5&&await new Promise(O=>setTimeout(O,100)));if(P&&E&&E!=="USD"){const O=await this.currencyService.getBalanceRate(E);O&&(y=O)}if(!y)return s?0:"CURRENCY-ERROR";const I=this.evenRound(i,6);return d&&p?I/y*(p?.currencyPercentage?1+p?.currencyPercentage/100:1.25):I*y}getUsdValue(i,d){const p=this.currencyService.getStoredCurrencyRates(d);return i/(p??1)}getCurrencyPrefix(i,d,p){const E=this.currencyService.getStoredActiveCurrenciesByWebsite();return p&&d?i:E?.find(P=>P.code===i)?.symbol||"$"}evenRound(i,d){const p=d||0,E=Math.pow(10,p),P=+(p?i*E:i).toFixed(8),s=Math.floor(P),f=P-s,y=1e-8,M=f>.5-y&&f<.5+y?s%2===0?s:s+1:Math.round(P);return p?M/E:M}})||r)}),97530:(function(C,o,e){"use strict";e.r(o),e.d(o,{CurrencySymbolFormatValueConverter:function(){return r}});var l=e("aurelia-framework"),h=e(31018),t=e(63747),u=e(67906),a,m;let r=(a=(0,l.inject)(h.Q,t.P),a(m=class{constructor(c,i){this.sessionService=c,this.currencyService=i}toView(c,i){return i?this.convertAmountToCurrency(c,i):this.currencyToSymbol(c)}currencyToSymbol(c){return this.currencyService.getStoredActiveCurrenciesByWebsite()?.find(d=>d.code===c)?.symbol||"CURRENCY-ERROR"}convertAmountToCurrency(c,i){const d=this.currencyService.getStoredCurrencyRates(c);if(!d)return"CURRENCY-ERROR";const p="(0,0.00)",E=i*d,P=(0,u.ZV)(E,p);return this.currencyToSymbol(c)+P}})||m)}),65602:(function(C,o,e){"use strict";e.r(o),e.d(o,{DateOnlyValueConverter:function(){return l}});class l{toView(t){if(t)return new Date(t).setHours(0,0,0,0)}}}),43481:(function(C,o,e){"use strict";e.r(o),e.d(o,{DecimalToPercentageValueConverter:function(){return l}});class l{toView(t){return t==null?"":`${(t*100).toFixed(0)}%`}}}),70751:(function(C,o,e){"use strict";e.r(o),e.d(o,{EntityStatusValueConverter:function(){return a}});var l=e("aurelia-framework"),h=e(45246),t,u;let a=(t=(0,l.inject)(h.H),t(u=class{constructor(r){this.toView=(n,c)=>this.helper.checkEntityStatus(n,c),this.helper=r}})||u)}),66345:(function(C,o,e){"use strict";e.r(o),e.d(o,{FormatDynamicListValueConverter:function(){return a}});var l=e("aurelia-framework"),h=e(56775),t,u;let a=(t=(0,l.inject)(h.CurrencyFormatValueConverter),t(u=class{constructor(r){this.signals=["currency-changed"],this.pricingWords=["price","cost","budget"],this.booleanValues=new Map([[!0,"Yes"],[!1,"No"]]),this.currencyFormatValueConverter=r}async toView(r,n,c=null,i=!0,d=null){switch(!0){case!!(n==="quantity"&&d):return r+d;case n==="expected Price":return`${await this.formatCurrencyValue(r,c,i)}/${d??"Unit"}`;case typeof r=="boolean":return this.booleanValues.get(r);case(!isNaN(parseFloat(r))&&this.hasPricingWord(n)):return await this.formatCurrencyValue(r,c,i);default:return r||"-"}}hasPricingWord(r){return this.pricingWords.some(n=>new RegExp(n,"i").test(r))}async formatCurrencyValue(r,n,c){return await this.currencyFormatValueConverter.toView(r,"",n,c)}})||u)}),78206:(function(C,o,e){"use strict";e.r(o),e.d(o,{FullNameValueConverter:function(){return a}});var l=e(45246),h=e("aurelia-framework"),t,u;let a=(t=(0,h.inject)(l.H),t(u=class{constructor(r){this.toView=(n,c="")=>this.helper.joinString([n,c]," ","-"),this.helper=r}})||u)}),21492:(function(C,o,e){"use strict";e.r(o),e.d(o,{IconPathValueConverter:function(){return a}});var l=e(45246),h=e("aurelia-framework"),t,u;let a=(t=(0,h.inject)(l.H),t(u=class{constructor(r){this.toView=n=>this.helper.getIconPath(n),this.helper=r}})||u)}),12033:(function(C,o,e){"use strict";e.d(o,{Tw:function(){return l.AutoSiteStringValueConverter},KP:function(){return t.CamelCaseValueConverter},P6:function(){return u.CapitalizeTextValueConverter},Of:function(){return m.CurrencyFormatValueConverter},py:function(){return n.DateFormatValueConverter},uJ:function(){return E.u},DM:function(){return s.LanguageRouteValueConverter},JY:function(){return y.J},pd:function(){return M.PropertyByStringValueConverter},N9:function(){return O.SiteStringsValueConverter},qG:function(){return V}});var l=e(46110),h=e(88424),t=e(3682),u=e(13581),a=e(59055),m=e(56775),r
1=e(97530),n=e(65354),c=e(70751),i=e(66345),d=e(78206),p=e(21492),E=e(50467),P=e(72278),s=e(91861),f=e(90536),y=e(69117),M=e(87482),I=e(63508),O=e(45843),T=e(34390),R=e(16417);class V{toView(_){document.querySelectorAll(".mdc-tooltip--shown").forEach(j=>j.classList.remove("mdc-tooltip--shown","mdc-tooltip--showing-transition","mdc-tooltip--showing")),_?.tooltip&&(_.tooltip.classList.contains("mdc-tooltip--hide")?(_.tooltip.classList.remove("mdc-tooltip--hide","mdc-tooltip--hide-transition"),_.tooltip.classList.add("mdc-tooltip--shown","mdc-tooltip--showing-transition","mdc-tooltip--showing"),_.tooltip.style.top=`${_.root.getBoundingClientRect().top+30}px`):(_.tooltip.classList.add("mdc-tooltip--hide","mdc-tooltip--hide-transition"),_.tooltip.classList.remove("mdc-tooltip--shown","mdc-tooltip--showing-transition","mdc-tooltip--showing")))}}}),50467:(function(C,o,e){"use strict";e.d(o,{u:function(){return l}});class l{toView(t,u){const a=t.which?t.which:t.keyCode,m=t.ctrlKey&&(a===65||a===67||a===86),r=u?a===190&&!t.target.value.includes("."):!1;if(a!==37&&a!==38&&a!==39&&a!==40&&a!==8&&a!==46&&isNaN(t.key)&&!m&&!r)return!1;let n;return n=/^(0|[1-9]\d*)$/.test(!isNaN(t.key)&&t.target.selectionStart===0?t.key+t.target.value:!isNaN(t.key)&&t.target.selectionStart>0?t.target.value+t.key:t.target.value),t.target.selectionStart||(n=!0),!(!n&&!u)}}}),72278:(function(C,o,e){"use strict";e.r(o),e.d(o,{IsFileValueConverter:function(){return a}});var l=e(45246),h=e("aurelia-framework"),t,u;let a=(t=(0,h.inject)(l.H),t(u=class{constructor(r){this.toView=(n,c=!1)=>this.helper.isFile(n,c),this.helper=r}})||u)}),91e3:(function(C,o,e){"use strict";e.r(o),e.d(o,{LanguageKeyFormatterValueConverter:function(){return l}});class l{constructor(){}toView(t){return!t||t===""||typeof t!="string"?"":t.startsWith("CG_")?t:"CG_"+t.replace(/[^a-zA-Z0-9\ ]/g,"").split(" ").filter(u=>u).join("_").toUpperCase()}}}),91861:(function(C,o,e){"use strict";e.r(o),e.d(o,{LanguageRouteValueConverter:function(){return a}});var l=e("aurelia-framework"),h=e(31018),t,u;let a=(t=(0,l.inject)(h.Q),t(u=class{constructor(r){this.sessionService=r}async toView(r,n=!1){if(r==null&&(r=""),r.startsWith("http"))return r;const c=await this.sessionService.getLanguage(),i=this.sessionService.parseLanguage(c)?.hrefLang??"en";return["en","en-us"].includes(i.toLowerCase())?r:n?`${r}-${i.split("-").join("").toLowerCase()}`:`${i}/${r}`.replaceAll(/([^:]\/)\/+/g,"$1")}})||u)}),90536:(function(C,o,e){"use strict";e.r(o),e.d(o,{PhoneFormatValueConverter:function(){return a}});var l=e(45246),h=e("aurelia-framework"),t,u;let a=(t=(0,h.inject)(l.H),t(u=class{constructor(r){this.toView=(n,c)=>this.helper.phoneFormat(n,c),this.helper=r}})||u)}),69117:(function(C,o,e){"use strict";e.d(o,{J:function(){return r}});var l=e("aurelia-framework"),h=e(31018),t=e(92428),u=e(6506),a,m;let r=(a=(0,l.inject)(h.Q,t.D,u.Q),a(m=class{constructor(c,i,d){this.sessionService=c,this.priceModificationService=i,this.orderService=d}async toView(c,i){const p=(await this.priceModificationService.getPriceModifications())?.find(P=>P.gameId===parseInt(c)&&P.productCategoryId===i),E=await this.sessionService.getProfile();if(!p?.enhanceLookback&&this.sessionService.getPlatformLinkCookie("enhanceLookback")&&this.sessionService.removeCookie("enhanceLookback"),!p?.lookback&&this.sessionService.getPlatformLinkCookie("lookback")&&this.sessionService.removeCookie("lookback"),p?.enhanceLookback&&E&&await this.orderService.checkIfUserHasFulfilledOrders(1,!0))return this.sessionService.getPlatformLinkCookie("enhanceLookback")||this.sessionService.setLookbackAndEnhanceLookbackCookie("enhanceLookback"),p;if(p?.lookback&&E&&await this.orderService.checkIfFirstOrderFromAds())return this.sessionService.getPlatformLinkCookie("lookback")||this.sessionService.setLookbackAndEnhanceLookbackCookie("lookback"),p;if(this.sessionService.getPlatformLinkCookie("gclid")||this.sessionService.getPlatformLinkCookie("msclkid"))return p}})||m)}),87482:(function(C,o,e){"use strict";e.r(o),e.d(o,{PropertyByStringValueConverter:function(){return a}});var l=e(45246),h=e("aurelia-framework"),t,u;let a=(t=(0,h.inject)(l.H),t(u=class{constructor(r){this.toView=(n,c)=>this.helper.propertyByString(n,c),this.helper=r}})||u)}),37926:(function(C,o,e){"use strict";e.r(o),e.d(o,{QueryParamsValueConverter:function(){return l}});class l{toView(t){if(!t)return;const u=t.slice(t.indexOf("?")+1).split("&"),a={};return u.map(m=>{const[r,n]=m.split("=");a[r]=decodeURIComponent(n)}),a}}}),63508:(function(C,o,e){"use strict";e.r(o),e.d(o,{SanitizeHtmlValueConverter:function(){return a}});var l=e("aurelia-framework"),h=e(45246),t,u;let a=(t=(0,l.inject)(h.H),t(u=class{constructor(r){this.helper=r}toView(r,n){return this.helper.sanitizeHtml(r,n)}})||u)}),45843:(function(C,o,e){"use strict";e.r(o),e.d(o,{SiteStringsValueConverter:function(){return a}});var l=e("aurelia-framework"),h=e(41961),t,u;let a=(t=(0,l.inject)(h.Z),t(u=class{constructor(r){this.signals=["admin-view-updated","site-strings-updated"],this.pageContentAreaService=r}toView(r,n="",c=[],i=!1,d=["a","br","span"]){return r===""?"":this.pageContentAreaService.displaySiteString(r,n,c,i,d)}})||u)}),34390:(function(C,o,e){"use strict";e.r(o),e.d(o,{SkillIconValueConverter:function(){return a}});var l=e("aurelia-framework"),h=e(45246),t,u;let a=(t=(0,l.inject)(h.H),t(u=class{constructor(r){this.valueToGame=[[["OSRS"],"osrs"],[["RS3"],"rs3"],[["Valorant"],"val"],[["Boosting","Placement Matches","Account leveling"],"lol"],[["Overwatch"],"ovw"]],this.helper=r}toView(r){if(!r)return;const n=r.match(/[a-zA-Z]+/g);if(!n)return;let c="";const i=this.valueToGame.find(p=>this.helper.includesSome(r,p[0]));i&&(c=i[1]);const d=n[n.length-1].toLowerCase();if(n.includes("Quest"))return"/icons/osrs-questing-icon.svg";if(n.includes("Diary"))return"/icons/diaries-osrs-product-icon.svg";if(n.includes("PVM"))return"/icons/pvm-osrs-product-icon.svg";if(n.includes("Minigames"))return"/icons/minigame-osrs-product-icon.svg";if(["osrs","rs3"].includes(c))return`/icons/skills/${c}/${d}.svg`;if(["nw","lol","val","ovw"].includes(c))return`/icons/games/${c}-small.svg`}})||u)}),33766:(function(C,o,e){"use strict";e.r(o),e.d(o,{TemplateCheckSeparatorValueConverter:function(){return l}});class l{toView(t){t&&setTimeout(()=>{const u=[];
1[...t.children].forEach(a=>{a.querySelector(".aurelia-hide")||u.push(a)}),u.length&&u.pop().classList.add("template-border-bottom-line-override")},500)}}}),68019:(function(C,o,e){"use strict";e.r(o),e.d(o,{ThousandSeparatorValueConverter:function(){return l}});class l{toView(t){return t!==""&&t!==void 0&&t!==0&&t!=="0"&&t!==null?t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","):t}}}),16417:(function(C,o,e){"use strict";e.r(o),e.d(o,{ToPluralValueConverter:function(){return a}});var l=e(45246),h=e("aurelia-framework"),t,u;let a=(t=(0,h.inject)(l.H),t(u=class{constructor(r){this.helper=r}toView(r){if(r)return this.helper.toPlural(r)}})||u)}),2959:(function(C,o,e){"use strict";e.d(o,{j:function(){return l}});class l{toView(t){!t.yPosition&&!t.xPosition||(t.yPosition&&(t.yPosition==="ABOVE"?t.tooltip.classList.add("arrow-position-below"):t.tooltip.classList.remove("arrow-position-below")),t.xPosition&&t.tooltip.classList.add(`arrow-position-${t.xPosition.toLowerCase()}`))}}}),52347:(function(C,o,e){"use strict";e.r(o),e.d(o,{UrlPaginationNavigateValueConverter:function(){return l}});class l{constructor(){this.getRoute=(t,u,a,m)=>[t,u?a:null,m&&m!==1?"page":null].filter(r=>r).join("-")}async toView(t,u,a,m,r,n=null,c={}){if(!t)return;let i=n??await r()??null;i=+i==1?null:i,u.navigateToRoute(this.getRoute(t,m,a,i),{...c,value:m,page:i})}}}),41541:(function(C,o,e){"use strict";e.d(o,{Po:function(){return K}});function l(g){return g?.originalException}function h(g){const S=l(g);return S instanceof Error?S.message:void 0}function t(g){const S=l(g);return S instanceof Error?S.name:void 0}function u(g){const S=l(g),D=S instanceof Error?S.stack:void 0;
1return typeof D=="string"?D:""}function a(g,S){const D=l(S);return D instanceof Error?D.message:typeof D=="string"?D:g?.exception?.values?.[0]?.value}function m(g){return(g?.exception?.values??[]).flatMap(D=>D?.stacktrace?.frames??[])}function r(g){return m(g).map(S=>S?.function??"")}function n(g,S,D){return u(S).includes(D)?!0:r(g).some(N=>N.includes(D))}function c(g){try{return new URL(g).hostname}catch{return""}}const i=/^(?:Failed to fetch|Load failed|NetworkError when attempting to fetch resource\.) \(([^)]+)\)$/,d=["ad.doubleclick.net","analytics.google.com","www2.profitwell.com"],p=[".googlesyndication.com",".google-analytics.com"];function E(g){return d.includes(g)?!0:p.some(S=>g.endsWith(S))}function P(g,S){const D=(h(S)??"").match(i);return D&&E(D[1])?null:g}const s=["www.clarity.ms","js.jam.dev"];function f(g,S){const D=m(g);if(D.length===0)return g;const N=D[D.length-1],G=c(N?.abs_path??N?.filename??"");return s.includes(G)?null:g}const y=/^(?:UET is not defined|Can't find variable: UET|'UET' is not defined)$/;function M(g,S){return t(S)==="ReferenceError"&&y.test(h(S)??"")?null:g}const I="Invalid call to runtime.sendMessage()";function O(g,S){const D=a(g,S);
1return typeof D=="string"&&D.startsWith(I)?null:g}const T="/__av/";function R(g,S){return m(g).some(N=>(N?.filename??"").startsWith(T))?null:g}const V=/^<Page url='[^']*'> is not in list$/;function U(g,S){return V.test(h(S)??"")?null:g}const _=/^Cannot add property \d+, object is not extensible$/,x="_setCustomStyles";function j(g,S){return t(S)!=="TypeError"||!_.test(h(S)??"")?g:n(g,S,x)?null:g}const $="Iframe didn't loaded in ",z="turn off adblockers or firewall",k="reCAPTCHA Timeout";function H(g,S){const D=h(S)??"";return D.startsWith($)&&D.includes(z)||D.startsWith(k)?null:g}const J="from accessing a cross-origin frame",Q="onIframeLoad";function Y(g,S){return(h(S)??"").includes(J)&&n(g,S,Q)?null:g}function X(g,S){const D=h(S);return D==="Server timeout elapsed without receiving a message from the server."||D?.startsWith("WebSocket closed with status code: 1006")||D==="Server returned handshake error: Handshake was canceled."||D==="Server returned an error on close: Connection closed with an error."?null:g}const b="Failed to execute 'replaceState' on 'History'";function v(){try{const g=new URL(document.URL);return g.username!==""||g.password!==""}catch{return!1}}function A(){try{return window.location.pathname.startsWith("//")||v()}catch{return!1}}function w(g,S){return t(S)!=="SecurityError"||!(h(S)??"").includes(b)?g:A()?null:g}const L="Maximum call stack size exceeded",B=/\.[mc]?js(\?|$)/;function F(g,S){if(!(h(S)??"").includes(L))return g;const D=m(g);return D.length===0||D.some(G=>B.test(G?.abs_path??G?.filename??""))?g:null}const W=[X,P,f,M,O,R,U,j,H,Y,w,F];function K(g,S){let D=g;for(const N of W){if(D===null)return null;D=N(D,S)}return D}}),1133:(function(C,o,e){"use strict";e.d(o,{P6:function(){return t},LK:function(){return h},GV:function(){return r}});var l=e(59467);const h=[{name:"[Payment Method] Load",action:l.J.Ff.load},{name:"[Payment Method] Load recent",action:l.J.Ff.loadRecent},{name:"[Payment Method] Select payment method",action:l.J.Ff.selectPaymentMethod},{name:"[Payment Method] Toggle sell methods",action:l.J.Ff.toggleIsSell},{name:"[Payment Method] Filter out PayPal methods",action:l.J.Ff.setFilterPayPal},{name:"[Payment Method] Load cards",action:l.J.Ff.loadCards},{name:"[Payment Method] Select debit/credit card",action:l.J.Ff.selectCard},{name:"[Payment Method] Set card",action:l.J.Ff.setCard},{name:"[Payment Method] Delete a card",action:l.J.Ff.deleteCard},{name:"[Payment Method] Add temporal card",action:l.J.Ff.addTemporalCard},{name:"[Payment Method] Delete temporal card",action:l.J.Ff.deleteTemporalCard}],t=[{name:"[Blacklist] Check if user is blacklisted",action:l.a.Ff.checkIfUserIsBlacklisted}];var u=e(87300),a;function m(n,c,i){return a(n,d=>{d.flags.set(c,i)})}function r(n,c){return(0,u.jM)(n,i=>{for(const d of c)i.flags.set(d.key,d.isEnabled)})}}),59467:(function(C,o,e){"use strict";e.d(o,{a:function(){return h},J:function(){return l}});var l={};e.r(l),e.d(l,{ue:function(){return m},vr:function(){return a},Ff:function(){return c}});var h={};e.r(h),e.d(h,{Lv:function(){return d},ue:function(){return p},Ff:function(){return P}});var t=e("aurelia-framework"),u=e(33092);const a="paymentMethod",m={paymentMethods:new Map,recentPaymentMethods:new Map,selectedPaymentMethod:null,isSell:!1,loadedPaymentMethods:!1,loadedRecentPaymentMethods:!1,filterPayPal:!1,cards:new Map,loadedCards:!1,selectedCard:null},r=t.Container.instance.get(u.gh),n=t.Container.instance.get(u.dH),c={load:async s=>{if(s.paymentMethod.paymentMethods.size)return s;const f=await r.getByWebsite()??[],y=new Map(f.map(M=>[M.paymentMethod.id,M]));return{...s,[a]:{...s.paymentMethod,paymentMethods:y,loadedPaymentMethods:!0}}},loadRecent:async(s,f=!1)=>{if(s.paymentMethod.recentPaymentMethods.size&&!f)return s;const y=await r.getRecentPaymentMethodByUserId(!0)??[],M=new Map;for(const[O,T]of y.entries()){let R="";const{id:V,reference:U}=T.paymentMethod;U==="stripe"?R=`${V}-${T.paymentMethod?.cardInfo?.cardId||O+1}`:R=`${V}`,M.has(R)||M.set(R,T)}const I=new Map(M);return{...s,[a]:{...s.paymentMethod,recentPaymentMethods:I,loadedRecentPaymentMethods:!0}}},selectPaymentMethod:(s,f)=>({...s,[a]:{...s.paymentMethod,selectedPaymentMethod:f}}),toggleIsSell:(s,f=null)=>({...s,[a]:{...s.paymentMethod,isSell:f===null?!s.paymentMethod.isSell:f}}),setFilterPayPal:(s,f)=>({...s,[a]:{...s.paymentMethod,filterPayPal:f}}),loadCards:async(s,f=!1)=>
1{if(s.paymentMethod.cards.size&&!f)return s;const y=await n.getCards(!0,"desc");if(!y||!y.length)return{...s,[a]:{...s.paymentMethod,loadedCards:!0}};const M=new Map(y.map(I=>[I.id,I]));return{...s,[a]:{...s.paymentMethod,cards:M,loadedCards:!0}}},selectCard:(s,f)=>({...s,[a]:{...s.paymentMethod,selectedCard:f}}),setCard:(s,f)=>{const y=new Map(s.paymentMethod.cards);y.clear(),y.set(f.id,f);for(const[M,I]of s.paymentMethod.cards.entries())M!==f.id&&y.set(M,I);return{...s,[a]:{...s.paymentMethod,cards:y}}},deleteCard(s,f){const y=new Map(s.paymentMethod.cards);return y.delete(f),{...s,[a]:{...s.paymentMethod,cards:y}}},addTemporalCard(s,f){const{selectedPaymentMethod:y}=s.paymentMethod,M=new Map(s.paymentMethod.cards);return y?(M.set(0,{...f,id:0,paymentMethodId:y,createdDate:new Date,updatedDate:new Date}),{...s,[a]:{...s.paymentMethod,cards:M}}):s},deleteTemporalCard(s){const f=new Map(s.paymentMethod.cards);return f.delete(0),{...s,[a]:{...s.paymentMethod,cards:f}}}};var i=e(31018);const d="blacklist",p={bannedForPaymentMethods:!1,bannedForSomePaymentMethods:!1,bannedForSelectedPaymentMethod:!1},E=t.Container.instance.get(i.Q),P={checkIfUserIsBlacklisted:async s=>{const{selectedPaymentMethod:f,paymentMethods:y}=s.paymentMethod,M=(f===null?void 0:y.get(f))??null,{paymentMethods:I,filterPaymentMethods:O,selectedPaymentMethod:T}=await E.checkIfUserByPaymentMethodInBlackList(M);return{...s,[d]:{...s.blacklist,bannedForPaymentMethods:I,bannedForSomePaymentMethods:O,bannedForSelectedPaymentMethod:T}}}}}),99850:(function(C,o,e){"use strict";var l=e(19806),h=e(28674);const t=P=>P.pipe((0,h.T)(s=>{const{paymentMethods:f}=s.paymentMethod;return f}),(0,l.F)((s,f)=>{if(s.size!==f.size)return!1;for(const[y,M]of s)if(!f.has(y)||f.get(y)!==M)return!1;return!0})),u=P=>P.pipe((0,h.T)(s=>{const{paymentMethods:f,recentPaymentMethods:y,isSell:M,filterPayPal:I,cards:O}=s.paymentMethod,{bannedForPaymentMethods:T,bannedForSomePaymentMethods:R}=s.blacklist;if(T)return new Map;const V={paymentMethods:f,recentPaymentMethods:y,isSell:M,filterPayPal:I,bannedForSomePaymentMethods:R},U=p(V),_=E(V),x=new Set;for(const k of U.keys()){const H=Number(k.split("-")[0]);x.add(H)}const j=new Set;for(const k of _.keys())j.add(k);const $=new Set;for(const k of O.values())k.paymentMethodId&&$.add(k.paymentMethodId);const z=new Map;for(const[k,H]of f)j.has(k)||x.has(k)&&!$.has(k)||d(H,M,I,R)&&z.set(k,H);return z}),(0,l.F)((s,f)=>{if(s.size!==f.size)return!1;for(const[y,M]of s)if(!f.has(y)||f.get(y)!==M)return!1;return!0})),a=P=>P.pipe((0,h.T)(s=>{const{recentPaymentMethods:f,isSell:y,filterPayPal:M,paymentMethods:I}=s.paymentMethod,{bannedForPaymentMethods:O,bannedForSomePaymentMethods:T}=s.blacklist;return O?new Map:p({recentPaymentMethods:f,isSell:y,filterPayPal:M,bannedForSomePaymentMethods:T,paymentMethods:I})}),(0,l.F)((s,f)=>{if(s.size!==f.size)return!1;for(const[y,M]of s)if(!f.has(y)||f.get(y)!==M)return!1;return!0})),m=P=>P.pipe((0,h.T)(s=>{const{paymentMethods:f,recentPaymentMethods:y,isSell:M,filterPayPal:I}=s.paymentMethod,{bannedForPaymentMethods:O,bannedForSomePaymentMethods:T}=s.blacklist;return O?new Map:E({paymentMethods:f,recentPaymentMethods:y,isSell:M,filterPayPal:I,bannedForSomePaymentMethods:T})}),(0,l.F)((s,f)=>{if(s.size!==f.size)return!1;for(const[y,M]of s)if(!f.has(y)||f.get(y)!==M)return!1;return!0})),r=P=>P.pipe((0,h.T)(s=>{const{paymentMethods:f}=s.paymentMethod;for(const[,y]of f)if(y.paymentMethod.reference==="balance")return y}),(0,l.F)((s,f)=>!s&&!f?!0:!s||!f?!1:s?.paymentMethod.id===f?.paymentMethod.id)),n=P=>P.pipe((0,h.T)(s=>{const{paymentMethods:f}=s.paymentMethod;for(const[,y]of f)if(y.paymentMethod.reference==="stripe")return y}),(0,l.F)((s,f)=>!s&&!f?!0:!s||!f?!1:s?.paymentMethod.id===f?.paymentMethod.id)),c=P=>P.pipe((0,h.T)(s=>{const{paymentMethods:f,selectedPaymentMethod:y}=s.paymentMethod;if(y!=null)return f.get(y)}),(0,l.F)((s,f)=>!s&&!f?!0:!s||!f?!1:s?.paymentMethod.id===f?.paymentMethod.id)),i=P=>P.pipe((0,h.T)(s=>{const{cards:f,selectedCard:y}=s.paymentMethod;if(y!=null)return f.get(y)}),(0,l.F)((s,f)=>!s&&!f?!0:!s||!f?!1:s?.id===f?.id)),d=(P,s,f,y)=>{const{reference:M,name:I}=P.paymentMethod;if(!s&&I==="Balance")return!1;const O=M.includes("paypal")||I.toLowerCase().includes("paypal");return!(f&&O||y&&!["crypto","coinpayments","btcpay","bitcart"].some(R=>M.includes(R)))},p=P=>{const{recentPaymentMethods:s,isSell:f,filterPayPal:y,bannedForSomePaymentMethods:M,paymentMethods:I}=P,O=new Map;for(const[T,R]of s)if(I.has(R.paymentMethod.id)&&d(R,f,y,M)&&(O.set(T,R),O.size>=3))break;return O},E=P=>{const{paymentMethods:s,recentPaymentMethods:f,isSell:y,filterPayPal:M,bannedForSomePaymentMethods:I}=P,O=new Set([...f.keys()].map(R=>Number(R.split("-")[0]))),T=new Map;for(const[R,V]of s)if(!O.has(R)&&d(V,y,M,I)&&(T.set(R,V),T.size>=3))break;return T};e.d(o,["NL",0,n,"Nz",0,c,"Si",0,t,"_p",0,a,"cS",0,r,"c_",0,i,"iC",0,m,"xi",0,u])}),65354:(function(C,o,e){"use strict";e.r(o),e.d(o,{DateFormatValueConverter:function(){return m}});var l=e("aurelia-framework"),h=e(45246),t=function(r,n,c,i){var d=arguments.length,p=d<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,c):i,E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(r,n,c,i);else for(var P=r.length-1;P>=0;P--)(E=r[P])&&(p=(d<3?E(p):d>3?E(n,c,p):E(n,c))||p);return d>3&&p&&Object.defineProperty(n,c,p),p},u=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},a;let m=class{helper;signals=["update-time"];constructor(n){this.helper=n}toView(n,c){return this.helper.dateFormat(n,c)}};m=t([(0,l.autoinject)(),u("design:paramtypes",[typeof(a=typeof h.H<"u"&&h.H)=="function"?a:Object])],m)})}]); 2 3//# sourceMappingURL=app~6b882012.077eb8e750445ba3d64f.bundle.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.