1(function(){try{var W=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};W.SENTRY_RELEASE={id:"7d2ddbb7df702d1d453561367c6f6960e639ed86"};var f=new W.Error().stack;f&&(W._sentryDebugIds=W._sentryDebugIds||{},W._sentryDebugIds[f]="34b8fadd-10f3-409e-a1b6-f3d6547e82de",W._sentryDebugIdIdentifier="sentry-dbid-34b8fadd-10f3-409e-a1b6-f3d6547e82de")}catch{}})(),(function(W,f){try{if(typeof window>"u")return;var e=window,s=e[f]=e[f]||{},q=new Error().stack;q&&(s[q]=W)}catch{}})({service:"chicksgold-ui",version:"7d2ddbb7df702d1d453561367c6f6960e639ed86"},"DD_SOURCE_CODE_CONTEXT"),(self.webpackChunkchicksgold_ui=self.webpackChunkchicksgold_ui||[]).push([[12],{"async!pages/sellv2/index":(function(W,f,e){W.exports=function(s){Promise.all([e.e(38),e.e(45),e.e(44),e.e(17)]).then((function(q){s(e(78101))}).bind(null,e)).catch(e.oe)}}),"async!pages/sellv2/categories/accounts/accounts":(function(W,f,e){W.exports=function(s){Promise.all([e.e(0),e.e(30)]).then((function(q){s(e("pages/sellv2/categories/accounts/accounts"))}).bind(null,e)).catch(e.oe)}}),"async!pages/sellv2/categories/currency/currency":(function(W,f,e){W.exports=function(s){Promise.all([e.e(0),e.e(31)]).then((function(q){s(e("pages/sellv2/categories/currency/currency"))}).bind(null,e)).catch(e.oe)}}),"async!pages/sellv2/sell-default/sell-default":(function(W,f,e){W.exports=function(s){e.e(32).then((function(q){s(e("pages/sellv2/sell-default/sell-default"))}).bind(null,e)).catch(e.oe)}}),"async!pages/sellv2/categories/gift-cards/gift-cards":(function(W,f,e){W.exports=function(s){Promise.all([e.e(0),e.e(33)]).then((function(q){s(e("pages/sellv2/categories/gift-cards/gift-cards"))}).bind(null,e)).catch(e.oe)}}),"async!pages/sellv2/categories/items/items":(function(W,f,e){W.exports=function(s){Promise.all([e.e(0),e.e(34)]).then((function(q){s(e("pages/sellv2/categories/items/items"))}).bind(null,e)).catch(e.oe)}}),"async!pages/sellv2/categories/skins/skins":(function(W,f,e){W.exports=function(s){Promise.all([e.e(0),e.e(35)]).then((function(q){s(e("pages/sellv2/categories/skins/skins"))}).bind(null,e)).catch(e.oe)}}),"async!pages/sellv2/categories/unique-names/unique-names":(function(W,f,e){W.exports=function(s){Promise.all([e.e(0),e.e(36)]).then((function(q){s(e("pages/sellv2/categories/unique-names/unique-names"))}).bind(null,e)).catch(e.oe)}}),
1"pages/withdraw-fees/withdraw-fees.scss":(function(W,f,e){var s=e(4968),q=e(85160),be=q(s);be.push([W.id,"#text-page-template .withdraw-fees-tables-container{margin-top:20px;display:flex;flex-direction:column;gap:20px}#text-page-template .withdraw-fees-tables-container .crypto-note{display:block;margin-bottom:20px;font-size:14px}#text-page-template .withdraw-fees-tables-container .table-responsive{overflow-x:auto}#text-page-template .withdraw-fees-tables-container .withdraw-fees-table{width:100%;border-collapse:collapse;background-color:transparent!important;margin-bottom:0}#text-page-template .withdraw-fees-tables-container .withdraw-fees-table thead th,#text-page-template .withdraw-fees-tables-container .withdraw-fees-table thead tr{background-color:var(--cg-accent-800)!important}#text-page-template .withdraw-fees-tables-container .withdraw-fees-table td,#text-page-template .withdraw-fees-tables-container .withdraw-fees-table th{padding:1rem;text-align:left;border:1px solid hsla(0,0%,100%,.1);background-color:transparent!important;color:inherit;font-size:14px}#text-page-template .withdraw-fees-tables-container .withdraw-fees-table th{font-weight:700;border-bottom:2px solid hsla(0,0%,100%,.2)}#text-page-template .withdraw-fees-tables-container .withdraw-fees-table td.merged-cell{vertical-align:middle}#text-page-template .withdraw-fees-tables-container .withdraw-fees-table tbody tr{background-color:transparent!important}#text-page-template .withdraw-fees-tables-container .withdraw-fees-table td.method-name{display:flex;align-items:center;gap:.5rem}#text-page-template .withdraw-fees-tables-container .withdraw-fees-table td.method-name .payment-icon{width:24px;height:24px;-o-object-fit:contain;object-fit:contain;flex-shrink:0}#text-page-template .withdraw-fees-tables-container .withdraw-fees-mobile-cards{display:none}@media(max-width:991px){#text-page-template .withdraw-fees-tables-container .table-responsive{display:none}#text-page-template .withdraw-fees-tables-container .withdraw-fees-mobile-cards{display:flex;flex-direction:column;gap:1rem}#text-page-template .withdraw-fees-tables-container .withdraw-fees-mobile-cards .method-card{background-color:hsla(0,0%,100%,.05);border-radius:8px;padding:1rem;border:1px solid hsla(0,0%,100%,.1)}#text-page-template .withdraw-fees-tables-container .withdraw-fees-mobile-cards .method-card .method-card-header{display:flex;align-items:center;gap:.5rem;font-weight:700;margin-bottom:1rem;padding-bottom:.5rem;border-bottom:1px solid hsla(0,0%,100%,.1)}#text-page-template .withdraw-fees-tables-container .withdraw-fees-mobile-cards .method-card .method-card-header .payment-icon{width:24px;height:24px;-o-object-fit:contain;object-fit:contain}#text-page-template .withdraw-fees-tables-container .withdraw-fees-mobile-cards .method-card .method-card-row{display:flex;justify-content:space-between;margin-bottom:.5rem;font-size:14px}#text-page-template .withdraw-fees-tables-container .withdraw-fees-mobile-cards .method-card .method-card-row:last-child{margin-bottom:0}#text-page-template .withdraw-fees-tables-container .withdraw-fees-mobile-cards .method-card .method-card-row .label{opacity:.7}#text-page-template .withdraw-fees-tables-container .withdraw-fees-mobile-cards .method-card .method-card-row .value{text-align:right;max-width:60%}}","",{version:3,sources:["webpack://./src/pages/withdraw-fees/withdraw-fees.scss"],names:[],mappings:"AAGI,oDACI,eAAA,CACA,YAAA,CACA,qBAAA,CACA,QAAA,CAEA,iEACI,aAAA,CACA,kBAAA,CACA,cAAA,CAGJ,sEACI,eAAA,CAGJ,yEACI,UAAA,CACA,wBAAA,CACA,sCAAA,CACA,eAAA,CAEA,oKACI,+CAAA,CAGJ,wJACI,YAAA,CACA,eAAA,CACA,mCAAA,CACA,sCAAA,CACA,aAAA,CACA,cAAA,CAGJ,4EACI,eAAA,CACA,0CAAA,CAGJ,wFACI,qBAAA,CAGJ,kFACI,sCAAA,CAGJ,wFACI,YAAA,CACA,kBAAA,CACA,SAAA,CAEA,sGACI,UAAA,CACA,WAAA,CACA,qBAAA,CAAA,kBAAA,CACA,aAAA,CAKZ,gFACI,YAAA,CAGJ,wBACI,sEACI,YAAA,CAGJ,gFACI,YAAA,CACA,qBAAA,CACA,QAAA,CAEA,6FACI,oCAAA,CACA,iBAAA,CACA,YAAA,CACA,mCAAA,CAEA,iHACI,YAAA,CACA,kBAAA,CACA,SAAA,CACA,eAAA,CACA,kBAAA,CACA,oBAAA,CACA,0CAAA,CAEA,+HACI,UAAA,CACA,WAAA,CACA,qBAAA,CAAA,kBAAA,CAIR,8GACI,YAAA,CACA,6BAAA,CACA,mBAAA,CACA,cAAA,CAEA,yHACI,eAAA,CAGJ,qHACI,UAAA,CAGJ,qHACI,gBAAA,CACA,aAAA,CAAA",sourcesContent:[`@import '../../styles/variables'; 2 3#text-page-template { 4 .withdraw-fees-tables-container { 5 margin-top: 20px; 6 display: flex; 7 flex-direction: column; 8 gap: 20px; 9 10 .crypto-note { 11 display: block; 12 margin-bottom: 20px; 13 font-size: 14px; 14 } 15 16 .table-responsive { 17 overflow-x: auto; 18 } 19 20 .withdraw-fees-table { 21 width: 100%; 22 border-collapse: collapse; 23 background-color: transparent !important; 24 margin-bottom: 0; 25 26 thead th, thead tr { 27 background-color: var(--cg-accent-800) !important; 28 } 29 30 th, td { 31 padding: 1rem; 32 text-align: left; 33 border: 1px solid rgba(255, 255, 255, 0.1); 34 background-color: transparent !important; 35 color: inherit; 36 font-size: 14px; 37 } 38 39 th { 40 font-weight: bold; 41 border-bottom: 2px solid rgba(255, 255, 255, 0.2); 42 } 43 44 td.merged-cell { 45 vertical-align: middle; 46 } 47 48 tbody tr { 49 background-color: transparent !important; 50 } 51 52 td.method-name { 53 display: flex; 54 align-items: center; 55 gap: 0.5rem; 56 57 .payment-icon { 58 width: 24px; 59 height: 24px; 60 object-fit: contain; 61 flex-shrink: 0; 62 } 63 } 64 } 65 66 .withdraw-fees-mobile-cards { 67 display: none; 68 } 69 70 @media (max-width: 991px) { 71 .table-responsive { 72 display: none; 73 } 74 75 .withdraw-fees-mobile-cards { 76 display: flex; 77 flex-direction: column; 78 gap: 1rem; 79 80 .method-card { 81 background-color: rgba(255, 255, 255, 0.05); 82 border-radius: 8px; 83 padding: 1rem; 84 border: 1px solid rgba(255, 255, 255, 0.1); 85 86 .method-card-header { 87 display: flex; 88 align-items: center; 89 gap: 0.5rem; 90 font-weight: bold; 91 margin-bottom: 1rem; 92 padding-bottom: 0.5rem; 93 border-bottom: 1px solid rgba(255, 255, 255, 0.1); 94 95 .payment-icon { 96 width: 24px; 97 height: 24px; 98 object-fit: contain; 99 } 100 } 101 102 .method-card-row { 103 display: flex; 104 justify-content: space-between; 105 margin-bottom: 0.5rem; 106 font-size: 14px; 107 108 &:last-child { 109 margin-bottom: 0; 110 } 111 112 .label { 113 opacity: 0.7; 114 } 115 116 .value { 117 text-align: right; 118 max-width: 60%; 119 } 120 } 121 } 122 } 123 } 124 } 125} 126`],sourceRoot:""}]),W.exports=be}),
126"pages/items/buy-items/buy-items.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 127 <div id="buy-items"></div> 128</template> 129`;f.default=s}),
129"pages/items/items-game-content/items-game-content.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 130 <div> 131 <cg-seo-dropdown is-loading.bind="pageLoading" header-title.bind="'CG_VIEW_MORE' | siteStrings"> 132 <div ref="templateItems"> 133 <cg-list-content 134 page-content-area-title="\${key}_FIRST_PARAGRAPH" 135 page-content-area-body="\${key}_FIRST_PARAGRAPH_BODY" 136 contents.bind="listContent" 137 class="d-block template-content-separation" 138 ></cg-list-content> 139 <cg-game-banner 140 background-path="\${key}_FIRST_BANNER_IMAGE" 141 class="d-block template-content-separation"> 142 </cg-game-banner> 143 <cg-template-paragraph 144 class="d-block template-content-separation" 145 no-line=true 146 title-key="\${key}_FIRST_QUESTION" 147 paragraph-key="\${key}_FIRST_QUESTION_BODY"> 148 </cg-template-paragraph> 149 <cg-template-paragraph 150 class="d-block template-content-separation" 151 no-line=true 152 title-key="\${key}_SECOND_QUESTION" 153 paragraph-key="\${key}_SECOND_QUESTION_BODY"> 154 </cg-template-paragraph> 155 <cg-template-paragraph 156 class="d-block template-content-separation" 157 no-line=true 158 title-key="\${key}_THIRD_QUESTION" 159 paragraph-key="\${key}_THIRD_QUESTION_BODY"> 160 </cg-template-paragraph> 161 <cg-template-paragraph 162 class="d-block template-content-separation" 163 no-line=true 164 title-key="\${key}_FOURTH_QUESTION" 165 paragraph-key="\${key}_FOURTH_QUESTION_BODY"> 166 </cg-template-paragraph> 167 <cg-game-banner 168 background-path="\${key}_SECOND_BANNER_IMAGE" 169 class="d-block template-content-separation"> 170 </cg-game-banner> 171 <cg-template-paragraph-image 172 class="d-block template-content-separation template-border-bottom-line" 173 inverted="true" 174 title-key="\${key}_SECOND_PARAGRAPH" 175 paragraph-key="\${key}_SECOND_PARAGRAPH_BODY" 176 image-key="\${key}_SECOND_PARAGRAPH_IMAGE"> 177 </cg-template-paragraph-image> 178 <cg-template-paragraph 179 ref="firstTemplateParagraph" 180 class="d-block template-content-separation" 181 no-line=true 182 title-key="\${key}_SIXTH_QUESTION" 183 paragraph-key="\${key}_SIXTH_QUESTION_BODY"> 184 </cg-template-paragraph> 185 <cg-template-paragraph-image 186 ref="secondTemplateParagraphImage" 187 class="d-block template-content-separation template-border-bottom-line" 188 title-key="\${key}_THIRD_PARAGRAPH" 189 paragraph-key="\${key}_THIRD_PARAGRAPH_BODY" 190 image-key="\${key}_THIRD_PARAGRAPH_IMAGE"> 191 </cg-template-paragraph-image> 192 <cg-game-banner 193 ref="firstGameBanner" 194 background-path="\${key}_THIRD_BANNER_IMAGE" 195 class="d-block template-content-separation"> 196 </cg-game-banner> 197 <cg-template-paragraph 198 ref="thirdTemplateParagraph" 199 class="d-block template-content-separation" 200 no-line=true 201 title-key="\${key}_SEVENTH_QUESTION" 202 paragraph-key="\${key}_SEVENTH_QUESTION_BODY"> 203 </cg-template-paragraph> 204 <cg-template-paragraph-image 205 ref="fourthTemplateParagraphImage" 206 class="d-block template-content-separation template-border-bottom-line" 207 inverted="true" 208 title-key="\${key}_FOURTH_PARAGRAPH" 209 paragraph-key="\${key}_FOURTH_PARAGRAPH_BODY" 210 image-key="\${key}_FOURTH_PARAGRAPH_IMAGE"> 211 </cg-template-paragraph-image> 212 <cg-template-paragraph 213 ref="fifthTemplateParagraph" 214 class="d-block template-content-separation" 215 no-line=true 216 title-key="\${key}_EIGHTH_QUESTION" 217 paragraph-key="\${key}_EIGHTH_QUESTION_BODY"> 218 </cg-template-paragraph> 219 <cg-template-paragraph-image 220 ref="sixthTemplateParagraphImage" 221 class="d-block template-content-separation template-border-bottom-line" 222 title-key="\${key}_FIFTH_PARAGRAPH" 223 paragraph-key="\${key}_FIFTH_PARAGRAPH_BODY" 224 image-key="\${key}_FIFTH_PARAGRAPH_IMAGE"> 225 </cg-template-paragraph-image> 226 <cg-template-paragraph-quad-cards 227 ref="firstTemplateParagraphQuadCards" 228 class="d-block template-content-separation" 229 info-quad-card-data.bind=infoQuadCardData 230 title-key="\${key}_EIGHTH_PARAGRAPH" 231 inverted="true" 232 paragraph-key="\${key}_EIGHTH_PARAGRAPH_BODY"> 233 </cg-template-paragraph-quad-cards> 234 <cg-game-banner 235 ref="secondGameBanner" 236 background-path="\${key}_FOURTH_BANNER_IMAGE" 237 class="d-block"> 238 </cg-game-banner> 239 </div> 240 </cg-seo-dropdown> 241 </div> 242</template> 243`;f.default=s}),
243"pages/items/items.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 244 <div ref="mainContainer" id="items" class="main-content-padding position-relative"> 245 <div if.bind="!gameNotAvailable"> 246 <div class="container"> 247 <div show.bind="pageLoading" class="title-substitute-skeleton" skeleton-loading.bind="isFirstLoad || pageLoading"> 248 </div> 249 <header class="d-flex items-heading-container"> 250 <div class="heading-title"> 251 <page-content-area is-custom-legal-page.bind="true" 252 if.bind="!selectedGame || titleKeyContent.markup || viewingAsAdmin" 253 class="text-extra-huge-plus font-bold mb-0 heading pb-sm-0" 254 key="ITEMS\${shortName}_PAGE_TITLE" show.bind="!isFirstLoad && !loading && !pageLoading" 255 data-cy="title"></page-content-area> 256 </div> 257 </header> 258 <h1 class="heading-title" 259 if.bind="selectedGame.headerTitle && !titleKeyContent.markup && !viewingAsAdmin && !isFirstLoad && !loading && !pageLoading" 260 data-cy="game-title">\${selectedGame.headerTitle}</h1> 261 <div class="filter-area \${!selectedGame ? 'filter-area-no-margin-bottom' : ''} d-flex"> 262 <div class="w-100 d-flex filter-area-container"> 263 <div class="product-category-selector" 264 skeleton-loading="is-loading.bind:isFirstLoad || pageLoading;width:100%;height:52px;"> 265 <cg-product-category-selector 266 if.bind="!pageLoading" 267 show-heading.bind="width < desktop"></cg-product-category-selector> 268 </div> 269 <div class="flex-grow-1 position-relative \${filters.length <= 1 || selectedGame.shortName.includes('D2R') ? 'search-input' : 'search-input-additional'}" 270 skeleton-loading="is-loading.bind:isFirstLoad || pageLoading;height:52px;"> 271 <cds-search if.bind="!pageLoading" slot="drawer-header" label.bind="'CG_SEARCH' | siteStrings" 272 show-clear-icon="true" class="mdc-searchbar" 273 value.two-way="search & debounce:500"></cds-search> 274 </div> 275 <div class="d-flex" skeleton-loading="is-loading.bind:isFirstLoad || pageLoading;width:276px;height:52px"> 276 <cds-filter if.bind="!pageLoading && width >= desktop" 277 class="padding-fix text-field-no-border-right price-filter" 278 view-model.ref="priceSelectorDesktop" 279 skeleton-loading="is-loading.bind:isFirstLoad || pageLoading;" 280 selected.trigger="selectPriceRangeHandler($event)" 281 keep-open-on-select="true" 282 value.one-way="getURLPrices" 283 alternative-value.bind="'CG_ALL' | siteStrings:'All'" 284 display-item-category="true" 285 field.bind="priceFilter" 286 scrollbar-visibility="hidden"> 287 </cds-filter> 288 <cg-responsive-filter-layout view-model.ref="filterLayout" controller.bind="getLayoutConfig"> 289 <template replace-part="drawer-main-content"> 290 <div skeleton-loading="is-loading.bind:isFirstLoad || pageLoading;width:fit-content;height:52px" 291 class="col-sm-6 text-color-grey-100 font-light showing-text--styles showing-text-fullscreen" data-cy="items-count"> 292 \${currentCount} 293 </div> 294 295 <div class="item-list p-regular"> 296 <div if.bind="!shouldShowCards && !shouldShowNoResults" class="items-list-skeleton
296skeleton" 297 repeat.for="i of 6" skeleton-loading.bind="isFirstLoad || filtering"> 298 </div> 299 <cg-product-card 300 else repeat.for="product of items" 301 is-responsive.bind="isResponsive" 302 is-default.bind="isDefault" product.bind="product" 303 price-modification.bind="priceModification" data-cy="product"> 304 </cg-product-card> 305 </div> 306 </template> 307 <template replace-part="layout-footer"> 308 <div show.bind="!shouldShowNoResults" class="col mb-big mt-big"> 309 <cg-pagination 310 view-model.ref="pagination" 311 extra-params.bind="extraParams" 312 parent="items" 313 section="game" 314 value.bind="paramGame" 315 url-pagination.bind="true" 316 count.two-way="count" 317 page.two-way="page" 318 data-cy="pagination" 319 page-loading.bind="isFirstLoad || pageLoading" 320 ></cg-pagination> 321 </div> 322 </template> 323 <template replace-part="layout-filters"> 324 <cg-filter-section-template if.bind="!pageLoading" 325 class="\${getPaddingFix}" 326 first-heading-text.bind="null" 327 second-section-class="cds-filter--fullscreen" 328 third-heading-text.bind="selectedGameIsD2R ? 'Custom search' : null" 329 third-section-class="additional-filters-layout" 330 show-clear-filters="true" 331 on-clear-filters.call="handleClearFilters()" 332 on-add-advanced-filters.bind="handleAddAdvancedFilters"> 333 <div slot="second-section" class="cg-filters-template__grid"> 334 <div class="game-selector"> 335 <cds-game-selector 336 category.bind="navCategory.id" 337 value.bind="selectedGame" 338 disable-mode.bind="true" 339 gameselected.trigger="gameChanged($event.detail)" 340 data-cy="game-selector" 341 ></cds-game-selector> 342 </div> 343 <cds-filter 344 if.bind="width < desktop" 345 class="padding-fix" 346 view-model.ref="sortSelectMobile" 347 disabled.bind="pageLoading" 348 disable-mode="width < desktop" 349 auto-clear="true" 350 value.bind="sort" 351 selected.trigger="handleSortUpdate($event)" 352 page-loading.bind="isFirstLoad || pageLoading" 353 field.bind="sortField" 354 scrollbar-visibility="hidden" 355 data-cy="sort-by" 356 ></cds-filter> 357 358 <cds-filter 359 if.bind="width < desktop" 360 class="padding-fix" 361 auto-clear="true" 362 disabled.bind="pageLoading" 363 view-model.ref="priceSelectorMobile" 364 disable-mode="width <= tablet" 365 selected.trigger="selectPriceRangeHandler($event)" 366 value.bind="getURLPrices" 367 keep-open-on-select="true" 368 page-loading.bind="isFirstLoad || pageLoading" 369 alternative-value.bind="'CG_ALL' | siteStrings:'All'" 370 field.bind="priceFilter" 371 display-item-category="true" 372 disable-mode="true" 373 scrollbar-visibility="hidden"> 374 </cds-filter> 375 <cg-additional-filters 376 view-model.ref="aAddFiltersRef" 377 disabled.bind="!selectedGame || pageLoading" 378 selected-game.bind="selectedGame" 379 filters.bind="filters" 380 list-of-values.bind="additionalFilter" 381 input-class="select-mdc-background-filled custom-border-radius" 382 extra-params.bind="extraParams" 383 data-cy="additional-filters" 384 type="basic"> 385 </cg-additional-filters> 386 </div> 387 <cds-filter if.bind="width < desktop" class="padding-fix" 388 view-model.ref="sortSelectMobile" disabled.bind="pageLoading" 389 disable-mode="width < desktop" auto-clear="true" 390 selected.trigger="handleSortUpdate($event)" 391 value.bind="sort" 392 page-loading.bind="isFirstLoad || pageLoading" field.bind="sortField" 393 scrollbar-visibility="hidden" data-cy="sort-by"></cds-filter> 394 <cds-filter if.bind="width < desktop" class="padding-fix" auto-clear="true" 395 disabled.bind="pageLoading" view-model.ref="priceSelectorMobile" 396 disable-mode="width <= tablet" 397 selected.trigger="selectPriceRangeHandler($event)" 398 value.bind="getURLPrices" 399 keep-open-on-select="true" page-loading.bind="isFirstLoad || pageLoading" 400 alternative-value.bind="'CG_ALL' | siteStrings:'All'" 401 field.bind="priceFilter" display-item-category="true" 402 disable-mode="true" scrollbar-visibility="hidden"> 403 </cds-filter> 404 <cg-additional-filters view-model.ref="aAddFiltersRef" 405 disabled.bind="!selectedGame || pageLoading" 406 selected-game.bind="selectedGame" filters.bind="filters" 407 list-of-values.bind="additionalFilter" 408 input-class="select-mdc-background-filled custom-border-radius" 409 extra-params.bind="extraParams" data-cy="additional-filters" 410 type="basic"> 411 </cg-additional-filters> 412 <div slot="third-section" class="cds-filter--fullscreen"> 413 <cg-additional-filters if.bind="getAdvancedFilterField && selectedGameIsD2R" 414 view-model.ref="aAddFiltersRef" 415 disabled.bind="!selectedGame || pageLoading" 416 selected-game.bind="selectedGame" filters.bind="getAdvancedFilterField" 417 list-of-values.bind="getAdvancedFiltersListOfValues" 418 extra-params.bind="extraParams" data-cy="additional-filters" 419 type="advanced"> 420 </cg-additional-filters> 421 </div> 422 </cg-filter-section-template> 423 </template> 424 </cg-responsive-filter-layout> 425 </div> 426 </div> 427 <div class="item-area \${!selectedGame || shouldShowNoResults ? 'item-area-no-height' : ''}"> 428 <div class="d-flex align-items-center showing-sort-area"> 429 <div skeleton-loading="is-loading.bind:isFirstLoad || pageLoading;width:fit-content;" 430 class="col-sm-6 text-color-grey-100 font-light showing-text" data-cy="items-count"> 431 \${currentCount} 432 </div> 433 <div class="sort-by-filter" skeleton-loading="is-loading.bind:isFirstLoad || pageLoading;marginLeft:auto;height:52px;width:196px;"> 434 <cds-filter 435 if.bind="!pageLoading" 436 auto-clear="true" 437 class="padding-fix w-100" 438 view-model.ref="sortSelectDesktop" 439 disabled.bind="pageLoading" 440 disable-mode="width <= tabletfix" 441 auto-select="true" 442 selected.trigger="handleSortUpdate($event)" 443 value.bind="sort" 444 page-loading.bind="isFirstLoad || pageLoading" 445 alternative-value.bind="'Recommended' | autoSiteString" field.bind="sortField" 446 scrollbar-visibility="hidden" data-cy="sort-by"></cds-filter> 447 </div> 448 </div> 449 <div class="item-area-products" if.bind="!shouldShowNoResults"> 450 <div class="item-list"> 451 <div if.bind="!shouldShowCards" class="items-list-skeleton
451skeleton" 452 repeat.for="i of perPage" skeleton-loading.bind="isFirstLoad || pageLoading"></div> 453 <cg-product-card else repeat.for="product of items" 454 is-responsive.bind="isResponsive" is-default.bind="isDefault" product.bind="product" 455 price-modification.bind="priceModification" data-cy="product"> 456 </cg-product-card> 457 </div> 458 </div> 459 <div if.bind="shouldShowNoResults" class="\${width > desktop ? 'mt-big' : 'mt-regular'}"> 460 <cds-no-results></cds-no-results> 461 </div> 462 <div show.bind="!shouldShowNoResults" class="col mt-big"> 463 <cg-pagination 464 view-model.ref="pagination" 465 extra-params.bind="extraParams" 466 parent="items" 467 section="game" 468 value.bind="paramGame" 469 url-pagination.bind="true" 470 count.two-way="count" 471 page.two-way="page" 472 data-cy="pagination" 473 page-loading.bind="isFirstLoad || pageLoading"> 474 </cg-pagination> 475 </div> 476 </div> 477 </div> 478 </div> 479 </div> 480 <cg-try-again-box else 481 main-fallback.bind="\`\${gameUnavailable.name} \${gameUnavailable.productCategories[0].name} is no longer available\`" 482 game-subtitle="true" games.bind="gamesForNoAvailable" button-text.bind="'Explore more' | autoSiteString" 483 icon="link_off" href.bind="'/'" margin-divider-gap="true"></cg-try-again-box> 484 <div class="grid-container mt-big"> 485 <div class="no-game-selected-seo-dropdown" if.bind="!selectedGame && !originalParamGame && !filterLayout.drawerIsOpen"> 486 <cg-seo-content 487 main-suffix.bind="seoKey" 488 current-page-loading.bind="isFirstLoad || pageLoading" 489 class="d-flex justify-content-center seo-dropdown"> 490 </cg-seo-content> 491 </div> 492 <router-view></router-view> 493 </div> 494 </div> 495</template> 496`;f.default=s}),
496"pages/legal-requests/legal-requests.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 497 <text-page-template content-keys.bind="contentKeys" 498 page-name="Legal Requests" 499 page-route="legal-requests" 500 ></text-page-template> 501</template>`;f.default=s}),
501"pages/modern-slavery-statement/modern-slavery-statement.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 502 <text-page-template content-keys.bind="contentKeys" 503 page-name="Modern Slavery Statement" 504 page-route="modern-slavery-statement" 505 ></text-page-template> 506</template> 507`;f.default=s}),
507"pages/more/gift-cards/buy-gift-cards/buy-gift-cards.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 508 <div id="buy-gift-cards"></div> 509</template> 510`;f.default=s}),
510"pages/more/gift-cards/gift-cards-game-content/gift-cards-game-content.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 511 <div class="mt-big"> 512 <cg-seo-dropdown is-loading.bind="pageLoading" header-title.bind="'CG_VIEW_MORE' | siteStrings"> 513 <div ref="templateGiftCards"> 514 <cg-list-content 515 page-content-area-title="\${key}_FIRST_PARAGRAPH" 516 page-content-area-body="\${key}_FIRST_PARAGRAPH_BODY" 517 contents.bind="listContent" 518 class="d-block template-content-separation" 519 ></cg-list-content> 520 <cg-game-banner 521 background-path="\${key}_FIRST_BANNER_IMAGE" 522 class="d-block template-content-separation"> 523 </cg-game-banner> 524 <cg-template-paragraph 525 class="d-block template-content-separation" 526 no-line=true 527 title-key="\${key}_FIRST_QUESTION" 528 paragraph-key="\${key}_FIRST_QUESTION_BODY"> 529 </cg-template-paragraph> 530 <cg-template-paragraph 531 class="d-block template-content-separation" 532 no-line=true 533 title-key="\${key}_SECOND_QUESTION" 534 paragraph-key="\${key}_SECOND_QUESTION_BODY"> 535 </cg-template-paragraph> 536 <cg-template-paragraph 537 class="d-block template-content-separation" 538 no-line=true 539 title-key="\${key}_THIRD_QUESTION" 540 paragraph-key="\${key}_THIRD_QUESTION_BODY"> 541 </cg-template-paragraph> 542 <cg-template-paragraph 543 class="d-block template-content-separation" 544 no-line=true 545 title-key="\${key}_FOURTH_QUESTION" 546 paragraph-key="\${key}_FOURTH_QUESTION_BODY"> 547 </cg-template-paragraph> 548 <cg-game-banner 549 background-path="\${key}_SECOND_BANNER_IMAGE" 550 class="d-block template-content-separation"> 551 </cg-game-banner> 552 <cg-template-paragraph-image 553 class="d-block template-content-separation template-border-bottom-line" 554 inverted="true" 555 title-key="\${key}_SECOND_PARAGRAPH" 556 paragraph-key="\${key}_SECOND_PARAGRAPH_BODY" 557 image-key="\${key}_SECOND_PARAGRAPH_IMAGE"> 558 </cg-template-paragraph-image> 559 <cg-template-paragraph 560 ref="firstTemplateParagraph" 561 class="d-block template-content-separation" 562 no-line=true 563 title-key="\${key}_SIXTH_QUESTION" 564 paragraph-key="\${key}_SIXTH_QUESTION_BODY"> 565 </cg-template-paragraph> 566 <cg-template-paragraph-image 567 ref="secondTemplateParagraphImage" 568 class="d-block template-content-separation template-border-bottom-line" 569 title-key="\${key}_THIRD_PARAGRAPH" 570 paragraph-key="\${key}_THIRD_PARAGRAPH_BODY" 571 image-key="\${key}_THIRD_PARAGRAPH_IMAGE"> 572 </cg-template-paragraph-image> 573 <cg-game-banner 574 ref="firstGameBanner" 575 background-path="\${key}_THIRD_BANNER_IMAGE" 576 class="d-block template-content-separation"> 577 </cg-game-banner> 578 <cg-template-paragraph 579 ref="thirdTemplateParagraph" 580 class="d-block template-content-separation" 581 no-line=true 582 title-key="\${key}_SEVENTH_QUESTION" 583 paragraph-key="\${key}_SEVENTH_QUESTION_BODY"> 584 </cg-template-paragraph> 585 <cg-template-paragraph-image 586 ref="fourthTemplateParagraphImage" 587 class="d-block template-content-separation template-border-bottom-line" 588 inverted="true" 589 title-key="\${key}_FOURTH_PARAGRAPH" 590 paragraph-key="\${key}_FOURTH_PARAGRAPH_BODY" 591 image-key="\${key}_FOURTH_PARAGRAPH_IMAGE"> 592 </cg-template-paragraph-image> 593 <cg-template-paragraph 594 ref="fifthTemplateParagraph" 595 class="d-block template-content-separation" 596 no-line=true 597 title-key="\${key}_EIGHTH_QUESTION" 598 paragraph-key="\${key}_EIGHTH_QUESTION_BODY"> 599 </cg-template-paragraph> 600 <cg-template-paragraph-image 601 ref="sixthTemplateParagraphImage" 602 class="d-block template-content-separation template-border-bottom-line" 603 title-key="\${key}_FIFTH_PARAGRAPH" 604 paragraph-key="\${key}_FIFTH_PARAGRAPH_BODY" 605 image-key="\${key}_FIFTH_PARAGRAPH_IMAGE"> 606 </cg-template-paragraph-image> 607 <cg-template-paragraph-quad-cards 608 ref="firstTemplateParagraphQuadCards" 609 class="d-block template-content-separation" 610 info-quad-card-data.bind=infoQuadCardData 611 title-key="\${key}_EIGHTH_PARAGRAPH" 612 inverted="true" 613 paragraph-key="\${key}_EIGHTH_PARAGRAPH_BODY"> 614 </cg-template-paragraph-quad-cards> 615 <cg-game-banner 616 ref="secondGameBanner" 617 background-path="\${key}_FOURTH_BANNER_IMAGE" 618 class="d-block"> 619 </cg-game-banner> 620 </div> 621 </cg-seo-dropdown> 622 </div> 623</template> 624`;f.default=s}),
624"pages/more/gift-cards/gift-cards.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 625 <div ref="mainContainer" id="gift-cards" class="main-content-padding position-relative"> 626 <div class="container"> 627 <div if.bind="!gameNotAvailable"> 628 <page-content-area 629 if.bind="!selectedGame || titleKeyContent.markup || viewingAsAdmin" 630 class="text-extra-huge-plus font-bold main-title-text" 631 margin-bottom-inherit="true" 632 line-height-inherit="true" 633 show.bind="!isFirstLoad && !loading && !pageLoading" 634 key="GIFT_CARDS\${shortName}_PAGE_TITLE" 635 ></page-content-area> 636 <h1 if.bind="selectedGame.headerTitle && !titleKeyContent.markup && !viewingAsAdmin && !isFirstLoad && !pageLoading" class="main-title-text"> 637 \${selectedGame.headerTitle} 638 </h1> 639 <div skeleton-loading="is-loading.bind:isFirstLoad || pageLoading;height:36px;width:300px;"></div> 640 <div class="filter-area regular-padding-area d-flex" > 641 <div class="w-100 d-flex filter-area-container"> 642 <div skeleton-loading="is-loading.bind:isFirstLoad || pageLoading;width:100%;height:52px;" class="product-category-selector"> 643 <cg-product-category-selector if.bind="!pageLoading" 644 show-heading.bind="width < desktop" 645 ></cg-product-category-selector> 646 </div> 647 <div class="position-relative search-input" skeleton-loading="is-loading.bind:isFirstLoad || pageLoading;marginLeft:auto;height:52px;"> 648 <cds-search if.bind="!pageLoading" 649 slot="drawer-header" 650 label="Search" 651 skeleton-loading="is-loading.bind:isFirstLoad || pageLoading;marginLeft:auto;height:52px;" 652 value.two-way="search & debounce:500" 653 ></cds-search> 654 </div> 655 <p>\${JSON.stringify(getURLPrices)}</p> 656 <div class="static-filters-width d-flex" skeleton-loading="is-loading.bind:isFirstLoad || pageLoading;width:276px;height:52px"> 657 <cds-filter 658 if.bind="!pageLoading && width >= desktop" 659 class="padding-fix text-field-no-border-right price-filter" 660 skeleton-loading="is-loading.bind:isFirstLoad || pageLoading;marginLeft:auto;height:52px;" 661 selected.trigger="selectPriceRangeHandler($event)" 662 keep-open-on-select="true" 663 value.bind="getURLPrices" 664 field.bind="priceFilter" 665 alternative-value.bind="'CG_ALL' | siteStrings:'All'" 666 display-item-category="true" 667 data-cy="sort-by" 668 scrollbar-visibility="hidden"> 669 </cds-filter> 670 <cg-responsive-filter-layout controller.bind="getMenuFilterLayoutConfig" 671 view-model.ref="filterLayout"> 672 <template replace-part="drawer-main-content"> 673 <div skeleton-loading="is-loading.bind:isLoading;width:130px;height:16px;marginRight:auto;force-div:true;" class="showing-text-fullscreen col-sm-6 text-color-grey-100 font-light showing-text" data-cy="items-count"> 674 <div class="showing-text--styles"> 675 \${currentCount} 676 </div> 677 </div> 678 <div class="p-regular \${isFirstLoad || pageLoading ? 'd-none' : ''}"> 679 <div class="gift-cards-list"> 680 <div 681 if.bind="isFirstLoad || pageLoading || filtering" 682 class="gift-card-list-skeleton
682skeleton" 683 repeat.for="i of 6" 684 skeleton-loading.bind="isFirstLoad || pageLoading" 685 ></div> 686 <cg-product-card 687 else 688 repeat.for="product of giftCards" 689 is-responsive.bind="isResponsive" 690 is-default.bind="isDefault" 691 product.bind="product" 692 price-modification.bind="priceModification" 693 ></cg-product-card> 694 </div> 695 </div> 696 </template> 697 <template replace-part="layout-footer"> 698 <div show.bind="!shouldShowNoResults" class="col mt-big"> 699 <cg-pagination 700 view-model.ref="pagination" 701 extra-params.bind="extraParams" 702 parent="gifts" 703 section="game" 704 value.bind="paramGame" 705 url-pagination.bind="true" 706 count.two-way="count" 707 page.two-way="page" 708 data-cy="pagination" 709 page-loading.bind="isFirstLoad || pageLoading" 710 ></cg-pagination> 711 </div> 712 </template> 713 <template replace-part="layout-filters"> 714 <cg-filter-section-template if.bind="!pageLoading" 715 class="\${getPaddingFix}" 716 show-clear-filters="true" 717 first-heading-text.bind="null" 718 second-section-class="cds-filter--fullscreen" 719 third-heading-text.bind="null" 720 on-clear-filters.call="handleClearFilters()" 721 on-add-advanced-filters.bind="handleAddAdvancedFilters"> 722 <div slot="second-section" class="cg-filters-template__grid"> 723 <cds-game-selector 724 value.bind="selectedGame" 725 manual-games.bind="games" 726 disable-mode.bind="true" 727 label="Platform" 728 disabled.bind="pageLoading" 729 gameselected.trigger="gameChanged($event.detail)" 730 data-cy="game-selector" 731 ></cds-game-selector> 732 <cds-filter 733 if.bind="width < desktop" 734 class="padding-fix" 735 auto-clear="true" 736 value.bind="extraParams.sort" 737 selected.trigger="handleSortUpdate($event)" 738 page-loading.bind="isFirstLoad || pageLoading" 739 field.bind="sortField" 740 scrollbar-visibility="hidden" 741 alternative-value.bind="'Recommended' | autoSiteString" 742 data-cy="sort-by" 743 disable-mode="true"> 744 </cds-filter> 745 <cds-filter 746 if.bind="width < desktop" 747 class="padding-fix" 748 auto-clear="true" 749 selected.trigger="selectPriceRangeHandler($event)" 750 keep-open-on-select="true" 751 value.bind="getURLPrices" 752 page-loading.bind="isFirstLoad || pageLoading" 753 alternative-value.bind="'CG_ALL' | siteStrings:'All'" 754 field.bind="priceFilter" 755 display-item-category="true" 756 disable-mode="true" 757 scrollbar-visibility="hidden"> 758 </cds-filter> 759 <cg-additional-filters 760 type="basic" 761 filters.bind="filters" 762 list-of-values.bind="additionalFilter" 763 input-class="select-mdc-background-filled custom-border-radius" 764 extra-params.bind="extraParams" 765 data-cy="additional-filters" 766 pageLoading.bind="isFirstLoad || pageLoading" 767 ></cg-additional-filters> 768 </div> 769 </cg-filter-section-template> 770 </template> 771 </cg-responsive-filter-layout> 772 </div> 773 </div> 774 </div> 775 <div class="gift-cards-area main-content-block"> 776 <div class="main-products-container"> 777 <div class="d-flex regular-padding-bottom-area"> 778 <div class="w-100 d-flex align-items-center showing-sort-area"> 779 <div skeleton-loading="is-loading.bind:isLoading;width:130px;height:16px;marginRight:auto;force-div:true;" class="me-auto showing-text--styles" data-cy="items-count"> 780 <div if.bind="!isLoading"> 781 \${currentCount} 782 </div> 783 </div> 784 <div class="ml-auto sort-by-filter"> 785 <div skeleton-loading="is-loading.bind:isFirstLoad || pageLoading;marginLeft:auto;height:52px;width:196px;" class="w-100 filter-skeleton-wrapper"> 786 <cds-filter 787 if.bind="!pageLoading" 788 view-model.ref="sortSelect" 789 disable-mode="true" 790 label.bind="'CG_SORT_BY' | siteStrings" 791 value.bind="extraParams.sort" 792 selected.trigger="handleSortUpdate($event)" 793 page-loading.bind="isFirstLoad || pageLoading" 794 field.bind="sortField" 795 scrollbar-visibility="hidden" 796 alternative-value.bind="'recommended' | siteStrings:'Recommended'" 797 data-cy="sort-by"> 798 </cds-filter> 799 </div> 800 </div> 801 </div> 802 </div> 803 <div class="gift-cards-area-products \${(!isFirstLoad && !pageLoading && !loading && !giftCards.length) ? 'd-none' : 'mt-regular'}"> 804 <div class="gift-cards-list" if.bind="!filterLayout.drawerIsOpen"> 805 <div 806 if.bind="isLoading" 807 class="gift-card-list-skeleton
807skeleton" 808 repeat.for="i of perPage" 809 skeleton-loading.bind="isLoading" 810 ></div> 811 <cg-product-card 812 if.bind="shouldShowCards" 813 repeat.for="product of giftCards" 814 is-responsive.bind="isResponsive" 815 is-default.bind="isDefault" 816 product.bind="product" 817 price-modification.bind="priceModification" 818 ></cg-product-card> 819 </div> 820 <div show.bind="!shouldShowNoResults" class="col mb-big mt-big"> 821 <cg-pagination 822 view-model.ref="pagination" 823 extra-params.bind="extraParams" 824 parent="gifts" 825 section="game" 826 value.bind="paramGame" 827 url-pagination.bind="true" 828 count.two-way="count" 829 page.two-way="page" 830 data-cy="pagination" 831 page-loading.bind="isFirstLoad || pageLoading" 832 ></cg-pagination> 833 </div> 834 </div> 835 <div if.bind="shouldShowNoResults" class="mt-big"> 836 <cds-no-results></cds-no-results> 837 </div> 838 </div> 839 840 </div> 841 </div> 842 <cg-try-again-box 843 else 844 main-fallback.bind="\`\${gameUnavailable.name} \${gameUnavailable.productCategories[0].name} is no longer available\`" 845 game-subtitle="true" 846 games.bind="gamesForNoAvailable" 847 button-text.bind="'Explore more' | autoSiteString" 848 icon="link_off" 849 href.bind="'/'" 850 margin-divider-gap="true" 851 ></cg-try-again-box> 852 <div class="no-game-selected-seo-dropdown mt-big" if.bind="!selectedGame && !paramGame && !filterLayout.drawerIsOpen"> 853 <cg-seo-content 854 main-suffix.bind="seoKey" 855 current-page-loading.bind="isFirstLoad || pageLoading" 856 class="d-flex justify-content-center seo-dropdown"> 857 </cg-seo-content> 858 </div> 859 <router-view></router-view> 860 </div> 861 </div> 862</template> 863`;f.default=s}),
863"pages/more/skins/buy-skins/buy-skins.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 864 <div id="buy-skins"></div> 865</template> 866`;f.default=s}),
866"pages/more/skins/skins-game-content/skins-game-content.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 867 <div class="mt-standard"> 868 <cg-seo-dropdown is-loading.bind="pageLoading" header-title.bind="'CG_VIEW_MORE' | siteStrings"> 869 <div ref="templateSkins"> 870 <cg-list-content 871 page-content-area-title="\${key}_FIRST_PARAGRAPH" 872 page-content-area-body="\${key}_FIRST_PARAGRAPH_BODY" 873 contents.bind="listContent" 874 class="d-block template-content-separation" 875 ></cg-list-content> 876 <cg-game-banner 877 background-path="\${key}_FIRST_BANNER_IMAGE" 878 class="d-block template-content-separation"> 879 </cg-game-banner> 880 <cg-template-paragraph 881 class="d-block template-content-separation" 882 no-line=true 883 title-key="\${key}_FIRST_QUESTION" 884 paragraph-key="\${key}_FIRST_QUESTION_BODY"> 885 </cg-template-paragraph> 886 <cg-template-paragraph 887 class="d-block template-content-separation" 888 no-line=true 889 title-key="\${key}_SECOND_QUESTION" 890 paragraph-key="\${key}_SECOND_QUESTION_BODY"> 891 </cg-template-paragraph> 892 <cg-template-paragraph 893 class="d-block template-content-separation" 894 no-line=true 895 title-key="\${key}_THIRD_QUESTION" 896 paragraph-key="\${key}_THIRD_QUESTION_BODY"> 897 </cg-template-paragraph> 898 <cg-template-paragraph 899 class="d-block template-content-separation" 900 no-line=true 901 title-key="\${key}_FOURTH_QUESTION" 902 paragraph-key="\${key}_FOURTH_QUESTION_BODY"> 903 </cg-template-paragraph> 904 <cg-game-banner 905 background-path="\${key}_SECOND_BANNER_IMAGE" 906 class="d-block template-content-separation"> 907 </cg-game-banner> 908 <cg-template-paragraph-image 909 class="d-block template-content-separation template-border-bottom-line" 910 inverted="true" 911 title-key="\${key}_SECOND_PARAGRAPH" 912 paragraph-key="\${key}_SECOND_PARAGRAPH_BODY" 913 image-key="\${key}_SECOND_PARAGRAPH_IMAGE"> 914 </cg-template-paragraph-image> 915 <cg-template-paragraph 916 ref="firstTemplateParagraph" 917 class="d-block template-content-separation" 918 no-line=true 919 title-key="\${key}_SIXTH_QUESTION" 920 paragraph-key="\${key}_SIXTH_QUESTION_BODY"> 921 </cg-template-paragraph> 922 <cg-template-paragraph-image 923 ref="secondTemplateParagraphImage" 924 class="d-block template-content-separation template-border-bottom-line" 925 title-key="\${key}_THIRD_PARAGRAPH" 926 paragraph-key="\${key}_THIRD_PARAGRAPH_BODY" 927 image-key="\${key}_THIRD_PARAGRAPH_IMAGE"> 928 </cg-template-paragraph-image> 929 <cg-game-banner 930 ref="firstGameBanner" 931 background-path="\${key}_THIRD_BANNER_IMAGE" 932 class="d-block template-content-separation"> 933 </cg-game-banner> 934 <cg-template-paragraph 935 ref="thirdTemplateParagraph" 936 class="d-block template-content-separation" 937 no-line=true 938 title-key="\${key}_SEVENTH_QUESTION" 939 paragraph-key="\${key}_SEVENTH_QUESTION_BODY"> 940 </cg-template-paragraph> 941 <cg-template-paragraph-image 942 ref="fourthTemplateParagraphImage" 943 class="d-block template-content-separation template-border-bottom-line" 944 inverted="true" 945 title-key="\${key}_FOURTH_PARAGRAPH" 946 paragraph-key="\${key}_FOURTH_PARAGRAPH_BODY" 947 image-key="\${key}_FOURTH_PARAGRAPH_IMAGE"> 948 </cg-template-paragraph-image> 949 <cg-template-paragraph 950 ref="fifthTemplateParagraph" 951 class="d-block template-content-separation" 952 no-line=true 953 title-key="\${key}_EIGHTH_QUESTION" 954 paragraph-key="\${key}_EIGHTH_QUESTION_BODY"> 955 </cg-template-paragraph> 956 <cg-template-paragraph-image 957 ref="sixthTemplateParagraphImage" 958 class="d-block template-content-separation template-border-bottom-line" 959 title-key="\${key}_FIFTH_PARAGRAPH" 960 paragraph-key="\${key}_FIFTH_PARAGRAPH_BODY" 961 image-key="\${key}_FIFTH_PARAGRAPH_IMAGE"> 962 </cg-template-paragraph-image> 963 <cg-template-paragraph-quad-cards 964 ref="firstTemplateParagraphQuadCards" 965 class="d-block template-content-separation" 966 info-quad-card-data.bind=infoQuadCardData 967 title-key="\${key}_EIGHTH_PARAGRAPH" 968 inverted="true" 969 paragraph-key="\${key}_EIGHTH_PARAGRAPH_BODY"> 970 </cg-template-paragraph-quad-cards> 971 <cg-game-banner 972 ref="secondGameBanner" 973 background-path="\${key}_FOURTH_BANNER_IMAGE" 974 class="d-block"> 975 </cg-game-banner> 976 </div> 977 </cg-seo-dropdown> 978 </div> 979</template> 980`;f.default=s}),
980"pages/more/skins/skins.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 981 <div ref="mainContainer" id="skins" class="main-content-padding position-relative"> 982 <div class="container"> 983 <div if.bind="!gameNotAvailable"> 984 <header class="d-flex skins-heading-container"> 985 <div class="heading-title"> 986 <page-content-area 987 if.bind="!selectedGame || titleKeyContent.markup || viewingAsAdmin" 988 class="text-extra-huge-plus font-bold mb-0 heading pb-sm-0" 989 key="SKINS\${shortName}_PAGE_TITLE" 990 show.bind="!isFirstLoad && !loading && !pageLoading" data-cy="title"> 991 </page-content-area> 992 </div> 993 <div skeleton-loading="is-loading.bind:isFirstLoad || pageLoading;height:36px;width:300px;"></div> 994 </header> 995 <h1 class="skins-game-title" if.bind="selectedGame.headerTitle && !titleKeyContent.markup && !viewingAsAdmin && !isFirstLoad && !pageLoading">\${selectedGame.headerTitle}</h1> 996 <div class="filter-area d-flex"> 997 <div class="product-category-selector" skeleton-loading="is-loading.bind:isFirstLoad || pageLoading;width:100%;height:52px;"> 998 <cg-product-category-selector if.bind="!pageLoading" 999 show-heading.bind="width < desktop" 1000 ></cg-product-category-selector> 1001 </div> 1002 <div class="flex-grow-1 position-relative d-none d-lg-flex" skeleton-loading="is-loading.bind:isFirstLoad || pageLoading;height:52px;"> 1003 <cds-search if.bind="!pageLoading" 1004 slot="drawer-header" 1005 label.bind="'CG_SEARCH' | siteStrings " 1006 class="mdc-searchbar" 1007 value.two-way="search & debounce:500" 1008 ></cds-search> 1009 </div> 1010 <div class="static-filters-width d-flex" skeleton-loading="is-loading.bind:isFirstLoad || pageLoading;width:276px;height:52px"> 1011 <cds-filter 1012 if.bind="!pageLoading && width >= desktop" 1013 class="padding-fix text-field-no-border-right price-filter" 1014 view-model.ref="priceSelectorDesktop" 1015 selected.trigger="selectPriceRangeHandler($event)" 1016 keep-open-on-select="true" 1017 value.bind="getURLPrices" 1018 page-loading.bind="isFirstLoad || pageLoading" 1019 field.bind="priceFilter" 1020 alternative-value.bind="'CG_ALL' | siteStrings:'All'" 1021 positioning="popover" 1022 display-item-category="true" 1023 scrollbar-visibility="hidden"> 1024 </cds-filter> 1025 <cg-responsive-filter-layout controller.bind="getFilterMenuLayoutConfig" view-model.ref="filterLayout"> 1026 <template replace-part="drawer-main-content"> 1027 <div class="showing-text-fullscreen d-block col-sm-6 text-gray showing-text"> 1028 <span skeleton-loading.bind="isFirstLoad || pageLoading" class="text-color-grey-100 showing-text--styles font-light"> 1029 \${currentCount} 1030 </span> 1031 </div> 1032 <div class="skins-list p-regular"> 1033 <div 1034 if.bind="!shouldShowCards" 1035 class="skins-list-skeleton skeleton" 1036 repeat.for="i of 6" 1037 skeleton-loading.bind="isFirstLoad || pageLoading" 1038 ></div> 1039 <cg-product-card 1040 else 1041 repeat.for="product of skins" 1042 is-responsive.bind="isResponsive" 1043 is-default.bind="isDefault" 1044 product.bind="product" 1045 price-modification.bind="priceModification" 1046 ></cg-product-card> 1047 </div> 1048 </template> 1049 <template replace-part="layout-footer"> 1050 <div show.bind="!shouldShowNoResults" class="col mb-big mt-big"> 1051 <cg-pagination 1052 view-model.ref="pagination" 1053 extra-params.bind="extraParams" 1054 parent="skins" 1055 section="game" 1056 value.bind="paramGame" 1057 url-pagination.bind="true" 1058 count.two-way="count"
1059 page.two-way="page" 1060 page-loading.bind="isFirstLoad || pageLoading" 1061 ></cg-pagination> 1062 </div> 1063 </template> 1064 <template replace-part="layout-filters"> 1065 <cg-filter-section-template if.bind="!pageLoading" 1066 class="\${getPaddingFix}" 1067 show-clear-filters="true" 1068 second-section-class="cds-filter--fullscreen" 1069 third-heading-text.bind="null" 1070 first-heading-text.bind="null" 1071 on-clear-filters.call="handleClearFilters()" 1072 on-add-advanced-filters.bind="handleAddAdvancedFilters"> 1073 <div slot="second-section" class="cg-filters-template__grid"> 1074 <div class="game-selector"> 1075 <cds-game-selector 1076 category.bind="navCategory.id" 1077 value.bind="selectedGame" 1078 disable-mode.bind="true" 1079 gameselected.trigger="gameChanged($event.detail)" 1080 data-cy="game-selector" 1081 ></cds-game-selector> 1082 </div> 1083 <cds-filter 1084 if.bind="width < desktop" 1085 class="padding-fix" 1086 auto-clear="true" 1087 view-model.ref="sortSelectMobile" 1088 selected.trigger="handleSortUpdate($event)" 1089 value.bind="sort" 1090 page-loading.bind="isFirstLoad || pageLoading" 1091 field.bind="sortField" 1092 alternative-value.bind="'Recommended' | autoSiteString" 1093 scrollbar-visibility="hidden" 1094 data-cy="sort-by"> 1095 </cds-filter> 1096 <cds-filter 1097 show.bind="width < desktop" 1098 class="padding-fix" 1099 auto-clear="true" 1100 view-model.ref="priceSelectorMobile" 1101 selected.trigger="selectPriceRangeHandler($event)" 1102 value.bind="getURLPrices" 1103 keep-open-on-select="true" 1104 page-loading.bind="isFirstLoad || pageLoading" 1105 alternative-value.bind="'CG_ALL' | siteStrings:'All'" 1106 field.bind="priceFilter" 1107 display-item-category="true" 1108 disable-mode="true" 1109 scrollbar-visibility="hidden"> 1110 </cds-filter> 1111 <cg-additional-filters 1112 view-model.ref="aAddFiltersRef" 1113 disabled.bind="!selectedGame" 1114 selected-game.bind="selectedGame" 1115 filters.bind="filters" 1116 list-of-values.bind="additionalFilter" 1117 input-class="select-mdc-background-filled custom-border-radius" 1118 extra-params.bind="extraParams" 1119 data-cy="additional-filters" 1120 type="basic"> 1121 </cg-additional-filters> 1122 </div> 1123 </cg-filter-section-template> 1124 </template> 1125 </cg-responsive-filter-layout> 1126 </div> 1127 </div> 1128 1129 <div class="skin-area main-content-block"> 1130 <div class="d-flex align-items-center justify-content-between"> 1131 <div class="d-block col-sm-6 text-gray showing-text">
1132 <span skeleton-loading.bind="isFirstLoad || pageLoading"> 1133 \${currentCount} 1134 </span> 1135 </div> 1136 <div class="col-12 col-sm-6 d-flex justify-content-end sort-by-filter"> 1137 <div skeleton-loading="is-loading.bind:isFirstLoad || pageLoading;marginLeft:auto;height:52px;width:196px;" class="w-100 filter-skeleton-wrapper"> 1138 <cds-filter 1139 if.bind="!pageLoading" 1140 view-model.ref="sortSelect" 1141 class="padding-fix w-100" 1142 selected.trigger="handleSortUpdate($event)" 1143 keep-open-on-select="true" 1144 value.bind="sort" 1145 page-loading.bind="isFirstLoad || pageLoading" 1146 field.bind="sortField" 1147 scrollbar-visibility="hidden" 1148 data-cy="sort-by"> 1149 </cds-filter> 1150 </div> 1151 </div> 1152 </div> 1153 <div class="skins-area-products"> 1154 <div class="skins-list" if.bind="!shouldShowNoResults"> 1155 <div 1156 if.bind="!shouldShowCards" 1157 class="skins-list-skeleton skeleton" 1158 repeat.for="i of perPage" 1159 skeleton-loading.bind="isFirstLoad || pageLoading" 1160 ></div> 1161 <cg-product-card 1162 else 1163 repeat.for="product of skins" 1164 is-default.bind="isDefault" 1165 is-responsive.bind="isResponsive" 1166 product.bind="product" 1167 price-modification.bind="priceModification" 1168 ></cg-product-card> 1169 </div> 1170 <div if.bind="shouldShowNoResults"> 1171 <cds-no-results></cds-no-results> 1172 </div> 1173 <div show.bind="!shouldShowNoResults" class="col mt-big"> 1174 <cg-pagination 1175 view-model.ref="pagination" 1176 extra-params.bind="extraParams" 1177 parent="skins" 1178 section="game" 1179 value.bind="paramGame" 1180 url-pagination.bind="true" 1181 count.two-way="count" 1182 page.two-way="page" 1183 page-loading.bind="isFirstLoad || pageLoading" 1184 ></cg-pagination> 1185 </div> 1186 </div> 1187 </div> 1188 </div> 1189 <cg-try-again-box 1190 else 1191 main-fallback.bind="\`\${gameUnavailable.name} \${gameUnavailable.productCategories[0].name} is no longer available\`" 1192 game-subtitle="true" 1193 games.bind="gamesForNoAvailable" 1194 button-text.bind="'Explore more' | autoSiteString" 1195 icon="link_off" 1196 href.bind="'/'" 1197 margin-divider-gap="true" 1198 ></cg-try-again-box> 1199 <div class="no-game-selected-seo-dropdown mt-big" if.bind="!selectedGame && !paramGame && !filterLayout.drawerIsOpen"> 1200 <cg-seo-content 1201 main-suffix.bind="seoKey" 1202 current-page-loading.bind="isFirstLoad || loading" 1203 class="d-flex justify-content-center seo-dropdown"> 1204 </cg-seo-content> 1205 </div> 1206 <router-view></router-view> 1207 </div> 1208 </div> 1209</template> 1210`;f.default=s}),
1210"pages/more/swap/swap.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 1211 <div id="swap" class="position-relative"> 1212 <div if.bind="!gameNotAvailable"> 1213 <page-content-area 1214 if.bind="titleKeyContent.markup || viewingAsAdmin" 1215 skeleton-loading.bind="isLoading" 1216 class="title text-truncate" 1217 key="SWAP_\${pageContentAreaTitle}_PAGE_TITLE" 1218 ></page-content-area> 1219 <h1 show.bind="!titleKeyContent.markup && !viewingAsAdmin" skeleton-loading.bind="isLoading"> 1220 <span>\${pageTitle | languageKeyFormatter | siteStrings: pageTitle}</span> 1221 </h1> 1222 <!-- Desktop view. Visible when width above 992px --> 1223 <cg-swap-section 1224 content-section-loading.two-way="sellSectionLoading" 1225 if.bind="width > 992" 1226 is-selling="true" 1227 user.bind="user" 1228 page-loading.bind="pageLoading" 1229 content-loading.two-way="contentLoading" 1230 product-categories.bind="sellCategories" 1231 game.bind="currentSellGame" 1232 category.bind="currentSellCategory" 1233 payment-methods.bind="paymentMethods" 1234 swap-adjustments.bind="swapAdjustments" 1235 gameselected.trigger="handleGameSelected($event, 'sell')" 1236 categoryselected.trigger="handleCategorySelected($event, 'sell')" 1237 authrequested.trigger="redirectToSSO()" 1238 ></cg-swap-section> 1239 <cg-swap-section 1240 content-section-loading.two-way="buySectionLoading" 1241 if.bind="width > 992" 1242 is-selling.bind="false" 1243 user.bind="user" 1244 page-loading.bind="pageLoading" 1245 content-loading.two-way="contentLoading" 1246 loading.bind="creatingOrder" 1247 product-categories.bind="buyCategories" 1248 game.bind="currentBuyGame" 1249 category.bind="currentBuyCategory" 1250 swap-adjustments.bind="swapAdjustments" 1251 gameselected.trigger="handleGameSelected($event, 'buy')" 1252 categoryselected.trigger="handleCategorySelected($event, 'buy')" 1253 authrequested.trigger="redirectToSSO()" 1254 createorder.trigger="createOrder()" 1255 ></cg-swap-section> 1256 <!-- Mobile view. Visible when width <= 992px --> 1257 <cg-swap-section-mobile 1258 if.bind="width <= 992" 1259 user.bind="user" 1260 page-loading.bind="pageLoading" 1261 content-loading.two-way="contentLoading" 1262 loading.bind="creatingOrder" 1263 product-categories.bind="mobileCategories" 1264 game.bind="currentGameMobile" 1265 category.bind="currentCategoryMobile" 1266 payment-methods.bind="paymentMethods" 1267 swap-adjustments.bind="swapAdjustments" 1268 tabselected.trigger="isSelling = $event.detail" 1269 gameselected.trigger="handleGameSelected($event, 'mobile')" 1270 categoryselected.trigger="handleCategorySelected($event, 'mobile')" 1271 authrequested.trigger="redirectToSSO()" 1272 createorder.trigger="createOrder()" 1273 ></cg-swap-section-mobile> 1274 <!-- SEO text --> 1275 <div class="seo-text-container" skeleton-loading.bind="isLoading"> 1276 <cg-seo-dropdown is-loading.bind="isLoading" header-title.bind="'CG_VIEW_MORE' | siteStrings"> 1277 <div ref="templateSwap"> 1278 <cg-template-paragraph 1279 class="d-block template-content-separation" 1280 title-key="\${swapSEOKey}_WHY_CHOOSE_US_TITLE" 1281 paragraph-key="\${swapSEOKey}_WHY_CHOOSE_US_PARAGRAPH"> 1282 </cg-template-paragraph> 1283 <cg-quad-why-choose-cards 1284 information.bind="whyChooseUsKeys" 1285 class="d-block template-content-separation"> 1286 </cg-quad-why-choose-cards> 1287 <cg-template-paragraph 1288 no-line=true 1289 class="d-block template-content-separation template-border-bottom-line" 1290 title-key="\${swapSEOKey}_FIRST_PARAGRAPH" 1291 paragraph-key="\${swapSEOKey}_FIRST_PARAGRAPH_BODY"> 1292 </cg-template-paragraph> 1293 <cg-game-banner 1294 ref="firstGameBanner" 1295 background-path="\${swapSEOKey}_FIRST_BANNER_IMAGE" 1296 class="d-block template-content-separation"> 1297 </cg-game-banner> 1298 <cg-template-paragraph 1299 ref="firstTemplateParagraph" 1300 class="d-block template-content-separation" 1301 no-line=true 1302 title-key="\${swapSEOKey}_SECOND_PARAGRAPH" 1303 paragraph-key="\${swapSEOKey}_SECOND_PARAGRAPH_BODY"> 1304 </cg-template-paragraph> 1305 <cg-template-paragraph-image 1306 ref="secondTemplateParagraphImage" 1307 class="d-block template-content-separation template-border-bottom-line" 1308 inverted="true" 1309 title-key="\${swapSEOKey}_THIRD_PARAGRAPH" 1310 paragraph-key="\${swapSEOKey}_THIRD_PARAGRAPH_BODY" 1311 image-key="\${swapSEOKey}_THIRD_PARAGRAPH_IMAGE"> 1312 </cg-template-paragraph-image> 1313 <cg-template-paragraph 1314 ref="fourthTemplateParagraph" 1315 class="d-block template-content-separation" 1316 no-line=true 1317 title-key="\${swapSEOKey}_FOURTH_PARAGRAPH" 1318 paragraph-key="\${swapSEOKey}_FOURTH_PARAGRAPH_BODY"> 1319 </cg-template-paragraph> 1320 <cg-template-paragraph-image 1321 ref="fifthTemplateParagraph" 1322 class="d-block template-content-separation template-border-bottom-line" 1323 title-key="\${swapSEOKey}_FIFTH_PARAGRAPH" 1324 paragraph-key="\${swapSEOKey}_FIFTH_PARAGRAPH_BODY" 1325 image-key="\${swapSEOKey}_FIFTH_PARAGRAPH_IMAGE"> 1326 </cg-template-paragraph-image> 1327 <cg-game-banner 1328 ref="secondGameBanner" 1329 background-path="\${swapSEOKey}_SECOND_BANNER_IMAGE" 1330 class="d-block template-content-separation"> 1331 </cg-game-banner> 1332 <cg-template-paragraph-image 1333 ref="sixthTemplateParagraphImage" 1334 class="d-block template-content-separation template-border-bottom-line" 1335 inverted="true" 1336 title-key="\${swapSEOKey}_SIXTH_PARAGRAPH" 1337 paragraph-key="\${swapSEOKey}_SIXTH_PARAGRAPH_BODY" 1338 image-key="\${swapSEOKey}_SIXTH_PARAGRAPH_IMAGE"> 1339 </cg-template-paragraph-image> 1340 <cg-template-paragraph 1341 ref="seventhTemplateParagraph" 1342 class="d-block template-content-separation" 1343 no-line=true 1344 title-key="\${swapSEOKey}_SEVENTH_PARAGRAPH" 1345 paragraph-key="\${swapSEOKey}_SEVENTH_PARAGRAPH_BODY"> 1346 </cg-template-paragraph> 1347 <cg-template-paragraph-image 1348 ref="eigthTemplateParagraph" 1349 class="d-block template-content-separation template-border-bottom-line" 1350 title-key="\${swapSEOKey}_EIGHTH_PARAGRAPH" 1351 paragraph-key="\${swapSEOKey}_EIGHTH_PARAGRAPH_BODY" 1352 image-key="\${swapSEOKey}_EIGHTH_PARAGRAPH_IMAGE"> 1353 </cg-template-paragraph-image> 1354 <cg-game-banner 1355 ref="thirdGameBanner" 1356 background-path="\${swapSEOKey}_THIRD_BANNER_IMAGE" 1357 class="d-block template-content-separation"> 1358 </cg-game-banner> 1359 <cg-template-paragraph 1360 ref="ninthTemplateParagraph" 1361 class="d-block template-content-separation" 1362 no-line=true 1363 title-key="\${swapSEOKey}_FIRST_QUESTION" 1364 paragraph-key="\${swapSEOKey}_FIRST_QUESTION_BODY"> 1365 </cg-template-paragraph> 1366 <cg-template-paragraph 1367 ref="tenthTemplateParagraph" 1368 class="d-block template-content-separation" 1369 no-line=true 1370 title-key="\${swapSEOKey}_SECOND_QUESTION" 1371 paragraph-key="\${swapSEOKey}_SECOND_QUESTION_BODY"> 1372 </cg-template-paragraph> 1373 <cg-template-paragraph 1374 ref="eleventhTemplateParagraph" 1375 class="d-block template-content-separation" 1376 no-line=true 1377 title-key="\${swapSEOKey}_THIRD_QUESTION" 1378 paragraph-key="\${swapSEOKey}_THIRD_QUESTION_BODY"> 1379 </cg-template-paragraph> 1380 <cg-template-paragraph 1381 ref="twelvethTemplateParagraph" 1382 class="d-block template-content-separation" 1383 no-line=true 1384 title-key="\${swapSEOKey}_FOURTH_QUESTION" 1385 paragraph-key="\${swapSEOKey}_FOURTH_QUESTION_BODY"> 1386 </cg-template-paragraph> 1387 <cg-template-paragraph-quad-cards 1388 ref="firstTemplateParagraphQuadCards" 1389 class="d-block template-content-separation" 1390 info-quad-card-data.bind=infoQuadCardData 1391 title-key="\${swapSEOKey}_NINTH_PARAGRAPH" 1392 paragraph-key="\${swapSEOKey}_NINTH_PARAGRAPH_BODY"> 1393 </cg-template-paragraph-quad-cards> 1394 <cg-game-banner 1395 ref="fourthGameBanner" 1396 background-path="\${swapSEOKey}_FOURTH_BANNER_IMAGE" 1397 class="d-block"> 1398 </cg-game-banner> 1399 </div> 1400 </cg-seo-dropdown> 1401 </div> 1402 </div> 1403 <cg-try-again-box 1404 else 1405 main-fallback.bind="\`\${gameUnavailable.name} \${gameUnavailable.productCategories[0].name} is no longer available\`" 1406 game-subtitle="true" 1407 games.bind="gamesForNoAvailable" 1408 button-text.bind="'Explore more' | autoSiteString" 1409 icon="link_off" 1410 href.bind="'/'" 1411 margin-divider-gap="true" 1412 ></cg-try-again-box> 1413 </div> 1414</template> 1415`;f.default=s}),
1415"pages/more/unique-names/legacy/unique-names-default/unique-names-default.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 1416 <div id="unique-names-default"></div> 1417</template> 1418`;f.default=s}),
1418"pages/more/unique-names/legacy/unique-names-game-content/unique-names-game-content.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 1419 <div class="mt-standard"> 1420 <cg-seo-dropdown is-loading.bind="false" header-title.bind="'View more' | autoSiteString"> 1421 <div ref="templateUniqueNames"> 1422 <cg-template-paragraph-image 1423 class="d-block template-content-services template-border-bottom-line" 1424 inverted="true" 1425 title-key="\${key}_FIRST_PARAGRAPH" 1426 paragraph-key="\${key}_FIRST_PARAGRAPH_BODY" 1427 image-key="\${key}_FIRST_PARAGRAPH_IMAGE"> 1428 </cg-template-paragraph-image> 1429 <cg-template-paragraph-image 1430 class="d-block template-content-services template-border-bottom-line" 1431 title-key="\${key}_SECOND_PARAGRAPH" 1432 paragraph-key="\${key}_SECOND_PARAGRAPH_BODY" 1433 image-key="\${key}_SECOND_PARAGRAPH_IMAGE"> 1434 </cg-template-paragraph-image> 1435 <cg-template-paragraph-image 1436 class="d-block template-content-services template-border-bottom-line" 1437 inverted="true" 1438 title-key="\${key}_THIRD_PARAGRAPH" 1439 paragraph-key="\${key}_THIRD_PARAGRAPH_BODY" 1440 image-key="\${key}_THIRD_PARAGRAPH_IMAGE"> 1441 </cg-template-paragraph-image> 1442 <cg-game-banner 1443 ref="firstGameBanner" 1444 background-path="\${key}_THIRD_BANNER_IMAGE" 1445 class="d-block template-content-separation"> 1446 </cg-game-banner> 1447 <cg-template-paragraph 1448 ref="thirdTemplateParagraph" 1449 class="d-block template-content-separation template-border-bottom-line" 1450 no-line=true 1451 title-key="\${key}_FIRST_QUESTION" 1452 paragraph-key="\${key}_FIRST_QUESTION_BODY"> 1453 </cg-template-paragraph> 1454 <cg-game-banner 1455 ref="secondGameBanner" 1456 background-path="\${key}_FOURTH_BANNER_IMAGE" 1457 class="d-block template-content-separation"> 1458 </cg-game-banner> 1459 <cg-template-paragraph 1460 ref="fourthTemplateParagraph" 1461 class="d-block template-content-separation" 1462 no-line=true 1463 title-key="\${key}_SECOND_QUESTION" 1464 paragraph-key="\${key}_SECOND_QUESTION_BODY"> 1465 </cg-template-paragraph> 1466 <cg-game-banner 1467 ref="thirdGameBanner" 1468 background-path="\${key}_FIFTH_BANNER_IMAGE" 1469 class="d-block template-content-separation"> 1470 </cg-game-banner> 1471 <cg-template-paragraph 1472 ref="fifthTemplateParagraph" 1473 class="d-block template-content-separation" 1474 no-line=true 1475 title-key="\${key}_TWO_QUESTION" 1476 paragraph-key="\${key}_TWO_QUESTION_BODY"> 1477 </cg-template-paragraph> 1478 <cg-template-paragraph 1479 ref="fifthTemplateParagraph" 1480 class="d-block template-content-separation" 1481 no-line=true 1482 title-key="\${key}_THIRD_QUESTION" 1483 paragraph-key="\${key}_THIRD_QUESTION_BODY"> 1484 </cg-template-paragraph> 1485 <cg-template-paragraph 1486 ref="ninthTemplateParagraph" 1487 class="d-block template-content-separation" 1488 no-line=true 1489 title-key="\${key}_FOURTH_QUESTION" 1490 paragraph-key="\${key}_FOURTH_QUESTION_BODY"> 1491 </cg-template-paragraph> 1492 <cg-template-paragraph 1493 ref="tenthTemplateParagraph" 1494 class="d-block template-content-separation" 1495 no-line=true 1496 title-key="\${key}_FIFTH_QUESTION" 1497 paragraph-key="\${key}_FIFTH_QUESTION_BODY"> 1498 </cg-template-paragraph> 1499 <cg-template-paragraph 1500 ref="eleventhTemplateParagraph" 1501 class="d-block template-content-separation" 1502 no-line=true 1503 title-key="\${key}_SIXTH_QUESTION" 1504 paragraph-key="\${key}_SIXTH_QUESTION_BODY"> 1505 </cg-template-paragraph> 1506 <cg-template-paragraph 1507 ref="twelvethTemplateParagraph" 1508 class="d-block template-content-separation" 1509 no-line=true 1510 title-key="\${key}_SEVENTH_QUESTION" 1511 paragraph-key="\${key}_SEVENTH_QUESTION_BODY"> 1512 </cg-template-paragraph> 1513 <cg-template-paragraph-image 1514 ref="sixthTemplateParagraphImage" 1515 class="d-block template-content-services template-border-bottom-line" 1516 inverted="true" 1517 title-key="\${key}_SIXTH_PARAGRAPH" 1518 paragraph-key="\${key}_SIXTH_PARAGRAPH_BODY" 1519 image-key="\${key}_SIXTH_PARAGRAPH_IMAGE"> 1520 </cg-template-paragraph-image> 1521 <cg-template-paragraph-image 1522 ref="seventhTemplateParagraphImage" 1523 class="d-block template-content-bottom" 1524 title-key="\${key}_SEVENTH_PARAGRAPH" 1525 paragraph-key="\${key}_SEVENTH_PARAGRAPH_BODY" 1526 image-key="\${key}_SEVENTH_PARAGRAPH_IMAGE"> 1527 </cg-template-paragraph-image> 1528 </div> 1529 </cg-seo-dropdown> 1530 </div> 1531</template> 1532`;f.default=s}),
1532"pages/more/unique-names/legacy/unique-names-legacy.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 1533 <div id="unique-names-legacy" class="main-content-padding position-relative" ref="uniqueNamesContainer"> 1534 <div class="container"> 1535 <div if.bind="!gameNotAvailable"> 1536 <div show.bind="pageLoading" class="title-substitute-skeleton" skeleton-loading="is-loading.bind:pageLoading;"></div> 1537 <page-content-area 1538 data-cy="unique-names-main-page-title" 1539 if.bind="(width > desktop && (!selectedGame || titleKeyContent.markup || viewingAsAdmin)) && !pageLoading" 1540 class="d-block mb-0 pb-0 mb-lg-3 pb-lg-1 text-extra-huge-plus font-bold page-title" 1541 key="UNIQUE_NAMES\${pageTitle}_PAGE_TITLE" 1542 fontWeightInherit="true" 1543 ></page-content-area> 1544 <h1 data-cy="unique-names-game-selected-title" if.bind="width > desktop && selectedGame.headerTitle && !titleKeyContent.markup && !viewingAsAdmin && !pageLoading" class="d-block mb-3 pb-1 text-extra-huge-plus font-bold" skeleton-loading="is-loading.bind:pageLoading;">\${selectedGame.headerTitle}</h1> 1545 <div class="main-content-block \${!selectedGame ? 'content-block-height' : ''}"> 1546 <div class="col back-button-style back-button-margin \${!selectedGame ? 'mb-lg-0' : '' }"> 1547 <div class="return text-start d-inline-flex align-items-center" click.delegate="handleGameDeselection(true)" skeleton-loading="is-loading.bind:pageLoading;"> 1548 <span class="material-icons back-button rounded-circle me-1"> 1549 chevron_left 1550 </span> 1551 \${'CG_BACK' | siteStrings} 1552 </div> 1553 </div> 1554 <div show.bind="pageLoading" class="title-substitute-skeleton-tablet" skeleton-loading="is-loading.bind:pageLoading;"></div> 1555 <page-content-area 1556 if.bind="(width < desktop && (!selectedGame || titleKeyContent.markup || viewingAsAdmin)) && !pageLoading" 1557 class="d-block mb-4 pb-3 text-extra-huge-plus font-bold" 1558 key="UNIQUE_NAMES\${pageTitle}_PAGE_TITLE" 1559 fontWeightInherit="true" 1560 skeleton-loading="is-loading.bind:pageLoading;" 1561 ></page-content-area> 1562 <h1 if.bind="(width < desktop && selectedGame.headerTitle && !titleKeyContent.markup && !viewingAsAdmin) && !pageLoading" class="d-block mb-4 pb-3 text-extra-huge-plus font-bold" skeleton-loading="is-loading.bind:pageLoading;">\${selectedGame.headerTitle}</h1> 1563 <div if.bind="!games.length" class="my-6"> 1564 <div class="d-flex justify-content-center"> 1565 <img src="/icons/chick-icons/chick_crying.svg" alt="Chick Icon" loading="lazy" class="chick-icons"> 1566 </div> 1567 <div class="text-center m-auto text-regular no-results w-35">There are no unique names to show here. Please let us know in the live chat that you are interested in game.</div> 1568 </div> 1569 <div if.bind="games.length && !selectedGame"> 1570 <div class="d-flex flex-column style-game justify-content-center align-items-center mb-lg-1 pb-lg-3 mb-2 pb-1'"> 1571 <div data-cy="unique-names-select-game" class="text-extra-large-static style-select font-bold" skeleton-loading="is-loading.bind:pageLoading;"> 1572 \${'CG_SELECT_GAME' | siteStrings} 1573 </div> 1574 <div class="my-2" if.bind="!pageLoading"> 1575 <cg-line width="90" alignment="center" color="blue"></cg-line> 1576 </div> 1577 </div> 1578 1579 <div class="position-relative d-flex justify-content-center mb-3 pb-1"> 1580 <cds-search 1581 data-cy="unique-names-search-bar" 1582 class="search-bar game-search-element" 1583 placeholder.bind="'CG_SEARCH' | siteStrings"
1584 value.two-way="gameSearch" 1585 change.trigger="handleGameSearch()" 1586 keyup.trigger="handleGameSearch()" 1587 clear.trigger="clearSearch()" 1588 skeleton-loading="is-loading.bind:pageLoading;" 1589 > 1590 </cds-text-field> 1591 </div> 1592 1593 <section show.bind="!gameSearch || !noResultGameSearch" id="game-scrollbar" ref="gameScroll" data-simplebar class="game-scrollbar"> 1594 <div data-cy="unique-names-games-area-container" class="game-area-container"> 1595 <div class="game-area"> 1596 <a data-cy="unique-names-game-box-\${game.slug[0]}" class="game-box-container" repeat.for="game of games" href="\${uniqueNamesPageRoute | languageRoute & async}/\${game.slug[0]}" if.bind="gameSearch ? game.show : true" skeleton-loading="is-loading.bind:pageLoading;"> 1597 <div class="game-icon-area rounded p-sm-3 cursor-pointer \${game.selected ? 'selected-option' : '' } position-relative"> 1598 <span class="check material-icons check-button rounded-circle me-2"> 1599 check 1600 </span> 1601 <cg-icon 1602 class="cg-icon-container" 1603 type="game" 1604 icon.bind="game.sellIcon" 1605 alt.bind="game.sellAltText" 1606 hex-to-filter="hex-code.bind:'#39E29D'" 1607 ></cg-icon> 1608 </div> 1609 <template if.bind="game.name.length > 22"> 1610 <p 1611 class="game-name-area text-truncate" 1612 click.delegate="helper.showPopup({content: gameTooltip})" 1613 id="game-name-\${game.id}" 1614 > 1615 \${game.name} 1616 </p> 1617 <cds-tooltip 1618 class="d-none d-lg-block" 1619 ref="gameTooltip" 1620 reference-id="game-name-\${game.id}" 1621 placement="top" 1622 y-offset.bind="-4" 1623 > 1624 \${game.name} 1625 </cds-tooltip> 1626 </template> 1627 <p else class="game-name-area text-truncate"> 1628 \${game.name} 1629 </p> 1630 </a> 1631 </div> 1632 </div> 1633 </section> 1634 1635 <div show.bind="gameSearch && noResultGameSearch" class="mt-6 pt-6"> 1636 <div class="d-flex justify-content-center mt-3 pb-3"> 1637 <img src="/icons/chick-icons/chick_crying.svg" alt="Chick Icon" loading="lazy"> 1638 </div> 1639 <div class="text-center m-auto text-regular no-results">\${'CG_NO_RESULTS_GALAXY' | siteStrings}</div> 1640 </div> 1641 </div> 1642 <div if.bind="games.length && selectedGame"> 1643 <div class="d-flex flex-column align-items-center"> 1644 <cg-icon 1645 class="game-selected-icon-container" 1646 type="game" 1647 icon.bind="selectedGame.sellIcon" 1648 alt.bind="selectedGame.sellAltText" 1649 skeleton-loading="is-loading.bind:pageLoading;height:70;width:70;" 1650 hex-to-filter="hex-code.bind:'#39E29D'" 1651 ></cg-icon> 1652 <div show.bind="pageLoading" class="title-substitute-skeleton" skeleton-loading="is-loading.bind:pageLoading;height:30px;
1652width:200px;"></div> 1653 <page-content-area 1654 if.bind="(pageSecondTitle.markup || titleKeyContent.markup || viewingAsAdmin) && !pageLoading" 1655 class="text-extra-large font-bold game-title-padding text-center" 1656 key.bind="gameSecondTitle" 1657 multiple-keys.bind="gameTitles" 1658 ></page-content-area> 1659 <h2 data-cy="unique-names-game-subtitle" 1660 if.bind="selectedGame.headerTitle && !pageSecondTitle.markup && !titleKeyContent.markup && !viewingAsAdmin && !pageLoading" 1661 class="text-extra-large font-bold game-title-padding text-center"> 1662 \${selectedGame.headerTitle} 1663 </h2> 1664 <cg-line if.bind="!pageLoading" class="cg-line--regular-plus" width="90" alignment="center" color="blue"></cg-line> 1665 <page-content-area 1666 if.bind="selectedGame || titleKeyContent.markup || viewingAsAdmin" 1667 class="text-break letter-spacing-small line-height-small-plus container-maximum-size my-3 py-1 mt-lg-4 pt-lg-3" 1668 key="UNIQUE_NAMES\${pageTitle}_PAGE_PARAGRAPH" 1669 skeleton-loading="is-loading.bind:pageLoading;" 1670 ></page-content-area> 1671 <cg-line 1672 if.bind="!pageLoading" 1673 class="cg-line--thin w-100 container-maximum-size" 1674 max-width="608" 1675 alignment="center" 1676 color="#4C6085"> 1677 </cg-line> 1678 </div> 1679 <form class="form-container mt-4 pt-3" submit.delegate="openLiveChat()" ref="uniqueNamesMainContainer"> 1680 <div if.bind="!dynamicFormFields.length" class="style-container d-flex justify-content-center"> 1681 <div class="col-12 col-sm-6 col-lg-3"> 1682 <label data-cy="unique-names-game-selector" class="pb-1 text-regular heading" skeleton-loading="is-loading.bind:pageLoading;"> 1683 \${'CG_GAME' | siteStrings} 1684 </label> 1685 <cg-game-selector 1686 manual-games.bind="games" 1687 handle-change-function-string="gameChanged" 1688 selected-game.two-way="selectedGame" 1689 page-loading.bind="pageLoading" 1690 ></cg-game-selector> 1691 </div> 1692 <div class="col-12 col-sm-6 col-lg-3 mt-4 mt-sm-0"> 1693 <label data-cy="unique-names-desired-name-title-input-v2" class="mb-1 text-regular heading" skeleton-loading="is-loading.bind:pageLoading;"> 1694 \${'CG_DESIRED_NAME' | siteStrings} 1695 </label> 1696 <div class="position-relative"> 1697 <cds-text-field 1698 data-cy="unique-names-desired-name-input-v2" 1699 ref="desiredNameTextArea" 1700 outlined 1701 id="desired-name" 1702 required.bind="true" 1703 value.two-way="desiredName" 1704 placeholder.bind="'CG_ENTER_DESIRED_NAME' | siteStrings" 1705 type="text" 1706 name="name" 1707 class="w-100 input-password \${desiredNameSuccess ? 'cg-input--success' : ''}" 1708 skeleton-loading="is-loading.bind:pageLoading;height:50px;width:100%;"> 1709 </cds-text-field> 1710 <img src="/icons/green_check.svg" class="circle-icon" alt="green check" if.bind="desiredNameSuccess" loading="lazy"> 1711 </div> 1712 </div> 1713 </div> 1714 <div else class="d-flex justify-content-center"> 1715 <div class="d-grid col-12 col-sm-12 col-lg-6 dynamic-filters"> 1716 <div class="content"> 1717 <label data-cy="unique-names-game-title-dropdown" class="mb-1 text-regular heading" skeleton-loading="is-loading.bind:pageLoading;"> 1718 \${'CG_GAME' | siteStrings} 1719 </label> 1720 <cg-game-selector manual-games.bind="games" 1721 handle-change-function-string="gameChanged" 1722 selected-game.two-way="selectedGame" 1723 page-loading.bind="pageLoading" 1724 ></cg-game-selector> 1725 </div> 1726 <div repeat.for="field of dynamicFormFields"> 1727 <label class="mb-1 text-regular heading" skeleton-loading="is-loading.bind:pageLoading;"> 1728 \${field.name} 1729 </label> 1730 <template if.bind="field.tooltip"> 1731 <cds-icon 1732 icon="contact_support" 1733 id="field-tooltip-\${field.id}" 1734 click.trigger="helper.showPopup({title: field.name, content: fieldTooltip})" 1735 aria-label="tooltip" 1736 class="tooltip-icon" 1737 switch-on-hover 1738 ></cds-icon> 1739 <cds-tooltip 1740 class="d-none d-lg-block" 1741 ref="fieldTooltip" 1742 reference-id="field-tooltip-\${field.id}" 1743 placement="top" 1744 y-offset.bind="-4" 1745 > 1746 \${field.tooltip} 1747 </cds-tooltip> 1748 </template> 1749 <cg-dynamic-field 1750 field.bind="field" 1751 fade-label.bind="field.type === 6" 1752 no-max-width="true" 1753 purple-scrollbar="true" 1754 change-function.bind="handleFieldChange" 1755 page-loading.bind="pageLoading" 1756 ></cg-dynamic-field> 1757 </div> 1758 </div> 1759 </div> 1760 <div if.bind="dynamicFormFields.length" class="style-container d-flex justify-content-center"> 1761 <div class="col-12 col-sm-6 col-lg-3 mt-4"> 1762 <label data-cy="unique-names-desired-name-title-input" class="mb-1 text-regular heading" skeleton-loading="is-loading.bind:pageLoading;"> 1763 \${'CG_DESIRED_NAME' | siteStrings} 1764 </label> 1765 <div class="position-relative"> 1766 <cds-text-field 1767 data-cy="unique-names-desired-name-input" 1768 ref="desiredNameTextArea" 1769 outlined 1770 id="desired-name" 1771 required.bind="true"
1772 value.two-way="desiredName" 1773 placeholder.bind="'CG_ENTER_DESIRED_NAME' | siteStrings" 1774 type="text" 1775 name="name" 1776 class="w-100 input-password \${desiredNameSuccess ? 'cg-input--success' : ''}" 1777 skeleton-loading="is-loading.bind:pageLoading;height:50px;width:100%;"> 1778 </cds-text-field> 1779 <img src="/icons/green_check.svg" class="circle-icon" alt="green check" if.bind="desiredNameSuccess" loading="lazy"> 1780 </div> 1781 </div> 1782 <div class="col-12 col-sm-6 col-lg-3 mt-4"> 1783 <label data-cy="unique-names-budget-title-input" class="mb-1 text-regular heading" skeleton-loading="is-loading.bind:pageLoading;"> 1784 \${'CG_BUDGET' | siteStrings} 1785 </label> 1786 <div class="quantity-field position-relative"> 1787 <cds-text-field 1788 data-cy="unique-names-budget-input" 1789 ref="budgetElement" 1790 outlined 1791 type="text" 1792 class="d-flex input-password \${budgetElementSuccess ? 'cg-input--success' : ''}" 1793 value.bind="quantity" 1794 placeholder.bind="'CG_ENTER_BUDGET' | siteStrings" 1795 required.bind="true" 1796 step="1" 1797 keyup.delegate="saveQuantity($event) & debounce:250" 1798 blur.delegate="blurNumberQuantity()" 1799 focusin.delegate="focusTextQuantity()" 1800 oninput="this.value = this.value.replace(/[^0-9]/g, '');" 1801 paste.delegate="helper.handlePasteNumberValidation($event, budgetElement)" 1802 tabindex="0" 1803 skeleton-loading="is-loading.bind:pageLoading;height:50px;width:100%;" 1804 ></cds-text-field> 1805 <cg-number-arrows 1806 class="budget-arrows position-absolute top-0 end-0" 1807 suffix="true" 1808 temp-quantity.two-way="tempQuantity" 1809 quantity.two-way="quantityInt" 1810 extra-buttons="true" 1811 minimum.bind="sliderMinimum" 1812 tabindex="-1" 1813 click.delegate="focusArrowNumber()" 1814 ></cg-number-arrows> 1815 <img src="/icons/green_check.svg" class="circle-icon quantity-green-check" alt="green check" show.bind="budgetElementSuccess" loading="lazy"> 1816 </div> 1817 </div> 1818 </div> 1819 <div class="\${!dynamicFormFields.length ? 'style-container' : ''} d-flex justify-content-center \${dynamicFormFields.length ? 'px-0' : ''}"> 1820 <div if.bind="!dynamicFormFields.length" class="col-12 col-sm-6 col-lg-3 mt-4"> 1821 <label data-cy="unique-names-budget-title-input-v2" class="mb-1 text-regular heading" skeleton-loading="is-loading.bind:pageLoading;"> 1822 \${'CG_BUDGET' | siteStrings} 1823 </label> 1824 <div class="quantity-field position-relative"> 1825 <cds-text-field 1826 data-cy="unique-names-budget-input-v2" 1827 ref="budgetElement" 1828 outlined 1829 type="text" 1830 class="d-flex input-password \${budgetElementSuccess ? 'cg-input--success' : ''}" 1831 value.bind="quantity" 1832 placeholder.bind="'CG_ENTER_BUDGET' | siteStrings" 1833 required.bind="true" 1834 step="1" 1835 keyup.delegate="saveQuantity($event) & debounce:250" 1836 blur.delegate="blurNumberQuantity()" 1837 focusin.delegate="focusTextQuantity()"
1838 oninput="this.value = this.value.replace(/[^0-9]/g, '');" 1839 paste.delegate="helper.handlePasteNumberValidation($event, budgetElement)" 1840 tabindex="0" 1841 skeleton-loading="is-loading.bind:pageLoading;height:50px;width:100%;" 1842 ></cds-text-field> 1843 <cg-number-arrows 1844 class="budget-arrows position-absolute top-0 end-0" 1845 suffix="true" 1846 temp-quantity.two-way="tempQuantity" 1847 quantity.two-way="quantityInt" 1848 extra-buttons="true" 1849 minimum.bind="sliderMinimum" 1850 tabindex="-1" 1851 click.delegate="focusArrowNumber()" 1852 ></cg-number-arrows> 1853 <img src="/icons/green_check.svg" class="circle-icon quantity-green-check" alt="green check" show.bind="budgetElementSuccess" loading="lazy"> 1854 </div> 1855 </div> 1856 <div class="col-12 col-sm-\${dynamicFormFields.length ? '12 col-lg-6' : '6 col-lg-3'} mt-4"> 1857 <label data-cy="unique-names-additional-information-title-input" class="mb-1 text-regular heading" skeleton-loading="is-loading.bind:pageLoading;"> 1858 \${'CG_ADDITIONAL_INFORMATION' | siteStrings} 1859 </label> 1860 <div class="position-relative"> 1861 <cds-text-field 1862 data-cy="unique-names-additional-information-input" 1863 ref="additionalInformationTextArea" 1864 textarea 1865 outlined 1866 rows="1" 1867 id="additional-information" 1868 required.bind="true" 1869 value.two-way="additionalInformation" 1870 class="w-100 input-password textarea-container \${additionalInformationSuccess ? 'cg-input--success' : ''}" 1871 skeleton-loading="is-loading.bind:pageLoading;height:50px;width:100%;"> 1872 </cds-text-field> 1873 <img src="/icons/green_check.svg" class="circle-icon show-green-checkmark-hover textarea-checkmark-additional-information" alt="green check" if.bind="additionalInformationSuccess" loading="lazy"> 1874 </div> 1875 </div> 1876 </div> 1877 <div class="live-button-container text-center"> 1878 <div id="live-chat-button" class="col-12 live-button"> 1879 <button 1880 data-cy="unique-names-request-quote-button" 1881 disabled.bind="!pageLoading && (disabledUniqueNamesButton || triggeredUniqueNames)" 1882 type="submit" 1883 mdc-button 1884 raised 1885 class="submit-button button-blue-filled mdc-button--outlined py-4 px-md-4 enter-bid-btn" 1886 click.delegate="handleSelectedFields()" 1887 skeleton-loading="is-loading.bind:pageLoading;width:100%" 1888 >
1889 <span class="material-icons fa-spin" if.bind="triggeredUniqueNames"> 1890 cached 1891 </span> 1892 <span if.bind="!triggeredUniqueNames">\${'CG_REQUEST_QUOTE' | siteStrings}</span> 1893 </button> 1894 </div> 1895 </div> 1896 </form> 1897 </div> 1898 </div> 1899 </div> 1900 <cg-try-again-box 1901 else 1902 main-fallback.bind="\`\${gameUnavailable.name} \${gameUnavailable.productCategories[0].name} is no longer available\`" 1903 game-subtitle="true" 1904 games.bind="gamesForNoAvailable" 1905 button-text.bind="'Explore more' | autoSiteString" 1906 icon="link_off" 1907 href.bind="'/'" 1908 margin-divider-gap="true" 1909 ></cg-try-again-box> 1910 <router-view class="unique-names-content" show.bind="selectedGame"></router-view> 1911 </div> 1912 </div> 1913</template> 1914`;f.default=s}),
1914"pages/more/unique-names/v2/unique-names-v2.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 1915 <div id="unique-names" class="main-content-padding position-relative" ref="uniqueNamesContainer"> 1916 <div class="container"> 1917 <div if.bind="!gameNotAvailable"> 1918 <div show.bind="pageLoading" class="title-substitute-skeleton" 1919 skeleton-loading="is-loading.bind:pageLoading;"></div> 1920 <template if.bind="!isResponsive && !pageLoading"> 1921 <page-content-area if.bind="!selectedGame || titleKeyContent.markup || viewingAsAdmin" 1922 class="d-block title" key="UNIQUE_NAMES\${pageTitle}_PAGE_TITLE" fontWeightInherit="true" 1923 data-cy="unique-names-main-page-title"></page-content-area> 1924 <h1 if.bind="selectedGame.headerTitle && !titleKeyContent.markup && !viewingAsAdmin" 1925 class="d-block title" data-cy="unique-names-game-selected-title"> 1926 \${selectedGame.headerTitle} 1927 </h1> 1928 </template> 1929 <div class="main-content-block"> 1930 <div show.bind="pageLoading" class="title-substitute-skeleton-tablet" 1931 skeleton-loading="is-loading.bind:pageLoading;width:100%"></div> 1932 <template if.bind="isResponsive && !pageLoading"> 1933 <page-content-area if.bind="!selectedGame || titleKeyContent.markup || viewingAsAdmin" 1934 class="d-block title" key="UNIQUE_NAMES\${pageTitle}_PAGE_TITLE" fontWeightInherit="true" 1935 skeleton-loading.bind="pageLoading"></page-content-area> 1936 <h1 if.bind="selectedGame.headerTitle && !titleKeyContent.markup && !viewingAsAdmin" 1937 class="d-block title" skeleton-loading="is-loading.bind:pageLoading;width:100%"> 1938 \${selectedGame.headerTitle} 1939 </h1> 1940 </template> 1941 <div if.bind="!fetchingGames && (!games.length && !pageLoading)" class="my-6"> 1942 <div class="d-flex justify-content-center"> 1943 <img src="/icons/chick-icons/chick_crying.svg" alt="Chick Icon" loading="lazy" 1944 class="chick-icons"> 1945 </div> 1946 <div class="text-center m-auto text-regular no-results w-35"> 1947 <page-content-area key.bind="'NO_UNIQUE_NAMES'"></page-content-area> 1948 </div> 1949 </div> 1950 1951 <div shown.bind="pageLoading" class="first-container__skeleton" 1952 skeleton-loading="is-loading.bind:pageLoading;height:300px;width:100%;force-div:true;"></div> 1953 <div show.bind="!pageLoading" class="first-container"> 1954 <div class="form-container d-flex justify-content-center" ref="uniqueNamesMainContainer"> 1955 <div class="\${getMaxWidthFormContainer} style-container d-flex"> 1956 <div class="field-col fields"> 1957 <cg-product-category-selector class="product-category-selector" 1958 skeleton-loading="is-loading.bind:pageLoading;width:100%;height:52px;force-div:true;" 1959 show-heading.bind="width < desktop"></cg-product-category-selector> 1960 </div> 1961 <div class="field-col fields"> 1962 <cds-game-selector value.bind="gameSelectorValue" 1963 category.bind="uniqueNamesCategory.id" manual-games.bind="games" 1964 gameselected.trigger="gameChanged($event.detail)" 1965 skeleton-loading="is-loading.bind:pageLoading;width:100%;height:52px;force-div:true;" 1966 page-loading.bind="pageLoading"></cds-game-selector> 1967 </div> 1968 <template if.bind="selectedGame"> 1969 <div class="field-col fields"> 1970 <div class="position-relative"> 1971 <cds-text-field 1972 label.bind="'CG_DESIRED_NAME' | siteStrings" 1973 data-cy="unique-names-desired-name-input-v2" 1974 ref="desiredNameTextArea" 1975 variant="filled" 1976 id="desired-name" 1977 required.bind="true" 1978 value.bind="desiredName" 1979 placeholder.bind="'CG_ENTER_DESIRED_NAME' | siteStrings" 1980 type="text" 1981 name="name" 1982 class="w-100 input-password" 1983 state.bind="desiredNameState" 1984 skeleton-loading="is-loading.bind:pageLoading;width:100%;height:52px;force-div:true;" 1985 input.trigger="desiredName = $event.target.value" 1986 focus.trigger="onDesiredNameFocus()" 1987 blur.trigger="onDesiredNameBlur()"> 1988 </cds-text-field> 1989 </div> 1990 </div> 1991 <div class="field-col fields"> 1992 <cds-number-field 1993 data-cy="unique-names-budget-input" 1994 value.bind="quantity" 1995 label.bind="'CG_BUDGET' | siteStrings" 1996 prefix-text.bind="currencyPrefix" 1997 skeleton-loading="is-loading.bind:pageLoading;width:100%;height:52px;force-div:true;" 1998 min.bind="minBudget" 1999 step.bind="1" 2000 required.bind="true" 2001 state.bind="budgetState" 2002 class="w-100 input-password" 2003 input.trigger="quantity = $event.target.value" 2004 focus.trigger="onBudgetFocus()" 2005 blur.trigger="onBudgetBlur()"> 2006 </cds-number-field> 2007 </div> 2008 <div class="field-col fields"> 2009 <cds-text-field 2010 label.bind="'CG_ADDITIONAL_INFORMATION' | siteStrings" 2011 data-cy="unique-names-additional-information-input" 2012 ref="additionalInformationTextArea" 2013 variant="filled" 2014 rows="1" 2015 id="additional-information" 2016 required.bind="true" 2017 value.bind="additionalInformation" 2018 class="w-100 input-password textarea-container" 2019 state.bind="additionalInformationState" 2020 skeleton-loading="is-loading.bind:pageLoading;width:100%;height:52px;force-div:true;" 2021 input.trigger="additionalInformation = $event.target.value" 2022 focus.trigger="onAdditionalInformationFocus()" 2023 blur.trigger="onAdditionalInformationBlur()"> 2024 </cds-text-field> 2025 </div> 2026 </template> 2027 <template if.bind="dynamicFormFields.length && selectedGame"> 2028 <div repeat.for="field of dynamicFormFields" class="field-col fields"> 2029 <div class="mt-auto position-relative"> 2030 <cg-dynamic-field-v2 2031 label.bind="field.name | languageKeyFormatter | siteStrings:field.name" 2032 field.bind="field" fade-label.bind="field.type === fieldType.Select" 2033 no-max-width="true" purple-scrollbar="true" 2034 change-function.bind="handleFieldChange" 2035 page-loading.bind="pageLoading"></cg-dynamic-field-v2> 2036 </div> 2037 </div> 2038 </template> 2039 </div> 2040 <div show.bind="!pageLoading" 2041 class="live-button-container text-center floating-bottom-bar-service \${selectedGame ? 'live-button-margin__selected-game' : 'live-button-margin__no-selected-game'} "> 2042 <div id="live-chat-button" class="col-12 live-button"> 2043 <cds-button 2044 skeleton-loading="is-loading.bind:pageLoading;width:100%;height:52px;force-div:true;" 2045 disabled.bind="!pageLoading && disabledUniqueNamesButton" 2046 click.trigger="handleSelectedFields($event)" 2047 title="pageLoading: \${pageLoading}, disabledUniqueNamesButton: \${disabledUniqueNamesButton}, triggeredUniqueNames: \${triggeredUniqueNames}"> 2048 <cds-circular-progress if.bind="triggeredUniqueNames"></cds-circular-progress>
2049 <span else>\${'CG_REQUEST_QUOTE' | siteStrings}</span> 2050 </cds-button> 2051 </div> 2052 </div> 2053 </div> 2054 </div> 2055 </div> 2056 <div class="seo-content-section"> 2057 <cg-seo-content 2058 main-suffix.bind="seoKey" 2059 class="d-flex flex-row w-100" 2060 current-page-loading.bind="pageLoading" 2061 skeleton-loading="is-loading.bind:pageLoading;width:100%;height:52px;"> 2062 </cg-seo-content> 2063 </div> 2064 </div> 2065 <cg-try-again-box else 2066 main-fallback.bind="\`\${gameUnavailable.name} \${gameUnavailable.productCategories[0].name} is no longer available\`" 2067 game-subtitle="true" games.bind="gamesForNoAvailable" button-text.bind="'Explore more' | autoSiteString" 2068 icon="link_off" href.bind="'/'" margin-divider-gap="true"></cg-try-again-box> 2069 </div> 2070 </div> 2071</template> 2072`;f.default=s}),
2072"pages/privacy-policy/privacy-policy.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 2073 <text-page-template content-keys.bind="contentKeys" 2074 page-name="Privacy Policy" 2075 page-route="privacy-policy" 2076 ></text-page-template> 2077</template> 2078`;f.default=s}),
2078"pages/product/product.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 2079 <div if.bind="isNewBuyPagesEnabled" id="new-product" class="main-content-padding kaxsdc"> 2080 <div class="product-wrapper"> 2081 <div class="container-style"> 2082 <div class="product-detail-container blue-background"> 2083 <div class="product-detail-header" skeleton-loading="is-loading.bind:contentLoading;height:24px;"> 2084 <cds-icon icon="shopping_cart"></cds-icon> 2085 <span class="header-text"> 2086 \${'CG_PURCHASE' | siteStrings } 2087 </span> 2088 </div> 2089 <div 2090 if.bind="!product" 2091 skeleton-loading="is-loading.bind:contentLoading;height:108px;" 2092 ></div> 2093 <cg-cart-product 2094 if.bind="product" 2095 content-loading.bind="contentLoading" 2096 product.bind="product" 2097 on-cart.bind="false" 2098 view-model.ref="productItem" 2099 ></cg-cart-product> 2100 </div> 2101 2102 <div if.bind="width < widescreen" class="separator"> 2103 <div if.bind="!contentLoading" class="separator-line"></div> 2104 </div> 2105 2106 <div class="summary-area-container"> 2107 <cg-product-summary-card 2108 show.bind="width < widescreen" 2109 product.bind="product" 2110 selected-game.bind="selectedGame" 2111 content-loading.bind="contentLoading" 2112 add-to-cart-handler.bind="addToCart.bind($this)"> 2113 </cg-product-summary-card> 2114 </div> 2115 2116 <div if.bind="width <= desktop" class="separator"> 2117 <div if.bind="!contentLoading" class="separator-line"></div> 2118 </div> 2119 2120 <div if.bind="(availableProducts.length > 1 && width <= desktop) || (width <= desktop && contentLoading)" class="suppliers-table-container"> 2121 <cg-order-section view-model.ref="suppliersSection" title.bind="width <= desktop ? 'Other Sellers' : 'More Offers' | autoSiteString" type="Suppliers" 2122 create-button.bind="false" create-button.bind="false" columns.bind="columns" search.two-way="query" 2123 sort.bind="true" hide-arrow="true" is-prefetch.bind="true" page-loading.bind="contentLoading" 2124 sort-by-options.bind="sortByOptions" sort-request.bind="sortRequest" 2125 handler-set-active-delivery-method.bind="setActiveDeliveryMethod.bind($this)" 2126 prefetch-orders-handler.bind="getOffers.bind($this)" 2127 prefetch-count-handler.bind="getOffersCount.bind($this)" 2128 search-change-handler.bind="handleQueryChange.bind($this)" 2129 row-callback.bind="selectSuppliersOffer.bind($this)" custom-filter.bind="deliveryMethodsFilter" 2130 category-id.bind="navCategory.id" game-id.bind="product.gameId"> 2131 </cg-order-section> 2132 </div> 2133 </div> 2134 2135 <cg-product-summary-card 2136 show.bind="width >= widescreen" 2137 product.bind="product" 2138 selected-game.bind="selectedGame" 2139 content-loading.bind="contentLoading" 2140 add-to-cart-handler.bind="addToCart.bind($this)"> 2141 </cg-product-summary-card> 2142 </div> 2143 <div if.bind="(availableProducts.length > 1 && width > desktop) || contentLoading" class="suppliers-table-container"> 2144 <cg-order-section view-model.ref="suppliersSection" title.bind="'More Offers' | autoSiteString" type="Suppliers" 2145 create-button.bind="false" create-button.bind="false" columns.bind="columns" search.two-way="query" 2146 sort.bind="true" hide-arrow="true" is-prefetch.bind="true" page-loading.bind="contentLoading" 2147 sort-by-options.bind="sortByOptions" sort-request.bind="sortRequest" 2148 handler-set-active-delivery-method.bind="setActiveDeliveryMethod.bind($this)" 2149 prefetch-orders-handler.bind="getOffers.bind($this)" 2150 prefetch-count-handler.bind="getOffersCount.bind($this)"
2151 search-change-handler.bind="handleQueryChange.bind($this)" 2152 row-callback.bind="selectSuppliersOffer.bind($this)" custom-filter.bind="deliveryMethodsFilter" 2153 category-id.bind="navCategory.id" game-id.bind="product.gameId"> 2154 </cg-order-section> 2155 </div> 2156 </div> 2157 <div else id="product" class="main-content-padding"> 2158 <div class="container \${['Skins', 'Accounts'].includes(product.productCategory.name) ? \`container-\${overviewTitle.toLowerCase()}\` : ''}"> 2159 <div class="d-flex flex-column justify-content-center align-items-center product-main-container"> 2160 <div class="me-auto pb-2" skeleton-loading="is-loading.bind:contentLoading;force-div:true;height:38px;width:863px;"> 2161 <div if.bind="product.productCategory.name === 'Accounts'" id="title-tooltip-container" ref="titleTooltipContainer" click.delegate="helper.showPopup({content: productInfoTooltip})" class="position-relative" mouseover.trigger="isEllipsisActive()" mouseleave.trigger="hideTooltip()"> 2162 <div if.bind="helper.isWrappedWithHtmlTags(product.title)" class="text-truncate product-info-truncate" innerhtml.bind="productInfo"></div> 2163 <h1 else class="product-info-title text-truncate product-info-truncate" innerhtml.bind="productInfo"></h1> 2164 <cds-tooltip 2165 if.bind="showAccountTitleTooltip" 2166 show.bind="width >= desktop" 2167 reference-id="title-tooltip-container" 2168 placement="top" 2169 y-offset.bind="-4" 2170 ref="productInfoTooltip" 2171 > 2172 \${productInfo} 2173 </cds-tooltip> 2174 </div> 2175 <div else> 2176 <div if.bind="helper.isWrappedWithHtmlTags(product.title)" class="product-info-title" innerhtml.bind="productInfo"></div> 2177 <h1 else class="product-info-title" innerhtml.bind="productInfo"></h1> 2178 </div> 2179 </div> 2180 <div class="product-area main-content-block regular-border p-4 h-100 w-100 mt-1 position-relative"> 2181 <cds-back-button 2182 class="back-button" 2183 click.trigger="redirectToPage()" 2184 skeleton-loading="is-loading.bind:contentLoading;force-div:true;height:30px;width:60px;" 2185 ></cds-back-button> 2186 <div class="main-container px-0 pt-3 pb-lg-3 mt-3"> 2187 <div class="d-flex flex-column justify-content-center align-items-center mb-lg-3 pb-lg-1 pb-2"> 2188 <div class="text-extra-large" skeleton-loading="is-loading.bind:contentLoading;"> 2189 \${overviewTitle} \${'CG_OVERVIEW' | siteStrings:'Overview'} 2190 </div> 2191 <cg-line width="50" alignment="center" color="blue" skeleton-loading="is-loading.bind:contentLoading;"></cg-line> 2192 </div> 2193 <div class="overview-grid"> 2194 <div class="carousel-ingrid"> 2195 <div ref="carouselElement" id="carousel" class="carousel carousel-fade d-flex flex-column justify-space-between align-items-center \${['Skins', 'Accounts', 'Items'].includes(product.productCategory.name) ? \`carousel-\${overviewTitle.toLowerCase()}\` : ''}" data-interval="false" skeleton-loading="is-loading.bind:contentLoading;width:300px;height:300px;"> 2196 <div class="area-img d-flex justify-content-center my-auto position-relative \${product.productCategory.name !== 'Skins' ? \`align-items-center\` : ''}"> 2197 <div class="carousel-inner"> 2198 <a 2199 if.bind="product.imagePath" 2200 class="carousel-item active cursor-line cursor-pointer \${product.productCategory.name === 'Skins' ? \`mt-3\` : ''}" 2201 click.delegate="handleDialogOpen()" 2202 target="_blank" 2203 > 2204 <video if.bind="helper.isVideo(product.mimeType)" class="d-block img-fluid imgs" controls autoplay playsinline muted> 2205 <source src="\${baseAwsEndpoint}\${product.imagePath}" type="video/mp4"> 2206 \${'CG_BROWSER_NOT_SUPPORT_VIDEO' | siteStrings} 2207 </video> 2208 <img 2209 else 2210 src.bind="getImage()" 2211 class="d-block img-fluid imgs" 2212 alt="\${product.name}" 2213 loading="lazy" 2214 error.trigger="helper.onImageError($event, 'img-error-fallback')" 2215 > 2216 </a> 2217 <cds-icon else 2218 icon="image_not_supported" 2219 label="No image available" 2220 class="no-image-container"> 2221 </cds-icon> 2222 <a 2223 class="carousel-item cursor-line cursor-pointer" 2224 click.delegate="handleDialogOpen()" 2225 target="_blank" 2226 repeat.for="item of productAdditionalImages" 2227 if.bind="productAdditionalImages.length > 0 && product.imagePath" 2228 > 2229 <video if.bind="helper.isVideo(item.mimeType)" class="img-fluid imgs" controls autoplay playsinline muted> 2230 <source src="\${baseAwsEndpoint}\${item.imagePath}" type="video/mp4"> 2231 \${'CG_BROWSER_NOT_SUPPORT_VIDEO' | siteStrings} 2232 </video> 2233 <img 2234 else 2235 src="\${baseAwsEndpoint}\${item.imagePath}" 2236 class="d-block img-fluid imgs" 2237 alt="\${product.name}" 2238 loading="lazy" 2239 > 2240 </a> 2241 </div> 2242 </div> 2243 <div if.bind="product.productCategory.name === 'Skins'" class="stickers-container position-absolute" skeleton-loading="is-loading.bind:contentLoading;"> 2244 <div class="d-flex flex-rows"> 2245 <figure class="cursor-pointer" click.delegate="handleDialogOpen()" target="_blank" repeat.for="image of productAdditionalImages" if.bind="$index <= (product.productCategory.name === 'Skins' && 3)"> 2246 <cg-thumbnail 2247 if.bind="helper.isVideo(image.mimeType)" 2248 validation.bind="helper.isVideo(image.mimeType)" 2249 ></cg-thumbnail> 2250 <img 2251 else 2252 class="product-icon product-icon-extra img-fluid mx-2" 2253 src="\${baseAwsEndpoint}\${image.imagePath}" 2254 loading="lazy" 2255 alt="\${product.game.shortName} Product Additional image" 2256 > 2257 </figure> 2258 </div> 2259 </div> 2260 <ol ref="carouselIndicatorsElement"
2260class="carousel-indicators" if.bind="productAdditionalImages.length > 0 && product.imagePath"> 2261 <li data-bs-target="#carousel" data-bs-slide-to="0" class="active"></li> 2262 <li data-bs-target="#carousel" data-bs-slide-to="\${productAdditionalImages.indexOf(item) + 1}" repeat.for="item of productAdditionalImages"></li> 2263 </ol> 2264 </div> 2265 </div> 2266 <div class="details d-flex flex-column justify-content-left align-items-left pb-lg-2"> 2267 <div if.bind="product.internalId || contentLoading" class="text-large-plus font-medium" skeleton-loading="is-loading.bind:contentLoading;"> 2268 \${'CG_ID' | siteStrings:'ID'}: 2269 <span class="internal-id"> 2270 \${product.internalId} 2271 </span> 2272 </div> 2273 <div if.bind="!contentLoading && product.status !== 0" class="text-large-plus font-medium" data-cy="unavailable"> 2274 \${'CG_PRODUCT_UNAVAILABLE' | siteStrings:'This product is currently unavailable.'} 2275 </div> 2276 <div if.bind="contentLoading || product.status === 0" class="text-large-plus font-medium" skeleton-loading="is-loading.bind:contentLoading;">\${'CG_PRICE' | siteStrings:'Price'}: 2277 <span if.bind="product.salePrice > 0" class="old-price text-large font-medium me-1 color-green"> 2278 \${product.price | currencyFormat:'dynamic' & async} /\${'CG_UNIT' | siteStrings:'Unit'} 2279 </span> 2280 <span class="price-text pb-2 pb-md-4 color-green"> 2281 \${schema.price | currencyFormat:'dynamic' & async} /\${'CG_UNIT' | siteStrings:'Unit'} 2282 </span> 2283 </div> 2284 <div if.bind="contentLoading || product.status === 0" class="d-flex flex-row align-items-center text-large-plus font-medium quantity-field" skeleton-loading="is-loading.bind:contentLoading;"> 2285 \${'CG_QUANTITY' | siteStrings:'Quantity'}: 2286 <cg-quantity-input 2287 show.bind="quantityEdit" 2288 class="mx-2" 2289 product.two-way="product" 2290 value.two-way="product.quantity" 2291 blur.delegate="quantityEdit = !quantityEdit" 2292 ></cg-quantity-input> 2293 <span show.bind="!quantityEdit" class="mx-2 price-text color-green"> 2294 \${product.quantity} 2295 </span> 2296 <div class="edit-icon-wrapper" click.delegate="toggleQuantityEdit($event)"> 2297 <cds-icon 2298 icon="edit" 2299 label="Edit quantity" 2300 class="align-self-center text-medium font-bold cursor-pointer edit" 2301 ></cds-icon> 2302 </div> 2303 </div> 2304 <div if.bind="contentLoading || product.status === 0" class="d-flex flex-row align-items-center text-large-plus font-medium quantity-field" skeleton-loading="is-loading.bind:contentLoading;width:227px;"> 2305 \${'CG_ETA' | siteStrings:'ETA'}: 2306 <span class="mx-2 price-text color-green"> 2307 \${ETA | languageKeyFormatter | siteStrings:ETA} 2308 </span> 2309 </div> 2310 <template if.bind="productDescription.length || contentLoading"> 2311 <div class="text-large-plus font-medium \${product.productCategory.name === 'Skins' ? 'description-title-skins' : ''}" skeleton-loading="is-loading.bind:contentLoading;width:227px;"> 2312 \${product.productCategory.name.endsWith('s') ? product.productCategory.name.slice(0, -1) : product.productCategory.name | autoSiteString} \${ 'Information' | autoSiteString } 2313 </div> 2314 <div class="dividein2" skeleton-loading="is-loading.bind:contentLoading;force-div:true;width:100%;height:124px;"> 2315 <div repeat.for="description of productDescription"> 2316 <cds-text-field 2317 if.bind="description.active" 2318 label.bind="description.label"
2319 value.two-way="description.value" 2320 variant.bind="'filled'" 2321 disabled 2322 ></cds-text-field> 2323 </div> 2324 </div> 2325 </template> 2326 <cg-float-bar id="cg-float-bar" class="w-100 pt-2 mt-1 mx-auto mx-lg-0" if.bind="isFloat" ranges.bind="handleFloatBar()" measurements="true"></cg-float-bar> 2327 </div> 2328 </div> 2329 <div class="blue-border-bottom mt-lg-2 mt-3 2330 \${productAdditionalImages.length > 0 ? 'pt-lg-1' : 'pt-lg-4'} 2331 \${(product.productCategory.name === 'Skins' && isFloat) ? 'mt-sm-0 pt-sm-0' : ''}" 2332 if.bind="hasProductDescription || contentLoading"> 2333 </div> 2334 <div if.bind="hasProductDescription || contentLoading" class="\${contentLoading ? '' : 'row'} mt-3 pt-1 mt-lg-3 pt-lg-1"> 2335 <div class="col-12" skeleton-loading="is-loading.bind:contentLoading;"> 2336 <div class="d-flex align-items-center description-title text-large mb-3 pb-lg-2 pb-1"> 2337 <img class="py-2 me-1" src="/icons/circle-info-solid.svg" alt="circle info" loading="lazy"> 2338 <span class="ms-1">\${'CG_DESCRIPTION' | siteStrings}</span> 2339 </div> 2340 <p class="product-description text-gray line-height-medium mb-0" innerhtml.bind="product.description"></p> 2341 </div> 2342 </div> 2343 <div class="blue-border-bottom mt-3 pt-1" if.bind="product.productCategory.name === 'Skins' && additionalInformation.length"></div> 2344 <div if.bind="additionalInformation.length" class="\${contentLoading ? '' : 'row'} mt-3 pt-1 mt-lg-3 pt-lg-1"> 2345 <div class="col-12" skeleton-loading="is-loading.bind:contentLoading;"> 2346 <div class="d-flex align-items-center description-title text-large mb-3 pb-lg-2 pb-1"> 2347 <img class="py-2 me-1" src="/icons/circle-info-solid.svg" alt="circle info" loading="lazy"> 2348 <span class="ms-1">\${'CG_ADDITIONAL_INFORMATION' | siteStrings}</span> 2349 </div> 2350 <div class="additional-information text-gray line-height-medium"> 2351 <!-- Mobile Section --> 2352 <div class="row d-sm-none"> 2353 <p class="col-12 \${$index % 2 === 0 ? 'mt-sm-0 pt-sm-0' + ($index > 0 ? ' mt-3 pt-1' : ' mt-0 pt-0') : ''}" 2354 repeat.for="info of additionalInformation"> 2355 \${info.label}: \${info.value} 2356 </p> 2357 </div> 2358 <div class="values-information p-0 row d-sm-none" repeat.for="list of listOfValue"> 2359 <span class="text-white line-height-tiny mt-3 pt-1">\${list.label}</span> 2360 <div class="row"> 2361 <p class="col-12 \${$index % 2 === 0 ? 'mt-sm-0 pt-sm-0 mt-3 pt-1' : ''}" 2362 repeat.for="info of list.values"> 2363 \${info.label}: \${info.value} 2364 </p> 2365 </div> 2366 </div> 2367 <!-- Tablet and Desktop Section --> 2368 <div class="row row-cols-2 d-none d-sm-flex"> 2369 <div class="col"> 2370 <div class="d-flex flex-column"> 2371 <p class="text-start" repeat.for="info of additionalInformation" if.bind="$index % 2 === 0"> 2372 \${info.label}: \${info.value} 2373 </p>
2374 <span repeat.for="list of listOfValue" class="text-white line-height-tiny my-3 py-1">\${list.label}</span> 2375 <p class="text-start" 2376 repeat.for="info of listOfValue[0].values" 2377 if.bind="$index % 2 === 0"> 2378 \${info.label}: \${info.value} 2379 </p> 2380 </div> 2381 </div> 2382 <div class="col"> 2383 <div class="d-flex flex-column align-items-end"> 2384 <div> 2385 <p class="text-start" 2386 repeat.for="info of additionalInformation" 2387 if.bind="$index % 2 !== 0"> 2388 \${info.label}: \${info.value} 2389 </p> 2390 <p if.bind="additionalInformation.length % 2 !== 0 || additionalInformation.length < 2" class="py-3"></p> 2391 <div repeat.for="list of listOfValue" class="text-white line-height-tiny my-3 py-1"><div class="py-2"></div></div> 2392 <p class="text-start" 2393 repeat.for="info of listOfValue[0].values" 2394 if.bind="$index % 2 !== 0"> 2395 \${info.label}: \${info.value} 2396 </p> 2397 </div> 2398 </div> 2399 </div> 2400 </div> 2401 </div> 2402 </div> 2403 </div> 2404 <div class="blue-border-bottom blue-border-container" if.bind="(product.productCategory.name === 'Accounts' && insurances.length) || contentLoading"></div> 2405 <div 2406 class="col-12 col-lg-12 pb-4 pb-lg-3" 2407 if.bind="(product.productCategory.name === 'Accounts' && insurances.length) || contentLoading" 2408 skeleton-loading="is-loading.bind:contentLoading;height:221px;" 2409 > 2410 <div class="d-flex align-items-center insurance-title text-large mb-3"> 2411 <img class="me-1" src="/icons/shield-quarter.svg" alt="shield quarter" loading="lazy"> 2412 <span class="ms-1">\${'CG_INSURANCE_OPTIONS' | siteStrings}</span> 2413 </div> 2414 <p class="font-large span-insurance mb-0">\${'CG_INSURANCE_MESSAGE_1' | siteStrings}</p> 2415 <p class="span-insurance mb-0">\${'CG_INSURANCE_MESSAGE_2' | siteStrings}<a href="\${termsOfServicePageRoute | languageRoute & async}?AITS" target="_blank" class="ms-1 text-green">\${'CG_INSURANCE_POLICY' | siteStrings}</a> \${'CG_AND' | siteStrings} <a href="\${termsOfServicePageRoute | languageRoute & async}" target="_blank" class="ms-1 text-green">\${'CG_TERMS_OF_SERVICE' | siteStrings}</a>.</p> 2416 <div class="pt-4 insurace-selector" if.bind="product.productCategory.name === 'Accounts'" element.ref="detailsSelectors"> 2417 <cg-autocomplete 2418 items.bind="insuranceOptions" 2419 label.bind="'CG_INSURANCE_OPTIONS' | siteStrings" 2420 positioning="fixed" 2421 itemselected.delegate="handleInsuranceChange($event)" 2422 data-cy="autocomplete" 2423 leading-icon="beenhere" 2424 leading-icon-color="#FCFCFC" 2425 trailing-icon="arrow_drop_down" 2426 > 2427 </cg-autocomplete> 2428 </div> 2429 </div> 2430 <div class="button-area d-flex flex-wrap pt-1 mt-3 pt-lg-3 mt-lg-4"> 2431 <a href.bind="backRoute | languageRoute & async" skeleton-loading="is-loading.bind:contentLoading;"> 2432 <cds-button 2433 variant="filled-tonal" 2434 class="\${!product.productCategory.name === 'Skins' ? 'p-1 p-md-2 text-gray' : ''}" 2435 > 2436 \${'CG_KEEP_SHOPPING' | siteStrings} 2437 </cds-button> 2438 </a> 2439 2440 <div if.bind="disablePurchase" skeleton-loading="is-loading.bind:contentLoading;"> 2441 <cds-button 2442 id="purchase-tooltip-trigger" 2443 variant="filled" 2444 disabled 2445 click.trigger="helper.showPopup({content: purchaseTooltip})" 2446 >
2447 <span>\${'CG_SELECT' | siteStrings}</span> 2448 </cds-button> 2449 <cds-tooltip 2450 show.bind="width >= desktop" 2451 reference-id="purchase-tooltip-trigger" 2452 placement="top" 2453 y-offset.bind="-4" 2454 ref="purchaseTooltip"> 2455 \${'CG_PURCHASE_DISABLED_TOOLTIP' | siteStrings : 'We are not currently selling this product. Please let us know in the live chat that you are interested in this product'} 2456 </cds-tooltip> 2457 </div> 2458 2459 <div if.bind="contentLoading || (!disablePurchase && product.status === 0)" skeleton-loading="is-loading.bind:contentLoading;"> 2460 <cds-button 2461 variant="filled" 2462 click.trigger="addToCart()" 2463 > 2464 <span>\${'CG_CHECKOUT' | siteStrings}</span> 2465 </cds-button> 2466 </div> 2467 </div> 2468 </div> 2469 </div> 2470 </div> 2471 </div> 2472 <div if.bind="product" class="col-12 col-sm ms-sm-3 text-center text-sm-end"> 2473 <cg-image-carousel 2474 view-model.ref="dialogModule" 2475 product.bind="product" 2476 opened.bind="opened" 2477 ></cg-image-carousel> 2478 </div> 2479 </div> 2480 2481</template> 2482`;f.default=s}),
2482"pages/rate-limit/rate-limit.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 2483 <cg-try-again-box 2484 id="rate-limit" 2485 use-keys.bind="true" 2486 main="RATE_LIMITED_TITLE" 2487 main-fallback.bind="'CG_RATE_LIMIT_FALLBACK_MAIN' | siteStrings: 'You\u2019re being rate limited'" 2488 subtitle-fallback.bind="'CG_RATE_LIMIT_FALLBACK_SUBTITLE' | siteStrings: subtitleFallback" 2489 subtitle="RATE_LIMITED_SUBTITLE" 2490 page="Rate Limit" 2491 button-text.bind="'CG_TRY_AGAIN' | siteStrings: 'Try again'" 2492 icon="error_outline" 2493 href.bind="redirectTo" 2494 site-status.bind="'https://status.chicksgold.com/'" 2495 ></cg-try-again-box> 2496</template> 2497`;f.default=s}),
2497"pages/seller-fee/seller-fee.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 2498 <text-page-template content-keys.bind="contentKeys" 2499 page-name="Seller Fee" 2500 page-route="seller-fee" 2501 ></text-page-template> 2502</template> 2503`;f.default=s}),
2503"pages/sellv2/sell.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 2504 <require from="./shared-components/sell-seo-content/sell-seo-content"></require> 2505 <div id="sellv2" class="position-relative sell-content-padding" ref="sellContainer"> 2506 <div> 2507 <router-view></router-view> 2508 </div> 2509 <div if.bind="width >= desktop" show.bind="showSkeleton" class="sell-seo-dropdown-skeleton-desktop" skeleton-loading="is-loading.bind:showSkeleton;width:81.25%;height:52px;margin-inline:auto;"></div> 2510 <div if.bind="width < desktop && width >= phone" show.bind="showSkeleton" class="sell-seo-dropdown-skeleton-tablet" skeleton-loading="is-loading.bind:showSkeleton;width:calc(100% - 40px);height:52px;margin-inline:auto;"></div> 2511 <div if.bind="width < phone" show.bind="showSkeleton" class="sell-seo-dropdown-skeleton-mobile" skeleton-loading="is-loading.bind:showSkeleton;width:calc(100% - 40px);height:52px;margin-inline:auto;"></div> 2512 <div id="sell-seo-dropdown-container" show.bind="!showSkeleton"> 2513 <sell-seo-content></sell-seo-content> 2514 </div> 2515 </div> 2516</template> 2517`;f.default=s}),
2517"pages/sellv2/shared-components/sell-seo-content/sell-seo-content.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 2518 <require from="../seo-card/seo-card"></require> 2519 <require from="../seo-information-card/seo-information-card"></require> 2520 <section class="sell-seo-content-wrapper" ref="templateSell"> 2521 <cg-seo-dropdown 2522 is-loading.bind="pageLoading" 2523 handle-open.call="handleOpenDropdown($event)" 2524 render-skeleton.bind="renderSkeleton" 2525 > 2526 <section> 2527 <cg-template-paragraph 2528 class="d-block \${templateContentSeparation}" 2529 title-key="\${mainPrefix + '_WHY_CHOOSE_US_TITLE'}" 2530 paragraph-key="\${mainPrefix + '_WHY_CHOOSE_US_PARAGRAPH'}" 2531 no-line="true" 2532 prevent-font-size-inherit="true"> 2533 </cg-template-paragraph> 2534 <div id="seoQuadCards" class="\${templateContentSeparation}"> 2535 <seo-card 2536 repeat.for="item of seoQuadCards" 2537 title.bind="item.title" 2538 text.bind="item.description" 2539 icon-path.bind="item.icon" 2540 viewing-as-admin.bind="viewingAsAdmin" 2541 prevent-font-size-inherit="true" 2542 ></seo-card> 2543 </div> 2544 <cg-template-paragraph 2545 class="d-block \${templateContentSeparation}" 2546 title-key="\${mainPrefix + '_FIRST_PARAGRAPH'}" 2547 paragraph-key="\${mainPrefix + '_FIRST_PARAGRAPH_BODY'}" 2548 no-line="true" 2549 prevent-font-size-inherit="true"> 2550 </cg-template-paragraph> 2551 <div class="\${templateContentSeparation} \${seoTriInformationAdminView}" ref="seoTriInformationCards" id="seoTriInformationCards"> 2552 <seo-information-card 2553 icon-path.bind="info.icon" 2554 title.bind="info.title" 2555 text.bind="info.description" 2556 repeat.for="info of informationCards" 2557 viewing-as-admin.bind="viewingAsAdmin" 2558 prevent-font-size-inherit="true" 2559 ></seo-information-card> 2560 </div> 2561 <cg-game-banner 2562 background-path="\${mainPrefix + '_FIRST_BANNER_IMAGE'}" 2563 ref="firstBanner" 2564 class="d-block seo-template-border-bottom-line \${templateContentSeparation}"> 2565 </cg-game-banner> 2566 <cg-template-paragraph-image 2567 inverted="true" 2568 title-key="\${mainPrefix + '_SECOND_PARAGRAPH'}" 2569 paragraph-key="\${mainPrefix + '_SECOND_PARAGRAPH_BODY'}" 2570 image-key="\${mainPrefix + '_SECOND_PARAGRAPH_IMAGE'}" 2571 no-line="true" 2572 prevent-font-size-inherit="true" 2573 class="d-block \${templateContentSeparation} seo-template-border-bottom-line"> 2574 </cg-template-paragraph-image> 2575 <cg-template-paragraph-image 2576 title-key="\${mainPrefix + '_THIRD_PARAGRAPH'}" 2577 paragraph-key="\${mainPrefix + '_THIRD_PARAGRAPH_BODY'}" 2578 image-key="\${mainPrefix + '_THIRD_PARAGRAPH_IMAGE'}" 2579 no-line="true" 2580 prevent-font-size-inherit="true" 2581 class="d-block \${templateContentSeparation} seo-template-border-bottom-line"> 2582 </cg-template-paragraph-image> 2583 <cg-game-banner 2584 background-path="\${mainPrefix + '_SECOND_BANNER_IMAGE'}" 2585 class="d-block \${templateContentSeparation}"> 2586 </cg-game-banner> 2587 <cg-template-paragraph 2588 class="d-block \${templateContentSeparation}" 2589 title-key="\${mainPrefix + '_FIRST_QUESTION'}" 2590 paragraph-key="\${mainPrefix + '_FIRST_QUESTION_BODY'}" 2591 no-line="true" 2592 prevent-font-size-inherit="true"> 2593 </cg-template-paragraph> 2594 <cg-template-paragraph 2595 class="d-block \${templateContentSeparation}" 2596 title-key="\${mainPrefix + '_SECOND_QUESTION'}" 2597 paragraph-key="\${mainPrefix + '_SECOND_QUESTION_BODY'}" 2598 no-line="true" 2599 prevent-font-size-inherit="true"> 2600 </cg-template-paragraph> 2601 <cg-template-paragraph 2602 class="d-block seo-template-border-bottom-line \${templateContentSeparation}" 2603 title-key="\${mainPrefix + '_THIRD_QUESTION'}" 2604 paragraph-key="\${mainPrefix + '_THIRD_QUESTION_BODY'}" 2605 no-line="true" 2606 prevent-font-size-inherit="true"> 2607 </cg-template-paragraph> 2608 <cg-template-paragraph-image 2609 inverted="true" 2610 title-key="\${mainPrefix + '_FOURTH_PARAGRAPH'}" 2611 paragraph-key="\${mainPrefix + '_FOURTH_PARAGRAPH_BODY'}" 2612 image-key="\${mainPrefix + '_FOURTH_PARAGRAPH_IMAGE'}" 2613 no-line="true" 2614 prevent-font-size-inherit="true" 2615 class="d-block \${templateContentSeparation} seo-template-border-bottom-line"> 2616 </cg-template-paragraph-image> 2617 <cg-template-paragraph-image 2618 title-key="\${mainPrefix + '_FIFTH_PARAGRAPH'}" 2619 paragraph-key="\${mainPrefix + '_FIFTH_PARAGRAPH_BODY'}" 2620 image-key="\${mainPrefix + '_FIFTH_PARAGRAPH_IMAGE'}" 2621 no-line="true" 2622 prevent-font-size-inherit="true" 2623 class="d-block \${templateContentSeparation} seo-template-border-bottom-line"> 2624 </cg-template-paragraph-image> 2625 <cg-template-paragraph-image 2626 inverted="true" 2627 title-key="\${mainPrefix + '_SIXTH_PARAGRAPH'}" 2628 paragraph-key="\${mainPrefix + '_SIXTH_PARAGRAPH_BODY'}" 2629 image-key="\${mainPrefix + '_SIXTH_PARAGRAPH_IMAGE'}" 2630 no-line="true" 2631 prevent-font-size-inherit="true" 2632 class="d-block \${templateContentSeparation} seo-template-border-bottom-line"> 2633 </cg-template-paragraph-image> 2634 <cg-game-banner 2635 background-path="\${mainPrefix + '_THIRD_BANNER_IMAGE'}" 2636 class="d-block \${templateContentSeparation}"> 2637 </cg-game-banner> 2638 <cg-template-paragraph 2639 class="d-block \${templateContentSeparation}" 2640 title-key="\${mainPrefix + '_FOURTH_QUESTION'}" 2641 paragraph-key="\${mainPrefix + '_FOURTH_QUESTION_BODY'}" 2642 no-line="true" 2643 prevent-font-size-inherit="true"> 2644 </cg-template-paragraph> 2645 <cg-template-paragraph 2646 class="d-block \${templateContentSeparation}" 2647 title-key="\${mainPrefix + '_FIFTH_QUESTION'}" 2648 paragraph-key="\${mainPrefix + '_FIFTH_QUESTION_BODY'}" 2649 no-line="true" 2650 prevent-font-size-inherit="true"> 2651 </cg-template-paragraph> 2652 <div class="\${templateContentSeparation} \${seoQuadAdminView}" ref="SeoQuadContentBlock" id="SeoQuadContentBlock"> 2653 <div id="SeoQuadContentBlockCards"> 2654 <div 2655 repeat.for="card of quadContentBlockItems" 2656 class="seo-quad-content-card" 2657 > 2658 <page-content-image 2659 key.bind="card.icon" 2660 class="d-inline-block area-img \${inverted ? 'second' : 'first'}" 2661 ></page-content-image> 2662 <cg-template-paragraph 2663 title-key.bind="card.title" 2664 paragraph-key.bind="card.description" 2665 no-line="true" 2666 centered="true" 2667 prevent-font-size-inherit="true" 2668 class="seo-quad-content-card-description" 2669 ></cg-template-paragraph> 2670 </div> 2671 </div> 2672 <cg-template-paragraph 2673 title-key="\${mainPrefix + '_SEVENTH_PARAGRAPH'}" 2674 paragraph-key="\${mainPrefix + '_SEVENTH_PARAGRAPH_BODY'}" 2675 no-line="true" 2676 prevent-font-size-inherit="true" 2677 ></cg-template-paragraph> 2678 </div> 2679 <cg-game-banner 2680 background-path="\${mainPrefix + '_FOURTH_BANNER_IMAGE'}" 2681 class="d-block \${templateContentSeparation}"> 2682 </cg-game-banner> 2683 </section> 2684 </cg-seo-dropdown> 2685 </section> 2686</template> 2687`;f.default=s}),
2687"pages/sellv2/shared-components/seo-card/seo-card.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 2688 <div class="seo-card-item" ref="seoCardItem"> 2689 <page-content-image 2690 key.bind="iconPath" 2691 class.bind="'cg-seo-image' + (viewingAsAdmin ? ' admin-view' : '')" 2692 ></page-content-image> 2693 <cg-template-paragraph 2694 class="d-block" 2695 title-key.bind="title" 2696 paragraph-key.bind="text" 2697 class="\${templateContentSeparation}" 2698 no-line="true" 2699 prevent-font-size-inherit.bind="preventFontSizeInherit"> 2700 </cg-template-paragraph> 2701 </div> 2702</template> 2703`;f.default=s}),
2703"pages/sellv2/shared-components/seo-information-card/seo-information-card.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 2704 <div id="seo-information-card" class="\${seoInformationCardAdminView}"> 2705 <page-content-image 2706 key.bind="iconPath" 2707 class.bind="'cg-seo-image' + (viewingAsAdmin ? ' admin-view' : '')" 2708 ></page-content-image> 2709 2710 <div class="item-description-wrapper"> 2711 <cg-template-paragraph 2712 id="content-\${_id}" 2713 no-line=true 2714 title-key.bind="title" 2715 paragraph-key.bind="text" 2716 prevent-font-size-inherit.bind="preventFontSizeInherit" 2717 ></cg-template-paragraph> 2718 </div> 2719 </div> 2720</template> 2721`;f.default=s}),
2721"pages/services/buy-services/buy-services.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 2722 <div id="buy-services"></div> 2723</template> 2724`;f.default=s}),
2724"pages/services/dynamic-service-page/dynamic-service-page.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 2725 <div id="dynamic-service-page"> 2726 <cg-seo-dropdown is-loading.bind="pageLoading" header-title.bind="'CG_VIEW_MORE' | siteStrings"> 2727 <cg-template-service key.bind="key"> 2728 </cg-template-service> 2729 </cg-seo-dropdown> 2730 </div> 2731</template> 2732`;f.default=s}),
2732"pages/services/league-of-legends-boosting/league-of-legends-boosting.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 2733 <div id="league-of-legends-boosting"> 2734 <!-- League Table --> 2735 <div class="mdc-data-table main-content-block"> 2736 <div class="table-container 2737 \${currentSectionOpened === 'accountLevelingBoostingSection' ? 'al' : currentSectionOpened === 'placementMatchesBoostingSection' ? 'pm' : ''} 2738 \${width <= desktop && !allTabsClosed && (currentRank !== 'Choose One' || currentSectionOpened === 'accountLevelingBoostingSection') ? 'table-container-tablet' : ''} 2739 \${width <= mediumphone && allTabsClosed ? 'table-container-tabs-closed' : ''}" 2740 > 2741 <table class="mdc-data-table__table t-body"> 2742 <tbody class="mdc-data-table__content"> 2743 <!--Elo Boosting--> 2744 <tr class="mdc-data-table__row" show.bind="boostingSectionsList[0].show"> 2745 <td class="mdc-data-table__cell boost-section-cell row xp-0 overflow-visible" element.ref="eloBoostingSection"> 2746 <div class="col-12 row inner-row cursor-pointer" click.delegate="openBoostSection(eloBoostSectionBox, ebArrowBox, eloBoostingSection, boosting)"> 2747 <div class="col-10"> 2748 <img 2749 class="item-image" 2750 src="/icons/green-icons/hammerpickaxe.svg" 2751 alt="hammer pickaxe" 2752 loading="lazy" 2753 > 2754 <span>\${'CG_ELO_BOOSTING' | siteStrings}</span> 2755 </div> 2756 <div class="col-2"> 2757 <div class="float-end"> 2758 <div class="filter-arrow-icon"> 2759 <button class="mdc-icon-button material-icons mdc-data-table__sort-icon-button 2760 text-green align-middle"> 2761 <div class="open-filter arrow-boost-section arrow-open" element.ref="ebArrowBox">arrow_drop_down</div> 2762 </button> 2763 </div> 2764 </div> 2765 </div> 2766 </div> 2767 <!--Boosting Section Content--> 2768 <div class="col-12 row p-0 boost-section-box \${firstState ? 'db-open':''} \${width <= desktop && currentRank !== 'Choose One' && currentSectionOpened === 'eloBoostingSection' ? 'db-open-tablet' : ''}" element.ref="eloBoostSectionBox"> 2769 <div class="col-12 row inner-row-section p-4 \${width <= desktop && currentRank !== 'Choose One' && currentSectionOpened === 'eloBoostingSection' ? 'inner-row-tablet' : ''}"> 2770 <div class="bs-grid \${currentRank === 'Choose One' ? 'one-row-displayed' :''}" id="elo-boost"> 2771 <div class="bs-inner-grid \${width <= desktop && currentRank !== 'Choose One' && currentSectionOpened === 'eloBoostingSection' ? 'boosting-border-bottom' : ''}"> 2772 <div class="font-bold">\${'CG_CURRENT_ELO' | siteStrings}</div> 2773 <div class="bs-inner-bottom-grid"> 2774 <div class="text-regular"> 2775 <div>\${'CG_SERVER' | siteStrings}</div> 2776 <mdc-select value.bind="currentServer" class="select-background-filled select-border-white w-100 region-select"> 2777 <img 2778 src="/services/game-mode-icon.svg" 2779 mdc-select-icon 2780 loading="lazy" 2781 alt="game mode" 2782 > 2783 <section data-simplebar> 2784 <mdc-list> 2785 <mdc-list-item repeat.for="server of servers" value.bind="server" class="text-white"> 2786 \${server} 2787 </mdc-list-item> 2788 </mdc-list> 2789 </section> 2790 </mdc-select> 2791 </div> 2792 <div class="text-regular"> 2793 <div>\${'CG_RANK' | siteStrings}</div> 2794 <mdc-select 2795 value.bind="currentRank" 2796 class="select-background-filled select-border-white w-100 \${currentRank === 'Choose One' ? 'co' : ''}" 2797 > 2798 <img 2799 if.bind="currentRank !== 'Choose One'" 2800 src="/icons/lol-ranks/\${currentRank.toLowerCase()}.svg" 2801 alt.bind="currentRank" 2802 mdc-select-icon 2803 loading="lazy" 2804 > 2805 <section data-simplebar> 2806 <mdc-list> 2807 <mdc-list-item repeat.for="rank of ranks" value.bind="rank" class="text-white" show.bind="rank !== 'Challenger'"> 2808 <sp
2808an class="select-item-icon me-1" if.bind="rank !== 'Choose One'"> 2809 <img 2810 src="/icons/lol-ranks/\${rank.toLowerCase()}.svg" 2811 mdc-select-icon 2812 loading="lazy" 2813 alt.bind="rank" 2814 > 2815 </span> 2816 <span class="select-item-text \${rank === 'Choose One' ? 'co' : ''}">\${rank}</span> 2817 </mdc-list-item> 2818 </mdc-list> 2819 </section> 2820 </mdc-select> 2821 </div> 2822 <div class="text-regular"> 2823 <div>\${'CG_DIVISION' | siteStrings}</div> 2824 <mdc-select 2825 value.bind="currentDivision" 2826 disabled.bind="currentRank.includes('Master') || currentRank.includes('GrandMaster') || currentRank.includes('Challenger')" 2827 class="select-background-filled select-border-white w-100" 2828 > 2829 <section data-simplebar> 2830 <mdc-list> 2831 <mdc-list-item repeat.for="division of divisions" value.bind="division" class="text-white"> 2832 \${division} 2833 </mdc-list-item> 2834 </mdc-list> 2835 </section> 2836 </mdc-select> 2837 </div> 2838 <div class="text-regular"> 2839 <div>LP</div> 2840 <mdc-select 2841 value.bind="currentLpRange" 2842 disabled.bind="currentRank.includes('Master') || currentRank.includes('GrandMaster')" 2843 class="select-background-filled select-border-white w-100" 2844 > 2845 <section data-simplebar> 2846 <mdc-list> 2847 <mdc-list-item repeat.for="lpRange of lpRanges" value.bind="lpRange" class="text-white"> 2848 \${lpRange} 2849 </mdc-list-item> 2850 </mdc-list> 2851 </section> 2852 </mdc-select> 2853 </div> 2854 </div> 2855 </div> 2856 <div class="bs-inner-grid p-0 ps-lg-4 \${currentRank === 'Choose One' ? 'd-none' :''}"> 2857 <div class="font-bold">\${'CG_EXPECTED_ELO' | siteStrings}</div> 2858 <div class="bs-inner-bottom-grid"> 2859 <div class="text-regular"> 2860 <div>\${'CG_RANK' | siteStrings}</div> 2861 <mdc-select 2862 value.bind="expectedRank" 2863 class="select-background-filled select-border-white w-100 \${expectedRank === 'Choose One' ? 'co' : ''}" 2864 > 2865 <img 2866 if.bind="expectedRank !== 'Choose One'" 2867 src="/icons/lol-ranks/\${expectedRank.toLowerCase()}.svg" 2868 alt.bind="expectedRank" 2869 mdc-select-icon 2870 loading="lazy" 2871 > 2872 <section data-simplebar> 2873 <mdc-list> 2874 <mdc-list-item repeat.for="rank of expectedRankList" value.bind="rank.name" class="text-white" show.bind="rank.display"> 2875 <sp
2875an class="select-item-icon me-1" if.bind="rank.name !== 'Choose One'"> 2876 <img 2877 src="/icons/lol-ranks/\${rank.name.toLowerCase()}.svg" 2878 mdc-select-icon 2879 loading="lazy" 2880 alt.bind="rank.name" 2881 > 2882 </span> 2883 <span class="select-item-text \${rank === 'Choose One' ? 'co' : ''}">\${rank.name}</span> 2884 </mdc-list-item> 2885 </mdc-list> 2886 </section> 2887 </mdc-select> 2888 </div> 2889 <div class="text-regular"> 2890 <div>\${'CG_DIVISION' | siteStrings}</div> 2891 <mdc-select 2892 value.bind="expectedDivision" 2893 disabled.bind="expectedRank.includes('Master') || expectedRank.includes('GrandMaster') || expectedRank.includes('Challenger')" 2894 class="select-background-filled select-border-white w-100" 2895 > 2896 <section data-simplebar> 2897 <mdc-list> 2898 <mdc-list-item repeat.for="division of expectedDivisionList" value.bind="division.name" class="text-white" show.bind="division.display"> 2899 \${division.name} 2900 </mdc-list-item> 2901 </mdc-list> 2902 </section> 2903 </mdc-select> 2904 </div> 2905 <div class="text-regular"> 2906 <div>\${'CG_TYPE_OF_QUEUE' | siteStrings}</div> 2907 <mdc-select value.bind="queueSelected" class="select-background-filled select-border-white w-100"> 2908 <section data-simplebar> 2909 <mdc-list> 2910 <mdc-list-item repeat.for="queueType of queueTypes" value.bind="queueType" class="text-white"> 2911 \${queueType} 2912 </mdc-list-item> 2913 </mdc-list> 2914 </section> 2915 </mdc-select> 2916 </div> 2917 <div class="text-regular"> 2918 <div class="text-center text-sm-start"> 2919 \${'CG_PRICE' | siteStrings}
2920 <span class="d-inline-block d-sm-none">\${price | currencyFormat & async}</span> 2921 </div> 2922 <div class="d-none d-sm-flex price-tag">\${price | currencyFormat & async}</div> 2923 </div> 2924 </div> 2925 </div> 2926 </div> 2927 </div> 2928 </div> 2929 </td> 2930 </tr> 2931 <!--Win Boosting--> 2932 <tr class="mdc-data-table__row" show.bind="boostingSectionsList[1].show"> 2933 <td class="mdc-data-table__cell boost-section-cell row xp-0" element.ref="winBoostingSection"> 2934 <div class="col-12 row inner-row cursor-pointer" click.delegate="openBoostSection(winBoostSectionBox, wbArrowBox, winBoostingSection, boosting)"> 2935 <div class="col-10"> 2936 <img 2937 class="item-image" 2938 src="/icons/green-icons/hammerpickaxe.svg" 2939 alt="hammer pickaxe" 2940 loading="lazy" 2941 > 2942 <span>\${'CG_WIN_BOOSTING' | siteStrings}</span> 2943 </div> 2944 <div class="col-2"> 2945 <div class="float-end"> 2946 <div class="filter-arrow-icon"> 2947 <button class="mdc-icon-button material-icons mdc-data-table__sort-icon-button 2948 text-green align-middle"> 2949 <div class="open-filter arrow-boost-section arrow-close" element.ref="wbArrowBox">arrow_drop_down</div> 2950 </button> 2951 </div> 2952 </div> 2953 </div> 2954 </div> 2955 <!--Boosting Section Content--> 2956 <div class="col-12 row p-0 boost-section-box \${width <= desktop && currentRank !== 'Choose One' && currentSectionOpened === 'winBoostingSection' ? 'db-open-tablet' : ''}" element.ref="winBoostSectionBox"> 2957 <div class="col-12 row inner-row-section p-4 \${width <= desktop && currentRank !== 'Choose One' && currentSectionOpened === 'winBoostingSection' ? 'inner-row-tablet' : ''}"> 2958 <div class="bs-grid \${currentRank === 'Choose One' ? 'one-row-displayed' :''}" id="win-boost"> 2959 <div class="bs-inner-grid \${width <= desktop && currentRank !== 'Choose One' && currentSectionOpened === 'winBoostingSection' ? 'boosting-border-bottom' : ''}"> 2960 <div class="font-bold">\${'CG_CURRENT_ELO' | siteStrings}</div> 2961 <div class="bs-inner-bottom-grid"> 2962 <div class="text-regular"> 2963 <div>\${'CG_SERVER' | siteStrings}</div> 2964 <mdc-select value.bind="currentServer" class="select-background-filled select-border-white w-100 region-select"> 2965 <img 2966 src="/services/game-mode-icon.svg" 2967 mdc-select-icon 2968 loading="lazy" 2969 alt="game mode" 2970 > 2971 <section data-simplebar> 2972 <mdc-list> 2973 <mdc-list-item repeat.for="server of servers" value.bind="server" class="text-white"> 2974 \${server} 2975 </mdc-list-item> 2976 </mdc-list> 2977 </section> 2978 </mdc-select> 2979 </div> 2980 <div class="text-regular"> 2981 <div>\${'CG_RANK' | siteStrings}</div> 2982 <mdc-select value.bind="currentRank" class="select-background-filled select-border-white w-100 \${currentRank === 'Choose One' ? 'co' : ''}"> 2983 <img 2984 if.bind="currentRank !== 'Choose One'" 2985 src="/icons/lol-ranks/\${currentRank.toLowerCase()}.svg" 2986 alt.bind="currentRank" 2987 mdc-select-icon 2988 loading="lazy" 2989 > 2990 <section data-simplebar> 2991 <mdc-list> 2992 <mdc-list-item repeat.for="rank of ranks" value.bind="rank" class="text-white"> 2993 <sp
2993an class="select-item-icon me-1" if.bind="rank !== 'Choose One'"> 2994 <img 2995 src="/icons/lol-ranks/\${rank.toLowerCase()}.svg" 2996 mdc-select-icon 2997 loading="lazy" 2998 alt.bind="rank" 2999 > 3000 </span> 3001 <span class="select-item-text \${rank === 'Choose One' ? 'co' : ''}">\${rank}</span> 3002 </mdc-list-item> 3003 </mdc-list> 3004 </section> 3005 </mdc-select> 3006 </div> 3007 <div class="text-regular"> 3008 <div>\${'CG_DIVISION' | siteStrings}</div> 3009 <mdc-select 3010 value.bind="currentDivision" 3011 disabled.bind="currentRank.includes('Master') || currentRank.includes('GrandMaster') || currentRank.includes('Challenger')" 3012 class="select-background-filled select-border-white w-100" 3013 > 3014 <section data-simplebar> 3015 <mdc-list> 3016 <mdc-list-item repeat.for="division of divisions" value.bind="division" class="text-white"> 3017 \${division} 3018 </mdc-list-item> 3019 </mdc-list> 3020 </section> 3021 </mdc-select> 3022 </div> 3023 <div class="text-regular"> 3024 <div>LP</div> 3025 <mdc-select 3026 value.bind="currentLpRange" 3027 disabled.bind="currentRank.includes('Master') || currentRank.includes('GrandMaster') || currentRank.includes('Challenger')" 3028 class="select-background-filled select-border-white w-100" 3029 > 3030 <section data-simplebar> 3031 <mdc-list> 3032 <mdc-list-item repeat.for="lpRange of lpRanges" value.bind="lpRange" class="text-white"> 3033 \${lpRange} 3034 </mdc-list-item> 3035 </mdc-list> 3036 </section> 3037 </mdc-select> 3038 </div> 3039 </div> 3040 </div> 3041 <div class="bs-inner-grid p-0 ps-lg-4 \${currentRank === 'Choose One' ? 'd-none' :''}"> 3042 <div class="font-bold">\${'CG_EXPECTED_WINS' | siteStrings}</div> 3043 <div class="bs-inner-bottom-grid"> 3044 <div class="text-regular"> 3045 <div>\${'CG_WINS' | siteStrings}</div> 3046 <cg-quantity-input product.two-way="winBoostingWins" value.t
3046wo-way="winBoostingWins.selectedQuantity"></cg-quantity-input> 3047 </div> 3048 <div class="text-regular"> 3049 <div>\${'CG_TYPE_OF_QUEUE' | siteStrings}</div> 3050 <mdc-select value.bind="queueSelected" class="select-background-filled select-border-white w-100"> 3051 <section data-simplebar> 3052 <mdc-list> 3053 <mdc-list-item repeat.for="queueType of queueTypes" value.bind="queueType" class="text-white"> 3054 \${queueType} 3055 </mdc-list-item> 3056 </mdc-list> 3057 </section> 3058 </mdc-select> 3059 </div> 3060 <div class="text-regular"> 3061 <div class="text-center text-sm-start"> 3062 \${'CG_PRICE' | siteStrings} 3063 <span class="d-inline-block d-sm-none">\${price | currencyFormat & async}</span> 3064 </div> 3065 <div class="d-none d-sm-flex price-tag">\${price | currencyFormat & async}</div> 3066 </div> 3067 </div> 3068 </div> 3069 </div> 3070 </div> 3071 </div> 3072 </td> 3073 </tr> 3074 <!--Placement Matches--> 3075 <tr class="mdc-data-table__row" show.bind="boostingSectionsList[2].show"> 3076 <td class="mdc-data-table__cell boost-section-cell row xp-0" element.ref="placementMatchesBoostingSection"> 3077 <div class="col-12 row inner-row cursor-pointer" click.delegate="openBoostSection(placementMatchesBoostSectionBox, pmArrowBox, placementMatchesBoostingSection, boosting)"> 3078 <div class="col-10"> 3079 <img 3080 class="item-image" 3081 src="/icons/green-icons/hammerpickaxe.svg" 3082 alt="hammer pickaxe" 3083 loading="lazy" 3084 > 3085 <span>\${'CG_PLACEMENT_MATCHES' | siteStrings}</span> 3086 </div> 3087 <div class="col-2"> 3088 <div class="float-end"> 3089 <div class="filter-arrow-icon"> 3090 <button class="mdc-icon-button material-icons mdc-data-table__sort-icon-button text-green align-middle"> 3091 <div class="open-filter arrow-boost-section arrow-close" element.ref="pmArrowBox">arrow_drop_down</div> 3092 </button> 3093 </div> 3094 </div> 3095 </div> 3096 </div> 3097 <!--Boosting Section Content--> 3098 <div class="col-12 row p-0 boost-section-box pm \${width <= desktop && currentRank !== 'Choose One' && currentSectionOpened === 'placementMatchesBoostingSection' ? 'db-open-tablet' : ''}" element.ref="placementMatchesBoostSectionBox"> 3099 <div class="col-12 row inner-row-section p-4 pm \${width <= desktop && currentRank !== 'Choose One' && currentSectionOpened === 'placementMatchesBoostingSection' ? 'inner-row-tablet' : ''}"> 3100 <div class="bs-grid \${currentRank === 'Choose One' ? 'one-row-displayed' :''}" id="placement-matches"> 3101 <div class="bs-inner-grid \${width <= desktop && currentRank !== 'Choose One' && currentSectionOpened === 'placementMatchesBoostingSection' ? 'boosting-border-bottom' : ''}"> 3102 <div class="font-bold">\${'CG_PREVIOUS_ELO' | siteStrings}</div> 3103 <div class="bs-inner-bottom-grid"> 3104 <div class="text-regular"> 3105 <div>\${'CG_SERVER' | siteStrings}</div> 3106 <mdc-select value.bind="currentServer" class="select-background-filled select-border-white w-100"> 3107 <img 3108 src="/services/game-mode-icon.svg" 3109 mdc-select-icon 3110 loading="lazy" 3111 alt="game mode" 3112 > 3113 <section data-simplebar> 3114 <mdc-list> 3115 <mdc-list-item repeat.for="server of servers" value.bind="server" class="text-white"> 3116 \${server} 3117 </mdc-list-item> 3118 </mdc-list> 3119 </section> 3120 </mdc-select> 3121 </div> 3122 <div class="text-regular"> 3123 <div>\${'CG_RANK' | siteStrings}</div> 3124 <mdc-select value.bind="currentRank" class="select-background-filled select-border-white w-100 \${currentRank === 'Choose One' ? 'co' : ''}"> 3125 <img 3126 if.bind="currentRank !== 'Choose One'" 3127 src="/icons/lol-ranks/\${currentRank.toLowerCase()}.svg" 3128 alt.bind="currentRank" 3129 mdc-select-icon 3130 loading="lazy" 3131 > 3132 <section data-simplebar> 3133 <mdc-list> 3134 <mdc-list-item repeat.for="rank of ranks" value.bind="rank" class="text-white"> 3135 <sp
3135an class="select-item-icon me-1" if.bind="rank !== 'Choose One'"> 3136 <img 3137 src="/icons/lol-ranks/\${rank.toLowerCase()}.svg" 3138 mdc-select-icon 3139 loading="lazy" 3140 alt.bind="rank" 3141 > 3142 </span> 3143 <span class="select-item-text \${rank === 'Choose One' ? 'co' : ''}">\${rank}</span> 3144 </mdc-list-item> 3145 </mdc-list> 3146 </section> 3147 </mdc-select> 3148 </div> 3149 </div> 3150 </div> 3151 <div class="bs-inner-grid p-0 ps-lg-4 \${currentRank === 'Choose One' ? 'd-none' :''}"> 3152 <div class="font-bold">\${'CG_AMOUNT_OF_GAMES' | siteStrings}</div> 3153 <div class="bs-inner-bottom-grid"> 3154 <div class="text-regular"> 3155 <div>\${'CG_GAMES' | siteStrings}</div> 3156 <cg-quantity-input 3157 product.two-way="placementMatchWins" 3158 value.two-way="placementMatchWins.selectedQuantity" 3159 ></cg-quantity-input> 3160 </div> 3161 <div class="text-regular"> 3162 <div>\${'CG_TYPE_OF_QUEUE' | siteStrings}</div> 3163 <mdc-select value.bind="queueSelected" class="select-background-filled select-border-white w-100"> 3164 <section data-simplebar> 3165 <mdc-list> 3166 <mdc-list-item repeat.for="queueType of queueTypes" value.bind="queueType" class="text-white"> 3167 \${queueType} 3168 </mdc-list-item> 3169 </mdc-list> 3170 </section> 3171 </mdc-select> 3172 </div> 3173 <div class="text-regular"> 3174 <div class="text-center text-sm-start"> 3175 \${'CG_PRICE' | siteStrings} 3176 <span class="d-inline-block d-sm-none">\${price | currencyFormat & async}</span> 3177 </div> 3178 <div class="d-none d-sm-flex price-tag">\${price | currencyFormat & async}</div> 3179 </div> 3180 </div> 3181 </div> 3182 </div> 3183 </div> 3184 </div> 3185 </td> 3186 </tr> 3187 <!--Account Leveling--> 3188 <tr class="mdc-data-table__row" show.bind="boostingSectionsList[3].show"> 3189 <td class="mdc-data-table__cell boost-section-cell row xp-0" element.ref="accountLevelingBoostingSection"> 3190 <div class="col-12 row inner-row cursor-pointer" click.delegate="openBoostSection(accountLevelingBoostSectionBox, alArrowBox, accountLevelingBoostingSection, boosting)"> 3191 <div class="col-10"> 3192 <img 3193 class="item-image" 3194 src="/icons/green-icons/hammerpickaxe.svg" 3195 alt="hammer pickaxe" 3196 loading="lazy" 3197 >
3198 <span>\${'CG_ACCOUNT_LEVELING' | siteStrings}</span> 3199 </div> 3200 <div class="col-2"> 3201 <div class="float-end"> 3202 <div class="filter-arrow-icon"> 3203 <button class="mdc-icon-button material-icons mdc-data-table__sort-icon-button text-green align-middle"> 3204 <div class="open-filter arrow-boost-section arrow-close" element.ref="alArrowBox">arrow_drop_down</div> 3205 </button> 3206 </div> 3207 </div> 3208 </div> 3209 </div> 3210 <!--Boosting Section Content--> 3211 <div class="col-12 row p-0 boost-section-box al \${width <= desktop && currentSectionOpened === 'accountLevelingBoostingSection' ? 'db-open-tablet' : ''}" element.ref="accountLevelingBoostSectionBox"> 3212 <div class="col-12 row inner-row-section p-4 al \${width <= desktop && currentSectionOpened === 'accountLevelingBoostingSection' ? 'inner-row-tablet' : ''}"> 3213 <div class="bs-grid" id="account-leveling"> 3214 <div class="bs-inner-grid \${width <= desktop && currentSectionOpened === 'accountLevelingBoostingSection' ? 'boosting-border-bottom' : ''}"> 3215 <div class="font-bold">\${'CG_CURRENT_LEVEL' | siteStrings}</div> 3216 <div class="bs-inner-bottom-grid"> 3217 <div class="text-regular"> 3218 <div>\${'CG_SERVER' | siteStrings}</div> 3219 <mdc-select value.bind="currentServer" class="select-background-filled select-border-white w-100"> 3220 <img 3221 src="/services/game-mode-icon.svg" 3222 mdc-select-icon 3223 loading="lazy" 3224 alt="game mode" 3225 > 3226 <section data-simplebar> 3227 <mdc-list> 3228 <mdc-list-item repeat.for="server of servers" value.bind="server" class="text-white"> 3229 \${server} 3230 </mdc-list-item> 3231 </mdc-list> 3232 </section> 3233 </mdc-select> 3234 </div> 3235 <div class="text-regular"> 3236 <div>\${'CG_LEVEL' | siteStrings}</div> 3237 <cg-quantity-input product.two-way="accountStartLevel" value.two-way="accountStartLevel.selectedQuantity"></cg-quantity-input> 3238 </div> 3239 </div> 3240 </div> 3241 <div class="bs-inner-grid p-0 ps-lg-4"> 3242 <div class="font-bold">\${'CG_EXPECTED_LEVEL' | siteStrings}</div> 3243 <div class="bs-inner-bottom-grid"> 3244 <div class="text-regular"> 3245 <div>\${'CG_LEVEL' | siteStrings}</div> 3246 <cg-quantity-input product.two-way="accountEndLevel" value.t
3246wo-way="accountEndLevel.selectedQuantity"></cg-quantity-input> 3247 </div> 3248 <div class="text-regular"> 3249 <div class="text-center text-sm-start"> 3250 \${'CG_PRICE' | siteStrings} 3251 <span class="d-inline-block d-sm-none">\${price | currencyFormat & async}</span> 3252 </div> 3253 <div class="d-none d-sm-flex price-tag">\${price | currencyFormat & async}</div> 3254 </div> 3255 </div> 3256 </div> 3257 </div> 3258 </div> 3259 </div> 3260 </td> 3261 </tr> 3262 </tbody> 3263 </table> 3264 <table class="w-100"> 3265 <tfoot> 3266 <tr> 3267 <td class="footer-grid text-regular px-4"> 3268 <div>\${'CG_TOTALS' | siteStrings}</div> 3269 <div class="float-right">\${'CG_TOTAL_AMOUNT' | siteStrings}: \${price | currencyFormat & async}</div> 3270 </td> 3271 </tr> 3272 </tfoot> 3273 </table> 3274 </div> 3275 </div> 3276 <!-- Checkout Button --> 3277 <div class="row template-content-separation justify-content-lg-end"> 3278 <div if.bind="width >= tablet && !addedToCart" class="d-flex col-12 col-lg-4 ps-lg-4 justify-content-lg-end"> 3279 <button 3280 mdc-button 3281 outlined 3282 type="submit" 3283 click.delegate="addToCart()" 3284 class="review-button mt-lg-2 p-4 button-blue-filled" 3285 > 3286 \${'CG_ADD_TO_CART' | siteStrings}: 3287 </button> 3288 </div> 3289 <div if.bind="width >= tablet && addedToCart" class="d-flex col-6 col-lg-2 ps-lg-4 justify-content-lg-end" if.bind="addedToCart"> 3290 <button mdc-button class="w-100 mt-lg-2 p-4 button-gray-filled text-gray font-light" type="button" click.delegate="addedToCart = false">\${'CG_KEEP_SHOPPING' | siteStrings}:</button> 3291 </div> 3292 <div if.bind="width >= tablet && addedToCart" class="d-flex col-6 col-lg-2 ps-lg-4 justify-content-lg-end" if.bind="addedToCart"> 3293 <a click.trigger="handleCheckoutButton()" mdc-button class="w-100 mt-lg-2 p-4 button-blue-filled">\${'CG_CHECKOUT' | siteStrings}</a> 3294 </div> 3295 <div if.bind="width < tablet" class="floating-bottom-bar-service d-block d-xl-none py-2"> 3296 <button if.bind="!addedToCart" mdc-button outlined type="submit" click.delegate="addToCart()" class="review-button mt-lg-2 p-4 button-blue-filled text-large">\${'CG_ADD_TO_CART' | siteStrings}: \u2022 \${totalPrice | currencyFormat & async}</button> 3297 <a if.bind="addedToCart" click.trigger="handleCheckoutButton()" mdc-button class="w-100 mt-lg-2 p-4 button-blue-filled text-large">\${'CG_CHECKOUT' | siteStrings} \u2022 \${totalPrice | currencyFormat & async}</a> 3298 </div> 3299 </div> 3300 <!-- Page Content --> 3301 <cg-seo-dropdown is-loading.bind="false" header-title.bind="'CG_VIEW_MORE' | siteStrings"> 3302 <cg-template-service key.bind="keyName"> 3303 </cg-template-service> 3304 </cg-seo-dropdown> 3305 </div> 3306</template> 3307`;f.default=s}),
3307"pages/services/new-world-powerleveling/new-world-powerleveling.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 3308 <div id="new-world-powerleveling"> 3309 <!-- Powerleveling NW Table --> 3310 <div class="mdc-data-table main-content-block"> 3311 <table class="mdc-data-table__table"> 3312 <thead> 3313 <tr class="mdc-data-table__header-row dt-display"> 3314 <th class="skill-header mdc-data-table__header-cell \${pageLoading ? '' : 'displayed'}" role="columnheader" scope="col"></th> 3315 <th class="skill-header mdc-data-table__header-cell" role="columnheader" scope="col"> 3316 <div skeleton-loading="is-loading.bind:pageLoading;height:20px;">\${'CG_SKILLS' | siteStrings}</div> 3317 <div class="mdc-icon-button material-icons mdc-data-table__sort-icon-button text-white align-middle" if.bind="!pageLoading"> 3318 <div id="skills-up" ref="skillsArrowUp" class="position-relative sort-asc" click.delegate="sortBy(0, skillsArrowUp)">arrow_drop_up</div> 3319 <div id="skills-down" ref="skillsArrowDown" class="position-relative sort-desc" click.delegate="sortBy(0, skillsArrowDown)">arrow_drop_down</div> 3320 </div> 3321 </th> 3322 <th class="skill-header mdc-data-table__header-cell d-none d-lg-table-cell \${pageLoading ? 'sk-loading' : ''}" role="columnheader" scope="col"> 3323 <div skeleton-loading="is-loading.bind:pageLoading;height:20px;">\${'CG_CURRENT_LEVEL' | siteStrings}</div> 3324 </th> 3325 <th class="skill-header mdc-data-table__header-cell d-table-cell d-lg-none \${pageLoading ? 'sk-loading' : ''}" 3326 role="columnheader" 3327 scope="col" 3328 mdc-tooltip.ref="currentLevelTooltip" 3329 click.delegate="helper.showPopup({content: currentLevelTooltip})" 3330 mdc-tooltip="value: Current Level;"> 3331 <div skeleton-loading="is-loading.bind:pageLoading;height:20px;"> 3332 \${'CG_CURRENT' | siteStrings}... 3333 </div> 3334 </th> 3335 <th class="skill-header mdc-data-table__header-cell d-none d-lg-table-cell \${pageLoading ? 'sk-loading' : ''}" role="columnheader" scope="col"> 3336 <div skeleton-loading="is-loading.bind:pageLoading;height:20px;"> 3337 \${'CG_EXPECTED_LEVEL' | siteStrings} 3338 </div> 3339 </th> 3340 <th class="skill-header mdc-data-table__header-cell d-table-cell d-lg-none \${pageLoading ? 'sk-loading' : ''}" 3341 role="columnheader" 3342 scope="col" 3343 mdc-tooltip.ref="expectedLevelTooltip" 3344 click.delegate="helper.showPopup({content: expectedLevelTooltip})" 3345 mdc-tooltip="value: Expected Level;"> 3346 <div skeleton-loading="is-loading.bind:pageLoading;height:20px;"> 3347 \${'CG_EXPECTED' | siteStrings}... 3348 </div> 3349 </th> 3350 <th class="skill-header mdc-data-table__header-cell \${pageLoading ? 'sk-loading' : ''}" role="columnheader" scope="col"> 3351 <div skeleton-loading="is-loading.bind:pageLoading;height:20px;"> 3352 \${'CG_PRICE' | siteStrings} 3353 </div> 3354 <button class="mdc-icon-button material-icons mdc-data-table__sort-icon-button text-white align-middle" if.bind="!pageLoading"> 3355 <div id="price-up" ref="priceArrowUp" class="position-relative sort-asc" click.delegate="sortBy(1, priceArrowUp)">arrow_drop_up</div> 3356 <div id="price-down" ref="priceArrowDown" class="position-relative sort-desc" click.delegate="sortBy(1, priceArrowDown)">arrow_drop_down</div> 3357 </button> 3358 </th> 3359 <th class="skill-header mdc-data-table__header-cell \${pageLoading ? 'sk-loading' : ''}" role="columnheader" scope="col"> 3360 <div skeleton-loading="is-loading.bind:pageLoading;height:20px;"> 3361 \${'CG_GOLD' | siteStrings} 3362 </div> 3363 <button class="mdc-icon-button material-icons mdc-data-table__sort-icon-button text-white align-middle" if.bind="!pageLoading"> 3364 <div id="gold-up" ref="goldArrowUp" class="position-relative sort-asc" click.delegate="sortBy(2, goldArrowUp)">arrow_drop_up</div> 3365 <div id="gold-down" ref="goldArrowDown" class="position-relative sort-desc" click.delegate="sortBy(2, goldArrowDown)">arrow_drop_down</div> 3366 </button> 3367 </th> 3368 </tr> 3369 3370 <tr class="mdc-data-table__header-row sub-header dt-display"> 3371 <th class="text-center"> 3372 <img 3373 class="item-image" 3374 src="/icons/games/nw-small.svg" 3375 alt="new world powerleveling" 3376 loading="lazy" 3377 if.bind="!pageLoading" 3378 > 3379 </th> 3380 <th if.bind="productsStringTooltip" 3381 class="skill-header mdc-data-table__header-cell" 3382 mdc-tooltip="value.bind: productsStringTooltipValue; x-position: START;" 3383 role="columnheader" 3384 mdc-tooltip.ref="productStringTooltipRef" 3385 click.delegate="helper.showPopup({content: productStringTooltipRef})" 3386 scope="col" 3387 colspan="4">
3388 <span skeleton-loading="is-loading.bind:pageLoading;height:20px;"> 3389 \${productsString | languageKeyFormatter | siteStrings : productsString} 3390 </span> 3391 </th> 3392 <th else class="skill-header mdc-data-table__header-cell" role="columnheader" scope="col" colspan="4"> 3393 <span skeleton-loading="is-loading.bind:pageLoading;height:20px;"> 3394 \${productsString | languageKeyFormatter | siteStrings : productsString} 3395 </span> 3396 </th> 3397 <div class="dropdown"> 3398 <th class="skill-header mdc-data-table__header-cell" role="columnheader" scope="col" colspan="1"> 3399 <button 3400 id="show-products-selector" 3401 class="btn cursor-pointer text-white p-0" 3402 data-bs-toggle="dropdown" 3403 data-bs-display="static" 3404 data-bs-auto-close="outside" 3405 aria-expanded="false" 3406 skeleton-loading="is-loading.bind:pageLoading;height:20px;" 3407 > 3408 \${'CG_SHOW_PRODUCTS' | siteStrings} 3409 <div class="filter-arrow-icon"> 3410 <div class="material-icons open-filter">arrow_drop_down</div> 3411 </div> 3412 </button> 3413 3414 <div id="show-products-dropdown" class="dropdown-menu selected-products position-absolute dropdown-menu-lg-start dropdown-menu-end" aria-labelledby="show-products-selector"> 3415 <div class="row p-3"> 3416 <p class="col-10 p-selected-title"> 3417 \${'CG_SELECTED_PRODUCTS' | siteStrings} 3418 </p> 3419 <button class="col-2 ps-button" click.delegate="closeFilter()"> 3420 <img src="/icons/close-circle-icon.svg" alt="close-icon"> 3421 </button> 3422 </div> 3423 <section class="products-selected pb-3" data-simplebar> 3424 <p class="p-2 px-3 product-selected text-truncate" repeat.for="[key, value] of skillsBeingLeveled">\${key}</p> 3425 </section> 3426 <div class="dividing-line-container m-0 p-0"> 3427 <div class="dividing-line m-0 p-0"> 3428 </div> 3429 </div> 3430 <div class="row p-3"> 3431 <p class="col-10 p-total"> 3432 \${'CG_PRODUCTS' | siteStrings}: 3433 </p> 3434 <p class="col-2 p-total"> 3435 \${skillsBeingLeveled.size} 3436 </p> 3437 </div> 3438 </div> 3439 </th> 3440 </div> 3441 </tr> 3442 3443 <!-- MOBILE --> 3444 <tr class="mdc-data-table__header-row m-display"> 3445 <th class="mdc-data-table__header-cell px-3" role="columnheader" scope="col" colspan="3"> 3446 <div skeleton-loading="is-loading.bind:pageLoading;height:20px;width:100px;">\${'CG_SKILLS' | siteStrings}</div> 3447 <div class="mdc-icon-button material-icons mdc-data-table__sort-icon-button text-white align-middle" if.bind="!pageLoading"> 3448 <div id="skills-up" ref="skillsMobileArrowUp" class="position-relative sort-asc" click.delegate="sortBy(0, skillsMobileArrowUp)">arrow_drop_up</div> 3449 <div id="skills-down" ref="skillsMobileArrowDown" class="position-relative sort-desc" click.delegate="sortBy(0, skillsMobileArrowDown)">arrow_drop_down</div> 3450 </div> 3451 </th> 3452 </tr> 3453 3454 <tr class="mdc-data-table__header-row sub-header m-display"> 3455 <th class="skill-header text-center"> 3456 <img 3457 if.bind="!pageLoading" 3458 class="item-image" 3459 src="/icons/games/nw-small.svg" 3460 alt="new world powerleveling" 3461 loading="lazy" 3462 > 3463 </th> 3464 <th if.bind="productsStringTooltip" 3465 class="skill-header mdc-data-table__header-cell" 3466 mdc-tooltip="value.bind: productsStringTooltipValue; x-position: START;" 3467 mdc-tooltip.ref="productStringTooltipRef1" 3468 click.delegate="helper.showPopup({content: productStringTooltipRef1})" 3469 role="columnheader" 3470 scope="col">
3471 <span skeleton-loading="is-loading.bind:pageLoading;height:20px;"> 3472 \${productsString | languageKeyFormatter | siteStrings : productsString} 3473 </span> 3474 </th> 3475 <th else class="skill-header mdc-data-table__header-cell" role="columnheader" scope="col"> 3476 <span skeleton-loading="is-loading.bind:pageLoading;height:20px;"> 3477 \${productsString | languageKeyFormatter | siteStrings : productsString} 3478 </span> 3479 </th> 3480 <div class="dropdown"> 3481 <th class="skill-header mdc-data-table__header-cell" role="columnheader" scope="col"> 3482 <button 3483 id="show-products-selector-mobile" 3484 class="btn cursor-pointer text-white p-0" 3485 data-bs-toggle="dropdown" 3486 data-bs-display="static" 3487 data-bs-auto-close="outside" 3488 aria-expanded="false" 3489 skeleton-loading="is-loading.bind:pageLoading;height:20px;" 3490 > 3491 \${'CG_SHOW_PRODUCTS' | siteStrings} 3492 <div class="filter-arrow-icon"> 3493 <div class="material-icons open-filter">arrow_drop_down</div> 3494 </div> 3495 </button> 3496 3497 <div id="show-products-dropdown-mobile" class="dropdown-menu selected-products position-absolute dropdown-menu-end" aria-labelledby="show-products-selector"> 3498 <div class="row p-3"> 3499 <p class="col-10 p-selected-title"> 3500 \${'CG_SELECTED_PRODUCTS' | siteStrings} 3501 </p> 3502 <button class="col-2 ps-button" click.delegate="closeFilter()"> 3503 <img src="/icons/close-circle-icon.svg" alt="close-icon"> 3504 </button> 3505 </div> 3506 <section class="products-selected pb-3" data-simplebar> 3507 <p class="p-2 px-3 product-selected text-truncate" repeat.for="[key, value] of skillsBeingLeveled">\${key}</p> 3508 </section> 3509 <div class="dividing-line-container m-0 p-0"> 3510 <div class="dividing-line m-0 p-0"> 3511 </div> 3512 </div> 3513 <div class="row p-3"> 3514 <p class="col-10 p-total"> 3515 \${'CG_PRODUCTS' | siteStrings}: 3516 </p> 3517 <p class="col-2 p-total"> 3518 \${skillsBeingLeveled.size} 3519 </p> 3520 </div> 3521 </div> 3522 </th> 3523 </div> 3524 </tr> 3525 </thead> 3526 </table> 3527 <div data-simplebar id="mobile-table-scrollbar"> 3528 <table class="mdc-data-table__table t-body"> 3529 <tbody class="mdc-data-table__content"> 3530 <tr class="mdc-data-table__row skeleton-rows d-flex w-100" repeat.for="i of 10" show.bind="pageLoading"> 3531 <td class="mdc-data-table__cell powerleveling-cell row px-0" skeleton-loading.bind="pageLoading"> 3532 </td> 3533 </tr> 3534 <tr class="mdc-data-table__row" repeat.for="skillCategory of skillsCategory" if.bind="!pageLoading"> 3535 <td class="mdc-data-table__cell powerleveling-cell row xp-0"> 3536 <div class="col-12 row inner-row cursor-pointer" click.delegate="openSkillCategory(categoryBox, arrowBox)"> 3537 <div class="col-1 col-lg-2 ps-1 pe-4 ps-lg-auto pe-lg-5 w-0"> 3538 <img if.bind="skillCategory.iconPath" class="item-image-icon" src="\${baseAwsEndpoint}\${skillCategory.iconPath}" alt="skill category" loading="lazy">
3539 <span else class="material-icons-outlined text-white">image_not_supported</span> 3540 </div> 3541 <div class="col-8 col-lg-9 ps-lg-0">\${skillCategory.name | languageKeyFormatter | siteStrings : skillCategory.name}</div> 3542 <div class="col col-sm-3 col-lg-2 pe-sm-0 pe-lg-2"> 3543 <div class="float-end"> 3544 <div class="filter-arrow-icon"> 3545 <button 3546 class="mdc-icon-button material-icons mdc-data-table__sort-icon-button 3547 text-green align-middle"> 3548 <div class="open-filter arrow-skill \${$index === 0 ? 'arrow-open' : ''}" element.ref="arrowBox">arrow_drop_down</div> 3549 </button> 3550 </div> 3551 </div> 3552 </div> 3553 </div> 3554 <div class="col-12 row p-0 category-box \${$index === 0 ? 'db-open' : ''}" element.ref="categoryBox"> 3555 <div class="col-12 row inner-row d-none d-sm-flex" repeat.for="skill of skillCategory.group" if.bind="!loading"> 3556 <div class="col-1 inner-column ps-1 ps-lg-3"> 3557 <img if.bind="skill.imagePath" class="item-image-icon" src="\${productAwsEndpoint}\${skill.imagePath}" alt="skill" loading="lazy"> 3558 <span else class="material-icons-outlined text-white">image_not_supported</span> 3559 </div> 3560 <div if.bind="skill.skillName.length > 24 && width > desktop" 3561 class="col-2 inner-column pe-0 pe-lg-auto text-truncate" 3562 mdc-tooltip="value.bind: skill.skillName; y-position: BELOW" 3563 mdc-tooltip.ref="skillNameTitleTooltip" 3564 click.delegate="helper.showPopup({content: skillNameTitleTooltip})" 3565 mouseover.trigger="tooltipArrowStyling.toView(skillNameTitleTooltip)"> 3566 \${skill.skillName | languageKeyFormatter | siteStrings : skill.skillName} 3567 </div> 3568 <div if.bind="skill.skillName.length <= 24 && width > desktop" class="col-2 inner-column pe-0 pe-lg-auto"> 3569 \${skill.skillName | languageKeyFormatter | siteStrings : skill.skillName} 3570 </div> 3571 <div if.bind="skill.skillName.length > 12 && width <= desktop" 3572 class="col-2 inner-column pe-0 pe-lg-auto text-truncate" 3573 mdc-tooltip="value.bind: skill.skillName; y-position: BELOW" 3574 mdc-tooltip.ref="skillNameTitleTooltip" 3575 click.delegate="helper.showPopup({content: skillNameTitleTooltip})" 3576 mouseover.trigger="tooltipArrowStyling.toView(skillNameTitleTooltip)"> 3577 \${skill.skillName | languageKeyFormatter | siteStrings : skill.skillName} 3578 </div> 3579 <div if.bind="skill.skillName.length <= 12 && width <= desktop" class="col-2 inner-column pe-0 pe-lg-auto"> 3580 \${skill.skillName | languageKeyFormatter | siteStrings : skill.skillName} 3581 </div> 3582 <div class="col-2 inner-column"> 3583 <cg-quantity-input 3584 product.two-way="skill"
3585 value.two-way="skill.startLevel & debounce:200" 3586 ></cg-quantity-input> 3587 </div> 3588 <div class="col-2 inner-column"> 3589 <cg-quantity-input 3590 product.two-way="skill" 3591 value.two-way="skill.endLevel & debounce:200" 3592 ></cg-quantity-input> 3593 </div> 3594 <div class="col-3 ps-4 ps-lg-3 inner-column"> 3595 \${skill.price | currencyFormat & async} 3596 </div> 3597 <div class="col-2 inner-column"> 3598 \${skill.goldRequired} \${currentGame.currencyProductSymbol ? currentGame.currencyProductSymbol : 'Unit'} 3599 </div> 3600 </div> 3601 <div class="col-12 row inner-row powerleveling-border d-inline-flex d-sm-none ps-0" repeat.for="skill of skillCategory.group" if.bind="!loading"> 3602 <div class="col-1 ps-0"> 3603 <div class="row ps-1"> 3604 <div class="col-12"> 3605 <img if.bind="skill.imagePath" class="item-image-icon" src="\${productAwsEndpoint}\${skill.imagePath}" alt="skill" loading="lazy"> 3606 <span else class="material-icons-outlined text-white">image_not_supported</span> 3607 </div> 3608 </div> 3609 </div> 3610 <div class="m-row ps-4"> 3611 <div class="cell-top"> 3612 <p if.bind="skill.skillName.length > 24" 3613 class="m-0 my-2 table-mobile-font text-truncate" 3614 mdc-tooltip="value.bind: skill.skillName; y-position: BELOW" 3615 mdc-tooltip.ref="skillNameTitleTooltip" 3616 click.delegate="helper.showPopup({content: skillNameTitleTooltip})" 3617 mouseover.trigger="tooltipArrowStyling.toView(skillNameTitleTooltip)">\${skill.skillName | languageKeyFormatter | siteStrings : skill.skillName}</p> 3618 <p else class="m-0 my-2 table-mobile-font">\${skill.skillName | languageKeyFormatter | siteStrings : skill.skillName}</p> 3619 </div> 3620 <div class="cell-bot"> 3621 <p class="m-0 table-mobile-small-font mb-1">\${'CG_CURRENT_LEVEL' | siteStrings}</p> 3622 <cg-quantity-input 3623 product.two-way="skill" 3624 value.two-way="skill.startLevel & debounce:200" 3625 ></cg-quantity-input> 3626 </div> 3627 </div> 3628 <div class="m-row"> 3629 <p class="m-0 table-mobile-small-font mb-1">\${'CG_EXPECTED_LEVEL' | siteStrings}</p> 3630 <cg-quantity-input 3631 product.two-way="skill" 3632 value.two-way="skill.endLevel & debounce:200" 3633 ></cg-quantity-input> 3634 </div> 3635 <div class="m-row"> 3636 <div class="cell-top"> 3637 <p class="m-0 mt-1 table-mobile-small-font">\${'CG_GOLD' | siteStrings}</p> 3638 <p class="m-0 table-mobile-font">\${skill.goldRequired} \${currentGame.currencyProductSymbol ? currentGame.currencyProductSymbol : 'Unit'}</p> 3639 </div> 3640 <div class="cell-bot"> 3641 <p class="m-0 mt-1 table-mobile-small-font">\${'CG_PRICE' | siteStrings}</p> 3642 <p class="m-0 mb-1 table-mobile-font">\${skill.price | currencyFormat & async}</p> 3643 </div> 3644 </div> 3645 </div> 3646 </div> 3647 </td> 3648 </tr> 3649 </tbody> 3650 </table> 3651 </div> 3652 <div> 3653 <table class="mdc-data-table__table"> 3654 <tfoot class="\${pageLoading ? 'd-flex sticky-footer' : ''}" skeleton-loading.bind="pageLoading"> 3655 <tr> 3656 <th class="mdc-data-table__header-cell text-start" role="columnheader" scope="col"> 3657 <div class="row d-none d-sm-flex"> 3658 <div class="col-1 inner-column-footer"></div> 3659 <div class="col-2 inner-column-footer">Totals</div> 3660 <div class="col-2 inner-column-footer">\${totalLevelCurrent}</div> 3661 <div class="col-2 inner-column-footer">\${totalLevelExpected}</div> 3662 <div class="col-3 ps-4 inner-column-footer">\${totalPrice | currencyFormat & async}</div> 3663 <div class="col-2 inner-column-footer">\${totalGold} \${currentGame.currencyProductSymbol ? currentGame.currencyProductSymbol : 'Unit'}</div> 3664 </div> 3665 <div class="d-flex flex-row d-sm-none"> 3666 <div class="col-2 table-mobile-row me-2"> 3667 <p class="m-0 table-mobile-font">Totals</p> 3668 </div> 3669 <div class="col-2 table-mobile-row"> 3670 <p class="m-0 table-mobile-small-font">Current LVL</p> 3671 <p class="m-0 table-mobile-font">\${totalLevelCurrent}</p> 3672 </div> 3673 <div class="col-3 table-mobile-row"> 3674 <p class="m-0 table-mobile-small-font">Expected LVL</p> 3675 <p class="m-0 table-mobile-font">\${totalLevelExpected}</p> 3676 </div> 3677 <div class="col-2 table-mobile-row"> 3678 <p class="m-0 table-mobile-small-font">\${'CG_GOLD' | siteStrings}</p> 3679 <p class="m-0 table-mobile-font">\${totalGold} \${currentGame.currencyProductSymbol ? currentGame.currencyProductSymbol : 'Unit'}</p> 3680 <p class="m-0 table-mobile-small-font">\${'CG_PRICE' | siteStrings}</p> 3681 <p class="m-0 table-mobile-font">\${totalPrice | currencyFormat & async}</p> 3682 </div> 3683 </div> 3684 </th> 3685 </tr> 3686 </tfoot> 3687 </table> 3688 </div> 3689 </div> 3690 <!-- Checkout Button --> 3691 <div class="row template-content-separation"> 3692 <div class="col-12 col-sm-10 col-lg-8"> 3693 <div class="d-flex flex-column"> 3694 <div class="row checkbox-row"> 3695 <div class="col-12 col-lg-5"> 3696 <mdc-form-field skeleton-loading.bind="pageLoading"> 3697 <mdc-radio checked.bind="haveGold" model.bind="true" class="radio"></mdc-radio> 3698 <label class="text-white text-regular">\${'CG_ALREADY_HAVE' | siteStrings} <span class="text-green">\${totalGold} \${currentGame.currencyProductSymbol ? currentGame.currencyProductSymbol : 'Unit'}</span> \${'CG_BLANK_IN_THE_BANK' | siteStrings}</label> 3699 </mdc-form-field> 3700 </div> 3701 <div class="col-12 col-lg-7"> 3702 <mdc-form-field skeleton-loading.bind="pageLoading"> 3703 <mdc-radio checked.bind="haveGold" model.bind="false" class="radio"></mdc-radio> 3704 <label class="text-white text-regular">\${'CG_WILL_PROVIDE' | siteStrings} <span class="text-green">\${totalGold} \${currentGame.currencyProductSymbol ? currentGame.currencyProductSymbol : 'Unit'}</span> (\${currentGame.currencyProductSymbol ? currentGame.currencyProductSymbol : 'Unit'} Price: \${totalGoldPrice | currencyFormat:'(0,0.00[0])' & async})</label> 3705 </mdc-form-field> 3706 </div> 3707 </div> 3708 <page-content-area if.bind="(dynamicDisclaimer || viewingAsAdmin) && !pageLoading" class="optimized-method text-small font-light mb-3 mb-lg-0 line-height-reduced mt-0 mt-lg-2 mt-xl-0" key="\${keyName}_DISCLAIMER"></page-content-area>
3709 <span if.bind="!dynamicDisclaimer && !viewingAsAdmin" class="optimized-method text-small font-light mb-3 mb-lg-0 line-height-reduced mt-0 mt-lg-2 mt-xl-0" skeleton-loading.bind="pageLoading"> 3710 \${'CG_OPTIMIZED_TRAINING_METHODS_MESSAGE_1' | siteStrings} 3711 <div class="mt-2"> 3712 \${'CG_CUSTOM_QUOTE_MESSAGE_1' | siteStrings} 3713 <a href="https://discord.gg/chicks-boosting" class="cursor-pointer text-decoration-underline" target="_blank" rel="nofollow noopener noreferrer">discord.gg/chicks-boosting</a>\${'CG_CUSTOM_QUOTE_MESSAGE_2' | siteStrings} 3714 <span class="cursor-pointer text-decoration-underline" click.delegate="openLivechat()">\${'CG_CUSTOM_QUOTE_MESSAGE_3' | siteStrings}</span>. 3715 </div> 3716 </span> 3717 </div> 3718 </div> 3719 <div if.bind="width >= tablet && !addedToCart" class="d-flex col-12 col-lg-4 ps-lg-4 justify-content-lg-end"> 3720 <button 3721 mdc-button 3722 outlined 3723 type="submit" 3724 click.delegate="addToCart()" 3725 class="review-button mt-lg-2 p-4 button-blue-filled" 3726 skeleton-loading.bind="pageLoading" 3727 > 3728 \${'CG_ADD_TO_CART' | siteStrings}: 3729 </button> 3730 </div> 3731 <div if.bind="width >= tablet && addedToCart" class="d-flex col-6 col-lg-2 ps-lg-4 justify-content-lg-end"> 3732 <button mdc-button class="w-100 mt-lg-2 p-4 button-gray-filled text-gray font-light" type="button" click.delegate="addedToCart = false">\${'CG_KEEP_SHOPPING' | siteStrings}:</button> 3733 </div> 3734 <div if.bind="width >= tablet && addedToCart" class="d-flex col-6 col-lg-2 ps-lg-4 justify-content-lg-end"> 3735 <a click.trigger="handleCheckoutButton()" mdc-button class="w-100 mt-lg-2 p-4 button-blue-filled">Checkout</a> 3736 </div> 3737 <div if.bind="width < tablet" class="floating-bottom-bar-service d-block d-xl-none py-2"> 3738 <button if.bind="!addedToCart" mdc-button outlined type="submit" click.delegate="addToCart()" class="review-button mt-lg-2 p-4 button-blue-filled text-large">\${'CG_ADD_TO_CART' | siteStrings}:</button> 3739 <a if.bind="addedToCart" click.trigger="handleCheckoutButton()" mdc-button class="w-100 mt-lg-2 p-4 button-blue-filled text-large">Checkout \u2022 \${totalPrice | currencyFormat & async}</a> 3740 </div> 3741 </div> 3742 <!-- Page Content --> 3743 <cg-seo-dropdown is-loading.bind="pageLoading" header-title.bind="'CG_VIEW_MORE' | siteStrings"> 3744 <cg-template-service key.bind="keyName"> 3745 </cg-template-service> 3746 </cg-seo-dropdown> 3747 </div> 3748</template> 3749`;f.default=s}),
3749"pages/services/runescape-custom-order/runescape-custom-order.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 3750 <div ref="runescapeCustomOrderContainer" id="runescape-custom-order"> 3751 <div 3752 show.bind="pageLoading" 3753 class="main-content-block-no-border position-relative d-none d-lg-block" 3754 skeleton-loading="is-loading.bind:pageLoading;force-div:true;height:336px;width:100%;"> 3755 </div> 3756 <div 3757 show.bind="pageLoading" 3758 class="main-content-block-no-border position-relative d-lg-none skeleton-fields-grid"> 3759 <div 3760 repeat.for="item of skeletonFieldPlaceholders" 3761 class="position-relative" 3762 skeleton-loading="is-loading.bind:pageLoading;force-div:true;height:52px;width:100%;"> 3763 </div> 3764 </div> 3765 <div show.bind="!pageLoading" class="main-content-block-no-border position-relative" ref="runescapeCustomOrderMainContainer"> 3766 <div class="col g-4 main-dynamic-service-container"> 3767 <div class="dynamic-service-container-co"> 3768 <div class="dynamic-filters" element.ref="dynamicFiltersContainer"> 3769 <div class="autocomplete-select-game" if.bind="mappedGames.length > 0"> 3770 <cg-autocomplete 3771 label.bind="'Game' | autoSiteString" 3772 leading-icon="stadia_controller" 3773 items.bind="mappedGames" 3774 itemselected.delegate="gameChanged($event)" 3775 data-cy="game-selector" 3776 trailing-icon="arrow_drop_down" 3777 skeleton-loading="is-loading.bind:pageLoading;force-div:true;height:52px;width:var(--fields-width-skeleton);" 3778 ></cg-autocomplete> 3779 </div> 3780 <div if.bind="dynamicFormFields.length" repeat.for="field of dynamicFormFields"> 3781 <cg-dynamic-field-v2 3782 field.bind="field" 3783 change-function.bind="handleFieldChange" 3784 page-loading.bind="pageLoading" 3785 ></cg-dynamic-field-v2> 3786 </div> 3787 <div class="position-relative"> 3788 <cds-text-field 3789 data-cy="additional-information" 3790 ref="additionalInformationTextArea" 3791 variant="filled" 3792 type="textarea" 3793 placeholder.bind="'Enter Additional Information' | autoSiteString" 3794 label.bind="'Additional Information' | autoSiteString" 3795 value.two-way="additionalInformation" 3796 trailing-icon-color="#37DA97" 3797 state.bind="fieldState" 3798 cols="20" 3799 rows="1" 3800 max-length="300" 3801 focus.trigger="onFocus()" 3802 blur.trigger="onBlur()" 3803 ></cds-text-field> 3804 </div> 3805 <div id="drop-zone-outside" class="position-relative drop-zone-outside"> 3806 <cg-file-uploader 3807 class="style-uploader" 3808 ref="fileInput" 3809 label.bind="'CG_UPLOAD_OR_DRAG_FILES' | autoSiteString" 3810 files-list.two-way="filesList" 3811 y-offset="-18" 3812 ></cg-file-uploader> 3813 </div> 3814 <div if.bind="tempFiles.length" class="cg-files-list d-flex"> 3815 <cds-list class="w-70 container-files container-files\${showLess ? '-close' : '-more'} ps-0 d-grid"> 3816 <section id="scrollbar" class="screenshots-scrollbar" data-simplebar> 3817 <div class="files-container \${fileContainerOpened} d-grid"> 3818 <cds-list-item repeat.for="file of tempFiles | spliceArray:0:filesToShow"> 3819 <div class="flex-center-between"> 3820 <div class="file-name text-white cursor-default text-truncate"> 3821 \${helper.sanitizeHtml(file.name, true)} 3822 </div>
3823 <cds-icon if.bind="file.isLoaded" 3824 icon="close" 3825 class="text-white ms-auto" 3826 click.trigger="deleteItem($index)" 3827 role="button"> 3828 </cds-icon> 3829 <cds-circular-progress if.bind="!file.isLoaded" size="small"></cds-circular-progress> 3830 </div> 3831 </cds-list-item> 3832 </div> 3833 </section> 3834 </cds-list> 3835 <div show.bind="isOverflowing && !showLess" class="style-more cursor-pointer" click.delegate="seeMore()"><span>\${'See More' | autoSiteString}<span></div> 3836 <div show.bind="isOverflowing && showLess" class="style-close cursor-pointer" click.delegate="toggleFilesVisibility()"><span>\${'Close' | autoSiteString}<span></span></div> 3837 </div> 3838 </div> 3839 </div> 3840 <div class="d-flex justify-content-center style-request \${width < desktop ? 'floating-bottom-bar-service' : ''}"> 3841 <cds-button 3842 disabled.bind="!pageLoading && requestQuoteDisabled" 3843 type="submit" 3844 class="submit-button request-quote" 3845 click.trigger="handleSelectedFields()" 3846 > 3847 <cds-circular-progress if.bind="triggeredService"></cds-circular-progress> 3848 <span else>\${'CG_REQUEST_QUOTE' | autoSiteString}</span> 3849 </cds-button> 3850 </div> 3851 </div> 3852 </div> 3853 <!-- Page Content --> 3854 <div> 3855 <cg-seo-dropdown is-loading.bind="pageLoading" header-title.bind="'CG_VIEW_MORE' | siteStrings"> 3856 <cg-template-service ref="templateServiceElement" key.bind="keyName"> 3857 </cg-template-service> 3858 </cg-seo-dropdown> 3859 </div> 3860 </div> 3861</template> 3862`;f.default=s}),
3862"pages/services/runescape-diaries/runescape-diaries.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 3863 <div id="runescape-diaries" class="runescape-diaries"> 3864 <!-- Diaries RS Table --> 3865 <div id="diaries-table" class="mdc-data-table main-content-block"> 3866 <div if.bind="!isDrawerInstance"> 3867 <table class="mdc-data-table__table \${pageLoading ? 'skeleton-wrapper' : ''}"> 3868 <thead> 3869 <tr class="mdc-data-table__header-row top-header d-none d-lg-table-row"> 3870 <th class="skill-header mdc-data-table__header-cell d-none d-lg-table-cell" 3871 role="columnheader" scope="col"> 3872 <div class="container-top th-sort-container" skeleton-loading="is-loading.bind:pageLoading;height:20px;"> 3873 <span class="th-sort-text th-sort-text--skills">\${'CG_DIARIES' | siteStrings}</span> 3874 <div class="mdc-icon-button material-icons mdc-data-table__sort-icon-button text-white th-sort-arrows"> 3875 <cds-icon-button 3876 id="diaries-up" 3877 ref="diariesArrowUp" 3878 class="position-relative sort-asc" 3879 click.trigger="sortBy(0, diariesArrowUp)" 3880 >
3881 <cds-icon icon="arrow_drop_up"></cds-icon> 3882 </cds-icon-button> 3883 <cds-icon-button 3884 id="diaries-down" 3885 ref="diariesArrowDown" 3886 class="position-relative sort-desc" 3887 click.trigger="sortBy(0, diariesArrowDown)" 3888 > 3889 <cds-icon icon="arrow_drop_down"></cds-icon> 3890 </cds-icon-button> 3891 </div> 3892 </div> 3893 </th> 3894 <th class="skill-header mdc-data-table__header-cell d-none d-lg-table-cell" role="columnheader" scope="col"> 3895 <div class="container-top container-right th-sort-container" skeleton-loading="is-loading.bind:pageLoading;height:20px;"> 3896 <span class="th-sort-text">\${'CG_PRICE' | siteStrings}</span> 3897 <div class="mdc-icon-button material-icons mdc-data-table__sort-icon-button text-white th-sort-arrows"> 3898 <cds-icon-button 3899 id="price-up" 3900 ref="priceArrowUp" 3901 class="position-relative sort-asc" 3902 click.trigger="sortBy(1, priceArrowUp)" 3903 >
3904 <cds-icon icon="arrow_drop_up"></cds-icon> 3905 </cds-icon-button> 3906 <cds-icon-button 3907 id="price-down" 3908 ref="priceArrowDown" 3909 class="position-relative sort-desc" 3910 click.trigger="sortBy(1, priceArrowDown)" 3911 > 3912 <cds-icon icon="arrow_drop_down"></cds-icon> 3913 </cds-icon-button> 3914 </div> 3915 </div> 3916 </th> 3917 <th class="skill-header mdc-data-table__header-cell d-none d-lg-table-cell" role="columnheader" scope="col"> 3918 <div class="container-top container-right th-sort-container" skeleton-loading="is-loading.bind:pageLoading;height:20px;"> 3919 <span class="th-sort-text">\${'CG_GOLD' | siteStrings}</span> 3920 <div class="mdc-icon-button material-icons mdc-data-table__sort-icon-button text-white th-sort-arrows"> 3921 <cds-icon-button 3922 id="gold-up" 3923 ref="goldArrowUp" 3924 class="position-relative sort-asc" 3925 click.trigger="sortBy(2, goldArrowUp)" 3926 >
3927 <cds-icon icon="arrow_drop_up"></cds-icon> 3928 </cds-icon-button> 3929 <cds-icon-button 3930 id="gold-down" 3931 ref="goldArrowDown" 3932 class="position-relative sort-desc" 3933 click.trigger="sortBy(2, goldArrowDown)" 3934 > 3935 <cds-icon icon="arrow_drop_down"></cds-icon> 3936 </cds-icon-button> 3937 </div> 3938 </div> 3939 </th> 3940 <th class="skill-header mdc-data-table__header-cell d-none d-lg-table-cell" role="columnheader" scope="col"> 3941 <div class="container-top container-right th-sort-container" skeleton-loading="is-loading.bind:pageLoading;height:20px;">\${'CG_DESCRIPTION' | siteStrings}</div> 3942 </th> 3943 </tr> 3944 <tr class="mdc-data-table__header-row sub-header \${pageLoading ? 'skeleton-sub-header' : ''}"> 3945 <th class="mdc-data-table__header-cell skill-header text-start" colspan="3"> 3946 <img 3947 class="sub-header-icon" 3948 src="/icons/leveling-category-icon.svg" 3949 alt="skill" 3950 loading="lazy" 3951 if.bind="!pageLoading" 3952 > 3953 <span skeleton-loading="is-loading.bind:pageLoading;height:20px;" class="products-string d-none d-lg-inline" innerhtml.bind="productsStringLarge | autoSiteString"></span> 3954 <span skeleton-loading="is-loading.bind:pageLoading;height:20px;" class="products-string d-lg-none" innerhtml.bind="productsStringShort | autoSiteString"></span> 3955 </th> 3956 <div class="dropdown"> 3957 <th class="skill-header mdc-data-table__header-cell show-product" role="columnheader" 3958 scope="col" colspan="2"> 3959 <button 3960 id="show-products-selector" 3961 class="btn cursor-pointer text-white p-0 product ms-auto" 3962 data-bs-toggle="dropdown" 3963 data-bs-display="static" 3964 data-bs-auto-close="outside" 3965 aria-expanded="false" 3966 skeleton-loading="is-loading.bind:pageLoading;height:20px;" 3967 > 3968 <span class="d-none d-md-inline">\${'CG_SHOW_PRODUCTS' | siteStrings}</span> 3969 <span class="d-inline d-md-none">\${cartLabel}</span> 3970 <div class="filter-arrow-icon"> 3971 <cds-icon-button class="material-icons open-filter">
3972 <cds-icon icon="arrow_drop_down"></cds-icon> 3973 </cds-icon-button> 3974 </div> 3975 </button> 3976 3977 <div id="show-products-dropdown" 3978 class="dropdown-menu selected-products position-absolute dropdown-menu-lg-start dropdown-menu-end" 3979 aria-labelledby="show-products-selector"> 3980 <div class="row p-3"> 3981 <p class="col-10 p-selected-title"> 3982 \${'CG_SELECTED_PRODUCTS' | siteStrings} 3983 </p> 3984 <button class="col-2 ps-button" click.delegate="closeFilter()"> 3985 <img src="/icons/close-circle-icon.svg" alt="close-icon"> 3986 </button> 3987 </div> 3988 <section class="products-selected pb-3" data-simplebar> 3989 <p class="p-2 px-3 product-selected text-truncate" 3990 repeat.for="diary of selectedDiaries"> 3991 \${diary.product.name}\${diary.difficulty ? ' ' + diary.difficulty : ''}</p> 3992 </section> 3993 <div class="dividing-line-container m-0 p-0"> 3994 <div class="dividing-line m-0 p-0"> 3995 </div> 3996 </div> 3997 <div class="row p-3"> 3998 <p class="col-10 p-total"> 3999 \${'CG_PRODUCTS' | siteStrings}: 4000 </p> 4001 <p class="col-2 p-total"> 4002 \${selectedDiaries.length} 4003 </p> 4004 </div> 4005 </div> 4006 </th> 4007 </div> 4008 </tr> 4009 </thead> 4010 </table> 4011 </div> 4012 <div data-simplebar id="mobile-table-scrollbar" class.bind="isDrawerInstance ? 'drawner-table' : ''"> 4013 <table class="mdc-data-table__table t-body"> 4014 <tbody class="mdc-data-table__content"> 4015 <tr class="mdc-data-table__row" repeat.for="diaryGroup of diariesGroup" show.bind="!pageLoading && diaryGroup.show"> 4016 <td class="mdc-data-table__cell diary-cell xp-0"> 4017 <div class="inner-row cursor-pointer diary-group d-flex align-items-center" click.trigger="openDifficulty(difficultyBox, arrowBox)"> 4018 <div class="dt-display-content mr-auto flex-grow-1"> 4019 <span 4020 if.bind="diaryGroup.name.length > 24" 4021 class="text-truncate column-text--skill" 4022 mdc-tooltip="value.bind: diaryGroup.name; y-position: BELOW" 4023 mdc-tooltip.ref="diaryGroupNameTooltip" 4024 click.delegate="helper.showPopup({content: diaryGroupNameTooltip})" 4025 mouseover.trigger="tooltipArrowStyling.toView(diaryGroupNameTooltip)"> 4026 \${diaryGroup.name | languageKeyFormatter | siteStrings:diaryGroup.name} 4027 </span>
4028 <span else class="column-text--skill">\${diaryGroup.name | languageKeyFormatter | siteStrings:diaryGroup.name}</span> 4029 </div> 4030 <div class="filter-arrow-icon"> 4031 <cds-icon-button 4032 class="open-filter arrow-difficulty \${$index === 0 ? 'arrow-open' : ''}" 4033 element.ref="arrowBox" 4034 > 4035 <cds-icon icon="arrow_drop_down"></cds-icon> 4036 </cds-icon-button> 4037 </div> 4038 </div> 4039 <div class="p-0 difficulty-box \${$index === 0 ? 'db-open' : ''}" element.ref="difficultyBox"> 4040 <div class="inner-row diary-row" 4041 repeat.for="diary of diaryGroup.group" 4042 if.bind="diary.show && !loading"> 4043 <div class="diary-checkbox-col"> 4044 <div class="diary-checkbox-wrapper"> 4045 <cds-checkbox 4046 state.bind="diary.selected ? 'checked' : 'unchecked'" 4047 input.trigger="diarySelection(diary)" 4048 class="checkbox quest-box"> 4049 </cds-checkbox> 4050 <span class="diary-difficulty">\${diary.difficulty}</span> 4051 </div> 4052 </div> 4053 <div class="diary-price-col"> 4054 <p class="diary-label d-block d-lg-none">\${'CG_PRICE' | siteStrings}</p> 4055 <p class="diary-value">\${diary.displayPrice | currencyFormat & async}</p> 4056 </div> 4057 <div class="diary-gold-col"> 4058 <p class="diary-label d-block d-lg-none">\${'CG_GOLD' | siteStrings}</p> 4059 <p class="diary-value">\${diary.product.goldRequired}\${'CG_MILLION_SUFFIX' | siteStrings: 'M'}</p> 4060 </div> 4061 <div class="diary-link-col"> 4062 <a 4063 if.bind="diary.product.wikiLink" 4064 href="\${diary.product.wikiLink}" 4065 class="d-flex align-items-center" 4066 target="_blank" 4067 rel="nofollow noopener noreferrer" 4068 > 4069 <span class="diary-link-text">\${'CG_SEE_REQUIREMENTS' | siteStrings}</span> 4070 <span class="material-icons-outlined img-link">\${'open_in_new' | autoSiteString}</span> 4071 </a> 4072 </div> 4073 </div> 4074 </div> 4075 </td> 4076 </tr> 4077 <tr class="mdc-data-table__row skeleton-rows" show.bind="pageLoading"> 4078 <td class="mdc-data-table__cell diary-cell xp-0"> 4079 <div class="inner-row diary-group d-flex align-items-center"> 4080 <div class="dt-display-content mr-auto flex-grow-1"> 4081 <div class="column-text--skill" skeleton-loading="is-loading.bind:pageLoading;
4081width:200px;height:20px;"></div> 4082 </div> 4083 <div class="filter-arrow-icon"> 4084 <div skeleton-loading="is-loading.bind:pageLoading;width:20px;height:20px;"></div> 4085 </div> 4086 </div> 4087 </td> 4088 </tr> 4089 <tr class="mdc-data-table__row skeleton-rows" repeat.for="i of 3" show.bind="pageLoading"> 4090 <td class="mdc-data-table__cell diary-cell xp-0"> 4091 <div class="inner-row diary-row"> 4092 <div class="diary-checkbox-col"> 4093 <div class="diary-checkbox-wrapper"> 4094 <span class="d-inline-block" skeleton-loading="is-loading.bind:pageLoading;width:24px;height:24px;"></span> 4095 <span class="diary-difficulty d-inline-block mt-0" skeleton-loading="is-loading.bind:pageLoading;width:80%;height:16px;"></span> 4096 </div> 4097 </div> 4098 <div class="diary-price-col"> 4099 <div class="diary-label d-block d-lg-none"> 4100 <div skeleton-loading="is-loading.bind:pageLoading;width:40%;height:10px;"></div> 4101 </div> 4102 <div class="diary-value"> 4103 <div skeleton-loading="is-loading.bind:pageLoading;width:80%;height:16px;"></div> 4104 </div> 4105 </div> 4106 <div class="diary-gold-col"> 4107 <div class="diary-label d-block d-lg-none"> 4108 <div skeleton-loading="is-loading.bind:pageLoading;width:40%;height:10px;"></div> 4109 </div> 4110 <div class="diary-value"> 4111 <div skeleton-loading="is-loading.bind:pageLoading;width:80%;height:16px;"></div> 4112 </div> 4113 </div> 4114 <div class="diary-link-col"> 4115 <div class="diary-link-text" skeleton-loading="is-loading.bind:pageLoading;width:80%;height:16px;"></div> 4116 </div> 4117 </div> 4118 </td> 4119 </tr> 4120 <tr class="mdc-data-table__row skeleton-rows" repeat.for="i of 3" show.bind="pageLoading"> 4121 <td class="mdc-data-table__cell diary-cell xp-0"> 4122 <div class="inner-row diary-group d-flex align-items-center"> 4123 <div class="dt-display-content mr-auto flex-grow-1"> 4124 <div class="column-text--skill" skeleton-loading="is-loading.bind:pageLoading;width:200px;height:20px;"></div> 4125 </div> 4126 <div class="filter-arrow-icon"> 4127 <div class="d-inline-block" skeleton-loading="is-loading.bind:pageLoading;width:20px;height:20px;"></div> 4128 </div> 4129 </div> 4130 </td> 4131 </tr> 4132 </tbody> 4133 </table> 4134 </div> 4135 <div> 4136 <table class="mdc-data-table__table \${pageLoading ? 'skeleton-wrapper' : ''}"> 4137 <tfoot> 4138 <tr> 4139 <th class="mdc-data-table__header-cell text-start \${pageLoading ? 'sk-loading' : ''}" role="columnheader" scope="col"> 4140 <div class="row-border footer-row"> 4141 <div class="footer-column first-column" skeleton-loading="is-loading.bind:pageLoading;height:20px"> 4142 <p class="footer-value">\${'CG_TOTAL' | siteStrings}</p> 4143 </div> 4144 <div class="footer-column second-column" skeleton-loading="is-loading.bind:pageLoading;height:20px"> 4145 <p class="footer-label">\${'CG_PRICE' | siteStrings}</p> 4146 <p class="footer-value">\${totalPrice | currencyFormat & async}</p> 4147 </div> 4148 <div class="footer-column third-column" skeleton-loading="is-loading.bind:pageLoading;height:20px"> 4149 <p class="footer-label">\${'CG_GOLD' | siteStrings}</p> 4150 <p class="footer-value">\${totalGold}\${'CG_MILLION_SUFFIX' | siteStrings: 'M'}</p> 4151 </div> 4152 <div class="footer-column last-column d-none d-md-block" skeleton-loading="is-loading.bind:pageLoading;height:20px"> 4153 <p class="footer-value">\${selectedDiaries.length} \${'CG_PRODUCTS_SELECTED' | siteStrings}</p> 4154 </div> 4155 </div> 4156 </th> 4157 </tr> 4158 </tfoot> 4159 </table> 4160 </div> 4161 </div> 4162 <!-- Checkout Button --> 4163 <div class="template-content-separation service-checkout-section" if.bind="!isDrawerInstance" skeleton-loading.bind="pageLoading"> 4164 <div class="d-flex flex-column flex-wrap w-100"> 4165 <div class="d-flex flex-column flex-md-row checkbox-row"> 4166 <cds-radio-button-group class="cds-radio-group-responsive d-flex flex-column flex-md-row"> 4167 <div class="d-flex align-items-center p-0"> 4168 <cds-radio-button 4169 value="true" 4170 name="haveGold" 4171 checked.bind="haveGold" 4172 skeleton-loading.bind="pageLoading" 4173 click.trigger="handleRadioInput(true)" 4174 ></cds-radio-button>
4174 4175 <label class="text-white ps-1 ps-lg-2" style="cursor:pointer;" click.delegate="handleRadioInput(true)"> 4176 \${'CG_ALREADY_HAVE' | siteStrings} 4177 <span class="text-green">\${totalGold}\${'CG_MILLION_SUFFIX' | siteStrings: 'M'}</span> 4178 \${'CG_GOLD_IN_THE_BANK' | siteStrings} 4179 </label> 4180 </div> 4181 <div class="d-flex align-items-center p-0"> 4182 <cds-radio-button 4183 value="false" 4184 name="haveGold" 4185 checked.bind="!haveGold" 4186 skeleton-loading.bind="pageLoading" 4187 click.trigger="handleRadioInput(false)" 4188 ></cds-radio-button> 4189 <label class="text-white ps-1 ps-lg-2" style="cursor:pointer;" click.delegate="handleRadioInput(false)"> 4190 \${'CG_WILL_PROVIDE' | siteStrings} 4191 <span class="text-green">\${totalGold}\${'CG_MILLION_SUFFIX' | siteStrings: 'M'}</span> 4192 \${'CG_GOLD' | siteStrings} (\${'CG_GOLD_PRICE' | siteStrings}: \${totalGoldPrice | currencyFormat:'(0,0.00[0])' & async}) 4193 </label> 4194 </div> 4195 </cds-radio-button-group> 4196 </div> 4197 <page-content-area 4198 if.bind="(dynamicDisclaimer || viewingAsAdmin) && !pageLoading" 4199 class="optimized-method" 4200 key="\${keyName}_DISCLAIMER"> 4201 </page-content-area> 4202 <span 4203 if.bind="!dynamicDisclaimer && !viewingAsAdmin" 4204 class="optimized-method d-none d-lg-inline" 4205 > 4206 \${'CG_OPTIMIZED_TRAINING_METHODS_MESSAGE_3' | siteStrings | sanitizeHtml:true} 4207 \${'CG_CUSTOM_QUOTE_MESSAGE_1' | siteStrings | sanitizeHtml:true} 4208 <a href="https://discord.gg/chicks-boosting" class="cursor-pointer text-decoration-underline" target="_blank" rel="nofollow noopener noreferrer">discord.gg/chicks-boosting</a>\${'CG_CUSTOM_QUOTE_MESSAGE_2' | siteStrings | sanitizeHtml:true} 4209 <span class="cursor-pointer text-decoration-underline" click.delegate="openLivechat()">\${'CG_CUSTOM_QUOTE_MESSAGE_3' | siteStrings | sanitizeHtml:true}</span> 4210 </span> 4211 <span 4212 if.bind="!dynamicDisclaimer && !viewingAsAdmin" 4213 class="optimized-method d-lg-none" 4214 > 4215 \${'CG_OPTIMIZED_TRAINING_METHODS_MESSAGE_4' | siteStrings | sanitizeHtml:true} 4216 <span class="cursor-pointer text-decoration-underline" click.delegate="openLivechat()"> 4217 \${'CG_CUSTOMER_SUPPORT' | siteStrings | sanitizeHtml:true} 4218 </span> 4219 </span> 4220 </div> 4221 4222 <div class="d-flex"> 4223 <div if.bind="width >= desktop && !addedToCart" class="d-flex ps-4 justify-content-end"> 4224 <button 4225 mdc-button 4226 outlined 4227 type="submit" 4228 click.delegate="addToCart()" 4229 class="review-button p-4 button-blue-filled" 4230 >\${'CG_ADD_TO_CART' | siteStrings}</button> 4231 </div> 4232 <div if.bind="width >= desktop && addedToCart" class="d-flex ps-4 justify-content-end"> 4233 <button 4234 mdc-button 4235 class="review-button p-4 button-gray-filled text-gray font-light" 4236 type="button" 4237 click.delegate="addedToCart = false" 4238 >\${'CG_KEEP_SHOPPING' | siteStrings}</button> 4239 </div> 4240 <div if.bind="width >= desktop && addedToCart" class="d-flex ps-4 justify-content-end"> 4241 <a 4242 mdc-button 4243 click.trigger="handleCheckoutButton()" 4244 class="review-button p-4 button-blue-filled" 4245 >\${'CG_CHECKOUT' | siteStrings}</a> 4246 </div> 4247 </div> 4248 <!-- Tablet & mobile fixed bottom button --> 4249 <div if.bind="width < desktop && !pageLoading" class="floating-bottom-bar-service d-block py-2"> 4250 <div if.bind="!addedToCart" class="d-flex col-12"> 4251 <button 4252 mdc-button outlined 4253 type="submit" click.delegate="addToCart()" 4254 class="review-button p-4 button-blue-filled" 4255 >\${'CG_ADD_TO_CART' | siteStrings} \u2022 \${totalPrice | currencyFormat & async}</button> 4256 </div> 4257 <div if.bind="addedToCart" class="d-flex col-12"> 4258 <button 4259 mdc-button 4260 class="w-100 p-4 button-gray-filled text-gray mr-2" 4261 type="button" click.delegate="addedToCart = false" 4262 >\${'CG_KEEP_SHOPPING' | siteStrings}</button> 4263 <a 4264 mdc-button 4265 click.trigger="handleCheckoutButton()" 4266 class="w-100 p-4 button-blue-filled" 4267 >\${'CG_CHECKOUT' | siteStrings}</a> 4268 </div> 4269 </div> 4270 </div> 4271 <!-- Page Content --> 4272 <cg-seo-dropdown 4273 if.bind="!isDrawerInstance" 4274 is-loading.bind="pageLoading" 4275 header-title.bind="'CG_VIEW_MORE' | siteStrings"> 4276 <cg-template-service key.bind="keyName"> 4277 </cg-template-service> 4278 </cg-seo-dropdown> 4279 </div> 4280</template> 4281`;f.default=s}),
4281"pages/services/runescape-minigames/runescape-minigames.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 4282 <div id="runescape-minigames" class="runescape-minigames"> 4283 <!-- Minigames RS Table --> 4284 <div class="mdc-data-table main-content-block"> 4285 <!-- Table head --> 4286 <div class="mdc-data-table__table-container" if.bind="!isDrawerInstance"> 4287 <table class="mdc-data-table__table \${pageLoading ? 'skeleton-wrapper' : ''}"> 4288 <thead> 4289 <tr class="mdc-data-table__header-row top-header d-none d-lg-table-row"> 4290 4291 <th class="skill-header mdc-data-table__header-cell \${pageLoading ? 'sk-loading' : ''}" role="columnheader" scope="col" colspan="2"> 4292 <div class="container-top" skeleton-loading="is-loading.bind:pageLoading;height:20px;"> 4293 \${'CG_MINIGAMES' | siteStrings} 4294 <div class="mdc-icon-button material-icons mdc-data-table__sort-icon-button text-white align-middle th-sort-arrows"> 4295 <cds-icon-button 4296 id="minigame-up" 4297 ref="minigameArrowUp" 4298 class="position-relative sort-asc" 4299 click.trigger="sortBy(0, minigameArrowUp)" 4300 >
4301 <cds-icon icon="arrow_drop_up"></cds-icon> 4302 </cds-icon-button> 4303 <cds-icon-button 4304 id="minigame-down" 4305 ref="minigameArrowDown" 4306 class="position-relative sort-desc" 4307 click.trigger="sortBy(0, minigameArrowDown)" 4308 > 4309 <cds-icon icon="arrow_drop_down"></cds-icon> 4310 </cds-icon-button> 4311 </div> 4312 </div> 4313 </th> 4314 4315 <th class="skill-header mdc-data-table__header-cell d-none d-lg-table-cell \${pageLoading ? 'sk-loading' : ''}" role="columnheader" scope="col"> 4316 <div class="container-top" skeleton-loading="is-loading.bind:pageLoading;height:20px;"> 4317 \${'CG_KILLS' | siteStrings} 4318 </div> 4319 </th> 4320 4321 <th class="skill-header mdc-data-table__header-cell d-none d-lg-table-cell \${pageLoading ? 'sk-loading' : ''}" role="columnheader" scope="col"> 4322 <div class="container-top" skeleton-loading="is-loading.bind:pageLoading;height:20px;"> 4323 \${'CG_GOLD' | siteStrings} 4324 <div class="mdc-icon-button material-icons mdc-data-table__sort-icon-button text-white align-middle th-sort-arrows"> 4325 <cds-icon-button 4326 id="gold-up" 4327 ref="goldArrowUp" 4328 class="position-relative sort-asc" 4329 click.trigger="sortBy(1, goldArrowUp)" 4330 >
4331 <cds-icon icon="arrow_drop_up"></cds-icon> 4332 </cds-icon-button> 4333 <cds-icon-button 4334 id="gold-down" 4335 ref="goldArrowDown" 4336 class="position-relative sort-desc" 4337 click.trigger="sortBy(1, goldArrowDown)" 4338 > 4339 <cds-icon icon="arrow_drop_down"></cds-icon> 4340 </cds-icon-button> 4341 </div> 4342 </div> 4343 </th> 4344 4345 <th class="skill-header mdc-data-table__header-cell \${pageLoading ? 'sk-loading' : ''}" role="columnheader" scope="col"> 4346 <div class="container-top container-right" skeleton-loading="is-loading.bind:pageLoading;height:20px;"> 4347 \${'CG_PRICE' | siteStrings} 4348 <div class="mdc-icon-button material-icons mdc-data-table__sort-icon-button text-white align-middle icon-index th-sort-arrows"> 4349 <cds-icon-button 4350 id="price-up" 4351 ref="priceArrowUp" 4352 class="position-relative sort-asc" 4353 click.trigger="sortBy(2, priceArrowUp)" 4354 >
4355 <cds-icon icon="arrow_drop_up"></cds-icon> 4356 </cds-icon-button> 4357 <cds-icon-button 4358 id="price-down" 4359 ref="priceArrowDown" 4360 class="position-relative sort-desc" 4361 click.trigger="sortBy(2, priceArrowDown)" 4362 > 4363 <cds-icon icon="arrow_drop_down"></cds-icon> 4364 </cds-icon-button> 4365 </div> 4366 </div> 4367 </th> 4368 </tr> 4369 <tr class="sub-header"> 4370 <th class="mdc-data-table__header-cell skill-header text-start" colspan="4"> 4371 <img 4372 class="item-image" 4373 src="/icons/leveling-category-icon.svg" 4374 alt="skill" 4375 loading="lazy" 4376 if.bind="!pageLoading" 4377 > 4378 <span 4379 skeleton-loading="is-loading.bind:pageLoading;height:20px;" 4380 innerhtml.bind="productsStringLarge | autoSiteString" 4381 class="products-string d-none d-lg-inline" 4382 ></span> 4383 <span 4384 skeleton-loading="is-loading.bind:pageLoading;width:200px;height:20px;" 4385 innerhtml.bind="productsStringShort | autoSiteString" 4386 class="products-string d-lg-none" 4387 ></span> 4388 </th> 4389 <div class="dropdown"> 4390 <th 4391 class="skill-header mdc-data-table__header-cell" 4392 role="columnheader" 4393 scope="col" 4394 colspan="2" 4395 > 4396 <button 4397 id="show-products-selector" 4398 class="btn cursor-pointer text-white p-0" 4399 data-bs-toggle="dropdown" 4400 data-bs-display="static" 4401 data-bs-auto-close="outside" 4402 aria-expanded="false" 4403 skeleton-loading="is-loading.bind:pageLoading;width:100px;height:20px;" 4404 > 4405 <span class="d-none d-md-inline">\${'CG_SHOW_PRODUCTS' | siteStrings}</span> 4406 <span class="d-inline d-md-none">\${cartLabel}</span> 4407 <div class="filter-arrow-icon"> 4408 <cds-icon-button class="material-icons open-filter">
4409 <cds-icon icon="arrow_drop_down"></cds-icon> 4410 </cds-icon-button> 4411 </div> 4412 </button> 4413 <div id="show-products-dropdown" class="dropdown-menu selected-products position-absolute dropdown-menu-lg-start dropdown-menu-end" aria-labelledby="show-products-selector"> 4414 <div class="row p-3"> 4415 <p class="col-10 p-selected-title"> 4416 \${'CG_SELECTED_PRODUCTS' | siteStrings} 4417 </p> 4418 <button class="col-2 ps-button" click.delegate="closeFilter()"> 4419 <img src="/icons/close-circle-icon.svg" alt="close-icon"> 4420 </button> 4421 </div> 4422 <section class="products-selected pb-3 \${selectedMinigames.length > 10 ? '' : 'unset-mh'}" data-simplebar> 4423 <p class="p-2 px-3 product-selected text-truncate" repeat.for="minigame of selectedMinigames">\${minigame.product.name}</p> 4424 </section> 4425 <div class="dividing-line-container m-0 p-0"> 4426 <div class="dividing-line m-0 p-0"></div> 4427 </div> 4428 <div class="row p-3"> 4429 <p class="col-10 p-total"> 4430 \${'CG_PRODUCTS' | siteStrings}: 4431 </p> 4432 <p class="col-2 p-total"> 4433 \${selectedMinigames.length} 4434 </p> 4435 </div> 4436 </div> 4437 </th> 4438 </div> 4439 </tr> 4440 </thead> 4441 </table> 4442 </div> 4443 4444 <!-- Table Body --> 4445 <div data-simplebar id="mobile-table-scrollbar" class.bind="isDrawerInstance ? 'drawner-table' : ''"> 4446 <div class="mdc-data-table__table-container"> 4447 <table class="mdc-data-table__table t-body"> 4448 <tbody class="mdc-data-table__content"> 4449 <tr class="mdc-data-table__row" repeat.for="minigame of minigames" show.bind="!pageLoading && minigame.show"> 4450 <td class="mdc-data-table__cell text-start"> 4451 <div class="dt-display-content"> 4452 <div show.bind="width < tablet" class="icon-minigame"> 4453 <img 4454 if.bind="minigame.product.imagePath" 4455 class="item-image-icon" 4456 src="\${baseAwsEndpoint}\${minigame.product.imagePath}" 4457 alt="minigame" 4458 loading="lazy" 4459 > 4460 <span else class="material-icons-outlined align-middle">\${'image_not_supported' | autoSiteString}</span> 4461 </div> 4462 <div 4463 if.bind="minigame.product.name.length > 24" 4464 class="text-truncate font-row title-absolute" 4465 mdc-tooltip="value.bind: minigame.product.name; y-position: BELOW" 4466 mdc-tooltip.ref="minigameNameTooltip" 4467 click.delegate="helper.showPopup({content: minigameNameTooltip})" 4468 mouseover.trigger="tooltipArrowStyling.toView(minigameNameTooltip)" 4469 > 4470 \${minigame.product.name | languageKeyFormatter | siteStrings: minigame.product.name} 4471 </div> 4472 <div else class="font-row title-absolute"> 4473 \${minigame.product.name | languageKeyFormatter | siteStrings: minigame.product.name} 4474 </div> 4475 </div> 4476 </td> 4477 4478 <td class="mdc-data-table__cell"> 4479 <div class="dt-display-content"> 4480 <p class="m-0" show.bind="width < desktop"> 4481 \${'CG_KILLS' | siteStrings} 4482 </p> 4483 <cg-quantity-input 4484 product.two-way="minigame"
4485 value.two-way="minigame.kills"> 4486 </cg-quantity-input> 4487 </div> 4488 </td> 4489 4490 <td class="mdc-data-table__cell"> 4491 <div class="dt-display-content"> 4492 <p class="m-0" show.bind="width < desktop"> 4493 \${'CG_GOLD' | siteStrings} 4494 </p> 4495 <div class="font-row"> 4496 \${minigame.displayGoldRequired}\${'CG_MILLION_SUFFIX' | siteStrings: 'M'} 4497 </div> 4498 </div> 4499 </td> 4500 4501 <td class="mdc-data-table__cell"> 4502 <div class="dt-display-content"> 4503 <p class="m-0" show.bind="width < desktop"> 4504 \${'CG_PRICE' | siteStrings} 4505 </p> 4506 <div class="font-row"> 4507 \${minigame.displayPrice | currencyFormat & async} 4508 </div> 4509 </div> 4510 </td> 4511 </tr> 4512 <tr class="mdc-data-table__row skeleton-rows" repeat.for="i of 7" show.bind="pageLoading"> 4513 <td class="mdc-data-table__cell text-start"> 4514 <div class="dt-display-content"> 4515 <div class="icon-minigame d-block d-md-none" skeleton-loading="is-loading.bind:pageLoading;width:28px;height:28px;"></div> 4516 <div class="font-row title-absolute d-block d-md-none" skeleton-loading="is-loading.bind:pageLoading;width:90px;height:20px;"></div> 4517 <div class="font-row title-absolute d-none d-md-block" skeleton-loading="is-loading.bind:pageLoading;width:80%;height:20px;"></div> 4518 </div> 4519 </td> 4520 <td class="mdc-data-table__cell"> 4521 <div class="dt-display-content"> 4522 <p class="m-0 d-block d-lg-none" skeleton-loading="is-loading.bind:pageLoading;height:14px;width:50px;"></p> 4523 <div class="d-block d-lg-none" skeleton-loading="is-loading.bind:pageLoading;height:20px;width:90px;"></div> 4524 <div class="d-none d-lg-block" skeleton-loading="is-loading.bind:pageLoading;height:52px;width:60px;"></div> 4525 </div> 4526 </td> 4527 <td class="mdc-data-table__cell"> 4528 <div class="dt-display-content"> 4529 <p class="m-0 d-block d-lg-none" skeleton-loading="is-loading.bind:pageLoading;height:14px;width:50px;"></p> 4530 <div class="font-row d-block d-md-none" skeleton-loading="is-loading.bind:pageLoading;height:20px;width:65px;"></div> 4531 <div class="font-row d-none d-md-block" skeleton-loading="is-loading.bind:pageLoading;height:20px;width:80px;"></div> 4532 </div> 4533 </td> 4534 <td class="mdc-data-table__cell"> 4535 <div class="dt-display-content"> 4536 <p class="m-0 d-block d-lg-none" skeleton-loading="is-loading.bind:pageLoading;height:14px;width:50px;"></p> 4537 <div class="font-row d-block d-md-none" skeleton-loading="is-loading.bind:pageLoading;height:20px;width:68px;"></div> 4538 <div class="font-row d-none d-md-block" skeleton-loading="is-loading.bind:pageLoading;height:20px;width:70px;"></div> 4539 </div> 4540 </td> 4541 </tr> 4542 </tbody> 4543 </table> 4544 </div> 4545 </div> 4546 4547 <!-- Table Foot --> 4548 <div> 4549 <table class="mdc-data-table__table pt-1 mt-1 mt-sm-3 mt-lg-0 pt-lg-0 \${pageLoading ? 'skeleton-wrapper' : ''}"> 4550 <tfoot class="sticky-footer"> 4551 <tr> 4552 <th class="skill-footer mdc-data-table__header-cell \${pageLoading ? 'sk-loading' : ''}"> 4553 <div class="dt-display-content" skeleton-loading="is-loading.bind:pageLoading;height:20px"> 4554 \${'CG_TOTAL' | siteStrings} 4555 </div> 4556 </th> 4557 4558 <th class="skill-footer mdc-data-table__header-cell \${pageLoading ? 'sk-loading' : ''}"> 4559 <div class="dt-display-content" skeleton-loading="is-loading.bind:pageLoading;height:20px"> 4560 <p class="m-0" show.bind="width < desktop"> 4561 \${'CG_KILLS' | siteStrings} 4562 </p>
4563 <span class="col-text ms-lg-2"> 4564 \${totalKills} 4565 </span> 4566 </div> 4567 </th> 4568 4569 <th class="skill-footer mdc-data-table__header-cell \${pageLoading ? 'sk-loading' : ''}"> 4570 <div class="dt-display-content" skeleton-loading="is-loading.bind:pageLoading;height:20px"> 4571 <p class="m-0" show.bind="width < desktop"> 4572 \${'CG_GOLD' | siteStrings} 4573 </p> 4574 <span class="col-text"> 4575 \${totalGold}\${'CG_MILLION_SUFFIX' | siteStrings: 'M'} 4576 </span> 4577 </div> 4578 </th> 4579 4580 <th class="skill-footer mdc-data-table__header-cell \${pageLoading ? 'sk-loading' : ''}"> 4581 <div class="dt-display-content" skeleton-loading="is-loading.bind:pageLoading;height:20px"> 4582 <p class="m-0" show.bind="width < desktop"> 4583 \${'CG_PRICE' | siteStrings} 4584 </p> 4585 <span class="col-text"> 4586 \${totalPrice | currencyFormat & async} 4587 </span> 4588 </div> 4589 </th> 4590 </tr> 4591 </tfoot> 4592 </table> 4593 </div> 4594 </div> 4595 4596 <!-- Checkout Button --> 4597 <div class="template-content-separation service-checkout-section" if.bind="!isDrawerInstance" skeleton-loading.bind="pageLoading"> 4598 <div class="d-flex flex-column flex-wrap w-100"> 4599 <div class="d-flex flex-column flex-md-row checkbox-row"> 4600 <cds-radio-button-group class="cds-radio-group-responsive d-flex flex-column flex-md-row"> 4601 <div class="d-flex align-items-center p-0"> 4602 <cds-radio-button 4603 value="true" 4604 name="haveGold" 4605 checked.bind="haveGold" 4606 skeleton-loading.bind="pageLoading" 4607 click.trigger="handleRadioInput(true)" 4608 ></cds-radio-button>
4608 4609 <label class="text-white ps-1 ps-lg-2" style="cursor:pointer;" click.delegate="handleRadioInput(true)"> 4610 \${'CG_ALREADY_HAVE' | siteStrings} 4611 <span class="text-green">\${totalGold}\${'CG_MILLION_SUFFIX' | siteStrings: 'M'}</span> 4612 \${'CG_GOLD_IN_THE_BANK' | siteStrings} 4613 </label> 4614 </div> 4615 <div class="d-flex align-items-center p-0"> 4616 <cds-radio-button 4617 value="false" 4618 name="haveGold" 4619 checked.bind="!haveGold" 4620 skeleton-loading.bind="pageLoading" 4621 click.trigger="handleRadioInput(false)" 4622 ></cds-radio-button> 4623 <label class="text-white ps-1 ps-lg-2" style="cursor:pointer;" click.delegate="handleRadioInput(false)"> 4624 \${'CG_WILL_PROVIDE' | siteStrings} 4625 <span class="text-green">\${totalGold}\${'CG_MILLION_SUFFIX' | siteStrings: 'M'}</span> 4626 \${'CG_GOLD' | siteStrings} (\${'CG_GOLD_PRICE' | siteStrings}: \${totalGoldPrice | currencyFormat:'(0,0.00[0])' & async}) 4627 </label> 4628 </div> 4629 </cds-radio-button-group> 4630 </div> 4631 <page-content-area 4632 if.bind="(dynamicDisclaimer || viewingAsAdmin) && !pageLoading" 4633 class="optimized-method" 4634 key="\${keyName}_DISCLAIMER"> 4635 </page-content-area> 4636 <span 4637 if.bind="!dynamicDisclaimer && !viewingAsAdmin" 4638 class="optimized-method d-none d-lg-inline" 4639 > 4640 \${'CG_OPTIMIZED_TRAINING_METHODS_MESSAGE_3' | siteStrings | sanitizeHtml:true} 4641 \${'CG_CUSTOM_QUOTE_MESSAGE_1' | siteStrings | sanitizeHtml:true} 4642 <a href="https://discord.gg/chicks-boosting" class="cursor-pointer text-decoration-underline" target="_blank" rel="nofollow noopener noreferrer">discord.gg/chicks-boosting</a>\${'CG_CUSTOM_QUOTE_MESSAGE_2' | siteStrings | sanitizeHtml:true} 4643 <span class="cursor-pointer text-decoration-underline" click.delegate="openLivechat()">\${'CG_CUSTOM_QUOTE_MESSAGE_3' | siteStrings | sanitizeHtml:true}</span> 4644 </span> 4645 <span 4646 if.bind="!dynamicDisclaimer && !viewingAsAdmin" 4647 class="optimized-method d-lg-none" 4648 > 4649 \${'CG_OPTIMIZED_TRAINING_METHODS_MESSAGE_4' | siteStrings | sanitizeHtml:true} 4650 <span class="cursor-pointer text-decoration-underline" click.delegate="openLivechat()"> 4651 \${'CG_CUSTOMER_SUPPORT' | siteStrings | sanitizeHtml:true} 4652 </span> 4653 </span> 4654 </div> 4655 4656 <div class="d-flex"> 4657 <div if.bind="width >= desktop && !addedToCart" class="d-flex ps-4 justify-content-end"> 4658 <button 4659 mdc-button 4660 outlined 4661 type="submit" 4662 click.delegate="addToCart()" 4663 class="review-button p-4 button-blue-filled" 4664 data-cy="add-to-cart" 4665 >\${'CG_ADD_TO_CART' | siteStrings}</button> 4666 </div> 4667 <div if.bind="width >= desktop && addedToCart" class="d-flex ps-4 justify-content-end"> 4668 <button 4669 mdc-button 4670 class="review-button p-4 button-gray-filled text-gray font-light" 4671 type="button" 4672 click.delegate="addedToCart = false" 4673 >\${'CG_KEEP_SHOPPING' | siteStrings}</button> 4674 </div> 4675 <div if.bind="width >= desktop && addedToCart" class="d-flex ps-4 justify-content-end"> 4676 <a 4677 mdc-button 4678 click.trigger="handleCheckoutButton()" 4679 class="review-button p-4 button-blue-filled" 4680 data-cy="checkout" 4681 >\${'CG_CHECKOUT' | siteStrings}</a> 4682 </div> 4683 </div> 4684 <!-- Tablet & mobile fixed bottom button --> 4685 <div if.bind="width < desktop && !pageLoading" class="floating-bottom-bar-service d-block py-2"> 4686 <div if.bind="!addedToCart" class="d-flex col-12"> 4687 <button 4688 mdc-button outlined 4689 type="submit" click.delegate="addToCart()" 4690 class="review-button p-4 button-blue-filled" 4691 data-cy="add-to-cart"> 4692 \${'CG_ADD_TO_CART' | siteStrings} \u2022 \${totalPrice | currencyFormat & async}</button> 4693 </div> 4694 <div if.bind="addedToCart" class="d-flex col-12"> 4695 <button 4696 mdc-button 4697 class="w-100 p-4 button-gray-filled text-gray mr-2" 4698 type="button" click.delegate="addedToCart = false" 4699 >\${'CG_KEEP_SHOPPING' | siteStrings}</button> 4700 <a 4701 mdc-button 4702 click.trigger="handleCheckoutButton()" 4703 class="w-100 p-4 button-blue-filled" 4704 data-cy="checkout" 4705 >\${'CG_CHECKOUT' | siteStrings}</a> 4706 </div> 4707 </div> 4708 </div> 4709 4710 <!-- Page Content --> 4711 <cg-seo-dropdown 4712 if.bind="!isDrawerInstance" 4713 is-loading.bind="pageLoading" 4714 header-title.bind="'CG_VIEW_MORE' | siteStrings"> 4715 <cg-template-service 4716 key.bind="keyName"> 4717 </cg-template-service> 4718 </cg-seo-dropdown> 4719 </div> 4720</template> 4721`;f.default=s}),
4721"pages/services/runescape-powerleveling/runescape-powerleveling.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 4722 <div id="runescape-powerleveling"> 4723 <!-- PowerLeveling RS Table --> 4724 <div if.bind="!isLandingPage" class="mdc-data-table main-content-block"> 4725 <div if.bind="!isDrawerInstance"> 4726 <table class="mdc-data-table__table \${pageLoading ? 'skeleton-wrapper' : ''}"> 4727 <thead> 4728 <tr class="mdc-data-table__header-row top-header d-none d-lg-table-row"> 4729 <th class="skill-header mdc-data-table__header-cell \${pageLoading ? 'sk-loading' : ''}" role="columnheader" scope="col"> 4730 <div class="container-top th-sort-container" skeleton-loading="is-loading.bind:pageLoading;height:20px;"> 4731 <span class="th-sort-text th-sort-text--skills">\${'CG_SKILLS' | siteStrings}</span> 4732 <div class="mdc-icon-button material-icons mdc-data-table__sort-icon-button text-white th-sort-arrows"> 4733 <cds-icon-button 4734 id="skills-up" 4735 ref="skillsArrowUp" 4736 class="position-relative sort-asc" 4737 click.trigger="sortBy(0, skillsArrowUp)" 4738 >
4739 <cds-icon icon="arrow_drop_up"></cds-icon> 4740 </cds-icon-button> 4741 <cds-icon-button 4742 id="skills-down" 4743 ref="skillsArrowDown" 4744 class="position-relative sort-desc" 4745 click.trigger="sortBy(0, skillsArrowDown)" 4746 > 4747 <cds-icon icon="arrow_drop_down"></cds-icon> 4748 </cds-icon-button> 4749 </div> 4750 </div> 4751 </th> 4752 <th class="skill-header mdc-data-table__header-cell \${pageLoading ? 'sk-loading' : ''}" role="columnheader" scope="col"> 4753 <div class="container-top th-sort-container" skeleton-loading="is-loading.bind:pageLoading;height:20px;"> 4754 <span class="th-sort-text">\${'CG_CURRENT_LEVEL' | siteStrings}</span> 4755 </div> 4756 </th> 4757 <th class="skill-header mdc-data-table__header-cell \${pageLoading ? 'sk-loading' : ''}" role="columnheader" scope="col"> 4758 <div class="container-top th-sort-container" skeleton-loading="is-loading.bind:pageLoading;height:20px;"> 4759 <span class="th-sort-text">\${'CG_EXPECTED_LEVEL' | siteStrings}</span> 4760 </div> 4761 </th> 4762 <th class="skill-header mdc-data-table__header-cell \${pageLoading ? 'sk-loading' : ''}" role="columnheader" scope="col"> 4763 <div class="container-top container-right th-sort-container" skeleton-loading="is-loading.bind:pageLoading;height:20px;"> 4764 <span class="th-sort-text">\${'CG_GOLD' | siteStrings}</span> 4765 <div class="mdc-icon-button material-icons mdc-data-table__sort-icon-button text-white th-sort-arrows"> 4766 <cds-icon-button 4767 id="gold-up" 4768 ref="goldArrowUp" 4769 class="position-relative sort-asc" 4770 click.trigger="sortBy(2, goldArrowUp)" 4771 >
4772 <cds-icon icon="arrow_drop_up"></cds-icon> 4773 </cds-icon-button> 4774 <cds-icon-button 4775 id="gold-down" 4776 ref="goldArrowDown" 4777 class="position-relative sort-desc" 4778 click.trigger="sortBy(2, goldArrowDown)" 4779 > 4780 <cds-icon icon="arrow_drop_down"></cds-icon> 4781 </cds-icon-button> 4782 </div> 4783 </div> 4784 </th> 4785 <th class="skill-header mdc-data-table__header-cell \${pageLoading ? 'sk-loading' : ''}" role="columnheader" scope="col"> 4786 <div class="container-top container-right th-sort-container" skeleton-loading="is-loading.bind:pageLoading;height:20px;"> 4787 <span class="th-sort-text">\${'CG_PRICE' | siteStrings}</span> 4788 <div class="mdc-icon-button material-icons mdc-data-table__sort-icon-button text-white th-sort-arrows"> 4789 <cds-icon-button 4790 id="price-up" 4791 ref="priceArrowUp" 4792 class="position-relative sort-asc" 4793 click.trigger="sortBy(1, priceArrowUp)" 4794 >
4795 <cds-icon icon="arrow_drop_up"></cds-icon> 4796 </cds-icon-button> 4797 <cds-icon-button 4798 id="price-down" 4799 ref="priceArrowDown" 4800 class="position-relative sort-desc" 4801 click.trigger="sortBy(1, priceArrowDown)" 4802 > 4803 <cds-icon icon="arrow_drop_down"></cds-icon> 4804 </cds-icon-button> 4805 </div> 4806 </div> 4807 </th> 4808 </tr> 4809 <tr class="sub-header \${pageLoading ? 'skeleton-sub-header' : ''}"> 4810 <th class="mdc-data-table__header-cell skill-header text-start" colspan="4"> 4811 <img 4812 class="sub-header-icon" 4813 src="/icons/leveling-category-icon.svg" 4814 alt="skill" 4815 loading="lazy" 4816 if.bind="!pageLoading" 4817 > 4818 <span skeleton-loading="is-loading.bind:pageLoading;height:20px;" class="products-string d-none d-lg-inline" innerhtml.bind="productsStringLarge | autoSiteString"></span> 4819 <span skeleton-loading="is-loading.bind:pageLoading;height:20px;" class="products-string d-lg-none" innerhtml.bind="productsStringShort | autoSiteString"></span> 4820 </th> 4821 <div class="dropdown"> 4822 <th 4823 class="skill-header mdc-data-table__header-cell" 4824 role="columnheader" 4825 scope="col" 4826 colspan="1" 4827 > 4828 <button 4829 id="show-products-selector" 4830 class="btn cursor-pointer text-white p-0" 4831 ref="dropdownButton" 4832 data-bs-toggle="dropdown" 4833 data-bs-display="static" 4834 data-bs-auto-close="outside" 4835 aria-expanded="false" 4836 skeleton-loading="is-loading.bind:pageLoading;height:20px;" 4837 > 4838 <span class="d-none d-md-inline">\${'CG_SHOW_PRODUCTS' | siteStrings}</span> 4839 <span class="d-inline d-md-none">\${cartLabel}</span> 4840 <div class="filter-arrow-icon"> 4841 <cds-icon-button class="material-icons open-filter">
4842 <cds-icon icon="arrow_drop_down"></cds-icon> 4843 </cds-icon-button> 4844 </div> 4845 </button> 4846 <div id="show-products-dropdown" class="dropdown-menu selected-products position-absolute" ref="dropdownMenu" aria-labelledby="show-products-selector"> 4847 <div class="row p-3"> 4848 <p class="col-10 p-selected-title"> 4849 \${'CG_SELECTED_PRODUCTS' | siteStrings} 4850 </p> 4851 <button class="col-2 ps-button" click.delegate="closeFilter()"> 4852 <img src="/icons/close-circle-icon.svg" alt="close-icon"> 4853 </button> 4854 </div> 4855 <section class="products-selected pb-3" data-simplebar> 4856 <p class="p-2 px-3 product-selected text-truncate" repeat.for="[key, value] of skillsBeingLeveled">\${key}</p> 4857 </section> 4858 <div class="dividing-line-container m-0 p-0"> 4859 <div class="dividing-line m-0 p-0"></div> 4860 </div> 4861 <div class="row p-3"> 4862 <p class="col-10 p-total"> 4863 \${'CG_PRODUCTS' | siteStrings}: 4864 </p> 4865 <p class="col-2 p-total"> 4866 \${skillsBeingLeveled.size} 4867 </p> 4868 </div> 4869 </div> 4870 </th> 4871 </div> 4872 </tr> 4873 </thead> 4874 </table> 4875 </div> 4876 <div data-simplebar id="mobile-table-scrollbar" class.bind="isDrawerInstance ? 'drawner-table' : ''"> 4877 <div class="mdc-data-table__table-container"> 4878 <table class="mdc-data-table__table"> 4879 <tbody class="mdc-data-table__content"> 4880 <tr class="mdc-data-table__row" repeat.for="skill of skills" if.bind="!pageLoading && skill.show"> 4881 <td class="mdc-data-table__cell text-start"> 4882 <div class="dt-display-content d-flex align-items-center gap-2"> 4883 <img 4884 if.bind="skill.imagePath" 4885 class="item-image-icon override__color" 4886 src="\${baseAwsEndpoint}\${skill.imagePath}" 4887 alt="skill" 4888 loading="lazy" 4889 > 4890 <span else class="material-icons-outlined align-middle">\${'image_not_supported' | autoSiteString}</span> 4891 <span 4892 if.bind="skill.skillName.length > 24" 4893 class="text-truncate column-text--skill" 4894 mdc-tooltip="value.bind: skill.skillName; y-position: BELOW" 4895 mdc-tooltip.ref="skillNameTooltip" 4896 click.delegate="helper.showPopup({content: skillNameTooltip})" 4897 mouseover.trigger="tooltipArrowStyling.toView(skillNameTooltip)" 4898 >\${skill.skillName | languageKeyFormatter | siteStrings : skill.skillName}</span>
4899 <span else class="column-text--skill">\${skill.skillName | languageKeyFormatter | siteStrings : skill.skillName}</span> 4900 </div> 4901 </td> 4902 <td class="mdc-data-table__cell"> 4903 <div class="dt-display-content quantity-input-container"> 4904 <p class="qty-label d-none d-md-inline-block d-lg-none mb-2 mb-sm-1">\${'CG_CURRENT' | siteStrings}</p> 4905 <p class="qty-label d-sm-inline-block d-md-none mb-2 mb-sm-1">\${'CG_CURRENT_LEVEL' | siteStrings}</p> 4906 <cg-quantity-input class="style-services-tablet" product.two-way="skill" value.two-way="skill.startLevel & debounce:200"></cg-quantity-input> 4907 </div> 4908 </td> 4909 <td class="mdc-data-table__cell"> 4910 <div class="dt-display-content quantity-input-container"> 4911 <p class="qty-label d-none d-md-inline-block d-lg-none mb-2 mb-sm-1">\${'CG_EXPECTED' | siteStrings}</p> 4912 <p class="qty-label d-sm-inline-block d-md-none mb-2 mb-sm-1">\${'CG_EXPECTED_LEVEL' | siteStrings}</p> 4913 <cg-quantity-input class="style-services-tablet" product.two-way="skill" value.t
4913wo-way="skill.endLevel & debounce:200"></cg-quantity-input> 4914 </div> 4915 </td> 4916 <td class="mdc-data-table__cell d-none d-sm-table-cell"> 4917 <div class="dt-display-content"> 4918 <p class="d-block d-lg-none mb-1">\${'CG_GOLD' | siteStrings}</p> 4919 <div class="column-text">\${skill.goldRequired}\${'CG_MILLION_SUFFIX' | siteStrings: 'M'}</div> 4920 </div> 4921 </td> 4922 <td class="mdc-data-table__cell d-none d-sm-table-cell"> 4923 <div class="dt-display-content"> 4924 <p class="d-block d-lg-none mb-1">\${'CG_PRICE' | siteStrings} </p> 4925 <div class="column-text">\${skill.price | currencyFormat & async}</div> 4926 </div> 4927 </td> 4928 <td class="mdc-data-table__cell mdc-data-table__cell d-table-cell d-sm-none"> 4929 <div class="dt-display-content"> 4930 <div class="d-flex flex-column ms-4 ps-1 mb-1"> 4931 <p class="mb-0">\${'CG_PRICE' | siteStrings}</p> 4932 <span class="column-text">\${skill.price | currencyFormat & async}</span> 4933 </div> 4934 <div class="d-flex flex-column ms-4 ps-1"> 4935 <p class="mb-0">\${'CG_GOLD' | siteStrings}</p> 4936 <span class="column-text">\${skill.goldRequired}\${'CG_MILLION_SUFFIX' | siteStrings: 'M'}</span> 4937 </div> 4938 </div> 4939 </td> 4940 </tr> 4941 <tr class="mdc-data-table__row skeleton-rows" repeat.for="i of 8" show.bind="pageLoading"> 4942 <td class="mdc-data-table__cell text-start"> 4943 <div class="dt-display-content d-flex align-items-center gap-2"> 4944 <span class="item-image-icon" skeleton-loading="is-loading.bind:pageLoading;width:24px;height:24px;"></span> 4945 <span class="column-text--skill me-4" skeleton-loading="is-loading.bind:pageLoading;width:80%;height:20px;"></span> 4946 </div> 4947 </td> 4948 <td class="mdc-data-table__cell"> 4949 <div class="dt-display-content quantity-input-container"> 4950 <p class="qty-label d-none d-md-inline-block d-lg-none mb-2 mb-sm-1" skeleton-loading="is-loading.bind:pageLoading;height:14px;width:50px;"></p> 4951 <p class="qty-label d-sm-inline-block d-md-none mb-2 mb-sm-1" skeleton-loading="is-loading.bind:pageLoading;height:14px;width:70px;"></p> 4952 <div class="style-services-tablet d-none d-lg-block" skeleton-loading="is-loading.bind:pageLoading;height:52px;width:60px;"></div> 4953 <div class="style-services-tablet d-lg-none" skeleton-loading="is-loading.bind:pageLoading;height:20px;width:80px;"></div> 4954 </div> 4955 </td> 4956 <td class="mdc-data-table__cell"> 4957 <div class="dt-display-content quantity-input-container"> 4958 <p class="qty-label d-none d-md-inline-block d-lg-none mb-2 mb-sm-1" skeleton-loading="is-loading.bind:pageLoading;height:14px;width:50px;"></p> 4959 <p class="qty-label d-sm-inline-block d-md-none mb-2 mb-sm-1" skeleton-loading="is-loading.bind:pageLoading;height:14px;width:70px;"></p> 4960 <div class="style-services-tablet d-none d-lg-block" skeleton-loading="is-loading.bind:pageLoading;height:52px;width:60px;"></div> 4961 <div class="style-services-tablet d-lg-none" skeleton-loading="is-loading.bind:pageLoading;height:20px;width:80px;"></div> 4962 </div> 4963 </td> 4964 <td class="mdc-data-table__cell d-none d-sm-table-cell"> 4965 <div class="dt-display-content"> 4966 <p class="d-block d-lg-none mb-1" skeleton-loading="is-loading.bind:pageLoading;height:14px;width:40px;"></p> 4967 <div class="column-text" skeleton-loading="is-loading.bind:pageLoading;height:20px;width:60px;"></div> 4968 </div> 4969 </td> 4970 <td class="mdc-data-table__cell d-none d-sm-table-cell"> 4971 <div class="dt-display-content"> 4972 <p class="d-block d-lg-none mb-1" skeleton-loading="is-loading.bind:pageLoading;height:14px;width:40px;"></p> 4973 <div class="column-text" skeleton-loading="is-loading.bind:pageLoading;height:20px;width:70px;"></div> 4974 </div> 4975 </td> 4976 <td class="mdc-data-table__cell d-table-cell d-sm-none"> 4977 <div class="dt-display-content"> 4978 <div class="d-flex flex-column ms-4 ps-1 mb-2 column-skeleton"> 4979 <p class="mb-0" skeleton-loading="is-loading.bind:pageLoading;height:12px;width:40px;"></p>
4980 <span class="column-text" skeleton-loading="is-loading.bind:pageLoading;height:14px;width:60px;"></span> 4981 </div> 4982 <div class="d-flex flex-column ms-4 ps-1 column-skeleton"> 4983 <p class="mb-0" skeleton-loading="is-loading.bind:pageLoading;height:12px;width:40px;"></p> 4984 <span class="column-text" skeleton-loading="is-loading.bind:pageLoading;height:14px;width:60px;"></span> 4985 </div> 4986 </div> 4987 </td> 4988 </tr> 4989 </tbody> 4990 </table> 4991 </div> 4992 </div> 4993 <div> 4994 <table class="mdc-data-table__table pt-1 mt-1 mt-md-3 mt-lg-0 pt-lg-0 \${pageLoading ? 'skeleton-wrapper' : ''}"> 4995 <tfoot class="sticky-footer"> 4996 <tr> 4997 <th class="skill-footer mdc-data-table__header-cell text-start \${pageLoading ? 'sk-loading' : ''}"> 4998 <span class="footer-value footer-value--total \${pageLoading ? 'd-block' : ''}" skeleton-loading="is-loading.bind:pageLoading;height:20px">\${'CG_TOTAL' | siteStrings}</span> 4999 </th> 5000 <th class="skill-footer mdc-data-table__header-cell \${pageLoading ? 'sk-loading' : ''}"> 5001 <div class="dt-display-content d-flex flex-column d-lg-block" skeleton-loading="is-loading.bind:pageLoading;height:20px"> 5002 <p class="d-block d-lg-none mb-1">\${'CG_CURRENT' | siteStrings}</p> 5003 <span class="footer-value ms-lg-2">\${totalLevelCurrent}</span> 5004 </div> 5005 </th> 5006 <th class="skill-footer mdc-data-table__header-cell \${pageLoading ? 'sk-loading' : ''}"> 5007 <div class="dt-display-content d-flex flex-column d-lg-block" skeleton-loading="is-loading.bind:pageLoading;height:20px"> 5008 <p class="d-block d-lg-none mb-1">\${'CG_EXPECTED' | siteStrings}</p> 5009 <span class="footer-value ms-lg-2">\${totalLevelExpected}</span> 5010 </div> 5011 </th> 5012 <th class="skill-footer mdc-data-table__header-cell \${pageLoading ? 'sk-loading' : ''}"> 5013 <div class="dt-display-content d-flex flex-column d-lg-block" skeleton-loading="is-loading.bind:pageLoading;height:20px"> 5014 <p class="d-block d-lg-none mb-1">\${'CG_GOLD' | siteStrings}</p> 5015 <span class="footer-value">\${totalGold}\${'CG_MILLION_SUFFIX' | siteStrings: 'M'}</span> 5016 </div> 5017 </th> 5018 <th class="skill-footer mdc-data-table__header-cell d-none d-sm-table-cell \${pageLoading ? 'sk-loading' : ''}"> 5019 <div class="dt-display-content d-flex flex-column d-lg-block" skeleton-loading="is-loading.bind:pageLoading;height:20px"> 5020 <p class="d-block d-lg-none mb-1">\${'CG_PRICE' | siteStrings}</p> 5021 <span class="footer-value">\${totalPrice | currencyFormat & async}</span> 5022 </div> 5023 </th> 5024 </tr> 5025 </tfoot> 5026 </table> 5027 </div> 5028 </div> 5029 <!-- Checkout Button --> 5030 <div class="template-content-separation service-checkout-section" if.bind="!isDrawerInstance && !isLandingPage" skeleton-loading.bind="pageLoading"> 5031 <div class="d-flex flex-column flex-wrap w-100"> 5032 <div class="d-flex flex-column flex-md-row checkbox-row"> 5033 <cds-radio-button-group class="cds-radio-group-responsive d-flex flex-column flex-md-row"> 5034 <div class="d-flex align-items-center p-0"> 5035 <cds-radio-button 5036 value="true" 5037 name="haveGold" 5038 checked.bind="haveGold" 5039 skeleton-loading.bind="pageLoading" 5040 click.trigger="handleRadioInput(true)" 5041 ></cds-radio-button>
5041 5042 <label class="text-white ps-1 ps-lg-2" style="cursor:pointer;" click.delegate="handleRadioInput(true)"> 5043 \${'CG_ALREADY_HAVE' | siteStrings} 5044 <span class="text-green">\${totalGold}\${'CG_MILLION_SUFFIX' | siteStrings: 'M'}</span> 5045 \${'CG_GOLD_IN_THE_BANK' | siteStrings} 5046 </label> 5047 </div> 5048 <div class="d-flex align-items-center p-0"> 5049 <cds-radio-button 5050 value="false" 5051 name="haveGold" 5052 checked.bind="!haveGold" 5053 skeleton-loading.bind="pageLoading" 5054 click.trigger="handleRadioInput(false)" 5055 ></cds-radio-button> 5056 <label class="text-white ps-1 ps-lg-2" style="cursor:pointer;" click.delegate="handleRadioInput(false)"> 5057 \${'CG_WILL_PROVIDE' | siteStrings} 5058 <span class="text-green">\${totalGold}\${'CG_MILLION_SUFFIX' | siteStrings: 'M'}</span> 5059 \${'CG_GOLD' | siteStrings} (\${'CG_GOLD_PRICE' | siteStrings}: \${totalGoldPrice | currencyFormat:'(0,0.00[0])' & async}) 5060 </label> 5061 </div> 5062 </cds-radio-button-group> 5063 </div> 5064 <page-content-area 5065 if.bind="(dynamicDisclaimer || viewingAsAdmin) && !pageLoading" 5066 class="optimized-method" 5067 key="\${keyName}_DISCLAIMER"> 5068 </page-content-area> 5069 <span 5070 if.bind="!dynamicDisclaimer && !viewingAsAdmin" 5071 class="optimized-method d-none d-lg-inline" 5072 > 5073 \${'CG_OPTIMIZED_TRAINING_METHODS_MESSAGE_3' | siteStrings | sanitizeHtml:true} 5074 \${'CG_CUSTOM_QUOTE_MESSAGE_1' | siteStrings | sanitizeHtml:true} 5075 <a href="https://discord.gg/chicks-boosting" class="cursor-pointer text-decoration-underline" target="_blank" rel="nofollow noopener noreferrer">\${'discord.gg/chicks-boosting' | autoSiteString}</a>\${'CG_CUSTOM_QUOTE_MESSAGE_2' | siteStrings | sanitizeHtml:true} 5076 <span class="cursor-pointer text-decoration-underline" click.delegate="openLivechat()">\${'CG_CUSTOM_QUOTE_MESSAGE_3' | siteStrings | sanitizeHtml:true}</span> 5077 </span> 5078 <span 5079 if.bind="!dynamicDisclaimer && !viewingAsAdmin" 5080 class="optimized-method d-lg-none" 5081 > 5082 \${'CG_OPTIMIZED_TRAINING_METHODS_MESSAGE_4' | siteStrings | sanitizeHtml:true} 5083 <span class="cursor-pointer text-decoration-underline" click.delegate="openLivechat()"> 5084 \${'CG_CUSTOMER_SUPPORT' | siteStrings | sanitizeHtml:true} 5085 </span> 5086 </span> 5087 </div> 5088 5089 <div class="d-flex"> 5090 <div if.bind="width >= desktop && !addedToCart" class="d-flex ps-4 justify-content-end"> 5091 <button 5092 mdc-button 5093 outlined 5094 type="submit" 5095 click.delegate="addToCart()" 5096 class="review-button p-4 button-blue-filled" 5097 skeleton-loading.bind="pageLoading" 5098 >\${'CG_ADD_TO_CART' | siteStrings}</button> 5099 </div> 5100 <div if.bind="width >= desktop && addedToCart" class="d-flex ps-4 justify-content-end"> 5101 <button 5102 mdc-button 5103 class="review-button p-4 button-gray-filled text-gray font-light" 5104 type="button" 5105 click.delegate="addedToCart = false" 5106 >\${'CG_KEEP_SHOPPING' | siteStrings}</button> 5107 </div> 5108 <div if.bind="width >= desktop && addedToCart" class="d-flex ps-4 justify-content-end"> 5109 <a 5110 mdc-button 5111 click.trigger="handleCheckoutButton()" 5112 class="review-button p-4 button-blue-filled" 5113 >\${'CG_CHECKOUT' | siteStrings}</a> 5114 </div> 5115 </div> 5116 <!-- Tablet & mobile fixed bottom button --> 5117 <div if.bind="width < desktop && !pageLoading" class="floating-bottom-bar-service d-block py-2"> 5118 <div if.bind="!addedToCart" class="d-flex col-12"> 5119 <button 5120 mdc-button outlined 5121 type="submit" click.delegate="addToCart()" 5122 class="review-button p-4 button-blue-filled" 5123 >\${'CG_ADD_TO_CART' | siteStrings} \u2022 \${totalPrice | currencyFormat & async}</button> 5124 </div> 5125 <div if.bind="addedToCart" class="d-flex col-12"> 5126 <button 5127 mdc-button 5128 class="w-100 p-4 button-gray-filled text-gray mr-2" 5129 type="button" click.delegate="addedToCart = false" 5130 >\${'CG_KEEP_SHOPPING' | siteStrings}</button> 5131 <a 5132 mdc-button 5133 click.trigger="handleCheckoutButton()" 5134 class="w-100 p-4 button-blue-filled" 5135 >\${'CG_CHECKOUT' | siteStrings}</a> 5136 </div> 5137 </div> 5138 </div> 5139 <!-- Page Content --> 5140 <cg-seo-dropdown 5141 if.bind="!isDrawerInstance" 5142 is-loading.bind="pageLoading" 5143 header-title.bind="'CG_VIEW_MORE' | siteStrings"> 5144 <cg-template-service 5145 key.bind="keyName"> 5146 </cg-template-service> 5147 </cg-seo-dropdown> 5148 </div> 5149</template> 5150`;f.default=s}),
5150"pages/services/runescape-pvm/runescape-pvm.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 5151 <div id="runescape-pvm" class="runescape-pvm"> 5152 <!-- PVM RS Table --> 5153 <div class="mdc-data-table main-content-block"> 5154 <!-- PVM Table head --> 5155 <div class="mdc-data-table__table-container" if.bind="!isDrawerInstance"> 5156 <table class="mdc-data-table__table \${pageLoading ? 'skeleton-wrapper' : ''}"> 5157 <thead> 5158 <tr class="mdc-data-table__header-row top-header d-none d-lg-table-row"> 5159 5160 <th class="pvm-header mdc-data-table__header-cell \${pageLoading ? 'sk-loading' : ''}" role="columnheader" scope="col" colspan="2"> 5161 <div class="container-top" skeleton-loading="is-loading.bind:pageLoading;height:20px;"> 5162 \${'CG_PVM' | siteStrings} 5163 <div class="mdc-icon-button material-icons mdc-data-table__sort-icon-button text-white align-middle th-sort-arrows"> 5164 <cds-icon-button 5165 id="pvm-up" 5166 ref="pvmArrowUp" 5167 class="position-relative sort-asc" 5168 click.trigger="sortBy(0, pvmArrowUp)" 5169 >
5170 <cds-icon icon="arrow_drop_up"></cds-icon> 5171 </cds-icon-button> 5172 <cds-icon-button 5173 id="pvm-down" 5174 ref="pvmArrowDown" 5175 class="position-relative sort-desc" 5176 click.trigger="sortBy(0, pvmArrowDown)" 5177 > 5178 <cds-icon icon="arrow_drop_down"></cds-icon> 5179 </cds-icon-button> 5180 </div> 5181 </div> 5182 </th> 5183 5184 <th class="pvm-header mdc-data-table__header-cell d-none d-lg-table-cell \${pageLoading ? 'sk-loading' : ''}" role="columnheader" scope="col"> 5185 <div class="container-top" skeleton-loading="is-loading.bind:pageLoading;height:20px;"> 5186 \${'CG_KILLS' | siteStrings} 5187 </div> 5188 </th> 5189 5190 <th class="pvm-header mdc-data-table__header-cell d-none d-lg-table-cell \${pageLoading ? 'sk-loading' : ''}" role="columnheader" scope="col"> 5191 <div class="container-top" skeleton-loading="is-loading.bind:pageLoading;height:20px;"> 5192 \${'CG_GOLD' | siteStrings} 5193 <div class="mdc-icon-button material-icons mdc-data-table__sort-icon-button text-white align-middle th-sort-arrows"> 5194 <cds-icon-button 5195 id="gold-up" 5196 ref="goldArrowUp" 5197 class="position-relative sort-asc" 5198 click.trigger="sortBy(1, goldArrowUp)" 5199 >
5200 <cds-icon icon="arrow_drop_up"></cds-icon> 5201 </cds-icon-button> 5202 <cds-icon-button 5203 id="gold-down" 5204 ref="goldArrowDown" 5205 class="position-relative sort-desc" 5206 click.trigger="sortBy(1, goldArrowDown)" 5207 > 5208 <cds-icon icon="arrow_drop_down"></cds-icon> 5209 </cds-icon-button> 5210 </div> 5211 </div> 5212 </th> 5213 5214 <th class="pvm-header mdc-data-table__header-cell \${pageLoading ? 'sk-loading' : ''}" role="columnheader" scope="col"> 5215 <div class="container-top container-right" skeleton-loading="is-loading.bind:pageLoading;height:20px;"> 5216 \${'CG_PRICE' | siteStrings} 5217 <div class="mdc-icon-button material-icons mdc-data-table__sort-icon-button text-white align-middle icon-index th-sort-arrows"> 5218 <cds-icon-button 5219 id="price-up" 5220 ref="priceArrowUp" 5221 class="position-relative sort-asc" 5222 click.trigger="sortBy(2, priceArrowUp)" 5223 >
5224 <cds-icon icon="arrow_drop_up"></cds-icon> 5225 </cds-icon-button> 5226 <cds-icon-button 5227 id="price-down" 5228 ref="priceArrowDown" 5229 class="position-relative sort-desc" 5230 click.trigger="sortBy(2, priceArrowDown)" 5231 > 5232 <cds-icon icon="arrow_drop_down"></cds-icon> 5233 </cds-icon-button> 5234 </div> 5235 </div> 5236 </th> 5237 </tr> 5238 <tr class="sub-header"> 5239 <th class="mdc-data-table__header-cell pvm-header text-start" colspan="4"> 5240 <img 5241 class="item-image" 5242 src="/icons/leveling-category-icon.svg" 5243 alt="skill" 5244 loading="lazy" 5245 if.bind="!pageLoading" 5246 > 5247 <span 5248 skeleton-loading="is-loading.bind:pageLoading;width:200px;height:20px;" 5249 innerhtml.bind="productsStringLarge | autoSiteString" 5250 class="product-string d-none d-lg-inline" 5251 ></span> 5252 <span 5253 skeleton-loading="is-loading.bind:pageLoading;width:200px;height:20px;" 5254 innerhtml.bind="productsStringShort | autoSiteString" 5255 class="product-string d-lg-none" 5256 ></span> 5257 </th> 5258 <div class="dropdown"> 5259 <th 5260 class="pvm-header mdc-data-table__header-cell ps-0 ps-lg-3" 5261 role="columnheader" 5262 scope="col" 5263 colspan="2" 5264 > 5265 <button 5266 id="show-products-selector" 5267 class="btn cursor-pointer text-white p-0" 5268 data-bs-toggle="dropdown" 5269 data-bs-display="static" 5270 data-bs-auto-close="outside" 5271 aria-expanded="false" 5272 skeleton-loading="is-loading.bind:pageLoading;width:100px;height:20px;" 5273 > 5274 <span class="d-none d-md-inline">\${'CG_SHOW_PRODUCTS' | siteStrings}</span> 5275 <span class="d-inline d-md-none">\${cartLabel}</span> 5276 <div class="filter-arrow-icon"> 5277 <cds-icon-button class="material-icons open-filter">
5278 <cds-icon icon="arrow_drop_down"></cds-icon> 5279 </cds-icon-button> 5280 </div> 5281 </button> 5282 <div id="show-products-dropdown" class="dropdown-menu selected-products position-absolute dropdown-menu-lg-start dropdown-menu-end" aria-labelledby="show-products-selector"> 5283 <div class="row p-3"> 5284 <p class="col-10 p-selected-title"> 5285 \${'CG_SELECTED_PRODUCTS' | siteStrings} 5286 </p> 5287 <button class="col-2 ps-button" click.delegate="closeFilter()"> 5288 <img src="/icons/close-circle-icon.svg" alt="close-icon"> 5289 </button> 5290 </div> 5291 <section class="products-selected pb-3 \${selectedPvms.length > 10 ? '' : 'unset-mh'}" data-simplebar> 5292 <p class="p-2 px-3 product-selected text-truncate" repeat.for="pvm of selectedPvms"> 5293 \${pvm.product.name + ' ' + pvm.difficulty} 5294 </p> 5295 </section> 5296 <div class="dividing-line-container m-0 p-0"> 5297 <div class="dividing-line m-0 p-0"></div> 5298 </div> 5299 <div class="row p-3"> 5300 <p class="col-10 p-total"> 5301 \${'CG_PRODUCTS' | siteStrings}: 5302 </p> 5303 <p class="col-2 p-total"> 5304 \${selectedPvms.length} 5305 </p> 5306 </div> 5307 </div> 5308 </th> 5309 </div> 5310 </tr> 5311 </thead> 5312 </table> 5313 </div> 5314 5315 <!-- PVM Table Body --> 5316 <div data-simplebar id="mobile-table-scrollbar" class.bind="isDrawerInstance ? 'drawner-table' : ''"> 5317 <div class="mdc-data-table__table-container"> 5318 <table class="mdc-data-table__table t-body"> 5319 <tbody class="mdc-data-table__content"> 5320 <tr class="mdc-data-table__row" repeat.for="pvm of pvms" if.bind="!pageLoading && pvm.show"> 5321 <td class="mdc-data-table__cell text-start d-none d-md-table-cell"> 5322 <div class="dt-display-content"> 5323 <div 5324 if.bind="pvm.product.name.length > 24" 5325 class="text-truncate font-row title-absolute" 5326 mdc-tooltip="value.bind: pvm.product.name; y-position: BELOW" 5327 mdc-tooltip.ref="pvmNameTooltip" 5328 click.delegate="helper.showPopup({content: pvmNameTooltip})" 5329 mouseover.trigger="tooltipArrowStyling.toView(pvmNameTooltip)" 5330 > 5331 \${pvm.product.name | languageKeyFormatter | siteStrings:pvm.product.name} 5332 </div> 5333 <div else class="font-row title-absolute"> 5334 \${pvm.product.name | languageKeyFormatter | siteStrings:pvm.product.name} 5335 </div> 5336 </div> 5337 </td> 5338 5339 <td class="mdc-data-table__cell"> 5340 <div class="dt-display-content"> 5341 <div 5342 if.bind="pvm.product.name.length > 24" 5343 class="text-truncate font-row d-block d-md-none" 5344 mdc-tooltip="value.bind: pvm.product.name; y-position: BELOW" 5345 mdc-tooltip.ref="pvmNameTooltip" 5346 click.delegate="helper.showPopup({content: pvmNameTooltip})" 5347 mouseover.trigger="tooltipArrowStyling.toView(pvmNameTooltip)" 5348 > 5349 \${pvm.product.name | languageKeyFormatter | siteStrings:pvm.product.name} 5350 </div> 5351 <div else class="font-row d-block d-md-none"> 5352 \${pvm.product.name | languageKeyFormatter | siteStrings:pvm.product.name} 5353 </div> 5354 <p class="m-0 d-block d-lg-none"> 5355 \${'CG_KILLS' | siteStrings} 5356 </p> 5357 <cg-quantity-input 5358 product.two-way="pvm"
5359 value.two-way="pvm.kills"> 5360 </cg-quantity-input> 5361 </div> 5362 </td> 5363 5364 <td class="mdc-data-table__cell"> 5365 <div class="dt-display-content font-row"> 5366 <p class="m-0 d-block d-lg-none"> 5367 \${'CG_GOLD' | siteStrings} 5368 </p> 5369 <span class="col-text"> 5370 \${pvm.displayGoldRequired}\${'CG_MILLION_SUFFIX' | siteStrings: 'M'} 5371 </span> 5372 </div> 5373 </td> 5374 5375 <td class="mdc-data-table__cell"> 5376 <div class="dt-display-content font-row"> 5377 <p class="m-0 d-block d-lg-none"> 5378 \${'CG_PRICE' | siteStrings} 5379 </p> 5380 <span class="col-text"> 5381 \${pvm.displayPrice | currencyFormat & async} 5382 </span> 5383 </div> 5384 </td> 5385 </tr> 5386 <tr class="mdc-data-table__row skeleton-rows" repeat.for="i of 7" show.bind="pageLoading"> 5387 <td class="mdc-data-table__cell text-start d-none d-md-table-cell"> 5388 <div class="dt-display-content"> 5389 <div class="font-row title-absolute d-none d-md-block" skeleton-loading="is-loading.bind:pageLoading;width:80%;height:20px;"></div> 5390 </div> 5391 </td> 5392 <td class="mdc-data-table__cell"> 5393 <div class="dt-display-content"> 5394 <div class="font-row d-block d-md-none" skeleton-loading="is-loading.bind:pageLoading;width:90px;height:20px;"></div> 5395 <p class="m-0 d-block d-lg-none" skeleton-loading="is-loading.bind:pageLoading;height:14px;width:50px;"></p> 5396 <div class="d-block d-lg-none" skeleton-loading="is-loading.bind:pageLoading;height:20px;width:90px;"></div> 5397 <div class="d-none d-lg-block" skeleton-loading="is-loading.bind:pageLoading;height:52px;width:60px;"></div> 5398 </div> 5399 </td> 5400 <td class="mdc-data-table__cell"> 5401 <div class="dt-display-content"> 5402 <p class="m-0 d-block d-lg-none" skeleton-loading="is-loading.bind:pageLoading;height:14px;width:50px;"></p> 5403 <div class="font-row d-block d-md-none" skeleton-loading="is-loading.bind:pageLoading;height:20px;width:65px;"></div> 5404 <div class="font-row d-none d-md-block" skeleton-loading="is-loading.bind:pageLoading;height:20px;width:80px;"></div> 5405 </div> 5406 </td> 5407 <td class="mdc-data-table__cell"> 5408 <div class="dt-display-content"> 5409 <p class="m-0 d-block d-lg-none" skeleton-loading="is-loading.bind:pageLoading;height:14px;width:50px;"></p> 5410 <div class="font-row d-block d-md-none" skeleton-loading="is-loading.bind:pageLoading;height:20px;width:68px;"></div> 5411 <div class="font-row d-none d-md-block" skeleton-loading="is-loading.bind:pageLoading;height:20px;width:70px;"></div> 5412 </div> 5413 </td> 5414 </tr> 5415 </tbody> 5416 </table> 5417 </div> 5418 </div> 5419 5420 <!-- PVM Table Foot --> 5421 <div> 5422 <table class="mdc-data-table__table pt-1 mt-1 mt-sm-3 mt-lg-0 pt-lg-0 \${pageLoading ? 'skeleton-wrapper' : ''}"> 5423 <tfoot class="sticky-footer"> 5424 <tr> 5425 <th class="mdc-data-table__header-cell \${pageLoading ? 'sk-loading' : ''}"> 5426 <div class="dt-display-content" skeleton-loading="is-loading.bind:pageLoading;height:20px"> 5427 \${'CG_TOTAL' | siteStrings} 5428 </div> 5429 </th> 5430 5431 <th class="mdc-data-table__header-cell \${pageLoading ? 'sk-loading' : ''}"> 5432 <div class="dt-display-content" skeleton-loading="is-loading.bind:pageLoading;height:20px"> 5433 <p class="m-0" show.bind="width <= tablet"> 5434 \${'CG_KILLS' | siteStrings} 5435 </p>
5436 <span class="col-text ms-lg-2"> 5437 \${totalKills} 5438 </span> 5439 </div> 5440 </th> 5441 5442 <th class="mdc-data-table__header-cell \${pageLoading ? 'sk-loading' : ''}"> 5443 <div class="dt-display-content" skeleton-loading="is-loading.bind:pageLoading;height:20px"> 5444 <p class="m-0" show.bind="width < desktop"> 5445 \${'CG_GOLD' | siteStrings} 5446 </p> 5447 <span class="col-text"> 5448 \${totalGold}\${'CG_MILLION_SUFFIX' | siteStrings: 'M'} 5449 </span> 5450 </div> 5451 </th> 5452 5453 <th class="mdc-data-table__header-cell \${pageLoading ? 'sk-loading' : ''}"> 5454 <div class="dt-display-content" skeleton-loading="is-loading.bind:pageLoading;height:20px"> 5455 <p class="m-0" show.bind="width < desktop"> 5456 \${'CG_PRICE' | siteStrings} 5457 </p> 5458 <span class="col-text"> 5459 \${totalPrice | currencyFormat & async} 5460 </span> 5461 </div> 5462 </th> 5463 </tr> 5464 </tfoot> 5465 </table> 5466 </div> 5467 </div> 5468 <!-- Checkout Button --> 5469 <div class="template-content-separation service-checkout-section" if.bind="!isDrawerInstance" skeleton-loading.bind="pageLoading"> 5470 <div class="d-flex flex-column flex-wrap w-100"> 5471 <div class="d-flex flex-column flex-md-row checkbox-row"> 5472 <cds-radio-button-group class="cds-radio-group-responsive d-flex flex-column flex-md-row"> 5473 <div class="d-flex align-items-center p-0"> 5474 <cds-radio-button 5475 value="true" 5476 name="haveGold" 5477 checked.bind="haveGold" 5478 skeleton-loading.bind="pageLoading" 5479 click.trigger="handleRadioInput(true)" 5480 ></cds-radio-button>
5480 5481 <label class="text-white ps-1 ps-lg-2" style="cursor:pointer;" click.delegate="handleRadioInput(true)"> 5482 \${'CG_ALREADY_HAVE' | siteStrings} 5483 <span class="text-green">\${totalGold}\${'CG_MILLION_SUFFIX' | siteStrings: 'M'}</span> 5484 \${'CG_GOLD_IN_THE_BANK' | siteStrings} 5485 </label> 5486 </div> 5487 <div class="d-flex align-items-center p-0"> 5488 <cds-radio-button 5489 value="false" 5490 name="haveGold" 5491 checked.bind="!haveGold" 5492 skeleton-loading.bind="pageLoading" 5493 click.trigger="handleRadioInput(false)" 5494 ></cds-radio-button> 5495 <label class="text-white ps-1 ps-lg-2" style="cursor:pointer;" click.delegate="handleRadioInput(false)"> 5496 \${'CG_WILL_PROVIDE' | siteStrings} 5497 <span class="text-green">\${totalGold}\${'CG_MILLION_SUFFIX' | siteStrings: 'M'}</span> 5498 \${'CG_GOLD' | siteStrings} (\${'CG_GOLD_PRICE' | siteStrings}: \${totalGoldPrice | currencyFormat:'(0,0.00[0])' & async}) 5499 </label> 5500 </div> 5501 </cds-radio-button-group> 5502 </div> 5503 <page-content-area 5504 if.bind="(dynamicDisclaimer || viewingAsAdmin) && !pageLoading" 5505 class="optimized-method" 5506 key="\${keyName}_DISCLAIMER"> 5507 </page-content-area> 5508 <span 5509 if.bind="!dynamicDisclaimer && !viewingAsAdmin" 5510 class="optimized-method d-none d-lg-inline" 5511 > 5512 \${'CG_OPTIMIZED_TRAINING_METHODS_MESSAGE_3' | siteStrings | sanitizeHtml:true} 5513 \${'CG_CUSTOM_QUOTE_MESSAGE_1' | siteStrings | sanitizeHtml:true} 5514 <a href="https://discord.gg/chicks-boosting" class="cursor-pointer text-decoration-underline" target="_blank" rel="nofollow noopener noreferrer">discord.gg/chicks-boosting</a>\${'CG_CUSTOM_QUOTE_MESSAGE_2' | siteStrings | sanitizeHtml:true} 5515 <span class="cursor-pointer text-decoration-underline" click.delegate="openLivechat()">\${'CG_CUSTOM_QUOTE_MESSAGE_3' | siteStrings | sanitizeHtml:true}</span> 5516 </span> 5517 <span 5518 if.bind="!dynamicDisclaimer && !viewingAsAdmin" 5519 class="optimized-method d-lg-none" 5520 > 5521 \${'CG_OPTIMIZED_TRAINING_METHODS_MESSAGE_4' | siteStrings | sanitizeHtml:true} 5522 <span class="cursor-pointer text-decoration-underline" click.delegate="openLivechat()"> 5523 \${'CG_CUSTOMER_SUPPORT' | siteStrings | sanitizeHtml:true} 5524 </span> 5525 </span> 5526 </div> 5527 5528 <div class="d-flex"> 5529 <div if.bind="width >= desktop && !addedToCart" class="d-flex ps-4 justify-content-end"> 5530 <button 5531 mdc-button 5532 outlined 5533 type="submit" 5534 click.delegate="addToCart()" 5535 class="review-button p-4 button-blue-filled" 5536 data-cy="request-quote" 5537 >\${'CG_ADD_TO_CART' | siteStrings}</button> 5538 </div> 5539 <div if.bind="width >= desktop && addedToCart" class="d-flex ps-4 justify-content-end"> 5540 <button 5541 mdc-button 5542 class="review-button p-4 button-gray-filled text-gray font-light" 5543 type="button" 5544 click.delegate="addedToCart = false" 5545 data-cy="keep-shopping" 5546 >\${'CG_KEEP_SHOPPING' | siteStrings}</button> 5547 </div> 5548 <div if.bind="width >= desktop && addedToCart" class="d-flex ps-4 justify-content-end"> 5549 <a 5550 mdc-button 5551 click.trigger="handleCheckoutButton()" 5552 class="review-button p-4 button-blue-filled" 5553 data-cy="checkout" 5554 >\${'CG_CHECKOUT' | siteStrings}</a> 5555 </div> 5556 </div> 5557 <!-- Tablet & mobile fixed bottom button --> 5558 <div if.bind="width < desktop && !pageLoading" class="floating-bottom-bar-service d-block py-2"> 5559 <div if.bind="!addedToCart" class="d-flex col-12"> 5560 <button 5561 mdc-button outlined 5562 type="submit" click.delegate="addToCart()" 5563 class="review-button p-4 button-blue-filled" 5564 data-cy="add-to-cart" 5565 >\${'CG_ADD_TO_CART' | siteStrings} \u2022 \${totalPrice | currencyFormat & async}</button> 5566 </div> 5567 <div if.bind="addedToCart" class="d-flex col-12"> 5568 <button 5569 mdc-button 5570 class="w-100 p-4 button-gray-filled text-gray mr-2" 5571 type="button" click.delegate="addedToCart = false" 5572 data-cy="keep-shopping" 5573 >\${'CG_KEEP_SHOPPING' | siteStrings}</button> 5574 <a 5575 mdc-button 5576 click.trigger="handleCheckoutButton()" 5577 class="w-100 p-4 button-blue-filled" 5578 data-cy="checkout" 5579 >\${'CG_CHECKOUT' | siteStrings}</a> 5580 </div> 5581 </div> 5582 </div> 5583 5584 <!-- Page Content --> 5585 <div> 5586 <cg-seo-dropdown 5587 if.bind="!isDrawerInstance" 5588 is-loading.bind="pageLoading" 5589 header-title.bind="'CG_VIEW_MORE' | siteStrings"> 5590 <cg-template-service 5591 key.bind="keyName"> 5592 </cg-template-service> 5593 </cg-seo-dropdown> 5594 </div> 5595 </div> 5596</template> 5597`;f.default=s}),
5597"pages/services/runescape-questing/runescape-questing.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 5598 <div id="runescape-questing" class="runescape-questing"> 5599 <!-- Questing RS Table --> 5600 <div class="mdc-data-table main-content-block"> 5601 <!-- Questing Table head --> 5602 <div class="mdc-data-table__table-container" if.bind="!isDrawerInstance"> 5603 <table class="mdc-data-table__table \${pageLoading ? 'skeleton-wrapper' : ''}"> 5604 <thead> 5605 <tr class="mdc-data-table__header-row top-header d-none d-lg-table-row"> 5606 5607 <th class="questing-header mdc-data-table__header-cell \${pageLoading ? 'sk-loading' : ''}" role="columnheader" scope="col" colspan="2"> 5608 <div class="container-top th-sort-container" skeleton-loading="is-loading.bind:pageLoading;height:20px;"> 5609 <span class="th-sort-text">\${'CG_QUEST' | siteStrings}</span> 5610 <div class="mdc-icon-button material-icons mdc-data-table__sort-icon-button text-white th-sort-arrows"> 5611 <cds-icon-button 5612 id="quest-up" 5613 ref="questArrowUp" 5614 class="position-relative sort-asc" 5615 click.trigger="sortBy(0, questArrowUp)" 5616 >
5617 <cds-icon icon="arrow_drop_up"></cds-icon> 5618 </cds-icon-button> 5619 <cds-icon-button 5620 id="quest-down" 5621 ref="questArrowDown" 5622 class="position-relative sort-desc" 5623 click.trigger="sortBy(0, questArrowDown)" 5624 > 5625 <cds-icon icon="arrow_drop_down"></cds-icon> 5626 </cds-icon-button> 5627 </div> 5628 </div> 5629 </th> 5630 5631 <th class="questing-header mdc-data-table__header-cell d-none d-lg-table-cell \${pageLoading ? 'sk-loading' : ''}" role="columnheader" scope="col"> 5632 <div class="container-top" skeleton-loading="is-loading.bind:pageLoading;height:20px;"> 5633 <span class="th-sort-text">\${'CG_TYPE' | siteStrings}</span> 5634 </div> 5635 </th> 5636 5637 <th class="questing-header mdc-data-table__header-cell d-none d-lg-table-cell \${pageLoading ? 'sk-loading' : ''}" role="columnheader" scope="col"> 5638 <div class="container-top th-sort-container" skeleton-loading="is-loading.bind:pageLoading;height:20px;"> 5639 <span class="th-sort-text">\${'CG_GOLD' | siteStrings}</span> 5640 <div class="mdc-icon-button material-icons mdc-data-table__sort-icon-button text-white th-sort-arrows"> 5641 <cds-icon-button 5642 id="gold-up" 5643 ref="goldArrowUp" 5644 class="position-relative sort-asc" 5645 click.trigger="sortBy(1, goldArrowUp)" 5646 >
5647 <cds-icon icon="arrow_drop_up"></cds-icon> 5648 </cds-icon-button> 5649 <cds-icon-button 5650 id="gold-down" 5651 ref="goldArrowDown" 5652 class="position-relative sort-desc" 5653 click.trigger="sortBy(1, goldArrowDown)" 5654 > 5655 <cds-icon icon="arrow_drop_down"></cds-icon> 5656 </cds-icon-button> 5657 </div> 5658 </div> 5659 </th> 5660 5661 <th class="questing-header mdc-data-table__header-cell \${pageLoading ? 'sk-loading' : ''}" role="columnheader" scope="col"> 5662 <div class="container-top container-right th-sort-container" skeleton-loading="is-loading.bind:pageLoading;height:20px;"> 5663 <span class="th-sort-text">\${'CG_PRICE' | siteStrings}</span> 5664 <div class="mdc-icon-button material-icons mdc-data-table__sort-icon-button text-white th-sort-arrows"> 5665 <cds-icon-button 5666 id="price-up" 5667 ref="priceArrowUp" 5668 class="position-relative sort-asc" 5669 click.trigger="sortBy(2, priceArrowUp)" 5670 >
5671 <cds-icon icon="arrow_drop_up"></cds-icon> 5672 </cds-icon-button> 5673 <cds-icon-button 5674 id="price-down" 5675 ref="priceArrowDown" 5676 class="position-relative sort-desc" 5677 click.trigger="sortBy(2, priceArrowDown)" 5678 > 5679 <cds-icon icon="arrow_drop_down"></cds-icon> 5680 </cds-icon-button> 5681 </div> 5682 </div> 5683 </th> 5684 </tr> 5685 5686 <tr class="sub-header"> 5687 <th class="mdc-data-table__header-cell questing-header text-start" colspan="4"> 5688 <img 5689 class="item-image" 5690 src="/icons/leveling-category-icon.svg" 5691 alt="skill" 5692 loading="lazy" 5693 if.bind="!pageLoading" 5694 > 5695 <span 5696 skeleton-loading="is-loading.bind:pageLoading;height:20px;" 5697 class="products-string d-none d-lg-inline" 5698 innerhtml.bind="productsStringLarge | autoSiteString"> 5699 </span> 5700 <span 5701 skeleton-loading="is-loading.bind:pageLoading;height:20px;" 5702 class="products-string d-lg-none" 5703 innerhtml.bind="productsStringShort | autoSiteString"> 5704 </span> 5705 </th> 5706 <div class="dropdown"> 5707 <th 5708 class="mdc-data-table__header-cell questing-header product-dropdown" 5709 role="columnheader" 5710 scope="col" 5711 colspan="1" 5712 > 5713 <button 5714 id="show-products-selector" 5715 class="btn cursor-pointer text-white p-0" 5716 data-bs-toggle="dropdown" 5717 data-bs-display="static" 5718 data-bs-auto-close="outside" 5719 aria-expanded="false" 5720 skeleton-loading="is-loading.bind:pageLoading;height:20px;" 5721 > 5722 <span class="d-none d-md-inline">\${'CG_SHOW_PRODUCTS' | siteStrings}</span> 5723 <span class="d-inline d-md-none">\${cartLabel}</span> 5724 <div class="filter-arrow-icon"> 5725 <cds-icon-button class="material-icons open-filter">
5726 <cds-icon icon="arrow_drop_down"></cds-icon> 5727 </cds-icon-button> 5728 </div> 5729 </button> 5730 <div 5731 id="show-products-dropdown" 5732 class="dropdown-menu selected-products position-absolute dropdown-menu-lg-start dropdown-menu-end" 5733 aria-labelledby="show-products-selector" 5734 > 5735 <div class="row p-3"> 5736 <p class="col-10 p-selected-title"> 5737 \${'CG_SELECTED_PRODUCTS' | siteStrings} 5738 </p> 5739 <button class="col-2 ps-button" click.delegate="closeFilter()"> 5740 <img src="/icons/close-circle-icon.svg" alt="close-icon"> 5741 </button> 5742 </div> 5743 <section class="products-selected pb-3 \${selectedQuests.length > 10 ? '' : 'unset-mh'}" data-simplebar> 5744 <p class="p-2 px-3 product-selected text-truncate" repeat.for="quest of selectedQuests"> 5745 \${quest.product.name | languageKeyFormatter | siteStrings:quest.product.name} 5746 </p> 5747 </section> 5748 <div class="dividing-line-container m-0 p-0"> 5749 <div class="dividing-line m-0 p-0"></div> 5750 </div> 5751 <div class="row p-3"> 5752 <p class="col-10 p-total"> 5753 \${'CG_PRODUCTS' | siteStrings}: 5754 </p> 5755 <p class="col-2 p-total"> 5756 \${selectedQuests.length} 5757 </p> 5758 </div> 5759 </div> 5760 </th> 5761 </div> 5762 </tr> 5763 </thead> 5764 </table> 5765 </div> 5766 5767 <!-- Questing Table Body --> 5768 <div data-simplebar id="mobile-table-scrollbar" class.bind="isDrawerInstance ? 'drawner-table' : ''"> 5769 <div class="mdc-data-table__table-container"> 5770 <table class="mdc-data-table__table t-body"> 5771 <tbody class="mdc-data-table__content"> 5772 <tr class="mdc-data-table__row" repeat.for="quest of quests" if.bind="!pageLoading && quest.show"> 5773 <td class="mdc-data-table__cell"> 5774 <div class="dt-display-content"> 5775 <cds-checkbox 5776 state.bind="quest.selected ? 'checked' : 'unchecked'" 5777 input.trigger="questSelection(quest)" 5778 class="checkbox customer-checkbox text-center"> 5779 </cds-checkbox> 5780 5781 <div 5782 if.bind="quest.product.name.length > 24" 5783 class="text-truncate font-row title-absolute" 5784 mdc-tooltip="value.bind: quest.product.name; y-position: BELOW" 5785 mdc-tooltip.ref="questNameTooltip" 5786 click.delegate="helper.showPopup({content: questNameTooltip})" 5787 mouseover.trigger="tooltipArrowStyling.toView(questNameTooltip)"> 5788 \${quest.product.name | languageKeyFormatter | siteStrings:quest.product.name} 5789 </div> 5790 <div else class="font-row title-absolute"> 5791 \${quest.product.name | languageKeyFormatter | siteStrings:quest.product.name} 5792 </div> 5793 </div> 5794 </td> 5795 5796 <td class="mdc-data-table__cell"> 5797 <div class="dt-display-content font-row"> 5798 <p class="m-0" show.bind="width < desktop"> 5799 \${'CG_TYPE' | siteStrings} 5800 </p>
5801 <span class="col-text"> 5802 \${quest.product.productSubCategory.name | languageKeyFormatter | siteStrings:quest.product.productSubCategory.name} 5803 </span> 5804 </div> 5805 </td> 5806 5807 <td class="mdc-data-table__cell"> 5808 <div class="dt-display-content font-row"> 5809 <p class="m-0" show.bind="width < desktop"> 5810 \${'CG_GOLD' | siteStrings} 5811 </p> 5812 <span class="col-text"> 5813 \${quest.product.goldRequired}\${'CG_MILLION_SUFFIX' | siteStrings: 'M'} 5814 </span> 5815 </div> 5816 </td> 5817 5818 <td class="mdc-data-table__cell"> 5819 <div class="dt-display-content font-row"> 5820 <p class="m-0" show.bind="width < desktop"> 5821 \${'CG_PRICE' | siteStrings} 5822 </p> 5823 <span class="col-text"> 5824 \${quest.displayPrice | currencyFormat & async} 5825 </span> 5826 </div> 5827 </td> 5828 </tr> 5829 <tr class="mdc-data-table__row skeleton-rows" repeat.for="i of 8" show.bind="pageLoading"> 5830 <td class="mdc-data-table__cell"> 5831 <div class="dt-display-content"> 5832 <span class="d-inline-block align-middle" skeleton-loading="is-loading.bind:pageLoading;width:24px;height:24px;"></span> 5833 <span class="font-row title-absolute" skeleton-loading="is-loading.bind:pageLoading;width:85%;height:20px;"></span> 5834 </div> 5835 </td> 5836 <td class="mdc-data-table__cell"> 5837 <div class="dt-display-content font-row"> 5838 <p class="m-0 d-block d-lg-none" skeleton-loading="is-loading.bind:pageLoading;height:14px;width:50px;"></p> 5839 <span class="d-block" skeleton-loading="is-loading.bind:pageLoading;height:20px;width:70px;"></span> 5840 </div> 5841 </td> 5842 <td class="mdc-data-table__cell"> 5843 <div class="dt-display-content font-row"> 5844 <p class="m-0 d-block d-lg-none" skeleton-loading="is-loading.bind:pageLoading;height:14px;width:50px;"></p> 5845 <span class="d-block" skeleton-loading="is-loading.bind:pageLoading;height:20px;width:70px;"></span> 5846 </div> 5847 </td> 5848 <td class="mdc-data-table__cell"> 5849 <div class="dt-display-content font-row"> 5850 <p class="m-0 d-block d-lg-none" skeleton-loading="is-loading.bind:pageLoading;height:14px;width:50px;"></p> 5851 <span class="d-block" skeleton-loading="is-loading.bind:pageLoading;height:20px;width:70px;"></span> 5852 </div> 5853 </td> 5854 </tr> 5855 </tbody> 5856 </table> 5857 </div> 5858 </div> 5859 5860 <!-- Questing Table Foot --> 5861 <div> 5862 <table class="mdc-data-table__table pt-1 mt-1 mt-md-3 mt-lg-0 pt-lg-0 \${pageLoading ? 'skeleton-wrapper' : ''}"> 5863 <tfoot class="sticky-footer"> 5864 <tr> 5865 <th class="mdc-data-table__header-cell \${pageLoading ? 'sk-loading' : ''}"> 5866 <div class="dt-display-content" skeleton-loading="is-loading.bind:pageLoading;height:20px"> 5867 \${'CG_TOTAL' | siteStrings} 5868 </div> 5869 </th> 5870 5871 <th class="mdc-data-table__header-cell \${pageLoading ? 'sk-loading' : ''}"> 5872 <div class="dt-display-content" skeleton-loading="is-loading.bind:pageLoading;height:20px"> 5873 <p class="m-0" show.bind="width < desktop"> 5874 \${'CG_ITEMS' | siteStrings: 'Items'} 5875 </p>
5876 <span class="col-text"> 5877 \${selectedQuests.length} \${(width > tablet ? 'CG_ITEMS' : '') | siteStrings: 'Items'} 5878 </span> 5879 </div> 5880 </th> 5881 5882 <th class="mdc-data-table__header-cell \${pageLoading ? 'sk-loading' : ''}"> 5883 <div class="dt-display-content" skeleton-loading="is-loading.bind:pageLoading;height:20px"> 5884 <p class="m-0" show.bind="width < desktop"> 5885 \${'CG_GOLD' | siteStrings} 5886 </p> 5887 <span class="col-text"> 5888 \${totalGold}\${'CG_MILLION_SUFFIX' | siteStrings: 'M'} 5889 </span> 5890 </div> 5891 </th> 5892 5893 <th class="mdc-data-table__header-cell \${pageLoading ? 'sk-loading' : ''}"> 5894 <div class="dt-display-content" skeleton-loading="is-loading.bind:pageLoading;height:20px"> 5895 <p class="m-0" show.bind="width < desktop"> 5896 \${'CG_PRICE' | siteStrings} 5897 </p> 5898 <span class="col-text"> 5899 \${totalPrice | currencyFormat & async} 5900 </span> 5901 </div> 5902 </th> 5903 </tr> 5904 </tfoot> 5905 </table> 5906 </div> 5907 </div> 5908 <!-- Checkout Button --> 5909 <div class="template-content-separation service-checkout-section" if.bind="!isDrawerInstance" skeleton-loading.bind="pageLoading"> 5910 <div class="d-flex flex-column flex-wrap w-100"> 5911 <div class="d-flex flex-column flex-md-row checkbox-row"> 5912 <cds-radio-button-group class="cds-radio-group-responsive d-flex flex-column flex-md-row"> 5913 <div class="d-flex align-items-center p-0"> 5914 <cds-radio-button 5915 value="true" 5916 name="haveGold" 5917 checked.bind="haveGold" 5918 skeleton-loading.bind="pageLoading" 5919 click.trigger="handleRadioInput(true)" 5920 ></cds-radio-button>
5920 5921 <label class="text-white ps-1 ps-lg-2" style="cursor:pointer;" click.delegate="handleRadioInput(true)"> 5922 \${'CG_ALREADY_HAVE' | siteStrings} 5923 <span class="text-green">\${totalGold}\${'CG_MILLION_SUFFIX' | siteStrings: 'M'}</span> 5924 \${'CG_GOLD_IN_THE_BANK' | siteStrings} 5925 </label> 5926 </div> 5927 <div class="d-flex align-items-center p-0"> 5928 <cds-radio-button 5929 value="false" 5930 name="haveGold" 5931 checked.bind="!haveGold" 5932 skeleton-loading.bind="pageLoading" 5933 click.trigger="handleRadioInput(false)" 5934 ></cds-radio-button> 5935 <label class="text-white ps-1 ps-lg-2" style="cursor:pointer;" click.delegate="handleRadioInput(false)"> 5936 \${'CG_WILL_PROVIDE' | siteStrings} 5937 <span class="text-green">\${totalGold}\${'CG_MILLION_SUFFIX' | siteStrings: 'M'}</span> 5938 \${'CG_GOLD' | siteStrings} (\${'CG_GOLD_PRICE' | siteStrings}: \${totalGoldPrice | currencyFormat:'(0,0.00[0])' & async}) 5939 </label> 5940 </div> 5941 </cds-radio-button-group> 5942 </div> 5943 <page-content-area 5944 if.bind="(dynamicDisclaimer || viewingAsAdmin) && !pageLoading" 5945 class="optimized-method" 5946 key="\${keyName}_DISCLAIMER"> 5947 </page-content-area> 5948 <span 5949 if.bind="!dynamicDisclaimer && !viewingAsAdmin" 5950 class="optimized-method d-none d-lg-inline" 5951 > 5952 \${'CG_OPTIMIZED_TRAINING_METHODS_MESSAGE_3' | siteStrings | sanitizeHtml:true} 5953 \${'CG_CUSTOM_QUOTE_MESSAGE_1' | siteStrings | sanitizeHtml:true} 5954 <a href="https://discord.gg/chicks-boosting" class="cursor-pointer text-decoration-underline" target="_blank" rel="nofollow noopener noreferrer">\${'CG_DISCORD_INVITE_LINK' | siteStrings: 'discord.gg/chicks-boosting'}</a>\${'CG_CUSTOM_QUOTE_MESSAGE_2' | siteStrings | sanitizeHtml:true} 5955 <span class="cursor-pointer text-decoration-underline" click.delegate="openLivechat()">\${'CG_CUSTOM_QUOTE_MESSAGE_3' | siteStrings | sanitizeHtml:true}</span> 5956 </span> 5957 <span 5958 if.bind="!dynamicDisclaimer && !viewingAsAdmin" 5959 class="optimized-method d-lg-none" 5960 > 5961 \${'CG_OPTIMIZED_TRAINING_METHODS_MESSAGE_4' | siteStrings | sanitizeHtml:true} 5962 <span class="cursor-pointer text-decoration-underline" click.delegate="openLivechat()"> 5963 \${'CG_CUSTOMER_SUPPORT' | siteStrings | sanitizeHtml:true} 5964 </span> 5965 </span> 5966 </div> 5967 5968 <div class="d-flex"> 5969 <div if.bind="width >= desktop && !addedToCart" class="d-flex ps-4 justify-content-end"> 5970 <button 5971 mdc-button 5972 outlined 5973 type="submit" 5974 click.delegate="addToCart()" 5975 class="review-button p-4 button-blue-filled" 5976 data-cy="request-quote" 5977 >\${'CG_ADD_TO_CART' | siteStrings}</button> 5978 </div> 5979 <div if.bind="width >= desktop && addedToCart" class="d-flex ps-4 justify-content-end"> 5980 <button 5981 mdc-button 5982 class="review-button p-4 button-gray-filled text-gray font-light" 5983 type="button" 5984 click.delegate="addedToCart = false" 5985 data-cy="keep-shopping" 5986 >\${'CG_KEEP_SHOPPING' | siteStrings}</button> 5987 </div> 5988 <div if.bind="width >= desktop && addedToCart" class="d-flex ps-4 justify-content-end"> 5989 <a 5990 mdc-button 5991 click.trigger="handleCheckoutButton()" 5992 class="review-button p-4 button-blue-filled" 5993 data-cy="checkout" 5994 >\${'CG_CHECKOUT' | siteStrings}</a> 5995 </div> 5996 </div> 5997 <!-- Tablet & mobile fixed bottom button --> 5998 <div if.bind="width < desktop && !pageLoading" class="floating-bottom-bar-service py-2"> 5999 <div if.bind="!addedToCart" class="d-flex col-12"> 6000 <button 6001 mdc-button outlined 6002 type="submit" click.delegate="addToCart()" 6003 class="review-button p-4 button-blue-filled" 6004 data-cy="add-to-cart" 6005 >\${'CG_ADD_TO_CART' | siteStrings} \u2022 \${totalPrice | currencyFormat & async}</button> 6006 </div> 6007 <div if.bind="addedToCart" class="d-flex col-12"> 6008 <button 6009 mdc-button 6010 class="w-100 p-4 button-gray-filled text-gray mr-2" 6011 type="button" click.delegate="addedToCart = false" 6012 data-cy="keep-shopping" 6013 >\${'CG_KEEP_SHOPPING' | siteStrings}</button> 6014 <a 6015 mdc-button 6016 click.trigger="handleCheckoutButton()" 6017 class="w-100 p-4 button-blue-filled" 6018 data-cy="checkout" 6019 >\${'CG_CHECKOUT' | siteStrings}</a> 6020 </div> 6021 </div> 6022 </div> 6023 <!-- Page Content --> 6024 <div> 6025 <cg-seo-dropdown 6026 if.bind="!isDrawerInstance" 6027 is-loading.bind="pageLoading" 6028 header-title.bind="'CG_VIEW_MORE' | siteStrings"> 6029 <cg-template-service 6030 key.bind="keyName"> 6031 </cg-template-service> 6032 </cg-seo-dropdown> 6033 </div> 6034 </div> 6035</template> 6036`;f.default=s}),
6036"pages/services/services.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 6037 <div 6038 id="services" 6039 class=" 6040 main-content-padding 6041 position-relative 6042 \${helper.includesSome(selectedChildGame.shortName, ['OSRSCUSTOMORDER', 'RS3CUSTOMORDER']) ? 'service-extra-top' : ''} 6043 \${runescapeServicesBackgroundClass} 6044 " 6045 element.ref="serviceSelector" 6046 > 6047 <div if.bind="!gameNotAvailable" class="container head-services"> 6048 <div 6049 show.bind="isTitleLoading" 6050 class="title-substitute-skeleton" 6051 skeleton-loading.bind="isTitleLoading"> 6052 </div> 6053 <header class="d-flex heading-container" if.bind="!isTitleLoading"> 6054 <div class="heading-title"> 6055 <page-content-area 6056 show.bind="shouldShowContentArea" 6057 class="truncate-text" 6058 key="SERVICES\${title}_PAGE_TITLE" 6059 data-cy="title" 6060 ></page-content-area> 6061 <h1 6062 show.bind="!shouldShowContentArea && shouldShowTitle" 6063 class="page-title truncate-text d-none d-md-block"> 6064 \${selectedChildGame.headerTitle} 6065 </h1> 6066 <h1 6067 show.bind="!shouldShowContentArea && shouldShowTitleName" 6068 class="page-title truncate-text \${isStaticPage ? 'd-block' : 'd-block d-md-none'}"> 6069 \${selectedGame.headerTitle ? selectedGame.headerTitle : selectedGame.name} 6070 </h1> 6071 <h1 6072 show.bind="!shouldShowContentArea && shouldShowTitleName && isDynamicServiceRoute" 6073 class="page-title truncate-text d-none d-md-block"> 6074 \${selectedGame.name} 6075 </h1> 6076 </div> 6077 </header> 6078 <div 6079 if.bind="!isDynamicServiceRoute" 6080 class="services-area grid-layout \${pageLoading ? 'border-color-transparent' : ''}" 6081 > 6082 <div if.bind="width >= desktop" class="product-category-selector" skeleton-loading="is-loading.bind:pageLoading;height:52px;"> 6083 <cg-product-category-selector 6084 show-heading.bind="width < desktop" 6085 skeleton-loading="is-loading.bind:pageLoading;height:52px;"> 6086 </cg-product-category-selector> 6087 </div> 6088 6089 <div if.bind="width < desktop" class="product-category-selector" skeleton-loading="is-loading.bind:pageLoading;height:52px;"> 6090 <template repeat.for="filterKey of [selectedRouteKey]"> 6091 <cds-filter 6092 key.bind="filterKey" 6093 field.bind="routesFilterField" 6094 disabled.bind="!selectedGame" 6095 auto-select.bind="!!selectedService" 6096 value.bind="selectedRouteKey" 6097 selected.trigger="filterRouteChanged($event)" 6098 class="dynamic-filter w-100"> 6099 </cds-filter> 6100 </template> 6101 </div> 6102 6103 <div class="search-input-additional d-none d-lg-block" 6104 skeleton-loading="is-loading.bind:pageLoading;width:100%;height:52px;"> 6105 <cds-search 6106 slot="drawer-header" 6107 trailing-icon="close" 6108 leading-icon="search" 6109 class="searchbar" 6110 label.bind="'CG_SEARCH' | siteStrings " 6111 value.two-way="search & debounce:500" 6112 input.trigger="handleSearch($event)"> 6113 </cds-search> 6114 </div> 6115 6116 <div class="route-container d-none d-lg-block"> 6117 <div 6118 if.bind="pageLoading || (!selectedService && !isLandingPage) || !selectedGame" 6119 class="d-flex" 6120 style="overflow-x: auto; min-height: 52px;"> 6121 <div 6122 if.bind="!isBuyServicesRoute" 6123 repeat.for="i of 6" 6124 class="d-inline-block head-route my-lg-auto me-2 me-lg-5 pe-1" 6125 skeleton-loading="is-loading.bind:pageLoading;width:120px;height:24px;"> 6126 </div> 6127 </div> 6128 6129 <div if.bind="!pageLoading && (selectedService || isLandingPage) && selectedGame" class="d-flex" style="overflow-x: auto; min-height: 52px;"> 6130 <div 6131 repeat.for="route of routes" 6132 click.delegate="routeActiveStatus[route.key] ? gameChanged($event.detail, route.key): ''" 6133 id="route-label-\${route.key}" 6134 class=" 6135 d-inline-block head-route my-lg-auto me-2 me-lg-5 pe-1 6136 \${routeActiveStatus[route.key] === false ? 'opacity-20' : ''} 6137 \${selectedService === route.service ? 'text-white' : 'text-gray pb-1'} 6138 " 6139 >
6140 <span 6141 class="\${routeActiveStatus[route.key] === false ? 'cursor-default' : 'cursor-pointer'} font-medium text-uppercase text-regular service-tab-title"> 6142 \${route.label | siteStrings} 6143 </span> 6144 <cg-line 6145 show.bind="selectedService === route.service" 6146 width="auto" 6147 max-width="58px" 6148 color="blue" 6149 class="mb-0 cg-line--no-mb" 6150 ></cg-line> 6151 <cds-tooltip 6152 show.bind="routeActiveStatus[route.key] === false" 6153 reference-id="route-label-\${route.key}" 6154 ref="route.tooltipRef" 6155 placement="top" 6156 y-offset.bind="-4" 6157 style="white-space: normal;" 6158 > 6159 \${'CG_CATEGORY_DISABLED_FOR_GAME' | siteStrings: 'This category is disabled for this game. Please contact support for assistance.'} 6160 </cds-tooltip> 6161 </div> 6162 </div> 6163 </div> 6164 6165 <div class="additional-filters-container" skeleton-loading="is-loading.bind:pageLoading;width:75px;height:52px"> 6166 <cg-responsive-filter-layout 6167 view-model.ref="filterLayout" 6168 controller.bind="getFilterLayoutConfig" 6169 page-loading.bind="pageLoading" 6170 skeleton-loading="is-loading.bind:pageLoading;"> 6171 <template replace-part="drawer-main-content"> 6172 <div class="container"> 6173 <compose 6174 view.bind="currentServiceView" 6175 view-model.bind="currentServiceViewModel" 6176 model.bind="{drawerIsOpen: filterLayout.drawerIsOpen, sharedServiceState: sharedServiceState, selectedService: selectedService}"> 6177 </compose> 6178 </div> 6179 </template> 6180 <template replace-part="layout-filters"> 6181 <cg-filter-section-template 6182 class="\${getPaddingFix}" 6183 first-heading-text.bind="null" 6184 third-heading-text.bind="null" 6185 second-section-class="cds-filter--fullscreen" 6186 third-section-class="additional-filters-layout" 6187 show-clear-filters="true" 6188 on-clear-filters.bind="handleClearFilters"> 6189 <div slot="second-section" class="cg-filters-template__grid"> 6190 6191 <div if.bind="width < desktop" class="service-filter"> 6192 <cg-product-category-selector 6193 show-heading.bind="true"> 6194 </cg-product-category-selector> 6195 </div> 6196 6197 <div class="game-selector"> 6198 <cds-game-selector 6199 view-model.ref="gameSelector" 6200 category.bind="navCategory.id" 6201 disabled.bind="pageLoading" 6202 disable-mode.bind="true" 6203 value.bind="selectedGame" 6204 data-cy="game-selector" 6205 gameselected.trigger="gameChanged($event.detail)" 6206 ></cds-game-selector> 6207 </div> 6208 6209 <div class="position-relative service-filter" show.bind="(!selectedGame || selectedService === 'powerleveling')"> 6210 <cds-text-field 6211 class="character-import w-100 \${showGreenCheckMarkCharacterName ? 'cg-input--success' : showErrorCheckMarkCharacterName ? 'cg-input--error' : ''}" 6212 variant="filled" 6213 type="text" 6214 label.bind="'CG_CHARACTER_IMPORT' | siteStrings" 6215 placeholder.bind="'CG_CHARACTER_NAME' | siteStrings"
6216 value.two-way="accountName" 6217 state.two-way="characterNameState" 6218 focusin.trigger="characterNameOnFocusIn()" 6219 focusout.trigger="checkCharacterNameValidation()" 6220 trailing-icon=" "> 6221 </cds-text-field> 6222 </div> 6223 6224 <div if.bind="shouldShowGameModeFilter" class="service-filter"> 6225 <cds-filter 6226 if.bind="gameModeFilterField" 6227 field.bind="gameModeFilterField" 6228 disabled.bind="!selectedGame" 6229 auto-select="true" 6230 selected.trigger="onGameModeFilterSelected($event)" 6231 view-model.ref="gameModeFilter" 6232 class="dynamic-filter w-100" 6233 keep-open-on-select.bind="true" 6234 force-close-on-select.bind="true" 6235 ></cds-filter> 6236 </div> 6237 6238 <div if.bind="shouldShowDifficultyFilter" class="service-filter"> 6239 <cds-filter 6240 if.bind="difficultyFilterField" 6241 field.bind="difficultyFilterField" 6242 auto-select="true" 6243 selected.trigger="onDifficultyFilterSelected($event)" 6244 view-model.ref="difficultyFilter" 6245 class="dynamic-filter w-100" 6246 keep-open-on-select.bind="true" 6247 force-close-on-select.bind="true" 6248 ></cds-filter> 6249 </div> 6250 </div> 6251 </cg-filter-section-template> 6252 </template> 6253 </cg-responsive-filter-layout> 6254 </div> 6255 </div> 6256 </div> 6257 <cg-try-again-box 6258 else 6259 main-fallback.bind="\`\${gameUnavailable.name} \${gameUnavailable.productCategories[0].name} is no longer available\`" 6260 game-subtitle="true" 6261 games.bind="gamesForNoAvailable" 6262 button-text.bind="'Explore more' | autoSiteString" 6263 icon="link_off" 6264 href.bind="'/'" 6265 margin-divider-gap="true" 6266 ></cg-try-again-box> 6267 6268 <div class="\${width <= desktop && isStaticPage ? 'mt-4 mt-lg-0' : ''} container"> 6269 <div 6270 if.bind="isDynamicServiceRoute" 6271 class="main-content-block-no-border \${pageLoading ? 'skeleton-game-container-block' : ''}" 6272 > 6273 <div class="col main-dynamic-service-container" ref="servicesMainContainer"> 6274 <div 6275 show.bind="pageLoading" 6276 class="dynamic-service-container w-100 position-relative d-none d-lg-block" 6277 skeleton-loading="is-loading.bind:pageLoading;height:336px;width:100%;"> 6278 </div> 6279 <div 6280 show.bind="pageLoading" 6281 class="dynamic-service-container w-100 skeleton-fields-grid position-relative d-lg-none"> 6282 <div class="d-grid col-12 col-sm-12 col-lg-6 dynamic-filters w-100"> 6283 <div 6284 repeat.for="item of skeletonFieldPlaceholders" 6285 class="position-relative" 6286 skeleton-loading="is-loading.bind:pageLoading;height:52px;width:var(--fields-width-skeleton);"> 6287 </div> 6288 </div> 6289 </div> 6290 <div show.bind="!pageLoading" class="dynamic-service-container w-100"> 6291 <div element.ref="dynamicFiltersContainer" class="d-grid col-12 col-sm-12 col-lg-6 dynamic-filters w-100"> 6292 <div> 6293 <cg-game-selector 6294 category="dynamic service" 6295 manual-games.bind="games" 6296 handle-change-function-string="gameChanged" 6297 selected-game.two-way="selectedGame" 6298 awaiting-initial-selection.bind="awaitingInitialSelection" 6299 page-loading.bind="pageLoading" 6300 ></cg-game-selector> 6301 </div> 6302 <div if.bind="dynamicFormFields.length" repeat.for="field of dynamicFormFields" class="position-relative"> 6303 <cg-dynamic-field-v2 6304 field.bind="field" 6305 change-function.bind="handleFieldChange" 6306 no-max-width.bind="true" 6307 page-loading.bind="pageLoading" 6308 ></cg-dynamic-field-v2> 6309 </div> 6310 <div class="position-relative"> 6311 <cds-text-field 6312 ref="additionalInformationTextArea" 6313 type="textarea" 6314 variant="filled" 6315 rows="1" 6316 id="additional-information" 6317 label.bind="'Additional Information (optional)' | autoSiteString" 6318 placeholder.bind="'Enter Additional Information' | autoSiteString" 6319 value.bind="additionalInformation" 6320 state="\${additionalInformationSuccess ? 'success' : 'normal'}" 6321 class="w-100 textarea-container" 6322 disabled.bind="pageLoading" 6323 ></cds-text-field> 6324 <cds-icon 6325 icon="check_circle" 6326 class="circle-icon show-green-checkmark-hover textarea-checkmark-additional-information" 6327 show.bind="additionalInformationSuccess && !pageLoading"> 6328 </cds-icon> 6329 </div> 6330 <div class="d-flex flex-column"> 6331 <div id="drop-zone-outside" class="position-relative drop-zone-outside"> 6332 <cg-file-uploader 6333 class="style-uploader" 6334 ref="fileInput" 6335 label.bind="'CG_UPLOAD_OR_DRAG_FILES' | siteStrings" 6336 files-list.two-way="filesList" 6337 skeleton-loading="is-loading.bind:pageLoading;force-div:true;height:52px;width:var(--fields-width-skeleton);" 6338 ></cg-file-uploader> 6339 </div> 6340 <div if.bind="tempFiles.length" class="cg-files-list d-flex"> 6341 <cds-list class="w-70 container-files container-files\${showLess ? '-close' : '-more'} ps-0 d-grid"> 6342 <section id="scrollbar" class="screenshots-scrollbar" data-simplebar> 6343 <div class="files-container \${fileContainerOpened} d-grid"> 6344 <cds-list-item repeat.for="file of tempFiles | spliceArray:0:filesToShow"> 6345 <div class="flex-center-between"> 6346 <div class="file-name text-white cursor-default text-truncate"> 6347 \${helper.sanitizeHtml(file.name, true)} 6348 </div> 6349 <cds-icon
6349if.bind="file.isLoaded" 6350 icon="close" 6351 class="text-white ms-auto" 6352 click.trigger="deleteItem($index)" 6353 role="button"> 6354 </cds-icon> 6355 <cds-circular-progress if.bind="!file.isLoaded" 6356 size="small"> 6357 </cds-circular-progress> 6358 </div> 6359 </cds-list-item> 6360 </div> 6361 </section> 6362 </cds-list> 6363 <div show.bind="isOverflowing && !showLess" class="style-more cursor-pointer" 6364 click.delegate="seeMore()"><span>\${'CG_SEE_MORE' | siteStrings}<span></div> 6365 <div show.bind="isOverflowing && showLess" class="style-close cursor-pointer" 6366 click.delegate="toggleFilesVisibility()"><span>\${'CG_CLOSE' | siteStrings: 'Close'}</span></div> 6367 </div> 6368 </div> 6369 </div> 6370 </div> 6371 <div show.bind="!pageLoading" class="live-button-container d-flex justify-content-center style-request"> 6372 <cds-button 6373 data-cy="request-quote-button" 6374 disabled.bind="!pageLoading && requestQuoteDisabled" 6375 type="submit" 6376 variant="filled" 6377 class="submit-button" 6378 click.trigger="handleSelectedFields()" 6379 > 6380 <cds-circular-progress if.bind="triggeredService"></cds-circular-progress> 6381 <span else>\${'CG_REQUEST_QUOTE' | siteStrings}</span> 6382 </cds-button> 6383 </div> 6384 </div> 6385 </div> 6386 <div class="no-game-selected-seo-dropdown" if.bind="!selectedGame && isBuyServicesRoute"> 6387 <cg-seo-content 6388 main-suffix.bind="seoKey" 6389 current-page-loading.bind="pageLoading" 6390 class="d-flex justify-content-center seo-dropdown"> 6391 </cg-seo-content> 6392 </div> 6393 <router-view class="services-content"></router-view> 6394 </div> 6395 </div> 6396</template> 6397`;f.default=s}),
6397"pages/services/valorant-boosting/valorant-boosting.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 6398 <div id="valorant-boosting"> 6399 <!-- Valorant Table --> 6400 <div class="mdc-data-table main-content-block"> 6401 <div class="table-container 6402 \${currentSectionOpened === 'unrankedBoostingSection' ? 'al' : currentSectionOpened === 'placementMatchesBoostingSection' ? 'pm' : ''} 6403 \${width <= desktop && !allTabsClosed && (currentRank !== 'Choose One' || currentSectionOpened === 'unrankedBoostingSection') ? 'table-container-tablet' : ''} 6404 \${width <= mediumphone && allTabsClosed ? 'table-container-tabs-closed' : ''}" 6405 > 6406 <table class="mdc-data-table__table t-body"> 6407 <tbody class="mdc-data-table__content"> 6408 <!--Rank Boosting--> 6409 <tr class="mdc-data-table__row" show.bind="boostingSectionsList[0].show"> 6410 <td class="mdc-data-table__cell boost-section-cell row xp-0 overflow-visible" element.ref="rankBoostingSection" skeleton-loading.bind="pageLoading"> 6411 <div class="col-12 row inner-row cursor-pointer" click.delegate="openBoostSection(eloBoostSectionBox, ebArrowBox, rankBoostingSection, boosting)"> 6412 <div class="col-10"> 6413 <img 6414 class="item-image" 6415 src="/icons/green-icons/hammerpickaxe.svg" 6416 alt="hammer pickaxe" 6417 loading="lazy" 6418 > 6419 <span>\${'CG_RANK_BOOSTING' | siteStrings}</span> 6420 </div> 6421 <div class="col-2"> 6422 <div class="float-end"> 6423 <div class="filter-arrow-icon"> 6424 <button class="mdc-icon-button material-icons mdc-data-table__sort-icon-button 6425 text-green align-middle"> 6426 <div class="open-filter arrow-boost-section arrow-open" element.ref="ebArrowBox">arrow_drop_down</div> 6427 </button> 6428 </div> 6429 </div> 6430 </div> 6431 </div> 6432 <!--Boosting Section Content--> 6433 <div class="col-12 row p-0 boost-section-box \${firstState ? 'db-open':''} \${width <= desktop && currentRank !== 'Choose One' && currentSectionOpened === 'rankBoostingSection' ? 'db-open-tablet' : ''}" element.ref="eloBoostSectionBox"> 6434 <div class="col-12 row inner-row-section p-4 \${width <= desktop && currentRank !== 'Choose One' && currentSectionOpened === 'rankBoostingSection' ? 'inner-row-tablet' : ''}"> 6435 <div class="bs-grid \${currentRank === 'Choose One' ? 'one-row-displayed' :''}" id="elo-boost"> 6436 <div class="bs-inner-grid \${width <= desktop && currentRank !== 'Choose One' && currentSectionOpened === 'rankBoostingSection' ? 'boosting-border-bottom' : ''}"> 6437 <div class="font-bold">\${'CG_CURRENT_ELO' | siteStrings}</div> 6438 <div class="bs-inner-bottom-grid"> 6439 <div class="text-regular"> 6440 <div>\${'CG_SERVER' | siteStrings}</div> 6441 <mdc-select value.bind="currentServer" class="select-background-filled select-border-white w-100 region-select"> 6442 <img 6443 src="/services/game-mode-icon.svg" 6444 mdc-select-icon 6445 loading="lazy" 6446 alt="game mode" 6447 > 6448 <mdc-list> 6449 <mdc-list-item repeat.for="server of servers" value.bind="server" class="text-white"> 6450 \${server} 6451 </mdc-list-item> 6452 </mdc-list> 6453 </mdc-select> 6454 </div> 6455 <div class="text-regular"> 6456 <div>\${'CG_RANK' | siteStrings}</div> 6457 <mdc-select 6458 value.bind="currentRank" 6459 class="select-background-filled select-border-white w-100 \${currentRank === 'Choose One' ? 'co' : ''}" 6460 > 6461 <img 6462 if.bind="currentRank !== 'Choose One'" 6463 src="/icons/val-ranks/\${currentRank.toLowerCase()}.svg" 6464 alt.bind="currentRank" 6465 mdc-select-icon 6466 loading="lazy" 6467 > 6468 <mdc-list> 6469 <mdc-list-item repeat.for="rank of ranks" value.bind="rank" class="text-white" show.bind="rank !== 'Radiant'"> 6470 <sp
6470an class="select-item-icon me-1" if.bind="rank !== 'Choose One'"> 6471 <img 6472 src="/icons/val-ranks/\${rank.toLowerCase()}.svg" 6473 mdc-select-icon 6474 loading="lazy" 6475 alt.bind="rank" 6476 > 6477 </span> 6478 <span class="select-item-text \${rank === 'Choose One' ? 'co' : ''}">\${rank}</span> 6479 </mdc-list-item> 6480 </mdc-list> 6481 </mdc-select> 6482 </div> 6483 <div class="text-regular"> 6484 <div>\${'CG_DIVISION' | siteStrings}</div> 6485 <mdc-select 6486 value.bind="currentDivision" 6487 disabled.bind="currentRank.includes('Master') || currentRank.includes('GrandMaster') || currentRank.includes('Radiant')" 6488 class="select-background-filled select-border-white w-100" 6489 > 6490 <mdc-list> 6491 <mdc-list-item repeat.for="division of divisions" value.bind="division" class="text-white"> 6492 \${division} 6493 </mdc-list-item> 6494 </mdc-list> 6495 </mdc-select> 6496 </div> 6497 <div class="text-regular"> 6498 <div>RR</div> 6499 <mdc-select 6500 value.bind="currentLpRange" 6501 disabled.bind="currentRank.includes('Master') || currentRank.includes('GrandMaster')" 6502 class="select-background-filled select-border-white w-100" 6503 > 6504 <mdc-list> 6505 <mdc-list-item repeat.for="lpRange of lpRanges" value.bind="lpRange" class="text-white"> 6506 \${lpRange} 6507 </mdc-list-item> 6508 </mdc-list> 6509 </mdc-select> 6510 </div> 6511 </div> 6512 </div> 6513 <div class="bs-inner-grid p-0 ps-lg-4 \${currentRank === 'Choose One' ? 'd-none' :''}"> 6514 <div class="font-bold">\${'CG_EXPECTED_ELO' | siteStrings}</div> 6515 <div class="bs-inner-bottom-grid"> 6516 <div class="text-regular"> 6517 <div>\${'CG_RANK' | siteStrings}</div> 6518 <mdc-select 6519 value.bind="expectedRank" 6520 class="select-background-filled select-border-white w-100 \${expectedRank === 'Choose One' ? 'co' : ''}" 6521 > 6522 <img 6523 if.bind="expectedRank !== 'Choose One'" 6524 src="/icons/val-ranks/\${expectedRank.toLowerCase()}.svg" 6525 alt.bind="expectedRank" 6526 mdc-select-icon 6527 loading="lazy" 6528 > 6529 <mdc-list> 6530 <mdc-list-item repeat.for="rank of expectedRankList" value.bind="rank.name" class="text-white" show.bind="rank.display"> 6531 <sp
6531an class="select-item-icon me-1" if.bind="rank.name !== 'Choose One'"> 6532 <img 6533 src="/icons/val-ranks/\${rank.name.toLowerCase()}.svg" 6534 mdc-select-icon 6535 loading="lazy" 6536 alt.bind="rank.name" 6537 > 6538 </span> 6539 <span class="select-item-text \${rank === 'Choose One' ? 'co' : ''}">\${rank.name}</span> 6540 </mdc-list-item> 6541 </mdc-list> 6542 </mdc-select> 6543 </div> 6544 <div class="text-regular"> 6545 <div>\${'CG_DIVISION' | siteStrings}</div> 6546 <mdc-select 6547 value.bind="expectedDivision" 6548 disabled.bind="expectedRank.includes('Master') || expectedRank.includes('GrandMaster') || expectedRank.includes('Radiant')" 6549 class="select-background-filled select-border-white w-100" 6550 > 6551 <mdc-list> 6552 <mdc-list-item repeat.for="division of expectedDivisionList" value.bind="division.name" class="text-white" show.bind="division.display"> 6553 \${division.name} 6554 </mdc-list-item> 6555 </mdc-list> 6556 </mdc-select> 6557 </div> 6558 <div class="text-regular"> 6559 <div>\${'CG_TYPE_OF_QUEUE' | siteStrings}</div> 6560 <mdc-select value.bind="queueSelected" class="select-background-filled select-border-white w-100"> 6561 <mdc-list> 6562 <mdc-list-item repeat.for="queueType of queueTypes" value.bind="queueType" class="text-white"> 6563 \${queueType} 6564 </mdc-list-item> 6565 </mdc-list> 6566 </mdc-select> 6567 </div> 6568 <div class="text-regular"> 6569 <div class="text-center text-sm-start"> 6570 \${'CG_PRICE' | siteStrings} 6571 <span class="d-inline-block d-sm-none">\${price | currencyFormat & async}</span> 6572 </div> 6573 <div class="d-none d-sm-flex price-tag">\${price | currencyFormat & async}</div> 6574 </div> 6575 </div> 6576 </div> 6577 </div> 6578 </div> 6579 </div> 6580 </td> 6581 </tr> 6582 <!--Win Boosting--> 6583 <tr class="mdc-data-table__row" show.bind="boostingSectionsList[1].show"> 6584 <td class="mdc-data-table__cell boost-section-cell row xp-0" element.ref="winBoostingSection" skeleton-loading.bind="pageLoading"> 6585 <div class="col-12 row inner-row cursor-pointer" click.delegate="openBoostSection(winBoostSectionBox, wbArrowBox, winBoostingSection, boosting)"> 6586 <div class="col-10"> 6587 <img 6588 class="item-image" 6589 src="/icons/green-icons/hammerpickaxe.svg" 6590 alt="hammer pickaxe" 6591 loading="lazy" 6592 >
6593 <span>\${'CG_WIN_BOOSTING' | siteStrings}</span> 6594 </div> 6595 <div class="col-2"> 6596 <div class="float-end"> 6597 <div class="filter-arrow-icon"> 6598 <button class="mdc-icon-button material-icons mdc-data-table__sort-icon-button 6599 text-green align-middle"> 6600 <div class="open-filter arrow-boost-section arrow-close" element.ref="wbArrowBox">arrow_drop_down</div> 6601 </button> 6602 </div> 6603 </div> 6604 </div> 6605 </div> 6606 <!--Boosting Section Content--> 6607 <div class="col-12 row p-0 boost-section-box \${width <= desktop && currentRank !== 'Choose One' && currentSectionOpened === 'winBoostingSection' ? 'db-open-tablet' : ''}" element.ref="winBoostSectionBox"> 6608 <div class="col-12 row inner-row-section p-4 \${width <= desktop && currentRank !== 'Choose One' && currentSectionOpened === 'winBoostingSection' ? 'inner-row-tablet' : ''}"> 6609 <div class="bs-grid \${currentRank === 'Choose One' ? 'one-row-displayed' :''}" id="win-boost"> 6610 <div class="bs-inner-grid \${width <= desktop && currentRank !== 'Choose One' && currentSectionOpened === 'winBoostingSection' ? 'boosting-border-bottom' : ''}"> 6611 <div class="font-bold">\${'CG_CURRENT_ELO' | siteStrings}</div> 6612 <div class="bs-inner-bottom-grid"> 6613 <div class="text-regular"> 6614 <div>\${'CG_SERVER' | siteStrings}</div> 6615 <mdc-select value.bind="currentServer" class="select-background-filled select-border-white w-100"> 6616 <img 6617 src="/services/game-mode-icon.svg" 6618 mdc-select-icon 6619 loading="lazy" 6620 alt="game mode" 6621 > 6622 <mdc-list> 6623 <mdc-list-item repeat.for="server of servers" value.bind="server" class="text-white"> 6624 \${server} 6625 </mdc-list-item> 6626 </mdc-list> 6627 </mdc-select> 6628 </div> 6629 <div class="text-regular"> 6630 <div>\${'CG_RANK' | siteStrings}</div> 6631 <mdc-select value.bind="currentRank" class="select-background-filled select-border-white w-100 \${currentRank === 'Choose One' ? 'co' : ''}"> 6632 <img 6633 if.bind="currentRank !== 'Choose One'" 6634 src="/icons/val-ranks/\${currentRank.toLowerCase()}.svg" 6635 alt.bind="currentRank" 6636 mdc-select-icon 6637 loading="lazy" 6638 > 6639 <mdc-list> 6640 <mdc-list-item repeat.for="rank of ranks" value.bind="rank" class="text-white"> 6641 <sp
6641an class="select-item-icon me-1" if.bind="rank !== 'Choose One'"> 6642 <img 6643 src="/icons/val-ranks/\${rank.toLowerCase()}.svg" 6644 mdc-select-icon 6645 loading="lazy" 6646 alt.bind="rank" 6647 > 6648 </span> 6649 <span class="select-item-text \${rank === 'Choose One' ? 'co' : ''}">\${rank}</span> 6650 </mdc-list-item> 6651 </mdc-list> 6652 </mdc-select> 6653 </div> 6654 <div class="text-regular"> 6655 <div>\${'CG_DIVISION' | siteStrings}</div> 6656 <mdc-select 6657 value.bind="currentDivision" 6658 disabled.bind="currentRank.includes('Master') || currentRank.includes('GrandMaster') || currentRank.includes('Radiant')" 6659 class="select-background-filled select-border-white w-100" 6660 > 6661 <mdc-list> 6662 <mdc-list-item repeat.for="division of divisions" value.bind="division" class="text-white"> 6663 \${division} 6664 </mdc-list-item> 6665 </mdc-list> 6666 </mdc-select> 6667 </div> 6668 <div class="text-regular"> 6669 <div>RR</div> 6670 <mdc-select 6671 value.bind="currentLpRange" 6672 disabled.bind="currentRank.includes('Master') || currentRank.includes('GrandMaster')" 6673 class="select-background-filled select-border-white w-100" 6674 > 6675 <mdc-list> 6676 <mdc-list-item repeat.for="lpRange of lpRanges" value.bind="lpRange" class="text-white"> 6677 \${lpRange} 6678 </mdc-list-item> 6679 </mdc-list> 6680 </mdc-select> 6681 </div> 6682 </div> 6683 </div> 6684 <div class="bs-inner-grid p-0 ps-lg-4 \${currentRank === 'Choose One' ? 'd-none' :''}"> 6685 <div class="font-bold">\${'CG_EXPECTED_WINS' | siteStrings}</div> 6686 <div class="bs-inner-bottom-grid"> 6687 <div class="text-regular"> 6688 <div>\${'CG_WINS' | siteStrings}</div> 6689 <cg-quantity-input product.two-way="winBoostingWins" value.t
6689wo-way="winBoostingWins.selectedQuantity"></cg-quantity-input> 6690 </div> 6691 <div class="text-regular"> 6692 <div>Type of Queue</div> 6693 <mdc-select value.bind="queueSelected" class="select-background-filled select-border-white w-100"> 6694 <mdc-list> 6695 <mdc-list-item repeat.for="queueType of queueTypes" value.bind="queueType" class="text-white"> 6696 \${queueType} 6697 </mdc-list-item> 6698 </mdc-list> 6699 </mdc-select> 6700 </div> 6701 <div class="text-regular"> 6702 <div class="text-center text-sm-start"> 6703 \${'CG_PRICE' | siteStrings} 6704 <span class="d-inline-block d-sm-none">\${price | currencyFormat & async}</span> 6705 </div> 6706 <div class="d-none d-sm-flex price-tag">\${price | currencyFormat & async}</div> 6707 </div> 6708 </div> 6709 </div> 6710 </div> 6711 </div> 6712 </div> 6713 </td> 6714 </tr> 6715 <!--Placement Matches--> 6716 <tr class="mdc-data-table__row" show.bind="boostingSectionsList[2].show"> 6717 <td class="mdc-data-table__cell boost-section-cell row xp-0" element.ref="placementMatchesBoostingSection" skeleton-loading.bind="pageLoading"> 6718 <div class="col-12 row inner-row cursor-pointer" click.delegate="openBoostSection(placementMatchesBoostSectionBox, pmArrowBox, placementMatchesBoostingSection, boosting)"> 6719 <div class="col-10"> 6720 <img 6721 class="item-image" 6722 src="/icons/green-icons/hammerpickaxe.svg" 6723 alt="hammer pickaxe" 6724 loading="lazy" 6725 > 6726 <span>\${'CG_PLACEMENT_MATCHES' | siteStrings}</span> 6727 </div> 6728 <div class="col-2"> 6729 <div class="float-end"> 6730 <div class="filter-arrow-icon"> 6731 <button class="mdc-icon-button material-icons mdc-data-table__sort-icon-button text-green align-middle"> 6732 <div class="open-filter arrow-boost-section arrow-close" element.ref="pmArrowBox">arrow_drop_down</div> 6733 </button> 6734 </div> 6735 </div> 6736 </div> 6737 </div> 6738 <!--Boosting Section Content--> 6739 <div class="col-12 row p-0 boost-section-box pm \${width <= desktop && currentRank !== 'Choose One' && currentSectionOpened === 'placementMatchesBoostingSection' ? 'db-open-tablet' : ''}" element.ref="placementMatchesBoostSectionBox"> 6740 <div class="col-12 row inner-row-section p-4 pm \${width <= desktop && currentRank !== 'Choose One' && currentSectionOpened === 'placementMatchesBoostingSection' ? 'inner-row-tablet' : ''}"> 6741 <div class="bs-grid \${currentRank === 'Choose One' ? 'one-row-displayed' :''}" id="placement-matches"> 6742 <div class="bs-inner-grid \${width <= desktop && currentRank !== 'Choose One' && currentSectionOpened === 'placementMatchesBoostingSection' ? 'boosting-border-bottom' : ''}"> 6743 <div class="font-bold">\${'CG_PREVIOUS_ELO' | siteStrings}</div> 6744 <div class="bs-inner-bottom-grid"> 6745 <div class="text-regular"> 6746 <div>\${'CG_SERVER' | siteStrings}</div> 6747 <mdc-select value.bind="currentServer" class="select-background-filled select-border-white w-100 region-select"> 6748 <img 6749 src="/services/game-mode-icon.svg" 6750 mdc-select-icon 6751 loading="lazy" 6752 alt="game mode" 6753 > 6754 <mdc-list> 6755 <mdc-list-item repeat.for="server of servers" value.bind="server" class="text-white"> 6756 \${server} 6757 </mdc-list-item> 6758 </mdc-list> 6759 </mdc-select> 6760 </div> 6761 <div class="text-regular"> 6762 <div>\${'CG_RANK' | siteStrings}</div> 6763 <mdc-select value.bind="currentRank" class="select-background-filled select-border-white w-100 \${currentRank === 'Choose One' ? 'co' : ''}"> 6764 <img 6765 if.bind="currentRank !== 'Choose One'" 6766 src="/icons/val-ranks/\${currentRank.toLowerCase()}.svg" 6767 alt.bind="currentRank" 6768 mdc-select-icon 6769 loading="lazy" 6770 > 6771 <mdc-list> 6772 <mdc-list-item repeat.for="rank of ranks" value.bind="rank" class="text-white"> 6773 <sp
6773an class="select-item-icon me-1" if.bind="rank !== 'Choose One'"> 6774 <img 6775 src="/icons/val-ranks/\${rank.toLowerCase()}.svg" 6776 mdc-select-icon 6777 loading="lazy" 6778 alt.bind="rank" 6779 > 6780 </span> 6781 <span class="select-item-text \${rank === 'Choose One' ? 'co' : ''}">\${rank}</span> 6782 </mdc-list-item> 6783 </mdc-list> 6784 </mdc-select> 6785 </div> 6786 </div> 6787 </div> 6788 <div class="bs-inner-grid p-0 ps-lg-4 \${currentRank === 'Choose One' ? 'd-none' :''}"> 6789 <div class="font-bold">\${'CG_AMOUNT_OF_GAMES' | siteStrings}</div> 6790 <div class="bs-inner-bottom-grid"> 6791 <div class="text-regular"> 6792 <div>\${'CG_GAMES' | siteStrings}</div> 6793 <cg-quantity-input 6794 product.two-way="placementMatchWins" 6795 value.two-way="placementMatchWins.selectedQuantity" 6796 ></cg-quantity-input> 6797 </div> 6798 <div class="text-regular"> 6799 <div>\${'CG_TYPE_OF_QUEUE' | siteStrings}</div> 6800 <mdc-select value.bind="queueSelected" class="select-background-filled select-border-white w-100"> 6801 <mdc-list> 6802 <mdc-list-item repeat.for="queueType of queueTypes" value.bind="queueType" class="text-white"> 6803 \${queueType} 6804 </mdc-list-item> 6805 </mdc-list> 6806 </mdc-select> 6807 </div> 6808 <div class="text-regular"> 6809 <div class="text-center text-sm-start"> 6810 \${'CG_PRICE' | siteStrings} 6811 <span class="d-inline-block d-sm-none">\${price | currencyFormat & async}</span> 6812 </div> 6813 <div class="d-none d-sm-flex price-tag">\${price | currencyFormat & async}</div> 6814 </div> 6815 </div> 6816 </div> 6817 </div> 6818 </div> 6819 </div> 6820 </td> 6821 </tr> 6822 <!--Unranked Leveling--> 6823 <tr class="mdc-data-table__row" show.bind="boostingSectionsList[3].show"> 6824 <td class="mdc-data-table__cell boost-section-cell row xp-0" element.ref="unrankedBoostingSection" skeleton-loading.bind="pageLoading"> 6825 <div class="col-12 row inner-row cursor-pointer" click.delegate="openBoostSection(accountLevelingBoostSectionBox, alArrowBox, unrankedBoostingSection, boosting)"> 6826 <div class="col-10"> 6827 <img 6828 class="item-image" 6829 src="/icons/green-icons/hammerpickaxe.svg" 6830 alt="hammer pickaxe" 6831 loading="lazy" 6832 >
6833 <span>\${'CG_UNRANKED_MATCHES' | siteStrings}</span> 6834 </div> 6835 <div class="col-2"> 6836 <div class="float-end"> 6837 <div class="filter-arrow-icon"> 6838 <button class="mdc-icon-button material-icons mdc-data-table__sort-icon-button text-green align-middle"> 6839 <div class="open-filter arrow-boost-section arrow-close" element.ref="alArrowBox">arrow_drop_down</div> 6840 </button> 6841 </div> 6842 </div> 6843 </div> 6844 </div> 6845 <!--Boosting Section Content--> 6846 <div class="col-12 row p-0 boost-section-box al \${width <= desktop && currentSectionOpened === 'unrankedBoostingSection' ? 'db-open-tablet' : ''}" element.ref="accountLevelingBoostSectionBox"> 6847 <div class="col-12 row inner-row-section p-4 al \${width <= desktop && currentSectionOpened === 'unrankedBoostingSection' ? 'inner-row-tablet' : ''}"> 6848 <div class="bs-grid" id="account-leveling"> 6849 <div class="bs-inner-grid \${width <= desktop && currentSectionOpened === 'unrankedBoostingSection' ? 'boosting-border-bottom' : ''}"> 6850 <div class="font-bold">\${'CG_CURRENT_LEVEL' | siteStrings}</div> 6851 <div class="bs-inner-bottom-grid"> 6852 <div class="text-regular"> 6853 <div>\${'CG_SERVER' | siteStrings}</div> 6854 <mdc-select value.bind="currentServer" class="select-background-filled select-border-white w-100"> 6855 <img 6856 src="/services/game-mode-icon.svg" 6857 mdc-select-icon 6858 loading="lazy" 6859 alt="game mode" 6860 > 6861 <mdc-list> 6862 <mdc-list-item repeat.for="server of servers" value.bind="server" class="text-white"> 6863 \${server} 6864 </mdc-list-item> 6865 </mdc-list> 6866 </mdc-select> 6867 </div> 6868 <div class="text-regular"> 6869 <div>\${'CG_LEVEL' | siteStrings}</div> 6870 <cg-quantity-input product.two-way="accountStartLevel" value.two-way="accountStartLevel.selectedQuantity"></cg-quantity-input> 6871 </div> 6872 </div> 6873 </div> 6874 <div class="bs-inner-grid p-0 ps-lg-4"> 6875 <div class="font-bold">\${'CG_EXPECTED_LEVEL' | siteStrings}</div> 6876 <div class="bs-inner-bottom-grid"> 6877 <div class="text-regular"> 6878 <div>\${'CG_LEVEL' | siteStrings}</div> 6879 <cg-quantity-input product.two-way="accountEndLevel" value.t
6879wo-way="accountEndLevel.selectedQuantity"></cg-quantity-input> 6880 </div> 6881 <div class="text-regular"> 6882 <div class="text-center text-sm-start"> 6883 \${'CG_PRICE' | siteStrings} 6884 <span class="d-inline-block d-sm-none">\${price | currencyFormat & async}</span> 6885 </div> 6886 <div class="d-none d-sm-flex price-tag">\${price | currencyFormat & async}</div> 6887 </div> 6888 </div> 6889 </div> 6890 </div> 6891 </div> 6892 </div> 6893 </td> 6894 </tr> 6895 </tbody> 6896 </table> 6897 <table class="w-100"> 6898 <tfoot> 6899 <tr> 6900 <td class="footer-grid text-regular px-4 \${pageLoading ? 'd-flex justify-content-between' : ''}"> 6901 <div> 6902 <span skeleton-loading.bind="pageLoading">\${'CG_TOTALS' | siteStrings}</span> 6903 </div> 6904 <div class="float-right"> 6905 <span class="\${pageLoading ? 'd-flex' : ''}" skeleton-loading="is-loading.bind:pageLoading;width:100px;height:20px;">\${'CG_TOTAL_AMOUNT' | siteStrings}: \${price | currencyFormat & async}</span> 6906 </div> 6907 </td> 6908 </tr> 6909 </tfoot> 6910 </table> 6911 </div> 6912 </div> 6913 <!-- Checkout Button --> 6914 <div class="row template-content-separation"> 6915 <div class="d-flex col-12 col-lg-8"> 6916 <page-content-area if.bind="(dynamicDisclaimer || viewingAsAdmin) && !pageLoading" class="optimized-method text-small font-light mb-3 mb-lg-0 line-height-reduced mt-0 mt-lg-2 mt-xl-0" key="\${keyName}_DISCLAIMER"></page-content-area> 6917 <span if.bind="!dynamicDisclaimer && !viewingAsAdmin" class="optimized-method text-small font-light mb-3 mb-lg-0 line-height-reduced mt-0 mt-lg-2 mt-xl-0" skeleton-loading.bind="pageLoading"> 6918 \${'CG_OPTIMIZED_TRAINING_METHODS_MESSAGE_2' | siteStrings} 6919 <div class="mt-2"> 6920 \${'CG_CUSTOM_QUOTE_MESSAGE_1' | siteStrings} 6921 <a href="https://discord.gg/chicks-boosting" class="cursor-pointer text-decoration-underline" target="_blank" rel="nofollow noopener noreferrer">discord.gg/chicks-boosting</a>\${'CG_CUSTOM_QUOTE_MESSAGE_2' | siteStrings} 6922 <span class="cursor-pointer text-decoration-underline" click.delegate="openLivechat()">\${'CG_CUSTOM_QUOTE_MESSAGE_3' | siteStrings}</span>. 6923 </div> 6924 </span> 6925 </div> 6926 <div if.bind="width >= tablet && !addedToCart" class="d-flex col-12 col-lg-4 ps-lg-4 justify-content-lg-end"> 6927 <button 6928 mdc-button 6929 outlined 6930 type="submit" 6931 click.delegate="addToCart()" 6932 class="review-button mt-lg-2 p-4 button-blue-filled" 6933 skeleton-loading.bind="pageLoading" 6934 > 6935 \${'CG_ADD_TO_CART' | siteStrings}: 6936 </button> 6937 </div> 6938 <div if.bind="width >= tablet && addedToCart" class="d-flex col-6 col-lg-2 ps-lg-4 justify-content-lg-end" if.bind="addedToCart"> 6939 <button mdc-button class="w-100 mt-lg-2 p-4 button-gray-filled text-gray font-light" type="button" click.delegate="addedToCart = false">\${'CG_KEEP_SHOPPING' | siteStrings}:</button> 6940 </div> 6941 <div if.bind="width >= tablet && addedToCart" class="d-flex col-6 col-lg-2 ps-lg-4 justify-content-lg-end" if.bind="addedToCart"> 6942 <a click.trigger="handleCheckoutButton()" mdc-button class="w-100 mt-lg-2 p-4 button-blue-filled">\${'CG_CHECKOUT' | siteStrings}</a> 6943 </div> 6944 <div if.bind="width < tablet" class="floating-bottom-bar-service d-block d-xl-none py-2"> 6945 <button if.bind="!addedToCart && !pageLoading" mdc-button outlined type="submit" click.delegate="addToCart()" class="review-button mt-lg-2 p-4 button-blue-filled text-large">\${'CG_ADD_TO_CART' | siteStrings}: \u2022 \${totalPrice | currencyFormat & async}</button> 6946 <a if.bind="addedToCart" click.trigger="handleCheckoutButton()" mdc-button class="w-100 mt-lg-2 p-4 button-blue-filled text-large">\${'CG_CHECKOUT' | siteStrings} \u2022 \${totalPrice | currencyFormat & async}</a> 6947 </div> 6948 </div> 6949 <!-- Page Content --> 6950 <cg-seo-dropdown is-loading.bind="pageLoading" header-title.bind="'CG_VIEW_MORE' | siteStrings"> 6951 <cg-template-service key.bind="keyName"> 6952 </cg-template-service> 6953 </cg-seo-dropdown> 6954 </div> 6955</template> 6956`;f.default=s}),
6956"pages/services/wow-powerleveling/wow-powerleveling.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 6957 <div id="wow-powerleveling"> 6958 <!-- FullTable --> 6959 <div class="main-content-block"> 6960 <div> 6961 <!-- Header --> 6962 <div class="table-grid wowpw-h-box"> 6963 <div>\${'CG_CURRENT_LEVEL' | siteStrings}</div> 6964 <div>\${'CG_EXPECTED_LEVEL' | siteStrings}</div> 6965 <div>\${'CG_REGION' | siteStrings}</div> 6966 <div>\${'CG_FACTION' | siteStrings}</div> 6967 <div>\${'CG_CLASS' | siteStrings}</div> 6968 <div>\${'CG_ESTIMATED_TIME' | siteStrings} 6969 <cds-icon 6970 ref="estimatedTimeTooltipIcon" 6971 id="wowpw-estimated-time-tooltip" 6972 icon="contact_support" 6973 variant="outlined" 6974 class="tooltip-icon vertical-align-sub" 6975 click.delegate="helper.showPopup({content: tooltip})" 6976 aria-label="tooltip"></cds-icon> 6977 <cds-tooltip 6978 portal 6979 reference-id="wowpw-estimated-time-tooltip" 6980 target-ref.bind="estimatedTimeTooltipIcon" 6981 placement="top"> 6982 \${tooltip} 6983 </cds-tooltip> 6984 </div> 6985 </div> 6986 <!-- Body --> 6987 <div class="table-grid wowpw-b-box \${loading ? 'loading-container' : ''}"> 6988 <mdc-linear-progress if.bind="loading" open.bind="loading"></mdc-linear-progress> 6989 <div if.bind="skill && !loading" class="d-flex align-items-center d-lg-block"> 6990 <cg-quantity-input product.two-way="skill" value.t
6990wo-way="skill.startLevel & debounce:200"></cg-quantity-input> 6991 </div> 6992 <div if.bind="skill && !loading" class="d-flex align-items-center d-lg-block"> 6993 <cg-quantity-input product.two-way="skill" value.two-way="skill.endLevel & debounce:200"></cg-quantity-input> 6994 </div> 6995 <div if.bind="skill && !loading" class="text-regular pe-3 pe-sm-0 pe-lg-3"> 6996 <mdc-select value.bind="currentRegion" class="select-background-filled select-border-white region-select w-100"> 6997 <mdc-list> 6998 <mdc-list-item repeat.for="region of regions" value.bind="region" class="text-white"> 6999 \${region} 7000 </mdc-list-item> 7001 </mdc-list> 7002 </mdc-select> 7003 </div> 7004 <div if.bind="skill && !loading" class="text-regular pe-0 pe-sm-3"> 7005 <mdc-select value.bind="currentFaction" class="select-background-filled select-border-white region-select w-100"> 7006 <mdc-list> 7007 <mdc-list-item repeat.for="faction of factions" value.bind="faction" class="text-white"> 7008 \${faction} 7009 </mdc-list-item> 7010 </mdc-list> 7011 </mdc-select> 7012 </div> 7013 <div if.bind="skill && !loading" class="text-regular pe-3"> 7014 <mdc-select value.bind="currentClass" class="select-background-filled select-border-white region-select w-100"> 7015 <mdc-list> 7016 <mdc-list-item repeat.for="class of classes" value.bind="class.name" class="text-white"> 7017 \${class.name} 7018 </mdc-list-item> 7019 </mdc-list> 7020 </mdc-select> 7021 </div> 7022 <div if.bind="skill && !loading" class="text-regular"> 7023 <mdc-select value.bind="currentEstimate" class="select-background-filled select-border-white region-select w-100"> 7024 <mdc-list> 7025 <mdc-list-item repeat.for="estimate of estimatedTime" value.bind="estimate.name" class="text-white"> 7026 \${estimate.name} 7027 </mdc-list-item> 7028 </mdc-list> 7029 </mdc-select> 7030 </div> 7031 </div> 7032 <!-- Footer --> 7033 <div class="wowpw-f-box"> 7034 <div>\${'CG_TOTAL' | siteStrings}:</div> 7035 <div>\${totalPrice | currencyFormat & async}</div> 7036 </div> 7037 </div> 7038 </div> 7039 <!-- Checkout Button --> 7040 <div class="row template-content-separation"> 7041 <div class="col-12 col-sm-10 col-lg-8 mt-1"> 7042 <div class="d-flex flex-column"> 7043 <page-content-area if.bind="dynamicDisclaimer || viewingAsAdmin" class="optimized-method text-small font-light mb-3 mb-lg-0 line-height-reduced mt-0 mt-lg-2 mt-xl-0" key="\${keyName}_DISCLAIMER"></page-content-area> 7044 <span if.bind="!dynamicDisclaimer && !viewingAsAdmin" class="optimized-method text-small font-light mb-3 mb-lg-0 line-height-reduced mt-0 mt-lg-2 mt-xl-0"> 7045 \${'CG_WOW_POWERLEVELING_MESSAGE' | siteStrings} 7046 <div class="mt-2"> 7047 \${'CG_CUSTOM_QUOTE_MESSAGE_1' | siteStrings} 7048 <a href="https://discord.gg/chicks-boosting" class="cursor-pointer text-decoration-underline" target="_blank" rel="nofollow noopener noreferrer">discord.gg/chicks-boosting</a>\${'CG_CUSTOM_QUOTE_MESSAGE_2' | siteStrings} 7049 <span class="cursor-pointer text-decoration-underline" click.delegate="openLivechat()">\${'CG_CUSTOM_QUOTE_MESSAGE_3' | siteStrings}</span>. 7050 </div> 7051 </span> 7052 </div> 7053 </div> 7054 <div if.bind="width >= tablet && !addedToCart" class="d-flex col-12 col-lg-4 ps-lg-4 justify-content-lg-end"> 7055 <button 7056 mdc-button 7057 outlined 7058 type="submit" 7059 click.delegate="addToCart()" 7060 class="review-button mt-lg-2 p-4 button-blue-filled" 7061 > 7062 \${'CG_ADD_TO_CART' | siteStrings}: 7063 </button> 7064 </div> 7065 <div if.bind="width >= tablet && addedToCart" class="d-flex col-6 col-lg-2 ps-lg-4 justify-content-lg-end" if.bind="addedToCart"> 7066 <button mdc-button class="w-100 mt-lg-2 p-4 button-gray-filled text-gray font-light" type="button" click.delegate="addedToCart = false">\${'CG_KEEP_SHOPPING' | siteStrings}:</button> 7067 </div> 7068 <div if.bind="width >= tablet && addedToCart" class="d-flex col-6 col-lg-2 ps-lg-4 justify-content-lg-end" if.bind="addedToCart"> 7069 <a click.trigger="handleCheckoutButton()" mdc-button class="w-100 mt-lg-2 p-4 button-blue-filled">\${'CG_CHECKOUT' | siteStrings}</a> 7070 </div> 7071 <div if.bind="width < tablet" class="floating-bottom-bar-service d-block d-xl-none py-2"> 7072 <button if.bind="!addedToCart" mdc-button outlined type="submit" click.delegate="addToCart()" class="review-button mt-lg-2 p-4 button-blue-filled text-large">\${'CG_ADD_TO_CART' | siteStrings}: \u2022 \${totalPrice | currencyFormat & async}</button> 7073 <a if.bind="addedToCart" click.trigger="handleCheckoutButton()" mdc-button class="w-100 mt-lg-2 p-4 button-blue-filled text-large">\${'CG_CHECKOUT' | siteStrings} \u2022 \${totalPrice | currencyFormat & async}</a> 7074 </div> 7075 </div> 7076 <!-- Page Content --> 7077 <div class="mt-4"> 7078 <cg-seo-dropdown is-loading.bind="pageLoading" header-title.bind="'CG_VIEW_MORE' | siteStrings"> 7079 <cg-template-service key.bind="keyName"></cg-template-service> 7080 </cg-seo-dropdown> 7081 </div> 7082 </div> 7083</template> 7084`;f.default=s}),
7084"pages/site-down/site-down.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 7085 <cg-try-again-box 7086 id="site-down" 7087 show-status.bind="true" 7088 use-keys.bind="false" 7089 main="SITE_DOWN_TITLE" 7090 subtitle="SITE_DOWN_SUBTITLE" 7091 main-fallback.bind="'CG_WEBSITE_UNDER_MAINTENANCE' | siteStrings: 'Website under maintenance'" 7092 subtitle-fallback.bind="'CG_WEBSITE_UNDER_MAINTENANCE_FALLBACK' | siteStrings: 'Website is currently down, please try again after a few minutes. If you are still unable to connect, send us an email to [email protected] and we\u2019ll get back you in a few minutes.'" 7093 page="Site Down" 7094 icon="build" 7095 variant="filled" 7096 button-text.bind="'CG_TRY_AGAIN' | siteStrings: 'Try again'" 7097 href.bind="redirectTo" 7098 site-status.bind="'https://status.chicksgold.com/'" 7099 ></cg-try-again-box> 7100</template> 7101`;f.default=s}),
7101"pages/sitemap/sitemap.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 7102 <div id="sitemap" class="main-content-padding"> 7103 <div class="container-lg"> 7104 <div class="d-flex title-area \${selectedCategory ? 'selected-category' : ''}"> 7105 <h1 show.bind="!selectedCategory" class="sitemap-title font-bold mb-0" skeleton-loading="is-loading.bind:pageLoading;">\${'Sitemap' | autoSiteString}</h1> 7106 <cg-breadcrumbs if.bind="selectedCategory && !pageLoading" class="w-100" breadcrumbs.bind="breadcrumbs" exclude-forcing-active="true" force-parent-function="true"></cg-breadcrumbs> 7107 <cg-responsive-filter-layout 7108 view-model.ref="cgResponsiveFilterLayoutRef" 7109 controller.bind="getSitemapLayoutConfig" 7110 skip-page-loading.bind="true" 7111 > 7112 <template replace-part="drawer-main-content"> 7113 <div class="p-regular"> 7114 <template if.bind="!selectedCategory"> 7115 <cg-sitemap-unselected-category 7116 categories.bind="filteredPages" 7117 site-map-page-route.bind="siteMapPageRoute" 7118 class="d-grid main-categories-container mt-none" 7119 change-function.bind="categorySelected" 7120 width.bind="width" 7121 search.bind="search" 7122 page-loading.bind="pageLoading" 7123 ></cg-sitemap-unselected-category> 7124 </template> 7125 <template if.bind="selectedCategory && !pageLoading"> 7126 <cg-sitemap-selected-category 7127 selected-category.bind="selectedCategory" 7128 ></cg-sitemap-selected-category> 7129 </template> 7130 </div> 7131 </template> 7132 </cg-responsive-filter-layout> 7133 </div> 7134 <div if.bind="!noResults"> 7135 <template if.bind="!selectedCategory"> 7136 <cg-sitemap-unselected-category 7137 categories.bind="filteredPages" 7138 site-map-page-route.bind="siteMapPageRoute" 7139 class="d-grid main-categories-container" 7140 change-function.bind="categorySelected" 7141 width.bind="width" 7142 search.bind="search" 7143 page-loading.bind="pageLoading" 7144 ></cg-sitemap-unselected-category> 7145 </template> 7146 <template if.bind="selectedCategory && !pageLoading"> 7147 <cg-sitemap-selected-category 7148 selected-category.bind="selectedCategory" 7149 ></cg-sitemap-selected-category> 7150 </template> 7151 </div> 7152 <cds-no-results if.bind="noResults" class="d-flex flex-column no-results-container w-100"></cds-no-results> 7153 </div> 7154 </div> 7155</template> 7156`;f.default=s}),
7156"pages/terms-of-service/terms-of-service.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 7157 <text-page-template content-keys.bind="contentKeys" 7158 page-name="Terms Of Service" 7159 page-route="terms-of-service" 7160 ></text-page-template> 7161</template> 7162`;f.default=s}),
7162"pages/withdraw-fees/withdraw-fees.html":(function(W,f,e){"use strict";e.r(f);var s=`<template> 7163 <require from="./withdraw-fees.scss"></require> 7164 <text-page-template 7165 page-name="Withdraw Fees" 7166 page-route="withdraw-fees" 7167 content-keys.bind="contentKeys"> 7168 <div slot="after-content" class="withdraw-fees-tables-container"> 7169 <!-- Fiat Table --> 7170 <div class="withdraw-table-section" if.bind="fiatMethods.length > 0"> 7171 <div class="table-responsive"> 7172 <table class="table withdraw-fees-table"> 7173 <thead> 7174 <tr> 7175 <th>\${'Methods' | autoSiteString}</th> 7176 <th>\${'Minimum' | autoSiteString}</th> 7177 <th>\${'Fees' | autoSiteString}</th> 7178 <th>\${'Processing' | autoSiteString}</th> 7179 </tr> 7180 </thead> 7181 <tbody> 7182 <tr repeat.for="method of fiatMethods"> 7183 <td class="method-name"> 7184 <img src.bind="method.icon" alt="\${method.name} icon" class="payment-icon \${method.overrideIconColor ? 'override__color' : ''}" if.bind="method.icon" /> 7185 <span>\${method.name}</span> 7186 </td> 7187 <td>\${'$'}\${method.minimumWithdrawAmount}</td> 7188 <td>\${'Flat fee of' | autoSiteString} \${'$'}\${method.baseWithdrawFee} \${'plus' | autoSiteString} \${method.withdrawFee}%</td> 7189 <td>\${'1 - 5 business days' | autoSiteString}<span if.bind="method.withdrawStepNotes"> - \${method.withdrawStepNotes}</span></td> 7190 </tr> 7191 </tbody> 7192 </table> 7193 </div> 7194 7195 <!-- Mobile cards --> 7196 <div class="withdraw-fees-mobile-cards"> 7197 <div class="method-card" repeat.for="method of fiatMethods"> 7198 <div class="method-card-header"> 7199 <img src.bind="method.icon" alt="\${method.name} icon" class="payment-icon \${method.overrideIconColor ? 'override__color' : ''}" if.bind="method.icon" /> 7200 <span>\${method.name}</span> 7201 </div> 7202 <div class="method-card-row"> 7203 <span class="label">\${'Minimum' | autoSiteString}</span> 7204 <span class="value">\${'$'}\${method.minimumWithdrawAmount}</span> 7205 </div> 7206 <div class="method-card-row"> 7207 <span class="label">\${'Fees' | autoSiteString}</span> 7208 <span class="value">\${'Flat fee of' | autoSiteString} \${'$'}\${method.baseWithdrawFee} \${'plus' | autoSiteString} \${method.withdrawFee}%</span> 7209 </div> 7210 <div class="method-card-row"> 7211 <span class="label">\${'Processing' | autoSiteString}</span> 7212 <span class="value">\${'1 - 5 business days' | autoSiteString}<span if.bind="method.withdrawStepNotes"> - \${method.withdrawStepNotes}</span></span> 7213 </div> 7214 </div> 7215 </div> 7216 </div> 7217 7218 <!-- Crypto Table --> 7219 <div class="withdraw-table-section" if.bind="cryptoMethods.length > 0"> 7220 <page-content-area key="WITHDRAW_FEES_CRYPTO_NOTE_CONTENT" strip-empty-paragraphs="true" class="crypto-note"></page-content-area> 7221 <div class="table-responsive"> 7222 <table class="table withdraw-fees-table"> 7223 <thead> 7224 <tr> 7225 <th>\${'Methods' | autoSiteString}</th> 7226 <th>\${'Minimum' | autoSiteString}</th> 7227 <th>\${'Fees' | autoSiteString}</th> 7228 <th>\${'Processing' | autoSiteString}</th> 7229 </tr> 7230 </thead> 7231 <tbody> 7232 <tr repeat.for="method of cryptoMethods"> 7233 <td class="method-name"> 7234 <img src.bind="method.icon" alt="\${method.name} icon" class="payment-icon \${method.overrideIconColor ? 'override__color' : ''}" if.bind="method.icon" />
7235 <span>\${method.name}</span> 7236 </td> 7237 <td if.bind="$index === 0" rowspan.bind="cryptoMethods.length" class="merged-cell"> 7238 \${'$'}\${method.minimumWithdrawAmount} 7239 </td> 7240 <td if.bind="$index === 0" rowspan.bind="cryptoMethods.length" class="merged-cell"> 7241 \${'Flat fee of' | autoSiteString} \${'$'}\${method.baseWithdrawFee} \${'plus' | autoSiteString} \${method.withdrawFee}% 7242 </td> 7243 <td if.bind="$index === 0" rowspan.bind="cryptoMethods.length" class="merged-cell"> 7244 \${'1 - 5 business days' | autoSiteString}<span if.bind="method.withdrawStepNotes"> - \${method.withdrawStepNotes}</span> 7245 </td> 7246 </tr> 7247 </tbody> 7248 </table> 7249 </div> 7250 7251 <!-- Mobile cards --> 7252 <div class="withdraw-fees-mobile-cards"> 7253 <div class="method-card" repeat.for="method of cryptoMethods"> 7254 <div class="method-card-header"> 7255 <img src.bind="method.icon" alt="\${method.name} icon" class="payment-icon \${method.overrideIconColor ? 'override__color' : ''}" if.bind="method.icon" /> 7256 <span>\${method.name}</span> 7257 </div> 7258 <div class="method-card-row"> 7259 <span class="label">\${'Minimum' | autoSiteString}</span> 7260 <span class="value">\${'$'}\${method.minimumWithdrawAmount}</span> 7261 </div> 7262 <div class="method-card-row"> 7263 <span class="label">\${'Fees' | autoSiteString}</span> 7264 <span class="value">\${'Flat fee of' | autoSiteString} \${'$'}\${method.baseWithdrawFee} \${'plus' | autoSiteString} \${method.withdrawFee}%</span> 7265 </div> 7266 <div class="method-card-row"> 7267 <span class="label">\${'Processing' | autoSiteString}</span> 7268 <span class="value">\${'1 - 5 business days' | autoSiteString}<span if.bind="method.withdrawStepNotes"> - \${method.withdrawStepNotes}</span></span> 7269 </div> 7270 </div> 7271 </div> 7272 </div> 7273 </div> 7274 </text-page-template> 7275</template> 7276`;f.default=s})
7276,"pages/items/buy-items/buy-items":(function(W,f,e){"use strict";e.r(f),e.d(f,{BuyItems:function(){return s}});class s{}}),"pages/items/items-game-content/items-game-content":(function(W,f,e){"use strict";e.r(f),e.d(f,{ItemsGameContent:function(){return j}});var s=e(10220),q=e("aurelia-event-aggregator"),be=e("aurelia-framework"),ye=e(33766),X,ae;let j=(X=(0,be.inject)(s.Ix,q.EventAggregator,ye.TemplateCheckSeparatorValueConverter),X(ae=class{constructor(le,pe,de){this.key=void 0,this.listContent=void 0,this.infoQuadCardData=void 0,this.viewingAsAdmin=void 0,this.pageLoading=!0,this.router=le,this.eventAggregator=pe,this.templateCheckSeparatorValueConverter=de}bind(){this.buildContent()}activate(le,pe,de){this.key=de.config.settings.keyName}attached(){this.handleEventSubscriptions(),this.templateCheckSeparatorValueConverter.toView(this.templateItems)}detached(){this.loadingContentSubscription?.dispose(),this.routeChangeSuccessSubscription?.dispose(),this.adminViewSubscription?.dispose(),this.pageLoadedSubscriber?.dispose()}handleEventSubscriptions(){this.pageLoadedSubscriber=this.eventAggregator.subscribe("page-loaded",()=>{this.pageLoading=!1}),this.loadingContentSubscription=this.eventAggregator.subscribe("loading-content",le=>{this.loading=le.loadingContent,this.templateCheckSeparatorValueConverter.toView(this.templateItems)}),this.routeChangeSuccessSubscription=this.eventAggregator.subscribe("router:navigation:success",le=>{this.key=this.router.currentInstruction.config.settings.keyName,this.buildContent()}),this.adminViewSubscription=this.eventAggregator.subscribe("admin-view-updated",le=>{this.viewingAsAdmin=le.bool})}buildContent(){this.listContent=[{iconPath:"/icons/seo-icons/chest.svg",header:`${this.key}_LC_FIRST_TITLE`,body:`${this.key}_LC_FIRST_PARAGRAPH`},{iconPath:"/icons/seo-icons/lightning-bolt.svg",header:`${this.key}_LC_SECOND_TITLE`,body:`${this.key}_LC_SECOND_PARAGRAPH`},{iconPath:"/icons/seo-icons/hearts.svg",header:`${this.key}_LC_THIRD_TITLE`,body:`${this.key}_LC_THIRD_PARAGRAPH`}],this.infoQuadCardData=[{iconPath:`${this.key}_QC_FIRST_IMAGE`,title:`${this.key}_QC_FIRST_TITLE`,text:`${this.key}_QC_FIRST_PARAGRAPH`},{iconPath:`${this.key}_QC_SECOND_IMAGE`,title:`${this.key}_QC_SECOND_TITLE`,text:`${this.key}_QC_SECOND_PARAGRAPH`},{iconPath:`${this.key}_QC_THIRD_IMAGE`,title:`${this.key}_QC_THIRD_TITLE`,text:`${this.key}_QC_THIRD_PARAGRAPH`},{iconPath:`${this.key}_QC_FOURTH_IMAGE`,title:`${this.key}_QC_FOURTH_TITLE`,text:`${this.key}_QC_FOURTH_PARAGRAPH`}]}})||ae)}),"pages/items/items":(function(W,f,e){"use strict";e.r(f),e.d(f,{Items:function(){return se}});var s=e("aurelia-framework"),q=e(17349),be=e(71110),ye=e(72932),X=e(10220),ae=e("aurelia-event-aggregator"),j=e(41961),ge=e(39146),le=e(69117),pe=e(63747),de=e(41455),ce=e(52347),J=e(6506),K=e(31018),H=e(45246),k=e(88424),ee=e(3682),fe=e(9688),z=e(83314),ne=e(47267),B=e(17285),_=e(89184),T=e(58846),L=e(46203),O=e(91861),G=e(45843),F=e(91e3),Y=e(42371),Z=e(33092),_e,U,M,p,w,u,h,v,n,a,
7276c,o,t,i,r,m,g,d,y,C,R,S,N,te,Ee,D;function I(me,P,x,$){x&&Object.defineProperty(me,P,{enumerable:x.enumerable,configurable:x.configurable,writable:x.writable,value:x.initializer?x.initializer.call($):void 0})}function A(me,P,x,$,Pe){var Se={};return Object.keys($).forEach(function(l){Se[l]=$[l]}),Se.enumerable=!!Se.enumerable,Se.configurable=!!Se.configurable,("value"in Se||Se.initializer)&&(Se.writable=!0),Se=x.slice().reverse().reduce(function(l,E){return E(me,P,l)||l},Se),Pe&&Se.initializer!==void 0&&(Se.value=Se.initializer?Se.initializer.call(Pe):void 0,Se.initializer=void 0),Se.initializer===void 0?(Object.defineProperty(me,P,Se),null):Se}function ue(me,P){throw Error("Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.")}let se=(_e=(0,s.inject)(q.b,X.Ix,ae.EventAggregator,s.TaskQueue,ge.F,ye.$,le.J,j.Z,pe.P,de.j,ce.UrlPaginationNavigateValueConverter,J.Q,K.Q,H.H,k.CalculateConvertedPriceValueConverter,ee.CamelCaseValueConverter,z.C,G.SiteStringsValueConverter,O.LanguageRouteValueConverter,F.LanguageKeyFormatterValueConverter,Y.Mx,Z.wK,be.c,_.P),U=(0,s.computedFrom)("search.length"),M=(0,s.computedFrom)("filters"),p=(0,s.computedFrom)("additionalFilter"),w=(0,s.computedFrom)("width","search"),u=(0,s.computedFrom)("selectedGame"),h=(0,s.computedFrom)("page","perPage","items","items.length","itemsCount","countLoading","pageLoading","filtering","forceShowNoResults"),v=(0,s.computedFrom)("items"),n=(0,s.computedFrom)("width","search","pageLoading","resultsExists","loading","filtering","shouldShowNoResults"),a=(0,s.computedFrom)("selectedGame"),c=(0,s.computedFrom)("isFirstLoad","pageLoading","countLoading","filtering","items.length","forceShowNoResults"),o=(0,s.computedFrom)("isFirstLoad","pageLoading","filtering","countLoading","items.length","forceShowNoResults"),t=(0,s.computedFrom)("width"),_e(i=(r=class extends ne.H{constructor(P,x,$,Pe,Se,l,E,b,re,ie,Q,Ae,Le,Me,Ge,Ue,ve,V,Ce,Oe,Te,We,$e){super(Me,P,Ge),this.aAddFiltersRef=void 0,this.priceFilter={id:1,name:"Price",type:B.PU.Checkbox,iconPath:"coin_bag",listOfValue:{id:1,display:"Price",label:"Price",children:[{id:1,value:"All",display:"All"},{id:2,value:"0, 10",display:"$0 - 10"},{id:3,value:"10, 100",display:"$10 - 100"},{id:4,value:"100, 500",display:"$100 - 500"},{id:5,value:"500, 1500",display:"$500 - 1500"},{id:6,value:"1500",display:"$1500+"}]}},this.allCategories=void 0,I(this,"items",m,this),this.advancedFilterField={},this.filters=[{field:{id:1,defaultValue:"Risotto",name:"Price",active:!0,iconPath:"coin_bag",type:B.PU.Checkbox,listOfValue:{id:1,display:"Filter test",label:"Price",children:[{id:1,value:"1, 10",display:"$1 - 10",position:0},{id:2,value:"10, 100",display:"$10 - 100",position:1},{id:2,value:"100, 500",display:"$100 - 500",position:2},{id:2,value:"500, 1500",display:"$500 - 1500",position:3},{id:2,value:"1500",display:"$1500+",position:3}]}}},{field:{active:!0,iconPath:"green-icons/feather.svg",type:B.PU.Select,listOfValue:{children:[{display:"All",position:0}],label:"Item Type"}}}],this.clearAdvancedFilters=!1,this.addAdvancedFilters=!1,this.filtersSkeleton=super.handleMakingFiltersTemplateArray(2,!0),this.showFilter=!1,I(this,"filtering",g,this),this.character=void 0,this.titleIconContent=void 0,I(this,"itemFilter",d,this),I(this,"search",y,this),I(this,"rangeStart",C,this),I(this,"rangeEnd",R,this),this.games=void 0,this.selectedGame=void 0,this.selectedItemType=void 0,I(this,"loading",S,this),this.isFirstLoad=!0,this.seoKey="ITEMS",I(this,"max",N,this),I(this,"pageLoading",te,this),this.selectedPriceRange=[],I(this,"page",Ee,this),this.count=1,this.perPage=20,I(this,"countLoading",D,this),this.itemsMinPrice=void 0,this.itemsMaxPrice=void 0,this.priceModification=void 0,this.allItems=void 0,this.activeFilters=[],this.scrollView=void 0,this.sort=void 0,this.sortField={id:0,type:B.PU.Select,label:"Sort By",name:"Sort by",defaultValue:"Sort By",iconPath:"sort",listOfValue:{label:"Sort By",children:[]}},this.sortByOptions=[{value:void 0,display:"Recommended"},{value:"low",display:"Price: (Low to High)"},{value:"hight",display:"Price: (High to Low)"}],this.allCategoriesField=void 0,this.priceSelectorDesktop=void 0,this.priceSelectorMobile=void 0,this.sortSelect=void 0,this.sortSelectDesktop=void 0,this.sortSelectMobile=void 0,this.categories=[{label:"Category",value:2,icon:"article"}],this.productService=void 0,this.charactersAfAfterAnyDigitCheck=(0,fe.RO)(),this.viewingAsAdmin=!1,this.pageSize=15,this.forceShowNoResults=!1,this.searchRequest={page:0,pageSize:21,query:null,
7276startPrice:0,endPrice:null,gameId:null,sort:"recommended",productCategory:B.g1.Items,count:!0},this.handleClearFilters=async()=>{(this.filterLayout.filtersActive?.size||this.search||this.activeFilters.length)&&(this.filterLayout.clearSearchTextValue(),this.handleAdditionalFiltersFilteringFromExtraParams(),this.handleFilteringOutAdvancedFilters(),super.handleClearFilters("items"),await this.getProducts())},this.handleAddAdvancedFilters=()=>this.aAddFiltersRef&&this.aAddFiltersRef?._addAdvancedFilters(),this.getAdditionalFilterElements=()=>{},this.getAdditionalFilter=he=>this.advancedFilters?.length?[...this.advancedFilters].filter(Ie=>this.camelCaseValueConverter.toView(Ie.filter?.field?.name??Ie.name?.field?.name,!0)===he):[],this.checkFilterParamWithAdditionalItem=()=>super.checkFilterParam()||this.additionalFilter?.length,this.handleSortUpdate=async he=>{!he?.detail?.values?.length||this.firstTimeFiltersLoad||he?.defail?.values?.length&&this.sort===he?.detail?.values[0]||(this.sort=he?.detail?.values[0],this.updateParams(!0),await this.backToPageOne())},this.handleFilterChange=async(he,oe,Ie)=>{if(!(this.firstTimeFiltersLoad||!oe||oe?.field?.name?.toLowerCase()==="price")&&(this.searchRequest.count=!0,oe.value=Ie??(oe.field.type===B.PU.Select?oe.field.listOfValue.children.find(Be=>Be.display.toLowerCase()==="all")??oe.field.listOfValue.children[0]:void 0),!oe.disabled&&oe.field.previousValue!==oe.value)){oe.field.type===B.PU.Select&&await super.updateFilterChildren(oe,Ie?.value);const Be=this.activeFilters.findIndex(Ne=>(Ne.parentId===oe.field.id||Ne.name===oe.field?.name)&&!this.checkAdditionalFilter(oe)||Ne.name?.toLowerCase()===oe.field?.name?.toLowerCase()&&this.checkAdditionalFilter(oe));if(Be>=0&&this.activeFilters.splice(Be,1),(he?.detail?.value||Ie)&&oe.field.type!==B.PU.Range&&!this.checkAdditionalFilter(oe)){let Ne=he?.detail?.value?.value??(Array.isArray(Ie)&&oe.field.type===B.PU.Checkbox?Ie.join(", "):Ie?.value);Array.isArray(Ie)&&oe.field.type===B.PU.Checkbox&&Ie.length>5?(Ne=Ie.slice(0,5).join(", "),oe.value=oe.value.splice(0,5)):[B.PU.String,B.PU.TextArea].includes(oe.field.type)&&Ie.length>40&&(oe.value=oe.value.substring(0,40)),this.activeFilters.push({parentId:oe.field.id,value:Ne??0,display:oe?.value?.display})}else if(oe&&Array.isArray(Ie)){const Ne=oe?.field?.minValue>=0?oe?.field?.minValue:0,we=oe?.field?.maxValue>0?oe?.field?.maxValue:999999,ke=parseFloat(Ie[0]),Re=parseFloat(Ie[1]);(ke!==Ne||Re!==we)&&this.activeFilters.push({type:Ie?.type,parentId:oe.field?.id,startValue:parseFloat(Ie[0]),endValue:parseFloat(Ie[1]),display:oe?.value?.display})}else if(oe&&this.checkAdditionalFilter(oe)){const Ne=oe?.field?.minValue>=0?oe?.field?.minValue:0,we=oe?.field?.maxValue>0?oe?.field?.maxValue:999999,ke=oe?.field?.equalValue>0?oe?.field?.equalValue:null;this.activeFilters.push(ke?{type:Ie?.type,parentId:oe.field?.id,name:this.camelCaseValueConverter.toView(oe.field.name,!0),value:ke.toString(),display:oe?.value?.display,isAdditionalFilter:!0}:{type:Ie?.type,parentId:oe.field?.id,name:this.camelCaseValueConverter.toView(oe.field.name,!0),startValue:parseFloat(Ne),endValue:parseFloat(we),display:oe?.value?.display,isAdditionalFilter:!0})}oe.field?.name&&(this.extraParams[this.camelCaseValueConverter.toView(oe.field.name,!0)]=this.handleExtraParamsValue(oe)||null),this.updateParams(!0),await this.getProducts()}},this.handlePriceChange=async he=>{this.selectedPriceRange=he,await this.backToPageOne()},this.clearSearch=()=>{this.search=null},this.handleSearchChanged=he=>this.search=he.target.value,this.navigateUrl=async(he=null)=>await this.urlNavigation.toView("items",this.router,"game",this.paramGame,null,he,this.extraParams),this.saveConfig=()=>{this.sessionService.saveLastItemsPageConfig?.({...this.extraParams,page:this.page!==1?this.page:null})},this.checkForSameGameAndHasPagination=(he,oe)=>{const Ie=this.games?.find(Be=>Be.slug?.includes(this.paramGame));return this.isDefault=!Ie,!!(he.instruction.params.page||oe&&this.selectedGame===Ie&&Ie?.slug?.[0]===he.instruction?.params?.value)},this.updateUrlOnChange=(he=!1)=>{this.taskQueue.queueMicroTask(async()=>
7276{if(this.prerenderMetaTagTriggered=!1,!(this.router.baseUrl===this.pagination?.getHref(this.page)&&!he||this.gameNotAvailable))try{const oe=await this.languageRouteValueConverter.toView(this.router.currentInstruction.config.name,!0),Ie=await this.languageRouteValueConverter.toView(this.pagination?.getHref(this.page));this.prerenderMetaTagTriggered=!0,this.helper.addPrerenderMetaTagForRedirect(Ie),this.helper.debounce(this,"updateUrlLoading","updateUrlTimeout",this.firstTimeLoading?500:0,()=>{window.history.pushState(oe,this.router.currentInstruction.config.title,Ie)})}catch(oe){console.error("Error in updateUrlOnChange:",oe)}})},this.handleExtraParamsValue=he=>{if([B.PU.Checkbox,B.PU.Select].includes(he.field.type)&&!this.checkAdditionalFilter(he))return typeof he.value=="object"&&!Array.isArray(he.value)?+he.value?.value:typeof he.value=="string"?he.value!=="All"?he.value:"":he.value.filter(oe=>oe.display&&oe.display!=="All").map(oe=>oe.display).join(",");if(he.field.type===B.PU.Number)return he.value!=="All"?he.value:null;if(he.field.type===B.PU.Range){const oe=he.value[0]?.startValue??he.value[0],Ie=he.value[1]?.endValue??he.value[1],Be=he.field.minValue>=0?he.field.minValue:0,Ne=he.field.maxValue>0?he.field.maxValue:999999;return he.value==="All"||parseInt(oe)===Be&&parseInt(Ie)===Ne?null:{startValue:oe,endValue:Ie}}if(this.checkAdditionalFilter(he)){const oe=he?.field?.minValue>=0?he?.field?.minValue:0,Ie=he?.field?.maxValue>0?he?.field?.maxValue:999999,Be=he?.field?.equalValue>0?he?.field?.equalValue:null;return Be?{type:he?.value?.type,display:he?.value?.display,value:Be}:{display:he?.value?.display,startValue:oe,endValue:Ie,type:he?.value?.type}}return he.value!=="All"?he.value:null},this.handleAdditionalFiltersFilteringFromExtraParams=()=>{let he=structuredClone(this.activeFilters);he=he.filter(oe=>this.checkAdditionalFilter(oe)),he.forEach(oe=>delete this.extraParams[oe.name]),this.activeFilters=this.activeFilters.filter(oe=>!this.checkAdditionalFilter(oe))},this.handleFilteringOutAdvancedFilters=()=>{Object.entries(this.extraParams).forEach(([he])=>{this.charactersAfAfterAnyDigitCheck.test(he)&&delete this.extraParams[he]})},this.getAdditionalFiltersFromParams=()=>{Object.entries(this.extraParams).forEach(([he,oe])=>{this.charactersAfAfterAnyDigitCheck.test(he)&&this.activeFilters.push(oe.value?{parentId:1,name:he,value:oe.value.toString(),display:oe.display,isAdditionalFilter:!0}:{parentId:1,name:he,startValue:parseFloat(oe.startValue),endValue:parseFloat(oe.endValue),display:oe.display,isAdditionalFilter:!0})}),this.activeFilters=this.helper.uniqueArrayOfObjectsById(this.activeFilters,"display")},this.checkAdditionalFilter=he=>(he?.field?.isAdditionalFilter??he?.isAdditionalFilter)&&this.charactersAfAfterAnyDigitCheck.test(he?.field?.name??he?.name),this.productService=P,this.analyticsService=$e,this.router=x,this.eventAggregator=$,this.productCategoryService=Se,this.orderProductService=l,this.priceModificationChecker=E,this.pageContentAreaService=b,this.currencyService=re,this.websiteService=ie,this.urlNavigation=Q,this.orderService=Ae,this.sessionService=Le,this.helper=Me,this.taskQueue=Pe,this.calculateConvertedPriceValueConverter=Ge,this.camelCaseValueConverter=Ue,this.d2rItemStatsService=ve,this.siteStringsValueConverter=V,this.languageRouteValueConverter=Ce,this.languageKeyFormatterValueConverter=Oe,this.metadataHelper=Te,this.gameService=We,this.productSearchExtension=_.P,this.helper.getResolutions(this),this.imageBaseAwsEndpoint=(0,T.Ty)("content"),this.baseAwsEndpoint=(0,T.Ty)("products")}async bind(){this.sortField.listOfValue.children=this.sortByOptions.map((P,x)=>({id:x,display:this.siteStringsValueConverter.toView(this.languageKeyFormatterValueConverter.toView(P.display),P.display),value:P.value,selected:this.sort===P.value}))}async activate(P,x,$){this.helper.addLoadingComponent("items",this),this.params=P,super.selectedPriceRange=this.selectedPriceRange,this.routeConfig=x,this.navigationInstruction=$,this.originalParamGame=P.value,await super.setParams(this.params),this.paramGame=P.value?.replaceAll("buy-","")?.replaceAll("-items",""),this.page=+P.page||1}async attached(){try{this.handleEventSubscriptions(),this.width=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,this.perPage=this.helper.checkWidthForDisplayingCards(this.width,"products");let P;if([P,this.pageConfig,this.preferredCurrency,this.allCategories]=await Promise.all([this.productCategoryService.getNavCategory("items","CG"),this.websiteService.getPage("Items"),this.sessionService.getCurrency()]),this.games=P.gameForNav,this.paramGame&&(this.selectedGame=this.games?.find(x=>x.slug?.includes(this.paramGame))),this.selectedGame)this.routeConfig.navModel.setTitle(""),this.pageContentArea=await this.pageContentAreaService.getByPageIdAndGame
7276(this.pageConfig?.id,`ITEMS_${this.selectedGame.shortName}`);else if(this.paramGame&&!this.selectedGame){if(this.gamesForNoAvailable=[...this.games?.filter(x=>x?.isTrending)?.sort((x,$)=>x?.name?.localeCompare($?.name))?.slice(0,5)??[],...this.games?.filter(x=>!x?.isTrending)?.sort((x,$)=>x?.name?.localeCompare($?.name))?.slice(0,Math.max(0,5-(this.games?.filter(x=>x?.isTrending)?.length||0)))??[]].slice(0,5),this.gameUnavailable=await this.gameService.getGameForNavBySlug(this.paramGame,"CG",this.navCategory.id),!this.gameUnavailable){this.router.navigateToRoute("404");return}this.metadataHelper.setTitleMetaTitleAndMetaDescription(this.routeConfig,this.navigationInstruction,this.gameUnavailable.title,this.gameUnavailable.metaDescription),this.pageLoading=!1,this.gameNotAvailable=!0,this.helper.validateLoading("items");return}else this.firstTimeLoading||(this.pageContentArea=await this.pageContentAreaService.getByPageId(this.pageConfig.id));if(this.titleKeyContent=this.pageContentArea.find(x=>x.key===`ITEMS${this.shortName}_PAGE_TITLE`),this.titleIconContent=this.titleKeyContent?.imagePath&&`${this.imageBaseAwsEndpoint}${this.titleKeyContent.imagePath}`,this.firstTimeFiltersLoad=!0,this.firstTimeLoading=!0,this.scrollView=document.querySelector("#main-page-host .simplebar-content-wrapper"),this.itemsPageRoute=this.pageConfig?.routeName??"items",this.itemsPagerouteWithLang=await this.languageRouteValueConverter.toView(this.itemsPageRoute),this.paramGame&&(this.selectedGame=this.games?.find(x=>x.slug?.includes(this.paramGame))),this.selectedGame&&this.selectedGame?.slug[0]!==this.paramGame){const x=`/buy/${this.itemsPagerouteWithLang}/${this.selectedGame.slug[0]}`;this.router.baseUrl=x,this.helper.addPrerenderMetaTagForRedirect(x),this.router.navigate(x)}this.selectedGame&&(this.max=await this.calculateConvertedPriceValueConverter.calculatePriceByCurrency(this.preferredCurrency,1600)),this.rangeStart=+this.extraParams.minPrice||0,this.rangeEnd=+this.extraParams.maxPrice||null,await this.filterByRoute()}catch(P){console.error(P)}finally{this.helper.validateLoading("items")}this.getAdditionalFiltersFromParams()}loadingChanged(){this.checkInitialLoadComplete()}pageLoadingChanged(){this.checkInitialLoadComplete()}filteringChanged(){this.checkInitialLoadComplete()}countLoadingChanged(){this.checkInitialLoadComplete()}checkInitialLoadComplete(){this.isFirstLoad&&!this.loading&&!this.pageLoading&&!this.filtering&&!this.countLoading&&(this.isFirstLoad=!1)}
7276get searchExist(){return this.search&&this.search.length}deactivate(){this.saveConfig()}detached(){this.searchRequest.count=!0,this.helper.removePrerenderMetaTagForRedirect(),this.routeChangeProcessingSubscription?.dispose(),this.routeChangeSubscription?.dispose(),this.currencySubscriber?.dispose(),this.sizeChanged?.dispose(),this.adminViewSubscription?.dispose(),this.filterValueChangeSubscription?.dispose(),this.pageLoadedSubscriber?.dispose()}setAdditionalFiltersByParams(){Object.keys(this.extraParams).forEach(P=>{this.getAdditionalFilter(P).forEach($=>{if($){if($?.label==="Operation"){$?.setRangeOption(this.extraParams[P]);return}if(this.helper.includesSome($?.label,["Equal","Min","Max"])){$?.label==="Equal"&&this.extraParams[P]?.value&&($.value=this.extraParams[P]?.value),$?.label==="Min"&&parseInt(this.extraParams[P]?.startValue)>0&&($.value=this.extraParams[P]?.startValue),$?.label==="Max"&&parseInt(this.extraParams[P]?.endValue)<999999&&($.value=this.extraParams[P]?.endValue);return}$?.setDynamicValue(this.extraParams[P])}})})}handleItemsFilters(){super.handleFilters(),this.getAdditionalFilterElements(),this.getAdditionalFiltersFromParams()}handleEventSubscriptions(){this.routeChangeProcessingSubscription=this.eventAggregator.subscribe("router:navigation:processing",async P=>{try{if(this.checkForSameGameAndHasPagination(P,!0))return;this.triggeredGameChanged=!0;const x=this.games?.find($=>$.slug?.includes(P?.instruction?.params?.value));x?(this.selectedGame=x,this.eventAggregator.publish("loading-content",{loadingContent:!0}),this.pageContentArea=await this.pageContentAreaService.getByPageIdAndGame(this.pageConfig?.id,`ITEMS_${x.shortName}`),this.eventAggregator.publish("loading-content",{loadingContent:!1})):(this.selectedGame=null,this.pageContentArea=await this.pageContentAreaService.getByPageId(this.pageConfig.id)),this.titleKeyContent=this.pageContentArea.find($=>$.key===`ITEMS${this.shortName}_PAGE_TITLE`)}catch(x){console.error("Error in route:navigation:processing:",x),this.eventAggregator.publish("loading-content",{loadingContent:!1})}}),this.routeChangeSubscription=this.eventAggregator.subscribe("router:navigation:success",async P=>{try{if(this.firstTimeFiltersLoad=!1,this.checkForSameGameAndHasPagination(P)||!this.triggeredGameChanged){await super.setParams(this.extraParams);return}await this.filterByRoute(),this.updateParams()}catch(x){console.error("Error in route:navigation:success:",x),this.helper.validateLoading("items"),this.loading=!1,this.pageLoading=!1}}),this.currencySubscriber=this.eventAggregator.subscribe("currency-updated",async P=>{this.preferredCurrency!==P.currency&&(this.preferredCurrency=P.currency)}),this.sizeChanged=this.eventAggregator.subscribe("size-changed",async P=>{this.helper.debounce(this,"loadingSizeChange","sizeChangedTimeout",700,async()=>{this.width=P.width,this.newPerPage=this.helper.checkWidthForDisplayingCards(this.width,"products"),this.shouldUpdatePage=this.newPerPage!==this.perPage,this.perPage=this.newPerPage,this.shouldUpdatePage&&await this.pageChanged()})}),this.adminViewSubscription=this.eventAggregator.subscribe("admin-view-updated",P=>{this.viewingAsAdmin=P.bool}),this.filterValueChangeSubscription=this.eventAggregator.subscribe("filter-value-change",async P=>{const x=P?.filter?.field?.name;x&&this.filterLayout.setFiltersActive(x,!0),this.handleFilterChange(P.event,P.filter,P.value)}),this.pageLoadedSubscriber=this.eventAggregator.subscribe("page-loaded",()=>{this.pageLoading=!1})}get getAdvancedFilterField(){return this.filters&&Object.values(this.filters)?.length&&this.filters}get getAdvancedFiltersListOfValues(){return this.additionalFilter&&Object.values(this.additionalFilter).length&&this.additionalFilter}get getPaddingFix(){return this.search?.length&&this.width<=this.tablet&&"cg-filter-section-template-padding-top-fix"}async filterByRoute(){this.helper.addLoadingComponent("items",this),this.pageLoading=!0,this.loading=!0,this.search??="",this.itemFilter="",this.activeFilters=[],this.showFilter=!1,this.triggeredGameChanged=!1,this.selectedGame=this.games?.find(P=>P.slug.includes(this.paramGame));try{if(this.selectedGame){!this.prerenderMetaTagTriggered&&this.selectedGame.slug[0]===this.originalParamGame&&this.helper.removePrerenderMetaTagForRedirect(),this.routeConfig.navModel.setTitle(""),this.itemFilter=this.selectedGame?.shortName,this.filters=await this.productService.getProductFilters(this.navCategory.id,this.selectedGame.id),this.selectedGame.shortName.includes("D2R")&&(this.additionalFilter=await this.d2rItemStatsService.getAllD2RItemStats(),this.additionalFilter=this.additionalFilter.map(P=>{const{stat:x,id:$,value:Pe,...Se}=P;return{display:x,value:$,...Se}}));for(const P of this.filters)P.field?.listOfValue?.children.sort((x,$)=>($.position!==null)-(x.position!==null)||x.position-$.position);
7276this.filters.forEach(P=>{P.field.listOfValue&&(P.field.listOfValue.copiedChildren=P.field.listOfValue.children,setTimeout(()=>{P.field.parentId&&P.field.type===B.PU.Select||(P.value=P.field.type===B.PU.Select?P.field.listOfValue.children.find(x=>x.display.toLowerCase()==="all")??P.field.listOfValue.children[0]:P.field.defaultValue??(P.field.type===B.PU.Number?0:"All"))},500))}),this.priceModification=await this.priceModificationChecker.toView(this.selectedGame.id,2)}else this.isDefault=!0,this.gameNotAvailable||this.routeConfig.navModel.setTitle(this.pageConfig.title),this.filters=[{field:{active:!0,iconPath:"green-icons/feather.svg",type:B.PU.Select,listOfValue:{children:[{display:"All",position:0,value:""}],label:"Item Type"}},disabled:!0}];this.checkFilterParamWithAdditionalItem()?setTimeout(async()=>{this.firstTimeFiltersLoad=!1,this.handleItemsFilters(),await this.getProducts()},500):(this.firstTimeFiltersLoad=!1,await this.getProducts()),this.showFilter=!0}catch(P){console.error("Error in filterByRoute:",P)}finally{setTimeout(()=>{this.helper.validateLoading("items"),this.loading=!1,this.pageLoading=!1},2e3)}}get shortName(){return this.selectedGame?"_"+this.selectedGame.shortName:this.router.baseUrl==="/buy"?"_BUY":"_DEFAULT"}get currentCount(){return super.getCurrentCountText({products:this.items,total:this.itemsCount,loading:this.countLoading||this.pageLoading||this.filtering,siteStrings:this.siteStringsValueConverter})}async gameChanged(P){if(!this.isChangingGame){this.isChangingGame=!0;try{const x=this.games.find($=>$.id===String(P.id));if(!x||x.id===this.selectedGame?.id||P?.id===this.selectedGame?.id)return;if(this.selectedGame=x,this.triggeredGameChanged=!0,P&&x.slug&&x.slug[0])try{const $=await this.languageRouteValueConverter.toView(this.itemsPageRoute);this.router.navigate(`/${$}/${x.slug[0]}`)}catch($){console.error($)}}catch{this.helper.validateLoading("items"),this.loading=!1,this.pageLoading=!1}finally{this.isChangingGame=!1}}}async getProducts(){this.helper.debounce(this,"filtering","getItemsTimeout",600,async()=>{const P=this._itemsRequestId=(this._itemsRequestId||0)+1;this.hasLoaded=!0,this.filtering=!0,this.countLoading=!0;try{const x=this.selectedGame?.id,$=this.search?.toLowerCase(),Pe=super.handleActiveFilters(),[Se,l]=await Promise.all([this.productService.getStockProductsCount("Items",x,$,this.extraParams.minPrice,this.extraParams.maxPrice,Pe),this.productService.getStockProducts("Items",x,this.page,this.perPage,$,this.extraParams.sort,this.extraParams?.minPrice,this.extraParams?.maxPrice,Pe)]);if(P!==this._itemsRequestId||(this.itemsCount=Se,this.countLoading=!1,this.handlePaginationUpdates())||P!==this._itemsRequestId||(this.items=l,P!==this._itemsRequestId))return;this.processPrices(),await this.processDeliveryTimes(),await this.handlePriceModification(),this.setQuantity(),this.processRatingSchema(),await this.preloadItemImages()}catch(x){console.info("Error in getItems:",x)}finally{P===this._itemsRequestId&&(this.loading=!1,this.pageLoading=!1,this.countLoading=!1,this.filtering=!1)}})}handlePaginationUpdates(){this.count=Math.ceil(this.itemsCount/this.perPage);const x=this.count!==null&&this.count!==void 0&&this.page!==1&&this.page>this.count;return this.shouldUpdatePage=!this.countLoading&&(x||this.page<=0),this.shouldUpdatePage?(this.page=1,!0):!1}processPrices(){if(!this.items?.length)return;this.prices=this.items.map(x=>x.salePrice>0?x.salePrice:x.price),this.itemsMaxPrice=Math.max(...this.prices);const P=Math.min(...this.prices);this.itemsMinPrice=P<0?0:P}async processDeliveryTimes(){this.items?.length&&(this.id=this.items.map(P=>P.id??P.productId),this.average=await this.orderProductService.getAverageDeliveryTime(this.id),this.items.forEach(P=>P.averageDeliveryTime=this.average?.[P.id??P.productId]))}processRatingSchema(){if(!this.items?.length||!this.selectedGame)return;const P=this.items.map($=>$.salePrice>0?$.salePrice:$.price>0?$.price:null).filter($=>$!==null);if(!P.length)return;const x={offerCount:this.itemsCount,lowestPrice:Math.min(...P),highestPrice:Math.max(...P)};this.orderService.handleProductRatingSchema(this.selectedGame,this.navCategory,null,"USD",null,null,x)}async preloadItemImages(){if(!this.items?.length)return;const P=this.items.filter(x=>x?.imagePath&&!this.helper.isVideo(x.mimeType)).map(x=>`${this.baseAwsEndpoint}${x.imagePath}`);P.length>0&&await this.helper.preloadImages(P)}setQuantity(){if(!(!this.items?.length||!this.items[0]))for(const P of this.items)P.selectedQuantity=P.minium===0?1:P.minimum}
7276handleDrawerNavigationClick(){this.drawer.open=!this.drawer.open}async handlePriceModification(){this.items?.forEach(async P=>{P.priceModification=await this.priceModificationChecker.toView(P.gameId,P.productCategoryId)})}async backToPageOne(){if(this.page===1){this.getProducts();return}this.page=1,this.updateUrlOnChange()}async pageChanged(P){if(!this.hasLoaded){this.hasLoaded=!0;return}this.scrollView&&this.scrollView.scrollTo({top:0,behavior:"smooth"}),this.shouldUpdatePage&&(this.shouldUpdatePage=!1,this.updateUrlOnChange()),await this.getProducts()}async configureRouter(P,x){this.navCategory=await this.productCategoryService.getNavCategory("items","CG");const $=this.navCategory?.gameForNav;P.options.pushState=!0,this.router=x;const Se=await this.languageRouteValueConverter.toView("items");P.map([{route:["","buy-items"],name:"buy-items",navigationStrategy:async l=>{const E=l.parentInstruction.params.value,b=$.find(Ae=>Ae.slug[0]===E?.replaceAll("buy-","")?.replaceAll("-items","")),re=window.location.pathname.split("/").filter(Boolean),ie=re.indexOf(Se),Q=ie>0&&re[ie-1]==="buy";if(b&&Q&&E!==b.slug[0]){this.router.navigateToRoute("404");return}if(E&&b?(l.config.moduleId="pages/items/items-game-content/items-game-content",l.config.viewPorts&&(l.config.viewPorts.default.moduleId="pages/items/items-game-content/items-game-content")):(l.config.moduleId="pages/items/buy-items/buy-items",l.config.viewPorts&&(l.config.viewPorts.default.moduleId="pages/items/buy-items/buy-items")),b){let Ae=null;try{Ae=await this.gameService.getGameForNavBySlug(b.slug[0],"CG",this.navCategory?.id)}catch(Me){console.error("Error loading game meta:",Me)}const Le=Ae?.title??b.headerTitle;l.config.title=Le,l.config.settings={metaDescription:Ae?.metaDescription,keyName:`ITEMS_${b.shortName}`},l.config.navModel.setTitle(Le)}else l.config.navModel.setTitle("")},settings:{metaDescription:"Buy Game Items from the #1 Game Item Seller on the market. Over 100,000+ Game Items Purchases successfully completed!"}}]),P.mapUnknownRoutes(()=>{this.router.navigateToRoute("404")})}rangeStartChanged(){this.rangeStart<=0||this.updateParams(!0)}rangeEndChanged(){this.rangeEnd<=0||this.updateParams(!0)}get resultsExists(){return!!this.items?.length}trackSearch(){if(!this.search){this.searchTracked=!1;return}this.searchTracked||this.isFirstLoad||(this.searchTracked=!0,this.analyticsService.track(be.X.ITEM_SEARCH))}async searchChanged(){this.trackSearch(),this.updateParams(!0),!this.isFirstLoad&&await this.backToPageOne()}updateParams(P=!1){this.searchRequest.count=!0,this.extraParams.minPrice=this.rangeStart&&this.rangeStart>0?this.rangeStart:null,this.extraParams.maxPrice=this.rangeEnd&&this.rangeEnd<=this.max?this.rangeEnd:null,this.extraParams.search=this.search||null,this.extraParams.sort=this.sort||null,this.pagination?.updateParams(),this.updateUrlOnChange(P)}get getLayoutConfig(){return{menuButtonClass:this.width>=this.desktop&&this.selectedGame?"filled-icon-button-no-border-left":"",baseDesktopComponent:"menu",baseResponsiveComponent:"filter-button",filterType:"multiple",noResults:this.shouldShowNoResults,searchTextValue:this.search,loading:this.filtering||this.pageLoading||this.loading,customFooter:!0,showDrawerSearchbar:!0,onClearSearch:()=>this.clearSearch(),onCloseDrawer:()=>{},onSearchChanged:P=>this.handleSearchChanged(P),onClearFilters:()=>super.handleClearFiltersAndSearch()}}get selectedGameIsD2R(){return this.selectedGame?.shortName?.includes("D2R")}get shouldShowNoResults(){return!this.isFirstLoad&&!this.pageLoading&&!this.countLoading&&!this.filtering&&(!this.items?.length||this.forceShowNoResults)}get shouldShowCards(){return!this.isFirstLoad&&!this.pageLoading&&!this.countLoading&&!this.filtering&&!!this.items?.length&&!this.forceShowNoResults}get isResponsive(){return this.width<this.desktop}},m=A(r.prototype,"items",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),g=A(r.prototype,"filtering",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),d=A(r.prototype,"itemFilter",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),y=A(r.prototype,"search",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=A(r.prototype,"rangeStart",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=A(r.prototype,"rangeEnd",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=A(r.prototype,"loading",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),N=A(r.prototype,"max",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1600}}),te=A(r.prototype,"pageLoading",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Ee=A(r.prototype,"page",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),D=A(r.prototype,"countLoading",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),A(r.prototype,"searchExist",[U],Object.getOwnPropertyDescriptor(r.prototype,"searchExist"),r.prototype),A(r.prototype,"getAdvancedFilterField",[M],Object.getOwnPropertyDescriptor(r.prototype,"getAdvancedFilterField"),r.prototype),A(r.prototype,"getAdvancedFiltersListOfValues",[p],Object.getOwnPropertyDescriptor(r.prototype,"getAdvancedFiltersListOfValues"),r.prototype),A(r.prototype,"getPaddingFix",[w],Object.getOwnPropertyDescriptor(r.prototype,"getPaddingFix"),r.prototype),A(r.prototype,"shortName",[u],Object.getOwnPropertyDescriptor(r.prototype,"shortName"),r.prototype),A(r.prototype,"currentCount",[h],Object.getOwnPropertyDescriptor(r.prototype,"currentCount"),r.prototype),A(r.prototype,"resultsExists",[v],Object.getOwnPropertyDescriptor(r.prototype,"resultsExists"),r.prototype),A(r.prototype,"getLayoutConfig",[n],Object.getOwnPropertyDescriptor(r.prototype,"getLayoutConfig"),r.prototype),A(r.prototype,"selectedGameIsD2R",[a],Object.getOwnPropertyDescriptor(r.prototype,"selectedGameIsD2R"),r.prototype),A(r.prototype,"shouldShowNoResults",[c],Object.getOwnPropertyDescriptor(r.prototype,"shouldShowNoResults"),r.prototype),A(r.prototype,"shouldShowCards",[o],Object.getOwnPropertyDescriptor(r.prototype,"shouldShowCards"),r.prototype),A(r.prototype,"isResponsive",[t],Object.getOwnPropertyDescriptor(r.prototype,"isResponsive"),r.prototype),r))||i)}),"pages/legal-requests/legal-requests":(function(W,f,e){"use strict";e.r(f),e.d(f,{LegalRequests:function(){return s}});class s{constructor(){this.contentKeys=[{key:"CG_LEGAL_REQUESTS_INTRODUCTION_CONTENT",type:"content",additionalClass:"text-content services-content contact-content content-1",content:""},{key:"CG_LEGAL_REQUESTS_TITLE_1",type:"title",additionalClass:"font-bold text-title summary contact-title",content:""},{key:"CG_LEGAL_REQUESTS_PARAGRAPH_1",type:"content",additionalClass:"text-content definittions-content contact-content",content:""},{key:"CG_LEGAL_REQUESTS_TITLE_2",type:"title",additionalClass:"font-bold tos-text-title contact-title",content:""},{key:"CG_LEGAL_REQUESTS_PARAGRAPH_2",type:"content",additionalClass:"text-content definittions-content contact-content",content:""},{key:"CG_LEGAL_REQUESTS_TITLE_3",type:"title",additionalClass:"font-bold text-title contact-title",content:""},{key:"CG_LEGAL_REQUESTS_PARAGRAPH_3",type:"content",additionalClass:"text-content registration-content contact-content",content:""},{key:"CG_LEGAL_REQUESTS_TITLE_4",type:"title",additionalClass:"font-bold text-title contact-title",content:""},{key:"CG_LEGAL_REQUESTS_PARAGRAPH_4",type:"content",additionalClass:"text-content use-service-content contact-content",content:""},{key:"CG_LEGAL_REQUESTS_TITLE_5",type:"title",additionalClass:"font-bold text-title contact-title",content:""},{key:"CG_LEGAL_REQUESTS_PARAGRAPH_5",type:"content",additionalClass:"text-content payment-content contact-content",content:""},{key:"CG_LEGAL_REQUESTS_TITLE_6",type:"title",additionalClass:"font-bold text-title contact-title",content:""},{key:"CG_LEGAL_REQUESTS_PARAGRAPH_6",type:"content",additionalClass:"text-content transactions-content contact-content",content:""}]}}}),"pages/modern-slavery-statement/modern-slavery-statement":(function(W,f,e){"use strict";e.r(f),e.d(f,{ModernSlaveryStatement:function(){return s}});class s{constructor(){this.contentKeys=[{key:"MODERN_SLAVERY_INTRO_CONTENT",type:"content",additionalClass:"text-content commitment-content",content:""},{key:"MODERN_SLAVERY_OUR_COMMITMENT_TITLE",type:"title",additionalClass:"text-title font-bold commitment-title",content:""},{key:"MODERN_SLAVERY_OUR_COMMITMENT_CONTENT",type:"content",additionalClass:"text-content commitment-content",content:""},{key:"MODERN_SLAVERY_STATEMENT_BUSINESS_TITLE",type:"title",additionalClass:"text-title font-bold business-title",content:""},{key:"MODERN_SLAVERY_STATEMENT_BUSINESS_CONTENT",type:"content",additionalClass:"text-content business-content",content:""},{key:"MODERN_SLAVERY_STATEMENT_OUR_APPROACH_TITLE",type:"title",additionalClass:"text-title font-bold approach-title",content:""},{key:"MODERN_SLAVERY_STATEMENT_OUR_APPROACH_CONTENT",type:"content",additionalClass:"text-content approach-content",content:""},{key:"MODERN_SLAVERY_STATEMENT_RISK_ASSESSMENT_TITLE",type:"title",additionalClass:"text-title font-bold assessment-title",content:""},{key:"MODERN_SLAVERY_STATEMENT_RISK_ASSESSMENT_CONTENT",type:"content",additionalClass:"text-content assessment-content",content:""},{key:"MODERN_SLAVERY_STATEMENT_DUE_DILIGENCE_TITLE",type:"title",additionalClass:"text-title font-bold diligence-title",content:""},{key:"MODERN_SLAVERY_STATEMENT_DUE_DILIGENCE_CONTENT",type:"content",additionalClass:"text-content diligence-content",content:""},{key:"MODERN_SLAVERY_STATEMENT_TRAINING_AND_AWARENESS_TITLE",type:"title",additionalClass:"text-title font-bold awareness-title",content:""},{key:"MODERN_SLAVERY_STATEMENT_TRAINING_AND_AWARENESS_CONTENT",type:"content",additionalClass:"text-content awareness-content",content:""},{key:"MODERN_SLAVERY_STATEMENT_REPORTING_CONCERNS_TITLE",type:"title",additionalClass:"text-title font-bold concerns-title",content:""},{key:"MODERN_SLAVERY_STATEMENT_REPORTING_CONCERNS_CONTENT",type:"content",additionalClass:"text-content concerns-content",content:""},{key:"MODERN_SLAVERY_STATEMENT_ONGOING_COMMITMENT_TITLE",type:"title",additionalClass:"text-title font-bold improvement-title",content:""},{key:"MODERN_SLAVERY_STATEMENT_ONGOING_COMMITMENT_CONTENT",type:"content",additionalClass:"text-content improvement-content",content:""}]}}}),"pages/more/gift-cards/buy-gift-cards/buy-gift-cards":(function(W,f,e){"use strict";e.r(f),e.d(f,{BuyGiftCards:function(){return s}});class s{}}),"pages/more/gift-cards/gift-cards-game-content/gift-cards-game-content":(function(W,f,e){"use strict";e.r(f),e.d(f,{GiftCardsGameContent:function(){return ae}});var s=e(10220),q=e("aurelia-event-aggregator"),be=e("aurelia-framework"),ye,X;let ae=(ye=(0,be.inject)(s.Ix,q.EventAggregator),ye(X=class{constructor(ge,le){this.key=void 0,this.infoQuadCardData=void 0,this.pageLoading=!0,this.router=ge,this.eventAggregator=le}activate(ge,le,pe){this.key=pe.config.settings.keyName}attached(){this.handleEventSubscriptions()}detached(){this.routeChangeSuccessSubscription?.dispose(),this.pageLoadedSubscriber?.dispose()}handleEventSubscriptions(){this.pageLoadedSubscriber=this.eventAggregator.subscribe("page-loaded",()=>{this.pageLoading=!1}),this.routeChangeSuccessSubscription=this.eventAggregator.subscribe("router:navigation:success",ge=>{this.key=this.router.currentInstruction.config.settings.keyName})}})||X)}),"pages/more/gift-cards/gift-cards":(function(W,f,e){"use strict";e.r(f),e.d(f,{GiftCards:function(){return Ee}}
7276);var s=e("aurelia-framework"),q=e(17349),be=e(10220),ye=e("aurelia-event-aggregator"),X=e(41961),ae=e(72932),j=e(39146),ge=e(69117),le=e(63747),pe=e(41455),de=e(52347),ce=e(6506),J=e(45246),K=e(31018),H=e(88424),k=e(3682),ee=e(47267),fe=e(17285),z=e(46203),ne=e(91861),B=e(45843),_=e(9688),T=e(91e3),L=e(42371),O=e(33092),G=e(58846),F,Y,Z,_e,U,M,p,w,u,h,v,n,a,c,o,t,i,r,m,g,d,y,C,R;function S(D,I,A,ue){A&&Object.defineProperty(D,I,{enumerable:A.enumerable,configurable:A.configurable,writable:A.writable,value:A.initializer?A.initializer.call(ue):void 0})}function N(D,I,A,ue,se){var me={};return Object.keys(ue).forEach(function(P){me[P]=ue[P]}),me.enumerable=!!me.enumerable,me.configurable=!!me.configurable,("value"in me||me.initializer)&&(me.writable=!0),me=A.slice().reverse().reduce(function(P,x){return x(D,I,P)||P},me),se&&me.initializer!==void 0&&(me.value=me.initializer?me.initializer.call(se):void 0,me.initializer=void 0),me.initializer===void 0?(Object.defineProperty(D,I,me),null):me}function te(D,I){throw Error("Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.")}let Ee=(F=(0,s.inject)(q.b,be.Ix,ye.EventAggregator,s.TaskQueue,j.F,ge.J,X.Z,le.P,pe.j,de.UrlPaginationNavigateValueConverter,ce.Q,J.H,K.Q,H.CalculateConvertedPriceValueConverter,ae.$,k.CamelCaseValueConverter,ne.LanguageRouteValueConverter,B.SiteStringsValueConverter,T.LanguageKeyFormatterValueConverter,L.Mx,O.wK),Y=(0,s.computedFrom)("search","search.length"),Z=(0,s.computedFrom)("selectedGame"),_e=(0,s.computedFrom)("page","perPage","giftCards","giftCards.length","giftCardsCount","isLoading","forceShowNoResults"),U=(0,s.computedFrom)("isFirstLoad","pageLoading","countLoading","filtering","giftCards.length","forceShowNoResults","selectedGame","loading"),M=(0,s.computedFrom)("isFirstLoad","pageLoading","countLoading","filtering","loading"),p=(0,s.computedFrom)("isFirstLoad","pageLoading","filtering","countLoading","giftCards.length","forceShowNoResults"),w=(0,s.computedFrom)("width","search"),u=(0,s.computedFrom)("width","desktop","giftCards","pageLoading","shouldShowNoResults"),h=(0,s.computedFrom)("width"),F(v=(n=class extends ee.H{constructor(I,A,ue,se,me,P,x,$,Pe,Se,l,E,b,re,ie,Q,Ae,Le,Me,Ge,Ue){super(E,I,re),S(this,"giftCards",a,this),S(this,"max",c,this),this.character=void 0,S(this,"giftCardFilter",o,this),S(this,"search",t,this),S(this,"rangeStart",i,this),S(this,"rangeEnd",r,this),this.seoKey="GIFT_CARDS",this.connection=void 0,this.games=void 0,this.selectedGame=void 0,this.helper=void 0,this.selectedGiftCardType=void 0,S(this,"loading",m,this),this.isFirstLoad=!0,S(this,"pageLoading",g,this),this.showFilter=!1,S(this,"filtering",d,this),this.selectedPriceRange=void 0,S(this,"giftCardsCount",y,this),S(this,"page",C,this),S(this,"countLoading",R,this),this.count=1,this.perPage=15,this.giftCardsMinPrice=void 0,this.giftCardsMaxPrice=void 0,this.priceModification=void 0,this.priceSelector=void 0,this.priceSelectorDesktop=void 0,this.priceSelectorMobile=void 0,this.allGiftCards=void 0,this.activeFilters=[],this.scrollView=void 0,this.sortByOptions=[{value:void 0,display:"Recommended"},{value:"low",display:"Price: (Low to High)"},{value:"hight",display:"Price: (High to Low)"}],this.sort=null,this.sortSelect=void 0,this.sortSelectDesktop=void 0,this.sortSelectMobile=void 0,this.productService=void 0,this.searchRequest={page:0,pageSize:21,query:null,startPrice:0,endPrice:null,gameId:null,sort:"recommended",productCategory:fe.g1.GiftCards,count:!0},this.sortField={id:0,type:fe.PU.Select,label:"Sort By",name:"Sort by",defaultValue:"Sort By",iconPath:"sort",listOfValue:{label:"Sort By",children:[{value:void 0,display:"Recommended"},{value:"low",display:"Price: (Low to High)"},{value:"high",display:"Price: (High to Low)"}]}},this.priceFilter={id:1,name:"Price",type:fe.PU.Checkbox,iconPath:"coin_bag",listOfValue:{id:1,display:"Price",label:"Price",children:[{id:1,value:"All",display:"All"},{id:2,value:"0, 10",display:"$0 - 10"},{id:3,value:"10, 100",display:"$10 - 100"},{id:4,value:"100, 500",display:"$100 - 500"},{id:5,value:"500, 1500",display:"$500 - 1500"},{id:6,value:"1500",display:"$1500+"}]}},this.myWidth=0,this.pageSize=15,this.forceShowNoResults=!1,this.handleClearFilters=async()=>{(this.filterLayout.filtersActive?.size||this.search)&&(this.filterLayout.clearSearchTextValue(),super.handleClearFilters("gift-cards"),await this.getProducts())},this.handleSearchChanged=ve=>this.search=ve.target.value===""?null:ve.target.value,this.handleSortUpdate=async ve=>{const V=ve?.detail?.value||ve.detail.values?.[0];this.firstTimeFiltersLoad||this.sort===V||(this.sort=ve?.detail?.value||ve.detail.values?.[0],this.updateParams(!0),await this.getProducts(),await this.backToPageOne())},this.handleFilterChange=async(ve,V,Ce)=>{if(!(this.firstTimeFiltersLoad||!V||V?.field?.name?.toLowerCase()==="price")&&(V.value=Ce??(V.field.type===fe.PU.Select?V.field.listOfValue.children.find(Oe=>
7276Oe.display.toLowerCase()==="all")??V.field.listOfValue.children[0]:void 0),!V.disabled&&V.field.previousValue!==V.value)){V.field.type===fe.PU.Select&&await super.updateFilterChildren(V,Ce?.value);const Oe=this.activeFilters.findIndex(Te=>Te.parentId===V.field.id||Te.field?.name===V.field?.name);if(Oe>=0&&this.activeFilters.splice(Oe,1),(ve?.detail?.value||Ce)&&V.field.type!==fe.PU.Range){let Te=ve?.detail?.value?.value??(Array.isArray(Ce)&&V.field.type===fe.PU.Checkbox?Ce.join(", "):Ce?.value);Array.isArray(Ce)&&V.field.type===fe.PU.Checkbox&&Ce.length>5?(Te=Ce.slice(0,5).join(", "),V.value=V.value.splice(0,5)):[fe.PU.String,fe.PU.TextArea].includes(V.field.type)&&Ce.length>40&&(V.value=V.value.substring(0,40)),this.activeFilters.push({parentId:V.field.id,value:Te??0,display:V?.value?.display})}else if(V&&Array.isArray(Ce)){const Te=V?.field?.minValue>=0?V?.field?.minValue:0,We=V?.field?.maxValue>0?V?.field?.maxValue:999999,$e=parseFloat(Ce[0]),he=parseFloat(Ce[1]);($e!==Te||he!==We)&&this.activeFilters.push({parentId:V.field?.id,startValue:parseFloat(Ce[0]),endValue:parseFloat(Ce[1]),display:V?.value?.display})}if(V.field.type===fe.PU.Checkbox){const Te=Array.isArray(Ce)?V.field.listOfValue.children.filter($e=>Ce.includes($e.value)):[],We=Te.some($e=>$e.display.toLowerCase().trim()==="all");this.activeFilters=this.activeFilters.filter($e=>V.field.id!==$e.parentId),this.activeFilters.push({parentId:V.field?.id,value:We?[]:Te}),V.value=We?[]:Te}V.field?.name&&(this.extraParams[this.camelCaseValueConverter.toView(V.field.name,!0)]=super.handleExtraParamsValue(V)||null),this.updateParams(!0),await this.getProducts()}},this.handlePriceChange=async ve=>{this.selectedPriceRange=ve,await this.backToPageOne()},this.clearSearch=()=>this.search=null,this.navigateUrl=async(ve=null)=>await this.urlNavigation.toView("gift cards",this.router,"game",this.paramGame,null,ve,this.extraParams),this.saveConfig=()=>{this.sessionService.saveLastGiftsPageConfig?.({...this.extraParams,page:this.page!==1?this.page:null})},this.checkForSameGameAndHasPagination=(ve,V)=>{const Ce=this.games?.find(Oe=>Oe.slug?.includes(this.paramGame));return this.isDefault=!Ce,!!(ve.instruction.params.page||V&&this.selectedGame===Ce&&Ce?.slug?.[0]===ve.instruction?.params?.value)},this.updateUrlOnChange=(ve=!1)=>{this.taskQueue.queueMicroTask(async()=>{if(this.router.baseUrl===this.pagination?.getHref(this.page)&&!ve||this.gameNotAvailable)return;const V=await this.languageRouteValueConverter.toView(this.router.currentInstruction.config.name,!0),Ce=this.pagination?.getHref(this.page)?await this.languageRouteValueConverter.toView(this.pagination?.getHref(this.page)):null;this.helper.debounce(this,"updateUrlLoading","updateUrlTimeout",this.firstTimeLoading?500:0,()=>{window.history.pushState(V,this.router.currentInstruction.config.title,Ce)})})},this.productService=I,this.router=A,this.eventAggregator=ue,this.productCategoryService=me,this.priceModificationChecker=P,this.pageContentAreaService=x,this.currencyService=$,this.websiteService=Pe,this.urlNavigation=Se,this.orderService=l,this.helper=E,this.sessionService=b,this.taskQueue=se,this.calculateConvertedPriceValueConverter=re,this.orderProductService=ie,this.camelCaseValueConverter=Q,this.languageRouteValueConverter=Ae,this.siteStringsValueConverter=Le,this.languageKeyFormatterValueConverter=Me,this.metadataHelper=Ge,this.gameService=Ue,this.helper.getResolutions(this),this.filtersLength=5,this.filters=super.handleMakingFiltersTemplateArray(this.filtersLength),this.filtersSkeleton=super.handleMakingFiltersTemplateArray(this.filtersLength,!0),this.baseAwsEndpoint=(0,G.Ty)("products")}async bind(){this.sortField.listOfValue.children=this.sortByOptions.map((I,A)=>({id:A,display:this.siteStringsValueConverter.toView(this.languageKeyFormatterValueConverter.toView(I.display),I.display),value:I.value,selected:this.sort===I.value}))}async activate(I,A,ue){this.helper.addLoadingComponent("gift-cards",this),this.firstTimeFiltersLoad=!0,this.page=+I.page||1,this.taskQueue.queueMicroTask(async()=>{try{if(this.routeConfig=A,this.navigationInstruction=ue,[this.navCategory,this.pageConfig,this.preferredCurrency
7276]=await Promise.all([this.productCategoryService.getNavCategory("gift cards","CG"),this.websiteService.getPage("Gift Cards"),this.sessionService.getCurrency()]),this.paramGame=I.value,this.games=this.navCategory?.gameForNav,this.paramGame&&(this.selectedGame=this.games?.find(se=>se.slug?.includes(this.paramGame))),this.selectedGame)this.routeConfig.navModel.setTitle(""),this.pageContentArea=await this.pageContentAreaService.getByPageIdAndGame(this.pageConfig?.id,`GIFT_CARDS_${this.selectedGame.shortName}`);else if(this.paramGame&&!this.selectedGame){if(this.gamesForNoAvailable=[...this.games?.filter(se=>se?.isTrending)?.sort((se,me)=>se?.name?.localeCompare(me?.name))?.slice(0,5)??[],...this.games?.filter(se=>!se?.isTrending)?.sort((se,me)=>se?.name?.localeCompare(me?.name))?.slice(0,Math.max(0,5-(this.games?.filter(se=>se?.isTrending)?.length||0)))??[]].slice(0,5),this.gameUnavailable=await this.gameService.getGameForNavBySlug(this.paramGame,"CG",this.navCategory.id),!this.gameUnavailable){this.router.navigateToRoute("404");return}this.metadataHelper.setTitleMetaTitleAndMetaDescription(this.routeConfig,this.navigationInstruction,this.gameUnavailable.title,this.gameUnavailable.metaDescription),this.pageLoading=!1,this.gameNotAvailable=!0,this.helper.validateLoading("gift-cards");return}else this.firstTimeLoading||(this.pageContentArea=await this.pageContentAreaService.getByPageId(this.pageConfig.id));this.titleKeyContent=this.pageContentArea?.find(se=>se.key===`GIFT_CARDS${this.shortName}_PAGE_TITLE`),await super.setParams(I)}catch(se){console.error("Error in activate:",se)}finally{this.helper.validateLoading("gift-cards")}})}async attached(){if(this.firstTimeLoading=!0,this.width=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,this.perPage=this.helper.checkWidthForDisplayingCards(this.width,"products"),this.scrollView=document.querySelector("#main-page-host .simplebar-content-wrapper"),this.giftCardsPageRoute=this.pageConfig?.routeName??"gift-cards",this.giftCardsPageRouteWithLang=await this.languageRouteValueConverter.toView(this.giftCardsPageRoute),this.paramGame&&(this.selectedGame=this.games?.find(I=>I.slug?.includes(this.paramGame))),this.selectedGame&&this.selectedGame?.slug[0]!==this.paramGame){const I=`/buy/${this.giftCardsPageRouteWithLang}/${this.selectedGame.slug[0]}`;this.router.baseUrl=I,this.helper.addPrerenderMetaTagForRedirect(I),this.router.navigate(I)}this.max=await this.calculateConvertedPriceValueConverter.calculatePriceByCurrency(this.preferredCurrency),this.sort=this.extraParams?.sort,await this.filterByRoute(),this.handleEventSubscriptions(),this.rangeStart=+this.extraParams.minPrice||0,this.rangeEnd=+this.extraParams.maxPrice||null}deactivate(){this.saveConfig()}detached(){this.helper.removePrerenderMetaTagForRedirect(),this.routeChangeProcessingSubscription?.dispose(),this.routeChangeSubscription?.dispose(),this.currencySubscriber?.dispose(),this.sizeChanged?.dispose(),this.adminViewSubscription?.dispose(),this.filterValueChangeSubscription?.dispose(),this.pageLoadedSubscriber?.dispose()}loadingChanged(){this.checkInitialLoadComplete()}pageLoadingChanged(){this.checkInitialLoadComplete()}filteringChanged(){this.checkInitialLoadComplete()}countLoadingChanged(){this.checkInitialLoadComplete()}checkInitialLoadComplete(){this.isFirstLoad&&!this.loading&&!this.pageLoading&&!this.filtering&&!this.countLoading&&(this.isFirstLoad=!1)}resized(I=this.width){const A=document.getElementsByClassName("filter-area")[0].scrollWidth;I<this.desktop&&document.getElementsByClassName("dropdown-menu additional-filters-selector-floating-container")[0].setAttribute("style","min-width: "+A+"px; width: "+A+"px;")}
7276get searchExist(){return this.search&&this.search.length}handleEventSubscriptions(){this.routeChangeProcessingSubscription=this.eventAggregator.subscribe("router:navigation:processing",async I=>{if(this.checkForSameGameAndHasPagination(I,!0))return;this.triggeredGameChanged=!0;const A=this.games?.find(ue=>ue.slug?.includes(I?.instruction?.params?.value));A?(this.eventAggregator.publish("loading-content",{loadingContent:!0}),this.pageContentArea=await this.pageContentAreaService.getByPageIdAndGame(this.pageConfig?.id,`GIFT_CARDS_${A.shortName}`),this.eventAggregator.publish("loading-content",{loadingContent:!1})):this.pageContentArea=await this.pageContentAreaService.getByPageId(this.pageConfig.id),this.titleKeyContent=this.pageContentArea?.find(ue=>ue.key===`GIFT_CARDS${this.shortName}_PAGE_TITLE`)}),this.routeChangeSubscription=this.eventAggregator.subscribe("router:navigation:success",async I=>{if(this.firstTimeFiltersLoad=!1,this.checkForSameGameAndHasPagination(I)||!this.triggeredGameChanged){await super.setParams(this.extraParams);return}await this.filterByRoute(),this.updateParams()}),this.currencySubscriber=this.eventAggregator.subscribe("currency-updated",async I=>{this.preferredCurrency!==I.currency&&(this.preferredCurrency=I.currency)}),this.sizeChanged=this.eventAggregator.subscribe("size-changed",async I=>{this.helper.debounce(this,"loadingSizeChange","sizeChangedTimeout",700,async()=>{this.width=I.width,this.newPerPage=this.helper.checkWidthForDisplayingCards(this.width,"products"),this.shouldUpdatePage=this.newPerPage!==this.perPage,this.perPage=this.newPerPage,this.shouldUpdatePage&&await this.pageChanged()})}),this.adminViewSubscription=this.eventAggregator.subscribe("admin-view-updated",I=>{this.viewingAsAdmin=I.bool}),this.filterValueChangeSubscription=this.eventAggregator.subscribe("filter-value-change",async I=>{const A=I?.filter?.field?.name;A&&this.filterLayout.setFiltersActive(A,!0),this.handleFilterChange(I.event,I.filter,I.value)}),this.pageLoadedSubscriber=this.eventAggregator.subscribe("page-loaded",()=>{this.pageLoading=!1})}async filterByRoute(){if(this.helper.addLoadingComponent("gift-cards",this),this.pageLoading=!0,this.loading=!0,this.showPriceFilter=!1,this.showFilter=!1,this.triggeredGameChanged=!1,this.search??="",this.giftCardFilter="",this.activeFilters=[],this.giftCards=[],this.filters=super.handleMakingFiltersTemplateArray(this.filtersLength),this.route=this.router?.currentInstruction?.fragment,this.selectedGame=this.games?.find(I=>I.slug.includes(this.paramGame)),this.selectedGame)this.selectedGame.slug[0]===this.paramGame&&!document.getElementById("prerender-header")&&this.helper.removePrerenderMetaTagForRedirect(),this.routeConfig.navModel.setTitle(""),this.giftCardFilter=this.selectedGame?.shortName,await super.getFilters(this.navCategory.id,this.selectedGame.id),this.priceModification=await this.priceModificationChecker.toView(this.selectedGame.id,16);else{this.isDefault=!0,this.gameNotAvailable||this.routeConfig.navModel.setTitle(this.pageConfig.title);const I=[{iconPath:"/location.svg",label:"Region"},{iconPath:"/dual-sword.svg",label:"Type"},{iconPath:"/platform.svg",label:"Platform"},{iconPath:"/realm.svg",label:"Collection"}];this.filters=super.buildFiltersArray(I)}super.checkFilterParam()?setTimeout(()=>{this.firstTimeFiltersLoad=!1,super.handleFilters()},500):(this.firstTimeFiltersLoad=!1,await this.getProducts()),this.showFilter=this.showPriceFilter=!0,setTimeout(()=>{this.helper.validateLoading("gift-cards")},2e3)}get shortName(){return this.selectedGame?"_"+this.selectedGame.shortName:this.router.baseUrl==="/buy"?"_BUY":"_DEFAULT"}get currentCount(){return super.getCurrentCountText({products:this.giftCards,total:this.giftCardsCount,loading:this.isLoading,siteStrings:this.siteStringsValueConverter})}get shouldShowNoResults(){return!this.isFirstLoad&&!this.pageLoading&&!this.countLoading&&!this.filtering&&!this.loading&&(!this.giftCards?.length||this.forceShowNoResults)}get isLoading(){return this.isFirstLoad||this.pageLoading||this.countLoading||this.filtering||this.loading}get shouldShowCards(){return!this.isFirstLoad&&!this.pageLoading&&!this.countLoading&&!this.filtering&&!!this.giftCards?.length&&!this.forceShowNoResults}async gameChanged(I){I?.id!==this.selectedGame?.id&&(this.triggeredGameChanged=!0,this.rangeStart=0,this.rangeEnd=null,I&&(this.pageLoading=!0,this.router.navigate(`/buy/${this.giftCardsPageRouteWithLang}/${I.slug[0]}`)))}async getProducts(){this.helper.debounce(this,"loading","getGiftCardsTimeout",700,async()=>{const I=this._giftCardsRequestId=(this._giftCardsRequestId||0)+1;this.filtering=!0,this.hasLoaded=!0,this.countLoading=!0;try{const A=this.selectedGame?.id,ue=this.search?.toLowerCase(),se=super.handleActiveFilters(),me=this.productService.getStockProductsCount("Gift Cards",A,ue,this.extraParams.minPrice,this.extraParams.maxPrice,se),P=this.productService.getStockProducts("Gift Cards",A,this.page,this.perPage,ue,this.extraParams.sort,this.extraParams?.minPrice,this.extraParams?.maxPrice,se),[x,$]=await Promise.all([me,P]);if(this.giftCardsCount=x,I!==this._giftCardsRequestId||(this.countLoading=!1,this.handleGiftCardsPaginationUpdates())||I!==this._giftCardsRequestId||(this.giftCards=$,I!==this._giftCardsRequestId)||
7276(this.processGiftCardsPrices(),this.id=this.giftCards?.map(Pe=>Pe.id??Pe.productId),this.average=await this.orderProductService.getAverageDeliveryTime(this.id),I!==this._giftCardsRequestId))return;this.giftCards?.forEach(Pe=>Pe.averageDeliveryTime=this.average?.[Pe.id??Pe.productId]),await this.handlePriceModification(),this.processGiftCardsRatingSchema(),await this.preloadGiftCardsImages()}catch(A){console.info("Error in getGiftCards:",A)}finally{I===this._giftCardsRequestId&&(this.loading=!1,this.pageLoading=!1,this.filtering=!1,this.countLoading=!1)}})}handleGiftCardsPaginationUpdates(){this.count=Math.ceil(this.giftCardsCount/this.perPage);const A=this.count!==null&&this.count!==void 0&&this.page!==1&&this.page>this.count;return this.shouldUpdatePage=A||this.page<=0,this.shouldUpdatePage?(this.page=1,!0):!1}processGiftCardsPrices(){if(!this.giftCards?.length)return;this.prices=this.giftCards.map(A=>A.salePrice>0?A.salePrice:A.price),this.giftCardsMaxPrice=Math.max(...this.prices);const I=Math.min(...this.prices);this.giftCardsMinPrice=I<0?0:I}processGiftCardsRatingSchema(){if(!this.giftCards?.length||!this.selectedGame)return;const I=this.giftCards.map(ue=>ue.salePrice>0?ue.salePrice:ue.price>0?ue.price:null).filter(ue=>ue!==null);if(!I.length)return;const A={offerCount:this.giftCardsCount,lowestPrice:Math.min(...I),highestPrice:Math.max(...I)};this.orderService.handleProductRatingSchema(this.selectedGame,this.navCategory,null,"USD",null,null,A)}async preloadGiftCardsImages(){if(!this.giftCards?.length)return;const I=this.giftCards.filter(A=>A?.imagePath&&!this.helper.isVideo(A.mimeType)).map(A=>`${this.baseAwsEndpoint}${A.imagePath}`);I.length>0&&await this.helper.preloadImages(I)}handleDrawerNavigationClick(){this.drawer.open=!this.drawer.open}async handlePriceModification(){this.giftCards?.forEach(async I=>{I.priceModification=await this.priceModificationChecker.toView(I.gameId,I.productCategoryId)})}async backToPageOne(){if(this.page===1){this.getProducts();return}this.page=1,this.updateUrlOnChange()}async pageChanged(){if(!this.hasLoaded){this.hasLoaded=!0;return}this.scrollView&&this.scrollView.scrollTo({top:0,behavior:"smooth"}),this.shouldUpdatePage&&(this.shouldUpdatePage=!1,this.updateUrlOnChange()),await this.getProducts()}async configureRouter(I,A){this.navCategory=await this.productCategoryService.getNavCategory("gift cards","CG");const ue=this.navCategory?.gameForNav;I.options.pushState=!0,this.router=A,I.map([{route:["","buy-gift-cards"],name:"buy-gift-cards",navigationStrategy:async se=>{const me=se.parentInstruction.params.value,P=ue?.find($=>$.slug.includes(me));if(P&&me!==P.slug[0]){const Pe=`/${[...window.location.pathname.split("/").filter(Boolean).slice(0,-1),P.slug[0]].join("/")}`;this.helper.addPrerenderMetaTagForRedirect(Pe),this.router.navigate(Pe,{replace:!0});return}me&&ue.some($=>$.slug.includes(me))?(se.config.moduleId="pages/more/gift-cards/gift-cards-game-content/gift-cards-game-content",se.config.viewPorts&&(se.config.viewPorts.default.moduleId="pages/more/gift-cards/gift-cards-game-content/gift-cards-game-content")):(se.config.moduleId="pages/more/gift-cards/buy-gift-cards/buy-gift-cards",se.config.viewPorts&&(se.config.viewPorts.default.moduleId="pages/more/gift-cards/buy-gift-cards/buy-gift-cards"));const x=ue?.find($=>$.slug.includes(me));if(x){let $=null;try{$=await this.gameService.getGameForNavBySlug(x.slug[0],"CG",this.navCategory?.id)}catch(Se){console.error("Error loading game meta:",Se)}const Pe=$?.title??x.headerTitle;se.config.title=Pe,se.config.settings={metaDescription:$?.metaDescription,keyName:`GIFT_CARDS_${x.shortName}`},se.config.navModel.setTitle(Pe)}else se.config.navModel.setTitle("")},settings:{metaDescription:"Buy Gift Cards and Keys from the #1 Gift Cards and Keys Seller on the market. Over 100,000+ Gift Cards and Keys Purchases successfully completed!"}}]),I.mapUnknownRoutes(()=>{this.router.navigateToRoute("404")})}async searchChanged(){this.updateParams(!0),!this.isFirstLoad&&await this.backToPageOne()}updateParams(I=!1){this.searchRequest.count=!0,this.extraParams.minPrice=this.rangeStart&&this.rangeStart>0?this.rangeStart:null,this.extraParams.maxPrice=this.rangeEnd&&this.rangeEnd<=this.max?this.rangeEnd:null,this.extraParams.search=this.search||null,this.extraParams.sort=this.sort||null,this.pagination?.updateParams(),this.updateUrlOnChange(I)}get getPaddingFix(){return this.search?.length&&this.width<this.desktop&&"cg-filter-section-template-padding-top-fix"}get getMenuFilterLayoutConfig(){return{menuButtonClass:this.width>=this.desktop?"filled-icon-button-no-border-left":"",baseDesktopComponent:"menu",baseResponsiveComponent:"filter-button",filterType:"multiple",customFooter:!0,noResults:this.shouldShowNoResults,pageLoading:this.pageLoading,onClearSearch:()=>this.clearSearch(),onCloseDrawer:()=>{},onSearchChanged:I=>this.handleSearchChanged(I),onClearFilters:()=>super.handleClearFiltersAndSearch()}}get isResponsive(){return this.width<this.desktop}},a=N(n.prototype,"giftCards",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),c=N(n.prototype,"max",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1500}}),o=N(n.prototype,"giftCardFilter",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),t=N(n.prototype,"search",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),i=N(n.prototype,"rangeStart",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r=N(n.prototype,"rangeEnd",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=N(n.prototype,"loading",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),g=N(n.prototype,"pageLoading",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),d=N(n.prototype,"filtering",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),y=N(n.prototype,"giftCardsCount",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=N(n.prototype,"page",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),R=N(n.prototype,"countLoading",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),N(n.prototype,"searchExist",[Y],Object.getOwnPropertyDescriptor(n.prototype,"searchExist"),n.prototype),N(n.prototype,"shortName",[Z],Object.getOwnPropertyDescriptor(n.prototype,"shortName"),n.prototype),N(n.prototype,"currentCount",[_e],Object.getOwnPropertyDescriptor(n.prototype,"currentCount"),n.prototype),N(n.prototype,"shouldShowNoResults",[U],Object.getOwnPropertyDescriptor(n.prototype,"shouldShowNoResults"),n.prototype),N(n.prototype,"isLoading",[M],Object.getOwnPropertyDescriptor(n.prototype,"isLoading"),n.prototype),N(n.prototype,"shouldShowCards",[p],Object.getOwnPropertyDescriptor(n.prototype,"shouldShowCards"),n.prototype),N(n.prototype,"getPaddingFix",[w],Object.getOwnPropertyDescriptor(n.prototype,"getPaddingFix"),n.prototype),N(n.prototype,"getMenuFilterLayoutConfig",[u],Object.getOwnPropertyDescriptor(n.prototype,"getMenuFilterLayoutConfig"),n.prototype),N(n.prototype,"isResponsive",[h],Object.getOwnPropertyDescriptor(n.prototype,"isResponsive"),n.prototype),n))||v)}),"pages/more/skins/buy-skins/buy-skins":(function(W,f,e){"use strict";e.r(f),e.d(f,{BuySkins:function(){return s}});class s{}}),"pages/more/skins/skins-game-content/skins-game-content":(function(W,f,e){"use strict";e.r(f),e.d(f,{SkinsGameContent:function(){return ae}});var s=e(10220),q=e("aurelia-event-aggregator"),be=e("aurelia-framework"),ye,X;let ae=(ye=(0,be.inject)(s.Ix,q.EventAggregator),ye(X=class{constructor(ge,le){this.key=void 0,this.pageLoading=!0,this.router=ge,this.eventAggregator=le}activate(ge,le,pe){this.key=pe.config.settings.keyName}attached(){this.handleEventSubscriptions()}detached(){this.routeChangeSuccessSubscription?.dispose(),this.pageLoadedSubscriber?.dispose()}handleEventSubscriptions(){this.pageLoadedSubscriber=this.eventAggregator.subscribe("page-loaded",()=>{this.pageLoading=!1}),this.routeChangeSuccessSubscription=this.eventAggregator.subscribe("router:navigation:success",ge=>{this.key=this.router.currentInstruction.config.settings.keyName})}})||X)}),"pages/more/skins/skins":(function(W,f,e){"use strict";e.r(f),e.d(f,{Skins:function(){return te}});var s=e("aurelia-framework"),q=e(17349),be=e(10220),ye=e("aurelia-event-aggregator"),X=e(41961),ae=e(72932),j=e(39146),ge=e(69117),le=e(63747),pe=e(41455),de=e(52347),ce=e(6506),J=e(45246),K=e(31018),H=e(88424),k=e(34840),ee=e(3682),fe=e(47267),z=e(17285),ne=e(46203),B=e(91861),_=e(45843),T=e(91e3),L=e(58846),O=e(42371),G=e(33092),F,Y,Z,_e,U,M,p,w,u,h,v,n,a,
7276c,o,t,i,r,m,g,d,y,C;function R(Ee,D,I,A){I&&Object.defineProperty(Ee,D,{enumerable:I.enumerable,configurable:I.configurable,writable:I.writable,value:I.initializer?I.initializer.call(A):void 0})}function S(Ee,D,I,A,ue){var se={};return Object.keys(A).forEach(function(me){se[me]=A[me]}),se.enumerable=!!se.enumerable,se.configurable=!!se.configurable,("value"in se||se.initializer)&&(se.writable=!0),se=I.slice().reverse().reduce(function(me,P){return P(Ee,D,me)||me},se),ue&&se.initializer!==void 0&&(se.value=se.initializer?se.initializer.call(ue):void 0,se.initializer=void 0),se.initializer===void 0?(Object.defineProperty(Ee,D,se),null):se}function N(Ee,D){throw Error("Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.")}let te=(F=(0,s.inject)(q.b,be.Ix,ye.EventAggregator,s.TaskQueue,j.F,ge.J,X.Z,le.P,pe.j,de.UrlPaginationNavigateValueConverter,ce.Q,J.H,K.Q,H.CalculateConvertedPriceValueConverter,k.e,ae.$,ee.CamelCaseValueConverter,B.LanguageRouteValueConverter,_.SiteStringsValueConverter,T.LanguageKeyFormatterValueConverter,O.Mx,G.wK),Y=(0,s.computedFrom)("selectedGame"),Z=(0,s.computedFrom)("page","perPage","skins","skins.length","skinsCount","countLoading","forceShowNoResults"),_e=(0,s.computedFrom)("skins"),U=(0,s.computedFrom)("search","search.length"),M=(0,s.computedFrom)("width","search"),p=(0,s.computedFrom)("width","desktop","resultsExists","pageLoading","shouldShowNoResults"),w=(0,s.computedFrom)("isFirstLoad","pageLoading","countLoading","filtering","skins.length","forceShowNoResults"),u=(0,s.computedFrom)("isFirstLoad","pageLoading","filtering","countLoading","skins.length","forceShowNoResults"),h=(0,s.computedFrom)("width"),F(v=(n=class extends fe.H{constructor(D,I,A,ue,se,me,P,x,$,Pe,Se,l,E,b,re,ie,Q,Ae,Le,Me,Ge,Ue){super(l,D,b),R(this,"skins",a,this),this.priceFilter={id:1,name:"Price",type:z.PU.Checkbox,iconPath:"coin_bag",listOfValue:{id:1,display:"Price",label:"Price",children:[{id:1,value:"All",display:"All"},{id:2,value:"0, 10",display:"$0 - 10"},{id:3,value:"10, 100",display:"$10 - 100"},{id:4,value:"100, 500",display:"$100 - 500"},{id:5,value:"500, 1500",display:"$500 - 1500"},{id:6,value:"1500",display:"$1500+"}]}},this.filterLayout=void 0,this.filters=[],this.sort=void 0,this.sortField={id:0,name:"Sort by",defaultValue:"Sort By",type:z.PU.Select,iconPath:"sort",listOfValue:{label:"Sort by",children:[]}},this.aAddFiltersRef=void 0,this.priceSelectorDesktop=void 0,this.priceSelectorMobile=void 0,this.sortSelect=void 0,this.sortSelectDesktop=void 0,this.sortSelectMobile=void 0,R(this,"max",c,this),this.character=void 0,R(this,"skinFilter",o,this),R(this,"search",t,this),R(this,"rangeStart",i,this),R(this,"rangeEnd",r,this),this.connection=void 0,this.games=void 0,this.selectedGame=void 0,this.signalRService=void 0,this.helper=void 0,this.selectedSkinType=void 0,R(this,"loading",m,this),this.isFirstLoad=!0,R(this,"pageLoading",g,this),this.showFilter=!1,R(this,"filtering",d,this),R(this,"countLoading",y,this),this.selectedPriceRange=[],R(this,"page",C,this),this.count=1,this.perPage=15,this.skinsMinPrice=void 0,this.skinsMaxPrice=void 0,this.priceModification=void 0,this.allSkins=void 0,this.activeFilters=[],this.sortByOptions=[{value:void 0,display:"Recommended"},{value:"low",display:"Price: (Low to High)"},{value:"hight",display:"Price: (High to Low)"}],this.scrollView=void 0,this.productService=void 0,this.seoKey="SKINS",this.searchRequest={page:0,pageSize:21,query:null,startPrice:0,endPrice:null,gameId:null,sort:"recommended",productCategory:z.g1.Skins,count:!0},this.pageSize=15,this.forceShowNoResults=!1,this.handleClearFilters=async()=>{(this.filterLayout.filtersActive?.size||this.search)&&(this.filterLayout.clearSearchTextValue(),await super.handleClearFilters("skins"),await this.getProducts())},this.marginUpdateReceived=ve=>{if(ve.productId){const V=this.skins.findIndex(Oe=>Oe.id===ve.productId);if(V===-1)return;const Ce=this.skins[V];this.skins[V].price=this.calculatePriceByMargin(Ce.price,ve),Ce.salePrice&&(this.skins[V].salePrice=this.calculatePriceByMargin(Ce.salePrice,ve));return}this.skins.forEach(V=>{!V.margin&&V.game?.shortName==="CSGO"&&(V.price=this.calculatePriceByMargin(V.price,ve),V.salePrice&&(V.salePrice=this.calculatePriceByMargin(V.salePrice,ve)))})},this.calculatePriceByMargin=(ve,V)=>{const Ce=ve/(1+V.old);return Ce+Ce*V.margin},this.pricesUpdateReceived=async()=>{await this.getProducts()},this.handleFilterChange=async(ve,V,Ce)=>{if(!(this.firstTimeFiltersLoad||!V||V?.field?.name?.toLowerCase()==="price")&&(V.value=Ce??(V.field.type===z.PU.Select?V.field.listOfValue.children.find(Oe=>
7276Oe.display.toLowerCase()==="all")??V.field.listOfValue.children[0]:void 0),!V.disabled&&V.field.previousValue!==V.value)){V.field.type===z.PU.Select&&await super.updateFilterChildren(V,Ce?.value);const Oe=this.activeFilters.findIndex(Te=>Te.parentId===V.field.id||Te.field?.name===V.field?.name);if(Oe>=0&&this.activeFilters.splice(Oe,1),(ve?.detail?.value||Ce)&&V.field.type!==z.PU.Range){let Te=ve?.detail?.value?.value??(Array.isArray(Ce)&&V.field.type===z.PU.Checkbox?Ce.join(", "):Ce?.value);Array.isArray(Ce)&&V.field.type===z.PU.Checkbox&&Ce.length>5?(Te=Ce.slice(0,5).join(", "),V.value=V.value.splice(0,5)):[z.PU.String,z.PU.TextArea].includes(V.field.type)&&Ce.length>40&&(V.value=V.value.substring(0,40)),this.activeFilters.push({parentId:V.field.id,value:Te??0,display:V?.value?.display})}else if(V&&Array.isArray(Ce)){const Te=V?.field?.minValue>=0?V?.field?.minValue:0,We=V?.field?.maxValue>0?V?.field?.maxValue:999999,$e=parseFloat(Ce[0]),he=parseFloat(Ce[1]);($e!==Te||he!==We)&&this.activeFilters.push({parentId:V.field?.id,startValue:parseFloat(Ce[0]),endValue:parseFloat(Ce[1]),display:V?.value?.display})}V.field?.name&&(this.extraParams[this.camelCaseValueConverter.toView(V.field.name,!0)]=this.handleExtraParamsValue(V)||null),this.updateParams(!0),await this.getProducts()}},this.handlePriceChange=async ve=>{this.selectedPriceRange=ve,await this.backToPageOne()},this.navigateUrl=async(ve=null)=>await this.urlNavigation.toView("skins",this.router,"game",this.paramGame,null,ve,this.extraParams),this.saveConfig=()=>{this.sessionService.saveLastSkinsPageConfig?.({...this.extraParams,page:this.page!==1?this.page:null})},this.handleSearchChanged=ve=>this.search=ve.target.value,this.clearSearch=()=>this.search=null,this.checkForSameGameAndHasPagination=(ve,V)=>{const Ce=this.games?.find(Oe=>Oe.slug?.includes(this.paramGame));return this.isDefault=!Ce,!!(ve.instruction.params.page||V&&this.selectedGame===Ce&&Ce?.slug?.[0]===ve.instruction?.params?.value)},this.updateUrlOnChange=(ve=!1)=>{this.taskQueue.queueMicroTask(async()=>{if(this.router.baseUrl===this.pagination?.getHref(this.page)&&!ve||this.gameNotAvailable)return;const V=await this.languageRouteValueConverter.toView(this.router.currentInstruction.config.name,!0),Ce=await this.languageRouteValueConverter.toView(this.pagination?.getHref(this.page));this.helper.debounce(this,"updateUrlLoading","updateUrlTimeout",this.firstTimeLoading?500:0,()=>{window.history.pushState(V,this.router.currentInstruction.config.title,Ce)})})},this.handleExtraParamsValue=ve=>{if([z.PU.Checkbox,z.PU.Select].includes(ve.field.type))return typeof ve.value=="object"&&!Array.isArray(ve.value)?+ve.value?.value:typeof ve.value=="string"?ve.value:ve.value.filter(V=>V.display&&V.display!=="All").map(V=>V.display).join(",");if(ve.field.type===z.PU.Number)return ve.value;if(ve.field.type===z.PU.Range){const V=ve.value[0]?.startValue??ve.value[0],Ce=ve.value[1]?.endValue??ve.value[1],Oe=ve.field.minValue>=0?ve.field.minValue:0,Te=ve.field.maxValue>0?ve.field.maxValue:999999;return ve.value==="All"||parseInt(V)===Oe&&parseInt(Ce)===Te?null:{startValue:V,endValue:Ce}}return ve.value??null},this.handleAddAdvancedFilters=()=>this.aAddFiltersRef?._addAdvancedFilters(),this.productService=D,this.router=I,this.eventAggregator=A,this.productCategoryService=se,this.priceModificationChecker=me,this.pageContentAreaService=P,this.currencyService=x,this.websiteService=$,this.urlNavigation=Pe,this.orderService=Se,this.helper=l,this.sessionService=E,this.taskQueue=ue,this.calculateConvertedPriceValueConverter=b,this.signalRService=re,this.orderProductService=ie,this.camelCaseValueConverter=Q,this.languageRouteValueConverter=Ae,this.siteStringsValueConverter=Le,this.languageKeyFormatterValueConverter=Me,this.metadataHelper=Ge,this.gameService=Ue,this.helper.getResolutions(this),this.imageBaseAwsEndpoint=(0,L.Ty)("content"),this.baseAwsEndpoint=(0,L.Ty)("products")}async bind(){this.sortField.listOfValue.children=this.sortByOptions.map((D,I)=>({id:I,display:this.siteStringsValueConverter.toView(this.languageKeyFormatterValueConverter.toView(D.display),D.display),value:D.value,selected:this.sort===D.value}))}async activate(D,I,A){this.helper.addLoadingComponent("skins",this),this.routeConfig=I,this.navigationInstruction=A,this.params=D,this.paramGame=this.params.value,this.games=this.navCategory.gameForNav,await super.setParams(this.params),this.page=+D.page||1}async attached(){this.handleEventSubscriptions(),this.width=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,this.perPage=this.helper.checkWidthForDisplayingCards(this.width,"products");const D=this.websiteService.getPage("Skins"),I=this.sessionService.getCurrency();if(this.navCategory??=await this.productCategoryService.getNavCategory("skins","CG"),[this.pageConfig,this.preferredCurrency
7276]=await Promise.all([D,I]),this.paramGame&&(this.selectedGame=this.games?.find(A=>A.slug?.includes(this.paramGame))),this.selectedGame)this.routeConfig.navModel.setTitle(""),this.pageContentArea=await this.pageContentAreaService.getByPageIdAndGame(this.pageConfig?.id,`SKINS_${this.selectedGame.shortName}`);else if(this.paramGame&&!this.selectedGame){if(this.gamesForNoAvailable=[...this.games?.filter(A=>A?.isTrending)?.sort((A,ue)=>A?.name?.localeCompare(ue?.name))?.slice(0,5)??[],...this.games?.filter(A=>!A?.isTrending)?.sort((A,ue)=>A?.name?.localeCompare(ue?.name))?.slice(0,Math.max(0,5-(this.games?.filter(A=>A?.isTrending)?.length||0)))??[]].slice(0,5),this.gameUnavailable=await this.gameService.getGameForNavBySlug(this.paramGame,"CG",this.navCategory.id),!this.gameUnavailable){this.router.navigateToRoute("404");return}this.metadataHelper.setTitleMetaTitleAndMetaDescription(this.routeConfig,this.navigationInstruction,this.gameUnavailable.title,this.gameUnavailable.metaDescription),this.pageLoading=!1,this.gameNotAvailable=!0,this.helper.validateLoading("skins");return}else this.firstTimeLoading||(this.pageContentArea=await this.pageContentAreaService.getByPageId(this.pageConfig.id));if(this.titleKeyContent=this.pageContentArea.find(A=>A.key===`SKINS${this.shortName}_PAGE_TITLE`),this.firstTimeFiltersLoad=!0,this.firstTimeLoading=!0,this.connection=await this.signalRService.getSignalRConnection(),this.signalRService.safeInvoke("SubscribeSteamUpdates"),this.connection?.on("MarginUpdate",this.marginUpdateReceived),this.connection?.on("PricesUpdate",this.pricesUpdateReceived),this.scrollView=document.querySelector("#main-page-host .simplebar-content-wrapper"),this.skinsPageRoute=this.pageConfig?.routeName??"skins",this.skinsPageRouteWithLang=await this.languageRouteValueConverter.toView(this.skinsPageRoute),this.paramGame&&(this.selectedGame=this.games?.find(A=>A.slug?.includes(this.paramGame))),this.selectedGame&&this.selectedGame?.slug[0]!==this.paramGame){const A=`/buy/${this.skinsPageRouteWithLang}/${this.selectedGame.slug[0]}`;this.router.baseUrl=A,this.helper.addPrerenderMetaTagForRedirect(A),this.router.navigate(A)}this.max=await this.calculateConvertedPriceValueConverter.calculatePriceByCurrency(this.preferredCurrency),this.rangeStart=+this.extraParams.minPrice||0,this.rangeEnd=+this.extraParams.maxPrice||null,await this.filterByRoute()}async filterByRoute(){if(this.helper.addLoadingComponent("skins",this),this.showPriceFilter=!1,this.showFilter=!1,this.triggeredGameChanged=!1,this.search??="",this.skinFilter="",this.activeFilters=[],this.skins=[],this.filters=super.handleMakingFiltersTemplateArray(this.filtersLength),this.route=this.router?.currentInstruction?.fragment,this.selectedGame=this.games?.find(D=>D.slug.includes(this.paramGame)),this.selectedGame)this.selectedGame.slug[0]===this.paramGame&&this.helper.removePrerenderMetaTagForRedirect(),this.routeConfig.navModel.setTitle(""),this.skinFilter=this.selectedGame?.shortName,await super.getFilters(this.navCategory.id,this.selectedGame.id),this.priceModification=await this.priceModificationChecker.toView(this.selectedGame.id,16);else{this.isDefault=!0,this.gameNotAvailable||this.routeConfig.navModel.setTitle(this.pageConfig.title);const D=[{iconPath:"/dual-sword.svg",label:"Type"},{iconPath:"/half-sword.svg",label:"Subtype"},{iconPath:"/combat-level.svg",label:"Exterior"},{iconPath:"/equipment.svg",label:"Collection"}];this.filters=super.buildFiltersArray(D)}super.checkFilterParam()?setTimeout(()=>{this.firstTimeFiltersLoad=!1,super.handleFilters()},500):(this.firstTimeFiltersLoad=!1,await this.getProducts()),this.showFilter=this.showPriceFilter=!0,this.helper.validateLoading("skins")}deactivate(){this.saveConfig()}detached(){this.helper.removePrerenderMetaTagForRedirect(),this.routeChangeProcessingSubscription?.dispose(),this.routeChangeSubscription?.dispose(),this.currencySubscriber?.dispose(),this.sizeChanged?.dispose(),this.adminViewSubscription?.dispose(),this.filterValueChangeSubscription?.dispose(),this.pageLoadedSubscriber?.dispose(),this.connection&&(this.signalRService.safeInvoke("UnsubscribeSteamUpdates"),this.helper.killSignalRListeners(this.connection,["MarginUpdate","PricesUpdate"]))}loadingChanged(){this.checkInitialLoadComplete()}
7276pageLoadingChanged(){this.checkInitialLoadComplete()}filteringChanged(){this.checkInitialLoadComplete()}countLoadingChanged(){this.checkInitialLoadComplete()}checkInitialLoadComplete(){this.isFirstLoad&&!this.loading&&!this.pageLoading&&!this.filtering&&!this.countLoading&&(this.isFirstLoad=!1)}handleEventSubscriptions(){this.routeChangeProcessingSubscription=this.eventAggregator.subscribe("router:navigation:processing",async D=>{if(this.checkForSameGameAndHasPagination(D,!0))return;this.triggeredGameChanged=!0;const I=this.games?.find(A=>A.slug?.includes(D?.instruction?.params?.value));I?(this.eventAggregator.publish("loading-content",{loadingContent:!0}),this.pageContentArea=await this.pageContentAreaService.getByPageIdAndGame(this.pageConfig?.id,`SKINS_${I.shortName}`),this.eventAggregator.publish("loading-content",{loadingContent:!1})):this.pageContentArea=await this.pageContentAreaService.getByPageId(this.pageConfig.id),this.titleKeyContent=this.pageContentArea.find(A=>A.key===`SKINS${this.shortName}_PAGE_TITLE`)}),this.routeChangeSubscription=this.eventAggregator.subscribe("router:navigation:success",async D=>{if(this.firstTimeFiltersLoad=!1,this.checkForSameGameAndHasPagination(D)||!this.triggeredGameChanged){await super.setParams(this.extraParams);return}await this.filterByRoute(),this.updateParams()}),this.currencySubscriber=this.eventAggregator.subscribe("currency-updated",async D=>{this.preferredCurrency!==D.currency&&(this.preferredCurrency=D.currency)}),this.sizeChanged=this.eventAggregator.subscribe("size-changed",async D=>{this.helper.debounce(this,"loadingSizeChange","sizeChangedTimeout",700,async()=>{this.width=D.width,this.newPerPage=this.helper.checkWidthForDisplayingCards(this.width,"products"),this.shouldUpdatePage=this.newPerPage!==this.perPage,this.perPage=this.newPerPage,this.shouldUpdatePage&&await this.pageChanged()})}),this.adminViewSubscription=this.eventAggregator.subscribe("admin-view-updated",D=>{this.viewingAsAdmin=D.bool}),this.filterValueChangeSubscription=this.eventAggregator.subscribe("filter-value-change",async D=>{const I=D?.filter?.field?.name;I&&this.filterLayout.setFiltersActive(I,!0)}),this.pageLoadedSubscriber=this.eventAggregator.subscribe("page-loaded",()=>{this.pageLoading=!1})}get shortName(){return this.selectedGame?"_"+this.selectedGame.shortName:this.router.baseUrl==="/buy"?"_BUY":"_DEFAULT"}get currentCount(){return super.getCurrentCountText({products:this.skins,total:this.skinsCount,loading:this.countLoading,siteStrings:this.siteStringsValueConverter})}async gameChanged(D){if(!this.isChangingGame){this.isChangingGame=!0;try{const I=this.games?.find(A=>A.id===String(D.id));if(!I||I.id===this.selectedGame?.id||D?.id===this.selectedGame?.id)return;if(this.selectedGame=I,this.triggeredGameChanged=!0,this.rangeStart=0,this.rangeEnd=null,D&&I.slug&&I.slug[0]){this.pageLoading=!0;try{const A=await this.languageRouteValueConverter.toView(this.skinsPageRoute);this.router.navigate(`/${A}/${I.slug[0]}`)}catch(A){console.error(A)}}}catch(I){console.error("Error in gameChanged:",I),this.helper.validateLoading("skins"),this.loading=!1,this.pageLoading=!1}finally{this.isChangingGame=!1}}}async getProducts(){this.helper.debounce(this,"loading","getSkinsTimeout",700,async()=>{const D=this._skinsRequestId=(this._skinsRequestId||0)+1;this.filtering=!0,this.hasLoaded=!0,this.countLoading=!0;try{const I=this.selectedGame?.id,A=this.search?.toLowerCase(),ue=super.handleActiveFilters(),se=this.productService.getStockProductsCount("Skins",I,A,this.extraParams.minPrice,this.extraParams.maxPrice,ue),me=this.productService.getStockProducts("Skins",I,this.page,this.perPage,A,this.extraParams.sort,this.extraParams?.minPrice,this.extraParams?.maxPrice,ue),[P,x]=await Promise.all([se,me]);if(this.skinsCount=P,D!==this._skinsRequestId||(this.countLoading=!1,this.handleSkinsPaginationUpdates())||D!==this._skinsRequestId||(this.skins=x??[],D!==this._skinsRequestId)||(this.processSkinsPrices(),this.id=this.skins.map($=>$.id??$.productId),this.average=await this.orderProductService.getAverageDeliveryTime(this.id
7276),D!==this._skinsRequestId))return;this.skins.forEach($=>$.averageDeliveryTime=this.average?.[$.id??$.productId]),await this.handlePriceModification(),this.processSkinsRatingSchema(),await this.preloadSkinsImages()}catch(I){console.info("Error in getSkins:",I)}finally{D===this._skinsRequestId&&(this.loading=!1,this.pageLoading=!1,this.filtering=!1,this.countLoading=!1,this.pageLoading=!1)}})}handleSkinsPaginationUpdates(){this.count=Math.ceil(this.skinsCount/this.perPage);const I=this.count!==null&&this.count!==void 0&&this.page!==1&&this.page>this.count;return this.shouldUpdatePage=I||this.page<=0,this.shouldUpdatePage?(this.page=1,!0):!1}processSkinsPrices(){if(!this.skins?.length)return;this.prices=this.skins.map(I=>I.salePrice>0?I.salePrice:I.price),this.skinsMaxPrice=Math.max(...this.prices);const D=Math.min(...this.prices);this.skinsMinPrice=D<0?0:D}processSkinsRatingSchema(){if(!this.skins?.length||!this.selectedGame)return;const D=this.skins.map(A=>A.salePrice>0?A.salePrice:A.price>0?A.price:null).filter(A=>A!==null);if(!D.length)return;const I={offerCount:this.skinsCount,lowestPrice:Math.min(...D),highestPrice:Math.max(...D)};this.orderService.handleProductRatingSchema(this.selectedGame,this.navCategory,null,"USD",null,null,I)}async preloadSkinsImages(){if(!this.skins?.length)return;const D=this.skins.filter(I=>I?.imagePath&&!this.helper.isVideo(I.mimeType)).map(I=>`${this.baseAwsEndpoint}${I.imagePath}`);D.length>0&&await this.helper.preloadImages(D)}setQuantity(){if(this.skins.length&&this.skins[0])for(const D of this.skins)D.minimum===0?D.selectedQuantity=1:D.selectedQuantity=D.minimum}get resultsExists(){return!!this.skins?.length}async handleSortUpdate(D){!D?.detail?.values?.length||this.firstTimeFiltersLoad||D?.defail?.values?.length&&this.sort===D?.detail?.values[0]||(this.sort=D?.detail?.values[0],this.updateParams(!0),await this.backToPageOne())}handleDrawerNavigationClick(){this.drawer.open=!this.drawer.open}async handlePriceModification(){this.skins.forEach(async D=>{D.priceModification=await this.priceModificationChecker.toView(D.gameId,D.productCategoryId)})}async backToPageOne(){if(this.page===1){this.getProducts();return}this.page=1,this.updateUrlOnChange()}async pageChanged(){if(!this.hasLoaded){this.hasLoaded=!0;return}this.scrollView&&this.scrollView.scrollTo({top:0,behavior:"smooth"}),this.shouldUpdatePage&&(this.shouldUpdatePage=!1,this.updateUrlOnChange()),await this.getProducts()}async configureRouter(D,I){this.navCategory=await this.productCategoryService.getNavCategory("skins","CG");const A=this.navCategory?.gameForNav;D.options.pushState=!0,this.router=I,D.map([{route:["","buy-skins"],name:"buy-skins",navigationStrategy:async ue=>{const se=ue.parentInstruction.params.value,me=A.find(x=>x.slug.includes(se));if(me&&se!==me.slug[0]){const $=`/${[...window.location.pathname.split("/").filter(Boolean).slice(0,-1),me.slug[0]].join("/")}`;this.helper.addPrerenderMetaTagForRedirect($),this.router.navigate($,{replace:!0});return}se&&A.some(x=>x.slug.includes(se))?(ue.config.moduleId="pages/more/skins/skins-game-content/skins-game-content",ue.config.viewPorts&&(ue.config.viewPorts.default.moduleId="pages/more/skins/skins-game-content/skins-game-content")):(ue.config.moduleId="pages/more/skins/buy-skins/buy-skins",ue.config.viewPorts&&(ue.config.viewPorts.default.moduleId="pages/more/skins/buy-skins/buy-skins"));const P=A.find(x=>x.slug.includes(se));if(P){let x=null;try{x=await this.gameService.getGameForNavBySlug(P.slug[0],"CG",this.navCategory?.id)}catch(Pe){console.error("Error loading game meta:",Pe)}const $=x?.title??P.headerTitle;ue.config.title=$,ue.config.settings={metaDescription:x?.metaDescription,keyName:`SKINS_${P.shortName}`},ue.config.navModel.setTitle($)}else ue.config.navModel.setTitle("")},settings:{metaDescription:"Buy Game Skins from the #1 Game Skin Seller on the market. Over 100,000+ Game Skins Purchases successfully completed!"}}]),D.mapUnknownRoutes(()=>{this.router.navigateToRoute("404")})}rangeStartChanged(){this.rangeStart<=0||this.updateParams(!0)}rangeEndChanged(){this.rangeEnd<=0||this.updateParams(!0)}async searchChanged(){this.updateParams(!0),!this.isFirstLoad&&(this.loading=!0,await this.backToPageOne())}updateParams(D=!1){this.extraParams.minPrice=this.rangeStart&&this.rangeStart>0?this.rangeStart:null,this.extraParams.maxPrice=this.rangeEnd&&this.rangeEnd<=this.max?this.rangeEnd:null,this.extraParams.search=this.search||null,this.extraParams.sort=this.sort||null,this.pagination?.updateParams(),this.updateUrlOnChange(D)}
7276get searchExist(){return this.search&&this.search.length}get getPaddingFix(){return this.search?.length&&this.width<this.desktop&&"cg-filter-section-template-padding-top-fix"}get getFilterMenuLayoutConfig(){return{menuButtonClass:this.width>=this.desktop?"filled-icon-button-no-border-left":"",baseDesktopComponent:"menu",baseResponsiveComponent:"filter-button",filterType:"multiple",customFooter:!0,noResults:this.shouldShowNoResults,onClearSearch:()=>this.clearSearch(),onCloseDrawer:()=>{},onSearchChanged:D=>this.handleSearchChanged(D),onClearFilters:()=>super.handleClearFiltersAndSearch()}}updateAllPriceSelectors(D){this.priceSelectorDesktop&&this.priceSelectorDesktop?.autocomplete?.selectItem(D),this.priceSelectorMobile&&this.priceSelectorMobile?.autocomplete?.selectItem(D)}get shouldShowNoResults(){return!this.isFirstLoad&&!this.pageLoading&&!this.countLoading&&!this.filtering&&(!this.skins?.length||this.forceShowNoResults)}get shouldShowCards(){return!this.isFirstLoad&&!this.pageLoading&&!this.countLoading&&!this.filtering&&!!this.skins?.length&&!this.forceShowNoResults}get isResponsive(){return this.width<this.desktop}},a=S(n.prototype,"skins",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),c=S(n.prototype,"max",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1500}}),o=S(n.prototype,"skinFilter",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),t=S(n.prototype,"search",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),i=S(n.prototype,"rangeStart",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r=S(n.prototype,"rangeEnd",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=S(n.prototype,"loading",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),g=S(n.prototype,"pageLoading",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),d=S(n.prototype,"filtering",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),y=S(n.prototype,"countLoading",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),C=S(n.prototype,"page",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),S(n.prototype,"shortName",[Y],Object.getOwnPropertyDescriptor(n.prototype,"shortName"),n.prototype),S(n.prototype,"currentCount",[Z],Object.getOwnPropertyDescriptor(n.prototype,"currentCount"),n.prototype),S(n.prototype,"resultsExists",[_e],Object.getOwnPropertyDescriptor(n.prototype,"resultsExists"),n.prototype),S(n.prototype,"searchExist",[U],Object.getOwnPropertyDescriptor(n.prototype,"searchExist"),n.prototype),S(n.prototype,"getPaddingFix",[M],Object.getOwnPropertyDescriptor(n.prototype,"getPaddingFix"),n.prototype),S(n.prototype,"getFilterMenuLayoutConfig",[p],Object.getOwnPropertyDescriptor(n.prototype,"getFilterMenuLayoutConfig"),n.prototype),S(n.prototype,"shouldShowNoResults",[w],Object.getOwnPropertyDescriptor(n.prototype,"shouldShowNoResults"),n.prototype),S(n.prototype,"shouldShowCards",[u],Object.getOwnPropertyDescriptor(n.prototype,"shouldShowCards"),n.prototype),S(n.prototype,"isResponsive",[h],Object.getOwnPropertyDescriptor(n.prototype,"isResponsive"),n.prototype),n))||v)}),"pages/more/swap/swap":(function(W,f,e){"use strict";e.r(f),e.d(f,{Swap:function(){return m}});var s=e("aurelia-framework"),q=e(17285),be=e("aurelia-event-aggregator"),ye=e(41455),X=e(58846),ae=e(6506),j=e(31018),ge=e(10220),le=e(66666),pe=e(30953),de=e(90753),ce=e(15205),J=e(39146),K=e(38489),H=e(19806),k=e(28674),ee=e(15372),fe=e(69553),z=e(12259),ne=e(40110),B=e(62148),_=e(91591),T=e(46203),L=e("resources/elements/swap/cg-swap-section/cg-swap-section"),O=e(46018),G=e(91861),F=e(9688),Y=e(42371),Z=e(33092),_e=e(98446),U,M,p,w,u,h,v,n,a,
7276c,o,t,i;function r(g,d,y,C,R){var S={};return Object.keys(C).forEach(function(N){S[N]=C[N]}),S.enumerable=!!S.enumerable,S.configurable=!!S.configurable,("value"in S||S.initializer)&&(S.writable=!0),S=y.slice().reverse().reduce(function(N,te){return te(g,d,N)||N},S),R&&S.initializer!==void 0&&(S.value=S.initializer?S.initializer.call(R):void 0,S.initializer=void 0),S.initializer===void 0?(Object.defineProperty(g,d,S),null):S}let m=(U=(0,K.connectTo)({selector:{selectedSellProducts:g=>g.state.pipe((0,k.T)(d=>d.swapState.selectedProducts.sellProducts),(0,H.F)()),selectedBuyProducts:g=>g.state.pipe((0,k.T)(d=>d.swapState.selectedProducts.purchaseProducts),(0,H.F)())}}),M=(0,s.inject)(be.EventAggregator,ye.j,ae.Q,j.Q,ge.Ix,le.w,J.F,K.Store,B.g,O.V,s.TaskQueue,G.LanguageRouteValueConverter,Y.Mx,pe.z,Y.HP,Z.Zq,Z.e6,_.y),p=(0,s.computedFrom)("currentSellCategory","currentSellGame","swapPages"),w=(0,s.computedFrom)("productCategories","productCategories.length"),u=(0,s.computedFrom)("productCategories","productCategories.length"),h=(0,s.computedFrom)("isSelling","buyCategories","sellCategories"),v=(0,s.computedFrom)("isSelling","currentSellCategory","currentBuyCategory"),n=(0,s.computedFrom)("currentSellGame","currentSellCategory"),a=(0,s.computedFrom)("currentSellCategory"),c=(0,s.computedFrom)("pageLoading","contentLoading","sellSectionLoading","buySectionLoading"),o=(0,s.computedFrom)("sellSectionLoading","buySectionLoading"),U(t=M(t=(i=class{constructor(d,y,C,R,S,N,te,Ee,D,I,A,ue,se,me,P,x,$,Pe){this.selectedSellProducts=[],this.selectedBuyProducts=[],this.user=void 0,this.defaultPageTitle="Swap products",this.currentSellGame=void 0,this.currentBuyGame=void 0,this.creatingOrder=!1,this.isSelling=!0,this.currentSellCategory=void 0,this.currentBuyCategory=void 0,this.productCategories=[],this.sellSwapSection=void 0,this.paymentMethods=[],this.swapAdjustments=!1,this.whyChooseUsKeys=[],this.infoQuadCardData=[],this.sizeSubscription=void 0,this.receiveSelectionLocked=!1,this.receiveTakenOverSubscription=void 0,this.width=void 0,this.metaDescription="Dynamic with Chicks Gold, the #1 virtual platform. Get great deals and 24/7 Live customer support. We got you covered!",this.staticProductCategories=(0,F.k_)(),this.pageLoading=!0,this.contentLoading=!1,this.sellSectionLoading=!1,this.buySectionLoading=!1,this.allowedCategories=["currency","skins","unique-names","items"],this.connection=void 0,this.preferredCurrency=void 0,this.validateRoute=async Se=>{const l=Se.fragment.split("/");this.hreflangList.includes(l[1])&&l.splice(1,1);const E=this.staticProductCategories.map(b=>z.p.transformCategoryName(b).toLowerCase().replaceAll(" ","-"));return l.length===2||l.length===3&&E.includes(l[2])?!0:(l.shift(),this.routeGameCheck=await this.gameService.getGameForNavBySlug(l[l.length===3?2:1],"CG",this.productCategories.find(b=>b.name==="Swap")?.id),!this.routeGameCheck&&!this.checkIfSwapBaseUrl()?(this.router.navigateToRoute("404"),!1):!0)},this.createOrder=async()=>{if(this.creatingOrder)return;this.creatingOrder=!0;let Se=this.buildOrder();if(this.user){let l=await this.sessionService.getCart(!0);const E=ee.d.validateWithUserCart(Se,l);if(E){de.$.toast(E,"error").show(),this.creatingOrder=!1;return}if(!this.validateOrderProducts(Se)){this.creatingOrder=!1;return}this.orderService.startCustomOrder(Se,this.idempotencyKey),this.connection?.on("UserOrderCreated",async re=>{await this.sessionService.refreshCartCount(),this.router.navigate(`/${b}/swap/chat/${re}`)});const b=await this.websiteService.getRouteOrDefault("Customer Portal");this.router.navigate(`/${b}/swap/chat`)}else{if(Se=this.updateLocalOrder(Se),this.sessionService.storeLocalOrder(Se),de.$.toast("Added items to your cart.","info").show(),Se.products.some(b=>b.product?.steamId)){this.authHandler.redirectToSSO({forceSteam:!0});return}const{affiliateCode:l,savedReferralLink:E}=await this.sessionService.getReferralData();this.authHandler.redirectToSSO({referralLink:l,refLink:E});return}this.creatingOrder=!1},this.buildOrder=()=>{const Se=[];return this.selectedSellProducts.filter(l=>
7276(0,ce.g)(l)).forEach(l=>{const E={Wear:l.float,Exterior:l.exterior,AssetId:l.assetId,InstanceId:l.instanceId};l.stickers?.forEach((b,re)=>{E[`Sticker Name ${re+1}`]=b.name}),Se.push({productId:Number.parseInt(l.productId),quantity:1,isSell:!0,imagePath:l.iconUrl,additionalFields:E,additionalImages:l.stickers?.map(b=>b.url),price:l.price,isSteamProduct:!0,steamAppId:l.appId})}),this.selectedSellProducts.filter(l=>!(0,ce.g)(l)).forEach(l=>this.pushProductToOrder(Se,l,!0)),this.selectedBuyProducts.forEach(l=>this.pushProductToOrder(Se,l,!1)),{websiteShortCode:(0,X.te)(),products:Se,currencyUsed:this.preferredCurrency}},this.pushProductToOrder=(Se,l,E)=>{let b=l.dynamicList;typeof b!="string"&&b&&(b=JSON.stringify(b)),Se.push({productId:l.id,isSell:E,price:E?void 0:z.p.getPrice(l,!1),imagePath:l.imagePath,serviceFullName:l.serviceFullName,quantity:l.selectedQuantity,productCategoryId:l.productCategoryId,productCategory:l.productCategory,isCustomOrder:!!l.serviceFullName,dynamicList:b})},this.checkIfSwapBaseUrl=()=>globalThis.location.pathname.startsWith(`/${this.pageConfig?.routeName??"swap"}`)&&globalThis.location.pathname.split("/")?.length<4,this.authHandler=me,this.sessionService=R,this.router=S,this.eventAggregator=d,this.websiteService=y,this.orderService=C,this.gameService=N,this.productCategoryService=te,this.store=Ee,this.paymentMethodWebsiteService=D,this.languageWebsiteService=I,this.taskQueue=A,this.languageRouteValueConverter=ue,this.metadataHelper=se,this.helper=P,this.pageContentAreaService=x,this.signalRService=$,this.featureFlagService=Pe,this.store.isActionRegistered(fe.l9)||this.store.registerAction("clearSelectedProducts",fe.l9),this.hreflangList=this.languageWebsiteService?.languages?.filter(Se=>Se.language.hrefLang).map(Se=>Se.language.hrefLang),this.amazonGameBaseUrl=(0,X.Ty)("games")}async activate(d,y,C){if(this.helper.addLoadingComponent("swap",this),this.firstTimeTrigger=!0,this.routeConfig=y,this.navigationInstruction=C,this.connectToWebsocket(),this.store.isActionRegistered(fe.RE)||this.store.registerAction("updateSelectedProducts",fe.RE),[this.user,this.productCategories,this.pageConfig,this.preferredCurrency,this.swapAdjustments]=await Promise.all([this.sessionService.getProfile(),this.productCategoryService.getAll(),this.websiteService.getPage("Swap"),this.sessionService.getCurrency(),this.featureFlagService.getKeyEnabled(F.$v.FEATURE_FLAG_CG_SWAP_ADJUSTMENTS)]),this.swapAdjustments||(this.paymentMethods=(await this.paymentMethodWebsiteService.getByWebsite(!0)).filter(A=>A.payoutable).map(A=>({...A,elementId:A.paymentMethod.name.replaceAll(/[-, \\/]/g,"")}))),!await this.validateRoute(C))return;const S=C.fragment.split("/");S.shift();let N;this.swapPageRoute=this.pageConfig?.routeName??"swap",this.checkIfSwapBaseUrl()||(N=this.routeGameCheck??await this.gameService.getGameForNavBySlug(S[S.length===3?2:1],"CG",this.productCategories.find(A=>A.name==="Swap")?.id)),this.swapGames=await this.getFormattedSwapCategory(),N&&this.swapGames?.items?.find(A=>A.shortName===N.shortName)?this.currentSellGame={id:N.id,icon:N.gameNavigationIcon,name:N.name,isTrending:!1,shortName:N.shortName,currencyProductSymbol:N.currencyProductSymbol,steamAppId:N.steamAppId}:this.checkIfSwapBaseUrl()||(this.gamesForNoAvailable=[...this.swapGames?.items?.filter(A=>A?.isTrending)?.sort((A,ue)=>A?.name?.localeCompare(ue?.name))?.slice(0,5)??[],...this.swapGames?.items?.filter(A=>!A?.isTrending)?.sort((A,ue)=>A?.name?.localeCompare(ue?.name))?.slice(0,Math.max(0,5-(this.swapGames?.items?.filter(A=>A?.isTrending)?.length||0)))??[]].slice(0,5),this.gamesForNoAvailable.forEach(A=>A.category="Swap"),this.gameUnavailable=N,this.metadataHelper.setTitleMetaTitleAndMetaDescription(this.routeConfig,this.navigationInstruction,this.gameUnavailable.title,this.gameUnavailable.metaDescription),this.gameNotAvailable=!0);let te=this.swapGames.items.find(A=>A.shortName===this.currentSellGame?.shortName)?.slug[0]||"";if(te||(te=this.swapPageRoute),this.currentSellCategory){const A=te?.split("/");if(!A?.length)return;A[1]=z.p.transformCategoryName(this.currentSellCategory.name).toLowerCase().replaceAll(" ","-"),te=A.join("/")}if(!te.includes(this.swapPageRoute)){this.router.navigateToRoute("404");return}this.checkForSwapPageUrlAndRedirect(te,C);const Ee=this.sellCategories.map(A=>({...A,name:z.p.transformCategoryName(A.name).toLowerCase().replaceAll(" ","-")})),D=C.fragment.split("/"),I=Ee?.find(A=>A.name===D[2])?.id||null;this.currentSellCategory=this.sellCategories.find(A=>A.id===I)||null,this.applyDefaultReceiveSelection(),this.buildContent(this.swapSEOKey)}async attached(){try{if(this.handleEventSubscriptions(),this.idempotencyKey=(0,_e.A)(),this.width=Y.QP.getWindowWidth(),this.pages=await this.websiteService.getPagesByWebsiteShortcode(),this.pages){if(this.swapPages=this.pages.filter(d=>d.name.includes("Swap")),!this.swapPages)return;this.pageContentArea=(await Promise.all(this.swapPages.map(d=>this.pageContentAreaService.getByPageId(d.id))))?.flat()}this.store.dispatch("clearSelectedProducts","Purchase"),this.store.dispatch("clearSelectedProducts","Sell")}catch(d){console.error(d)}finally{this.helper.validateLoading("swap")}}detached(){this.router.currentInstruction?.config?.name!=="swap"&&(this.localOrderEvent?.dispose(),this.adminViewSubscription?.dispose(),this.routeChangedSubscription?.dispose(),this.footerNavigationSubscription?.dispose(),this.helper.removePrerenderMetaTagForRedirect(),this.helper.resetLoading("swap"),this.sizeSubscription?.dispose(),this.receiveTakenOverSubscription?.dispose())}deactivate(){this.store.dispatch("clearSelectedProducts","All")}async connectToWebsocket(){this.connection=await this.signalRService.getSignalRConnection()}get pageTitle(){let d="";if(!this.currentSellGame){if(d=this.currentSellCategory?this.defaultPageTitle.replace("products",`${this.currentSellCategory.name} products`):this.defaultPageTitle,this.currentSellCategory){const R=z.p.transformCategoryName(this.currentSellCategory.name).toLowerCase().replaceAll(" ","-");this.taskQueue.queueMicroTask(()=>this.pushSwapUrl(`${this.swapPageRoute}/${R}
7276`))}const C=this.swapPages?.find(R=>R.name===(this.currentSellCategory?`Swap ${this.currentSellCategory.name}`:"Swap"));return this.setMetaDescription(C?.title??d,C?.metaDescription),this.titleKeyContent=this.pageContentArea?.find(R=>R.key===`SWAP_${this.pageContentAreaTitle}_PAGE_TITLE`),d}if(!this.currentSellCategory)return d=`Swap ${this.currentSellGame.shortName} products`,this.setMetaDescription(d),this.titleKeyContent=this.pageContentArea?.find(C=>C.key===`SWAP_${this.pageContentAreaTitle}_PAGE_TITLE`),d;const y=this.swapGames?.items?.find(C=>C.shortName===this.currentSellGame.shortName)?.slug?.[0];return y&&this.taskQueue.queueMicroTask(async()=>{let C=y;if(this.currentSellCategory){const R=C?.split("/");if(!R?.length)return;R[1]=z.p.transformCategoryName(this.currentSellCategory.name).toLowerCase().replaceAll(" ","-"),C=R.join("/")}if(!C.includes(this.swapPageRoute)){this.router.navigateToRoute("404");return}`/${C}`!==this.router.currentInstruction.fragment&&!this.prerenderMetatagTriggered&&(this.prerenderMetatagTriggered=!0,this.helper.addPrerenderMetaTagForRedirect(`/${C}`),setTimeout(()=>this.pageLoading=this.contentLoading=this.prerenderMetatagTriggered=!1,3e3)),await this.pushSwapUrl(C)}),d=`Swap ${this.currentSellGame.shortName} ${z.p.transformCategoryName(this.currentSellCategory.name)}`,this.setMetaDescription(d),this.titleKeyContent=this.pageContentArea?.find(C=>C.key===`SWAP_${this.pageContentAreaTitle}_PAGE_TITLE`),d}async pushSwapUrl(d){if(!d)return;const[y,C]=await Promise.all([this.languageRouteValueConverter.toView(this.router.currentInstruction?.config?.name,!0),this.languageRouteValueConverter.toView(d)]),R=C.startsWith("/")?C:`/${C}`;R!==globalThis.location.pathname&&globalThis.history.pushState(y,this.router.currentInstruction?.config?.title,R)}setMetaDescription(d,y){const C=this.metaDescription.replace("Dynamic",d);this.metadataHelper.setTitleMetaTitleAndMetaDescription(this.routeConfig,this.navigationInstruction,d,y??C)}get sellCategories(){const d=new Set([q.g1.Accounts,q.g1.GiftCards]);return this.productCategories.filter(C=>C.name.includes("Sell ")).filter(C=>F.yn.has(z.p.transformCategoryName(C.name))).map(C=>({name:z.p.transformCategoryName(C.name),icon:F.yn.get(z.p.transformCategoryName(C.name)),id:C.id})).filter(C=>!d.has(C.name))}get buyCategories(){const d=new Set([q.g1.Services]);return this.productCategories.filter(C=>F.yn.has(C.name)).map(C=>({name:C.name,icon:F.yn.get(C.name),id:C.id})).filter(C=>!d.has(C.name))}get mobileCategories(){return this.isSelling?this.sellCategories:this.buyCategories}get currentGameMobile(){return this.isSelling?this.currentSellGame:this.currentBuyGame}get currentCategoryMobile(){return this.isSelling?this.currentSellCategory:this.currentBuyCategory}get swapSEOKey(){let d="SWAP";return this.currentSellGame?d=`${d}_${this.currentSellGame.shortName}`:this.currentSellCategory&&(d=`${d}_${this.currentSellCategory.name.toUpperCase()}`),this.buildContent(d),d}handleGameSelected(d,y){y==="mobile"&&!this.isSelling||y==="buy"?(this.currentBuyGame=d.detail,this.receiveSelectionLocked=!0):(this.currentSellGame=d.detail,this.applyDefaultReceiveSelection())}async applyDefaultReceiveSelection(){const d=this.currentSellGame?.id;if(!(!d||this.receiveSelectionLocked))try{const y=this.currentSellCategory?z.p.transformCategoryName(this.currentSellCategory.name):null,C=this.currentBuyCategory??this.buyCategories.find(N=>N.name===y),R=await this.gameService.getSwapReceiveCandidates(d,C?.id??null);if(this.currentSellGame?.id!==d)return;const S=R?.find(N=>N.id!==d);if(!S)return;C&&C.id!==this.currentBuyCategory?.id&&(this.currentBuyCategory=C),this.currentBuyGame={id:S.id,icon:S.icon,name:S.name,isTrending:!1,shortName:S.shortName,currencyProductSymbol:S.currencyProductSymbol,steamAppId:S.steamAppId}}catch(y){console.error("Could not apply the default receive selection:",y)}}async handleCategorySelected(d,y){let C,R;const S=this.productCategories.find(N=>N.id===d.detail.id);if(y==="mobile"&&this.isSelling||y==="sell"){C=this.currentSellCategory,R=this.selectedSellProducts?.length>0;const N=this.currentSellGame;S?(this.currentSellCategory={...S,name:z.p.transformCategoryName(S.name)}
7276,this.titleKeyContent=this.pageContentArea?.find(te=>te.key===`SWAP_${this.pageContentAreaTitle}_PAGE_TITLE`)):this.currentSellCategory=null,this.currentSellGame=await this.gameAvailableInCategory(N,S?.id)?N:null}else{C=this.currentBuyCategory,R=this.selectedBuyProducts?.length>0;const N=this.currentBuyGame;S?this.currentBuyCategory=S:this.currentBuyCategory=null,this.currentBuyGame=await this.gameAvailableInCategory(N,S?.id)?N:null}this.receiveSelectionLocked=!1,C&&R&&de.$.toast(`You can only ${y} products from one category at a time. All ${z.p.transformCategoryName(C.name).toLowerCase()} products were removed.`,"info").show(),this.store.dispatch("clearSelectedProducts",y==="sell"?"Sell":"Purchase")}async gameAvailableInCategory(d,y){if(!d||!y)return!1;try{return!!(await this.productCategoryService.getNavCategoryById(y))?.gameForNav?.some(R=>String(R.id)===String(d.id))}catch(C){return console.error("Could not check the game against the new category:",C),!1}}async redirectToSSO(){if(this.user){pe.U.startSteamAuth(globalThis.location.href);return}const{affiliateCode:d,savedReferralLink:y}=await this.sessionService.getReferralData();this.authHandler.redirectToSSO({referralLink:d,refLink:y})}updateLocalOrder(d){const y=this.sessionService.getLocalOrder(!0);if(!y)return d;for(const C of d.products){const R=y.products.find(S=>ee.d.compareOrderProducts(S,C));if(!R){y.products.push(C);continue}if(R.isSell!==C.isSell)return de.$.toast("Cannot swap the same product. One or more products already included in the cart with a different swap category.","error").show(),null;if(C.serviceFullName)return de.$.toast(`${C.serviceFullName} already in the cart. Please remove it from your order or from the cart to continue.`,"error").show(),null;R.quantity!==C.quantity&&(y.products=y.products.map(S=>S.productId===C.productId?C:S))}return y}validateOrderProducts(d){for(const y of d.products){if(y.productCategory?.name===q.g1.UniqueNames)continue;if(d.products.filter(R=>R.productCategoryId===y.productCategoryId&&R.productId===y.productId&&R.isSell!==y.isSell).length>0)return de.$.toast("Cannot swap the same product. Please remove repeated products from the opposite category.","error").show(),!1}return!0}handleEventSubscriptions(){this.localOrderEvent=this.eventAggregator.subscribe(F.sV.CREATING_LOCAL_ORDER,()=>{this.creatingOrder=!0}),this.pageLoadedSubscriber=this.eventAggregator.subscribe("page-loaded",()=>{this.pageLoading=!1}),this.currencyUpdateSubscription=this.eventAggregator.subscribe("currency-updated",async d=>{this.preferredCurrency=d.currency}),this.routeChangedSubscription=this.eventAggregator.subscribe("router:navigation:success",async d=>{const y=d?.instruction.fragment.split("/");this.hreflangList.includes(y[1])&&y.splice(1,1);const C=this.staticProductCategories.map(te=>z.p.transformCategoryName(te).toLowerCase().replaceAll(" ","-"));if(y.length===2||y.length===3&&C.includes(y[2])){if(this.preselectedSellCategory=d?.instruction.config.data,this.preselectedSellCategory){const te=this.sellCategories.find(Ee=>Ee.name.split(" ").join("-").toLocaleLowerCase()===this.preselectedSellCategory)?.id;this.handleCategorySelected({detail:{id:te}},"sell")}return}y.shift();const R=y.length===3?2:1,S=this.firstTimeTrigger&&this.routeGameCheck?this.routeGameCheck:await this.gameService.getGameForNavBySlug(y[R],"CG",this.productCategories.find(te=>te.name==="Swap")?.id);if(!S&&!this.checkIfSwapBaseUrl()){this.router.navigateToRoute("404");return}if(S&&!this.swapGames?.items?.find(te=>te.shortName===S.shortName)){this.gamesForNoAvailable=[...this.swapGames?.items?.filter(te=>te?.isTrending)?.sort((te,Ee)=>te?.name?.localeCompare(Ee?.name))?.slice(0,5)??[],...this.swapGames?.items?.filter(te=>!te?.isTrending)?.sort((te,Ee)=>te?.name?.localeCompare(Ee?.name))?.slice(0,Math.max(0,5-(this.swapGames?.items?.filter(te=>te?.isTrending)?.length||0)))??[]].slice(0,5),this.gamesForNoAvailable.forEach(te=>te.category="Swap"),this.gameUnavailable=S,this.metadataHelper.setTitleMetaTitleAndMetaDescription(this.routeConfig,this.navigationInstruction,this.gameUnavailable.title,this.gameUnavailable.metaDescription),this.gameNotAvailable=!0;return}this.currentSellGame={id:S.id,icon:S.gameNavigationIcon,name:S.name,isTrending:!1,shortName:S.short
7276Name,currencyProductSymbol:S.currencyProductSymbol,steamAppId:S.steamAppId};const N=q.XH[y[1]?.toLowerCase()]||q.XH.currency;this.currentSellCategory=this.productCategories.find(te=>te.name.toLowerCase()===N.toLowerCase()),this.applyDefaultReceiveSelection(),this.firstTimeTrigger=!1}),this.adminViewSubscription=this.eventAggregator.subscribe("admin-view-updated",d=>{this.viewingAsAdmin=d.bool}),this.footerNavigationSubscription=this.eventAggregator.subscribe(F.sV.FOOTER_NAVIGATION,d=>{const y=this.sellCategories.find(C=>C.name.split(" ").join("-").toLocaleLowerCase()===d.selectedCategory)?.id;this.handleCategorySelected({detail:{id:y}},"sell")}),this.sizeSubscription=this.eventAggregator.subscribe(F.sV.WINDOW_SIZE,d=>{this.width=d.width}),this.receiveTakenOverSubscription=this.eventAggregator.subscribe(F.sV.SWAP_RECEIVE_TAKEN_OVER,()=>{this.receiveSelectionLocked=!0})}buildContent(d){this.whyChooseUsKeys=[new ne.M(`${d}_WCU_FIRST_TITLE`,`${d}_WCU_FIRST_PARAGRAPH`,"/icons/quick.svg","red"),new ne.M(`${d}_WCU_SECOND_TITLE`,`${d}_WCU_SECOND_PARAGRAPH`,"/icons/coins.svg","yellow"),new ne.M(`${d}_WCU_THIRD_TITLE`,`${d}_WCU_THIRD_PARAGRAPH`,"/icons/heart.svg","green"),new ne.M(`${d}_WCU_FOURTH_TITLE`,`${d}_WCU_FOURTH_PARAGRAPH`,"/icons/vault.svg","blue")],this.infoQuadCardData=[new ne.M(`${d}_QC_FIRST_TITLE`,`${d}_QC_FIRST_PARAGRAPH`,`${d}_QC_FIRST_IMAGE`),new ne.M(`${d}_QC_SECOND_TITLE`,`${d}_QC_SECOND_PARAGRAPH`,`${d}_QC_SECOND_IMAGE`),new ne.M(`${d}_QC_THIRD_TITLE`,`${d}_QC_THIRD_PARAGRAPH`,`${d}_QC_THIRD_IMAGE`),new ne.M(`${d}_QC_FOURTH_TITLE`,`${d}_QC_FOURTH_PARAGRAPH`,`${d}_QC_FOURTH_IMAGE`)]}async getFormattedSwapCategory(){const d=await this.websiteService.getRouteOrDefault("Swap"),y=await this.websiteService.getRouteOrDefault("Sell"),C=await this.productCategoryService.getAllForNav("CG");return this.helper.buildSwapCategoryData(C,d,y,(R,S)=>this.getGame(R,S))}async getGame(d,y){let C=d.name.toLowerCase();if(C=await this.websiteService.getRouteOrDefault(C,C.replaceAll(" ","-")),d.name.toLowerCase().includes("sell ")){const N=await this.websiteService.getRouteOrDefault("sell");let te=d.name;d.name.toLowerCase().includes("unique names")?C=N+"/"+await this.websiteService.getRouteOrDefault("Unique Names"):(this.helper.excludeAll(d.name.toLowerCase(),["sell currency","sell skins","sell unique names","sell gift cards"])&&(te+="s"),C=N?`${N}/${this.helper.transformStaticPageRoute(te.toLowerCase(),!0)}`:this.helper.transformStaticPageRoute(te.toLowerCase()))}const R={category:d.name,name:y.name,shortName:y.shortName,keyword:y.keyword,slug:y.slug.map(N=>this.helper.includesSome(d.name?.toLowerCase(),["sell"])?`${C}/${N}`:`/buy/${C}/${N}`),link:!0,imagePath:y.gameNavigationIcon?this.baseAwsEndpoint+y.gameNavigationIcon:"",schemaImagePath:y.schemaImagePath?`${this.baseAwsEndpoint}${y.schemaImagePath}`:"",isTrending:y.isTrending,trendingPosition:y.trendingPosition,show:!0},S=d.gameForNav.filter(N=>N.parentGameId===Number.parseInt(y.id));return R.template=null,R.items=S.length>
72760?await this.getSubGames(S,d):null,R}async getSubGames(d,y){let C=y.name.toLowerCase();if(C=await this.websiteService.getRouteOrDefault(C,C),y.name.toLowerCase().includes("sell ")){let R=y.name;this.helper.excludeAll(y.name.toLowerCase(),["sell currency","sell skins","sell unique names","sell gift cards"])&&(R+="s");const S=await this.websiteService.getRouteOrDefault("sell");C=S?`${S}/${this.helper.transformStaticPageRoute(R.toLowerCase(),!0)}`:this.helper.transformStaticPageRoute(R.toLowerCase())}return d.map(R=>({category:y.name,name:R.name,shortName:R.shortName,slug:R.slug.map(S=>this.helper.includesSome(y.name?.toLowerCase(),["sell"])?`/${C}/${S}`:`/buy/${C}/${S}`),template:null,link:!0,imagePath:R.gameNavigationIcon?this.baseAwsEndpoint+R.gameNavigationIcon:"",schemaImagePath:R.schemaImagePath?`${this.baseAwsEndpoint}${R.schemaImagePath}`:"",isTrending:R.isTrending,trendingPosition:R.trendingPosition,show:!0}))}get pageContentAreaTitle(){let d="";return!this.currentSellCategory&&!this.currentSellGame?d="DEFAULT":this.currentSellCategory&&!this.currentSellGame&&(d=`${this.currentSellCategory.name.toUpperCase().replaceAll(" ","_")}_DEFAULT`),d}checkForSwapPageUrlAndRedirect(d,y){const C=y.fragment||"",R=C.split("/").filter(Boolean);this.hreflangList?.includes(R[0])&&R.shift();const S=R.length===1||this.allowedCategories.includes(R[1]),N=R[0]===this.swapPageRoute&&R.length<=3&&S,te=`/${d}`;N||this.prerenderMetatagTriggered||te===C||(this.prerenderMetatagTriggered=!0,this.helper.addPrerenderMetaTagForRedirect(te),this.router.navigate(te),setTimeout(()=>this.pageLoading=this.contentLoading=this.prerenderMetatagTriggered=!1,3e3))}get isLoading(){return this.pageLoading||this.contentLoading||this.anySectionLoading}get anySectionLoading(){return this.sellSectionLoading||this.buySectionLoading}},r(i.prototype,"pageTitle",[p],Object.getOwnPropertyDescriptor(i.prototype,"pageTitle"),i.prototype),r(i.prototype,"sellCategories",[w],Object.getOwnPropertyDescriptor(i.prototype,"sellCategories"),i.prototype),r(i.prototype,"buyCategories",[u],Object.getOwnPropertyDescriptor(i.prototype,"buyCategories"),i.prototype),r(i.prototype,"mobileCategories",[h],Object.getOwnPropertyDescriptor(i.prototype,"mobileCategories"),i.prototype),r(i.prototype,"currentCategoryMobile",[v],Object.getOwnPropertyDescriptor(i.prototype,"currentCategoryMobile"),i.prototype),r(i.prototype,"swapSEOKey",[n],Object.getOwnPropertyDescriptor(i.prototype,"swapSEOKey"),i.prototype),r(i.prototype,"pageContentAreaTitle",[a],Object.getOwnPropertyDescriptor(i.prototype,"pageContentAreaTitle"),i.prototype),r(i.prototype,"isLoading",[c],Object.getOwnPropertyDescriptor(i.prototype,"isLoading"),i.prototype),r(i.prototype,"anySectionLoading",[o],Object.getOwnPropertyDescriptor(i.prototype,"anySectionLoading"),i.prototype),i))||t)||t)}),"pages/more/unique-names/legacy/unique-names-default/unique-names-default":(function(W,f,e){"use strict";e.r(f),e.d(f,{UniqueNamesDefault:function(){return s}});class s{}}),"pages/more/unique-names/legacy/unique-names-game-content/unique-names-game-content":(function(W,f,e){"use strict";e.r(f),e.d(f,{UniqueNamesGameContent:function(){return j}});var s=e("aurelia-framework"),q=e(10220),be=e("aurelia-event-aggregator"),ye=e(33766),X,ae;let j=(X=(0,s.inject)(q.Ix,be.EventAggregator,ye.TemplateCheckSeparatorValueConverter),X(ae=class{constructor(le,pe,de){this.key=void 0,this.viewingAsAdmin=void 0,this.router=le,this.eventAggregator=pe,this.templateCheckSeparatorValueConverter=de}activate(le,pe,de){this.key=de.config.settings.keyName}attached(){this.handleEventSubscriptions(),this.templateCheckSeparatorValueConverter.toView(this.templateUniqueNames)}detached(){this.routeChangeSuccessSubscription?.dispose(),this.adminViewSubscription?.dispose(),this.pageContentAreaSubscription?.dispose()}handleEventSubscriptions(){this.routeChangeSuccessSubscription=this.eventAggregator.subscribe("router:navigation:success",le=>{this.key=this.router.currentInstruction.config.settings.keyName}),this.adminViewSubscription=this.eventAggregator.subscribe("admin-view-updated",le=>{this.viewingAsAdmin=le.bool})}})||ae)}),"pages/more/unique-names/legacy/unique-names-legacy":(function(W,f,e){"use strict";e.r(f),e.d(f,{UniqueNamesLegacy:function(){return w}});var s=e("aurelia-framework"),q=e(39146),be=e(41455),ye=e(41961),X=e(68019),ae=e(56775),j=e(45246),ge=e("aurelia-event-aggregator"),le=e(31018),pe=e(6506),de=e(17349),ce=e(58846),J=e(79533),K=e(2959),H=e(74737),k=e(17285),ee=e(91861),fe=e(42371),z=e(33092),ne,B,_,T,L,O,G,F,Y,Z,_e;
7276function U(u,h,v,n){v&&Object.defineProperty(u,h,{enumerable:v.enumerable,configurable:v.configurable,writable:v.writable,value:v.initializer?v.initializer.call(n):void 0})}function M(u,h,v,n,a){var c={};return Object.keys(n).forEach(function(o){c[o]=n[o]}),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=v.slice().reverse().reduce(function(o,t){return t(u,h,o)||o},c),a&&c.initializer!==void 0&&(c.value=c.initializer?c.initializer.call(a):void 0,c.initializer=void 0),c.initializer===void 0?(Object.defineProperty(u,h,c),null):c}function p(u,h){throw Error("Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.")}let w=(ne=(0,s.inject)(q.F,be.j,ye.Z,X.ThousandSeparatorValueConverter,ae.CurrencyFormatValueConverter,j.H,ge.EventAggregator,le.Q,pe.Q,de.b,J.T,K.j,s.TaskQueue,H.f,ee.LanguageRouteValueConverter,fe.Mx,z.wK),B=(0,s.computedFrom)("game","selectedGame"),_=(0,s.computedFrom)("additionalInformation","additionalInformationTextArea.isFocused"),T=(0,s.computedFrom)("desiredName","desiredNameTextArea.isFocused"),L=(0,s.computedFrom)("budgetElement.isFocused","quantity"),ne(O=(G=class{constructor(h,v,n,a,c,o,t,i,r,m,g,d,y,C,R,S,N){U(this,"quantity",F,this),U(this,"quantityInt",Y,this),U(this,"desiredName",Z,this),U(this,"additionalInformation",_e,this),this.tempQuantity=void 0,this.games=void 0,this.cart=void 0,this.selectedGame=void 0,this.gameSecondTitle=`UNIQUE_NAMES${this.pageTitle}_PAGE_SECOND_TITLE`,this.gameTitles=[`UNIQUE_NAMES${this.pageTitle}_PAGE_SECOND_TITLE`,`UNIQUE_NAMES${this.pageTitle}_PAGE_TITLE`],this.disabledUniqueNamesButton=!0,this.customerPortalPage="",this.pageLoading=!0,this.handleFieldChange=async()=>{for(const te of this.dynamicFormFields)te.type!==6||!te.listOfValue?.children?.every(Ee=>Ee.filteredByListOfValueId)||await this.updateFieldChildren(te)},this.checkIfAllFieldsValid=()=>this.disabledUniqueNamesButton=!(this.selectedGame&&(this.dynamicFormFields?.every(te=>te.value)||!this.dynamicFormFields)&&this.desiredName&&this.quantity&&this.additionalInformation),this.productCategoryService=h,this.websiteService=v,this.pageContentAreaService=n,this.thousandSeparatorValueConverter=a,this.currencyFormatValueConverter=c,this.helper=o,this.eventAggregator=t,this.sessionService=i,this.orderService=r,this.productService=m,this.gameDynamicFormService=g,this.tooltipArrowStyling=d,this.toastService=C,this.taskQueue=y,this.languageRouteValueConverter=R,this.metadataHelper=S,this.gameService=N,this.helper.getResolutions(this),this.minBudget=this.sliderMinimum=1}async activate(h,v,n){this.routeConfig=v,this.navigationInstruction=n,this.helper.addLoadingComponent("unique-names",this)}async attached(){try{this.handleEventSubscriptions();let h;if([h,this.pageConfig]=await Promise.all([this.productCategoryService.getNavCategory("unique names","CG"),this.websiteService.getPage("Unique Names")]),this.games=h.gameForNav,this.routeSlug=globalThis.location.pathname.split("/").pop(),this.uniqueNamesPageRoute=this.pageConfig?.routeName??"unique-names",this.hrefLang=this.helper.hrefLang&&!["en","en-us"].includes(this.helper.hrefLang.toLowerCase())?`${this.helper.hrefLang}/`:"",this.uniqueNamesPageRouteWithLang=await this.languageRouteValueConverter.toView(this.uniqueNamesPageRoute),this.routeSlug!==this.uniqueNamesPageRouteWithLang&&this.routeConfig.navModel.setTitle(""),!this.selectedGame&&this.routeSlug!==this.uniqueNamesPageRouteWithLang){if(this.gamesForNoAvailable=[...this.games?.filter(v=>
7276v?.isTrending)?.sort((v,n)=>v?.name?.localeCompare(n?.name))?.slice(0,5)??[],...this.games?.filter(v=>!v?.isTrending)?.sort((v,n)=>v?.name?.localeCompare(n?.name))?.slice(0,Math.max(0,5-(this.games?.filter(v=>v?.isTrending)?.length||0)))??[]].slice(0,5),this.gameUnavailable=await this.gameService.getGameForNavBySlug(this.routeSlug,"CG",h.id),!this.gameUnavailable){this.router.navigateToRoute("404");return}this.metadataHelper.setTitleMetaTitleAndMetaDescription(this.routeConfig,this.navigationInstruction,this.gameUnavailable.title,this.gameUnavailable.metaDescription),this.pageLoading=!1,this.gameNotAvailable=!0;return}if(this.selectedGame&&(this.selectedGame?.slug[0]!==this.routeSlug||this.router.currentInstruction.fragment!==`/${this.hrefLang}buy/${this.uniqueNamesPageRouteWithLang}/${this.selectedGame?.slug[0]}`)){const v=`/${this.hrefLang}buy/${this.uniqueNamesPageRouteWithLang}/${this.selectedGame?.slug[0]}`;this.router.baseUrl=v,this.helper.addPrerenderMetaTagForRedirect(v),this.router.navigate(v)}this.pageContentArea=await this.pageContentAreaService.getByPageId(this.pageConfig?.id),this.titleKeyContent=this.pageContentArea.find(v=>v.key===`UNIQUE_NAMES${this.pageTitle}_TITLE`),this.handleAddingPlaceholdersForTextAreas(),this.customerPortalPage=await this.websiteService.getRouteOrDefault("Customer Portal"),this.user=await this.sessionService.getProfile(),this.cart=await this.sessionService.getCart(null,!0)}catch(h){console.error("Error in attached:",h)}finally{this.helper.validateLoading("unique-names")}}detached(){this.routeChangeSubscription?.dispose(),this.fieldUpdated?.dispose(),this.adminViewSubscription?.dispose()}handleEventSubscriptions(){this.routeChangeSubscription=this.eventAggregator.subscribe("router:navigation:success",async h=>{if(this.deleteVariables(),h.instruction?.params?.childRoute){if(this.selectedGame=this.games.find(n=>n.slug.includes(h.instruction?.params?.childRoute)),!this.selectedGame)return this.router.navigateToRoute("404");const v=await this.gameService.getGameForNavBySlug(this.selectedGame.slug?.[0],"CG",this.navCategory?.id);this.metadataHelper.setTitleMetaTitleAndMetaDescription(this.routeConfig,this.navigationInstruction,v?.title,v?.metaDescription),this.dynamicFormFields=await this.gameDynamicFormService.getByProductCategoryAndGameId(this.navCategory.id,this.selectedGame.id),this.dynamicFormFields?.forEach((n,a)=>{n.type!==6||!n.listOfValue||(a!==0&&n.listOfValue?.children?.every(c=>c.filteredByListOfValueId)&&(n.disabled=!0),n.listOfValue.copiedChildren=n.listOfValue.children)}),this.routeConfig.navModel.setTitle(""),this.pageSecondTitle=await this.pageContentAreaService.getByKey(`UNIQUE_NAMES${this.pageTitle}_PAGE_SECOND_TITLE`),this.gameSecondTitle=`UNIQUE_NAMES${this.pageTitle}_${this.pageSecondTitle?.markup?"PAGE_SECOND_TITLE":"PAGE_TITLE"}`,this.gameTitles=[`UNIQUE_NAMES${this.pageTitle}_PAGE_SECOND_TITLE`,`UNIQUE_NAMES${this.pageTitle}_PAGE_TITLE`]}else this.clearSearch();this.helper.validateLoading("unique-names")}),this.fieldUpdated=this.eventAggregator.subscribe("field-updated",()=>{this.checkIfAllFieldsValid()}),this.adminViewSubscription=this.eventAggregator.subscribe("admin-view-updated",h=>{this.viewingAsAdmin=h.bool}),this.sizeChanged=this.eventAggregator.subscribe("size-changed",h=>{this.width=h.width}),this.pageLoadedSubscriber=this.eventAggregator.subscribe("page-loaded",()=>{this.pageLoading=!1})}handleAddingPlaceholdersForTextAreas(){setTimeout(()=>{const h=this.additionalInformationTextArea?.querySelector("textarea");h&&(h.placeholder="Eg. I would like if you did...")},10)}get pageTitle(){let h="";return this.selectedGame&&(h+="_"+this.selectedGame.shortName),this.titleKeyContent=this.pageContentArea?.find(v=>v.key===`UNIQUE_NAMES${h}_TITLE`),h}deleteVariables(){this.quantity=this.tempQuantity=this.desiredName=this.additionalInformation=null}async gameChanged(h){this.selectedGame=h,this.deleteVariables(),this.pageLoading=!0,this.router.navigate(`/${this.uniqueNamesPageRouteWithLang}/${this.selectedGame.slug[0]}`)}handleGameSearch(){Object.preventExtensions(this.games);
7276for(const h of this.games)h.show=[h.name,h.shortName,h.keyword].some(v=>v?.toLowerCase()?.includes(this.gameSearch.toLowerCase()));this.noResultGameSearch=!this.games.some(h=>h.show)}clearSearch(){this.gameSearch=null}async handleGameDeselection(){this.selectedGame=null,this.deleteVariables();const h=await this.languageRouteValueConverter.toView("home",!0);this.router.currentInstruction.fragment?this.router.navigate(`/${this.uniqueNamesPageRouteWithLang}`):this.router.navigateToRoute(h)}async blurNumberQuantity(){const h=this.uniqueNamesContainer.querySelector(".budget-arrows > div"),v=document.querySelector(".quantity-green-check");h.style.visibility=h.style.opacity=v.style.visibility=v.style.opacity=null,this.isBlurEvent=!0,this.tempQuantity=this.quantityInt,this.quantity&&(this.quantity=await this.currencyFormatValueConverter.toView(Math.max(this.quantity,this.minBudget))),this.hasFocused=!1}focusTextQuantity(){const h=this.uniqueNamesContainer.querySelector(".budget-arrows > div"),v=document.querySelector(".quantity-green-check");h.style.visibility="visible",h.style.opacity=1,v.style.visibility="hidden",v.style.opacity=0,this.tempQuantity&&(this.tempQuantity>=this.minBudget?this.quantity=this.tempQuantity:(this.tempQuantity=this.minBudget,this.quantity=this.tempQuantity)),this.hasFocused=!0}focusArrowNumber(){this.hasFocused||(this.hasFocused=!0,this.budgetElement.focus())}saveQuantity(){this.tempQuantity=this.quantityInt}quantityChanged(){this.quantityInt=this.helper.convertNumberWithoutComma(this.quantity),this.checkIfAllFieldsValid()}async quantityIntChanged(){this.quantity=this.helper.convertNumberWithoutComma(this.quantityInt)}desiredNameChanged(){this.checkIfAllFieldsValid()}additionalInformationChanged(){this.checkIfAllFieldsValid(),this.helper.handleTextAreaAutoGrowth(this.additionalInformationTextArea,null,"additional-information",this.uniqueNamesMainContainer)}async updateFieldChildren(h){const v=this.dynamicFormFields.indexOf(h),n=this.dynamicFormFields[v-1];n&&(h.disabled=!n.value,n.value||(h.value=void 0),h.listOfValue.children=h.listOfValue.copiedChildren.filter(a=>a.filteredByListOfValueId===n.value?.id))}async handleSelectedFields(){this.uniqueNames=[],this.uniqueNames.push({name:"Game",value:this.selectedGame.name}),this.dynamicFormFields?.length&&this.dynamicFormFields?.map(h=>{[1,2,3,5].includes(h.type)&&h?.value?this.uniqueNames.push({name:h.name,value:h.value}):h?.value&&this.uniqueNames.push({name:h.name,value:h.value.display})}).filter(h=>h!==void 0),this.desiredName&&this.uniqueNames?.push({name:"Desired Name",value:this.desiredName}),this.quantity&&this.uniqueNames?.push({name:"Budget",value:this.quantity}),this.additionalInformation&&this.uniqueNames?.push({name:"Additional Information",value:this.additionalInformation}),await this.handleTicketCreation()}async handleTicketCreation(){const h=await this.sessionService.getCart();if(h?.some(n=>n.serviceFullName?.includes(`${this.selectedGame.name} | Dynamic Unique Names`))){this.toastService.showToast(k.Ck.INFO,`Unique Name ${this.selectedGame.name} is already on the cart.`);return}if(!await this.helper.handleAccountOrderValidation(h,this.orderService,k.g1.UniqueNames,!1)){if(this.uniqueNames?.length<this.dynamicFormFields?.length){this.toastService.showToast(k.Ck.INFO,"Please complete all the fields on the form.");return}if(!this.user){this.toastService.showToast(k.Ck.INFO,"Please log in to complete your unique name purchase offer."),this.router.navigate(`/sign-in?redirect_url=${globalThis.location.pathname}`);return}if(!this.triggeredUniqueNames){this.triggeredUniqueNames=!0;const n=await this.buildOrder(),a=this.validateOrderDataInCart(n);if(a){this.toastService.showToast(k.Ck.ERROR,a),this.triggeredUniqueNames=!1;return}const c=await this.orderService.createDynamicServiceOrUniqueNamesOrder(n);try{const o=await this.sessionService.getCart(null,!0);this.eventAggregator.publish("cart-updated",{cart:o}),this.redirectToOrderChat(c),this.taskQueue.queueMicroTask(()=>{this.triggeredUniqueNames=!1})}catch(o){console.log(o)}}}}async buildOrder(){this.products=await this.productService.getProductsWithFilter("Dynamic Unique Names");const h=this.products[0];return{websiteShortCode:(0,ce.te)(),totalPrice:this.totalPrice,referralLinkUrl:this.sessionService.getReferralLink(),referrerLinkUrl:this.sessionService.getReferrerLink(),attachments:[],accountData:JSON.stringify(this.uniqueNames),products:[{productId:h.id,quantity:1,price:0,serviceFullName:`${this.selectedGame.name} | ${h.name}`,dynamicList:JSON.stringify(this.uniqueNames),imagePath:this.selectedGame.sellIcon}],isUniqueNames:!0}}async configureRouter(h,v){h.options.pushState=!0,this.router=v,this.navCategory=await this.productCategoryService.getNavCategory("unique names","CG");const n=this.navCategory?.gameForNav;h.map([{route:"",name:"unique-names",moduleId:"pages/more/unique-names/legacy/unique-names-default/unique-names-default",settings:{metaDescription:"Buy Game Unique Names from the #1 Game Unique Names Buyer on the market. Over 100,000+ Game Unique Names successfully completed!"}},...n.map(a=>({route:a.slug,name:a.name,moduleId:"pages/more/unique-names/legacy/unique-names-game-content/unique-names-game-content",title:a.title,settings:{metaDescription:a.metaDescription,keyName:`UNIQUE_NAMES_${a.short
7276Name}`},navigationStrategy:()=>{const c=window.location.pathname.split("/").filter(Boolean),o=c.at(-1);if(o&&o!==a.slug[0]&&a.slug.includes(o)){const t=`/${[...c.slice(0,-1),a.slug[0]].join("/")}`;this.helper.addPrerenderMetaTagForRedirect(t),this.router.navigate(t,{replace:!0})}}}))]),h.mapUnknownRoutes(()=>{this.router.navigateToRoute("404")})}redirectToOrderChat(h){const v=h.products.some(a=>!a.isSell),n=h.products.some(a=>a.isSell);if(v&&n){this.router.navigate(`/${this.customerPortalPage}/swap/chat/${h.id}`);return}this.router.navigate(`/${this.customerPortalPage}/purchased/chat/${h.id}`)}validateOrderDataInCart(h){return this.helper.validateWithUserCart(h,this.cart)}getSuccess(h){return this[h]&&!this[`${h}TextArea`]?.isFocused}get additionalInformationSuccess(){return this.getSuccess("additionalInformation")}get desiredNameSuccess(){return this.getSuccess("desiredName")}get budgetElementSuccess(){return this.quantity&&!this.budgetElement?.isFocused}},F=M(G.prototype,"quantity",[s.bindable,s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Y=M(G.prototype,"quantityInt",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Z=M(G.prototype,"desiredName",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_e=M(G.prototype,"additionalInformation",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M(G.prototype,"pageTitle",[B],Object.getOwnPropertyDescriptor(G.prototype,"pageTitle"),G.prototype),M(G.prototype,"additionalInformationSuccess",[_],Object.getOwnPropertyDescriptor(G.prototype,"additionalInformationSuccess"),G.prototype),M(G.prototype,"desiredNameSuccess",[T],Object.getOwnPropertyDescriptor(G.prototype,"desiredNameSuccess"),G.prototype),M(G.prototype,"budgetElementSuccess",[L],Object.getOwnPropertyDescriptor(G.prototype,"budgetElementSuccess"),G.prototype),G))||O)}),"pages/more/unique-names/v2/unique-names-v2":(function(W,f,e){"use strict";e.r(f),e.d(f,{UniqueNames:function(){return r}});var s=e("aurelia-framework"),q=e(39146),be=e(41455),ye=e(41961),X=e(68019),ae=e(56775),j=e(45246),ge=e("aurelia-event-aggregator"),le=e(31018),pe=e(6506),de=e(17349),ce=e(58846),J=e(79533),K=e(74737),H=e(17285),k=e(91861),ee=e(91e3),fe=e(45843),z=e(10220),ne=e(42371),B=e(33092),_=e(9688),T,L,O,G,F,Y,Z,_e,U,M,p,w,u,h,v,n,a,
7276c;function o(m,g,d,y){d&&Object.defineProperty(m,g,{enumerable:d.enumerable,configurable:d.configurable,writable:d.writable,value:d.initializer?d.initializer.call(y):void 0})}function t(m,g,d,y,C){var R={};return Object.keys(y).forEach(function(S){R[S]=y[S]}),R.enumerable=!!R.enumerable,R.configurable=!!R.configurable,("value"in R||R.initializer)&&(R.writable=!0),R=d.slice().reverse().reduce(function(S,N){return N(m,g,S)||S},R),C&&R.initializer!==void 0&&(R.value=R.initializer?R.initializer.call(C):void 0,R.initializer=void 0),R.initializer===void 0?(Object.defineProperty(m,g,R),null):R}function i(m,g){throw Error("Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.")}let r=(T=(0,s.inject)(q.F,be.j,ye.Z,X.ThousandSeparatorValueConverter,ae.CurrencyFormatValueConverter,j.H,ge.EventAggregator,le.Q,pe.Q,de.b,J.T,s.TaskQueue,K.f,k.LanguageRouteValueConverter,ee.LanguageKeyFormatterValueConverter,fe.SiteStringsValueConverter,z.Ix,ne.Mx,B.wK,ne.zA),L=(0,s.computedFrom)("dynamicFormFields"),O=(0,s.computedFrom)("router.currentInstruction"),G=(0,s.computedFrom)("game","selectedGame"),F=(0,s.computedFrom)("pageTitle"),Y=(0,s.c
7276omputedFrom)("additionalInformation","additionalInformationTextArea.isFocused"),Z=(0,s.computedFrom)("desiredName","desiredNameInputText.isFocused"),_e=(0,s.computedFrom)("width"),U=(0,s.computedFrom)("budgetElement.isFocused","quantity"),M=(0,s.computedFrom)("quantity","budgetIsFocused","pageLoading","_budgetLoading"),p=(0,s.computedFrom)("additionalInformation","additionalInformationIsFocused","pageLoading","_additionalInformationLoading"),w=(0,s.computedFrom)("desiredName","desiredNameIsFocused","pageLoading","_desiredNameLoading"),T(u=(h=class{constructor(g,d,y,C,R,S,N,te,Ee,D,I,A,ue,se,me,P,x,$,Pe,Se){o(this,"quantity",v,this),o(this,"quantityInt",n,this),o(this,"desiredName",a,this),o(this,"additionalInformation",c,this),this.gameNotAvailable=!1,this.tempQuantity=void 0,this.games=void 0,this.cart=void 0,this.selectedGame=void 0,this.gameSecondTitle=`UNIQUE_NAMES${this.pageTitle}_PAGE_SECOND_TITLE`,this.gameTitles=[`UNIQUE_NAMES${this.pageTitle}_PAGE_SECOND_TITLE`,`UNIQUE_NAMES${this.pageTitle}_PAGE_TITLE`],this.disabledUniqueNamesButton=!0,this.customerPortalPage="",this.pageLoading=!0,this.fieldType=H.PU,this.desiredNameIsFocused=!1,this._desiredNameLoading=!1,this.budgetIsFocused=!1,this._budgetLoading=!1,this.additionalInformationIsFocused=!1,this._additionalInformationLoading=!1,this.cgFieldRefs={},this.gamesFetched=!1,this.currencyPrefix="$",this.fetchingGames=!0,this.handleFieldChange=async()=>{for(const l of this.dynamicFormFields)l.type!==H.PU.Select||!l.listOfValue?.children?.every(E=>E.filteredByListOfValueId)||await this.updateFieldChildren(l)},this.compareOrderProducts=(l,E)=>l.productId===E.productId&&this.helper.propertiesEqual(l.serviceFullName,E.serviceFullName),this.sessionService=te,this.toastService=ue,this.helper=S,this.productCategoryService=g,this.websiteService=d,this.pageContentAreaService=y,this.thousandSeparatorValueConverter=C,this.currencyFormatValueConverter=R,this.eventAggregator=N,this.orderService=Ee,this.productService=D,this.gameDynamicFormService=I,this.taskQueue=A,this.languageRouteValueConverter=se,this.languageKeyFormatter=me,this.siteStrings=P,this.metadataHelper=$,this.gameService=Pe,this.authHandler=Se,this.helper.getResolutions(this),this.router=x,this.minBudget=this.sliderMinimum=1,this.baseAwsEndpoint=(0,ce.Ty)("games")}get getMaxWidthFormContainer(){const g=this.dynamicFormFields?.length??0;return g>=7?"form-container-max-w-7":g>=5?"form-container-max-w-6":"form-container-max-w-5"}get routeSlug(){return globalThis.location.pathname.split("/").pop()||""}async activate(g,d,y){this.helper.addLoadingComponent("unique-names",this),this.handleEventSubscriptions(),this.routeConfig=d,this.navigationInstruction=y,this.taskQueue.queueMicroTask(async()=>{try{const[C,R]=await Promise.all([this.productCategoryService.getNavCategory("unique names","CG"),this.websiteService.getPage("Unique Names")]);this.navCategory=C,this.uniqueNamesCategory=C,this.games=C.gameForNav,this.gamesFetched=!0,this.selectedGame=this.games?.find(N=>N?.slug?.includes(this.routeSlug));const S=this.selectedGame?await this.gameService.getGameForNavBySlug(this.selectedGame.slug?.[0],"CG",this.navCategory?.id):null;if(this.metadataHelper.setTitleMetaTitleAndMetaDescription(this.routeConfig,this.navigationInstruction,S?.title,S?.metaDescription),this.pageConfig=R,this.uniqueNamesPageRoute=this.pageConfig?.routeName??"unique-names",this.uniqueNamesPageRouteWithLang=await this.languageRouteValueConverter.toView(this.uniqueNamesPageRoute),this.hrefLang=this.helper.hrefLang&&!["en","en-us"].includes(this.helper.hrefLang.toLowerCase())?`${this.helper.hrefLang}/`:"",this.routeSlug===this.uniqueNamesPageRouteWithLang&&this.routeConfig?.navModel.setTitle(""),!this.selectedGame&&this.routeSlug&&this.routeSlug!==this.uniqueNamesPageRouteWithLang){if(this.gamesForNoAvailable=[...this.games?.filter(N=>N?.isTrending)?.sort((N,te)=>N?.name?.localeCompare(te?.name))?.slice(0,5)??[],...this.games?.filter(N=>!N?.isTrending)?.sort((N,te)=>N?.name?.localeCompare(te?.name))?.slice(0,Math.max(0,5-(this.games?.filter(N=>N?.isTrending)?.length||0)))??[]].slice(0,5),this.gameUnavailable=await this.gameService.getGameForNavBySlug(this.routeSlug,"CG",C.id),!this.gameUnavailable){this.router.navigateToRoute("404");return}this.metadataHelper.setTitleMetaTitleAndMetaDescription(this.routeConfig,this.navigationInstruction,this.gameUnavailable.title,this.gameUnavailable.metaDescription),this.pageLoading=!1,this.gameNotAvailable=!0;return}if(this.selectedGame&&(this.selectedGame?.slug[0]!==this.routeSlug||this.router.currentInstruction.fragment!==`/${this.hrefLang}buy/${this.uniqueNamesPageRouteWithLang}/${this.selectedGame?.slug[0]}`)){const N=`/${this.hrefLang}buy/${this.uniqueNamesPageRouteWithLang}/${this.selectedGame?.slug[0]}`;this.router.baseUrl=N,this.helper.addPrerenderMetaTagForRedirect(N),this.router.navigate(N)}this.pageContentArea=await this.pageContentAreaService.getByPageId(this.pageConfig?.id),this.titleKeyContent=this.pageContentArea.find(N=>N.key===`UNIQUE_NAMES${this.pageTitle}_TITLE`),this.selectedGame&&(this.pageSecondTitle=await this.pageContentAreaService.getByKey(`UNIQUE_NAMES${this.pageTitle}_PAGE_SECOND_TITLE`),this.gameSecondTitle=`UNIQUE_NAMES${this.pageTitle}_${this.pageSecondTitle?.markup?"PAGE_SECOND_TITLE":"PAGE_TITLE"}`,this.gameTitles=[`UNIQUE_NAMES${this.pageTitle}_PAGE_SECOND_TITLE`,`UNIQUE_NAMES${this.pageTitle}_PAGE_TITLE`],await this.getDynamicFields()),this.setGameSelectorValue(),this.handleAddingPlaceholdersForTextAreas(),this.pageLoading=!1}catch(C){console.error("Error loading initial data:",C),this.fetchingGames=!1,this.pageLoading=!1}})}async getDynamicFields(){!this.navCategory?.id||!this.selectedGame?.id||(this.dynamicFormFields=await this.gameDynamicFormService.getByProductCategoryAndGameId(this.navCategory.id,this.selectedGame.id),this.dynamicFormFields?.forEach((g,d)=>{g.type!==6||!g.listOfValue||(d!==0&&g.listOfValue?.children?.every(y=>y.filteredByListOfValueId)&&(g.disabled=!0),g.listOfValue.copiedChildren=g.listOfValue.children)}))}async attached(){try{let g;[this.customerPortalPage,this.user,this.cart,g]=await Promise.all([this.websiteService.getRouteOrDefault("Customer Portal"),this.sessionService.getProfile(),this.sessionService.getCart(!0),this.sessionService.getCurrency()]),this.currencyPrefix=this.currencyFormatValueConverter.getCurrencyPrefix(g),this.games&&this.routeSlug&&this.setGameSelectorValue()}catch(g){console.error("Error in attached:",g)}finally{this.helper.validateLoading("unique-names")}}setGameSelectorValue(){this.gameSelectorValue=this.games?.find(g=>g?.slug?.includes(this.routeSlug))}detached(){this.sessionService.destroyUniqueNamesFormDesiredName(),this.sessionService.destroyUniqueNamesFormBudget(),this.sessionService.destroyUniqueNamesAdditionalInformation(),this.routeChangeSubscription?.dispose(),this.fieldUpdated?.dispose(),this.adminViewSubscription?.dispose(),this.helper.dis
7276poseAllSubscribers(this)}waitForGames(){return new Promise(g=>{this.fetchingGames=!0;const d=()=>{this.games?.length?(g(),this.fetchingGames=!1):setTimeout(d,50)};d()})}handleEventSubscriptions(){const g={[_.sV.FIELD_UPDATED]:()=>this.checkIfAllFieldsValid(),"admin-view-updated":d=>{this.viewingAsAdmin=d.bool},"size-changed":d=>{this.width=d.width},"page-loaded":()=>{this.pageLoading=!1},"currency-updated":d=>{this.currencyPrefix=this.currencyFormatValueConverter.getCurrencyPrefix(d.currency)},[_.sV.CREATING_LOCAL_ORDER]:()=>{this.triggeredUniqueNames=!0,this.desiredName=this.sessionService.getUniqueNamesFormDesiredName(),this.quantity=this.sessionService.getUniqueNamesFormBudget(),this.additionalInformation=this.sessionService.getUniqueNamesAdditionalInformation()},"router:navigation:complete":async d=>{try{if(this.selectedGame=this.games?.find(y=>y?.slug?.includes(d.instruction?.params?.childRoute)),this.selectedGame){const y=await this.gameService.getGameForNavBySlug(this.selectedGame.slug?.[0],"CG",this.navCategory?.id);this.metadataHelper.setTitleMetaTitleAndMetaDescription(this.routeConfig,this.navigationInstruction,y?.title,y?.metaDescription)}this.setGameSelectorValue(),this.deleteVariables(),this.dynamicFormFields=[],await this.getDynamicFields()}catch(y){console.error("Error in route change:",y)}finally{this.helper.validateLoading("unique-names")}}};this.helper.subscribeEvents(this,g),this.routeChangeSubscription=this.eventAggregator.subscribe(z.ys.Complete,async d=>{try{if(this.deleteVariables(),d.instruction?.params?.childRoute){this.games||await this.waitForGames();const y=this.games?.find(C=>C.slug.includes(d.instruction?.params?.childRoute));if(!y)return this.router.navigateToRoute("404");if(y){const C=await this.gameService.getGameForNavBySlug(y.slug?.[0],"CG",this.navCategory?.id);this.metadataHelper.setTitleMetaTitleAndMetaDescription(this.routeConfig,this.navigationInstruction,C?.title,C?.metaDescription)}this.pageSecondTitle=await this.pageContentAreaService.getByKey(`UNIQUE_NAMES${this.pageTitle}_PAGE_SECOND_TITLE`),this.gameSecondTitle=this.pageSecondTitle?.markup?`UNIQUE_NAMES${this.pageTitle}_PAGE_SECOND_TITLE`:`UNIQUE_NAMES${this.pageTitle}_PAGE_TITLE`,this.gameTitles=[`UNIQUE_NAMES${this.pageTitle}_PAGE_SECOND_TITLE`,`UNIQUE_NAMES${this.pageTitle}_PAGE_TITLE`]}}catch(y){console.error("Error in route change:",y)}finally{this.helper.validateLoading("unique-names")}})}handleAddingPlaceholdersForTextAreas(){setTimeout(()=>{const g=this.siteStrings.toView(this.languageKeyFormatter.toView("CG_ADDITIONAL_INFO_EG")),d=this.additionalInformationTextArea?.querySelector("textarea");d&&(d.placeholder=g)},10)}get pageTitle(){let g="";return this.selectedGame&&(g+="_"+this.selectedGame.shortName),this.titleKeyContent=this.pageContentArea?.find(d=>d.key===`UNIQUE_NAMES${g}_TITLE`),g}get seoKey(){return"UNIQUE_NAMES"+this.pageTitle}deleteVariables(){this.quantity=this.tempQuantity=this.desiredName=this.additionalInformation=null}async gameChanged(g){try{this.selectedGame=g,this.gameSelectorValue=g,this.deleteVariables(),this.pageLoading=!0,this.selectedGame&&this.navCategory&&(this.dynamicFormFields=await this.gameDynamicFormService.getByProductCategoryAndGameId(this.navCategory.id,this.selectedGame.id),this.dynamicFormFields?.forEach((d,y)=>{d.type!==6||!d.listOfValue||(y!==0&&d.listOfValue?.children?.every(C=>C.filteredByListOfValueId)&&(d.disabled=!0),d.listOfValue.copiedChildren=d.listOfValue.children)})),this.router.navigate(`/${this.hrefLang}buy/${this.uniqueNamesPageRouteWithLang}/${this.selectedGame?.slug[0]}`)}catch(d){console.error("Error changing game:",d)}}async blurNumberQuantity(){const g=this.uniqueNamesContainer?.querySelector(".budget-arrows > div"),d=document.querySelector(".quantity-green-check");g&&(g.style.visibility=g.style.opacity=null),d&&(d.style.visibility=d.style.opacity=null),this.isBlurEvent=!0,this.tempQuantity=this.quantityInt,this.quantity&&(this.quantity=await this.currencyFormatValueConverter.toView(Math.max(this.quantity,this.minBudget))),this.hasFocused=!1}focusTextQuantity(){const g=this.uniqueNamesContainer?.querySelector(".budget-arrows > div"),d=document.querySelector(".quantity-green-check");
7276g&&(g.style.visibility="visible",g.style.opacity=1),d&&(d.style.visibility="hidden",d.style.opacity=0),this.tempQuantity&&(this.tempQuantity>=this.minBudget?this.quantity=this.tempQuantity:(this.tempQuantity=this.minBudget,this.quantity=this.tempQuantity)),this.hasFocused=!0}focusArrowNumber(){this.hasFocused||(this.hasFocused=!0,this.budgetElement.focus())}saveQuantity(){this.tempQuantity=this.quantityInt,this.checkIfAllFieldsValid()}quantityChanged(){const g=this.helper.convertNumberWithoutComma(this.quantity);this.quantityInt=Number.isNaN(g)?this.minBudget:g,this.checkIfAllFieldsValid()}saveAndUpdateQuantity(){this.saveQuantity(),this.quantityChanged()}async quantityIntChanged(){this.quantity=this.helper.convertNumberWithoutComma(this.quantityInt)}quantitySelectorChanged(g){this.quantityInt=g.detail.value}desiredNameChanged(){this.checkIfAllFieldsValid()}additionalInformationChanged(){this.checkIfAllFieldsValid(),this.helper.handleTextAreaAutoGrowth(this.additionalInformationTextArea,null,"additional-information",this.uniqueNamesMainContainer)}async updateFieldChildren(g){const d=this.dynamicFormFields.indexOf(g),y=this.dynamicFormFields[d-1];y&&(g.disabled=!y.value,y.value||(g.value=void 0),g.listOfValue.children=g.listOfValue.copiedChildren.filter(C=>C.filteredByListOfValueId===y.value?.id))}async handleSelectedFields(g){this.triggeredUniqueNames||(g&&(g.preventDefault(),g.stopPropagation()),this.uniqueNames=[],this.uniqueNames.push({name:"Game",value:this.selectedGame.name}),this.dynamicFormFields?.length&&this.dynamicFormFields?.map(d=>{[H.PU.String,H.PU.TextArea,H.PU.Number,H.PU.Range].includes(d.type)&&d?.value?this.uniqueNames.push({name:d.name,value:d.value}):d?.value&&this.uniqueNames.push({name:d.name,value:d.value.display})}).filter(d=>d!==void 0),this.desiredName&&this.uniqueNames?.push({name:"Desired Name",value:this.desiredName}),this.quantity&&this.uniqueNames?.push({name:"Budget",value:this.quantity}),this.additionalInformation&&this.uniqueNames?.push({name:"Additional Information",value:this.additionalInformation}),await this.handleTicketCreation())}async handleTicketCreation(){try{const g=await this.sessionService.getCart();if(g?.some(y=>y.serviceFullName?.includes(`${this.selectedGame.name} | Dynamic Unique Names`))){this.toastService.showToast(H.Ck.INFO,`Unique Name ${this.selectedGame.name} is already on the cart.`);return}if(await this.helper.handleAccountOrderValidation(g,this.orderService,H.g1.UniqueNames,!1))return;if(this.uniqueNames?.length<this.dynamicFormFields?.length){this.toastService.showToast(H.Ck.INFO,"Please complete all the fields on the form.");return}if(!this.user){await this.handleUserNotLoggedIn("Please log in to complete your unique name purchase offer.");return}if(!this.triggeredUniqueNames){this.triggeredUniqueNames=!0;const y=await this.buildOrder(),C=ne.dX.validateWithUserCart(y,this.cart,!1);if(C){this.toastService.showToast(H.Ck.ERROR,C),this.triggeredUniqueNames=!1;return}const R=await this.orderService.createDynamicServiceOrUniqueNamesOrder(y),S=await this.sessionService.getCart(!0);this.eventAggregator.publish("cart-updated",{cart:S}),this.redirectToOrderChat(R),this.taskQueue.queueMicroTask(()=>{this.triggeredUniqueNames=!1})}}catch(g){console.error("Error in handleTicketCreation:",g),this.toastService.showToast(H.Ck.ERROR,"An error occurred while processing your request. Please try again."),this.triggeredUniqueNames=!1}}async buildOrder(){this.products=await this.productService.getProductsWithFilter("Dynamic Unique Names");const g=this.products[0];return{websiteShortCode:(0,ce.te)(),totalPrice:this.totalPrice,referralLinkUrl:this.sessionService.getReferralLink(),referrerLinkUrl:this.sessionService.getReferrerLink(),attachments:[],accountData:JSON.stringify(this.uniqueNames),products:[{productId:g.id,quantity:1,price:0,serviceFullName:`${this.selectedGame.name} | Buy | ${g.name}`,dynamicList:JSON.stringify(this.uniqueNames),imagePath:this.selectedGame.sellIcon,productCategoryId:this.navCategory.id,isSell:!1}],isUniqueNames:!0}}checkIfAllFieldsValid(){const g=!!this.selectedGame,d=this.dynamicFormFields?.every(C=>C.value)||!this.dynamicFormFields,y=!!(this.desiredName&&this.quantity&&this.additionalInformation);this.disabledUniqueNamesButton=!(g&&d&&y)}redirectToOrderChat(g){const d=g.products.some(C=>!C.isSell),y=g.products.some(C=>C.isSell);if(d&&y){this.router.navigate(`/${this.customerPortalPage}/swap/chat/${g.id}`);return}this.router.navigate(`/${this.customerPortalPage}/purchased/chat/${g.id}`)}getSuccess(g){return this[g]&&!this[`${g}TextArea`]?.isFocused}
7276get additionalInformationSuccess(){return this.getSuccess("additionalInformation")}get desiredNameSuccess(){return this.getSuccess("desiredName")}get isResponsive(){return this.width<=this.desktop}get budgetElementSuccess(){return this.quantity&&!this.budgetElement?.isFocused}onBudgetFocus(){this.budgetIsFocused=!0}async onBudgetBlur(){this.budgetIsFocused=!1,this.quantity&&await this.validateFieldBudget()}async validateFieldBudget(){this._budgetLoading=!0,await new Promise(g=>setTimeout(g,1e3)),this._budgetLoading=!1}get budgetState(){return this.budgetIsFocused?"normal":this.pageLoading||this._budgetLoading?"loading":this.quantity?"valid":"normal"}onAdditionalInformationFocus(){this.additionalInformationIsFocused=!0}async onAdditionalInformationBlur(){this.additionalInformationIsFocused=!1,this.additionalInformation&&await this.validateFieldAdditionalInformation()}async validateFieldAdditionalInformation(){this._additionalInformationLoading=!0,await new Promise(g=>setTimeout(g,1e3)),this._additionalInformationLoading=!1}get additionalInformationState(){return this.additionalInformationIsFocused?"normal":this.pageLoading||this._additionalInformationLoading?"loading":this.additionalInformation&&this.additionalInformation?.trim()?.length>0?"valid":"normal"}onDesiredNameFocus(){this.desiredNameIsFocused=!0}async onDesiredNameBlur(){this.desiredNameIsFocused=!1,this.desiredName&&await this.validateFieldDesiredName()}async validateFieldDesiredName(){this._desiredNameLoading=!0,await new Promise(g=>setTimeout(g,1e3)),this._desiredNameLoading=!1}get desiredNameState(){return this.desiredNameIsFocused?"normal":this.pageLoading||this._desiredNameLoading?"loading":this.desiredName&&this.desiredName?.trim()?.length>0?"valid":"normal"}async handleUserNotLoggedIn(g){this.toastService.showToast(H.Ck.INFO,g);let d=await this.buildOrder();d=this.updateLocalOrder(d),await this.sessionService.getCart(!0),this.sessionService.storeLocalOrder(d),this.sessionService.saveUniqueNamesFormDesiredName(this.desiredName),this.sessionService.saveUniqueNamesFormBudget(this.quantity),this.sessionService.saveUniqueNamesAdditionalInformation(this.additionalInformation);const{affiliateCode:y,savedReferralLink:C}=await this.sessionService.getReferralData();await this.authHandler.redirectToSSO({referralLink:y,refLink:C})}updateLocalOrder(g){const d=this.sessionService.getLocalOrder(!0);if(!d)return g;for(const y of g.products){const C=d.products.find(R=>this.compareOrderProducts(R,y));if(!C){d.products.push(y);continue}if(y.serviceFullName)return this.toastService.showToast(H.Ck.ERROR,`${y.serviceFullName} already in the cart. Please remove it from your order or from the cart to continue.`),null;C.quantity!==y.quantity&&(d.products=d.products.map(R=>R.productId===y.productId?y:R))}return d}},v=t(h.prototype,"quantity",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=t(h.prototype,"quantityInt",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),a=t(h.prototype,"desiredName",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=t(h.prototype,"additionalInformation",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),t(h.prototype,"getMaxWidthFormContainer",[L],Object.getOwnPropertyDescriptor(h.prototype,"getMaxWidthFormContainer"),h.prototype),t(h.prototype,"routeSlug",[O],Object.getOwnPropertyDescriptor(h.prototype,"routeSlug"),h.prototype),t(h.prototype,"pageTitle",[G],Object.getOwnPropertyDescriptor(h.prototype,"pageTitle"),h.prototype),t(h.prototype,"seoKey",[F],Object.getOwnPropertyDescriptor(h.prototype,"seoKey"),h.prototype),t(h.prototype,"additionalInformationSuccess",[Y],Object.getOwnPropertyDescriptor(h.prototype,"additionalInformationSuccess"),h.prototype),t(h.prototype,"desiredNameSuccess",[Z],Object.getOwnPropertyDescriptor(h.prototype,"desiredNameSuccess"),h.prototype),t(h.prototype,"isResponsive",[_e],Object.getOwnPropertyDescriptor(h.prototype,"isResponsive"),h.prototype),t(h.prototype,"budgetElementSuccess",[U],Object.getOwnPropertyDescriptor(h.prototype,"budgetElementSuccess"),h.prototype),t(h.prototype,"budgetState",[M],Object.getOwnPropertyDescriptor(h.prototype,"budgetState"),h.prototype),t(h.prototype,"additionalInformationState",[p],Object.getOwnPropertyDescriptor(h.prototype,"additionalInformationState"),h.prototype),t(h.prototype,"desiredNameState",[w],Object.getOwnPropertyDescriptor(h.prototype,"desiredNameState"),h.prototype),h))||u)}),"pages/privacy-policy/privacy-policy":(function(W,f,e){"use strict";e.r(f),e.d(f,{PrivacyPolicy:function(){return s}});class s{constructor(){this.contentKeys=[{key:"PRIVACY_POLICY_INTRODUCTION_CONTENT",type:"content",additionalClass:"text-content introduction-content",content:""}
7276,{key:"PRIVACY_POLICY_INFORMATION_COLLECTION_TITLE",type:"title",additionalClass:"font-bold text-title collection-title",content:""},{key:"PRIVACY_POLICY_INFORMATION_COLLECTION_CONTENT",type:"content",additionalClass:"text-content collection-content",content:""},{key:"PRIVACY_POLICY_INFORMATION_TITLE",type:"title",additionalClass:"font-bold text-title information-title",content:""},{key:"PRIVACY_POLICY_INFORMATION_CONTENT",type:"content",additionalClass:"text-content information-content",content:""},{key:"PRIVACY_POLICY_HOW_USE_INFORMATION_TITLE",type:"title",additionalClass:"font-bold text-title how-use-information-title",content:""},{key:"PRIVACY_POLICY_HOW_USE_INFORMATION_CONTENT",type:"content",additionalClass:"text-content list-margin-how-use-information-content",content:""},{key:"PRIVACY_POLICY_INFORMATION_INSURANCE_LIFE_TITLE",type:"title",additionalClass:"font-bold text-title insurance-life-title",content:""},{key:"PRIVACY_POLICY_INFORMATION_INSURANCE_LIFE_CONTENT",type:"content",additionalClass:"text-content margened-paragraph insurance-life-content",content:""},{key:"PRIVACY_POLICY_ANALYTICS_TITLE",type:"title",additionalClass:"font-bold text-title analytics-title",content:""},{key:"PRIVACY_POLICY_ANALYTICS_CONTENT",type:"content",additionalClass:"text-content analytics-content",content:""},{key:"PRIVACY_POLICY_BEHAVIORAL_REMARKETING_TITLE",type:"title",additionalClass:"font-bold text-title remarketing-title",content:""},{key:"PRIVACY_POLICY_BEHAVIORAL_REMARKETING_CONTENT",type:"content",additionalClass:"text-content remarketing-content",content:""},{key:"PRIVACY_POLICY_INFORMATION_SHARING_TITLE",type:"title",additionalClass:"font-bold text-title sharing-title",content:""},{key:"PRIVACY_POLICY_INFORMATION_SHARING_CONTENT",type:"content",additionalClass:"text-content sharing-content",content:""},{key:"PRIVACY_POLICY_OPTING_OUT_UNSUBSCRIBE_TITLE",type:"title",additionalClass:"font-bold text-title unsubscribe-title",content:""},{key:"PRIVACY_POLICY_OPTING_OUT_UNSUBSCRIBE_CONTENT",type:"content",additionalClass:"text-content unsubscribe-content",content:""},{key:"PRIVACY_POLICY_HOW_LONG_DATA_STORED_TITLE",type:"title",additionalClass:"font-bold text-title stored-title",content:""},{key:"PRIVACY_POLICY_HOW_LONG_DATA_STORED_CONTENT",type:"content",additionalClass:"text-content stored-content",content:""},{key:"PRIVACY_POLICY_SECURITY_TITLE",type:"title",additionalClass:"font-bold text-title security-title",content:""},{key:"PRIVACY_POLICY_SECURITY_CONTENT",type:"content",additionalClass:"text-content security-content",content:""},{key:"PRIVACY_POLICY_USER_DATA_RIGHTS_TITLE",type:"title",additionalClass:"font-bold text-title right-title",content:""},{key:"PRIVACY_POLICY_USER_DATA_RIGHTS_CONTENT",type:"content",additionalClass:"text-content right-content",content:""},{key:"PRIVACY_POLICY_CHILD_PROTECTION_TITLE",type:"title",additionalClass:"font-bold text-title protection-title",content:""},{key:"PRIVACY_POLICY_CHILD_PROTECTION_CONTENT",type:"content",additionalClass:"text-content protection-content",content:""},{key:"PRIVACY_POLICY_RIGHT_ACCESS_CORRECT_PERSONAL_TITLE",type:"title",additionalClass:"font-bold text-title personal-title",content:""},{key:"PRIVACY_POLICY_RIGHT_ACCESS_CORRECT_PERSONAL_CONTENT",type:"content",additionalClass:"text-content personal-content",content:""},{key:"PRIVACY_POLICY_NOTICE_EU_RESIDENTS_TITLE",type:"title",additionalClass:"font-bold text-title eu-title",content:""},{key:"PRIVACY_POLICY_NOTICE_EU_RESIDENTS_CONTENT",type:"content",additionalClass:"text-content margened-paragraph eu-content",content:""},{key:"PRIVACY_POLICY_NOTICE_CALIFORNIA_RESIDENTS_TITLE",type:"title",additionalClass:"font-bold text-title ca-title",content:""},{key:"PRIVACY_POLICY_NOTICE_CALIFORNIA_RESIDENTS_CONTENT",type:"content",additionalClass:"text-content ca-content",content:""}]}}}),"pages/product/product":(function(W,f,e){"use strict";e.r(f),e.d(f,{Product:function(){return c}});var s=e("aurelia-framework"),q=e(10220),be=e(17349),ye=e(31018),X=e(5562),ae=e(69117),j=e("aurelia-event-aggregator"),ge=e(72932),le=e(58846),pe=e(41455),de=e(45246),ce=e(56775),J=e(39146),K=e(6506),H=e(88424),k=e(52347),ee=e(38489),fe=e(69553),z=e(34840),ne=e(9688),B=e(74737),_=e(17285),T=e(3682),L=e(45843),O=e(19806),G=e(28674),F=e(12033),Y=e(80566),Z=e(33092),_e=e(42371),U,M,p,w,u,h,v,n;function a(o,t,i,r,m){var g={};
7276return Object.keys(r).forEach(function(d){g[d]=r[d]}),g.enumerable=!!g.enumerable,g.configurable=!!g.configurable,("value"in g||g.initializer)&&(g.writable=!0),g=i.slice().reverse().reduce(function(d,y){return y(o,t,d)||d},g),m&&g.initializer!==void 0&&(g.value=g.initializer?g.initializer.call(m):void 0,g.initializer=void 0),g.initializer===void 0?(Object.defineProperty(o,t,g),null):g}let c=(U=(0,ee.connectTo)({selector:{featureFlags:o=>o.state.pipe((0,G.T)(t=>t.flags),(0,O.F)())}}),M=(0,s.inject)(be.b,q.Ix,ye.Q,X.Y,ae.J,ge.$,j.EventAggregator,pe.j,de.H,ce.CurrencyFormatValueConverter,J.F,K.Q,H.CalculateConvertedPriceValueConverter,k.UrlPaginationNavigateValueConverter,z.e,ee.Store,B.f,T.CamelCaseValueConverter,L.SiteStringsValueConverter,F.uJ,Z.be,Z.y9,F.DM,_e.Mx),p=(0,s.computedFrom)("product.fee"),w=(0,s.computedFrom)("product.description"),u=(0,s.computedFrom)("product.productCategoryName","product.game.shortName"),h=(0,s.computedFrom)("product"),U(v=M(v=(n=class{constructor(t,i,r,m,g,d,y,C,R,S,N,te,Ee,D,I,A,ue,se,me,P,x,$,Pe,Se){this.insuranceId=[],this.insurances=[],this.insuranceOptions=[],this.productInfo=void 0,this.readMore=void 0,this.disablePurchase=void 0,this.addedToCart=!1,this.previousLocation=void 0,this.productDescription=[],this.additionalInformation=[],this.listOfValue=[],this.backRoute="",this.category=[[.07,"Factory new"],[.15,"Minimal Wear"],[.38,"Field - tested"],[.45,"Well - worn"],[1,"Battle - scarred"]],this.activeIndicatorSize="30px",this.previousOrNextIndicatorSize="25px",this.previousTwoOrNextTwoIndicatorSize="20px",this.staticProductCategories=(0,ne.k_)(),this.detailsOpened=!0,this.columns=["STORE","SERVER","IN STOCK","MIN QTY","DELIVERY TIME","PRICE PER UNIT"],this.sortByOptions=["Recommended","Lowest price","Highest price","Newest listing","Oldest listing"],this.sortRequest=["Recommended","LowestPrice","HighestPrice","NewestListing","OldestListing"],this.availableProducts=[],this.query="",this.contentLoading=!0,this.navCategory=null,this.deliveryMethods=[],this.deliveryMethod=null,this.deliveryMethodsFilter=null,this.isNewBuyPagesEnabled=!1,this.productItem=void 0,this.marginUpdateReceived=l=>{!l.productId&&this.product.margin||l.productId&&l.productId!==this.product.id||(this.product.price=this.calculatePriceByMargin(this.product.price,l),this.product.salePrice?(this.product.salePrice=this.calculatePriceByMargin(this.product.salePrice,l),this.schema.price=this.product.salePrice):this.schema.price=this.product.price)},this.calculatePriceByMargin=(l,E)=>{const b=l/(1+E.old);return b+b*E.margin},this.pricesUpdateReceived=async()=>{this.product=await this.productService.getProductByIdOrSlug(this.productSlug,this.helper.applyMany(this.routeConfig.name,"replaceDashWithSpace","toCapitalize","toPlural"))},this.handleProductInfoAndPageTitle=()=>{this.product.title&&(this.product.title=this.helper.isWrappedWithHtmlTags(this.product.title)?this.helper.sanitizeHtml(this.product.title,!0):this.product.title);const l=this.product.title?this.product.title:this.product.productCategory.name==="Accounts"?this.product.name:`Buy ${this.product.name} - ${this.product.game.name} ${this.product.productCategory.name}`,E=`Buy ${this.product.name} for ${this.product.game.name} ${this.product.productCategory.name} at Chicks Gold. Secure checkout, fast delivery, and reliable service from a trusted gaming marketplace.`;this.routeConfig.navModel.setTitle(l),this.metadataHelper.setTitleMetaTitleAndMetaDescription(this.routeConfig,this.navigationInstruction,l,E),this.productInfo=this.product.title?this.product.title:this.product.productCategory.name==="Accounts"?this.product.name:`Buy ${this.product.game.name} ${this.product.name}`},this.getHref=(l,E,b,re)=>this.router.generate(this.getRoute(l.page,E,b,re),l),this.getRoute=(l=null,E,b,re)=>this.urlNavigation.getRoute(E,b,re,+l),this.handleCarouselIndicatorEvent=()=>{this.carouselElement?.addEventListener("slide.bs.carousel",l=>{this.handleIndicatorsSetActivesStyling(l)})},this.handleIndicatorsSetActivesStyling=l=>{this.clearIndicatorsStyling();const E=this.carouselIndicatorsElement?.querySelector(`li[data-bs-slide-to="${l.to}"]`),b=this.carouselIndicatorsElement?.querySelector(`li[data-bs-slide-to="${l.to+1}"]`),re=this.carouselIndicatorsElement?.querySelector(`li[data-bs-slide-to="${l.to-1}"]`),ie=this.carouselIndicatorsElement?.querySelector(`li[data-bs-slide-to="${l.to+2}"]`),Q=this.carouselIndicatorsElement?.querySelector(`li[data-bs-slide-to="${l.to-2}"]`);E&&(E.style.width=this.activeIndicatorSize),b&&(b.style.width=this.previousOrNextIndicatorSize),re&&(re.style.width=this.previousOrNextIndicatorSize),ie&&(ie.style.width=this.previousTwoOrNextTwoIndicatorSize),Q&&(Q.style.width=this.previousTwoOrNextTwoIndicatorSize)},this.clearIndicatorsStyling=()=>this.carouselIndicatorsElement?.querySelectorAll("li")?.forEach(l=>l.style.width=null),this.sessionService=r,this.toastService=ue,this.router=i,this.helper=R,this.productService=t,this.insuranceService=m,this.orderProductService=d,this.priceModificationChecker=g,this.eventAggregator=y,this.websiteService=C,this.currencyFormatValueConverter=S,this.productCategoryService=N,this.baseAwsEndpoint=(0,le.Ty)("products"),this.orderService=te,this.calculateConvertedPriceValueConverter=Ee,this.urlNavigation=D,this.signalRService=I,this.store=A,this.camelCaseValueConverter=se,this.siteStringsValueConverter=me,this.inputNumericValueChecker=P,this.deliveryMethodService=x,this.featureFlagService=$,this.languageRouteValueConverter=Pe,this.metadataHelper=Se,this.store.registerAction("updateSelectedProducts",fe.RE),this.helper.getResolutions(this)}async activate(t,i,r){this.productId=t.id,this.routeSlug=t.game,this.productSlug=t.slug,this.previousLocation=t.location,this.sellItem=t.sellItem,this.routeConfig=i,this.navigationInstruction=r,this.isNewBuyPagesEnabled=await this.featureFlagService.getKeyEnabled(ne.$v.CG_FEATURE_NEW_BUY_PAGES)}async attached(){if(await this.websiteService.getManyRoutes(this,["Terms Of Service","Accounts","Skins","Items","Swap","Gift Cards"]),!this.productId&&
7276!this.productSlug&&(this.toastService.showToast(_.Ck.ERROR,"Something went wrong! Please contact the Livechat."),this.router.navigateToRoute("404")),this.product=await this.productService.getProductByIdOrSlug(this.productId??this.productSlug,this.helper.applyMany(this.routeConfig.name,"replaceDashWithSpace","toCapitalize","toPlural"),this.routeSlug),!this.product){this.router.navigateToRoute("404");return}if(await this.configureProductPage(),this.width=this.helper.getWidth(),this.ETAData=await this.orderProductService.getAverageDeliveryTime(this.product.id),this.product.averageDeliveryTime=this.ETAData?.[this.product.id],this.ETA=this.helper.setAverageDeliveryTime(this.product,!1),this.preferredCurrency=await this.sessionService.getCurrency(),this.selectedGame&&this.selectedGame.slug[0]!==this.routeSlug){const i=`/buy/${this[`${this.product.productCategory.name.toLowerCase()}PageRoute`]}/${this.selectedGame.slug[0]}/${this.product.slug}`;this.helper.addPrerenderMetaTagForRedirect(i),this.router.navigate(i)}if(this.product){await this.handleProductRatingSchemaAndPixelEvents(),this.width=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,this.helper.addFilterArrow(this.detailsSelectors),this.handleEventSubscriptions(),this.getBackLink(),this.handleIndicatorsSetActivesStyling({to:0}),this.handleCarouselIndicatorEvent();const t=await this.productService.doAdvancedProductSearch({gameId:this.product.gameId,productId:this.product.id,productCategory:this.product.productCategory?.name,isSuppliers:!0,mode:Y.cB.QueryCount});this.availableProducts=t?.products||[],await this.getDeliveryMethods()}this.contentLoading=!1,this.connection=await this.signalRService.getSignalRConnection(),this.signalRService.safeInvoke("SubscribeSteamUpdates"),this.connection?.on("MarginUpdate",this.marginUpdateReceived),this.connection?.on("PricesUpdate",this.pricesUpdateReceived)}detached(){this.helper.removePrerenderMetaTagForRedirect(),this.sizeChanged?.dispose(),this.currencyUpdateSubscription?.dispose(),this.connection&&(this.signalRService.safeInvoke("UnsubscribeSteamUpdates"),this.helper.killSignalRListeners(this.connection,["MarginUpdate","PricesUpdate"]))}handleEventSubscriptions(){this.eventAggregator.publish("observe-element",{selector:"#floating-bottom-bar"}),this.sizeChanged=this.eventAggregator.subscribe("size-changed",t=>{this.width=t.width,this.previousIsMobile=this.isMobile,this.isMobile=this.width<this.widescreen,!this.previousIsMobile&&this.isMobile&&setTimeout(()=>{this.eventAggregator.publish("observe-element",{selector:"#floating-bottom-bar"})},100)}),this.helper.actionAfterExists(this,"floatingBottomBar","#floating-bottom-bar",()=>{this.eventAggregator.publish("observe-element",{selector:"#floating-bottom-bar"})}),this.currencyUpdateSubscription=this.eventAggregator.subscribe("currency-updated",async t=>{this.preferredCurrency!==t.currency&&(this.preferredCurrency=t.currency,await this.handleProductRatingSchemaAndPixelEvents())})}get insuranceLabel(){return this.siteStringsValueConverter.toView("CG_INSURANCE_OPTIONS")||"Insurance options"}get hasProductDescription(){return this.helper.getHtmlPlainText(this.product?.description).length>0}get productCategoryNameClass(){return this.helper.ETATooltipIconHandler(this.product,!0)}handleQuantity(t){this.product.quantity=t?.detail.quantity}handleCurrency(t){this.product.currentCurrency=t?.detail.currency}toggleDetails(t){t||(this.detailsOpened=!this.detailsOpened)}async getDeliveryMethods(){this.deliveryMethods=await this.deliveryMethodService.getDeliveryMethodByGameAndCategory(+this.product?.gameId,+this.navCategory?.id)??[],this.deliveryMethods=this.deliveryMethods.map(t=>({...t,label:t?.displayName??t?.deliveryMethod?.displayName,value:t?.displayName??t?.deliveryMethod?.displayName,selected:!1})),this.deliveryMethods.unshift({label:"All",value:"All",selected:!0}),this.deliveryMethod=this.deliveryMethods.find(t=>t.value==="All")??null,this.deliveryMethodsFilter={items:this.deliveryMethods,label:"Delivery Method",icon:"local_shipping",itemSelected:this.setActiveDeliveryMethod.bind(this)}}setActiveDeliveryMethod(t){this.deliveryMethod=t?.detail?.selected}async configureProductPage(){if(this.productAdditionalImages=this.product.productImages,await this.handleRouteChange(this.product.productCategory.name),!this.selectedGame){this.router.navigateToRoute("404");return}if(this.product.servicePricing=null,this.product.displayQuantity=this.product.quantity,this.product.quantity=this.product.tempQuantity=this.product?.minimum??1,this.product.quantity<=0&&(this.disablePurchase=!0),this.product?.seller?this.seller=this.product.seller:this.product?.sellerID?this.seller=await this.sellerService.searchSellerById(this.product.sellerID):this.seller={username:"Chicks Gold",verified:!0},this.product.salePrice>0&&this.isNewBuyPagesEnabled&&(this.product.price=this.product.salePrice),this.product.priceModification=await this.priceModificationChecker.toView(this.product.gameId,this.product.productCategoryId),this.helper.includesSome(this.product?.productCategory?.name,this.staticProductCategories)?this.overviewTitle=this.product.productCategory.name.slice(0,-1):this.overviewTitle="Product",this.handleProductInfoAndPageTitle(),this.insurances=[],this.insuranceOptions=[],this.product.insurances?.length>0&&(this.insurances=this.product.insurances.map(t=>({...t.insurance,label:t.insurance.displayName,value:t.insurance.displayName})).sort((t,i)=>(i.position!==null)-(t.position!==null)||t.position-i.position),this.insuranceOptions=this.insurances.map(t=>
7276({label:t.displayName?t.displayName:t.name,value:t.id,selected:!1})),this.product.insuranceId&&(this.product.purchasedInsurance=!0,this.product.insurance=this.insurances.find(t=>t.id===this.product.insuranceId))),this.product.productFields){const t=await this.productService.getFieldsForGameAndCategorySkinDescription(this.product.productCategoryId,this.product.gameId,!0)??[];for(const i of this.product.productFields){const r=i.field,m=i.value,g=r?.label||r.name,d=r.active,y=t.some(C=>C.field.id===i.fieldId);if(r.name==="Wear"||r?.label==="Float"){const C=+m;this.isFloat=!0;const[,R]=this.category.find(([S])=>C<=S)||[];this.additionalInformation.push({label:g,value:`${C.toFixed(10)} (${R})`});continue}if(r.isDescription)y&&this.productDescription.push({label:g,value:m,active:d});else if(r.filterSkinCategory===1)this.productDescription.push({label:g,value:m,active:d});else if(r.filterSkinCategory===2&&!r.listOfValue)this.additionalInformation.push({label:g,value:m});else{if(r.filterSkinCategory===0)continue;let C=this.listOfValue.find(R=>R.label===r.listOfValue?.label);C||(C={label:r.listOfValue?.label,values:[]},this.listOfValue.push(C)),C.values.push({label:g,value:m})}}}this.isFloat=this.product.productFields.some(t=>t.field?.label?.toLowerCase()==="float")}get getProductInfo(){return{title:this.product.name,price:this.product.price,availableStock:this.product.quantity,imagePath:this.product.imagePath,...this.product}}async handleProductRatingSchemaAndPixelEvents(){this.product&&(this.schema=await this.calculateConvertedPriceValueConverter.toView(this.product),this.orderService.handleProductRatingSchema(this.product.game,this.product.productCategory,this.product,this.schema.currency,this.schema.price,!0),this.helper.handleRedditEvent("ViewContent",this.product,this.schema.currency,this.schema.price))}async handleRouteChange(t){this.navCategory=await this.productCategoryService.getNavCategory(`${t.toLowerCase()}`,"CG");const i=this.navCategory?.gameForNav;this.selectedGame=i?.find(r=>r.slug?.includes(this.routeSlug?.replaceAll("buy-","")?.replaceAll(`-${t.toLowerCase()}`,"")))}handleInsuranceChange({detail:t}){t?.selected?.value!==null?(this.product.purchasedInsurance=!0,this.product.insuranceId=t?.selected.value,this.product.insurance=this.insurances.find(i=>i.id===t?.selected?.value)):this.product.purchasedInsurance=!1,this.sessionService.updateCartItem(this.product,!0)}handleDialogOpen(){this.opened=!0,this.dialogModule.dialog.open()}getBackLink(){if(this.previousLocation){this.backRoute=this[`${this.previousLocation}PageRoute`];return}const t=this.product.productCategory.name;if(!this.helper.includesSome(t,["Items","Accounts","Skins","Gift Cards"]))return;let i=t;t==="Gift Cards"&&(i="Gifts");const r=this.sessionService[`getLast${i}PageConfig`]?.(),m=window.location.pathname.split("/").slice(0,-1).join("/"),g=r?.value&&this.selectedGame?.slug?.includes(r.value);r&&!r.value?this.backRoute=this.getHref(r,i.toLowerCase(),void 0,"game"):g&&this.helper.checkIfObjectContainsAnyPropertyWithValue(r)?this.backRoute=this.getHref(r,i.toLowerCase(),r.value,"game"):this.backRoute=m}async addToCart(){this.isNewBuyPagesEnabled?await this.newAddToCart():await this.oldAddToCart()}async newAddToCart(){if(this.validateSellerProduct()===!1)return;const t=JSON.parse(JSON.stringify(this.product));t.quantity=this.product.tempQuantity,t.selectedQuantity=Number.parseInt(this.product.tempQuantity),t.deliveryMethod=this.product.deliveryMethod,t.deliveryMethodId=this.product.deliveryMethod?.deliveryMethodId??this.product?.deliveryMethod?.id,t.tempQuantity=Number.parseInt(this.product.tempQuantity),t.character=this.product.character,t.productId=this.product.id,t.price=this.priceModification?this.product.price+this.product.price*(this.priceModification.percentage/100):this.product.price;const i=await this.sessionService.getCart(!0)||[],r=_e.dX.validateOnProductAdd({...t,product:this.product,productCategory:this.product.category,isSell:!1},i,!1);if(r){this.toastService.showToast(_.Ck.ERROR,r);return}if(await this.helper.handleAccountOrderValidation(i,this.orderService,_.g1.Currency,!1)||this.validateProductQuantities(t,i)===!1)return;await this.sessionService.storeCartItem(t)||(this.addedToCart=!0),this.router.navigateToRoute("cart")}validateProductQuantities(t,i){if(!t.character||t.character.trim()===""){const r=this.productItem?.characterNameInput?.root??this.productItem?.characterNameInput;return this.helper.applyFocus(r),!1}return t.quantity<this.product.minimum?(this.toastService.showToast(_.Ck.ERROR,"The requested quantity is too low. Please increase the quantity to proceed."),!1):this.helper.validateWithCustomCurrency(i,t)?!0:(this.toastService.showToast(_.Ck.ERROR,"Cannot swap the same product. One or more products already in the cart in the opposite swap category."),!1)}validateSellerProduct(){if(this.character!==void 0&&this.character?.length===0){const t=this.productItem?.characterNameInput?.root??this.productItem?.characterNameInput;return this.helper.applyFocus(t),!1}else{if(!this.product||this.product?.price<=0)return this.toastService.showToast(_.Ck.INFO,"We are not currently selling this product. Please let us know in the live chat that you are interested in this product."),!1;if(this.product?.sellerId&&this.product?.sellerId===this.user?.sellerId)return this.toastService.showToast(_.Ck.ERROR,"You cannot add your own product to the cart."),!1}return!0}async oldAddToCart(){if(this.addedToCart){if(!await this.sessionService.getProfile()){this.router.navigate(`/sign-in?redirect_url=${location.pathname}`);return}let g="/cart";const y=(await this.sessionService.getCart())?.find(C=>C.isSell);y&&this.featureFlags.get(ne.$v.ORDER_CHAT_CART_FEATURE)&&(g=`/customer-portal/swap/chat/${y.orderId}`),this.router.navigate(g);return}const t=structuredClone(this.product);if(Number(t.quantity)<=0){this.toastService.showToast(_.Ck.ERROR,"Please ensure quantity is above zero before continuing.");return}if(t?.quantity>t.displayQuantity&&t?.productCategory.name==="Accounts"){this.toastService.showToast(_.Ck.ERROR,"Please ensure quantity is not over amount of in stock.");return}if(t.salePrice&&t.salePrice>0?t.salePrice=t.priceModification?t.salePrice+t.salePrice*(t.priceModification.percentage/100):this.priceModification?t.salePrice+t.salePrice*(this.priceModification.percentage/100):t.salePrice:t.price=t.priceModification?t.price+t.price*(t.priceModification.percentage/100):this.priceModification?t.price+t.price*(this.priceModification.percentage/100):t.price,t.tempQuantity=this.product.quantity,t.productId=this.productId,this.previousLocation==="swap"){const g=structuredClone(this.product);this.sellItem&&(g.price=0,g.salePrice=null),this.store.dispatch("updateSelectedProducts",this.sellItem?"Sell":"Purchase","Add",g),this.toastService.showToast(_.Ck.SUCCESS,`Added ${g.name} to your list.`),this.router.navigate(this.backRoute);return}this.sessionService.storeCartItem(t,!0),this.addedToCart=!0;let i="/cart";const m=(await this.sessionService.getCart())?.find(g=>g.isSell);m&&this.featureFlags.get(ne.$v.ORDER_CHAT_CART_FEATURE)&&(i=`/customer-portal/swap/chat/${m.orderId}`),this.router.navigate(i)}routeTo(t){this.router.navigate(t)}handleFloatBar(){const{productFields:t}=this.product;return{range:t.find(r=>r.field?.label?.toLowerCase()==="float").value}}isEllipsisActive(){this.showAccountTitleTooltip=this.helper.isEllipsisActive(this.titleTooltipContainer,".product-info-truncate")}hideTooltip(){this.showAccountTitleTooltip=!1}toggleQuantityEdit(t){t&&t.stopPropagation(),this.quantityEdit=!this.quantityEdit,this.addedToCart=!1}async getOffersHandler(t=Y.cB.QueryCount){if(!this.product)return;const i={pageSize:5,page:(this.suppliersSection?.page??1)-1,query:this.query,mode:t,gameId:this.product.gameId,productId:this.product.id,productCategory:this.product.productCategory?.name,isSuppliers:!0,sort:this.suppliersSection?.getSort()};return await this.productService.doAdvancedProductSearch(i)}async getOffers(){const t=await this.getOffersHandler(Y.cB.QueryCount);return t?t.products:[]}async getOffersCount(){return(await this.getOffersHandler(Y.cB.CountOnly))?.totalCount??0}handleQueryChange(t){this.query=t}async selectSuppliersOffer(t){this.contentLoading=!0;try{this.product=structuredClone(t),await this.configureProductPage()}catch(i){console.error("Error in selectSuppliersOffer:",i),!this.notificationSent&&!this.loadingByRoute&&this.selectedGame&&this.toastService.showToast(_.Ck.ERROR,"Failed to select supplier offer")}finally{this.contentLoading=!1,this.helper.scrollTop()}}async redirectToPage(){const t=await this.languageRouteValueConverter.toView(this.backRoute);this.router.navigate(t)}isAbsoluteUrl(t){return/^https?:\/\//i.test(t)}getImage(){return this.isAbsoluteUrl(this.product?.imagePath)||this.product?.imagePath?.startsWith("blob:")||this.product?.imagePath?.startsWith("data:")||this.product?.imagePath?.startsWith("/")?this.product.imagePath:`${this.baseAwsEndpoint}${this.product?.imagePath}`}},a(n.prototype,"insuranceLabel",[p],Object.getOwnPropertyDescriptor(n.prototype,"insuranceLabel"),n.prototype),a(n.prototype,"hasProductDescription",[w],Object.getOwnPropertyDescriptor(n.prototype,"hasProductDescription"),n.prototype),a(n.prototype,"productCategoryNameClass",[u],Object.getOwnPropertyDescriptor(n.prototype,"productCategoryNameClass"),n.prototype),a(n.prototype,"getProductInfo",[h],Object.getOwnPropertyDescriptor(n.prototype,"getProductInfo"),n.prototype),n))||v)||v)}),"pages/rate-limit/rate-limit":(function(W,f,e){"use strict";e.r(f),e.d(f,{RateLimit:function(){return pe}});var s=e("aurelia-framework"),q=e(41455),be,ye,X,ae;function j(de,ce,J,K){J&&Object.defineProperty(de,ce,{enumerable:J.enumerable,configurable:J.configurable,writable:J.writable,value:J.initializer?J.initializer.call(K):void 0})}function ge(de,ce,J,K,H){var k={};
7276return Object.keys(K).forEach(function(ee){k[ee]=K[ee]}),k.enumerable=!!k.enumerable,k.configurable=!!k.configurable,("value"in k||k.initializer)&&(k.writable=!0),k=J.slice().reverse().reduce(function(ee,fe){return fe(de,ce,ee)||ee},k),H&&k.initializer!==void 0&&(k.value=k.initializer?k.initializer.call(H):void 0,k.initializer=void 0),k.initializer===void 0?(Object.defineProperty(de,ce,k),null):k}function le(de,ce){throw Error("Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.")}let pe=(be=(0,s.inject)(q.j),be(ye=(X=class{constructor(ce){j(this,"redirectTo",ae,this),this.subtitleFallback="You\u2019re going too fast and sending many requests. Please wait a few minutes before trying again \u2014 repeated attempts can extend the wait, in some cases up to a couple of hours. If you are still unable to connect, send us an email to [email protected] and we\u2019ll get back to you as soon as possible.",this.websiteService=ce}activate(){const J=new URLSearchParams(window.location.search).get("redirectTo");if(J)try{const K=new URL(decodeURIComponent(J),window.location.origin);if(K.origin!==window.location.origin)return;const H="/"+K.pathname.replace(/^\/+/,"");this.redirectTo=H+K.search+K.hash}catch{}}},ae=ge(X.prototype,"redirectTo",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"/"}}),X))||ye)}),"pages/seller-fee/seller-fee":(function(W,f,e){"use strict";e.r(f),e.d(f,{SellerFee:function(){return s}});class s{constructor(){this.contentKeys=[{key:"SELLER_FEE_INTRODUCTION_CONTENT",type:"content",additionalClass:"text-content introduction-content",content:""},{key:"SELLER_FEE_SALES_FEE_TITLE",type:"title",additionalClass:"font-bold text-title sales-fee-title",content:""},{key:"SELLER_FEE_SALES_FEE_CONTENT",type:"content",additionalClass:"text-content-2 sales-fee-content",content:""},{key:"SELLER_FEE_WHEN_FEE_CHARGED_TITLE",type:"title",additionalClass:"font-bold text-title when-charged-title",content:""},{key:"SELLER_FEE_WHEN_FEE_CHARGED_CONTENT",type:"content",additionalClass:"text-content-2 when-charged-content",content:""},{key:"SELLER_FEE_WHAT_FEE_COVERS_TITLE",type:"title",additionalClass:"font-bold text-title what-covers-title",content:""},{key:"SELLER_FEE_WHAT_FEE_COVERS_CONTENT",type:"content",additionalClass:"text-content-2 what-covers-content",content:""},{key:"SELLER_FEE_WITHDRAWALS_TITLE",type:"title",additionalClass:"font-bold text-title withdrawals-title",content:""},{key:"SELLER_FEE_WITHDRAWALS_CONTENT",type:"content",additionalClass:"text-content-2 withdrawals-content",content:""},{key:"SELLER_FEE_CONTACT_US_TITLE",type:"title",additionalClass:"font-bold text-title contact-us-title",content:""},{key:"SELLER_FEE_CONTACT_US_CONTENT",type:"content",additionalClass:"text-content-2 contact-us-content",content:""}]}}}),"pages/sellv2/sell":(function(W,f,e){"use strict";e.r(f),e.d(f,{Sell:function(){return fe}});var s=e("aurelia-framework"),q=e(10220),be=e("aurelia-event-aggregator"),ye=e(45246),X=e(74737),ae=e(30953),j=e(91171),ge=e(27088),le=e(39146),pe=e(66666),de=e(33092),ce=e(9688),J,K,H,k;function ee(z,ne,B,_,T){var L={};return Object.keys(_).forEach(function(O){L[O]=_[O]}),L.enumerable=!!L.enumerable,L.configurable=!!L.configurable,("value"in L||L.initializer)&&(L.writable=!0),L=B.slice().reverse().reduce(function(O,G){return G(z,ne,O)||O},L),T&&L.initializer!==void 0&&(L.value=L.initializer?L.initializer.call(T):void 0,L.initializer=void 0),L.initializer===void 0?(Object.defineProperty(z,ne,L),null):L}let fe=(J=(0,s.inject)(q.Ix,ye.H,X.f,be.EventAggregator,ge.M,le.F,pe.w,de.jp,s.Aurelia),K=(0,s.computedFrom)("loading","firstLoading","pageLoading"),J(H=(k=class extends ye.H.classExtender(j.h,ae.z){constructor(ne,B,_,T,L,O,G,F,Y){super(),this.loading=!0,this.firstLoading=!0,this.pageLoading=!0,this.uniqueNames="unique-names",this.staticProductCategories=(0,ce.k_)(),this.getProductCategoryBaseRoutes=(0,ce.Hp)(),this.router=ne,this.helper=B,this.toastService=_,this.eventAggregator=T,this.metadataHelper=L,this.productCategoryService=O,this.gameService=G,this.websiteService=F,this.aurelia=Y,this.helper.getResolutions(this)}async activate(ne,B,_){this.routeConfig=B,this.navigationInstruction=_}async attached(){this.width=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,this.handleEventSubscriptions(),[this.sellPageRoute,this.navCategory]=await Promise.all([this.websiteService.getRouteOrDefault("sell"),this.productCategoryService.getNavCategory("sellextra","CG")]);const ne=this.navigationInstruction?.params?.childRoute?.split("/")?.[0];this.games=this.navCategory?.gameForNav.filter(_=>this.helper.excludeAll(_?.name,this.staticProductCategories)&&_.productCategoryName.includes(ne?.toUpperCase()));const B=this.game?this.games?.find(_=>_.shortName===this.game.shortName):void 0;if(B&&B?.slug[0]!==this.navigationInstruction?.params?.childRoute){const _=`/${this.sellPageRoute}/${B.slug[0]}`;return _===globalThis.location.pathname?void 0:(this.helper.addPrerenderMetaTagForRedirect(_),this.router.navigate(_))}}handleEventSubscriptions(){const ne={[ce.sw]:()=>{this.router.currentInstruction.config.name!==this.uniqueNames&&(this.loading=!1,this.settleFirstLoad())},[ce.x$]:()=>{this.loading=!1},[ce.Xq]:()=>{this.loading=!0},[ce.ot]:()=>{this.loading=!0},"page-loaded":()=>{this.pageLoading=!1,this.isDefaultRoute&&this.settleFirstLoad()},"size-changed":async B=>{this.width=B.width}};this.helper.subscribeEvents(this,ne)}
7276detached(){this.helper.disposeAllSubscribers(this)}async configureRouter(ne,B){ne.options.pushState=!0,this.router=B;const _={accounts:"sell account",currency:"sell currency","gift-cards":"sell gift cards",items:"sell item",skins:"sell skins","unique-names":"sell unique names"},T=await Promise.all(Object.entries(_).map(async([G,F])=>[G,await this.productCategoryService.getNavCategory(F,"CG")])),L=Object.fromEntries(T),O=(G,F,Y,Z)=>{const _e=this.helper.createRouteObject(G,F,Y);return Z?{..._e,navigationStrategy:async U=>{const M=window.location.pathname.split("/").filter(Boolean),p=M.indexOf(Z);if(p===-1||M.length-p!==2){this.router.navigateToRoute("404");return}const w=U.params.game;if(!w)return;const u=L[Z];if(!u)return;if(this.warmModule(F),this.game=await this.gameService.getGameForNavBySlug(w,"CG",u.id),!this.game){this.router.navigateToRoute("404");return}if(this.game&&this.game?.slug[0]!==window.location.pathname.split("/").pop()){this.sellPageRoute??=await this.websiteService.getRouteOrDefault("sell");const n=this.getProductCategoryBaseRoutes[u.name].replaceAll("sell/",""),a=`/${this.sellPageRoute}/${n}/${this.game.slug[0]}`;this.helper.addPrerenderMetaTagForRedirect(a),this.router.navigate(a)}const h=this.game.title??this.game.headerTitle;U.config.title=h,U.config.settings={metaDescription:this.game.metaDescription,keyName:`SELL_${this.game.shortName}_${Z.toUpperCase()}`},U.config.navModel.setTitle(h);const v=U.parentInstruction;v&&(v.config.navModel.setTitle(""),v.config.title="",v.config.settings&&(v.config.settings.title=""))}}:_e};ne.map([{...this.helper.createRouteObject("","pages/sellv2/sell-default/sell-default",["","currency","items","accounts","gift-cards","skins",this.uniqueNames]),activationStrategy:q.Wg.replace},O("Accounts","pages/sellv2/categories/accounts/accounts",["accounts/:game"],"accounts"),O("Currency","pages/sellv2/categories/currency/currency",["currency/:game"],"currency"),O("Gift-cards","pages/sellv2/categories/gift-cards/gift-cards",["gift-cards/:game"],"gift-cards"),O("Items","pages/sellv2/categories/items/items",["items/:game"],"items"),O("Skins","pages/sellv2/categories/skins/skins",["skins/:game"],"skins"),O("Unique Names","pages/sellv2/categories/unique-names/unique-names",["unique-names/:game"],this.uniqueNames)]),ne.mapUnknownRoutes(()=>{this.router.navigateToRoute("404")})}warmModule(ne){try{this.aurelia.loader?.loadModule(ne)?.catch(()=>{})}catch{}}get isDefaultRoute(){return!this.router?.currentInstruction?.config?.name}settleFirstLoad(){this.loading||this.isDefaultRoute&&this.pageLoading||(this.firstLoading=!1)}get showSkeleton(){return this.firstLoading?this.loading||this.isDefaultRoute&&this.pageLoading:!1}},ee(k.prototype,"showSkeleton",[K],Object.getOwnPropertyDescriptor(k.prototype,"showSkeleton"),k.prototype),k))||H)}),"pages/sellv2/shared-components/sell-seo-content/sell-seo-content":(function(W,f,e){"use strict";e.r(f),e.d(f,{SellSeoContent:function(){return B}});var s=e("aurelia-framework"),q=e(10220),be=e("aurelia-event-aggregator"),ye=e(41961),X=e(41455),ae=e(66666),j=e(31018),ge=e(45246),le=e(33766),pe=e(9688),de,ce,J,K,H,k,ee;function fe(_,T,L,O){L&&Object.defineProperty(_,T,{enumerable:L.enumerable,configurable:L.configurable,writable:L.writable,value:L.initializer?L.initializer.call(O):void 0})}function z(_,T,L,O,G){var F={};return Object.keys(O).forEach(function(Y){F[Y]=O[Y]}),F.enumerable=!!F.enumerable,F.configurable=!!F.configurable,("value"in F||F.initializer)&&(F.writable=!0),F=L.slice().reverse().reduce(function(Y,Z){return Z(_,T,Y)||Y},F),G&&F.initializer!==void 0&&(F.value=F.initializer?F.initializer.call(G):void 0,F.initializer=void 0),F.initializer===void 0?(Object.defineProperty(_,T,F),null):F}function ne(_,T){throw Error("Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.")}let B=(de=(0,s.inject)(q.Ix,ye.Z,be.EventAggregator,le.TemplateCheckSeparatorValueConverter,X.j,ae.w,j.Q,ge.H),ce=(0,s.computedFrom)("templateSell.clientHeight"),J=(0,s.computedFrom)("viewingAsAdmin"),K=(0,s.computedFrom)("viewingAsAdmin"),de(H=(k=class{constructor(T,L,O,G,F,Y,Z,_e){fe(this,"renderSkeleton",ee,this),this.mainPrefix="",this.pageName="Sell",this.key=void 0,this.viewingAsAdmin=void 0,this.pageLoading=!1,this.isDropdownOpen=!1,this.category="",this.game="",this.seoQuadCards=null,this.informationCards=null,this.quadContentBlockItems=null,this.showComponent=!0,this.router=T,this.pageContentAreaService=L,this.eventAggregator=O,this.websiteService=F,this.templateCheckSeparatorValueConverter=G,this.gameService=Y,this.sessionService=Z,this.helper=_e,this.pageContentArea=[],this.pageConfig=null,this.filteredContent={}}async activate(T,L,O){this.key=O.config.settings.keyName}async attached(){this.viewingAsAdmin=await this.sessionService.getAdminView(),this.templateCheckSeparatorValueConverter.toView(this.templateSell);try{await this.initContent(),await this.filterContentForCurrentGame()}catch(T){console.error("Error loading page content:",T)}this.handleEventSubscriptions()}async initContent(){const T=await this.websiteService.getPage(this.pageName);T?.id&&(this.pageContentArea=await this.pageContentAreaService.getByPageId(T.id))}async filterContentForCurrentGame(){const{params:T,category:L}=await this.getCurrentRouteDetails();let O;T.game&&(O=await this.gameService.getGameForNavBySlug(T.game)),this.category=L,this.game=O?.shortName?.toLowerCase();const G=this.game?`_${this.game}`:"",F=this.category?`_${this.category}`:"",Y=`SELL${G}${F}`;this.mainPrefix=Y.toUpperCase().replaceAll("-","_"),G===""&&this.eventAggregator.publish(pe.sw),this.filteredContent={},this.pageContentArea.forEach(Z=>{Z.key?.startsWith(this.mainPrefix)&&(this.filteredContent[Z.key]=Z)}),this.seoQuadCards=this.getSeoQuadCards(),this.informationCards=this.getInformationCards(),this.quadContentBlockItems=this.getQuadContentBlockItems()}async getCurrentRouteDetails(){const T=this.router.currentInstruction;if(!T)return null;const{params:L}=T;return{params:L,category:T.config.name||T.fragment}}handleEventSubscriptions(){this.routeChangeSuccessSubscription=this.eventAggregator.subscribe("router:navigation:success",async()=>{this.key=this.router.currentInstruction.config.settings.keyName,await this.filterContentForCurrentGame()}),this.seoLoadingSubscription=this.eventAggregator.subscribe(pe.Xq,()=>{this.pageLoading=!0}),this.seoLoadedSubscription=this.eventAggregator.subscribe(pe.sw,()=>{this.pageLoading=!1}),this.adminViewSubscription=this.eventAggregator.subscribe("admin-view-updated",T=>{this.viewingAsAdmin=T.bool})}handleOpenDropdown(T){const L=document.getElementsByClassName("simplebar-content-wrapper")[0];L&&(L.style.overflow=T?"auto":"hidden scroll")}getContentByKey(T){return this.filteredContent[T]}detached(){this.routeChangeSuccessSubscription&&this.routeChangeSuccessSubscription.dispose(),this.adminViewSubscription&&this.adminViewSubscription.dispose(),this.seoLoadingSubscription&&this.seoLoadingSubscription.dispose(),this.seoLoadedSubscription&&this.seoLoadedSubscription.dispose(),this.pageLoadedSubscriber&&this.pageLoadedSubscriber.dispose()}get templateContentSeparation(){return this.templateSell&&this.templateSell.clientHeight>0?"seo-template-content-separation":""}get seoQuadAdminView(){return this.viewingAsAdmin?"seo-quad-template-admin-view":""}get seoTriInformationAdminView(){return this.viewingAsAdmin?"seo-tri-information-admin-view":""}templateBorderBottomLine(T){return this.shouldShowComponent(T)?"seo-template-border-bottom-line seo-template-content-separation":""}getSeoQuadCards(){return[{title:`${this.mainPrefix}_WCU_FIRST_TITLE`,description:`${this.mainPrefix}_WCU_FIRST_PARAGRAPH`,icon:`${this.mainPrefix}_WCU_FIRST_IMAGE`},{title:`${this.mainPrefix}_WCU_SECOND_TITLE`,description:`${this.mainPrefix}_WCU_SECOND_PARAGRAPH`,icon:`${this.mainPrefix}_WCU_SECOND_IMAGE`},{title:`${this.mainPrefix}_WCU_THIRD_TITLE`,description:`${this.mainPrefix}_WCU_THIRD_PARAGRAPH`,icon:`${this.mainPrefix}_WCU_THIRD_IMAGE`},{title:`${this.mainPrefix}_WCU_FOURTH_TITLE`,description:`${this.mainPrefix}_WCU_FOURTH_PARAGRAPH`,icon:`${this.mainPrefix}_WCU_FOURTH_IMAGE`}]}getInformationCards(){return[{icon:`${this.mainPrefix}_BANNER_FIRST_IMAGE`,title:`${this.mainPrefix}_BANNER_FIRST_TITLE`,description:`${this.mainPrefix}_BANNER_FIRST_PARAGRAPH`},{icon:`${this.mainPrefix}_BANNER_SECOND_IMAGE`,title:`${this.mainPrefix}_BANNER_SECOND_TITLE`,description:`${this.mainPrefix}_BANNER_SECOND_PARAGRAPH`},{icon:`${this.mainPrefix}_BANNER_THIRD_IMAGE`,title:`${this.mainPrefix}_BANNER_THIRD_TITLE`,description:`${this.mainPrefix}_BANNER_THIRD_PARAGRAPH`}]}getQuadContentBlockItems(){return[{title:`${this.mainPrefix}_GALLERY_ITEM_FIRST_TITLE`,description:`${this.mainPrefix}_GALLERY_ITEM_FIRST_DESCRIPTION`,icon:`${this.mainPrefix}_GALLERY_ITEM_FIRST_ICON`},{title:`${this.mainPrefix}_GALLERY_ITEM_SECOND_TITLE`,description:`${this.mainPrefix}_GALLERY_ITEM_SECOND_DESCRIPTION`,icon:`${this.mainPrefix}_GALLERY_ITEM_SECOND_ICON`},{title:`${this.mainPrefix}_GALLERY_ITEM_THIRD_TITLE`,description:`${this.mainPrefix}_GALLERY_ITEM_THIRD_DESCRIPTION`,icon:`${this.mainPrefix}_GALLERY_ITEM_THIRD_ICON`},{title:`${this.mainPrefix}_GALLERY_ITEM_FOURTH_TITLE`,description:`${this.mainPrefix}_GALLERY_ITEM_FOURTH_DESCRIPTION`,icon:`${this.mainPrefix}_GALLERY_ITEM_FOURTH_ICON`}]}shouldShowComponent(T){return this.viewingAsAdmin?!0:T?!Array.from(T.querySelectorAll("div")).some(L=>L.classList.contains("aurelia-hide")):!0}existsElement(T){try{return T.every(L=>this.filteredContent[L])}catch(L){return console.log(L),!1}}}
7276,ee=z(k.prototype,"renderSkeleton",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),z(k.prototype,"templateContentSeparation",[ce],Object.getOwnPropertyDescriptor(k.prototype,"templateContentSeparation"),k.prototype),z(k.prototype,"seoQuadAdminView",[J],Object.getOwnPropertyDescriptor(k.prototype,"seoQuadAdminView"),k.prototype),z(k.prototype,"seoTriInformationAdminView",[K],Object.getOwnPropertyDescriptor(k.prototype,"seoTriInformationAdminView"),k.prototype),k))||H)}),"pages/sellv2/shared-components/seo-card/seo-card":(function(W,f,e){"use strict";e.r(f),e.d(f,{SeoCard:function(){return k}});var s=e("aurelia-framework"),q=e(45246),be=e("aurelia-event-aggregator"),ye=e(33766),X,ae,j,ge,le,pe,de,ce;function J(ee,fe,z,ne){z&&Object.defineProperty(ee,fe,{enumerable:z.enumerable,configurable:z.configurable,writable:z.writable,value:z.initializer?z.initializer.call(ne):void 0})}function K(ee,fe,z,ne,B){var _={};return Object.keys(ne).forEach(function(T){_[T]=ne[T]}),_.enumerable=!!_.enumerable,_.configurable=!!_.configurable,("value"in _||_.initializer)&&(_.writable=!0),_=z.slice().reverse().reduce(function(T,L){return L(ee,fe,T)||T},_),B&&_.initializer!==void 0&&(_.value=_.initializer?_.initializer.call(B):void 0,_.initializer=void 0),_.initializer===void 0?(Object.defineProperty(ee,fe,_),null):_}function H(ee,fe){throw Error("Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.")}let k=(X=(0,s.inject)(q.H,ye.TemplateCheckSeparatorValueConverter,be.EventAggregator),X(ae=(j=class{constructor(fe,z){J(this,"title",ge,this),J(this,"iconPath",le,this),J(this,"text",pe,this),J(this,"viewingAsAdmin",de,this),J(this,"preventFontSizeInherit",ce,this),this.showComponent=!0,this.helper=fe,this.eventAggregator=z}async attached(){this.shouldShowComponent()}shouldShowComponent(){setTimeout(()=>{this.showComponent=this.seoCardItem?!Array.from(this.seoCardItem.querySelectorAll("div")).some(fe=>fe.classList.contains("aurelia-hide")):!0},250)}},ge=K(j.prototype,"title",[s.observable,s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),le=K(j.prototype,"iconPath",[s.observable,s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pe=K(j.prototype,"text",[s.observable,s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),de=K(j.prototype,"viewingAsAdmin",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ce=K(j.prototype,"preventFontSizeInherit",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),j))||ae)}),"pages/sellv2/shared-components/seo-information-card/seo-information-card":(function(W,f,e){"use strict";e.r(f),e.d(f,{SeoInformationCard:function(){return z}});var s=e("aurelia-framework"),q=e(45246),be,ye,X,ae,j,ge,le,pe,de,ce,J,K,H;function k(ne,B,_,T){_&&Object.defineProperty(ne,B,{enumerable:_.enumerable,configurable:_.configurable,writable:_.writable,value:_.initializer?_.initializer.call(T):void 0})}function ee(ne,B,_,T,L){var O={};return Object.keys(T).forEach(function(G){O[G]=T[G]}),O.enumerable=!!O.enumerable,O.configurable=!!O.configurable,("value"in O||O.initializer)&&(O.writable=!0),O=_.slice().reverse().reduce(function(G,F){return F(ne,B,G)||G},O),L&&O.initializer!==void 0&&(O.value=O.initializer?O.initializer.call(L):void 0,O.initializer=void 0),O.initializer===void 0?(Object.defineProperty(ne,B,O),null):O}function fe(ne,B){throw Error("Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.")}let z=(be=(0,s.inject)(q.H),ye=(0,s.computedFrom)("titleContent","paragraphContent","iconPath"),X=(0,s.computedFrom)("viewingAsAdmin"),be(ae=(j=class{constructor(B){k(this,"title",ge,this),k(this,"iconPath",le,this),k(this,"text",pe,this),k(this,"titleContent",de,this),k(this,"paragraphContent",ce,this),k(this,"width",J,this),k(this,"viewingAsAdmin",K,this),k(this,"preventFontSizeInherit",H,this),this.helper=B,this._id=Math.random().toString(36).substr(2,9)}get informationContent(){if(!this.paragraphContent)return"";const B=document.createElement("div");return B.innerHTML=this.paragraphContent,B.textContent||B.innerText||""}get showComponent(){const B=[this.titleContent,this.paragraphContent,this.iconPath];return B.some(_=>_!==null&&_.includes("Key:"))||!B.some(_=>_!==null&&_==="")}get seoInformationCardAdminView(){return this.viewingAsAdmin?"seo-information-card-admin-view":""}},ge=ee(j.prototype,"title",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),le=ee(j.prototype,"iconPath",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pe=ee(j.prototype,"text",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),de=ee(j.prototype,"titleContent",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ce=ee(j.prototype,"paragraphContent",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),J=ee(j.prototype,"width",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),K=ee(j.prototype,"viewingAsAdmin",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),H=ee(j.prototype,"preventFontSizeInherit",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ee(j.prototype,"showComponent",[ye],Object.getOwnPropertyDescriptor(j.prototype,"showComponent"),j.prototype),ee(j.prototype,"seoInformationCardAdminView",[X],Object.getOwnPropertyDescriptor(j.prototype,"seoInformationCardAdminView"),j.prototype),j))||ae)}),"pages/services/buy-services/buy-services":(function(W,f,e){"use strict";e.r(f),e.d(f,{BuyServices:function(){return s}});class s{}}),"pages/services/dynamic-service-page/dynamic-service-page":(function(W,f,e){"use strict";e.r(f),e.d(f,{DynamicServicePage:function(){return ge}});var s=e("aurelia-framework"),q=e(10220),be=e("aurelia-event-aggregator"),ye=e(39146),X=e(45246),ae,j;let ge=(ae=(0,s.inject)(q.Ix,be.EventAggregator,ye.F,X.H),ae(j=class{constructor(pe,de,ce,J){this.key=void 0,this.game=void 0,this.pageLoading=!0,this.router=pe,this.eventAggregator=de,this.productCategoryService=ce,this.helper=J}async activate(pe,de,ce){try{this.helper.addLoadingComponent("dynamic-service-seo"),this.params=pe,this.key=ce.config.settings.keyName,this.game=ce.config.settings.game,this.dynamicGameChange=this.eventAggregator.subscribe("dynamic-game-changed",J=>{this.key=`SERVICES_${J.dynamicGame?.shortName}`,this.game=J.dynamicGame}),this.pageContentAreaSubscriber=this.eventAggregator.subscribe("page-content-area",J=>{const K=J?.pageContentArea;J&&K&&(this.dynamicDisclaimer=K.find(H=>H.key===`${de.settings.keyName}_DISCLAIMER`))}),this.productCategoryService.getIdByName("services").then(J=>{this.productCategory=J,this.eventAggregator.publish("product-category-loaded",{categoryId:this.productCategory,type:"services"})}).catch(J=>{console.error("Error fetching product category ID:",J)})}catch(J){console.error("Error in activate:",J)}finally{this.helper.validateLoading("dynamic-service-seo")}}attached(){this.handleEventSubscriptions()}handleEventSubscriptions(){this.pageLoadedSubscriber=this.eventAggregator.subscribe("page-loaded",()=>{this.pageLoading=!1})}detached(){this.dynamicGameChange?.dispose(),this.pageContentAreaSubscriber?.dispose(),this.pageLoadedSubscriber?.dispose()}})||j)}),"pages/services/league-of-legends-boosting/league-of-legends-boosting":(function(W,f,e){"use strict";e.r(f),e.d(f,{LeagueOfLegendsBoosting:function(){return v}});var s=e("aurelia-framework"),q=e(10220),be=e(17349),ye=e(12922),X=e(31018),ae=e("aurelia-event-aggregator"),j=e(66666),ge=e(69117),le=e(39146),pe=e(41455),de=e(45246),ce=e(74737),J=e(6506),K=e(17285),H=e(9688),k=e(38489),ee=e(19806),fe=e(28674),z,ne,B,_,T,L,O,G,F,Y,Z,_e,U,M,p;function w(n,a,c,o){c&&Object.defineProperty(n,a,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(o):void 0})}function u(n,a,c,o,t){var i={};
7276return Object.keys(o).forEach(function(r){i[r]=o[r]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=c.slice().reverse().reduce(function(r,m){return m(n,a,r)||r},i),t&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(t):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(n,a,i),null):i}function h(n,a){throw Error("Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.")}let v=(z=(0,k.connectTo)({selector:{featureFlags:n=>n.state.pipe((0,fe.T)(a=>a.flags),(0,ee.F)())}}),ne=(0,s.inject)(s.BindingEngine,q.Ix,be.b,X.Q,j.w,ge.J,le.F,ye.X,ae.EventAggregator,pe.j,de.H,ce.f,J.Q,s.TaskQueue),z(B=ne(B=(_=class{constructor(a,c,o,t,i,r,m,g,d,y,C,R,S,N){this.keyName=void 0,this.loading=!0,this.price=void 0,this.addedToCart=!1,this.games=void 0,this.server=void 0,w(this,"search",T,this),this.boostingSectionsList=[{name:"Elo Boosting",show:!0},{name:"Win Boosting",show:!0},{name:"Placement Matches",show:!0},{name:"Account Leveling",show:!0}],this.servers=["NA","EUNE","EUW","LAN","LAS","OCE","RU","TR"],this.ranks=["Choose One","Iron","Bronze","Silver","Gold","Platinum","Emerald","Diamond","Master","GrandMaster","Challenger"],this.divisions=["IV","III","II","I"],this.lpRanges=["0-20","21-40","41-60","61-80","81-100"],this.queueTypes=["Solo","Duo","Flex Queue"],this.expectedRankList=[{name:"Choose One",display:!1},{name:"Iron",display:!0},{name:"Bronze",display:!0},{name:"Silver",display:!0},{name:"Gold",display:!0},{name:"Platinum",display:!0},{name:"Emerald",display:!0},{name:"Diamond",display:!0},{name:"Master",display:!0},{name:"GrandMaster",display:!0},{name:"Challenger",display:!0}],this.expectedDivisionList=[{name:"IV",display:!0},{name:"III",display:!0},{name:"II",display:!0},{name:"I",display:!0}],this.currentServer="NA",w(this,"currentRank",L,this),w(this,"expectedRank",O,this),w(this,"currentDivision",G,this),w(this,"expectedDivision",F,this),w(this,"queueSelected",Y,this),w(this,"currentLpRange",Z,this),w(this,"placementMatchWins",_e,this),w(this,"winBoostingWins",U,this),w(this,"accountStartLevel",M,this),w(this,"accountEndLevel",p,this),this.width=void 0,this.firstState=!0,this.currentSectionOpened="eloBoostingSection",this.allTabsClosed=!1,this.priceModification=void 0,this.notificationShowed=!0,this.productCategory=void 0,this.priceIsValid=()=>this.price>0,this.handleCheckoutButton=async()=>{if(!await this.sessionService.getProfile()){this.router.navigate(`/sign-in?redirect_url=${location.pathname}`);return}let te="/cart";const D=(await this.sessionService.getCart())?.find(I=>I.isSell);D&&this.featureFlags.get(H.$v.ORDER_CHAT_CART_FEATURE)&&(te=`/customer-portal/swap/chat/${D.orderId}`),this.router.navigate(te)},this.sessionService=t,this.toastService=R,this.router=c,this.helper=C,this.bindingEngine=a,this.productService=o,this.gameService=i,this.priceModificationChecker=r,this.servicePricingService=g,this.eventAggregator=d,this.productCategoryService=m,this.websiteService=y,this.helper.getResolutions(this),this.orderService=S,this.taskQueue=N}async activate(a,c,o){this.helper.addLoadingComponent("lol-boosting");try{this.keyName=o.config.settings.keyName;const t=globalThis.location.pathname.split("/").filter(Boolean);this.routeSlug=t.slice(-2).join("/"),this.dataLoadingPromise=new Promise(i=>{this.taskQueue.queueMicroTask(async()=>{try{const[r,m,g]=await Promise.all([this.productCategoryService.getNavCategory("services","CG"),this.productCategoryService.getIdByName("Services"),this.productService.getProductsWithFilter("inStockLolBoosting")]);this.game=r.gameForNav.find(d=>d.shortName==="LOLBOOSTING"),this.productCategory=m,this.boostingProducts=g,i()}catch(r){throw console.error("Error loading data:",r),r}})})}catch(t){throw console.error("Error in activate:",t),t}}async attached(){try{if(await this.dataLoadingPromise,!this.game||!this.productCategory||!this.boostingProducts){console.warn("Required data not available");return}const a=this.router.currentInstruction.config.route;if(a.includes("childRoute"))return;const[c,o,t]=await Promise.all([this.websiteService.getRouteOrDefault("Services"),Promise.resolve(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth),this.priceModificationChecker.toView(this.game.id,5)]);if(this.game.slug[0]!==a){const i=`/${c}/${this.game.slug[0]}`;this.helper.addPrerenderMetaTagForRedirect(i),this.router.navigate(i)}this.servicesPageRoute=c,this.width=o,this.priceModification=t,this.bindAmmountWinProperty(),this.handleEventSubscriptions(),this.eventAggregator.publish("loading-running",{loading:!1})}catch(a){throw console.error("Error in attached:",a),a}finally{this.helper.validateLoading("lol-boosting")}}detached(){this.game?.slug[0]===this.routeSlug&&this.helper.removePrerenderMetaTagForRedirect(),this.searchSubscriber?.dispose(),this.sizeChanged?.dispose()}handleEventSubscriptions(){this.searchSubscriber=this.eventAggregator.subscribe("search-updated",a=>{this.search=a.search,this.filterBoostingSections(),this.resetBoostingSections()}),this.sizeChanged=this.eventAggregator.subscribe("size-changed",a=>{this.width=a.width})}filterBoostingSections(){if(this.boostingSectionsList){let a=0;for(const c of this.boostingSectionsList)this.search?(c.show=c.name.toLowerCase().includes(this.search.toLowerCase()),c.show&&a++):(c.show=!0,a++);a===0&&!this.notificationShowed?(this.notificationShowed=!0,this.toastService.showToast(K.Ck.INFO,"No boosting service found, refresh the page or contact live chat for assist.")):a>0&&(this.notificationShowed=!1)}}bindAmmountWinProperty(){this.bindingEngine.propertyObserver(this.placementMatchWins,"selectedQuantity").subscribe(()=>this.calculatePrice()),this.bindingEngine.propertyObserver(this.winBoostingWins,"selectedQuantity").subscribe(()=>this.calculatePrice()),this.bindingEngine.propertyObserver(this.accountStartLevel,"selectedQuantity").subscribe(()=>this.calculatePrice()),this.bindingEngine.propertyObserver(this.accountEndLevel,"selectedQuantity").subscribe(()=>this.calculatePrice())}openBoostSection(a,c,o){if(!this.animating){const t=document.getElementsByClassName("boost-section-box"),i=document.getElementsByClassName("arrow-boost-section"),r=a.classList.contains("db-open")||a.classList.contains("db-open-tablet");for(const[m,g]of Array.from(t).entries())g.classList.remove("db-open","arrow-open"),this.width<=this.desktop&&g.classList.remove("db-open-tablet"),g.classList.add("arrow-close"),i[m].classList.remove("arrow-open"),i[m].classList.add("arrow-close");this.currentSectionOpened=o.getAttribute("element.ref"),r?(this.allTabsClosed=!0,this.width<=this.desktop&&a.classList.remove("db-open-tablet"),a.classList.remove("db-open"),c.classList.remove("arrow-open"),c.classList.add("arrow-close"),o.classList.add("overflow-hidden"),o.classList.remove("overflow-visible"),this.price=0):(this.firstState=!1,this.allTabsClosed=!1,this.width<=this.desktop&&a.classList.add("db-open-tablet"),a.classList.add("db-open"),c.classList.add("arrow-open"),c.classList.remove("arrow-close"),this.resetBoostingSections(o),this.animating=!0,setTimeout(()=>{o.classList.remove("overflow-hidden"),o.classList.add("overflow-visible"),this.animating=!1},300),this.price=0)}}resetBoostingSections(a){a&&(a!==this.winBoostingSection&&(this.winBoostingSection.classList.remove("overflow-hidden"),this.winBoostingSection.classList.remove("overflow-visible")),a!==this.eloBoostingSection&&(this.eloBoostingSection.classList.remove("overflow-hidden"),this.eloBoostingSection.classList.remove("overflow-visible")),a!==this.placementMatchesBoostingSection&&(this.placementMatchesBoostingSection.classList.remove("overflow-hidden"),this.placementMatchesBoostingSection.classList.remove("overflow-visible")),a!==this.accountLevelingBoostingSection&&(this.accountLevelingBoostingSection.classList.remove("overflow-hidden"),this.accountLevelingBoostingSection.classList.remove("overflow-visible")),this.calculatePrice())}currentRankChanged(){this.checkSameRankOrLower()?this.currentDivision==="I"||this.currentRank.includes("Master")||this.currentRank.includes("GrandMaster")?(this.expectedRankList=this.hideAllBeforeElement(this.expectedRankList,this.currentRank,0),setTimeout(()=>{this.expectedRank=this.getNextInList(this.expectedRankList,this.currentRank)},300),(this.currentRank.includes("Master")||this.currentRank.includes("GrandMaster"))&&(this.currentDivision="I",this.currentLpRange="0-20")):(this.expectedRankList=this.hideAllBeforeElement(this.expectedRankList,this.currentRank,1),setTimeout(()=>{this.expectedRank=this.currentRank},300)):this.currentDivision==="I"?this.expectedRankList=this.hideAllBeforeElement(this.expectedRankList,this.currentRank,0):this.expectedRankList=this.hideAllBeforeElement(this.expectedRankList,this.currentRank,1),this.calculatePrice()}expectedRankChanged(){this.checkSameRankOrLower()?(this.expectedDivisionList=this.hideAllBeforeElement(this.expectedDivisionList,this.currentDivision,0),setTimeout(()=>{this.expectedDivision=this.getNextInList(this.expectedDivisionList,this.currentDivision)},300)):(this.expectedDivisionList=this.hideAllBeforeElement(this.expectedDivisionList,"IV",1),(this.expectedRank.includes("Master")||this.expectedRank.includes("GrandMaster")||this.expectedRank.includes("Challenger"))&&setTimeout(()=>{this.expectedDivision=this.expectedDivisionList[3].name},300)),this.calculatePrice()}currentDivisionChanged(){this.currentRank===this.expectedRank&&this.currentDivision==="I"?(this.expectedRankList=this.hideAllBeforeElement(this.expectedRankList,this.currentRank,0),setTimeout(()=>{this.expectedRank=this.getNextInList(this.expectedRankList,this.currentRank)},300)):this.currentRank===this.expectedRank&&this.checkSameDivisionOrLower()?(this.expectedDivisionList=this.hideAllBeforeElement(this.expectedDivisionList,this.currentDivision,0),setTimeout(()=>{this.expectedDivision=this.getNextInList(this.expectedDivisionList,this.currentDivision)},300)):(this.expectedRankList=this.hideAllBeforeElement(this.expectedRankList,this.currentRank,1),this.checkSameRankOrLower()&&(this.expectedDivisionList=this.hideAllBeforeElement(this.expectedDivisionList,this.currentDivision,0))),this.calculatePrice()}expectedDivisionChanged(){this.calculatePrice()}queueSelectedChanged(){this.calculatePrice()}currentLpRangeChanged(){this.calculatePrice()}async calculatePrice(){if(this.currentRank!=="Choose One"||this.currentSectionOpened==="accountLevelingBoostingSection"){const a=this.getProductIdBaseOnSelection(),c=this.getSkillingCategoryName(),o=this.currentSectionOpened==="placementMatchesBoostingSection"?this.placementMatchWins.selectedQuantity:this.currentSectionOpened==="winBoostingSection"?this.winBoostingWins.selectedQuantity:0;if(this.data={gameId:this.game.id,productId:a,productName:c,currentRankName:this.generateRankName(this.currentRank,this.currentDivision,c),expectedRankName:this.generateRankName(this.expectedRank,this.expectedDivision,c),currentLP:this.splitAfterSpace(this.currentLpRange),amountOfWins:o??0,accountLevelStart:this.accountStartLevel.selectedQuantity??0,accountLevelEnd:this.accountEndLevel.selectedQuantity??0},this.validationBasedOnBoostingSection(!1)){this.data.currentRankLevel=this.getBoostingLevelBasedOnNameAndSection(this.data.currentRankName,c)?this.getBoostingLevelBasedOnNameAndSection(this.data.currentRankName,c):0,this.data.expectedRankLevel=this.getBoostingLevelBasedOnNameAndSection(this.data.expectedRankName,c)?this.getBoostingLevelBasedOnNameAndSection(this.data.expectedRankName,c):0;const t=await this.servicePricingService.getEstimatesForLeague(this.data);this.price=this.priceModification?t?.price+t?.price*(this.priceModification.percentage/100):t?.price,this.updatedDate=t.updatedDate}}}async addToCart(){if(!this.validationBasedOnBoostingSection(!0))return;if(!this.priceIsValid()){this.toastService.showToast(K.Ck.INFO,"It seems that the skills you want has no price. Please fix and retry.");return}const c=await this.sessionService.getCart();if(await this.helper.handleAccountOrderValidation(c,this.orderService,K.g1.Services,!1))return;const t=this.getProductIdBaseOnSelection(),i=this.getSkillingCategoryName();
7276let r=`${this.getSkillingCategoryName()} | `,m=this.generateRankName(this.currentRank,this.currentDivision,i),g=this.generateRankName(this.expectedRank,this.expectedDivision,i),d=`icons/lol-ranks/${this.currentRank.toLowerCase()}.svg`,y="0";this.currentSectionOpened==="eloBoostingSection"&&(m=`${this.generateRankName(this.currentRank,this.currentDivision,i)} at ${this.splitAfterSpace(this.currentLpRange)}LP`,g=`${this.generateRankName(this.expectedRank,this.expectedDivision,i)}`),this.currentSectionOpened==="winBoostingSection"&&(m=`${this.generateRankName(this.currentRank,this.currentDivision,i)} at ${this.splitAfterSpace(this.currentLpRange)}LP`,y=`${this.winBoostingWins.selectedQuantity}`),this.currentSectionOpened==="placementMatchesBoostingSection"&&(m=`${this.generateRankName(this.currentRank,this.currentDivision,i)}`,y=`${this.placementMatchWins.selectedQuantity}`),this.currentSectionOpened==="accountLevelingBoostingSection"&&(m=`Level ${this.accountStartLevel.selectedQuantity}`,g=`Level ${this.accountEndLevel.selectedQuantity}`,d="icons/games/lol-small.svg"),this.currentSectionOpened==="eloBoostingSection"||this.currentSectionOpened==="accountLevelingBoostingSection"?r+=`From ${m} to ${g} | (${this.currentServer})`:r+=`${y} Win on ${m} | (${this.currentServer})`;const C={name:r,serviceFullName:r,productId:t,updatedDate:this.updatedDate,quantity:1,leagueEstimates:this.data,price:this.price,isService:!0,gameShortName:this.game.shortName,productCategoryId:this.productCategory.id,productCategoryName:this.productCategory.name,gameId:this.game.id,parentGameId:this.game.parentGameId,imagePath:d};await this.sessionService.storeCartItem(C),this.addedToCart=!0,this.toastService.showToast(K.Ck.SUCCESS,"Added Skilling Service(s) to Cart.")}validationBasedOnBoostingSection(a){switch(this.currentSectionOpened){case"eloBoostingSection":return this.currentRank!==this.ranks[0]&&!this.data.expectedRankName.includes("undefined")&&this.data.currentRankName!==this.data.expectedRankName?!0:(a&&this.toastService.showToast(K.Ck.ERROR,"Please select a starting rank."),!1);case"winBoostingSection":case"placementMatchesBoostingSection":return this.currentRank!==this.ranks[0]?!0:(a&&this.toastService.showToast(K.Ck.ERROR,"Please select a starting rank."),!1);case"accountLevelingBoostingSection":return parseInt(this.accountStartLevel.selectedQuantity)<parseInt(this.accountEndLevel.selectedQuantity)?!0:(a&&this.toastService.showToast(K.Ck.ERROR,"The starting level must be lower than ending level"),!1);default:return!1}}splitAfterSpace(a){return a.split("-")[0]}generateRankName(a,c,o){return a?.includes("Master")||a?.includes("GrandMaster")||a?.includes("Challenger")||o.includes("Placement Matches")?a:`${a} ${c}`}getProductIdBaseOnSelection(){return this.boostingProducts.find(a=>a.name===this.getSkillingCategoryName())?.id}getSkillingCategoryName(){let a="";switch(this.currentSectionOpened){case"eloBoostingSection":a="Elo Boosting";break;case"winBoostingSection":a="Win Boosting";break;case"placementMatchesBoostingSection":a="Placement Matches";break;case"accountLevelingBoostingSection":return"Account Leveling";default:a="";break}return`${a} - ${this.queueSelected}`}hideAllBeforeElement(a,c,o){for(const i of a)i.display=!0;const t=a.findIndex(i=>i.name===c)-o;for(let i=t;i>=0;i--)a[i].display=!1;return a}checkSameRankOrLower(){return this.ranks.findIndex(a=>a===this.currentRank)>=this.ranks.findIndex(a=>a===this.expectedRank)}checkSameDivisionOrLower(){return this.divisions.findIndex(a=>a===this.currentDivision)>=this.divisions.findIndex(a=>a===this.expectedDivision)}getNextInList(a,c){return a[a.findIndex(o=>o.name===c)+1]?.name}getBoostingLevelBasedOnNameAndSection(a,c){const o=[{value:1,name:"Iron IV"},{value:2,name:"Iron III"},{value:3,name:"Iron II"},{value:4,name:"Iron I"},{value:5,name:"Bronze IV"},{value:6,name:"Bronze III"},{value:7,name:"Bronze II"},{value:8,name:"Bronze I"},{value:9,name:"Silver IV"},{value:10,name:"Silver III"},{value:11,name:"Silver II"},{value:12,name:"Silver I"},{value:13,name:"Gold IV"},{value:14,name:"Gold III"},{value:15,name:"Gold II"},{value:16,name:"Gold I"},{value:17,name:"Platinum IV"},{value:18,name:"Platinum III"},{value:19,name:"Platinum II"},{value:20,name:"Platinum I"},{value:21,name:"Emerald IV"},{value:22,name:"Emerald III"},{value:23,name:"Emerald II"},{value:24,name:"Emerald I"},{value:25,name:"Diamond IV"},{value:26,name:"Diamond III"},{value:27,name:"Diamond II"},{value:28,name:"Diamond I"},{value:29,name:"Master"},{value:30,name:"GrandMaster"},{value:31,name:"Challenger"}],t=[{value:1,name:"Iron"},{value:2,name:"Bronze"},{value:3,name:"Silver"},{value:4,name:"Gold"},{value:5,name:"Platinum"},{value:6,name:"Emerald"},{value:7,name:"Diamond"},{value:8,name:"Master"},{value:9,name:"GrandMaster"},{value:10,name:"Challenger"}],i=[{value:1,name:"1"},{value:2,name:"2"},{value:3,name:"3"},{value:4,name:"4"},{value:5,name:"5"},{value:6,name:"6"},{value:7,name:"7"},{value:8,name:"8"},{value:9,name:"9"},{value:10,name:"10"},{value:11,name:"11"},{value:12,name:"12"},{value:13,name:"13"},{value:14,name:"14"},{value:15,name:"15"},{value:16,name:"16"},{value:17,name:"17"},{value:18,name:"18"},{value:19,name:"19"},{value:20,name:"20"},{value:21,name:"21"},{value:22,name:"22"},{value:23,name:"23"},{value:24,name:"24"},{value:25,name:"25"},{value:26,name:"26"},{value:27,name:"27"},{value:28,name:"28"},{value:29,name:"29"},{value:30,name:"30"}];if(a&&c)return c.includes("Elo")||c.includes("Win")?o.find(r=>r.name===a)?.value:c.includes("Placement")?t.find(r=>r.name===a)?.value:i.find(r=>r.name===a)?.value}},T=u(_.prototype,"search",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=u(_.prototype,"currentRank",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"Choose One"}}),O=u(_.prototype,"expectedRank",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"Choose One"}}),G=u(_.prototype,"currentDivision",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"IV"}}),F=u(_.prototype,"expectedDivision",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"IV"}}),Y=u(_.prototype,"queueSelected",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"Solo"}}
7276),Z=u(_.prototype,"currentLpRange",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"0-20"}}),_e=u(_.prototype,"placementMatchWins",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{minimum:1,maximum:10,selectedQuantity:1}}}),U=u(_.prototype,"winBoostingWins",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{minimum:1,maximum:20,selectedQuantity:1}}}),M=u(_.prototype,"accountStartLevel",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{minimum:1,maximum:998,selectedQuantity:1}}}),p=u(_.prototype,"accountEndLevel",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{minimum:1,maximum:999,selectedQuantity:1}}}),_))||B)||B)}),"pages/services/new-world-powerleveling/new-world-powerleveling":(function(W,f,e){"use strict";e.r(f),e.d(f,{NewWorldPowerleveling:function(){return p}});var s=e("aurelia-framework"),q=e(10220),be=e(66666),ye=e(17349),X=e(18264),ae=e(68643),j=e(72148),ge=e(31018),le=e(12922),pe=e(69117),de=e(2959),ce=e("aurelia-event-aggregator"),J=e(39146),K=e(58846),H=e(45246),k=e(41455),ee=e(74737),fe=e(6506),z=e(17285),ne=e(8706),B=e(9688),_=e(38489),T=e(19806),L=e(28674),O,G,F,Y,Z;function _e(w,u,h,v){h&&Object.defineProperty(w,u,{enumerable:h.enumerable,configurable:h.configurable,writable:h.writable,value:h.initializer?h.initializer.call(v):void 0})}function U(w,u,h,v,n){var a={};return Object.keys(v).forEach(function(c){a[c]=v[c]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=h.slice().reverse().reduce(function(c,o){return o(w,u,c)||c},a),n&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(n):void 0,a.initializer=void 0),a.initializer===void 0?(Object.defineProperty(w,u,a),null):a}function M(w,u){throw Error("Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.")}let p=(O=(0,_.connectTo)({selector:{featureFlags:w=>w.state.pipe((0,L.T)(u=>u.flags),(0,T.F)())}}),G=(0,s.inject)(s.BindingEngine,q.Ix,ye.b,be.w,X.J,j.h,ge.Q,pe.J,de.j,J.F,ce.EventAggregator,le.X,ae.B,H.H,k.j,ee.f,fe.Q,ne.P),O(F=G(F=(Y=class{constructor(u,h,v,n,a,c,o,t,i,r,m,g,d,y,C,R,S,N){this.keyName=void 0,this.games=void 0,this.gameModes=void 0,this.product=void 0,this.currentGoldPrice=void 0,this.currentGame=void 0,this.currentGameMode=void 0,_e(this,"search",Z,this),this.accountName=void 0,this.account=void 0,this.totalPrice=0,this.totalGold=0,this.totalGoldPrice=0,this.totalLevelCurrent=0,this.totalLevelExpected=0,this.haveGold=!1,this.skillsBeingLeveled=new Map,this.addedToCart=!1,this.loading=!1,this.sortColumn=["skills","price","gold"],this.productsString="Select a product",this.skillsCategory=[],this.priceModification=void 0,this.notificationShowed=!0,this.products=void 0,this.productCategory=void 0,this.auxSkills=void 0,this.productsStringTooltip=void 0,this.productsStringTooltipValue=void 0,this.pageLoading=!0,this.dataLoadingPromise=void 0,this.getNameById=te=>this.productSubCategories.find(Ee=>Ee.id===te)?.name,this.handleCheckoutButton=async()=>{if(!await this.sessionService.getProfile()){this.router.navigate(`/sign-in?redirect_url=${location.pathname}`);return}let te="/cart";const D=(await this.sessionService.getCart())?.find(I=>I.isSell);D&&this.featureFlags.get(B.$v.ORDER_CHAT_CART_FEATURE)&&(te=`/customer-portal/swap/chat/${D.orderId}`),this.router.navigate(te)},this.sessionService=o,this.toastService=R,this.router=h,this.helper=y,this.bindingEngine=u,this.productService=v,this.gameService=n,this.skillingCategoryService=a,this.gameModeService=c,this.eventAggregator=m,this.priceModificationChecker=t,this.tooltipArrowStyling=i,this.servicePricingService=g,this.productCategoryService=r,this.productSubCategoryService=d,this.websiteService=C,this.baseAwsEndpoint=(0,K.Ty)("icons"),this.productAwsEndpoint=(0,K.Ty)("products"),this.helper.getResolutions(this),this.orderService=S,this.taskQueue=N}async activate(u,h,v){this.helper.addLoadingComponent("powerleveling");try{this.pageContentAreaSubscriber=this.eventAggregator.subscribe("page-content-area",a=>{const c=a.pageContentArea;c&&(this.dynamicDisclaimer=c.find(o=>o.key===`${h.settings.keyName}_DISCLAIMER`))});
7276const n=globalThis.location.pathname.split("/").filter(Boolean);this.routeSlug=n.slice(-2).join("/"),this.keyName=v.config.settings.keyName,this.dataLoadingPromise=new Promise(a=>{this.taskQueue.queueMicroTask(async()=>{try{const c=await this.productCategoryService.getNavCategory("services","CG");this.games=c.gameForNav;const[o,t]=await Promise.all([this.productCategoryService.getIdByName("Services"),this.gameModeService.getGameModeByGameId(this.games.find(i=>i.shortName==="NW")?.id)]);this.productCategory=o,this.gameModes=t,this.currentGameMode=this.gameModes?.[0],a()}catch(c){throw console.error("Error loading data:",c),c}})})}catch(n){throw console.error("Error in activate:",n),n}}async attached(){try{if(await this.dataLoadingPromise,!this.games||!this.productCategory||!this.gameModes){console.warn("Required data not available");return}this.selectedGame=this.games.find(a=>a.shortName==="NWPW"),this.selectedGame.id=parseInt(this.selectedGame.id);const[u,h,v,n]=await Promise.all([this.websiteService.getRouteOrDefault("Services"),this.productService.getProductsWithFilter("inStockNWPW"),this.productSubCategoryService.getProductSubCategories(),Promise.resolve(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)]);this.servicesPageRoute=u,this.skillsProducts=h,this.productSubCategories=v.filter(a=>a.gameId===this.selectedGame.id),this.width=n,this.handleEventSubscriptions(),await this.filterByRoute(),this.resetAllSkills(),this.calculateTotals(),setTimeout(()=>{this.helper.addFilterArrow(document)},50)}catch(u){throw console.error("Error in attached:",u),u}finally{this.helper.validateLoading("powerleveling")}}detached(){this.selectedGame?.slug[0]===this.routeSlug&&this.helper.removePrerenderMetaTagForRedirect(),this.gameModeSubscriber?.dispose(),this.searchSubscriber?.dispose(),this.sizeChanged?.dispose(),this.adminViewSubscription?.dispose(),this.pageContentAreaSubscriber?.dispose()}handleEventSubscriptions(){this.gameModeSubscriber=this.eventAggregator.subscribe("game-mode-updated",u=>{this.currentGameMode=u.gameMode,this.currentGameMode&&this.currentGame&&this.reloadSkills()}),this.searchSubscriber=this.eventAggregator.subscribe("search-updated",u=>{this.search=u.search,this.filterSkills()}),this.sizeChanged=this.eventAggregator.subscribe("size-changed",u=>{this.width=u.width,this.setProductsSelectedName()}),this.adminViewSubscription=this.eventAggregator.subscribe("admin-view-updated",u=>{this.viewingAsAdmin=u.bool}),this.pageLoadedSubscriber=this.eventAggregator.subscribe("page-loaded",()=>{this.pageLoading=!1})}async filterByRoute(){this.loading=this.pageLoading=!0,this.eventAggregator.publish("loading-running",{loading:!0});try{if(this.route=this.router.currentInstruction.config.route,this.route.includes("childRoute"))return;if(this.currentGame=this.games.find(n=>n.shortName==="NW"),this.selectedGame.slug[0]!==this.route){const n=`/${this.servicesPageRoute}/${this.selectedGame.slug[0]}`;this.helper.addPrerenderMetaTagForRedirect(n),this.router.navigate(n)}this.parentGame=this.games.find(n=>parseInt(n.id)===parseInt(this.selectedGame.parentGameId));const[u,h,v]=await Promise.all([this.priceModificationChecker.toView(this.selectedGame.id,5),this.priceModificationChecker.toView(this.selectedGame.parentGameId,1),this.productService.getInHouseCurrencyProduct(this.selectedGame.parentGameId)]);this.priceModification=u,this.goldPriceModification=h,this.products=v,this.product=this.products.find(n=>n.seller===null&&n.sellerId===null),this.totalGoldPrice=this.goldPriceModification?this.product?.price+this.product?.price*(this.goldPriceModification.percentage/100):this.product?.price,this.currentGameMode=this.gameModes[0],await this.reloadSkills(),this.buildSkillsCategories()}catch(u){throw console.error("Error in filterByRoute:",u),u}finally{this.loading=!1,this.eventAggregator.publish("loading-running",{loading:!1})}}async reloadSkills(){try{const[u,h]=await Promise.all([this.skillingCategoryService.getByGame(this.selectedGame?.parentGameId),this.productService.getAllUniqueSkillsForGame(this.selectedGame?.shortName,0)]);
7276this.skillCategories=u,this.skills=h,this.skills.sort((v,n)=>(n.position!==null)-(v.position!==null)||v.position-n.position),this.skills.forEach(v=>{v.minimum=1,v.maximum=v.skillName?.toLowerCase()?.includes("level")&&this.getNameById(v.productSubCategoryId)?.toLowerCase()?.includes("character")?60:this.getNameById(v.productSubCategoryId)?.toLowerCase()?.includes("weapon mastery")?20:200}),this.resetAllSkills(),this.bindSkillsProperty(),this.filterSkills()}catch(u){throw console.error("Error in reloadSkills:",u),u}}async filterSkills(){this.loading=!0;try{if(this.skillsCategory&&this.skills){let u=!1;for(const h of this.skillsCategory){this.search?h.show=h.name.toLowerCase().includes(this.search.toLowerCase()):h.show=!0;for(const v of h.group)v.displayPrice=v.price,this.currentGameMode?.skillMarkup&&(v.displayPrice=v.price*(1+this.currentGameMode.skillMarkup/100),v.displayPrice=(Math.round(v.displayPrice*100)/100).toFixed(2))}u=this.skillsCategory.some(h=>h.show),!u&&!this.notificationShowed?(this.notificationShowed=!0,this.toastService.showToast(z.Ck.INFO,"No skills found, refresh the page or contact live chat for assist.")):u&&(this.notificationShowed=!1)}}catch(u){console.error("Error in filterSkills:",u),this.toastService.showToast(z.Ck.ERROR,"Error filtering skills. Please try again.")}finally{this.loading=!1}}buildSkillsCategories(){for(const u of this.productSubCategories)this.skills.find(h=>h.productSubCategoryId===u.id)&&this.skillsCategory.push(this.getArrayObjectsWithValueEqualTo(u))}getArrayObjectsWithValueEqualTo(u){const h={name:"",group:[],show:!1};for(const v of this.skills)v.productSubCategoryId===u.id&&(h.name=u.name,h.iconPath=u.iconPath,h.show=!0,h.group.push(v));return h}openSkillCategory(u,h){const v=document.getElementsByClassName("category-box"),n=document.getElementsByClassName("arrow-skill"),a=parseInt(u.style.maxHeight.slice(0,-2))>0;for(const[c,o]of Array.from(v).entries())o.style.maxHeight=0,n[c].classList.remove("arrow-open"),n[c].classList.add("arrow-close");a?(u.style.maxHeight=0,h.classList.remove("arrow-open"),h.classList.add("arrow-close")):(u.style.maxHeight=u.childElementCount/2*70+"px",h.classList.add("arrow-open"),h.classList.remove("arrow-close"))}bindSkillsProperty(){this.skills.forEach(u=>{this.bindingEngine.propertyObserver(u,"startLevel").subscribe(()=>this.skillChanged(u,"startLevel")),this.bindingEngine.propertyObserver(u,"endLevel").subscribe(()=>this.skillChanged(u,"endLevel"))})}resetAllSkills(){this.skills?.forEach(u=>{u.startLevel=1,u.endLevel=1,u.price=0,u.goldRequired=0,u.productSubCategoryName=this.getNameById(u.productSubCategoryId),u.gameShortName=this.selectedGame.shortName})}async skillChanged(u){const h=Number(u.startLevel),v=Number(u.endLevel);if(h<v){const n=await this.servicePricingService.getEstimates("NWPW",u.skillName,h,v,this.currentGame?.id,-1,-1);u.goldRequired=n.estimateGoldRequired,u.price=this.priceModification?n.price+n.price*(this.priceModification.percentage/100):n.price,u.updatedDate=n.updatedDate,this.skillsBeingLeveled.set(u.skillName,{skillName:u.skillName,startLevel:h,endLevel:v,price:n.price,gameId:this.currentGame.id,updatedDate:u.updatedDate,gameModeId:this.currentGameMode.id,imagePath:u.imagePath})}else u.goldRequired=0,u.price=0,this.skillsBeingLeveled.delete(u.skillName);this.setProductsSelectedName(),this.calculateTotals()}calculateTotals(){this.loading=!0;try{this.totalPrice=0,this.totalGold=0,this.totalLevelCurrent=0,this.totalLevelExpected=0;for(const u of this.skills)this.totalPrice+=u.price,this.totalLevelCurrent+=u.startLevel?parseInt(u.startLevel,10):0,this.totalLevelExpected+=u.endLevel?parseInt(u.endLevel,10):0,this.totalGold+=u.goldRequired;this.auxSkills=this.skills}catch(u){console.error("Error calculating totals:",u),this.toastService.showToast(z.Ck.ERROR,"Error calculating totals. Please try again.")}finally{this.loading=!1}}skillsAreValid(){let u=!0;return this.skills.forEach(({price:h,skillName:v,productSubCategoryId:n,startLevel:a,endLevel:c})=>{a=parseInt(a),c=parseInt(c);const o=v?.toLowerCase()?.includes("level")&&this.getNameById(n)?.toLowerCase()?.includes("character")?60:this.getNameById(n)?.toLowerCase()?.includes("weapon mastery")?20:200;(a<1||a>c||c>o||c<a||a>=1&&c>1&&a!==c&&h<=0)&&(u=!1)}),u}async addToCart(){if(!this.skillsAreValid()){this.skills.find(v=>!v.price||v.price===0)?this.toastService.showToast(z.Ck.INFO,"It seems that the skills you want has no price. Please fix and retry."):this.toastService.showToast(z.Ck.INFO,"It seems that the skills you want leveled are entered incorrectly. Please fix and retry.");return}if(this.skillsBeingLeveled.size<1){this.toastService.showToast(z.Ck.INFO,"No skills were selected.");return}const u=await this.sessionService.getCart();if(!await this.helper.handleAccountOrderValidation(u,this.orderService,z.g1.Services,!1))try{for(const v of this.skillsBeingLeveled.values()){const n=`${this.parentGame?.shortName??this.currentGame.shortName} | ${v.skillName} [${v.startLevel} - ${v.endLevel}] ${this.currentGameMode.name!=="Regular"?`| ${this.currentGameMode.name}`:""}`,a={name:n,serviceFullName:n,character:this.accountName,skills:[v],quantity:1,price:v.price,updatedDate:v.updatedDate,isService:!0,gameId:this.selectedGame.id,parentGameId:this.parentGame.id,productId:this.skillsProducts.find(c=>c.name===v.skillName&&c.game.shortName.includes(this.currentGame.shortName)).id,gameShortName:this.selectedGame.shortName,gameModeId:this.currentGameMode.id,productCategoryId:this.productCategory.id,productCategoryName:this.productCategory.name,imagePath:v.imagePath,difficultyId:-1};await this.sessionService.storeCartItem(a)}this.addedToCart=!0,this.totalGold>0&&this.addGoldToCart(),this.toastService.showToast(z.Ck.SUCCESS,"Added Skilling Service(s) to Cart.")}catch(v){console.log(v),this.toastService.showToast(z.Ck.ERROR,"Something went wrong! Please contact the Livechat.")}}async addGoldToCart(){if(!this.haveGold){this.product.quantity=parseInt(this.totalGold),this.product.productId=this.product?.id;try{const h=(await this.sessionService.getCart())?.find(v=>v.id===this.product.id);h?(this.product.quantity=this.helper.convertNumberWithoutComma(h.quantity,"float")+parseFloat(this.totalGold),await this.sessionService.updateCartItem(this.product,!0)):this.sessionService.storeCartItem(this.product),this.toastService.showToast(z.Ck.SUCCESS,"Added Gold to Cart.")}catch(u){console.log(u),this.toastService.showToast(z.Ck.ERROR,"Something went wrong! Please contact the Livechat.")}}}openLivechat(){window.Intercom&&window.Intercom("show")}determineActivationStrategy(){return q.Wg.replace}sortBy(u,h){const v=this.sortColumn[u],n=h.id;for(const c of this.skillsCategory)c.group.sort((o,t)=>{const i=n.includes("up")?[o,t]:[t,o];switch(v){case"skills":return h.classList.contains("text-green")?o.skillName?.toLowerCase()?.localeCompare(t.skillName?.toLowerCase()):i[0].skillName?.toLowerCase()?.localeCompare(i[1].skillName?.toLowerCase());case"price":return h.classList.contains("text-green")?o.skillName?.toLowerCase()?.localeCompare(t.skillName?.toLowerCase()):i[0].price-i[1].price;default:return h.classList.contains("text-green")?o.skillName?.toLowerCase()?.localeCompare(t.skillName?.toLowerCase()):i[0].goldRequired-i[1].goldRequired}});(n.includes("up")?document.querySelector(`#${v}-down`):document.querySelector(`#${v}-up`)).classList.remove("text-green"),h.classList.toggle("text-green")}closeFilter(){let u,h;this.width<this.phone?(u=document.getElementById("show-products-selector-mobile"),h=document.getElementById("show-products-dropdown-mobile")):(u=document.getElementById("show-products-selector"),h=document.getElementById("show-products-dropdown")),u.classList.remove("show"),h.classList.remove("show")}setProductsSelectedName(){this.productsString="",this.productsStringTooltip=null;for(const h of this.skillsBeingLeveled.values())this.skillsBeingLeveled.size===1?this.productsString=h.skillName:this.productsString+=h.skillName+", ";this.skillsBeingLeveled.size===0?this.productsString="Select a product":this.skillsBeingLeveled.size>1&&(this.productsString=this.productsString.slice(0,-2));let u=53;this.width<=this.phone?u=25:this.width<this.desktop&&(u=35),this.productsString.length>u?(setTimeout(()=>{this.productsStringTooltip=!0},100),this.productsStringTooltipValue=this.productsString,this.productsString=this.productsString.substring(0,u)+"..."):this.productsStringTooltipValue=null}},Z=U(Y.prototype,"search",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Y))||F)||F)}),"pages/services/runescape-custom-order/runescape-custom-order":(function(W,f,e){"use strict";e.r(f),e.d(f,{RunescapeCustomOrder:function(){return h}});var s=e("aurelia-framework"),q=e(10220),be=e(39146),ye=e(41455),X=e("aurelia-event-aggregator"),ae=e(45246),j=e(2959),ge=e(79533),le=e(31018),pe=e(6506),de=e(17349),ce=e(9063),J=e(58846),K=e(44079),H=e(41961),k=e(17285),ee=e(90753),fe=e(91e3),z=e(45843),ne=e(42371),B=e(15819),_,T,L,O,G,F,Y,Z,_e;function U(v,n,a,c){a&&Object.defineProperty(v,n,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(c):void 0})}function M(v,n,a,c,o){var t={};
7276return Object.keys(c).forEach(function(i){t[i]=c[i]}),t.enumerable=!!t.enumerable,t.configurable=!!t.configurable,("value"in t||t.initializer)&&(t.writable=!0),t=a.slice().reverse().reduce(function(i,r){return r(v,n,i)||i},t),o&&t.initializer!==void 0&&(t.value=t.initializer?t.initializer.call(o):void 0,t.initializer=void 0),t.initializer===void 0?(Object.defineProperty(v,n,t),null):t}function p(v,n){throw Error("Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.")}const w="loading-running",u="runescape-custom-order";let h=(_=(0,s.inject)(q.Ix,be.F,ye.j,X.EventAggregator,ae.H,j.j,ge.T,le.Q,pe.Q,de.b,ce.M,K.f,H.Z,s.TaskQueue,fe.LanguageKeyFormatterValueConverter,z.SiteStringsValueConverter),T=(0,s.computedFrom)("parentGames","parentGame"),L=(0,s.computedFrom)("tempFiles.length","maxFiles"),O=(0,s.computedFrom)("isOverflowing","showLess"),G=(0,s.computedFrom)("additionalInformation","isFocused","isLoading"),_(F=(Y=class extends B.D{constructor(n,a,c,o,t,i,r,m,g,d,y,C,R,S,N,te){super(),this.loading=!0,this.dynamicFormFields=void 0,U(this,"additionalInformation",Z,this),U(this,"width",_e,this),this.maxNumberOfFiles=50,this.dropZoneOutside=void 0,this.fileInput=void 0,this.filesList=[],this.tempFiles=[],this.maxFiles=2,this.showLess=!1,this.filesToShow=2,this.fieldType=k.PU,this.fileTypes=["image","video"],this.fileExtensions=["txt","doc","docx","xls","xlsx","csv","ppt","pptx","pdf","odp","ods","odt","xml"],this.isFocused=!1,this.isLoading=!1,this.additionalInformationSuccess=!1,this.dataLoadingPromise=void 0,this.pageLoading=!0,this.skeletonFieldPlaceholders=Array(4).fill(null),this.handleFieldChange=()=>{const Ee=Array.isArray(this.dynamicFormFields)&&this.dynamicFormFields.length>0,D=!!this.additionalInformation;if(Ee){const A=this.dynamicFormFields.every(ue=>ue.value&&ue.value!=="");this.requestQuoteDisabled=!A||!D;return}const I=!this.dynamicFormFields||this.dynamicFormFields.length===0;this.requestQuoteDisabled=!I||!D},this.handleDynamicFormFieldsFetchAndChange=async()=>{this.dynamicFormFields=await this.gameDynamicFormService.getByProductCategoryAndGameId(this.productCategory.id,this.selectedGame?.parentGameId),this.handleFieldChange(),this.taskQueue.queueTask(()=>this.setDynamicFiltersMaxWidth())},this.handleGameDeselection=()=>{this.router.navigateToRoute("services")},this.checkIfLastRangeTypeField=()=>this.dynamicFormFields?.length?this.dynamicFormFields[this.dynamicFormFields?.length-1]?.type===5:!1,this.handleTitleKeys=()=>{!this.parentGame||!this.pageContentArea||(this.titleKeyContent=this.pageContentArea.find(Ee=>Ee.key===`SERVICES_${this.parentGame.shortName}_CUSTOM_ORDER_PAGE_TITLE`),this.gameSecondTitle=`SERVICES_${this.parentGame.shortName}_CUSTOM_ORDER_PAGE_SECOND_TITLE`,this.gameTitles=[`SERVICES_${this.parentGame.shortName}_CUSTOM_ORDER_PAGE_SECOND_TITLE`,`SERVICES_${this.parentGame.shortName}_CUSTOM_ORDER_PAGE_TITLE`])},this.sessionService=m,this.router=n,this.helper=t,this.productCategoryService=a,this.websiteService=c,this.eventAggregator=o,this.tooltipArrowStyling=i,this.gameDynamicFormService=r,this.orderService=g,this.productService=d,this.orderChatService=y,this.imageService=C,this.pageContentAreaService=R,this.taskQueue=S,this.languageKeyFormatter=N,this.siteStrings=te,this.helper.getResolutions(this),this.baseAwsEndpoint=(0,J.Ty)("games"),this.logger=s.LogManager.getLogger("RunescapeCustomOrder")}async activate(){this.helper.addLoadingComponent(u);const n=globalThis.location.pathname.split("/").filter(Boolean);this.routeSlug=n.slice(-2).join("/"),this.dataLoadingPromise=new Promise(a=>{this.taskQueue.queueMicroTask(async()=>{try{const[c,o,t]=await Promise.all([this.productCategoryService.getNavCategory("services","CG"),this.productCategoryService.getIdByName("Custom Order"),this.websiteService.getPage("Services")]);if(this.games=c.gameForNav.filter(i=>i.shortName.includes("OSRS")||i.shortName.includes("RS3")),this.parentGames=c.gameForNav.filter(i=>i.shortName==="OSRS"||i.shortName==="RS3"),this.productCategory=o,this.pageConfig=t,this.pageContentArea=await this.pageContentAreaService.getByPageId(this.pageConfig?.id),this.rs3COGame=this.games.find(i=>
7276i.shortName==="RS3CUSTOMORDER"),this.osrsCOGame=this.games.find(i=>i.shortName==="OSRSCUSTOMORDER"),this.rs3COGame?.slug?.includes(this.routeSlug)?this.selectedGame=this.rs3COGame:this.osrsCOGame?.slug?.includes(this.routeSlug)?this.selectedGame=this.osrsCOGame:this.selectedGame=this.games.find(i=>i.slug?.includes(this.routeSlug)),!this.selectedGame){a();return}this.parentGame=this.games.find(i=>parseInt(i.id)===parseInt(this.selectedGame?.parentGameId)),await this.handleDynamicFormFieldsFetchAndChange(),this.handleTitleKeys(),a()}catch(c){throw this.logger.error("Error loading initial data:",c),ee.$.toast("Failed to load game data. Please try again.","error").show(),c}})})}async attached(){try{await this.dataLoadingPromise;const[n,a,c]=await Promise.all([this.sessionService.getProfile(),this.websiteService.getPagesByWebsiteShortcode(),this.websiteService.getRouteOrDefault("Services")]);this.user=n,this.pages=a,this.servicesPageRoute=c,this.width=this.helper.getWidth(),this.handleServicePaddings(),this.handleEventSubscriptions(),this.cart=await this.sessionService.getCart(!0),this.handleAddingPlaceholdersForTextAreas(),this.filterByRoute(),this.eventAggregator.publish("page-loaded")}catch(n){this.logger.error("Error in attached:",n),ee.$.toast("Failed to initialize component.","error").show()}finally{this.helper.validateLoading(u)}}detached(){this.selectedGame?.slug[0]===this.routeSlug&&this.helper.removePrerenderMetaTagForRedirect(),this.routeChangeSubscription?.dispose(),this.adminViewSubscription?.dispose(),this.sizeChanged?.dispose()}handleEventSubscriptions(){this.routeChangeSubscription=this.eventAggregator.subscribe("router:navigation:success",n=>{this.loading=this.pageLoading=!0,this.helper.addLoadingComponent(u),this.filterByRoute()}),this.adminViewSubscription=this.eventAggregator.subscribe("admin-view-updated",n=>{this.viewingAsAdmin=n.bool}),this.sizeChanged=this.eventAggregator.subscribe("size-changed",n=>{this.width=n.width,this.handleServicePaddings(),this.setDynamicFiltersMaxWidth()}),this.pageLoadedSubscriber=this.eventAggregator.subscribe("page-loaded",()=>{this.pageLoading=!1})}handleAddingPlaceholdersForTextAreas(){setTimeout(()=>{const n=this.siteStrings.toView(this.languageKeyFormatter.toView("CG_ADDITIONAL_INFO_EG")),a=this.additionalInformationTextArea?.querySelector("textarea");a&&(a.placeholder=n)},10)}handleServicePaddings(){const n=document.getElementById("services");if(!n)return;n.style.paddingBottom=this.width<=this.desktop?"40px":null;const a=n.querySelector(".inner-container");a&&this.width<=this.desktop&&a.setAttribute("style","padding-bottom: 3px !important; margin-bottom: 0;"),this.width<=this.desktop&&n.querySelectorAll(".horizontal-scroll-box")?.forEach(o=>{o.style.padding="21px 10px 25px 13px"})}async filterByRoute(){if(this.eventAggregator.publish(w,{loading:!0}),this.route=this.router.currentInstruction.config.route,this.keyName=this.router.currentInstruction.config.settings.keyName,this.rs3COGame?.slug?.includes(this.route)?this.selectedGame=this.rs3COGame:this.osrsCOGame?.slug?.includes(this.route)?this.selectedGame=this.osrsCOGame:this.selectedGame=this.games.find(n=>n.slug?.includes(this.route)),!this.selectedGame){this.eventAggregator.publish(w,{loading:!1}),this.helper.validateLoading(u);return}if(this.parentGame=this.games.find(n=>parseInt(n.id)===parseInt(this.selectedGame?.parentGameId)),this.handleTitleKeys(),this.selectedGame.slug[0]!==this.route){const n=`/${this.servicesPageRoute}/${this.selectedGame.slug[0]}`;this.helper.addPrerenderMetaTagForRedirect(n),this.router.navigate(n)}await this.handleDynamicFormFieldsFetchAndChange(),this.screenshotTooltip&&(this.screenshotTooltip.tooltip.style.maxWidth=this.screenshotTooltip.tooltip.children[0].style.maxWidth="268px"),this.changedRoute=!1,this.eventAggregator.publish(w,{loading:!1}),this.helper.validateLoading(u),setTimeout(()=>{this.helper.addFilterArrow(this.runescapeCustomOrderContainer)},50)}async gameChanged(n){const a=n.detail.selected;if(!a)return;let c=null;parseInt(this.rs3COGame?.parentGameId)===parseInt(a.value)?c=this.rs3COGame:parseInt(this.osrsCOGame?.parentGameId)===parseInt(a.value)?c=this.osrsCOGame:c=this.games.find(o=>o.slug?.includes(this.route)),c!==this.selectedGame&&(setTimeout(()=>this.helper.addFilterArrow(this.runescapeCustomOrderContainer),50),this.additionalInformation=null,this.tempFiles=[],this.selectedGame=c,this.selectedGame?this.router.navigate(`/${this.servicesPageRoute}/${this.selectedGame.slug[0]}`):this.router.navigateToRoute("404"))}async handleTicketCreation(){const n=await this.sessionService.getCart();if(this.hasDynamicServiceInCart(n)){ee.$.toast(`Service ${this.selectedGame.name} is already on the cart.`,"info").show();return}
7276if(!this.isCustomOrderFormComplete())return;if(!this.user){ee.$.toast("Please log in to complete your service custom order purchase.","info").show(),this.router.navigate(`/sign-in?redirect_url=${location.pathname}`);return}await this.helper.handleAccountOrderValidation(n,this.orderService,k.g1.Services,!1)||await this.createCustomOrder()}hasDynamicServiceInCart(n){return n?n.some(a=>a.serviceFullName?.includes(`${this.selectedGame.name} | Dynamic Service`)):!1}isCustomOrderFormComplete(){const n=Array.isArray(this.service),a=Array.isArray(this.dynamicFormFields);if(!n||!a)return ee.$.toast("Please complete all the fields on the form.","info").show(),!1;const c=this.service.length>=this.dynamicFormFields.length;return c||ee.$.toast("Please complete all the fields on the form.","info").show(),c}async createCustomOrder(){if(!this.triggeredService){this.triggeredService=!0;try{this.attachmentFilesResponse=await this.uploadAttachments(this.filesList);const n=await this.buildOrder(this.attachmentFilesResponse),a=ne.dX.validateWithUserCart(n,this.cart,!1);if(a){ee.$.toast(a,"error").show(),this.triggeredService=!1;return}const c=await this.orderService.createDynamicServiceOrUniqueNamesOrder(n);await this.handleOrderSuccess(c)}catch(n){this.logger.error("Error creating custom order:",n),this.triggeredService=!1}}}async handleOrderSuccess(n){try{const a=await this.sessionService.getCart(!0);this.eventAggregator.publish("cart-updated",{cart:a});const c=this.pages.find(o=>o.name==="Customer Portal")?.routeName??"customer-portal";this.router.navigate(`/${c}/purchased/chat/${n.id}`)}finally{this.taskQueue.queueMicroTask(()=>{this.triggeredService=!1})}}get mappedGames(){return this.parentGames?.map(n=>({label:n.name,value:n.id,selected:this.parentGame?.id===n.id,icon:n.gameNavigationIcon?`${this.baseAwsEndpoint}${n.gameNavigationIcon}`:"hide_image",iconColor:"#fff"}))}async buildOrder(n=[]){this.products=await this.productService.getProductsWithFilter("Dynamic Service");const a=this.products[0];return{websiteShortCode:(0,J.te)(),totalPrice:this.totalPrice,attachments:n,accountData:JSON.stringify(this.service),referralLinkUrl:this.sessionService.getReferralLink(),referrerLinkUrl:this.sessionService.getReferrerLink(),products:[{productId:a.id,gameId:this.selectedGame?.id,quantity:1,price:0,isService:!0,serviceFullName:`${this.selectedGame.name} | ${a.name}`,dynamicList:JSON.stringify(this.service),imagePath:this.parentGame.sellIcon,isSell:!1,productCategoryId:a.productCategoryId}]}}checkFileType(n){return this.fileTypes.filter(a=>n.type.startsWith(a+"/")).length>0||this.fileExtensions.filter(a=>n.name.endsWith("."+a)).length>0?!0:(ee.$.toast(`File type is not allowed for ${n.name}`,"error").show(),!1)}additionalInformationChanged(){this.handleFieldChange(),this.helper.handleTextAreaAutoGrowth(this.additionalInformationTextArea,null,"additional-information",this.runescapeCustomOrderMainContainer)}setDynamicFiltersMaxWidth(){this.width||(this.width=this.helper.getWidth());const n=this.dynamicFiltersContainer;if(!n)return;if(this.width<this.desktop){n.style.maxWidth="unset";return}const a=292,c=20;n.style.maxWidth=this.helper.getPyramidMaxWidth(n.children.length,a,c,4)}onFocus(){this.isFocused=!0}onBlur(){this.isFocused=!1,this.additionalInformation&&this.validateAdditionalInformation()}async validateAdditionalInformation(){this.isLoading=!0,await new Promise(n=>setTimeout(n,1e3)),this.isLoading=!1,this.additionalInformationSuccess=!!this.additionalInformation}get isOverflowing(){return this.tempFiles?.length>this.maxFiles}get fileContainerOpened(){return this.isOverflowing&&this.showLess?"files-container-opened":""}get fieldState(){return this.isFocused?"normal":this.isLoading?"loading":this.additionalInformation?"valid":"normal"}},Z=M(Y.prototype,"additionalInformation",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_e=M(Y.prototype,"width",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),M(Y.prototype,"mappedGames",[T],Object.getOwnPropertyDescriptor(Y.prototype,"mappedGames"),Y.prototype),M(Y.prototype,"isOverflowing",[L],Object.getOwnPropertyDescriptor(Y.prototype,"isOverflowing"),Y.prototype),M(Y.prototype,"fileContainerOpened",[O],Object.getOwnPropertyDescriptor(Y.prototype,"fileContainerOpened"),Y.prototype),M(Y.prototype,"fieldState",[G],Object.getOwnPropertyDescriptor(Y.prototype,"fieldState"),Y.prototype),Y))||F)}),"pages/services/runescape-diaries/runescape-diaries":(function(W,f,e){"use strict";e.r(f),e.d(f,{RunescapeDiaries:function(){return c}});var s=e("aurelia-framework"),q=e(10220),be=e(17349),ye=e(31018),X=e("aurelia-event-aggregator"),ae=e(72148),j=e(66666),ge=e(69117),le=e(2959),pe=e(39146),de=e(12922),ce=e(6993),J=e(41455),K=e(45246),H=e(6506),k=e(17285),ee=e(90753),fe=e(8706),z=e(9688),ne=e(38489),B=e(19806),_=e(28674),T,L,O,G,F,Y,Z,_e,U;function M(o,t,i,r){i&&Object.defineProperty(o,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(r):void 0})}function p(o,t,i,r,m){var g={};
7276return Object.keys(r).forEach(function(d){g[d]=r[d]}),g.enumerable=!!g.enumerable,g.configurable=!!g.configurable,("value"in g||g.initializer)&&(g.writable=!0),g=i.slice().reverse().reduce(function(d,y){return y(o,t,d)||d},g),m&&g.initializer!==void 0&&(g.value=g.initializer?g.initializer.call(m):void 0,g.initializer=void 0),g.initializer===void 0?(Object.defineProperty(o,t,g),null):g}function w(o,t){throw Error("Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.")}const u="Select a product",h="db-open-filter",v="arrow-open",n="arrow-close",a="text-green";let c=(T=(0,ne.connectTo)({selector:{featureFlags:o=>o.state.pipe((0,_.T)(t=>t.flags),(0,B.F)())}}),L=(0,s.inject)(s.BindingEngine,q.Ix,be.b,ye.Q,X.EventAggregator,ae.h,j.w,ge.J,le.j,de.X,pe.F,ce.l,J.j,K.H,H.Q,fe.P),O=(0,s.computedFrom)("selectedDiaries","selectedDiaries.length"),T(G=L(G=(F=class{constructor(t,i,r,m,g,d,y,C,R,S,N,te,Ee,D,I,A){this.keyName=void 0,this.loading=!0,this.pageLoading=!0,this.totalPrice=void 0,this.totalGoldPrice=0,this.diaries=void 0,this.diariesGroup=[],this.product=void 0,this.gameModes=void 0,M(this,"currentGameMode",Y,this),M(this,"currentGame",Z,this),this.addedToCart=void 0,this.selectedDiaries=[],this.games=void 0,M(this,"search",_e,this),M(this,"difficulty",U,this),this.diariesSearchFilter=void 0,this.haveGold=!1,this.productsStringLarge=u,this.productsStringShort=u,this.priceModification=void 0,this.notificationShowed=!0,this.productCategory=void 0,this.rs3DGame=void 0,this.osrsDGame=void 0,this.productsStringTooltip=void 0,this.productsStringTooltipValue=void 0,this.sortColumn=["diaries","price","gold"],this.isDrawerInstance=!1,this.handleCheckoutButton=async()=>{if(!await this.sessionService.getProfile()){this.router.navigate(`/sign-in?redirect_url=${location.pathname}`);return}let ue="/cart";const me=(await this.sessionService.getCart())?.find(P=>P.isSell);me&&this.featureFlags(z.$v.ORDER_CHAT_CART_FEATURE)&&(ue=`/customer-portal/swap/chat/${me.orderId}`),this.router.navigate(ue)},this.sessionService=m,this.router=i,this.helper=D,this.bindingEngine=t,this.productService=r,this.eventAggregator=g,this.gameModeService=d,this.gameService=y,this.priceModificationChecker=C,this.tooltipArrowStyling=R,this.servicePricingService=S,this.difficultyService=te,this.productCategoryService=N,this.websiteService=Ee,this.helper.getResolutions(this),this.orderService=I,this.taskQueue=A,this.dataLoadingPromise=null,this.logger=s.LogManager.getLogger("RunescapeDiaries")}get cartLabel(){const t=this.selectedDiaries?.length||0;return t>0?`Cart (${t})`:"Cart"}async activate(t,i){this.helper.addLoadingComponent("diaries");try{this.isDrawerInstance=t.drawerIsOpen||!1,this.pageContentAreaSubscriber=this.eventAggregator.subscribe("page-content-area",m=>{const g=m.pageContentArea;g&&(this.dynamicDisclaimer=g.find(d=>d.key===`${i.settings.keyName}_DISCLAIMER`))});const r=globalThis.location.pathname.split("/").filter(Boolean);this.routeSlug=r.slice(-2).join("/"),this.dataLoadingPromise=new Promise(m=>{this.taskQueue.queueMicroTask(async()=>{try{const[g,d,y]=await Promise.all([this.productCategoryService.getNavCategory("services","CG"),this.productCategoryService.getIdByName("Services"),this.difficultyService.getAll()]);this.games=g.gameForNav.filter(C=>C.shortName.includes("OSRS")||C.shortName.includes("RS3")),this.productCategory=d,this.difficulties=y,m()}catch(g){throw this.logger.error("Error loading initial data:",g),g}})})}catch(r){throw this.logger.error("Error in activate:",r),r}}async attached(){try{await this.dataLoadingPromise,this.rs3DGame=this.games.find(r=>r.shortName==="RS3DIARIES"),this.osrsDGame=this.games.find(r=>r.shortName==="OSRSDIARIES");const[t,i]=await Promise.all([this.websiteService.getRouteOrDefault("Services"),Promise.resolve(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)]);this.servicesPageRoute=t,this.width=i,this.handleEventSubscriptions(),await this.filterByRoute()}catch(t){throw this.logger.error("Error in attached:",t),t}finally{(!this.isDrawerInstance||this.loading)&&this.helper.validateLoading("diaries")}}detached(){this.currentGame?.slug[0]===this.routeSlug&&this.helper.removePrerenderMetaTagForRedirect(),this.routeChangeSubscription?.dispose(),this.gameModeSubscriber?.dispose(),this.searchSubscriber?.dispose(),this.difficultySubscriber?.dispose(),this.sizeChanged?.dispose(),this.adminViewSubscription?.dispose(),this.pageContentAreaSubscriber?.dispose()}handleEventSubscriptions(){this.routeChangeSubscription=this.eventAggregator.subscribe("router:navigation:success",t=>{this.loading=this.pageLoading=!0,this.helper.addLoadingComponent("diaries"),this.filterByRoute()}),this.gameModeSubscriber=this.eventAggregator.subscribe("game-mode-updated",t=>{this.currentGameMode=t.gameMode,this.filterDiary(),this.updateSelectedDiaries(!0),this.setProductsSelectedName(),this.calculateTotal()}),this.difficultySubscriber=this.eventAggregator.subscribe("difficulty-updated",t=>{this.difficulty=t.difficulty??{name:"All"},this.filterDiary(),this.updateSelectedDiaries(!1),this.setProductsSelectedName(),this.calculateTotal()}),this.searchSubscriber=this.eventAggregator.subscribe("search-updated",t=>{this.search=t.search,this.filterDiary(!0)}),this.sizeChanged=this.eventAggregator.subscribe("size-changed",t=>{this.width=t.width,this.setProductsSelectedName()}),this.adminViewSubscription=this.eventAggregator.subscribe("admin-view-updated",t=>{this.viewingAsAdmin=t.bool}),this.pageLoadedSubscriber=this.eventAggregator.subscribe("page-loaded",()=>{this.pageLoading=!1})}async filterByRoute(){try{if(this.search="",this.route=this.router.currentInstruction.config.route,this.route.includes("childRoute"))return;if(this.keyName=this.router.currentInstruction.config.settings.keyName,await(async()=>
7276{if(this.rs3DGame?.slug?.includes(this.route)){this.diariesSearchFilter="RS3DIARIES";const[m,g,d]=await Promise.all([this.gameModeService.getGameModeByGameId(this.games.find(y=>y.shortName==="RS3").id),this.priceModificationChecker.toView(this.rs3DGame.id,5),this.priceModificationChecker.toView(this.rs3DGame.parentGameId,1)]);this.gameModes=m,this.currentGame=this.rs3DGame,this.priceModification=g,this.goldPriceModification=d}else if(this.osrsDGame?.slug?.includes(this.route)){this.diariesSearchFilter="OSRSDIARIES";const[m,g,d]=await Promise.all([this.gameModeService.getGameModeByGameId(this.games.find(y=>y.shortName==="OSRS").id),this.priceModificationChecker.toView(this.osrsDGame.id,5),this.priceModificationChecker.toView(this.osrsDGame.parentGameId,1)]);this.gameModes=m,this.currentGame=this.osrsDGame,this.priceModification=g,this.goldPriceModification=d}})(),this.parentGame=this.games.find(m=>parseInt(m.id)===parseInt(this.currentGame.parentGameId)),this.currentGame.slug[0]!==this.route){const m=`/${this.servicesPageRoute}/${this.currentGame.slug[0]}`;this.helper.addPrerenderMetaTagForRedirect(m),this.router.navigate(m)}const[i,r]=await Promise.all([this.servicePricingService.getByFilter(this.diariesSearchFilter),this.productService.getInHouseCurrencyProduct(this.currentGame.parentGameId)]);if(this.originDiaries=i,this.originDiaries.sort((m,g)=>(g.product?.position!==null)-(m.product?.position!==null)||m.product?.position-g.product?.position),this.diaries=[...this.originDiaries],this.diaries?.length){const m=this.diaries.map(d=>d.price>0?d.price:null).filter(d=>d!==null),g={offerCount:this.diaries.length,lowestPrice:Math.min(...m),highestPrice:Math.max(...m)};this.orderService.handleProductRatingSchema(this.currentGame,this.productCategory,null,"USD",null,null,g)}this.buildDiariesGroup(),await this.filterDiary(),this.products=r,this.product=this.products.find(m=>m.seller===null&&m.sellerId===null),this.totalGoldPrice=this.goldPriceModification?this.product?.price+this.product?.price*(this.goldPriceModification.percentage/100):this.product?.price,this.clearDiaries(),await this.calculateTotal(),setTimeout(()=>{this.helper.addFilterArrow(document)},50)}catch(t){throw this.logger.error("Error in filterByRoute:",t),ee.$.toast("Error loading diaries. Please try again.","error").show(),t}finally{this.loading=!1,this.helper.validateLoading("diaries")}}get normalizedSearchTerm(){return this.search?.toLowerCase()||""}computeDiaryDisplayPrice(t){return this.priceModification?t.price+t.price*(this.priceModification.percentage/100):t.price}shouldShowDiary(t){const i=!!t.price,r=t.gameModeId===this.currentGameMode?.id,m=this.difficulty?.name==="All"||t.difficultyId===this.difficulty?.id;return i&&r&&m&&t.difficulty}updateGroupVisibility(t){const i=!!t?.group?.length,r=t?.name?.toLowerCase()?.includes(this.normalizedSearchTerm);if(t.show=r&&!!t?.name&&i,!!i){t.group.sort((m,g)=>m.price-g.price);for(const m of t.group)m.displayPrice=this.computeDiaryDisplayPrice(m),m.show=this.shouldShowDiary(m)}}async filterDiary(t=!1){try{if(!this.diariesGroup||!this.diaries)return;this.diariesGroup.forEach(r=>this.updateGroupVisibility(r));const i=this.diariesGroup.some(r=>r.show);!i&&!this.notificationShowed?(this.notificationShowed=!0,t||ee.$.toast("No diaries found, refresh the page or contact live chat for assist.","info").show()):i&&(this.notificationShowed=!1),this.updateDifficultyBoxDisplay()}catch(i){this.logger.error("Error in filterDiary:",i),ee.$.toast("Error filtering diaries. Please try again.","error").show()}}updateDifficultyBoxDisplay(){if(this.difficulty?.name==="All"){const t=document.getElementsByClassName(h)[0];t&&(t.classList.add("db-open"),t.classList.remove(h))}else{const t=document.getElementsByClassName("db-open")[0];t&&(t.classList.remove("db-open"),t.classList.add(h))}}openDifficulty(t,i){const r=document.getElementsByClassName("difficulty-box"),m=document.getElementsByClassName("arrow-difficulty"),g=t.classList.contains("db-open"),d=t.classList.contains(h);for(const[y,C]of Array.from(r).entries())C.classList.remove("db-open"),C.classList.remove(h),m[y].classList.remove(v),m[y].classList.add(n);g||d?(t.classList.remove("db-open"),t.classList.remove(h),i.classList.remove(v),i.classList.add(n)):(this.difficulty?.name!=="All"?t.classList.add(h):t.classList.add("db-open"),i.classList.add(v),i.classList.remove(n))}updateSelectedDiaries(t){const i=this.selectedDiaries.map(g=>g.productId),r=this.selectedDiaries.map(g=>g.difficulty),m=this.selectedDiaries.map(g=>g.gameModeId);this.selectedDiaries=[];for(const g of this.diariesGroup)for(const d of g.group){if(d.selected=!1,!(i.includes(d.productId)&&r.includes(d.difficulty)))continue;let C=!1;if(t)C=d.gameModeId===this.currentGameMode?.id;else{const R=m.includes(d.gameModeId),S=d.difficultyId===this.difficulty?.id||this.difficulty?.name==="All";C=R&&S}C&&(this.selectedDiaries.push(d),d.selected=!0)}}diarySelection(t){if(t.selected=!t.selected,t.selected)t.product&&(t.displayPrice=this.priceModification?t.price+t.price*(this.priceModification.percentage/100):t.price,t.displayGoldRequired=t.product.goldRequired||0),this.selectedDiaries.push(t);else{const i=this.selectedDiaries.indexOf(t);this.selectedDiaries.splice(i,1)}return this.setProductsSelectedName(),this.calculateTotal(),!0}buildDiariesGroup(){const t=[];this.diariesGroup=[];for(const i of this.diaries)t.includes(i.product?.name)||t.push(i.product?.name);for(const i of t)this.diariesGroup.push(this.getArrayObjectsWithValueEqualTo(i))}getArrayObjectsWithValueEqualTo(t){const i={name:"",group:[],show:!0};for(const r of this.diaries)r.product?.name===t&&r.price>0&&(i.name=t,i.group.push(r));return i.group.forEach(r=>{r.difficulty=this.difficulties.find(m=>m.id===r.difficultyId)?.name}),i}setProductsSelectedName(){const t=u,i=this.currentGameMode?.name,r=this.parentGame?.shortName||this.currentGame?.shortName||"O
7276SRS";this.productsStringLarge=i?`Showing prices for ${r} <span class='highlight-word'>${i}</span> game mode.`:t,this.productsStringShort=i?`${r} <span class='highlight-word'>${i}</span> game mode.`:t,this.productsStringTooltip=null,this.productsStringTooltipValue=null}closeFilter(){const t=document.getElementById("show-products-selector"),i=document.getElementById("show-products-dropdown");t.classList.remove("show"),i.classList.remove("show")}clearDiaries(){this.diariesGroup.forEach(t=>t.group.forEach(i=>i.selected=!1)),this.selectedDiaries=[],this.setProductsSelectedName()}async calculateTotal(){try{this.totalGold=0,this.totalPrice=0,this.selectedDiaries&&this.selectedDiaries.forEach(t=>{this.totalPrice+=parseFloat(t.displayPrice),this.totalGold+=t.product?.goldRequired})}catch(t){this.logger.error("Error calculating total:",t),ee.$.toast("Error calculating total. Please try again.","error").show()}}async addToCart(){const t=this.selectedDiaries.find(m=>!m.difficulty||m.price<=0);if(this.selectedDiaries.length<1||t){t?ee.$.toast("You have selected diary service(s) which has invalid configuration.","error").show():ee.$.toast("No diaries were selected.","info").show();return}const i=await this.sessionService.getCart();if(!await this.helper.handleAccountOrderValidation(i,this.orderService,k.g1.Services,!1))try{const m=this.gameModes.find(g=>g.id===this.currentGameMode?.id)??this.gameModes[0];for(const g of this.selectedDiaries){const d=`${this.parentGame?.shortName??this.currentGame.shortName} | Diary | ${g.product?.name} | ${g.difficulty} ${m.name!=="Regular"?`| ${m.name}`:""}`,y={name:d,serviceFullName:d,quantity:1,price:g.price,updatedDate:g.updatedDate,productId:g.productId,type:"Diary",isService:!0,character:g.character,gameId:g.product?.gameId,parentGameId:this.parentGame.id,gameShortName:this.currentGame.shortName,gameModeId:m.id,imagePath:g.imagePath,servicePricing:g,productCategoryId:this.productCategory.id,productCategoryName:this.productCategory.name};await this.sessionService.storeCartItem(y)}this.addedToCart=!0,this.totalGold>0&&this.addGoldToCart(),ee.$.toast("Added Diary Service(s) to Cart.","success").show()}catch(m){this.logger.error(m),ee.$.toast("Something went wrong! Please contact the Livechat.","error").show()}}async addGoldToCart(){if(!this.haveGold){this.product.quantity=parseInt(this.totalGold),this.product.productId=this.product?.id;try{const i=(await this.sessionService.getCart())?.find(r=>r.id===this.product.id);i?(this.product.quantity=this.helper.convertNumberWithoutComma(i.quantity,"float")+parseFloat(this.totalGold),await this.sessionService.updateCartItem(this.product,!0)):this.sessionService.storeCartItem(this.product)}catch(t){this.logger.error(t),ee.$.toast("Something went wrong! Please contact the Livechat.","error").show()}}}openLivechat(){window.Intercom&&window.Intercom("show")}handleRadioInput(t){this.haveGold=t}sortBy(t,i){const r=this.sortColumn[t],m=i.id;this.diariesGroup.sort((d,y)=>{const C=m.includes("up")?[d,y]:[y,d];switch(r){case"diaries":return i.classList.contains(a)?d.name?.toLowerCase()?.localeCompare(y.name?.toLowerCase()):C[0].name?.toLowerCase()?.localeCompare(C[1].name?.toLowerCase());case"price":{const R=S=>{if(!S||S.length===0)return 0;const N=S.map(te=>te.displayPrice||te.price||0).filter(te=>te>0);return N.length>0?Math.min(...N):0};return i.classList.contains(a)?d.name?.toLowerCase()?.localeCompare(y.name?.toLowerCase()):R(C[0].group)-R(C[1].group)}default:{const R=S=>!S||S.length===0?0:S.reduce((N,te)=>N+(te.product?.goldRequired||0),0);return i.classList.contains(a)?d.name?.toLowerCase()?.localeCompare(y.name?.toLowerCase()):R(C[0].group)-R(C[1].group)}}});const g=m.includes("up")?document.querySelector(`#${r}-down`):document.querySelector(`#${r}-up`);g&&g.classList.remove(a),i.classList.toggle(a)}},Y=p(F.prototype,"currentGameMode",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Z=p(F.prototype,"currentGame",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_e=p(F.prototype,"search",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=p(F.prototype,"difficulty",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{name:"All"}}}),p(F.prototype,"cartLabel",[O],Object.getOwnPropertyDescriptor(F.prototype,"cartLabel"),F.prototype),F))||G)||G)}),"pages/services/runescape-minigames/runescape-minigames":(function(W,f,e){"use strict";e.r(f),e.d(f,{RunescapeMinigames:function(){return U}});var s=e("aurelia-framework"),q=e(10220),be=e(17349),ye=e(31018),X=e("aurelia-event-aggregator"),ae=e(72148),j=e(66666),ge=e(69117),le=e(2959),pe=e(39146),de=e(12922),ce=e(41455),J=e(45246),K=e(6506),H=e(90753),k=e(17285),ee=e(58846),fe=e(46110),z=e(31153),ne,B,_,T,L,O,G,F;function Y(M,p,w,u){w&&Object.defineProperty(M,p,{enumerable:w.enumerable,configurable:w.configurable,writable:w.writable,value:w.initializer?w.initializer.call(u):void 0})}function Z(M,p,w,u,h){var v={};return Object.keys(u).forEach(function(n){v[n]=u[n]}),v.enumerable=!!v.enumerable,v.configurable=!!v.configurable,("value"in v||v.initializer)&&(v.writable=!0),v=w.slice().reverse().reduce(function(n,a){return a(M,p,n)||n},v),h&&v.initializer!==void 0&&(v.value=v.initializer?v.initializer.call(h):void 0,v.initializer=void 0),v.initializer===void 0?(Object.defineProperty(M,p,v),null):v}function _e(M,p){throw Error("Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.")}let U=(ne=(0,s.inject)(s.BindingEngine,q.Ix,be.b,ye.Q,X.EventAggregator,ae.h,j.w,ge.J,le.j,de.X,pe.F,ce.j,J.H,K.Q,s.TaskQueue,fe.AutoSiteStringValueConverter,z.O),B=(0,s.computedFrom)("selectedMinigames","selectedMinigames.length"),ne(_=(T=class{constructor(p,w,u,h,v,n,a,
7276c,o,t,i,r,m,g,d,y,C){this.loading=!0,this.pageLoading=!0,Y(this,"tableHeight",L,this),this.totalPrice=void 0,this.totalGoldPrice=0,this.totalKills=void 0,this.minigames=void 0,this.product=void 0,this.gameModes=void 0,Y(this,"currentGameMode",O,this),Y(this,"currentGame",G,this),this.addedToCart=void 0,this.selectedMinigames=[],this.games=void 0,this.searchColumn="position",Y(this,"search",F,this),this.direction="ASC",this.haveGold=!1,this.sortState=[!1,!1,!1,!1],this.sortColumn=["minigame","gold","price","type"],this.productsStringLarge="Select a product",this.productsStringShort="Select a product",this.auxMinigames=void 0,this.priceModification=void 0,this.notificationShowed=!0,this.rs3MGGame=void 0,this.osrsMGGame=void 0,this.productCategory=void 0,this.sortOrder="asc",this.isSyncing=!1,this.componentId=null,this.sharedStateSubscription=null,this.isDrawerInstance=!1,this.resultsExists=!1,this.sessionService=h,this.router=w,this.helper=m,this.bindingEngine=p,this.productService=u,this.eventAggregator=v,this.gameModeService=n,this.gameService=a,this.priceModificationChecker=c,this.tooltipArrowStyling=o,this.productCategoryService=i,this.servicePricingService=t,this.websiteService=r,this.baseAwsEndpoint=(0,ee.Ty)("products"),this.helper.getResolutions(this),this.orderService=g,this.taskQueue=d,this.autoSiteStringValueConverter=y,this.sharedServiceState=C,this.logger=s.LogManager.getLogger("RunescapeMinigames")}get cartLabel(){const p=this.selectedMinigames?.length||0;return p>0?`Cart (${p})`:"Cart"}async activate(p,w){this.isDrawerInstance=p.drawerIsOpen||!1,this.componentId=`minigames-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,this.initializeSharedState(),this.handleDrawerLoadingState()||this.helper.addLoadingComponent("minigames"),this.pageContentAreaSubscriber=this.eventAggregator.subscribe("page-content-area",h=>{const v=h.pageContentArea;v&&(this.dynamicDisclaimer=v.find(n=>n.key===`${w.settings.keyName}_DISCLAIMER`))});const u=globalThis.location.pathname.split("/").filter(Boolean);this.routeSlug=u.slice(-2).join("/"),this.initialDataPromise=new Promise(h=>{this.taskQueue.queueMicroTask(async()=>{await this.loadInitialData(),h()})})}initializeSharedState(){this.sharedStateSubscription=this.sharedServiceState.subscribeToState("minigames",p=>{this.handleSharedStateUpdate(p)},this.componentId),this.handleDrawerLoadingState()}applySharedState(p){const w=p.data,u=p.selectedItems,h=p.gameMode,v=p.search,n=p.extraParams||{};w&&(this.minigames=w),u&&(this.selectedMinigames=u),h&&(this.currentGameMode=h),v!==void 0&&(this.search=v),this.applyTotalsFromState(n),this.setProductsSelectedName()}applyTotalsFromState(p){if(!p){this.calculateTotal();return}const w=p.totalPrice!==void 0,u=p.totalGold!==void 0,h=p.totalKills!==void 0;w&&(this.totalPrice=p.totalPrice),u&&(this.totalGold=p.totalGold),h&&(this.totalKills=p.totalKills),w||u||h||this.calculateTotal()}handleSharedStateUpdate(p){if(this.isSyncing)return;this.isSyncing=!0;const{state:w}=p;this.applySharedState(w),w.loading!==void 0&&(this.loading=w.loading,this.pageLoading=w.loading,this.isDrawerInstance&&!w.loading&&w.data&&w.data.length>0&&this.helper.validateLoading("minigames")),setTimeout(()=>{this.isSyncing=!1},100)}loadFromSharedState(p){this.applySharedState(p),p.data&&p.data.length>0&&(this.loading=!1,this.isDrawerInstance&&this.helper.validateLoading("minigames"))}async loadInitialData(){try{const[p,w]=await Promise.all([this.productCategoryService.getNavCategory("services","CG"),this.productCategoryService.getIdByName("Services")]);this.games=p.gameForNav.filter(u=>u.shortName.includes("OSRS")||u.shortName.includes("RS3")),this.productCategory=w,this.rs3MGGame=this.games.find(u=>u.shortName==="RS3MG"),this.osrsMGGame=this.games.find(u=>u.shortName==="OSRSMG")}catch(p){throw this.logger.error("Error loading initial data:",p),H.$.toast("Failed to load game data. Please try again.","error").show(),p}}async attached(){try{await this.initialDataPromise;const[p,w]=await Promise.all([this.websiteService.getRouteOrDefault("Services"),Promise.resolve(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)]);this.servicesPageRoute=p,this.width=w,this.handleEventSubscriptions(),this.handleDrawerLoadingState()||await this.filterByRoute()}catch(p){this.logger.error("Error in attached:",p),H.$.toast("Failed to initialize component.","error").show()}finally{(!this.isDrawerInstance||this.loading)&&this.helper.validateLoading("minigames")}}async loadGameData(){try{if(!this.games)throw new Error("Initial data not loaded");if(this.route=this.router.currentInstruction.config.route,this.route.includes("childRoute"))return;if(this.keyName=this.router.currentInstruction.config.settings.keyName,this.rs3MGGame?.slug?.includes(this.route)?(this.minigamesSearchFilter="RS3MG",this.gameModes=await this.gameModeService.getGameModeByGameId(this.games.find(v=>v.shortName==="RS3").id),this.currentGame=this.rs3MGGame):this.osrsMGGame?.slug?.includes(this.route)&&(this.minigamesSearchFilter="OSRSMG",this.gameModes=await this.gameModeService.getGameModeByGameId(this.games.find(v=>v.shortName==="OSRS").id),this.currentGame=this.osrsMGGame),!this.currentGameMode&&this.gameModes?.length&&(this.currentGameMode=this.gameModes[0]),this.parentGame=this.games.find(v=>parseInt(v.id)===parseInt(this.currentGame.parentGameId)),this.currentGame.slug[0]!==this.route){const v=`/${this.servicesPageRoute}/${this.currentGame.slug[0]}`;this.helper.addPrerenderMetaTagForRedirect(v),this.router.navigate(v);return}const[p,w,u,h]=await Promise.all([this.priceModificationChecker.toView(this.currentGame.id,5),this.priceModificationChecker.toView(this.currentGame.parentGameId,1),this.servicePricingService.getByFilter(this.minigamesSearchFilter),this.productService.getInHouseCurrencyProduct(this.currentGame.parentGameId)]);this.processMinigamesData(p,w,u,h),this.setupObservers(),await this.filterMinigames(),await this.calculateTotal(),this.syncState()}catch(p){this.logger.error("Error loading game data:",p),H.$.toast("Failed to load minigames. Please try again.","error").show()}finally{this.loading=!1,this.helper.validateLoading("minigames")}}processMinigamesData(p,w,u,h){if(this.priceModification=p,this.goldPriceModification=w,this.originalMinigame=u,this.products=h,this.originalMinigame.sort((v,n
7276)=>(n.product?.position!==null)-(v.product?.position!==null)||v.product?.position-n.product?.position),this.minigames=[...this.originalMinigame],this.minigames?.length){const v={offerCount:this.minigames.length,lowestPrice:.01,highestPrice:99999.99};this.orderService.handleProductRatingSchema(this.currentGame,this.productCategory,null,"USD",null,null,v)}this.product=this.products.find(v=>v.seller===null&&v.sellerId===null),this.totalGoldPrice=this.goldPriceModification?this.product?.price+this.product?.price*(this.goldPriceModification.percentage/100):this.product?.price}handleEventSubscriptions(){this.routeChangeSubscription=this.eventAggregator.subscribe("router:navigation:success",async p=>{this.loading=this.pageLoading=!0,this.helper.addLoadingComponent("minigames"),this.filterByRoute(),this.selectedMinigames=[],await this.initialDataPromise,await this.loadGameData()}),this.gameModeSubscriber=this.eventAggregator.subscribe("game-mode-updated",async p=>{const w=this.currentGameMode;this.currentGameMode=p.gameMode,await this.filterMinigames(!0,!1,w),this.setProductsSelectedName(),this.calculateTotal(),this.syncState()}),this.searchSubscriber=this.eventAggregator.subscribe("search-updated",p=>{this.search=p.search,this.filterMinigames(!0,!0),this.syncState()}),this.sizeChanged=this.eventAggregator.subscribe("size-changed",p=>{this.width=p.width}),this.adminViewSubscription=this.eventAggregator.subscribe("admin-view-updated",p=>{this.viewingAsAdmin=p.bool}),this.pageLoadedSubscriber=this.eventAggregator.subscribe("page-loaded",()=>{this.pageLoading=!1})}async filterByRoute(){try{if(this.search="",this.route=this.router.currentInstruction.config.route,this.route.includes("childRoute"))return;if(this.keyName=this.router.currentInstruction.config.settings.keyName,this.rs3MGGame?.slug?.includes(this.route)?(this.minigamesSearchFilter="RS3MG",this.gameModes=await this.gameModeService.getGameModeByGameId(this.games.find(p=>p.shortName==="RS3").id),this.currentGame=this.rs3MGGame):this.osrsMGGame?.slug?.includes(this.route)&&(this.minigamesSearchFilter="OSRSMG",this.gameModes=await this.gameModeService.getGameModeByGameId(this.games.find(p=>p.shortName==="OSRS").id),this.currentGame=this.osrsMGGame),this.parentGame=this.games.find(p=>parseInt(p.id)===parseInt(this.currentGame.parentGameId)),this.currentGame.slug[0]!==this.route){const p=`/${this.servicesPageRoute}/${this.currentGame.slug[0]}`;this.helper.addPrerenderMetaTagForRedirect(p),this.router.navigate(p);return}this.priceModification=await this.priceModificationChecker.toView(this.currentGame.id,5),this.goldPriceModification=await this.priceModificationChecker.toView(this.currentGame.parentGameId,1),this.originalMinigame=await this.servicePricingService.getByFilter(this.minigamesSearchFilter),this.originalMinigame.sort((p,w)=>(w.product?.position!==null)-(p.product?.position!==null)||p.product?.position-w.product?.position),this.minigames=[...this.originalMinigame],this.products=await this.productService.getInHouseCurrencyProduct(this.currentGame.parentGameId),this.product=this.products.find(p=>p.seller===null&&p.sellerId===null),this.totalGoldPrice=this.goldPriceModification?this.product?.price+this.product?.price*(this.goldPriceModification.percentage/100):this.product?.price,this.currentGameMode=this.gameModes[0],await this.filterMinigames(),await this.calculateTotal();for(const p of this.minigames)this.bindingEngine.propertyObserver(p,"selected").subscribe(w=>{this.calculateTotal()});for(const p of this.minigames)this.bindingEngine.propertyObserver(p,"kills").subscribe(()=>this.minigameChanged(p));this.setProductsSelectedName(),this.syncState(),setTimeout(()=>{this.helper.addFilterArrow(document)},50)}catch(p){throw this.logger.error("Error in filterByRoute:",p),p}finally{this.loading=!1,this.helper.validateLoading("minigames")}}transferQuantitiesToCurrentGameMode(p){if(!(p&&this.currentGameMode&&p.id!==this.currentGameMode.id)||!this.minigames?.length)return;const u=new Map;this.minigames.forEach(h=>{if(h.gameModeId!==p.id)return;const v=this.helper.convertNumberWithoutComma(h.kills,"int");if(v<=0)return;const n=h.product?.name;n&&u.set(n,{source:h,kills:v})}),u.forEach(h=>{h.source.kills=0,this.removeMinigameFromSelectedMinigames(h.source)}
7276),this.minigames.forEach(h=>{if(h.gameModeId!==this.currentGameMode.id)return;const v=u.get(h.product?.name);!v||v.source===h||(h.kills=v.kills)})}async filterMinigames(p,w=!1,u=null){try{if(!this.minigames)return;u&&this.transferQuantitiesToCurrentGameMode(u),p||(this.selectedMinigames=[]);for(const v of this.minigames)this.applyAuxKillsToMinigame(v),p||(v.kills=0),this.updateMinigameVisibility(v),this.updateMinigamePrices(v),this.updateSelectedMinigames(v);const h=this.minigames.some(v=>v.show);!h&&!this.notificationShowed&&!w&&H.$.toast("No minigames found, refresh the page or contact live chat for assist.","info").show(),this.notificationShowed=!h,this.resultsExists=h,this.calculateTotal(),this.syncState()}catch(h){this.logger.error("Error filtering Minigames:",h),H.$.toast("Failed to filter Minigame data.","error").show()}}applyAuxKillsToMinigame(p){const w=Array.isArray(this.auxMinigames)&&this.auxMinigames.length>0,u=p.gameModeId===this.currentGameMode?.id;if(!w||!u)return;const h=this.auxMinigames.filter(v=>v.kills>0).find(v=>v.product?.name===p.product?.name&&v.gameModeId===p.gameModeId);p.kills=h?.kills??0}updateMinigameVisibility(p){const w=!this.search,u=this.search?.toLowerCase(),h=p.product?.name?.toLowerCase(),v=w||h&&h.includes(u),n=!this.currentGameMode||p.gameModeId===this.currentGameMode?.id;p.show=!!p.price&&v&&n}updateMinigamePrices(p){const w=this.helper.convertNumberWithoutComma(p.kills,"int");if(!!this.priceModification){const v=p.price+p.price*(this.priceModification.percentage/100);p.displayPrice=v*w}else p.displayPrice=p.price*w;const h=p.product?.goldRequired||0;p.displayGoldRequired=h*w}updateSelectedMinigames(p){if(!(this.helper.convertNumberWithoutComma(p.kills,"int")>0))return;this.selectedMinigames.some(h=>h.product?.name===p.product?.name&&h.gameModeId===p.gameModeId)||this.selectedMinigames.push(p)}syncState(){this.isSyncing||((!this.totalPrice||this.totalPrice==="0.00"||this.totalPrice===0)&&this.calculateTotal(),this.sharedServiceState.updateState("minigames",{data:this.minigames,selectedItems:this.selectedMinigames,gameMode:this.currentGameMode,search:this.search,loading:this.loading,extraParams:{totalPrice:this.totalPrice,totalGold:this.totalGold,totalKills:this.totalKills},resultsExists:this.resultsExists},this.componentId),this.isDrawerInstance&&this.minigames&&this.minigames.length>0&&(this.loading=!1,this.helper.validateLoading("minigames")))}handleDrawerLoadingState(){if(this.isDrawerInstance){const p=this.sharedServiceState.getSharedState("minigames");if(p.data&&p.data.length>0&&p.lastUpdate)return this.loadFromSharedState(p),this.preserveTotalsFromSharedState(p),this.loading=!1,this.helper.validateLoading("minigames"),!0}return!1}preserveTotalsFromSharedState(p){p.extraParams&&(p.extraParams.totalPrice!==void 0&&(this.totalPrice=p.extraParams.totalPrice),p.extraParams.totalGold!==void 0&&(this.totalGold=p.extraParams.totalGold),p.extraParams.totalKills!==void 0&&(this.totalKills=p.extraParams.totalKills))}async minigameChanged(p){this.helper.convertNumberWithoutComma(p.kills,"int")>0?!this.selectedMinigames.filter(w=>w===p).length>0&&(p.kills=this.helper.convertNumberWithoutComma(p.kills,"int"),this.selectedMinigames.push(p)):this.removeMinigameFromSelectedMinigames(p),p.displayPrice=this.priceModification?(p.price+p.price*(this.priceModification.percentage/100))*this.helper.convertNumberWithoutComma(p.kills,"int"):p.price*this.helper.convertNumberWithoutComma(p.kills,"int"),p.displayGoldRequired=p.product?.goldRequired*this.helper.convertNumberWithoutComma(p.kills,"int"),p.displayPrice=(Math.round(p.displayPrice*100)/100).toFixed(2),this.calculateTotal(),this.setProductsSelectedName(),this.syncState()}onQuantityChanged(p){this.minigameChanged(p)}removeMinigameFromSelectedMinigames(p){const w=this.selectedMinigames.indexOf(p);w!==-1&&this.selectedMinigames.splice(w,1)}async calculateTotal(){if(this.minigames&&this.selectedMinigames){this.totalGold=0,this.totalPrice=0,this.totalKills=0;for(const p of this.selectedMinigames)p&&p.kills>0&&(this.totalKills+=this.helper.convertNumberWithoutComma(p.kills,"int"),this.totalPrice+=parseFloat(p.displayPrice||0),this.totalGold+=p.displayGoldRequired||0);this.totalPrice=(Math.round(this.totalPrice*100)/100).toFixed(2)}this.auxMinigames=this.minigames}minigamesAreValid(){let p=!0;
7276return this.selectedMinigames.forEach(({price:w,kills:u})=>{(u<1||u>9999||w<=0)&&(p=!1)}),p}createCartItem(p){const w=this.gameModes?.find(h=>h.id===p.gameModeId)??this.gameModes?.[0],u=`${this.parentGame?.shortName??this.currentGame.shortName} | Minigame | ${p.product?.name} | ${p.kills} kills ${w.name!=="Regular"?`| ${w.name}`:""}`;return{productId:p.productId,name:u,serviceFullName:u,price:p.price,quantity:p.kills,tempQuantity:p.kills,isService:!0,updatedDate:p.updatedDate,game:this.currentGame,gameId:this.currentGame.id,parentGameId:this.parentGame?.id,gameShortName:this.currentGame.shortName,gameModeId:w.id,difficultyId:-1,productCategoryId:this.productCategory.id,productCategoryName:this.productCategory.name,imagePath:p.product.imagePath,servicePricing:p}}minigameCartLineKey(p){return p?.replace(/\s*\|\s*\d+\s*kills\s*/i,"")??""}minigameNameWithKills(p,w){const u=p.trim().split(/\s*\|\s*/).filter(Boolean);return u.length>=4?`${u[0]} | ${u[1]} | ${u[2]} | ${w} kills | ${u[3]}`:`${u[0]} | ${u[1]} | ${u[2]} | ${w} kills`}async addToCart(){try{if(!this.canAddMinigamesToCart())return;const p=await this.sessionService.getCart();if(await this.helper.handleAccountOrderValidation(p,this.orderService,k.g1.Services,!1))return;await this.addSelectedMinigamesToCart(p),this.addedToCart=!0,this.totalGold>0&&this.addGoldToCart()}catch(p){this.logger.error("Error adding to cart:",p),H.$.toast("Failed to add items to cart. Please try again.","error").show()}}canAddMinigamesToCart(){return!this.selectedMinigames||this.selectedMinigames.length===0?(H.$.toast("Please select at least one minigame.","info").show(),!1):this.minigamesAreValid()?!0:(H.$.toast("Please select a game mode.","info").show(),!1)}async addSelectedMinigamesToCart(p){for(const w of this.selectedMinigames){const u=this.createCartItem(w),h=p.find(v=>this.minigameCartLineKey(v.serviceFullName??v.name)===this.minigameCartLineKey(u.name));h?await this.updateExistingMinigameCartItem(h,u):await this.sessionService.storeCartItem(u)}}async updateExistingMinigameCartItem(p,w){const u=this.helper.convertNumberWithoutComma(p.quantity,"int"),h=this.helper.convertNumberWithoutComma(w.quantity,"int"),v=u+h;p.quantity=v,p.tempQuantity!==void 0&&(p.tempQuantity=v);const n=this.minigameCartLineKey(p.serviceFullName??p.name);p.serviceFullName=this.minigameNameWithKills(n,v),await this.sessionService.updateCartItem(p,!0)}async handleCheckoutRedirection(){if(!await this.sessionService.getProfile()){this.router.navigate(`/sign-in?redirect_url=${location.pathname}`);return}this.router.navigate("/cart")}async addGoldToCart(){if(!this.haveGold){this.product.quantity=parseInt(this.totalGold),this.product.productId=this.product?.id;try{const w=(await this.sessionService.getCart())?.find(u=>u.id===this.product.id);w?(this.product.quantity=this.helper.convertNumberWithoutComma(w.quantity,"float")+parseFloat(this.totalGold),await this.sessionService.updateCartItem(this.product,!0)):this.sessionService.storeCartItem(this.product)}catch(p){this.logger.error(p),H.$.toast("Something went wrong! Please contact the Livechat.","error").show()}}}sortBy(p,w){const u=this.sortColumn[p],h=w.id;document.querySelectorAll(".sort-asc, .sort-desc").forEach(a=>{a.classList.remove("text-green")}),w.classList.add("text-green");const v=h.includes("up"),n=(a,c)=>{switch(u){case"minigame":return a.product?.name?.toLowerCase()?.localeCompare(c.product?.name?.toLowerCase());case"price":return a.displayPrice-c.displayPrice;case"gold":return a.product?.goldRequired-c.product?.goldRequired;default:return a.product?.productSubCategory.name?.toLowerCase()?.localeCompare(c.product?.productSubCategory.name?.toLowerCase())}};this.minigames.sort((a,c)=>v?n(a,c):n(c,a))}openLivechat(){window.Intercom&&window.Intercom("show")}closeFilter(){const p=document.getElementById("show-products-selector"),w=document.getElementById("show-products-dropdown");p.classList.remove("show"),w.classList.remove("show")}getGameModeName(p){if(!p||!this.gameModes)return"";const w=this.gameModes.find(u=>u.id===p);return w&&w.name!=="Regular"?w.name:""}setProductsSelectedName(){if(!this.currentGameMode||!this.currentGameMode.name)return;const p=this.currentGameMode?.name,w=this.parentGame?.shortName||this.currentGame?.shortName||"O
7276SRS";this.productsStringLarge=`Showing prices for ${w} <span class='highlight-word'>${p}</span> game mode.`,this.productsStringShort=`${w} <span class='highlight-word'>${p}</span> game mode.`}handleCheckoutButton(){this.handleCheckoutRedirection()}setupObservers(){this.minigamesObserver=this.bindingEngine.collectionObserver(this.minigames).subscribe(()=>{this.setProductsSelectedName()}),this.selectedMinigamesObserver=this.bindingEngine.collectionObserver(this.selectedMinigames).subscribe(()=>{this.setProductsSelectedName(),this.calculateTotal()})}handleRadioInput(p){this.haveGold=p}detached(){this.currentGame?.slug[0]===this.routeSlug&&this.helper.removePrerenderMetaTagForRedirect(),["minigamesObserver","selectedMinigamesObserver","routeChangeSubscription","gameModeSubscriber","searchSubscriber","sizeChanged","adminViewSubscription","pageLoadedSubscriber","stateSyncSubscription","pageContentAreaSubscriber"].forEach(w=>{this[w]&&this[w].dispose()}),this.sharedStateSubscription&&this.sharedStateSubscription.unsubscribe()}},L=Z(T.prototype,"tableHeight",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=Z(T.prototype,"currentGameMode",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),G=Z(T.prototype,"currentGame",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=Z(T.prototype,"search",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Z(T.prototype,"cartLabel",[B],Object.getOwnPropertyDescriptor(T.prototype,"cartLabel"),T.prototype),T))||_)}),"pages/services/runescape-powerleveling/runescape-powerleveling":(function(W,f,e){"use strict";e.r(f),e.d(f,{RunescapePowerleveling:function(){return h}});var s=e("aurelia-framework"),q=e(10220),be=e(66666),ye=e(17349),X=e(81951),ae=e(72148),j=e(31018),ge=e(12922),le=e(69117),pe=e(2959),de=e("aurelia-event-aggregator"),ce=e(39146),J=e(58846),K=e(41455),H=e(45246),k=e(42371),ee=e(6506),fe=e(17285),z=e(90753),ne=e(38489),B=e(19806),_=e(28674),T=e(9688),L=e(31153),O,G,F,Y,Z,_e;function U(v,n,a,c){a&&Object.defineProperty(v,n,{enumerable:a.enumerable,configurable:a.configurable,writable:a.writable,value:a.initializer?a.initializer.call(c):void 0})}function M(v,n,a,c,o){var t={};return Object.keys(c).forEach(function(i){t[i]=c[i]}),t.enumerable=!!t.enumerable,t.configurable=!!t.configurable,("value"in t||t.initializer)&&(t.writable=!0),t=a.slice().reverse().reduce(function(i,r){return r(v,n,i)||i},t),o&&t.initializer!==void 0&&(t.value=t.initializer?t.initializer.call(o):void 0,t.initializer=void 0),t.initializer===void 0?(Object.defineProperty(v,n,t),null):t}function p(v,n){throw Error("Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.")}const w="Select a product",u="text-green";let h=(O=(0,ne.connectTo)({selector:{featureFlags:v=>v.state.pipe((0,_.T)(n=>n.flags),(0,B.F)())}}),G=(0,s.inject)(s.BindingEngine,q.Ix,ye.b,be.w,X.x,ae.h,j.Q,le.J,pe.j,ce.F,de.EventAggregator,ge.X,K.j,H.H,ee.Q,s.TaskQueue,L.O,k.Mx),F=(0,s.computedFrom)("selectedSkills","selectedSkills.length"),O(Y=G(Y=(Z=class{constructor(n,a,c,o,t,i,r,m,g,d,y,C,R,S,N,te,Ee,D){this.games=void 0,this.gameModes=void 0,this.product=void 0,this.currentGoldPrice=void 0,this.currentParentGame=void 0,this.currentChildGame=void 0,this.currentGameMode=void 0,U(this,"search",_e,this),this.accountName=void 0,this.account=void 0,this.totalPrice=0,this.totalGold=0,this.totalLevelCurrent=0,this.totalLevelExpected=0,this.totalGoldPrice=0,this.haveGold=!1,this.skillsBeingLeveled=new Map,this.addedToCart=!1,this.loading=!1,this.pageLoading=!0,this.sortColumn=["skills","price","gold"],this.auxSkills=void 0,this.priceModification=void 0,this.notificationShowed=!0,this.rs3PWGame=void 0,this.osrsPWGame=void 0,this.productCategory=void 0,this.productsStringLarge=w,this.productsStringShort=w,this.productsStringTooltip=void 0,this.productsStringTooltipValue=void 0,this.isSyncing=!1,this.componentId=null,this.sharedStateSubscription=null,this.isDrawerInstance=!1,this.resultsExists=!1,this.handleCheckoutButton=async()=>
7276{if(!await this.sessionService.getProfile()){this.router.navigate(`/sign-in?redirect_url=${location.pathname}`);return}let I="/cart";const ue=(await this.sessionService.getCart())?.find(se=>se.isSell);ue&&this.featureFlags.get(T.$v.ORDER_CHAT_CART_FEATURE)&&(I=`/customer-portal/swap/chat/${ue.orderId}`),this.router.navigate(I)},this.sessionService=r,this.router=a,this.helper=S,this.bindingEngine=n,this.productService=c,this.gameService=o,this.skillingService=t,this.gameModeService=i,this.priceModificationChecker=m,this.tooltipArrowStyling=g,this.productCategoryService=d,this.eventAggregator=y,this.servicePricingService=C,this.websiteService=R,this.baseAwsEndpoint=(0,J.Ty)("products"),this.helper.getResolutions(this),this.orderService=N,this.taskQueue=te,this.sharedServiceState=Ee,this.metadataHelper=D,this.logger=s.LogManager.getLogger("RunescapePowerleveling")}get cartLabel(){const n=this.selectedSkills?.length||0;return n>0?`Cart (${n})`:"Cart"}async activate(n,a){try{this.helper.addLoadingComponent("power"),this.isDrawerInstance=n.drawerIsOpen||!1,this.isLandingPage=!!a?.settings?.isLandingPage,this.keyName=a?.settings?.keyName,this.componentId=`power-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,this.initializeSharedState(),this.pageContentAreaSubscriber=this.eventAggregator.subscribe("page-content-area",o=>{const t=o.pageContentArea;t&&(this.dynamicDisclaimer=t.find(i=>i.key===`${a.settings.keyName}_DISCLAIMER`))});const c=globalThis.location.pathname.split("/").filter(Boolean);this.routeSlug=c.slice(-2).join("/"),this.dataLoadingPromise=new Promise(o=>{this.taskQueue.queueMicroTask(async()=>{try{const[t,i]=await Promise.all([this.productCategoryService.getNavCategory("services","CG"),this.productCategoryService.getIdByName("Services")]);this.games=t.gameForNav.filter(r=>r.shortName==="OSRS"||r.shortName==="RS3"||r.shortName.includes("PW")),this.productCategory=i,o()}catch(t){throw this.logger.error("Error loading data:",t),t}})})}catch(c){throw this.logger.error("Error in activate:",c),c}}async attached(){try{if(await this.dataLoadingPromise,!this.games||!this.productCategory){this.logger.warn("Required data not available");return}const[n,a,c]=await Promise.all([this.websiteService.getRouteOrDefault("Services"),this.productService.getProductsWithFilter("inStockRSPW"),Promise.resolve(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)]);this.rs3PWGame=this.games.find(o=>o.shortName==="RS3PW"),this.osrsPWGame=this.games.find(o=>o.shortName==="OSRSPW"),this.servicesPageRoute=n,this.skillsProducts=a,this.width=c,this.setProductsSelectedName(),this.handleEventSubscriptions(),this.isLandingPage?this.loading=this.pageLoading=!1:this.handleDrawerLoadingState()||await this.filterByRoute(),this.resetAllSkills(),this.calculateTotals(),setTimeout(()=>{this.helper.addFilterArrow(document)},50)}catch(n){throw this.logger.error("Error in attached:",n),n}finally{(!this.isDrawerInstance||this.loading)&&this.helper.validateLoading("power")}}async reloadSkills(){try{if(!this.currentParentGame?.shortName||!this.currentGameMode?.id){this.logger.warn("Required game data not available");return}if(this.skills=await this.productService.getAllUniqueSkillsForGame(this.currentParentGame.shortName+"PW",this.currentGameMode.id),!this.skills?.length){this.logger.warn("No skills data available");return}this.skills.sort((n,a)=>(a.position!==null)-(n.position!==null)||n.position-a.position),this.skills.forEach(n=>{n.minimum=1,n.maximum=this.currentParentGame.shortName==="RS3"?120:99}),this.resetAllSkills(),this.bindSkillsProperty(),this.filterSkills(),this.syncState()}catch(n){throw this.logger.error("Error in reloadSkills:",n),n}}detached(){this.currentChildGame?.slug[0]===this.routeSlug&&this.helper.removePrerenderMetaTagForRedirect(),this.routeChangeSubscription?.dispose(),this.gameModeSubscriber?.dispose(),this.characterSubscriber?.dispose(),this.searchSubscriber?.dispose(),this.sizeChanged?.dispose(),this.adminViewSubscription?.dispose(),this.pageContentAreaSubscriber?.dispose(),this.pageLoadedSubscriber?.dispose(),this.stateSyncSubscription?.dispose(),this.sharedStateSubscription&&this.sharedStateSubscription.unsubscribe()}handleEventSubscriptions(){this.routeChangeSubscription=this.eventAggregator.subscribe("router:navigation:success",async()=>{this.loading=this.pageLoading=!0,this.helper.addLoadingComponent("power"),this.selectedSkills=[],await this.filterByRoute()}),this.gameModeSubscriber=this.eventAggregator.subscribe("game-mode-updated",n=>{this.currentGameMode=n.gameMode,this.currentGameMode&&this.currentParentGame&&this.reloadSkills(),this.syncState()}),this.characterSubscriber=this.eventAggregator.subscribe("character-updated",n=>{n.refreshAccountName?this.resetAllSkills():(this.accountName=n.accountName,this.searchUser()),this.syncState()}),this.searchSubscriber=this.eventAggregator.subscribe("search-updated",n=>{this.search=n.search,this.filterSkills(!0),this.syncState()}),this.sizeChanged=this.eventAggregator.subscribe("size-changed",n=>{this.width=n.width,this.setProductsSelectedName()}),this.adminViewSubscription=this.eventAggregator.subscribe("admin-view-updated",n=>{this.viewingAsAdmin=n.bool}),this.pageLoadedSubscriber=this.eventAggregator.subscribe("page-loaded",()=>{this.pageLoading=!1})}getChildGameConfig(n){const a=n?.toLowerCase?.();return a==="rs3"||this.rs3PWGame?.slug?.includes(n)?{childGame:this.rs3PWGame,parentShortName:"rs3"}:a==="osrs"||this.osrsPWGame?.slug?.includes(n)?{childGame:this.osrsPWGame,parentShortName:"osrs"}:{childGame:null,parentShortName:null}}async loadGameData(n,a){if(!n||!a)return{gameModes:null,priceModification:null,goldPriceModification:null,products:null};const c=a.toLowerCase(),o=this.games.find(g=>g.shortName.toLowerCase()===c)||this.games[0],[t,i,r,m]=await Promise.all([this.gameModeService.getGameModeByGameId(o.id),this.priceModificationChecker.toView(n.id,5),this.priceModificationChecker.toView(n.parentGameId,1),this.productService.getInHouseCurrencyProduct(n.parentGameId)]);return{gameModes:t,priceModification:i,goldPriceModification:r,products:m}}isChildRoute(n){return n.includes("childRoute")}setCurrentGameContext(n,a){if(!n||!a)return;const c=a.toLowerCase();this.currentParentGame=this.games.find(o=>o.shortName.toLowerCase()===c)||this.games[0],this.currentChildGame=n}applyLoadedGameData(n){const{gameModes:a,priceModification:c,goldPriceModification:o,products:t}=n;this.gameModes=a??[],this.priceModification=c,this.goldPriceModification=o,this.products=t??[],this.product=this.products.find(i=>i.seller===null&&i.sellerId===null),this.goldPriceModification&&this.product?.price?this.totalGoldPrice=this.product.price+this.product.price*(this.goldPriceModification.percentage/100):this.totalGoldPrice=this.product?.price,this.currentGameMode=this.gameModes[0],this.setProductsSelectedName()}updateSkillsRatingSchema(){if(!this.skills?.length)return;const n={offerCount:this.skills.length,lowestPrice:.01,highestPrice:99999.99};this.orderService.handleProductRatingSchema(this.currentChildGame,this.productCategory,null,"USD",null,null,n)}async filterByRoute(){const n=this.router.currentInstruction?.config?.settings;if(this.isLandingPage=!!n?.isLandingPage,this.keyName=n?.keyName,this.refreshMetadata(),this.isLandingPage){this.loading=this.pageLoading=!1,this.helper.validateLoading("power");return}try{this.loading=this.pageLoading=!0,this.helper.addLoadingComponent("power");const a=this.router.currentInstruction.config.route;if(this.isChildRoute(a))return;this.keyName=this.router.currentInstruction.config.settings.keyName,this.search="";const{childGame:c,parentShortName:o}=this.getChildGameConfig(a),t=await this.loadGameData(c,o);this.setCurrentGameContext(c,o),this.applyLoadedGameData(t),await this.reloadSkills(),this.updateSkillsRatingSchema(),this.selectedSkills=[],this.syncState(),setTimeout(()=>{this.helper.addFilterArrow(document)},50)}catch(a){throw this.logger.error("Error in filterByRoute:",a),a}finally{this.loading=!1,this.helper.validateLoading("power")}}refreshMetadata(){const n=this.router?.currentInstruction,a=n?.config;if(!a?.navModel)return;const c=a.settings?.title??a.title,o=a.settings?.metaDescription;this.metadataHelper.setTitleMetaTitleAndMetaDescription(a,n,c,o)}async filterSkills(n=!1){if(this.loading=!0,!this.skills){this.loading=!1;return}const a=!!this.search,c=this.search?.toLowerCase();let o=0;for(const r of this.skills){const m=a?r.skillName?.toLowerCase()?.includes(c):!0;r.show=m,m&&o++}const t=o===0,i=o>0;t&&!this.notificationShowed?(this.notificationShowed=!0,n||z.$.toast("No skills found, refresh the page or contact live chat for assist.","info").show()):i&&(this.notificationShowed=!1),this.resultsExists=o,this.calculateTotals(),this.syncState(),this.loading=!1}
7276bindSkillsProperty(){this.skills.forEach(n=>{this.bindingEngine.propertyObserver(n,"startLevel").subscribe(()=>this.skillChanged(n,"startLevel")),this.bindingEngine.propertyObserver(n,"endLevel").subscribe(()=>this.skillChanged(n,"endLevel"))})}resetAllSkills(){this.skills?.forEach(n=>{n.startLevel=1,n.endLevel=1,n.price=0,n.goldRequired=0}),this.auxSkills&&(this.skillsBeingLeveled.clear(),this.auxSkills.forEach(n=>{n.startLevel>1&&this.skills.find(a=>a.skillName===n.skillName)&&(this.skills.find(a=>a.skillName===n.skillName).startLevel=n.startLevel),n.endLevel>1&&this.skills.find(a=>a.skillName===n.skillName)&&(this.skills.find(a=>a.skillName===n.skillName).endLevel=n.endLevel)}))}setPlayerStats(n){this.skills.forEach(a=>{a.startLevel=n[a.skillName.toLowerCase()]??1,a.endLevel=n[a.skillName.toLowerCase()]??1})}async searchUser(){try{this.loading=!0;const n=await this.skillingService.getPlayerStats(this.accountName,this.currentParentGame.shortName);Object.keys(n).length!==0?(this.setPlayerStats(n),this.eventAggregator.publish("character-import",{success:!0})):this.eventAggregator.publish("character-import",{success:!1}),this.syncState()}catch(n){this.logger.error(n)}finally{this.loading=!1}}async skillChanged(n){const a=Number(n.startLevel),c=Number(n.endLevel);if(a<c){const o=await this.servicePricingService.getEstimates(this.currentChildGame.shortName,n.skillName,a,c,this.currentParentGame?.id,this.currentGameMode?.id?this.currentGameMode.id:1,-1);n.goldRequired=o?.estimateGoldRequired,n.price=this.priceModification?o?.price+o?.price*(this.priceModification.percentage/100):o?.price,n.updatedDate=o?.updatedDate,o?this.skillsBeingLeveled.set(n.skillName,{skillName:n.skillName,startLevel:a,endLevel:c,price:o.price,gameId:this.currentParentGame?.id,gameModeId:this.currentGameMode?.id,updatedDate:n.updatedDate,imagePath:n.imagePath}):(n.goldRequired=0,n.price=0,this.skillsBeingLeveled.delete(n.skillName))}else n.goldRequired=0,n.price=0,this.skillsBeingLeveled.delete(n.skillName);this.setProductsSelectedName(),this.calculateTotals(),this.syncState()}calculateTotals(){try{if(this.skills){this.loading=!0,this.totalPrice=0,this.totalGold=0,this.totalLevelCurrent=0,this.totalLevelExpected=0;for(const n of this.skills)this.totalPrice+=n.price,this.totalLevelCurrent+=n.startLevel?parseInt(n.startLevel,10):0,this.totalLevelExpected+=n.endLevel?parseInt(n.endLevel,10):0,this.totalGold+=n.goldRequired;this.auxSkills=this.skills,this.loading=!1}}catch(n){this.logger.error("Error calculating total:",n),z.$.toast("Failed to calculate total.","error").show()}}skillsAreValid(){if(!this.skills)return!0;for(const n of this.skills)if(!this.isSkillValidForGame(n))return!1;return!0}isSkillValidForGame(n){const a=parseInt(n.startLevel),c=parseInt(n.endLevel),o=n.price;let t=99;return this.currentParentGame.shortName==="RS3"&&(t=120),a<1||a>c||c>t?!1:!(c>1&&a!==c&&o<=0)}async addToCart(){if(!this.skillsAreValid()){this.skills.find(c=>!c.price||c.price===0)?z.$.toast("It seems that the skills you want has no price. Please fix and retry.","info").show():z.$.toast("It seems that the skills you want leveled are entered incorrectly. Please fix and retry.","info").show();return}if(this.skillsBeingLeveled.size<1){z.$.toast("No skills were selected.","info").show();return}const n=await this.sessionService.getCart();if(!await this.helper.handleAccountOrderValidation(n,this.orderService,fe.g1.Services,!1))try{for(const c of this.skillsBeingLeveled.values()){const o=`${this.currentParentGame.shortName} | ${c.skillName} [${c.startLevel} - ${c.endLevel}] ${this.currentGameMode.name!=="Regular"?`| ${this.currentGameMode.name}`:""}`,t={name:o,serviceFullName:o,character:this.accountName,skills:[c],updatedDate:c.updatedDate,quantity:1,price:c.price,isService:!0,gameId:this.currentParentGame.shortName==="RS3"?this.rs3PWGame.id:this.osrsPWGame.id,parentGameId:this.currentParentGame.id,productId:this.skillsProducts.find(i=>i.name===c.skillName&&i.game.shortName.includes(this.currentParentGame.shortName)).id,gameShortName:this.currentParentGame.shortName==="RS3"?this.rs3PWGame.shortName:this.osrsPWGame.shortName,gameModeId:this.currentGameMode.Id,difficultyId:-1,productCategoryId:this.productCategory.id,productCategoryName:this.productCategory.name,imagePath:c.imagePath};await this.sessionService.storeCartItem(t)}this.addedToCart=!0,this.totalGold>0&&this.addGoldToCart(),z.$.toast("Added Skilling Service(s) to Cart.","success").show()}catch(c){this.logger.error(c),z.$.toast("Something went wrong! Please contact the Livechat.","error").show()}}async addGoldToCart(){if(!this.haveGold){this.product.quantity=parseInt(this.totalGold),this.product.productId=this.product?.id;try{const a=(await this.sessionService.getCart())?.find(c=>c.id===this.product.id);a?(this.product.quantity=this.helper.convertNumberWithoutComma(a.quantity,"float")+parseFloat(this.totalGold),await this.sessionService.updateCartItem(this.product,!0)):this.sessionService.storeCartItem(this.product)}catch(n){this.logger.error(n),z.$.toast("Something went wrong! Please contact the Livechat.","error").show()}}}openLivechat(){window.Intercom&&window.Intercom("show")}sortBy(n,a){if(!this.skills?.length)return;const c=this.sortColumn[n],o=a.id;this.skills.sort((i,r)=>{const m=o.includes("up")?[i,r]:[r,i];switch(c){case"skills":return a.classList.contains(u)?i.skillName?.toLowerCase()?.localeCompare(r.skillName?.toLowerCase()):m[0].skillName?.toLowerCase()?.localeCompare(m[1].skillName?.toLowerCase());case"price":return a.classList.contains(u)?i.skillName?.toLowerCase()?.localeCompare(r.skillName?.toLowerCase()):m[0].price-m[1].price;default:return a.classList.contains(u)?i.skillName?.toLowerCase()?.localeCompare(r.skillName?.toLowerCase()):m[0].goldRequired-m[1].goldRequired}}),(o.includes("up")?document.querySelector(`#${c}-down`):document.querySelector(`#${c}-up`))?.classList.remove(u),a.classList.toggle(u)}closeFilter(){this.dropdownButton.classList.remove("show"),this.dropdownMenu.classList.remove("show")}setProductsSelectedName(){const n=w,a=this.currentGameMode?.name,c=this.currentParentGame?.shortName||this.currentChildGame?.shortName||"O
7276SRS";this.productsStringLarge=a?`Showing prices for ${c} <span class='highlight-word'>${a}</span> game mode.`:n,this.productsStringShort=a?`${c} <span class='highlight-word'>${a}</span> game mode.`:n,this.productsStringTooltip=null,this.productsStringTooltipValue=null}initializeSharedState(){this.sharedStateSubscription=this.sharedServiceState.subscribeToState("power",n=>{this.handleSharedStateUpdate(n)},this.componentId),this.handleDrawerLoadingState()}applySharedState(n){const a=n.data,c=n.selectedItems,o=n.gameMode,t=n.search,i=n.extraParams||{};a&&(this.skills=a),c&&(this.selectedSkills=c),o&&(this.currentGameMode=o),t!==void 0&&(this.search=t),this.applyTotalsFromState(i),this.setProductsSelectedName()}applyTotalsFromState(n){if(!n){this.calculateTotals();return}const a=n.totalPrice!==void 0,c=n.totalGold!==void 0,o=n.totalLevelCurrent!==void 0,t=n.totalLevelExpected!==void 0;a&&(this.totalPrice=n.totalPrice),c&&(this.totalGold=n.totalGold),o&&(this.totalLevelCurrent=n.totalLevelCurrent),t&&(this.totalLevelExpected=n.totalLevelExpected),a||c||o||t||this.calculateTotals()}handleSharedStateUpdate(n){if(this.isSyncing)return;this.isSyncing=!0;const{state:a}=n;this.applySharedState(a),a.loading!==void 0&&(this.loading=a.loading,this.pageLoading=a.loading,this.isDrawerInstance&&!a.loading&&a.data&&a.data.length>0&&this.helper.validateLoading("power")),setTimeout(()=>{this.isSyncing=!1},100)}loadFromSharedState(n){this.applySharedState(n),n.data&&n.data.length>0&&(this.loading=!1,this.pageLoading=!1,this.isDrawerInstance&&this.helper.validateLoading("power"))}syncState(){this.isSyncing||(this.sharedServiceState.updateState("power",{data:this.skills,selectedItems:this.selectedSkills,gameMode:this.currentGameMode,search:this.search,loading:this.loading,extraParams:{totalPrice:this.totalPrice,totalGold:this.totalGold,totalLevelExpected:this.totalLevelExpected,totalLevelCurrent:this.totalLevelCurrent},resultsExists:this.resultsExists},this.componentId),this.isDrawerInstance&&this.skills&&this.skills.length>0&&(this.loading=!1,this.helper.validateLoading("power")))}handleDrawerLoadingState(){if(this.isDrawerInstance){const n=this.sharedServiceState.getSharedState("power");if(n.data&&n.data.length>0&&n.lastUpdate)return this.loadFromSharedState(n),this.preserveTotalsFromSharedState(n),this.loading=!1,this.helper.validateLoading("power"),!0}return!1}preserveTotalsFromSharedState(n){n.extraParams&&(n.extraParams.totalPrice!==void 0&&(this.totalPrice=n.extraParams.totalPrice),n.extraParams.totalGold!==void 0&&(this.totalGold=n.extraParams.totalGold))}handleRadioInput(n){this.haveGold=n}},_e=M(Z.prototype,"search",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M(Z.prototype,"cartLabel",[F],Object.getOwnPropertyDescriptor(Z.prototype,"cartLabel"),Z.prototype),Z))||Y)||Y)}),"pages/services/runescape-pvm/runescape-pvm":(function(W,f,e){"use strict";e.r(f),e.d(f,{RunescapePvm:function(){return o}});var s=e("aurelia-framework"),q=e(10220),be=e(17349),ye=e(31018),X=e("aurelia-event-aggregator"),ae=e(72148),j=e(66666),ge=e(69117),le=e(2959),pe=e(39146),de=e(12922),ce=e(41455),J=e(45246),K=e(6506),H=e(17285),k=e(90753),ee=e(58846),fe=e(8706),z=e(46110),ne=e(9688),B=e(38489),_=e(19806),T=e(28674),L=e(31153),O,G,F,Y,Z,_e,U,M,p,w,u;function h(t,i,r,m){r&&Object.defineProperty(t,i,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(m):void 0})}function v(t,i,r,m,g){var d={};return Object.keys(m).forEach(function(y){d[y]=m[y]}),d.enumerable=!!d.enumerable,d.configurable=!!d.configurable,("value"in d||d.initializer)&&(d.writable=!0),d=r.slice().reverse().reduce(function(y,C){return C(t,i,y)||y},d),g&&d.initializer!==void 0&&(d.value=d.initializer?d.initializer.call(g):void 0,d.initializer=void 0),d.initializer===void 0?(Object.defineProperty(t,i,d),null):d}function n(t,i){throw Error("Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.")}const a="Select a product",c="text-green";let o=(O=(0,B.connectTo)({selector:{featureFlags:t=>t.state.pipe((0,T.T)(i=>i.flags),(0,_.F)())}}),G=(0,s.inject)(s.BindingEngine,q.Ix,be.b,ye.Q,X.EventAggregator,ae.h,j.w,ge.J,le.j,pe.F,de.X,ce.j,J.H,K.Q,fe.P,z.AutoSiteStringValueConverter,L.O),F=(0,s.computedFrom)("selectedPvms","selectedPvms.length"),O(Y=G(Y=(Z=class{constructor(i,r,m,g,d,y,C,R,S,N,te,Ee,D,I,A,ue,se){this.loading=!0,this.pageLoading=!0,h(this,"tableHeight",_e,this),this.totalPrice=void 0,this.totalGoldPrice=0,this.totalKills=void 0,this.pvms=[],this.product=void 0,this.gameModes=void 0,h(this,"page",U,this),this.totalPages=void 0,h(this,"currentGameMode",M,this),h(this,"currentGame",p,this),this.addedToCart=void 0,this.selectedPvms=[],this.games=void 0,this.searchColumn="position",h(this,"search",w,this),h(this,"difficulty",u,this),this.direction="ASC",this.pvmSearchFilter=void 0,this.haveGold=!1,this.sortState=[!1,
7276!1,!1,!1],this.sortColumn=["pvm","gold","price","type"],this.productsStringLarge=a,this.productsStringShort=a,this.auxPvms=void 0,this.priceModification=void 0,this.notificationShowed=!0,this.rs3PVMGame=void 0,this.osrsPVMGame=void 0,this.productCategory=void 0,this.productsStringTooltip=void 0,this.productsStringTooltipValue=void 0,this.initialDataPromise=void 0,this.pvmsObserver=void 0,this.selectedPvmsObserver=void 0,this.componentId=null,this.sharedStateSubscription=null,this.isDrawerInstance=!1,this.resultsExists=!1,this.isSyncing=!1,this.handleCheckoutButton=async()=>{if(!await this.sessionService.getProfile()){this.router.navigate(`/sign-in?redirect_url=${location.pathname}`);return}let me="/cart";const x=(await this.sessionService.getCart())?.find($=>$.isSell);x&&this.featureFlags.get(ne.$v.ORDER_CHAT_CART_FEATURE)&&(me=`/customer-portal/swap/chat/${x.orderId}`),this.router.navigate(me)},this.sessionService=g,this.router=r,this.helper=D,this.bindingEngine=i,this.productService=m,this.eventAggregator=d,this.gameModeService=y,this.gameService=C,this.priceModificationChecker=R,this.tooltipArrowStyling=S,this.servicePricingService=te,this.productCategoryService=N,this.websiteService=Ee,this.baseAwsEndpoint=(0,ee.Ty)("products"),this.helper.getResolutions(this),this.orderService=I,this.taskQueue=A,this.autoSiteStringValueConverter=ue,this.sharedServiceState=se,this.logger=s.LogManager.getLogger("RunescapePvm")}get cartLabel(){const i=this.selectedPvms?.length||0;return i>0?`Cart (${i})`:"Cart"}async activate(i,r){this.isDrawerInstance=i.drawerIsOpen||!1,this.componentId=`pvm-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,this.initializeSharedState(),this.handleDrawerLoadingState()||this.helper.addLoadingComponent("pvm"),this.pageContentAreaSubscriber=this.eventAggregator.subscribe("page-content-area",g=>{const d=g.pageContentArea;d&&(this.dynamicDisclaimer=d.find(y=>y.key===`${r.settings.keyName}_DISCLAIMER`))});const m=globalThis.location.pathname.split("/").filter(Boolean);this.routeSlug=m.slice(-2).join("/"),this.initialDataPromise=new Promise(g=>{this.taskQueue.queueMicroTask(async()=>{try{const[d,y]=await Promise.all([this.productCategoryService.getNavCategory("services","CG"),this.productCategoryService.getIdByName("services")]);this.games=d.gameForNav.filter(C=>C.shortName.includes("OSRS")||C.shortName.includes("RS3")),this.productCategory=y,g()}catch(d){throw this.logger.error("Error loading initial data:",d),k.$.toast("Failed to load game data. Please try again.","error").show(),d}})})}async attached(){try{await this.initialDataPromise,this.rs3PVMGame=this.games.find(m=>m.shortName==="RS3PVM"),this.osrsPVMGame=this.games.find(m=>m.shortName==="OSRSPVM");const[i,r]=await Promise.all([this.websiteService.getRouteOrDefault("Services"),Promise.resolve(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)]);this.servicesPageRoute=i,this.width=r,this.handleEventSubscriptions(),this.handleDrawerLoadingState()||await this.filterByRoute()}catch(i){this.logger.error("Error in attached:",i),k.$.toast("Failed to initialize component.","error").show()}finally{this.loading=!1,(!this.isDrawerInstance||this.loading)&&this.helper.validateLoading("pvm")}}detached(){this.currentGame?.slug[0]===this.routeSlug&&this.helper.removePrerenderMetaTagForRedirect(),this.pvmsObserver&&this.pvmsObserver.dispose(),this.selectedPvmsObserver&&this.selectedPvmsObserver.dispose(),this.routeChangeSubscription?.dispose(),this.gameModeSubscriber?.dispose(),this.searchSubscriber?.dispose(),this.difficultySubscriber?.dispose(),this.sizeChanged?.dispose(),this.adminViewSubscription?.dispose(),this.pageContentAreaSubscriber?.dispose(),this.stateSyncSubscription?.dispose(),this.sharedStateSubscription&&this.sharedStateSubscription.unsubscribe()}handleEventSubscriptions(){this.routeChangeSubscription=this.eventAggregator.subscribe("router:navigation:success",i=>{this.loading=this.pageLoading=!0,this.helper.addLoadingComponent("pvm"),this.selectedPvms=[],this.addedToCart=!1,this.filterByRoute()}),this.gameModeSubscriber=this.eventAggregator.subscribe("game-mode-updated",async i=>{this.currentGameMode=i.gameMode,this.filterPvms(),this.updateSelectedPvms(),this.setProductsSelectedName(),this.calculateTotal(),this.syncState()}),this.difficultySubscriber=this.eventAggregator.subscribe("difficulty-updated",i=>{this.difficulty=i.difficulty??{name:"All"},this.filterPvms(),this.updateSelectedPvms(),this.setProductsSelectedName(),this.calculateTotal(),this.syncState()}),this.searchSubscriber=this.eventAggregator.subscribe("search-updated",i=>{this.search=i.search,this.filterPvms(null,!0),this.syncState()}),this.sizeChanged=this.eventAggregator.subscribe("size-changed",i=>{this.width=i.width,this.setProductsSelectedName()}),this.adminViewSubscription=this.eventAggregator.subscribe("admin-view-updated",i=>{this.viewingAsAdmin=i.bool}),this.pageLoadedSubscriber=this.eventAggregator.subscribe("page-loaded",()=>{this.pageLoading=!1})}async filterByRoute(){try{if(this.search="",this.route=this.router.currentInstruction.config.route,this.route.includes("childRoute"))return;if(this.keyName=this.router.currentInstruction.config.settings.keyName,this.rs3PVMGame?.slug?.includes(this.route)?(this.pvmSearchFilter="RS3PVM",this.gameModes=await this.gameModeService.getGameModeByGameId(this.games.find(d=>d.shortName==="RS3").id),this.currentGame=this.rs3PVMGame):this.osrsPVMGame?.slug?.includes(this.route)&&(this.pvmSearchFilter="OSRSPVM",this.gameModes=await this.gameModeService.getGameModeByGameId(this.games.find(d=>d.shortName==="OSRS").id),this.currentGame=this.osrsPVMGame),!this.currentGameMode&&this.gameModes?.length&&(this.currentGameMode=this.gameModes[0]),this.parentGame=this.games.find(d=>parseInt(d.id)===parseInt(this.currentGame.parentGameId)),this.currentGame.slug[0]!==this.route){const d=`/${this.servicesPageRoute}/${this.currentGame.slug[0]}`;this.helper.addPrerenderMetaTagForRedirect(d),this.router.navigate(d);return}const[i,r,m,g]=await Promise.all([this.priceModificationChecker.toView(this.currentGame.id,5),this.priceModificationChecker.toView(this.currentGame.parentGameId,1),this.servicePricingService.getByFilter(this.pvmSearchFilter),this.productService.getInHouseCurrencyProduct(this.currentGame.parentGameId)]);this.priceModification=i,this.goldPriceModification=r,this.originalPvm=m,this.products=g,this.originalPvm.sort((d,y)=>(y.product?.position!==null)-(d.product?.position!==null)||d.product?.position-y.product?.position),this.pvms=[...this.originalPvm];for(const d of this.pvms)d.kills=0;if(this.pvms?.length){const d={offerCount:this.pvms.length,lowestPrice:.01,highestPrice:99999.99};this.orderService.handleProductRatingSchema(this.currentGame,this.productCategory,null,"USD",null,null,d)}this.totalPages=Math.ceil(this.originalPvm.length/20),this.page=1,this.product=this.products.find(d=>d.seller===null&&d.sellerId===null),this.totalGoldPrice=this.goldPriceModification?this.product?.price+this.product?.price*(this.goldPriceModification.percentage/100):this.product?.price,this.setupObservers(),await this.filterPvms(!0),await this.calculateTotal(),this.setProductsSelectedName(),this.syncState(),setTimeout(()=>{this.helper.addFilterArrow(document)},50)}catch(i){this.logger.error("Error in filterByRoute:",i),k.$.toast("Failed to load PVM data. Please try again.","error").show()}finally{this.loading=!1,this.helper.validateLoading("pvm")}}setupObservers(){this.pvmsObserver=this.bindingEngine.collectionObserver(this.pvms).subscribe(()=>{this.setProductsSelectedName()}),this.selectedPvmsObserver=this.bindingEngine.collectionObserver(this.selectedPvms).subscribe(()=>{this.setProductsSelectedName(),this.calculateTotal()});for(const i of this.pvms)this.bindingEngine.propertyObserver(i,"selected").subscribe(()=>{this.calculateTotal()}),this.bindingEngine.propertyObserver(i,"kills").subscribe(()=>this.pvmChanged(i))}async filterPvms(i,r=!1){try{if(!this.pvms)return;this.updatePvmFiltersAndPrices();const m=this.pvms.some(g=>g.show);!m&&!this.notificationShowed&&!r&&k.$.toast("No PVM found, refresh the page or contact live chat for assist.","info").show(),this.notificationShowed=!m,this.resultsExists=m,this.calculateTotal(),this.syncState()}catch(m){this.logger.error("Error filtering PVMs:",m),k.$.toast("Failed to filter PVM data.","error").show()}}updatePvmFiltersAndPrices(){for(const i of this.pvms){const r=this.pvmMatchesSearch(i),m=this.pvmMatchesDifficulty(i),g=this.pvmMatchesGameMode(i);i.show=!!i.price&&r&&m&&g,this.updatePvmPrices(i)}}pvmMatchesSearch(i){if(!this.search)return!0;const r=this.search.toLowerCase(),m=i.product?.name?.toLowerCase();return!!m&&m.includes(r)}pvmMatchesDifficulty(i){return!this.difficulty||this.difficulty?.name==="All"?!0:i.difficultyId===this.difficulty?.id}pvmMatchesGameMode(i){return this.currentGameMode?i.gameModeId===this.currentGameMode?.id:!0}updatePvmPrices(i){const r=this.helper.convertNumberWithoutComma(i.kills,"int")||0,m=i.product?.goldRequired||0;if(this.priceModification){const g=i.price+i.price*(this.priceModification.percentage/100);i.displayPrice=g*r}else i.displayPrice=i.price*r;i.displayGoldRequired=m*r}async pvmChanged(i){this.helper.convertNumberWithoutComma(i.kills,"int")>0?(this.selectedPvms.find(r=>r.product?.name===i.product?.name)?this.selectedPvms.find(r=>r===i).kills=i.kills:this.selectedPvms.push(i),i.displayPrice=this.priceModification?(i.price+i.price*(this.priceModification.percentage/100))*this.helper.convertNumberWithoutComma(i.kills,"int"):i.price*this.helper.convertNumberWithoutComma(i.kills,"int"),i.displayGoldRequired=i.product?.goldRequired*this.helper.convertNumberWithoutComma(i.kills,"int"),i.displayPrice=(Math.round(i.displayPrice*100)/100).toFixed(2)):(i.displayPrice=0,i.displayGoldRequired=i.product?.goldRequired,this.removePvmFromSelectedPvms(i)),this.setProductsSelectedName(),this.calculateTotal(),this.syncState()}updateSelectedPvms(){const i=this.selectedPvms,r=this.selectedPvms?.map(m=>m.productId);this.selectedPvms=this.pvms?.filter(m=>r.includes(m.productId)&&m.gameModeId===this.currentGameMode?.id&&m.difficultyId===this.difficulty.id);for(const m of this.pvms)this.selectedPvms.some(g=>g.id===m.id)&&(m.kills=i.find(g=>
7276g.productId===m.productId).kills),this.selectedPvms.length===0&&(m.kills=0);this.setProductsSelectedName(),this.syncState()}removePvmFromSelectedPvms(i){const r=this.selectedPvms.indexOf(i);r!==-1&&this.selectedPvms.splice(r,1)}async calculateTotal(){if(this.totalGold=0,this.totalPrice=0,this.totalKills=0,this.pvms){for(const i of this.selectedPvms)this.totalKills+=this.helper.convertNumberWithoutComma(i.kills,"int"),this.totalPrice+=parseFloat(i.displayPrice),this.totalGold+=i.displayGoldRequired;this.totalPrice=(Math.round(this.totalPrice*100)/100).toFixed(2)}this.auxPvms=this.pvms}pvmsAreValid(){let i=!0;return this.selectedPvms.forEach(({price:r,kills:m})=>{(m<1||m>9999||r<=0)&&(i=!1)}),i}async addToCart(){if(!this.pvmsAreValid()){k.$.toast("It seems that the pvm kills you want are entered incorrectly. Please fix and retry.","info").show();return}if(this.selectedPvms.length<1){k.$.toast("No PvM were selected.","info").show();return}const i=await this.sessionService.getCart();if(!await this.helper.handleAccountOrderValidation(i,this.orderService,H.g1.Services,!1))try{const m=this.gameModes.find(g=>g.id===this.currentGameMode?.id)??this.gameModes[0];for(const g of this.selectedPvms){const d=`${this.parentGame?.shortName??this.currentGame.shortName} | PVM | ${g.product?.name} [${g.kills} Kills] ${m.name!=="Regular"?`| ${m.name}`:""} | ${this.difficulty.name}`,y={name:d,serviceFullName:d,quantity:g.kills,updatedDate:g.updatedDate,selectedQuantity:g.kills,price:g.price,productId:g.productId,type:"Pvm",isService:!0,character:g.character,gameId:g.product?.gameId,parentGameId:this.parentGame.id,gameShortName:this.currentGame.shortName,gameModeId:m.id,imagePath:g.imagePath,servicePricing:g,productCategoryId:this.productCategory.id,productCategoryName:this.productCategory.name};await this.sessionService.storeCartItem(y)}this.addedToCart=!0,this.totalGold>0&&this.addGoldToCart(),k.$.toast("Added PvM Service(s) to Cart.","success").show()}catch(m){this.logger.error("Error addToCart:",m),k.$.toast("Something went wrong! Please contact the Livechat.","error").show()}}async addGoldToCart(){if(!this.haveGold){this.product.quantity=parseInt(this.totalGold),this.product.productId=this.product?.id;try{const r=(await this.sessionService.getCart())?.find(m=>m.id===this.product.id);r?(this.product.quantity=this.helper.convertNumberWithoutComma(r.quantity,"float")+parseFloat(this.totalGold),await this.sessionService.updateCartItem(this.product,!0)):this.sessionService.storeCartItem(this.product)}catch(i){this.logger.error("Error addGoldToCart:",i),k.$.toast("Something went wrong! Please contact the Livechat.","error").show()}}}sortBy(i,r){const m=this.sortColumn[i],g=r.id;this.pvms.sort((y,C)=>{const R=g.includes("up")?[y,C]:[C,y];switch(m){case"pvm":return r.classList.contains(c)?y.product?.name?.toLowerCase()?.localeCompare(C.product?.name?.toLowerCase()):R[0].product?.name?.toLowerCase()?.localeCompare(R[1].product?.name?.toLowerCase());case"price":return r.classList.contains(c)?y.product?.name?.toLowerCase()?.localeCompare(C.product?.name?.toLowerCase()):R[0].displayPrice-R[1].displayPrice;case"gold":return r.classList.contains(c)?y.product?.name?.toLowerCase()?.localeCompare(C.product?.name?.toLowerCase()):R[0].product?.goldRequired-R[1].product?.goldRequired;default:return r.classList.contains(c)?y.product?.name?.toLowerCase()?.localeCompare(C.product?.name?.toLowerCase()):R[0].product?.productSubCategory.name?.toLowerCase()?.localeCompare(R[1].product?.productSubCategory.name?.toLowerCase())}}),(g.includes("up")?document.querySelector(`#${m}-down`):document.querySelector(`#${m}-up`)).classList.remove(c),r.classList.toggle(c)}openLivechat(){window.Intercom&&window.Intercom("show")}closeFilter(){const i=document.getElementById("show-products-selector"),r=document.getElementById("show-products-dropdown");i?.classList.remove("show"),r?.classList.remove("show")}getGameModeName(i){if(!i||!this.gameModes)return"";const r=this.gameModes.find(m=>m.id===i);return r&&r.name!=="Regular"?r.name:""}setProductsSelectedName(){const i=a,r=this.currentGameMode?.name,m=this.parentGame?.shortName||this.currentGame?.shortName||"O
7276SRS";this.productsStringLarge=r?`Showing prices for ${m} <span class='highlight-word'>${r}</span> game mode.`:i,this.productsStringShort=r?`${m} <span class='highlight-word'>${r}</span> game mode.`:i,this.productsStringTooltip=null,this.productsStringTooltipValue=null}initializeSharedState(){this.sharedStateSubscription=this.sharedServiceState.subscribeToState("pvm",i=>{this.handleSharedStateUpdate(i)},this.componentId),this.handleDrawerLoadingState()}handleDrawerLoadingState(){if(this.isDrawerInstance){const i=this.sharedServiceState.getSharedState("pvm");if(i.data&&i.data.length>0&&i.lastUpdate)return this.loadFromSharedState(i),this.preserveTotalsFromSharedState(i),this.loading=!1,this.helper.validateLoading("pvm"),!0}return!1}handleSharedStateUpdate(i){if(this.isSyncing)return;this.isSyncing=!0;const{state:r}=i;this.applySharedState(r),r.loading!==void 0&&(this.loading=r.loading,this.pageLoading=r.loading,this.isDrawerInstance&&!r.loading&&r.data&&r.data.length>0&&this.helper.validateLoading("pvm")),setTimeout(()=>{this.isSyncing=!1},100)}applySharedState(i){const r=i.data,m=i.selectedItems,g=i.gameMode,d=i.search,y=i.extraParams||{};r&&(this.pvms=r),m&&(this.selectedPvms=m),g&&(this.currentGameMode=g),d!==void 0&&(this.search=d),this.applyTotalsFromState(y),this.setProductsSelectedName()}applyTotalsFromState(i){if(!i){this.calculateTotal();return}const r=i.totalPrice!==void 0,m=i.totalGold!==void 0,g=i.totalKills!==void 0;r&&(this.totalPrice=i.totalPrice),m&&(this.totalGold=i.totalGold),g&&(this.totalKills=i.totalKills),r||m||g||this.calculateTotal()}loadFromSharedState(i){this.applySharedState(i),i.data&&i.data.length>0&&(this.loading=!1,this.pageLoading=!1,this.isDrawerInstance&&this.helper.validateLoading("pvm"))}preserveTotalsFromSharedState(i){i.extraParams&&(i.extraParams.totalPrice!==void 0&&(this.totalPrice=i.extraParams.totalPrice),i.extraParams.totalGold!==void 0&&(this.totalGold=i.extraParams.totalGold),i.extraParams.totalKills!==void 0&&(this.totalKills=i.extraParams.totalKills))}syncState(){this.isSyncing||((!this.totalPrice||this.totalPrice==="0.00"||this.totalPrice===0)&&this.calculateTotal(),this.sharedServiceState.updateState("pvm",{data:this.pvms,selectedItems:this.selectedPvms,gameMode:this.currentGameMode,search:this.search,loading:this.loading,extraParams:{totalPrice:this.totalPrice,totalGold:this.totalGold,totalKills:this.totalKills},resultsExists:this.resultsExists},this.componentId),this.isDrawerInstance&&this.pvms&&this.pvms.length>0&&(this.loading=!1,this.pageLoading=!1))}handleRadioInput(i){this.haveGold=i}},_e=v(Z.prototype,"tableHeight",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=v(Z.prototype,"page",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=v(Z.prototype,"currentGameMode",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=v(Z.prototype,"currentGame",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=v(Z.prototype,"search",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=v(Z.prototype,"difficulty",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{name:"All"}}}),v(Z.prototype,"cartLabel",[F],Object.getOwnPropertyDescriptor(Z.prototype,"cartLabel"),Z.prototype),Z))||Y)||Y)}),"pages/services/runescape-questing/runescape-questing":(function(W,f,e){"use strict";e.r(f),e.d(f,{RunescapeQuesting:function(){return a}});var s=e("aurelia-framework"),q=e(10220),be=e(17349),ye=e(31018),X=e("aurelia-event-aggregator"),ae=e(72148),j=e(66666),ge=e(69117),le=e(2959),pe=e(12922),de=e(39146),ce=e(41455),J=e(45246),K=e(6506),H=e(17285),k=e(90753),ee=e(8706),fe=e(45843),z=e(46110),ne=e(9688),B=e(38489),_=e(19806),T=e(28674),L=e(31153),O,G,F,Y,Z,_e,U,M,p;function w(c,o,t,i){t&&Object.defineProperty(c,o,{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(i):void 0})}function u(c,o,t,i,r){var m={};
7276return Object.keys(i).forEach(function(g){m[g]=i[g]}),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=t.slice().reverse().reduce(function(g,d){return d(c,o,g)||g},m),r&&m.initializer!==void 0&&(m.value=m.initializer?m.initializer.call(r):void 0,m.initializer=void 0),m.initializer===void 0?(Object.defineProperty(c,o,m),null):m}function h(c,o){throw Error("Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.")}const v="Select a product",n="text-green";let a=(O=(0,B.connectTo)({selector:{featureFlags:c=>c.state.pipe((0,T.T)(o=>o.flags),(0,_.F)())}}),G=(0,s.inject)(s.BindingEngine,q.Ix,be.b,ye.Q,X.EventAggregator,ae.h,j.w,ge.J,le.j,pe.X,de.F,ce.j,J.H,K.Q,ee.P,fe.SiteStringsValueConverter,z.AutoSiteStringValueConverter,L.O),F=(0,s.computedFrom)("selectedQuests","selectedQuests.length"),O(Y=G(Y=(Z=class{constructor(o,t,i,r,m,g,d,y,C,R,S,N,te,Ee,D,I,A,ue){this.loading=!0,this.pageLoading=!0,w(this,"tableHeight",_e,this),this.totalPrice=void 0,this.totalGoldPrice=0,this.quests=void 0,this.product=void 0,this.gameModes=void 0,w(this,"page",U,this),this.totalPages=void 0,this.currentGameMode=void 0,this.currentGame=void 0,this.addedToCart=void 0,this.selectedQuests=[],this.games=void 0,this.searchColumn="position",w(this,"search",M,this),w(this,"difficulty",p,this),this.direction="ASC",this.questSearchFilter=void 0,this.haveGold=!1,this.sortState=[!1,!1,!1,!1],this.sortColumn=["quest","gold","price","type"],this.productsStringLarge=v,this.productsStringShort=v,this.priceModification=void 0,this.notificationShowed=!0,this.rs3QGame=void 0,this.osrsQGame=void 0,this.productCategory=void 0,this.changedRoute=void 0,this.auxQuests=void 0,this.productsStringTooltip=void 0,this.productsStringTooltipValue=void 0,this.isSyncing=!1,this.componentId=null,this.sharedStateSubscription=null,this.isDrawerInstance=!1,this.resultsExists=!1,this.handleCheckoutButton=async()=>{if(!await this.sessionService.getProfile()){this.router.navigate(`/sign-in?redirect_url=${location.pathname}`);return}let se="/cart";const P=(await this.sessionService.getCart())?.find(x=>x.isSell);P&&this.featureFlags.get(ne.$v.ORDER_CHAT_CART_FEATURE)&&(se=`/customer-portal/swap/chat/${P.orderId}`),this.router.navigate(se)},this.sessionService=r,this.router=t,this.helper=te,this.bindingEngine=o,this.productService=i,this.eventAggregator=m,this.gameModeService=g,this.gameService=d,this.priceModificationChecker=y,this.tooltipArrowStyling=C,this.servicePricingService=R,this.productCategoryService=S,this.websiteService=N,this.siteStrings=I,this.helper.getResolutions(this),this.orderService=Ee,this.taskQueue=D,this.dataLoadingPromise=null,this.autoSiteStringValueConverter=A,this.sharedServiceState=ue,this.logger=s.LogManager.getLogger("RunescapeQuesting")}get cartLabel(){const o=this.selectedQuests?.length||0;return o>0?`Cart (${o})`:"Cart"}async activate(o,t){try{this.isDrawerInstance=o.drawerIsOpen||!1,this.componentId=`questing-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,this.initializeSharedState(),this.handleDrawerLoadingState()||this.helper.addLoadingComponent("questing"),this.pageContentAreaSubscriber=this.eventAggregator.subscribe("page-content-area",r=>{const m=r.pageContentArea;m&&(this.dynamicDisclaimer=m.find(g=>g.key===`${t.settings.keyName}_DISCLAIMER`))});const i=globalThis.location.pathname.split("/").filter(Boolean);this.routeSlug=i.slice(-2).join("/"),this.dataLoadingPromise=new Promise(r=>{this.taskQueue.queueMicroTask(async()=>{try{const[m,g]=await Promise.all([this.productCategoryService.getNavCategory("services","CG"),this.productCategoryService.getIdByName("Services")]);this.games=m.gameForNav.filter(d=>d.shortName.includes("OSRS")||d.shortName.includes("RS3")),this.productCategory=g,r()}catch(m){throw this.logger.error("Error loading initial data:",m),m}})})}catch(i){throw this.logger.error("Error in activate:",i),i}}async attached(){try{await this.dataLoadingPromise,this.rs3QGame=this.games.find(i=>
7276i.shortName==="RS3QUESTING"),this.osrsQGame=this.games.find(i=>i.shortName==="OSRSQUESTING");const[o,t]=await Promise.all([this.websiteService.getRouteOrDefault("Services"),Promise.resolve(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)]);this.servicesPageRoute=o,this.width=t,this.handleEventSubscriptions(),this.handleDrawerLoadingState()||await this.filterByRoute()}catch(o){throw this.logger.error("Error in attached:",o),o}finally{(!this.isDrawerInstance||this.loading)&&this.helper.validateLoading("questing")}}detached(){this.currentGame?.slug[0]===this.routeSlug&&this.helper.removePrerenderMetaTagForRedirect(),this.routeChangeSubscription?.dispose(),this.gameModeSubscriber?.dispose(),this.searchSubscriber?.dispose(),this.difficultySubscriber?.dispose(),this.sizeChanged?.dispose(),this.adminViewSubscription?.dispose(),this.pageContentAreaSubscriber?.dispose(),this.stateSyncSubscription?.dispose(),this.sharedStateSubscription&&this.sharedStateSubscription.unsubscribe()}handleEventSubscriptions(){this.routeChangeSubscription=this.eventAggregator.subscribe("router:navigation:success",async o=>{this.loading=this.pageLoading=!0,this.helper.addLoadingComponent("questing"),this.changedRoute=!0,this.addedToCart=!1,await this.filterByRoute()}),this.gameModeSubscriber=this.eventAggregator.subscribe("game-mode-updated",async o=>{const t=this.currentGameMode;this.currentGameMode=o.gameMode,this.transferSelectedQuestsToCurrentGameMode(t),await this.filterQuests(),this.updatedSelectedQuests(),this.setProductsSelectedName(),this.calculateTotal(),this.syncState()}),this.searchSubscriber=this.eventAggregator.subscribe("search-updated",o=>{this.search=o.search,this.changedRoute||(this.filterQuests(!0),this.syncState())}),this.difficultySubscriber=this.eventAggregator.subscribe("difficulty-updated",async o=>{this.difficulty=o.difficulty??{name:"All"},await this.filterQuests(),this.updatedSelectedQuests(),this.setProductsSelectedName(),this.calculateTotal(),this.syncState()}),this.sizeChanged=this.eventAggregator.subscribe("size-changed",o=>{this.width=o.width,this.setProductsSelectedName()}),this.adminViewSubscription=this.eventAggregator.subscribe("admin-view-updated",o=>{this.viewingAsAdmin=o.bool}),this.pageLoadedSubscriber=this.eventAggregator.subscribe("page-loaded",()=>{this.pageLoading=!1})}async loadGameData(){if(this.rs3QGame?.slug?.includes(this.route)){this.questFilter="RS3QUESTING";const[o,t,i]=await Promise.all([this.gameModeService.getGameModeByGameId(this.games.find(r=>r.shortName==="RS3").id),this.priceModificationChecker.toView(this.rs3QGame.id,5),this.priceModificationChecker.toView(this.rs3QGame.parentGameId,1)]);this.gameModes=o,this.currentGame=this.rs3QGame,this.priceModification=t,this.goldPriceModification=i}else if(this.osrsQGame?.slug?.includes(this.route)){this.questFilter="OSRSQUESTING";const[o,t,i]=await Promise.all([this.gameModeService.getGameModeByGameId(this.games.find(r=>r.shortName==="OSRS").id),this.priceModificationChecker.toView(this.osrsQGame.id,5),this.priceModificationChecker.toView(this.osrsQGame.parentGameId,1)]);this.gameModes=o,this.currentGame=this.osrsQGame,this.priceModification=t,this.goldPriceModification=i}this.syncState()}async filterByRoute(){try{if(this.search="",this.route=this.router.currentInstruction.config.route,this.route.includes("childRoute"))return;if(this.keyName=this.router.currentInstruction.config.settings.keyName,await this.loadGameData(),!this.currentGame){k.$.toast("Error loading quests. Please try again.","error").show();return}if(!this.currentGameMode&&this.gameModes?.length&&(this.currentGameMode=this.gameModes[0]),this.parentGame=this.games.find(i=>parseInt(i.id)===parseInt(this.currentGame.parentGameId)),this.currentGame.slug[0]!==this.route){const i=`/${this.servicesPageRoute}/${this.currentGame.slug[0]}`;this.helper.addPrerenderMetaTagForRedirect(i),this.router.navigate(i)}const[o,t]=await Promise.all([this.servicePricingService.getByFilter(this.questFilter),this.productService.getInHouseCurrencyProduct(this.currentGame.parentGameId)]);if(this.originQuests=o,this.originQuests.sort((i,r)=>(r.product?.position!==null)-(i.product?.position!==null)||i.product?.position-r.product?.position),this.quests=[...this.originQuests],this.quests?.length){const i=this.quests.map(m=>m.price>0?m.price:null).filter(m=>m!==null),r={offerCount:this.quests.length,lowestPrice:Math.min(...i),highestPrice:Math.max(...i)};this.orderService.handleProductRatingSchema(this.currentGame,this.productCategory,null,"USD",null,null,r)}this.totalPages=Math.ceil(this.originQuests.length/20),this.page=1,this.products=t,this.product=this.products.find(i=>i.seller===null&&i.sellerId===null),this.totalGoldPrice=this.goldPriceModification?this.product?.price+this.product?.price*(this.goldPriceModification.percentage/100):this.product?.price,await this.calculateTotal(),await this.filterQuests(),this.setProductsSelectedName();for(const i of this.quests)this.bindingEngine.propertyObserver(i,"selected").subscribe(()=>{this.calculateTotal()});this.selectedQuests=[],this.changedRoute=!1,this.syncState(),setTimeout(()=>{this.helper.addFilterArrow(document)},50)}catch(o){throw this.logger.error("Error in filterByRoute:",o),k.$.toast("Error loading quests. Please try again.","error").show(),o}finally{this.loading=!1,this.helper.validateLoading("questing")}}async filterQuests(o=!1){try{if(!this.quests)return;this.updateQuestFiltersAndPrices();const t=this.quests.some(i=>i.show);!t&&!this.notificationShowed&&!o&&k.$.toast("No quests found, refresh the page or contact live chat for assist.","info").show(),this.notificationShowed=t,this.resultsExists=t,this.calculateTotal(),this.syncState()}catch(t){this.logger.error("Error in filterQuests:",t),k.$.toast("Error filtering quests. Please try again.","error").show()}}questSelectionKey(o){const t=o?.product?.name??"",i=o?.difficultyId??o?.difficulty??"";return`${t}|${i}`}transferSelectedQuestsToCurrentGameMode(o){if(!(o&&this.currentGameMode&&o.id!==this.currentGameMode.id)||!this.quests?.length)return;
7276if(!this.selectedQuests?.length){this.quests.forEach(r=>{r.selected=!1});return}const i=new Set(this.selectedQuests.filter(r=>r?.gameModeId===o.id).map(r=>this.questSelectionKey(r)));this.selectedQuests=[],this.quests.forEach(r=>{r.gameModeId===this.currentGameMode.id&&i.has(this.questSelectionKey(r))?(r.selected=!0,this.selectedQuests.push(r)):r.selected=!1})}updateQuestFiltersAndPrices(){for(const o of this.quests){const t=this.questMatchesSearch(o),i=this.questMatchesDifficulty(o),r=this.questMatchesGameMode(o);o.show=!!o.price&&t&&i&&r,this.updateQuestDisplayPrice(o)}}questMatchesSearch(o){if(!this.search)return!0;const t=this.search.toLowerCase(),i=o.product?.name?.toLowerCase();return!!i&&i.includes(t)}questMatchesDifficulty(o){return!this.difficulty||this.difficulty?.name==="All"?!0:o.difficultyId===this.difficulty?.id}questMatchesGameMode(o){return this.currentGameMode?o.gameModeId===this.currentGameMode?.id:!0}updateQuestDisplayPrice(o){this.priceModification?o.displayPrice=o.price+o.price*(this.priceModification.percentage/100):o.displayPrice=o.price}async updatedSelectedQuests(){try{if(!this.selectedQuests||!this.currentGameMode)return;this.selectedQuests.forEach(o=>{o.product&&(o.displayPrice=this.priceModification?o.price+o.price*(this.priceModification.percentage/100):o.price,o.displayGoldRequired=o.product.goldRequired||0)}),await this.calculateTotal(),this.setProductsSelectedName(),this.syncState()}catch(o){this.logger.error("Error updating selected quests:",o),k.$.toast("Failed to update selected quests.","error").show()}}async calculateTotal(){try{if(this.totalGold=0,this.totalPrice=0,!this.selectedQuests)return;this.selectedQuests.forEach(o=>{o.displayPrice&&(this.totalPrice+=parseFloat(o.displayPrice)),o.displayGoldRequired&&(this.totalGold+=o.displayGoldRequired)}),this.totalPrice=(Math.round(this.totalPrice*100)/100).toFixed(2)}catch(o){this.logger.error("Error calculating total:",o),k.$.toast("Failed to calculate total.","error").show()}}async addToCart(){if(this.selectedQuests.length<1){k.$.toast("No quests were selected.","info").show();return}const o=await this.sessionService.getCart();if(!await this.helper.handleAccountOrderValidation(o,this.orderService,H.g1.Services,!1))try{const i=this.gameModes.find(r=>r.id===this.currentGameMode?.id)??this.gameModes[0];for(const r of this.selectedQuests){const m=`${this.parentGame?.shortName??this.currentGame.shortName} | Quest | ${r.product.name} ${i.name!=="Regular"?`| ${i.name}`:""}`,g={name:m,serviceFullName:m,quantity:1,price:r.price,updatedDate:r.updatedDate,productId:r.productId,type:"Quest",isService:!0,character:r.product.character,gameId:r.product.gameId,parentGameId:this.parentGame.id,gameShortName:this.currentGame.shortName,gameModeId:this.currentGameMode.id,productCategoryId:this.productCategory.id,productCategoryName:this.productCategory.name,imagePath:r.product.imagePath,servicePricing:r};await this.sessionService.storeCartItem(g)}this.addedToCart=!0,this.totalGold>0&&this.addGoldToCart(),k.$.toast("Added Quest Service(s) to Cart.","success").show()}catch(i){this.logger.error(i),k.$.toast("Something went wrong! Please contact the Livechat.","error").show()}}openLivechat(){window.Intercom&&window.Intercom("show")}async addGoldToCart(){if(!this.haveGold){this.product.quantity=parseInt(this.totalGold),this.product.productId=this.product?.id;try{const t=(await this.sessionService.getCart())?.find(i=>i.id===this.product.id);t?(this.product.quantity=this.helper.convertNumberWithoutComma(t.quantity,"float")+parseFloat(this.totalGold),await this.sessionService.updateCartItem(this.product,!0)):this.sessionService.storeCartItem(this.product)}catch(o){this.logger.error(o),k.$.toast("Something went wrong! Please contact the Livechat.","error").show()}}}routeTo(o){this.router.navigate(o)}questSelection(o){if(o.selected=!o.selected,o.selected)o.product&&(o.displayPrice=this.priceModification?o.price+o.price*(this.priceModification.percentage/100):o.price,o.displayGoldRequired=o.product.goldRequired||0),this.selectedQuests.push(o);else{const t=this.selectedQuests.indexOf(o);this.selectedQuests.splice(t,1)}return this.setProductsSelectedName(),this.calculateTotal(),this.syncState(),!0}removeQuest(o){o.selected=!1;const t=this.selectedQuests.indexOf(o);this.selectedQuests.splice(t,1)}sortBy(o,t){const i=this.sortColumn[o],r=t.id;document.querySelectorAll(".sort-asc, .sort-desc").forEach(g=>{g.classList.remove(n)}),t.classList.add(n);
7276const m=r.includes("up");this.quests.sort((g,d)=>{const y=m?g:d,C=m?d:g;switch(i){case"quest":return y.product?.name?.toLowerCase()?.localeCompare(C.product?.name?.toLowerCase());case"price":return y.price-C.price;case"gold":return y.product?.goldRequired-C.product?.goldRequired;default:return y.product?.productSubCategory.name?.toLowerCase()?.localeCompare(C.product?.productSubCategory.name?.toLowerCase())}})}closeFilter(){const o=document.getElementById("show-products-selector"),t=document.getElementById("show-products-dropdown");o.classList.remove("show"),t.classList.remove("show")}setProductsSelectedName(){const o=v,t=this.currentGameMode?.name,i=this.parentGame?.shortName||this.currentGame?.shortName||"OSRS";this.productsStringLarge=t?`Showing prices for ${i} <span class='highlight-word'>${t}</span> game mode.`:o,this.productsStringShort=t?`${i} <span class='highlight-word'>${t}</span> game mode.`:o,this.productsStringTooltip=null,this.productsStringTooltipValue=null}handleRadioInput(o){this.haveGold=o}initializeSharedState(){this.sharedStateSubscription=this.sharedServiceState.subscribeToState("questing",o=>{this.handleSharedStateUpdate(o)},this.componentId),this.handleDrawerLoadingState()}applySharedState(o){o.data&&(this.quests=o.data),o.selectedItems&&(this.selectedQuests=o.selectedItems),o.gameMode&&(this.currentGameMode=o.gameMode),o.search!==void 0&&(this.search=o.search),o.extraParams?.totalPrice!==void 0&&(this.totalPrice=o.extraParams.totalPrice),o.extraParams?.totalGold!==void 0&&(this.totalGold=o.extraParams.totalGold),o.extraParams?.totalPrice!==void 0||o.extraParams?.totalGold!==void 0||this.calculateTotal(),this.setProductsSelectedName()}handleSharedStateUpdate(o){if(this.isSyncing)return;this.isSyncing=!0;const{state:t}=o;this.applySharedState(t),t.loading!==void 0&&(this.loading=t.loading,this.pageLoading=t.loading,this.isDrawerInstance&&!t.loading&&t.data&&t.data.length>0&&this.helper.validateLoading("questing")),setTimeout(()=>{this.isSyncing=!1},100)}loadFromSharedState(o){this.applySharedState(o),o.data&&o.data.length>0&&(this.loading=!1,this.pageLoading=!1,this.isDrawerInstance&&this.helper.validateLoading("questing"))}syncState(){this.isSyncing||((!this.totalPrice||this.totalPrice==="0.00"||this.totalPrice===0)&&this.calculateTotal(),this.sharedServiceState.updateState("questing",{data:this.quests,selectedItems:this.selectedQuests,gameMode:this.currentGameMode,search:this.search,loading:this.loading,extraParams:{totalPrice:this.totalPrice,totalGold:this.totalGold},resultsExists:this.resultsExists},this.componentId),this.isDrawerInstance&&this.quests&&this.quests.length>0&&(this.loading=!1,this.helper.validateLoading("questing")))}handleDrawerLoadingState(){if(this.isDrawerInstance){const o=this.sharedServiceState.getSharedState("questing");if(o.data&&o.data.length>0&&o.lastUpdate)return this.loadFromSharedState(o),this.preserveTotalsFromSharedState(o),this.loading=!1,this.helper.validateLoading("questing"),!0}return!1}preserveTotalsFromSharedState(o){o.extraParams&&(o.extraParams.totalPrice!==void 0&&(this.totalPrice=o.extraParams.totalPrice),o.extraParams.totalGold!==void 0&&(this.totalGold=o.extraParams.totalGold))}},_e=u(Z.prototype,"tableHeight",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=u(Z.prototype,"page",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=u(Z.prototype,"search",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=u(Z.prototype,"difficulty",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{name:"All"}}}),u(Z.prototype,"cartLabel",[F],Object.getOwnPropertyDescriptor(Z.prototype,"cartLabel"),Z.prototype),Z))||Y)||Y)}),15819:(function(W,f,e){"use strict";e.d(f,{D:function(){return be}});var s=e(17285),q=e(90753);class be{async handleSelectedFields(){this.triggeredService||this.selectedGame&&(this.service=[],this.service.push({name:"Game",value:this.selectedGame.name}),this.dynamicFormFields?.length&&this.dynamicFormFields?.map(X=>{X?.value&&this.service.push({name:X.name,value:[s.PU.Checkbox,s.PU.Select].includes(X.type)?X.listOfValue.children.find(ae=>ae.value===X.value).display:X.value.display||X.value})}).filter(X=>X!==void 0),this.additionalInformation&&this.service.push({name:"Additional Information",value:this.additionalInformation}),await this.handleTicketCreation())}async changeHandler(X){if(this.checkDuplicateFiles(X.target.files)){for(const ae of X.target.files)this.checkFileType(ae)&&this.checkFileSize(ae)&&(this.tempFiles.length>=this.maxNumberOfFiles?q.$.toast(`Only ${this.maxNumberOfFiles} files can be attached. Please try again`,"error").show():(this.tempFiles.push({name:ae.name,isLoaded:!1}),this.filesList.push(ae),this.tempFiles[this.findLastIndex(this.tempFiles,ae.name)].isLoaded=!0));this.fileInput.value=null}}checkDuplicateFiles(X){const ae=new Set(this.tempFiles.map(j=>j.name));for(const j of X)if(ae.has(j.name))return q.$.toast(`File ${j.name} is already added`,"error").show(),!1;return!0}checkFileSize(X){return X.size>104857600?(q.$.toast(`File size for ${X.name} exceeds 100 MB`,"error").show(),!1):this.filesList.map(j=>j.size).reduce((j,ge)=>j+ge,0)+X.size>104857600?(q.$.toast("The total size of all files must not exceed 100 MB. Please try again","error").show(),!1):!0}findLastIndex(X,ae){const j=[];
7276return X.forEach(ge=>j.push(ge.name)),j.lastIndexOf(ae)}deleteItem(X){this.tempFiles.splice(X,1),this.filesList.splice(X,1)}async uploadAttachments(X){const ae=[];for(const j of X){const ge=this.imageService.buildFormData([j]),le=await this.imageService.uploadOrderChatAttachment(ge);ae.push(le)}return ae}seeMore(){this.showLess=!0,this.filesToShow+=this.tempFiles.length}toggleFilesVisibility(){this.filesToShow=2,this.showLess=!1}}}),"pages/services/services":(function(W,f,e){"use strict";e.r(f),e.d(f,{Services:function(){return Pe}});var s=e("aurelia-framework"),q=e(10220),be=e(66666),ye=e(72148),X=e(41961),ae=e(39146),j=e(6993),ge=e("aurelia-event-aggregator"),le=e(41455),pe=e(31018),de=e(79533),ce=e(6506),J=e(17349),K=e(59055),H=e(2959),k=e(58846),ee=e(60641),fe=e(45246),z=e(44079),ne=e(17285),B=e(90753),_=e(91861),T=e(91e3),L=e(45843),O=e(42371),G=e(31153),F=e(15819),Y,Z,_e,U,M,p,w,u,h,v,n,a,c,o,t,i,r,m,g,d,y,C,R,S,N,te,Ee,D,I,A,ue,se;function me(Se,l,E,b){E&&Object.defineProperty(Se,l,{enumerable:E.enumerable,configurable:E.configurable,writable:E.writable,value:E.initializer?E.initializer.call(b):void 0})}function P(Se,l,E,b,re){var ie={};return Object.keys(b).forEach(function(Q){ie[Q]=b[Q]}),ie.enumerable=!!ie.enumerable,ie.configurable=!!ie.configurable,("value"in ie||ie.initializer)&&(ie.writable=!0),ie=E.slice().reverse().reduce(function(Q,Ae){return Ae(Se,l,Q)||Q},ie),re&&ie.initializer!==void 0&&(ie.value=ie.initializer?ie.initializer.call(re):void 0,ie.initializer=void 0),ie.initializer===void 0?(Object.defineProperty(Se,l,ie),null):ie}function x(Se,l){throw Error("Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.")}const $="buy-services";let Pe=(Y=(0,s.inject)(q.Ix,pe.Q,be.w,ye.h,X.Z,ge.EventAggregator,ae.F,j.l,le.j,K.ClearationTimeoutValueConverter,de.T,ce.Q,J.b,H.j,s.TaskQueue,fe.H,z.f,_.LanguageRouteValueConverter,T.LanguageKeyFormatterValueConverter,L.SiteStringsValueConverter,G.O,s.BindingEngine,O.Mx),Z=(0,s.computedFrom)("routeActiveStatus","siteStringsVersion"),_e=(0,s.computedFrom)("tempFiles.length","maxFiles"),U=(0,s.computedFrom)("isOverflowing","showLess"),M=(0,s.computedFrom)("additionalInformation","additionalInformationTextArea.isFocused"),p=(0,s.computedFrom)("selectedGame"),w=(0,s.computedFrom)("pageLoading","titleResolved","viewingAsAdmin"),u=(0,s.computedFrom)("selectedGame.dynamicService","pageLoading","viewingAsAdmin","titleKeyContent"),h=(0,s.computedFrom)("dynamicService","pageLoading","titleKeyContent","viewingAsAdmin"),v=(0,s.computedFrom)("pageLoading","selectedChildGame.headerTitle","titleKeyContent","viewingAsAdmin","selectedGame.dynamicService"),n=(0,s.computedFrom)("difficulties"),a=(0,s.computedFrom)("gameModes"),c=(0,s.computedFrom)("width","tablet","pageLoading","resultsExists","loading","sharedServiceState","selectedService"),o=(0,s.computedFrom)("gameModes","gameModesLoaded"),t=(0,s.computedFrom)("difficulties"),i=(0,s.computedFrom)("selectedService","selectedChildGame"),r=(0,s.computedFrom)("selectedService","selectedGame"),m=(0,s.computedFrom)("selectedService","selectedGame"),g=(0,s.computedFrom)("width","search"),d=(0,s.computedFrom)("selectedService","selectedGame"),y=(0,s.computedFrom)("selectedService","selectedGame"),C=(0,s.computedFrom)("selectedGame.shortName","selectedChildGame"),Y(R=(S=(se=class He extends F.D{constructor(l,E,b,re,ie,Q,Ae,Le,Me,Ge,Ue,ve,V,Ce,Oe,Te,We,$e,he,oe,Ie,Be,Ne){super(),this.selectedService=void 0,me(this,"selectedGameMode",N,this),me(this,"search",te,this),me(this,"loading",Ee,this),me(this,"width",D,this),me(this,"selectedGame",I,this),this.gameSelector=void 0,this.gameModes=[{name:"Regular"}],this.accountName=void 0,this.title=void 0,this.games=[],this.triggeredFilteredBy=void 0,this.difficulties=[{name:"All"},{name:"Novice"},{name:"Intermediate"},{name:"Experienced"},{name:"Master"},{name:"Grandmaster"},{name:"Special"}],this.accountBuilds=[{name:"Any"}],this.productCategories=void 0,this.showMiniSpinnerCharacterName=void 0,this.showGreenCheckMarkCharacterName=void 0,this.showErrorCheckMarkCharacterName=void 0,this.whiteXMark=void 0,this.characterNameFocusInStopWatch=void 0,this.characterNameStopWatch=void 0,this.characterNameStopWatch2=void 0,this.miniSpinnerStopWatch=void 0,this.triggeredNotification=void 0,this.dynamicFormFields=void 0,this.service=[],this.requestQuoteDisabled=!0,this.searchModalVisible=!1,this.searchButtonState="search",this.isSearching=!1,me(this,"additionalInformation",A,this),me(this,"selectedDifficulty",ue,this),this.gameSecondTitle=`SERVICES${this.title}_PAGE_SECOND_TITLE`,this.gameTitles=[`SERVICES${this.title}_PAGE_SECOND_TITLE`,`SERVICES${this.title}_PAGE_TITLE`],this.firstTimeTriggering=!0,this.customerPortalPage="",this.maxNumberOfFiles=50,this.dropZoneOutside=void 0,this.fileInput=void 0,this.filesList=[],this.tempFiles=[],this.maxFiles=2,this.showLess=!1,this.filesToShow=2,this.fileTypes=["image","video"],this.fileExtensions=["txt","doc","docx","xls","xlsx","csv","ppt","pptx","pdf","odp","ods","odt","xml"],this.minigames=void 0,this.serviceFilter=void 0,this.filters=[],this.additionalFilter=void 0,this.extraParams={},this.pageLoading=!0,this.titleResolved=!1,this.gameModesLoaded=!1,this.skeletonFieldPlaceholders=new Array(4).fill(null),this.characterNameState="normal",this.seoKey="SERVICES",this.gameModeFilter=void 0,this.difficultyFilter=void 0,this.drawerIsOpen=!1,this.resultsExists=!0,this.awaitingInitialSelection=!0,this.categories=[{label:"Category",value:2,icon:"article"}],this.routes=[["PW","powerleveling","CG_POWER_LEVELING","Power Leveling","powerLevelingTabTooltipRef"],["QUESTING","questing","CG_QUESTING","Questing","questingTabTooltipRef"],["DIARIES","diaries","CG_DIARIES","Diaries","diariesTabTooltipRef"],["MG","minigames","CG_MINIGAMES","Minigames","minigamesTabTooltipRef"],["PVM","pvm","CG_PVM","PVM","pvmTabTooltipRef"],["CUSTOMORDER","customorder","CG_CUSTOM_ORDER","Custom Order","customOrderTabTooltipRef","custom-order-tab-styling"]].map(([we,ke,Re,xe,De,Fe])=>({key:we,service:ke,label:Re,fallback:xe,tooltipRef:De,...Fe&&{additionalClass:Fe}})),this.siteStringsVersion=0,this.routeActiveStatus={},this.isDynamicServiceRoute=!1,this.isLandingPage=!1,this.landingGameShortNames=["OSRS","RS3"],this.staticGamePages=["osrs","rs3","nwpw","wowtlkpw","lolboosting","valboosting"],this.staticGameRoutes=["osrs","rs3","new-world","wowtlk","league-of-legends","valorant"],this.staticIdentifiers=[...this.staticGamePages,...this.staticGameRoutes],this.handleFieldChange=()=>{this.requestQuoteDisabled=this.dynamicFormFields?.length>0?!this.dynamicFormFields?.every(we=>we.value&&we.value!==""):!!this.dynamicFormFields?.length}
7276,this.handleScrollbarBackgroundOverflow=()=>{const we=document.getElementById("mobile-table-scrollbar");if(!we)return;const ke=ee.Ay.instances.get(we),Re=ke.getScrollElement();ke.contentEl.offsetHeight>ke.el.offsetHeight&&we.classList.add("touching-bottom");const xe="touching-top",De="touching-bottom";Re.addEventListener("scroll",Fe=>{if(Fe.target?.scrollTop===0){we.classList.remove(xe),we.classList.add(De);return}if(Fe.target?.scrollTop===Fe.target?.scrollHeight-Fe.target?.offsetHeight){we.classList.remove(De),we.classList.add(xe);return}we.classList.add(xe,De)})},this.handleDynamicFormFieldsFetchAndChange=async()=>{this.selectedGame?.dynamicService&&(this.dynamicFormFields=await this.gameDynamicFormService.getByProductCategoryAndGameId(this.productCategories.find(we=>we.name==="Services").id,Number.parseInt(this.selectedGame.id)),this.handleFieldChange()),this.taskQueue.queueTask(()=>this.setDynamicFiltersMaxWidth())},this.isGameActiveWithinCategory=we=>we?this.serviceGames.some(Re=>this.selectedGame.parentGameId===0?Re.shortName.includes(`${this.selectedGame.shortName}${we}`):Re.shortName.includes(we)&&Re.parentGameId===this.selectedGame.parentGameId):void 0,this.checkHidingOrDisablingForSpecificGamesByShortName=(we,ke=!1)=>{let Re=["LOL","NW","VALORANT","OVW","WOWWOTLK","OSRSCUSTOMORDER","RS3CUSTOMORDER"];return we?.length&&(Re=Re.filter(xe=>!we.includes(xe))),ke?!this.helper.includesSome([this.selectedGame?.shortName,this.selectedChildGame?.shortName],Re):this.helper.includesSome([this.selectedGame?.shortName,this.selectedChildGame?.shortName],Re)},this.handleClearFilters=async()=>{(this.filterLayout.filtersActive?.size||this.search)&&(this.resetGameModeFilter(),this.resetDifficultyFilter(),this.accountName="",this.showMiniSpinnerCharacterName=!1,this.showGreenCheckMarkCharacterName=!1,this.showErrorCheckMarkCharacterName=!1,this.whiteXMark=!1,this.eventAggregator.publish("filter-value-change",{clearFilters:!0}))},this.handleOpenDrawer=()=>{this.selectedGame&&this.gameSelector&&(this.gameSelector.value=this.selectedGame)},this.applyServiceGameMeta=async(we,ke,Re)=>{we?.parentInstruction?.config?.navModel?.setTitle("");try{const xe=this.findGameByShortName(ke,Re)?.slug?.[0];if(!xe||!we?.config)return;const De=await this.gameService.getGameForNavBySlug(xe.replaceAll("/","_"),"CG",this.navCategory?.id);De&&(we.config.title=De.title,this.metadataHelper.setTitleMetaTitleAndMetaDescription(we.config,we,De.title,De.metaDescription))}catch(xe){this.logger.error("Error loading service game meta:",xe)}},this.checkSlugAndRedirect=(we,ke,Re,xe)=>{const De=this.findGameByShortName(ke,Re),Fe=De?.slug?.[0]||$,ze=globalThis.location.pathname;let Ve="";const Ke=ze.split("/").filter(Boolean),Qe=Ke.at(-1),je=Ke[0]==="buy"&&Ke[1]==="services",Ye=Ke.length===3,Je=Ke[2]?.includes("-");if(!je&&Ye||je&&Ye&&Je){this.router.navigateToRoute("404");return}let qe=Fe;this.helper.includesSome(De?.shortName?.toLowerCase(),this.staticGamePages)&&(qe=Fe.replaceAll("/","-"));const Ze=`/${we}/${qe}`,et=`/${we}/${xe}`;if(ze===Ze||ze===et){Ve=`/buy/${we}/${Fe}`,this.helper.addPrerenderMetaTagForRedirect(Ve),this.router.navigate(Ve,{replace:!0});return}const Xe=Array.isArray(De?.slug)?De.slug:[];Xe.length<2||!Fe||!Qe||Qe===Fe||!Xe.includes(Qe)||(Ve=`/${[...Ke.slice(0,-1),Fe].join("/")}`,this.helper.addPrerenderMetaTagForRedirect(Ve),this.router.navigate(Ve,{replace:!0}))},this.getStaticPageRouteOrFallbackGameRoute=(we,ke=!1)=>{const Re=we.split("/").filter(Boolean);return this.helper.includesSome(Re,this.staticIdentifiers)&&!this.router?.currentInstruction?.config?.settings?.game?Re.length===1?Re[0]:ke?Re.slice(-2).join("/"):Re.at(-2):Re.at(-1)},this.sessionService=E,this.router=l,this.helper=Te,this.gameService=b,this.gameModeService=re,this.productCategoryService=Ae,this.pageContentAreaService=ie,this.eventAggregator=Q,this.difficultyService=Le,this.websiteService=Me,this.clearationTimeoutValueConverter=Ge,this.gameDynamicFormService=Ue,this.orderService=ve,this.productService=V,this.tooltipArrowStyling=Ce,this.taskQueue=Oe,this.helper.getResolutions(this),this.imageService=We,this.languageRouteValueConverter=$e,this.languageKeyFormatter=he,this.siteStrings=oe,this.sharedServiceState=Ie,this.bindingEngine=Be,this.metadataHelper=Ne,this.logger=s.LogManager.getLogger("Services"),this.resonsiveTo=this.helper.getScreenWidth()<this.desktop,this.baseAwsEndpoint=(0,k.Ty)("games"),this.imageBaseAwsEndpoint=(0,k.Ty)("content"),this.titleKeyContent={}}get routesFilterField(){return this.getRoutesFilterField()}
7276updateDynamicServiceFlagFromInstruction(l){if(!l?.config?.settings){this.isDynamicServiceRoute=!1;return}const E=l.config.settings.game;this.isDynamicServiceRoute=!!(E&&E.dynamicService)}getCurrentRouteFragment(){if(this.router?.currentInstruction){const{config:l,fragment:E}=this.router.currentInstruction,b=l.route===":slug"?E:l.route;return this.getStaticPageRouteOrFallbackGameRoute(b,b.includes("/"))}if(this.navigationInstruction){const{config:l,fragment:E}=this.navigationInstruction,b=l?.route===":slug"?E:l?.route;return this.getStaticPageRouteOrFallbackGameRoute(b,b.includes("/"))}return typeof globalThis<"u"&&globalThis.location?.pathname?globalThis.location.pathname.split("/").pop():""}async activate(l,E,b){this.helper.addLoadingComponent("services",this),this.routeConfig=E,this.navigationInstruction=b,this.width=globalThis.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,this.navCategory=await this.productCategoryService.getNavCategory("services","CG")}handleGameDeselection(){this.router.navigate(`/${this.hrefLang}buy/${this.servicesPageRoute}`)}async attached(){try{if(this.guardServiceChildRouteTail())return;this.updateDynamicServiceFlagFromInstruction(this.router?.currentInstruction),await this.initializeAttachedData();const l=this.getAttachedRoute();if(l.includes("404")||!this.applyInitialRouteSelection(l))return;this.resolveSelectionStateFromRoute(),this.handleEventSubscriptions(),this.title=this.computeTitleFromSelection(),await this.loadPageContentAndTitles(),this.minigames=!!this.title?.includes("_MINIGAMES"),this.triggeredActivated=!0,await this.handleDynamicFormFieldsFetchAndChange(),this.eventAggregator.publish("page-content-area",{pageContentArea:this.pageContentArea}),await this.filterByRoute(),this.awaitingInitialSelection=!1,this.handleAddingPlaceholdersForTextAreas(),this.helper.addFilterArrow(this.serviceSelector),this.triggeredActivated=!1,await this.finishAttachedSetup()}catch(l){this.logger.error("Error in attached: ",l)}finally{this.loading=!1,this.helper.validateLoading("services")}}async initializeAttachedData(){[this.productCategories,this.pageConfig,this.pages,this.user]=await Promise.all([this.productCategoryService.getAll(),this.websiteService.getPage("Services"),this.websiteService.getPagesByWebsiteShortcode(),this.sessionService.refreshProfile()]),this.servicesParentGames=this.navCategory.gameForNav.filter(l=>l.parentGameId===0).sort((l,E)=>l.id-E.id),this.servicesChildGames=this.navCategory.gameForNav.filter(l=>l.parentGameId>0).sort((l,E)=>l.id-E.id),this.games=this.servicesParentGames,this.serviceGames=this.servicesChildGames,this.servicesPageRoute=this.pageConfig?.routeName??"services",this.hrefLang=this.helper.hrefLang&&!["en","en-us"].includes(this.helper.hrefLang.toLowerCase())?`${this.helper.hrefLang}/`:""}getAttachedRoute(){const l=this.getCurrentRouteFragment()||this.getStaticPageRouteOrFallbackGameRoute(globalThis.location.pathname);return this.serviceGamesRoute=this.serviceGames.find(E=>E.slug?.includes(l)),this.gamesForRoute=this.games.find(E=>E.slug?.includes(l)),l}applyInitialRouteSelection(l){return l===this.servicesPageRoute?(this.title="_DEFAULT",!0):this.serviceGamesRoute||this.gamesForRoute?(this.resolveChildAndParentGameFromRoute(l),this.ensureSelectedGameFromRouteOrRedirect(l),this.selectedGame?!0:(this.router.navigateToRoute("404"),!1)):(this.selectedGame=this.games.find(E=>E.slug?.includes(l)),!0)}resolveSelectionStateFromRoute(){this.router?.currentInstruction?.config?.name===$?(this.selectedGame=null,this.selectedParentGame=null,this.selectedService=null):this.selectedService=this.computeSelectedServiceDisplayName(),this.updateRouteActiveStatus()}resolveChildAndParentGameFromRoute(l){this.setSelectedChildGameFromRoute(l),this.applyChildGameNavigationIcon(this.selectedChildGame),this.setSelectedParentGameFromRoute(l),this.setGamesToTypeFromSelectedChild(),this.setSelectedGameAndGamesList(),this.applySelectedGameSellIcon(this.selectedGame)}setSelectedChildGameFromRoute(l){const E=this.serviceGames.find(ie=>ie.slug?.includes(l)),b=this.serviceGamesRoute??this.gamesForRoute,re=this.serviceGames.find(ie=>ie.parentGameId?.toString()===b?.id);this.selectedChildGame=E??re}applyChildGameNavigationIcon(l){if(!l)return;const E=l.gameNavigationIcon;l.gameNavigationIcon=E?`${this.baseAwsEndpoint}${E}`:"hide_image"}setSelectedParentGameFromRoute(l){const E=this.servicesParentGames.find(ie=>ie.slug?.includes(l)),b=this.selectedChildGame?.parentGameId,re=this.servicesParentGames.find(ie=>Number(ie?.id)===Number(b));this.selectedParentGame=E??re}setGamesToTypeFromSelectedChild(){const l=this.selectedChildGame?.parentGameId;this.gamesToType=this.serviceGames.filter(E=>Number(E.parentGameId)===Number(l))}setSelectedGameAndGamesList(){const l=this.resonsiveTo&&!!this.selectedChildGame;this.selectedGame=l?this.selectedChildGame:this.selectedParentGame;const E=this.resonsiveTo&&this.gamesToType.length>0;this.games=E?this.gamesToType:this.servicesParentGames}applySelectedGameSellIcon(l){l&&(l.icon=l.sellIcon)}ensureSelectedGameFromRouteOrRedirect(l){if(!this.selectedGame){const E=this.serviceGames.find(b=>b.slug?.includes(l));this.selectedGame=this.games.find(b=>b.id===E?.parentGameId?.toString())}this.selectedGame&&this.routeConfig.navModel.setTitle("")}computeTitleFromSelection(){return this.selectedGame?.dynamicService&&this.selectedGame?`_${this.selectedGame.shortName}`:this.selectedGame&&this.selectedChildGame?`_${this.selectedChildGame.shortName}`:this.selectedGame?`_${this.selectedGame.shortName}`:"_DEFAULT"}async loadPageContentAndTitles(){const l=this.selectedChildGame?.shortName??this.selectedGame?.shortName;l?this.pageContentArea=await this.pageContentAreaService.getByPageIdAndGame
7276(this.pageConfig?.id,l):this.pageContentArea=await this.pageContentAreaService.getByPageId(this.pageConfig.id),this.titleKeyContent=this.pageContentArea.find(E=>E.key===`SERVICES${this.title}_PAGE_TITLE`),this.titleResolved=!0,this.gameSecondTitle=`SERVICES${this.title}_PAGE_SECOND_TITLE`,this.gameTitles=[`SERVICES${this.title}_PAGE_SECOND_TITLE`,`SERVICES${this.title}_PAGE_TITLE`]}async finishAttachedSetup(){this.customerPortalPage=await this.websiteService.getRouteOrDefault("Customer Portal"),this.cart=await this.sessionService.getCart(!0),this.accountNameObserver=this.bindingEngine.propertyObserver(this,"accountName").subscribe(l=>this.handleAccountNameChange(l))}detached(){this.routeChangeSubscription?.dispose(),this.loadingRunningSubscription?.dispose(),this.adminViewSubscription?.dispose(),this.characterNameSubscription?.dispose(),this.sizeChanged?.dispose(),this.pageLoadedSubscriber?.dispose(),this.accountNameObserver?.dispose(),this.siteStringsSubscription?.dispose(),this.helper.removePrerenderMetaTagForRedirect()}handleEventSubscriptions(){this.siteStringsSubscription=this.eventAggregator.subscribe("site-strings-updated",()=>{this.siteStringsVersion++}),this.routeChangeSubscription=this.eventAggregator.subscribe("router:navigation:success",l=>{this.guardServiceChildRouteTail()||(this.updateDynamicServiceFlagFromInstruction(this.router&&this.router.currentInstruction),this.filterByRoute())}),this.characterNameSubscription=this.eventAggregator.subscribe("character-import",l=>{this.characterNameState="loading",l.success?(this.showMiniSpinnerCharacterName=this.showErrorCheckMarkCharacterName=this.whiteXMark=!1,this.showGreenCheckMarkCharacterName=!0,this.triggeredNotification=!0,this.triggeredImport=!0,this.characterNameState="valid",B.$.toast("Imported character stats inside table.","success").show()):(this.showMiniSpinnerCharacterName=this.showGreenCheckMarkCharacterName=this.whiteXMark=!1,this.showErrorCheckMarkCharacterName=!0,this.triggeredNotification=!0,this.triggeredImport=!0,this.characterNameState="invalid",B.$.toast("Please enter an existing character name to proceed with import.","error").show())}),this.loadingRunningSubscription=this.eventAggregator.subscribe("loading-running",l=>{this.loading=l.loading,this.loading||this.handleScrollbarBackgroundOverflow()}),this.sizeChanged=this.eventAggregator.subscribe("size-changed",l=>{this.width=l.width,this.width<=this.tablet&&(this.games=this.gamesToType),this.width>this.tablet&&(this.games=this.servicesParentGames),this.resonsiveTo=this.width<this.desktop,this.selectedGameMode=this.gameModes[0],this.setDynamicFiltersMaxWidth()}),this.adminViewSubscription=this.eventAggregator.subscribe("admin-view-updated",l=>{this.viewingAsAdmin=l.bool}),this.pageLoadedSubscriber=this.eventAggregator.subscribe("page-loaded",()=>{this.pageLoading=!1}),this.filterValueChangeSubscription=this.eventAggregator.subscribe("filter-value-change",async l=>{l.clearFilters&&(this.selectedGameMode=this.gameModes[0],this.selectedDifficulty=this.difficulties[0],this.clearCharacterName())})}handleScrollEvent(l){const E="touching-left",b="touching-right";if(l.target?.scrollLeft===0){this.mainScrollElement.classList.remove(E),this.mainScrollElement.classList.add(b);return}if(l.target?.scrollLeft===l.target?.scrollWidth-l.target?.offsetWidth){this.mainScrollElement.classList.remove(b),this.mainScrollElement.classList.add(E);return}this.mainScrollElement.classList.add(E,b)}toggleSearchModal(){this.searchModalVisible?(this.searchModalVisible=!1,this.searchButtonState="search"):(this.searchModalVisible=!0,this.searchButtonState="close")}async filterByRoute(){this.loading=!0,this.isLandingPage=this.isLandingRoute;const l=this.getFilterByRouteRoute();this.navCategory?.gameForNav?.find(b=>b.slug?.includes(l))?.dynamicService&&(this.pageLoading=!0),this.triggeredFilteredBy=!0;try{if(l?.includes("childRoute"))return;this.router.currentInstruction.config.name!==$&&(this.titleKeyContent={},this.titleResolved=!1),this.clearSearch(),this.clearCharacterName(),this.router.currentInstruction.config.name===$?this.applyBuyServicesRouteState():await this.applyServiceRouteState(l),this.selectedGameMode=this.gameModes[0],this.selectedDifficulty=this.difficulties[0],this.selectedGameModeChanged(),this.updateRouteActiveStatus(),this.triggeredFilteredBy=!1,this.scheduleFilterByRouteCleanup()}catch(b){this.logger.error("Error in filterByRoute:",b)}finally{this.loading=!1,this.helper.validateLoading("services")}}getFilterByRouteRoute(){const l=this.getCurrentRouteFragment();if(l!=="")return l;const E=this.router?.currentInstruction;return E?.config?E.config.route===":slug"?E.fragment??"":E.config.route??"":""}applyBuyServicesRouteState(){this.gameModes||(this.gameModes=[{name:"Regular"}]),this.difficulties||(this.difficulties=[{name:"All"},{name:"Novice"},{name:"Intermediate"},{name:"Experienced"},{name:"Master"},{name:"Grandmaster"},{name:"Special"}]),this.selectedGame=null,this.selectedParentGame=null,this.selectedService=null,this.gameNotAvailable||this.routeConfig.navModel.setTitle(this.pageConfig.title),this.loading=!1,this.gameModesLoaded=!0}async applyServiceRouteState(l){this.resolveServiceSelectionFromRoute(l),this.updateSelectedParentGameFromSelection(),this.eventAggregator.publish("dynamic-game-changed",{dynamicGame:this.selectedGame}),this.triggeredActivated||await this.handleDynamicFormFieldsFetchAndChange(),this.ensureSelectedGameFromRoute(l),this.title=this.computeTitleFromSelection(),await this.loadPageContentAndTitlesForRoute(),this.selectedService=this.computeSelectedServiceDisplayName(),await this.loadGameModesForRoute(),this.gameModesLoaded=!0,await this.loadDifficultiesForRoute(),this.applyServiceFilterForRoute(),this.selectedDifficultyChanged(),this.selectedAccountBuild=this.accountBuilds[0]}resolveServiceSelectionFromRoute(l){if(this.selectedGame=this.games.find(re=>re.slug?.includes(l)),this.isLandingRoute){this.selectedChildGame=null,this.selectedGame=this.selectedGame??this.servicesParentGames?.find(re=>re.slug?.includes(l))??this.serviceGames?.find(re=>re.slug?.includes(l)),this.selectedGame&&this.handleRoutes();return}const E=this.serviceGames.find(re=>re.slug?.includes(l)),b=this.selectedGame?this.serviceGames.find(re=>re.parentGameId?.toString()===this.selectedGame?.id):null;this.selectedChildGame=E??b,this.selectedChildGame&&this.routeConfig.navModel.setTitle(""),this.selectedGame?this.handleRoutes():this.selectedGame=this.games.find(re=>re.id===this.serviceGames.find(ie=>ie.slug?.includes(l))?.parentGameId?.toString())}updateSelectedParentGameFromSelection(){this.selectedGame?.parentGameId===0||!this.selectedGame?.parentGameId?this.selectedParentGame=this.selectedGame:this.selectedChildGame&&(this.selectedParentGame=this.servicesParentGames.find(E=>Number(E.id)===Number(this.selectedChildGame.parentGameId)))}ensureSelectedGameFromRoute(l){this.selectedGame||(this.selectedGame=this.games.find(E=>E.slug?.includes(l))??this.serviceGames.find(E=>E.slug?.includes(l)))}async loadPageContentAndTitlesForRoute(){const l=this.selectedChildGame?.shortName??this.selectedGame?.shortName;l?this.pageContentArea=await this.pageContentAreaService.getByPageIdAndGame
7276(this.pageConfig?.id,l):this.pageContentArea=await this.pageContentAreaService.getByPageId(this.pageConfig.id),this.titleKeyContent=this.pageContentArea.find(E=>E.key===`SERVICES${this.title}_PAGE_TITLE`),this.titleResolved=!0,this.selectedGame?.dynamicService&&(this.pageSecondTitle=await this.pageContentAreaService.getByKey(`SERVICES${this.title}_PAGE_SECOND_TITLE`),this.gameSecondTitle=this.pageSecondTitle?.markup?`SERVICES${this.title}_PAGE_SECOND_TITLE`:`SERVICES${this.title}_PAGE_TITLE`,this.gameTitles=[`SERVICES${this.title}_PAGE_SECOND_TITLE`,`SERVICES${this.title}_PAGE_TITLE`])}computeSelectedServiceDisplayName(){if(this.selectedGame?.dynamicService)return this.selectedGame?.name??"";if(!this.selectedChildGame)return"";const l=this.selectedChildGame?.shortName??"";return this.routes.find(b=>l.includes(b.key))?.service??""}async loadGameModesForRoute(){const l=["OSRS","RS3","NW","WOWWOTLK","LOLBOOSTING","VALBOOSTING"];let E=null;this.selectedGame&&l.includes(this.selectedGame.shortName)?E=this.selectedGame:this.selectedParentGame&&l.includes(this.selectedParentGame.shortName)?E=this.selectedParentGame:this.selectedGame?.parentGameId&&(E=this.servicesParentGames?.find(b=>Number(b.id)===Number(this.selectedGame.parentGameId))),this.gameModes=E?await this.gameModeService.getGameModeByGameId(E.id):[{name:"Regular"}]}async loadDifficultiesForRoute(){this.difficulties=await this.difficultyService.getAll();const l={QUESTING:"RS Questing",DIARIES:"RS Diaries",PVM:"RS PVM"},E=["QUESTING","DIARIES","PVM"].find(b=>this.selectedChildGame?.shortName?.includes(b));if(E){const b=this.productCategories.find(re=>re.name===l[E])?.id;b&&(this.difficulties=this.difficulties.filter(re=>re.productCategoryId===b))}this.difficulties.push({id:-1,position:-1,name:"All"}),this.difficulties=[...this.difficulties].sort((b,re)=>(re.position!==null)-(b.position!==null)||b.position-re.position)}applyServiceFilterForRoute(){this.selectedGame&&(this.serviceFilter=this.serviceGames.filter(l=>l.name.toLowerCase().includes(this.selectedGame.shortName.toLowerCase())))}scheduleFilterByRouteCleanup(){const l=this.selectedGame?.dynamicService?He.ARROW_DELAY_DYNAMIC_SERVICE_MS:He.ARROW_DELAY_MS;setTimeout(()=>this.helper.addFilterArrow(this.serviceSelector),l),this.firstTimeTriggering=!1}async filterRouteChanged(l){const E=l.detail?.values?.[0];if(!E||E==="ALL")return;const b=this.routes.find(re=>re.key===E);b&&this.gameChanged(1,b.key)}async gameChanged(l,E){try{this.helper.removePrerenderMetaTagForRedirect(),this.additionalInformation="";const b=this.findSelectedGameFromEvent(l);if(this.isSameSelection(b))return;this.triggeredFilteredBy||(setTimeout(()=>this.helper.addFilterArrow(this.serviceSelector),He.ARROW_DELAY_MS),this.applySelectionFromGameOrCategory(b,E))}catch(b){this.logger.error("Error in gameChanged:",b)}finally{this.loading=!1,this.helper.validateLoading("services")}}isSameSelection(l){return l?[this.selectedParentGame?.id,this.selectedChildGame?.id,this.selectedGame?.id].map(Number).includes(Number(l.id)):!1}applySelectionFromGameOrCategory(l,E){l?(this.selectedGame=l,Number(l?.parentGameId)>0?(this.selectedChildGame=l,this.selectedParentGame=this.servicesParentGames.find(b=>Number(b?.id)===Number(this.selectedChildGame?.parentGameId))):this.landingGameShortNames.includes(l.shortName)?(this.selectedParentGame=l,this.selectedChildGame=null):(this.selectedParentGame=l,this.selectedChildGame=this.selectedGame?.dynamicService?null:this.serviceGames.find(b=>b.parentGameId?.toString()===this.selectedGame?.id))):this.selectedParentGame&&(this.selectedChildGame=this.servicesChildGames.find(b=>b.shortName?.includes(E)&&b.shortName?.includes(this.selectedParentGame.shortName)),this.selectedGame=this.resonsiveTo&&this.selectedChildGame?this.selectedChildGame:this.selectedParentGame),this.selectedGame?.dynamicService&&this.eventAggregator.publish("dynamic-game-changed",{dynamicGame:this.selectedGame}),this.handleRoutes(!0),this.gamesToType=this.serviceGames.filter(b=>Number(b.parentGameId)===Number(this.selectedChildGame?.parentGameId)),this.games=this.resonsiveTo&&this.gamesToType.length>0?this.gamesToType:this.servicesParentGames,this.updateRouteActiveStatus()}findSelectedGameFromEvent(l){if(!l||l.id===void 0||l.id===null)return null;if((!l.parentGameId||Number(l.parentGameId)===0)&&this.landingGameShortNames.includes(l.shortName))return this.servicesParentGames?.find(re=>Number(re.id)===Number(l.id))??l;let b=this.serviceGames.find(re=>Number(re.id)===Number(l.id));if(!b){const re=["PW","BOOSTING","CUSTOMORDER"];for(const ie of re)if(b=this.serviceGames.find(Q=>Number(Q.parentGameId)===Number(l.id)&&Q.shortName.includes(ie)),b)break}return b||(b=this.serviceGames.find(re=>Number(re.parentGameId)===Number(l.id))),b||(b=this.servicesParentGames?.find(re=>Number(re.id)===Number(l.id))??this.games?.find(re=>Number(re.id)===Number(l.id))),b}handleRoutes(l=!1){try{if(this.helper.includesSome(this.selectedChildGame?.shortName,["OSRSCUSTOMORDER","RS3CUSTOMORDER"])&&(this.selectedChildGame=l?this.selectedChildGame:this.serviceGames.find(E=>E.parentGameId?.toString()===this.selectedGame?.id&&E.shortName?.includes("PW"))),this.selectedGame?.dynamicService&&this.selectedGame?.slug?.[0]){const E=`/${this.hrefLang}buy/${this.servicesPageRoute}/${this.selectedGame.slug[0]}`;globalThis.location.pathname!==E&&this.helper.addPrerenderMetaTagForRedirect(E),this.router.navigate(E)}else if(!this.selectedChildGame&&this.landingGameShortNames.includes(this.selectedGame?.shortName)&&this.selectedGame?.slug?.[0]){const E=`/${this.hrefLang}buy/${this.servicesPageRoute}/${this.selectedGame.slug[0]}`;globalThis.location.pathname!==E&&this.helper.addPrerenderMetaTagForRedirect(E),this.router.navigate(E)}else if(this.selectedChildGame?.slug?.[0]){const E=`/${this.hrefLang}buy/${this.servicesPageRoute}/${this.selectedChildGame.slug[0]}`;globalThis.location.pathname!==E&&this.helper.addPrerenderMetaTagForRedirect(E),this.router.navigate(E)}}catch(E){this.logger.error("Error in handleRoutes:",E)}finally{this.helper.validateLoading("services")}}async selectedDifficultyChanged(){if(!this._updatingSelectedDifficulty){this._updatingSelectedDifficulty=!0;try{const l=typeof this.selectedDifficulty=="object"&&this.selectedDifficulty!==null?this.selectedDifficulty.id:this.selectedDifficulty,E=this.difficulties.find(b=>b.id==l);E?this.selectedDifficulty!==E&&(this.selectedDifficulty=E):this.selectedDifficulty.id!==-1&&this.selectedDifficulty.name!=="All"&&(this.selectedDifficulty={id:-1,position:-1,name:"All"}),this.eventAggregator.publish("difficulty-updated",{difficulty:this.selectedDifficulty})}finally{this._updatingSelectedDifficulty=!1}}}async selectedGameModeChanged(){const l=this.gameModes.find(E=>E.id==this.selectedGameMode);l&&(this.selectedGameMode=l),this.eventAggregator.publish("game-mode-updated",{gameMode:this.selectedGameMode})}handleSearch(l){if(this.search=l.target.value,this.search){this.eventAggregator.publish("search-updated",{search:this.search});const E=this.sharedServiceState.getSharedState(this.selectedService);this.resultsExists=E.resultsExists;return}this.clearSearch()}clearSearch(){this.search=null,this.isSearching=!1,this.eventAggregator.publish("search-updated",{search:""}),this.resultsExists=!0}importCharacter(l){this.eventAggregator.publish("character-updated",{accountName:this.accountName,refreshAccountName:l})}handleAccountNameChange(l){if(this.clearValidationTimeouts(),this.resetCharacterNameUI(),!l||l.trim()===""){this.importCharacter(!0);return}this.whiteXMark=!0,this.characterNameState="loading",this.miniSpinnerStopWatch=setTimeout(()=>{this.whiteXMark=!1,this.showMiniSpinnerCharacterName=!0},1e3),this.characterNameStopWatch=setTimeout(()=>{this.accountName&&this.accountName.trim()!==""?(this.showErrorCheckMarkCharacterName=this.whiteXMark=!1,this.showMiniSpinnerCharacterName=!1,this.triggeredImport=!0,this.importCharacter()):this.characterNameStopWatch2=setTimeout(()=>{this.showMiniSpinnerCharacterName=this.showGreenCheckMarkCharacterName=this.whiteXMark=!1,this.showErrorCheckMarkCharacterName=!0,this.triggeredNotification=!0,this.characterNameState="invalid",B.$.toast("Please enter a character name to proceed with import.","error").show()},2e3)},2e3)}characterNameOnFocusIn(){this.resetCharacterNameUI()}checkCharacterNameValidation(){this.clearValidationTimeouts(),this.showMiniSpinnerCharacterName=this.whiteXMark=!1,this.accountName!==void 0&&this.accountName!==""&&(this.accountName&&this.accountName.trim()!==""&&!this.triggeredImport?this.importCharacter():this.triggeredImport||(this.showMiniSpinnerCharacterName=this.showGreenCheckMarkCharacterName=this.whiteXMark=!1,this.showErrorCheckMarkCharacterName=!0,this.triggeredNotification||(this.characterNameState="invalid",B.$.toast("Please enter a character name to proceed with import.","error").show())))}resetCharacterNameUI(){this.showMiniSpinnerCharacterName=this.showGreenCheckMarkCharacterName=this.showErrorCheckMarkCharacterName=this.triggeredNotification=this.triggeredImport=!1,this.characterNameState="normal"}clearValidationTimeouts(){const l=[this.characterNameStopWatch,this.characterNameStopWatch2,this.miniSpinnerStopWatch,this.characterNameFocusInStopWatch];this.clearationTimeoutValueConverter.toView(l)}clearCharacterName(){this.clearValidationTimeouts(),this.resetCharacterNameUI(),this.accountName=void 0,this.importCharacter(!0)}async configureRouter(l,E){this.navCategory=await this.productCategoryService.getNavCategory("services","CG");const b=this.navCategory?.gameForNav.filter(Q=>Q.parentGameId>0),re=this.navCategory?.gameForNav.filter(Q=>Q.dynamicService);l.options.pushState=!0,this.router=E;const ie="services";l.map([{route:["",$],name:$,moduleId:"pages/services/buy-services/buy-services",settings:{metaDescription:"ChicksGold now offering Game Services! Haven't got time to level yourself? Runescape accounts skilled quickly and safely at Chicks Gold."}},{route:this.getRouteSlugOrFallback(this.navCategory?.gameForNav,"OSRS"),name:this.findGameByShortName(this.navCategory?.gameForNav,"OSRS")?.name,moduleId:"pages/services/runescape-powerleveling/runescape-powerleveling",title:this.findGameByShortName(this.navCategory?.gameForNav,"OSRS")?.title,settings:{isLandingPage:!0,metaDescription:this.findGameByShortName(this.navCategory?.gameForNav,"OSRS")?.metaDescription,keyName:"SERVICES_OSRS"},navigationStrategy:Q=>{if(!this.guardServiceJunkTail(Q,ie))return this.applyServiceGameMeta(Q,this.navCategory?.gameForNav,"OSRS")}},{route:this.getRouteSlugOrFallback(this.navCategory?.gameForNav,"RS3"),name:this.findGameByShortName(this.navCategory?.gameForNav,"RS3")?.name,moduleId:"pages/services/runescape-powerleveling/runescape-powerleveling",title:this.findGameByShortName(this.navCategory?.gameForNav,"RS3")?.title,settings:{isLandingPage:!0,metaDescription:this.findGameByShortName(this.navCategory?.gameForNav,"RS3")?.metaDescription,keyName:"SERVICES_RS3"},navigationStrategy:Q=>{if(!this.guardServiceJunkTail(Q,ie))return this.applyServiceGameMeta(Q,this.navCategory?.gameForNav,"RS3")}},{route:[...this.buildNestedServiceRoute([],"",b,"RS3PW"),"runescape-powerleveling"],name:this.findGameByShortName(b,"RS3PW")?.name,moduleId:"pages/services/runescape-powerleveling/runescape-powerleveling",title:this.findGameByShortName(b,"RS3PW")?.title,settings:{metaDescription:this.findGameByShortName(b,"RS3PW")?.metaDescription,keyName:"SERVICES_RS3PW"},navigationStrategy:async Q=>{if(!this.guardServiceJunkTail(Q,ie))return await this.applyServiceGameMeta(Q,b,"RS3PW"),this.checkSlugAndRedirect(ie,b,"RS3PW","runescape-powerleveling")}},{route:this.buildNestedServiceRoute([],"",b,"RS3QUESTING",[$]),name:this.findGameByShortName(b,"RS3QUESTING")?.name,moduleId:"pages/services/runescape-questing/runescape-questing",title:this.findGameByShortName(b,"RS3QUESTING")?.title,settings:{metaDescription:this.findGameByShortName(b,"RS3QUESTING")?.metaDescription,keyName:"SERVICES_RS3QUESTING"},navigationStrategy:async Q=>{if(!this.guardServiceJunkTail(Q,ie))return await this.applyServiceGameMeta(Q,b,"RS3QUESTING"),this.checkSlugAndRedirect(ie,b,"RS3QUESTING")}},{route:this.buildNestedServiceRoute([],"",b,"RS3DIARIES",[$]),name:this.findGameByShortName(b,"RS3DIARIES")?.name,moduleId:"pages/services/runescape-diaries/runescape-diaries",title:this.findGameByShortName(b,"RS3DIARIES")?.title,settings:{metaDescription:this.findGameByShortName(b,"RS3DIARIES")?.metaDescription,keyName:"SERVICES_RS3DIARIES"},navigationStrategy:async Q=>{if(!this.guardServiceJunkTail(Q,ie))return await this.applyServiceGameMeta(Q,b,"RS3DIARIES"),this.checkSlugAndRedirect(ie,b,"RS3DIARIES")}},{route:this.buildNestedServiceRoute([],"",b,"RS3PVM",[$]),name:this.findGameByShortName(b,"RS3PVM")?.name,moduleId:"pages/services/runescape-pvm/runescape-pvm",title:this.findGameByShortName(b,"RS3PVM")?.title,settings:{metaDescription:this.findGameByShortName(b,"RS3PVM")?.metaDescription,keyName:"SERVICES_RS3PVM"},navigationStrategy:async Q=>{if(!this.guardServiceJunkTail(Q,ie))return await this.applyServiceGameMeta(Q,b,"RS3PVM"),this.checkSlugAndRedirect(ie,b,"RS3PVM")}},{route:this.buildNestedServiceRoute([],"",b,"RS3MG",[$]),name:this.findGameByShortName(b,"RS3MG")?.name,moduleId:"pages/services/runescape-minigames/runescape-minigames",title:this.findGameByShortName(b,"RS3MG")?.title,settings:{metaDescription:this.findGameByShortName(b,"RS3MG")?.metaDescription,keyName:"SERVICES_RS3MG"},navigationStrategy:async Q=>{if(!this.guardServiceJunkTail(Q,ie))return await this.applyServiceGameMeta(Q,b,"RS3MG"),this.checkSlugAndRedirect(ie,b,"RS3MG")},activationStrategy:"invoke-lifecycle",nav:!0},{route:this.buildNestedServiceRoute([],"",b,"RS3CUSTOMORDER",[$]),name:this.findGameByShortName(b,"RS3CUSTOMORDER")?.name,moduleId:"pages/services/runescape-custom-order/runescape-custom-order",title:this.findGameByShortName(b,"RS3CUSTOMORDER")?.title,settings:{staticName:"services-custom-order",metaDescription:this.findGameByShortName(b,"RS3CUSTOMORDER")?.metaDescription,keyName:"SERVICES_RS3CUSTOMORDER"},navigationStrategy:async Q=>{if(!this.guardServiceJunkTail(Q,ie))return await this.applyServiceGameMeta(Q,b,"RS3CUSTOMORDER"),this.checkSlugAndRedirect(ie,b,"RS3CUSTOMORDER")}},{route:[...this.buildNestedServiceRoute([],"",b,"OSRSPW",[$]),"oldschool-runescape-powerleveling"],name:this.findGameByShortName(b,"OSRSPW")?.name,moduleId:"pages/services/runescape-powerleveling/runescape-powerleveling",title:this.findGameByShortName(b,"OSRSPW")?.title,settings:{metaDescription:this.findGameByShortName(b,"OSRSPW")?.metaDescription,keyName:"SERVICES_OSRSPW"},navigationStrategy:async Q=>{if(!this.guardServiceJunkTail(Q,ie))return await this.applyServiceGameMeta(Q,b,"OSRSPW"),this.checkSlugAndRedirect(ie,b,"OSRSPW","oldschool-runescape-powerleveling")}},{route:this.buildNestedServiceRoute([],"",b,"OSRSQUESTING",[$]),name:this.findGameByShortName(b,"OSRSQUESTING")?.name,moduleId:"pages/services/runescape-questing/runescape-questing",title:this.findGameByShortName(b,"OSRSQUESTING")?.title,settings:{metaDescription:this.findGameByShortName(b,"OSRSQUESTING")?.metaDescription,keyName:"SERVICES_OSRSQUESTING"},navigationStrategy:async Q=>{if(!this.guardServiceJunkTail(Q,ie))return await this.applyServiceGameMeta(Q,b,"OSRSQUESTING"),this.checkSlugAndRedirect(ie,b,"OSRSQUESTING")}},{route:[...this.buildNestedServiceRoute([],"",b,"OSRSDIARIES",[$]),"osrs-achievement-diary"],name:this.findGameByShortName(b,"OSRSD
7276IARIES")?.name,moduleId:"pages/services/runescape-diaries/runescape-diaries",title:this.findGameByShortName(b,"OSRSDIARIES")?.title,settings:{metaDescription:this.findGameByShortName(b,"OSRSDIARIES")?.metaDescription,keyName:"SERVICES_OSRSDIARIES"},navigationStrategy:async Q=>{if(!this.guardServiceJunkTail(Q,ie))return await this.applyServiceGameMeta(Q,b,"OSRSDIARIES"),this.checkSlugAndRedirect(ie,b,"OSRSDIARIES","osrs-achievement-diary")}},{route:this.buildNestedServiceRoute([],"",b,"OSRSPVM",[$]),name:this.findGameByShortName(b,"OSRSPVM")?.name,moduleId:"pages/services/runescape-pvm/runescape-pvm",title:this.findGameByShortName(b,"OSRSPVM")?.title,settings:{metaDescription:this.findGameByShortName(b,"OSRSPVM")?.metaDescription,keyName:"SERVICES_OSRSPVM"},navigationStrategy:async Q=>{if(!this.guardServiceJunkTail(Q,ie))return await this.applyServiceGameMeta(Q,b,"OSRSPVM"),this.checkSlugAndRedirect(ie,b,"OSRSPVM")}},{route:this.buildNestedServiceRoute([],"",b,"OSRSMG",[$]),name:this.findGameByShortName(b,"OSRSMG")?.name,moduleId:"pages/services/runescape-minigames/runescape-minigames",title:this.findGameByShortName(b,"OSRSMG")?.title,settings:{metaDescription:this.findGameByShortName(b,"OSRSMG")?.metaDescription,keyName:"SERVICES_OSRSMG"},navigationStrategy:async Q=>{if(!this.guardServiceJunkTail(Q,ie))return await this.applyServiceGameMeta(Q,b,"OSRSMG"),this.checkSlugAndRedirect(ie,b,"OSRSMG")}},{route:this.buildNestedServiceRoute([],"",b,"OSRSCUSTOMORDER",[$]),name:this.findGameByShortName(b,"OSRSCUSTOMORDER")?.name,moduleId:"pages/services/runescape-custom-order/runescape-custom-order",title:this.findGameByShortName(b,"OSRSCUSTOMORDER")?.title,settings:{staticName:"services-custom-order",metaDescription:this.findGameByShortName(b,"OSRSCUSTOMORDER")?.metaDescription,keyName:"SERVICES_OSRSCUSTOMORDER"},navigationStrategy:async Q=>{if(!this.guardServiceJunkTail(Q,ie))return await this.applyServiceGameMeta(Q,b,"OSRSCUSTOMORDER"),this.checkSlugAndRedirect(ie,b,"OSRSCUSTOMORDER")}},{route:this.buildNestedServiceRoute(this.navCategory?.gameForNav,"NW",b,"NWPW",[$]),name:this.findGameByShortName(b,"NWPW")?.name,moduleId:"pages/services/new-world-powerleveling/new-world-powerleveling",title:this.findGameByShortName(b,"NWPW")?.title,settings:{metaDescription:this.findGameByShortName(b,"NWPW")?.metaDescription,keyName:"SERVICES_NWPW"},navigationStrategy:async Q=>{if(!this.guardServiceJunkTail(Q,ie))return await this.applyServiceGameMeta(Q,b,"NWPW"),this.checkSlugAndRedirect(ie,b,"NWPW")}},{route:this.buildNestedServiceRoute(this.navCategory?.gameForNav,"LOL",b,"LOLBOOSTING",[$]),name:this.findGameByShortName(b,"LOLBOOSTING")?.name,moduleId:"pages/services/league-of-legends-boosting/league-of-legends-boosting",title:this.findGameByShortName(b,"LOLBOOSTING")?.title,settings:{metaDescription:this.findGameByShortName(b,"LOLBOOSTING")?.metaDescription,keyName:"SERVICES_LOLBOOSTING"},navigationStrategy:async Q=>{if(!this.guardServiceJunkTail(Q,ie))return await this.applyServiceGameMeta(Q,b,"LOLBOOSTING"),this.checkSlugAndRedirect(ie,b,"LOLBOOSTING")}},{route:this.buildNestedServiceRoute(this.navCategory?.gameForNav,"VALORANT",b,"VALBOOSTING",[$]),name:this.findGameByShortName(b,"VALBOOSTING")?.name,moduleId:"pages/services/valorant-boosting/valorant-boosting",title:this.findGameByShortName(b,"VALBOOSTING")?.title,settings:{metaDescription:this.findGameByShortName(b,"VALBOOSTING")?.metaDescription,keyName:"SERVICES_VALBOOSTING"},navigationStrategy:async Q=>{if(!this.guardServiceJunkTail(Q,ie))return await this.applyServiceGameMeta(Q,b,"VALBOOSTING"),this.checkSlugAndRedirect(ie,b,"VALBOOSTING")}},{route:this.buildNestedServiceRoute(this.navCategory?.gameForNav,"WOWWOTLK",b,"WOWTLKPW",[$]),name:this.findGameByShortName(b,"WOWTLKPW")?.name,moduleId:"pages/services/wow-powerleveling/wow-powerleveling",title:this.findGameByShortName(b,"WOWTLKPW")?.title,settings:{metaDescription:this.findGameByShortName(b,"WOWTLKPW")?.metaDescription,keyName:"SERVICES_WOWTLKPW"},navigationStrategy:async Q=>{if(!this.guardServiceJunkTail(Q,ie))return await this.applyServiceGameMeta(Q,b,"WOWTLKPW"),this.checkSlugAndRedirect(ie,b,"WOWTLKPW")}},...re.map(Q=>({route:Q.slug,name:Q.name,navigationStrategy:async Ae=>{if(this.guardServiceJunkTail(Ae,ie))return;
7276const Le=globalThis.location.pathname.split("/").filter(Boolean),Me=Le.indexOf(ie),Ge=Me===-1?"":Le.slice(Me+1).join("/");if(Ge&&Ge!==Q.slug[0]&&Q.slug.includes(Ge)){const ve=`/${[...Le.slice(0,Me+1),Q.slug[0]].join("/")}`;this.helper.addPrerenderMetaTagForRedirect(ve),this.router.navigate(ve,{replace:!0});return}if(Ae.config.moduleId="pages/services/dynamic-service-page/dynamic-service-page",Ae.parentInstruction?.config?.navModel?.setTitle(""),this.helper.includesSome(Q.shortName,["VALBOOSTING","LOLBOOSTING","WOWTLKPW","NWPW"])){const ve=`/buy/${ie}/${Q.slug[0].split("/")[0]}`;this.helper.addPrerenderMetaTagForRedirect(ve),this.router.navigate(ve)}const Ue=await this.gameService.getGameForNavBySlug(Q.slug?.[0],"CG",this.navCategory?.id);Ae.config.title=Ue?.title,Ae.config.settings={keyName:`SERVICES_${Q.shortName}`,game:Q},this.metadataHelper.setTitleMetaTitleAndMetaDescription(Ae.config,Ae,Ue?.title,Ue?.metaDescription)}}))]),l.mapUnknownRoutes(async Q=>{if((Q?.fragment??"").split("/").filter(Boolean).length>1){this.router.navigateToRoute("404");return}if(this.gamesForNoAvailable=[...b?.filter(Ae=>Ae?.isTrending)?.sort((Ae,Le)=>Ae?.name?.localeCompare(Le?.name))?.slice(0,5)??[],...b?.filter(Ae=>!Ae?.isTrending)?.sort((Ae,Le)=>Ae?.name?.localeCompare(Le?.name))?.slice(0,Math.max(0,5-(b?.filter(Ae=>Ae?.isTrending)?.length||0)))??[]].slice(0,5),this.gameUnavailable=await this.gameService.getGameForNavBySlug(Q?.fragment,"CG",this.navCategory.id),!this.gameUnavailable){this.router.navigateToRoute("404");return}return this.gameNotAvailable=!0,this.helper.validateLoading("services"),Q.parentInstruction.config.navModel.setTitle(""),{route:Q.fragment,title:this.gameUnavailable?.title,moduleId:"pages/services/buy-services/buy-services",settings:{auth:!1}}})}findGameByShortName(l,E){return l?.find(b=>b.shortName===E)}getRouteSlugOrFallback(l,E,b=[]){const re=this.findGameByShortName(l,E)?.slug;return Array.isArray(re)?re:b}buildNestedServiceRoute(l,E,b,re,ie=[]){const Q=this.getRouteSlugOrFallback(l,E),Ae=this.getRouteSlugOrFallback(b,re,ie),Le=[...Q,...Ae],Me=Le.find(Ge=>typeof Ge=="string"&&Ge.includes("/"));if(Me){const Ge=Me.replaceAll("/","-");return[...Le,Ge]}return Le}handleSelectionChanged(l){this.handleChangeFunctionString&&this.parent[this.handleChangeFunctionString](l.detail.value)}handleAddingPlaceholdersForTextAreas(){const l=this.siteStrings.toView(this.languageKeyFormatter.toView("CG_ADDITIONAL_INFO_EG")),E=this.additionalInformationTextArea?.querySelector("textarea");E&&(E.placeholder=l??"Enter additional information")}additionalInformationChanged(){this.handleFieldChange(),this.helper.handleTextAreaAutoGrowth(this.additionalInformationTextArea,null,"additional-information",this.servicesMainContainer)}async handleTicketCreation(){const l=await this.sessionService.getCart();if(this.isDynamicServiceAlreadyInCart(l)){B.$.toast(`Service ${this.selectedGame.name} is already on the cart.`,"info").show();return}if(await this.helper.handleAccountOrderValidation(l,this.orderService,ne.g1.Services,!1))return;const b=this.getDynamicServicePreSubmitError(l);if(b){B.$.toast(b.message,b.type).show(),b.navigateTo&&this.router.navigate(b.navigateTo);return}if(this.triggeredService)return;this.triggeredService=!0;const re=await this.buildOrder(),ie=O.dX.validateWithUserCart(re,this.cart,!1);if(ie){B.$.toast(ie,"error").show(),this.triggeredService=!1;return}try{await this.executeDynamicServiceOrder(re)}catch(Q){this.logger.error(Q),this.triggeredService=!1}}isDynamicServiceAlreadyInCart(l){return l?.some(E=>this.helper.includesAll(E.serviceFullName,["| Dynamic Service",this.selectedGame.name]))}getDynamicServicePreSubmitError(l){return this.service?.length<this.dynamicFormFields?.length?{type:ne.Ck.INFO,message:"Please complete all the fields on the form."}:this.user?l?.length>=1&&l.some(E=>E.sellerId!=null)?{type:ne.Ck.ERROR,message:this.pageContentAreaService?.displaySiteString("CG_MARKETPLACE_MULTIPLE_SELLERS_WARNING","You can only purchase products from one marketplace seller at a time.")}:null:{type:ne.Ck.INFO,message:"Please log in to complete your dynamic service purchase.",navigateTo:`/sign-in?redirect_url=${globalThis.location.pathname}`}}async executeDynamicServiceOrder(l){const E=await this.orderService.createDynamicServiceOrUniqueNamesOrder(l),b=await this.sessionService.getCart(!0);this.eventAggregator.publish("cart-updated",{cart:b}),this.redirectToOrderChat(E)}async buildOrder(){this.products=await this.productService.getProductsWithFilter("Dynamic Service");const l=this.products[0];return this.attachmentFilesResponse=await this.uploadAttachments(this.filesList),{websiteShortCode:(0,k.te)(),totalPrice:this.totalPrice,referralLinkUrl:this.sessionService.getReferralLink(),referrerLinkUrl:this.sessionService.getReferrerLink(),attachments:this.attachmentFilesResponse,accountData:JSON.stringify(this.service),products:[{productId:l.id,gameId:this.selectedGame?.id,quantity:1,price:0,isService:!0,serviceFullName:`${this.selectedGame.name} | Buy | ${l.name}`,dynamicList:JSON.stringify(this.service),imagePath:this.selectedGame.sellIcon,isSell:!1,productCategoryId:this.navCategory.id}]}}setDynamicFiltersMaxWidth(){this.width||(this.width=this.helper.getWidth());const l=this.dynamicFiltersContainer;if(!l)return;if(this.width<this.desktop){l.style.maxWidth="unset";return}const E=292,b=20;l.style.maxWidth=this.helper.getPyramidMaxWidth(l.children.length,E,b,4)}updateRouteActiveStatus(){if(!this.selectedGame||!this.serviceGames){this.routeActiveStatus={};return}const l={};
7276this.routes.forEach(E=>{const b=this.serviceGames.some(re=>this.selectedGame.parentGameId===0?re.shortName.includes(`${this.selectedGame.shortName}${E.key}`):re.shortName.includes(E.key)&&re.parentGameId===this.selectedGame.parentGameId);l[E.key]=b}),this.routeActiveStatus=l}redirectToOrderChat(l){const E=l.products.some(re=>!re.isSell),b=l.products.some(re=>re.isSell);if(E&&b){this.router.navigate(`/${this.customerPortalPage}/swap/chat/${l.id}`);return}this.router.navigate(`/${this.customerPortalPage}/purchased/chat/${l.id}`)}checkFileType(l){return this.fileTypes.some(E=>l.type.startsWith(E+"/"))||this.category.name!=="Accounts"&&this.fileExtensions.some(E=>l.name.endsWith("."+E))?!0:(B.$.toast(`File type is not allowed for ${l.name}`,"error").show(),!1)}get isOverflowing(){return this.tempFiles?.length>this.maxFiles}get fileContainerOpened(){return this.isOverflowing&&this.showLess?"files-container-opened":""}widthChanged(){this.helper.widthHandler(this)}getSuccess(l){return this[l]&&!this[`${l}TextArea`]?.isFocused}get additionalInformationSuccess(){return this.getSuccess("additionalInformation")}handleDrawerFilters(l){const E=document.getElementById("main-page-host");E&&(E.style.overflow=l==="open"?"hidden":null,this.drawer.open=l==="open")}shouldShow(){const l=[this.selectedGame?.shortName,this.selectedChildGame?.shortName];return!this.dynamicService&&!this.helper.includesSome(l,["WOWWOTLK","OSRSCUSTOMORDER","RS3CUSTOMORDER"])}resetGameModeFilter(){this.gameModes?.length>0?(this.selectedGameMode=this.gameModes[0],this.gameModeFilter?.autocomplete&&(this.gameModeFilter.autocomplete.setValue(""),this.gameModeFilter.selectedValues=[],this.gameModeFilter.buildOptions())):this.selectedGameMode=null}resetDifficultyFilter(){this.difficulties?.length>0?(this.selectedDifficulty=this.difficulties[0],this.difficultyFilter?.autocomplete&&(this.difficultyFilter.autocomplete.setValue(""),this.difficultyFilter.selectedValues=[],this.difficultyFilter.buildOptions())):this.selectedDifficulty=null}guardServiceChildRouteTail(){return this.router?.currentInstruction?.params?.childRoute?(this.helper.handlePrerender404(this.router,!0),this.router.navigateToRoute("404"),!0):!1}guardServiceJunkTail(l,E){const b=l?.config?.route;if(typeof b!="string")return!1;const re=b.split("/").filter(Boolean).length;if(re===0)return!1;const ie=globalThis.location.pathname.split("/").filter(Boolean),Q=ie.indexOf(E);return Q===-1?!1:ie.length-Q-1>re?(this.router.navigateToRoute("404"),!0):!1}get runescapeServicesBackgroundClass(){const l=this.selectedGame?.shortName;return l&&(l.startsWith("RS3")||l.startsWith("OSRS"))?"background-position-right background-site":""}get isTitleLoading(){return!this.viewingAsAdmin&&(this.pageLoading||!this.titleResolved)}get shouldShowTitleName(){return!this.pageLoading&&!this.titleKeyContent?.markup&&!this.viewingAsAdmin}get shouldShowContentArea(){return!this.pageLoading&&this.titleKeyContent?.markup||this.viewingAsAdmin}get shouldShowTitle(){return[!this.pageLoading,this.selectedChildGame?.headerTitle,!this.titleKeyContent?.markup,!this.viewingAsAdmin,!this.selectedGame?.dynamicService].every(Boolean)}get formattedDifficultyOptions(){return this.difficulties.map(l=>({label:l.name,value:l.id}))}get formattedGameModes(){return this.gameModes.map(l=>({label:l.name,value:l.id}))}get getFilterLayoutConfig(){return{menuButtonClass:"",baseDesktopComponent:"menu",baseResponsiveComponent:"filter-button",filterType:"multiple",noResults:!this.resultsExists&&!this.pageLoading,searchTextValue:this.search,loading:this.pageLoading||this.loading,disabledDrawerSearch:!this.selectedGame,customFooter:!0,showDrawerSearchbar:!0,onClearSearch:()=>this.clearSearch(),onCloseDrawer:()=>{},onSearchChanged:l=>this.handleSearch(l),onClearFilters:()=>this.handleClearFilters(),onOpenDrawer:()=>this.handleOpenDrawer()}}onGameModeFilterSelected(l){const E=l?.detail?.values?.[0];E!==void 0&&(this.selectedGameMode=E,this.selectedGameModeChanged())}onDifficultyFilterSelected(l){const E=l?.detail?.values?.[0];E!==void 0&&(this.selectedDifficulty=E,this.selectedDifficultyChanged())}get gameModeFilterField(){return!this.gameModesLoaded||!this.gameModes||this.gameModes.length===0?null:{id:1,name:"Game Mode",type:ne.PU.Select,iconPath:"../services/game-mode-icon.svg",listOfValue:{label:this.siteStrings.toView("CG_GAME_MODE"),children:this.gameModes.map(l=>({display:l.name,value:l.id}))}}}getRoutesFilterField(){const l=this.routes.filter(E=>this.routeActiveStatus[E.key]).map(E=>({display:this.siteStrings.toView(E.label,E.fallback),value:E.key}));return l.length?{id:3,name:"Type",type:ne.PU.Select,iconPath:"feather.svg",listOfValue:{label:"Type",children:l}}:{id:3,name:"Type",type:ne.PU.Select,iconPath:"feather.svg",listOfValue:{label:"Type",children:[]}}}get difficultyFilterField(){if(!this.difficulties||this.difficulties.length===0)return null;const l=[...this.difficulties.filter(E=>E.name==="All"),...this.difficulties.filter(E=>E.name!=="All").sort((E,b)=>E.position-b.position)];return{id:2,name:"Difficulty",type:ne.PU.Select,iconPath:"../services/difficulty-icon.svg",listOfValue:{label:this.siteStrings.toView("CG_DIFFICULTY"),children:l.map(E=>
7276({display:E.name,value:E.id}))}}}get selectedRouteKey(){if(this.selectedService){const l=this.routes.find(E=>E.service===this.selectedService);if(l)return l.key}if(this.selectedChildGame?.shortName){const l=this.routes.find(E=>this.selectedChildGame.shortName.includes(E.key));if(l)return l.key}return null}get shouldShowGameModeFilter(){const l=["powerleveling","questing","diaries","pvm","minigames"];return!this.selectedGame||l.includes(this.selectedService)}get shouldShowDifficultyFilter(){return!this.selectedGame||this.selectedService==="questing"||this.selectedService==="diaries"||this.selectedService==="pvm"}get getPaddingFix(){return this.search?.length&&this.width<=this.tablet&&"cg-filter-section-template-padding-top-fix"}get currentServiceView(){return this.selectedService&&{powerleveling:"./runescape-powerleveling/runescape-powerleveling.html",questing:"./runescape-questing/runescape-questing.html",minigames:"./runescape-minigames/runescape-minigames.html",pvm:"./runescape-pvm/runescape-pvm.html",diaries:"./runescape-diaries/runescape-diaries.html",customorder:"./runescape-custom-order/runescape-custom-order.html"}[this.selectedService]||null}get currentServiceViewModel(){return this.selectedService&&{powerleveling:"./runescape-powerleveling/runescape-powerleveling",questing:"./runescape-questing/runescape-questing",minigames:"./runescape-minigames/runescape-minigames",pvm:"./runescape-pvm/runescape-pvm",diaries:"./runescape-diaries/runescape-diaries",customorder:"./runescape-custom-order/runescape-custom-order"}[this.selectedService]||null}getSharedStateParams(l){return{drawerIsOpen:!1,sharedServiceState:this.sharedServiceState,selectedService:l}}get isBuyServicesRoute(){return this.router.currentInstruction.config.name===$}get isLandingRoute(){return!!this.router?.currentInstruction?.config?.settings?.isLandingPage}get isStaticPage(){return this.landingGameShortNames.includes(this.selectedGame?.shortName)&&!this.selectedChildGame}},se.ARROW_DELAY_MS=50,se.ARROW_DELAY_DYNAMIC_SERVICE_MS=500,se.TRIGGERED_RESET_DELAY_MS=0,se.TRIGGERED_RESET_IMMEDIATE_MS=0,se),N=P(S.prototype,"selectedGameMode",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),te=P(S.prototype,"search",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ee=P(S.prototype,"loading",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=P(S.prototype,"width",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),I=P(S.prototype,"selectedGame",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=P(S.prototype,"additionalInformation",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ue=P(S.prototype,"selectedDifficulty",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.difficulties[0]}}),P(S.prototype,"routesFilterField",[Z],Object.getOwnPropertyDescriptor(S.prototype,"routesFilterField"),S.prototype),P(S.prototype,"isOverflowing",[_e],Object.getOwnPropertyDescriptor(S.prototype,"isOverflowing"),S.prototype),P(S.prototype,"fileContainerOpened",[U],Object.getOwnPropertyDescriptor(S.prototype,"fileContainerOpened"),S.prototype),P(S.prototype,"additionalInformationSuccess",[M],Object.getOwnPropertyDescriptor(S.prototype,"additionalInformationSuccess"),S.prototype),P(S.prototype,"runescapeServicesBackgroundClass",[p],Object.getOwnPropertyDescriptor(S.prototype,"runescapeServicesBackgroundClass"),S.prototype),P(S.prototype,"isTitleLoading",[w],Object.getOwnPropertyDescriptor(S.prototype,"isTitleLoading"),S.prototype),P(S.prototype,"shouldShowTitleName",[u],Object.getOwnPropertyDescriptor(S.prototype,"shouldShowTitleName"),S.prototype),P(S.prototype,"shouldShowContentArea",[h],Object.getOwnPropertyDescriptor(S.prototype,"shouldShowContentArea"),S.prototype),P(S.prototype,"shouldShowTitle",[v],Object.getOwnPropertyDescriptor(S.prototype,"shouldShowTitle"),S.prototype),P(S.prototype,"formattedDifficultyOptions",[n],Object.getOwnPropertyDescriptor(S.prototype,"formattedDifficultyOptions"),S.prototype),P(S.prototype,"formattedGameModes",[a],Object.getOwnPropertyDescriptor(S.prototype,"formattedGameModes"),S.prototype),P(S.prototype,"getFilterLayoutConfig",[c],Ob
7276ject.getOwnPropertyDescriptor(S.prototype,"getFilterLayoutConfig"),S.prototype),P(S.prototype,"gameModeFilterField",[o],Object.getOwnPropertyDescriptor(S.prototype,"gameModeFilterField"),S.prototype),P(S.prototype,"difficultyFilterField",[t],Object.getOwnPropertyDescriptor(S.prototype,"difficultyFilterField"),S.prototype),P(S.prototype,"selectedRouteKey",[i],Object.getOwnPropertyDescriptor(S.prototype,"selectedRouteKey"),S.prototype),P(S.prototype,"shouldShowGameModeFilter",[r],Object.getOwnPropertyDescriptor(S.prototype,"shouldShowGameModeFilter"),S.prototype),P(S.prototype,"shouldShowDifficultyFilter",[m],Object.getOwnPropertyDescriptor(S.prototype,"shouldShowDifficultyFilter"),S.prototype),P(S.prototype,"getPaddingFix",[g],Object.getOwnPropertyDescriptor(S.prototype,"getPaddingFix"),S.prototype),P(S.prototype,"currentServiceView",[d],Object.getOwnPropertyDescriptor(S.prototype,"currentServiceView"),S.prototype),P(S.prototype,"currentServiceViewModel",[y],Object.getOwnPropertyDescriptor(S.prototype,"currentServiceViewModel"),S.prototype),P(S.prototype,"isStaticPage",[C],Object.getOwnPropertyDescriptor(S.prototype,"isStaticPage"),S.prototype),S))||R)}),"pages/services/valorant-boosting/valorant-boosting":(function(W,f,e){"use strict";e.r(f),e.d(f,{ValorantBoosting:function(){return n}});var s=e("aurelia-framework"),q=e(10220),be=e(17349),ye=e(39146),X=e(31018),ae=e(12922),j=e("aurelia-event-aggregator"),ge=e(66666),le=e(69117),pe=e(41455),de=e(45246),ce=e(74737),J=e(6506),K=e(17285),H=e(38489),k=e(19806),ee=e(28674),fe=e(9688),z,ne,B,_,T,L,O,G,F,Y,Z,_e,U,M,p,w;function u(a,c,o,t){o&&Object.defineProperty(a,c,{enumerable:o.enumerable,configurable:o.configurable,writable:o.writable,value:o.initializer?o.initializer.call(t):void 0})}function h(a,c,o,t,i){var r={};return Object.keys(t).forEach(function(m){r[m]=t[m]}),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=o.slice().reverse().reduce(function(m,g){return g(a,c,m)||m},r),i&&r.initializer!==void 0&&(r.value=r.initializer?r.initializer.call(i):void 0,r.initializer=void 0),r.initializer===void 0?(Object.defineProperty(a,c,r),null):r}function v(a,c){throw Error("Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.")}let n=(z=(0,H.connectTo)({selector:{featureFlags:a=>a.state.pipe((0,ee.T)(c=>c.flags),(0,k.F)())}}),ne=(0,s.inject)(s.BindingEngine,q.Ix,be.b,X.Q,ge.w,le.J,ae.X,ye.F,j.EventAggregator,pe.j,de.H,ce.f,J.Q,s.TaskQueue),z(B=ne(B=(_=class{constructor(c,o,t,i,r,m,g,d,y,C,R,S,N,te){this.keyName=void 0,this.loading=!0,this.pageLoading=!0,this.price=void 0,u(this,"currentGame",T,this),this.addedToCart=!1,this.games=void 0,this.server=void 0,u(this,"search",L,this),this.boostingSectionsList=[{name:"Valorant Rank Boosting",show:!0},{name:"Valorant Win Boosting",show:!0},{name:"Valorant Placement Matches",show:!0},{name:"Valorant Unranked Leveling",show:!0}],this.servers=["NA","EUNE","EUW","LAN","LAS","OCE","RU","TR"],this.ranks=["Choose One","Iron","Bronze","Silver","Gold","Platinum","Diamond","Ascendant","Immortal","Radiant"],this.divisions=["I","II","III"],this.lpRanges=["0-20","21-40","41-60","61-80","81-100"],this.queueTypes=["Solo","Duo"],this.expectedRankList=[{name:"Choose One",display:!1},{name:"Iron",display:!0},{name:"Bronze",display:!0},{name:"Silver",display:!0},{name:"Gold",display:!0},{name:"Platinum",display:!0},{name:"Diamond",display:!0},{name:"Ascendant",display:!0},{name:"Immortal",display:!0},{name:"Radiant",display:!0}],this.expectedDivisionList=[{name:"I",display:!0},{name:"II",display:!0},{name:"III",display:!0}],this.currentServer="NA",u(this,"currentRank",O,this),u(this,"expectedRank",G,this),u(this,"currentDivision",F,this),u(this,"expectedDivision",Y,this),u(this,"queueSelected",Z,this),u(this,"currentLpRange",_e,this),u(this,"placementMatchWins",U,this),u(this,"winBoostingWins",M,this),u(this,"accountStartLevel",p,this),u(this,"accountEndLevel",w,this),this.width=void 0,this.firstState=!0,this.currentSectionOpened="rankBoostingSection",this.allTabsClosed=!1,this.priceModification=void 0,this.notificationShowed=!0,this.handleCheckoutButton=async()=>
7276{if(!await this.sessionService.getProfile()){this.router.navigate(`/sign-in?redirect_url=${location.pathname}`);return}let Ee="/cart";const I=(await this.sessionService.getCart())?.find(A=>A.isSell);I&&this.featureFlags.get(fe.$v.ORDER_CHAT_CART_FEATURE)&&(Ee=`/customer-portal/swap/chat/${I.orderId}`),this.router.navigate(Ee)},this.sessionService=i,this.toastService=S,this.router=o,this.helper=R,this.bindingEngine=c,this.productService=t,this.productCategoryService=d,this.gameService=r,this.priceModificationChecker=m,this.servicePricingService=g,this.eventAggregator=y,this.websiteService=C,this.helper.getResolutions(this),this.orderService=N,this.taskQueue=te}async activate(c,o,t){this.helper.addLoadingComponent("valorant-boosting");try{const i=globalThis.location.pathname.split("/").filter(Boolean);this.routeSlug=i.slice(-2).join("/"),this.keyName=t.config.settings.keyName,this.pageContentAreaSubscriber=this.eventAggregator.subscribe("page-content-area",r=>{const m=r.pageContentArea;m&&(this.dynamicDisclaimer=m.find(g=>g.key===`${o.settings.keyName}_DISCLAIMER`))}),this.servicesPageRoute=await this.websiteService.getRouteOrDefault("Services"),this.dataLoadingPromise=new Promise(r=>{this.taskQueue.queueMicroTask(async()=>{try{[this.games,this.boostingProducts,this.productCategory]=await Promise.all([this.productCategoryService.getNavCategory("services","CG"),this.productService.getProductsWithFilter("inStockValorantBoosting"),this.productCategoryService.getIdByName("services")]),this.game=this.games.gameForNav.find(m=>m.shortName==="VALBOOSTING"),r()}catch(m){throw console.error("Error loading data:",m),m}})})}catch(i){throw console.error("Error in activate:",i),i}}async attached(){try{if(await this.dataLoadingPromise,!this.game||!this.servicesPageRoute){console.warn("Required data not available");return}const c=this.router.currentInstruction.config.route;if(c.includes("childRoute"))return;if(this.game.slug[0]!==c){const o=`/${this.servicesPageRoute}/${this.game.slug[0]}`;this.helper.addPrerenderMetaTagForRedirect(o),this.router.navigate(o)}this.handleEventSubscriptions(),this.bindAmmountWinProperty(),this.width=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,this.priceModification=await this.priceModificationChecker.toView(this.game.id,5),this.eventAggregator.publish("loading-running",{loading:!1})}catch(c){throw console.error("Error in attached:",c),c}finally{this.helper.validateLoading("valorant-boosting")}}detached(){this.game?.slug[0]===this.routeSlug&&this.helper.removePrerenderMetaTagForRedirect(),this.searchSubscriber?.dispose(),this.sizeChanged?.dispose(),this.adminViewSubscription?.dispose(),this.pageContentAreaSubscriber?.dispose()}handleEventSubscriptions(){this.searchSubscriber=this.eventAggregator.subscribe("search-updated",c=>{this.search=c.search,this.filterBoostingSections(),this.resetBoostingSections()}),this.sizeChanged=this.eventAggregator.subscribe("size-changed",c=>{this.width=c.width}),this.adminViewSubscription=this.eventAggregator.subscribe("admin-view-updated",c=>{this.viewingAsAdmin=c.bool}),this.pageLoadedSubscriber=this.eventAggregator.subscribe("page-loaded",()=>{this.pageLoading=!1})}filterBoostingSections(){if(this.boostingSectionsList){let c=0;for(const o of this.boostingSectionsList)this.search?(o.show=o.name.toLowerCase().includes(this.search.toLowerCase()),o.show&&c++):(o.show=!0,c++);c===0&&!this.notificationShowed?(this.notificationShowed=!0,this.toastService.showToast(K.Ck.INFO,"No boosting service found, refresh the page or contact live chat for assist.")):c>0&&(this.notificationShowed=!1)}}bindAmmountWinProperty(){this.bindingEngine.propertyObserver(this.placementMatchWins,"selectedQuantity").subscribe(()=>this.calculatePrice()),this.bindingEngine.propertyObserver(this.winBoostingWins,"selectedQuantity").subscribe(()=>this.calculatePrice()),this.bindingEngine.propertyObserver(this.accountStartLevel,"selectedQuantity").subscribe(()=>this.calculatePrice()),this.bindingEngine.propertyObserver(this.accountEndLevel,"selectedQuantity").subscribe(()=>this.calculatePrice())}openBoostSection(c,o,t){if(!this.animating){const i=document.getElementsByClassName("boost-section-box"),r=document.getElementsByClassName("arrow-boost-section"),m=c.classList.contains("db-open")||c.classList.contains("db-open-tablet");for(const[g,d]of Array.from(i).entries())d.classList.remove("db-open","arrow-open"),this.width<=this.desktop&&d.classList.remove("db-open-tablet"),d.classList.add("arrow-close"),r[g].classList.remove("arrow-open"),r[g].classList.add("arrow-close");this.firstState=!1,this.allTabsClosed=!1,this.width<=this.desktop&&c.classList.add("db-open-tablet"),this.currentSectionOpened=t.getAttribute("element.ref"),m?(this.allTabsClosed=!0,this.width<=this.desktop&&c.classList.remove("db-open-tablet"),c.classList.remove("db-open"),o.classList.remove("arrow-open"),o.classList.add("arrow-close"),t.classList.add("overflow-hidden"),t.classList.remove("overflow-visible"),this.price=0):(this.firstState=!1,this.allTabsClosed=!1,this.width<=this.desktop&&c.classList.add("db-open-tablet"),c.classList.add("db-open"),o.classList.add("arrow-open"),o.classList.remove("arrow-close"),this.resetBoostingSections(t),this.animating=!0,setTimeout(()=>{t.classList.remove("overflow-hidden"),t.classList.add("overflow-visible"),this.animating=!1},300),this.price=0)}}resetBoostingSections(c){c&&(c!==this.winBoostingSection&&(this.winBoostingSection.classList.remove("overflow-hidden"),this.winBoostingSection.classList.remove("overflow-visible")),c!==this.rankBoostingSection&&(this.rankBoostingSection.classList.remove("overflow-hidden"),this.rankBoostingSection.classList.remove("overflow-visible")),c!==this.placementMatchesBoostingSection&&(this.placementMatchesBoostingSection.classList.remove("overflow-hidden"),this.placementMatchesBoostingSection.classList.remove("overflow-visible")),c!==this.unrankedBoostingSection&&(this.unrankedBoostingSection.classList.remove("overflow-hidden"),this.unrankedBoostingSection.classList.remove("overflow-visible")),this.calculatePrice())}currentRankChanged(){this.checkSameRankOrLower()?this.currentDivision==="III"||this.currentRank.includes("Master")||this.currentRank.includes("GrandMaster")?(this.expectedRankList=this.hideAllBeforeElement(this.expectedRankList,this.currentRank,0),setTimeout(()=>{this.expectedRank=this.getNextInList(this.expectedRankList,this.currentRank)},300),(this.currentRank.includes("Master")||this.currentRank.includes("GrandMaster"))&&(this.currentDivision="III",this.currentLpRange="0-20")):(this.expectedRankList=this.hideAllBeforeElement(this.expectedRankList,this.currentRank,1),setTimeout(()=>{this.expectedRank=this.currentRank},300)):this.currentDivision==="III"?this.expectedRankList=this.hideAllBeforeElement(this.expectedRankList,this.currentRank,0):this.expectedRankList=this.hideAllBeforeElement(this.expectedRankList,this.currentRank,1),this.calculatePrice()}expectedRankChanged(){this.checkSameRankOrLower()?(this.expectedDivisionList=this.hideAllBeforeElement(this.expectedDivisionList,this.currentDivision,0),setTimeout(()=>{this.expectedDivision=this.getNextInList(this.expectedDivisionList,this.currentDivision)},300)):(this.expectedDivisionList=this.hideAllBeforeElement(this.expectedDivisionList,"I",1),(this.expectedRank.includes("Master")||this.expectedRank.includes("GrandMaster")||this.expectedRank.includes("Radiant"))&&setTimeout(()=>{this.expectedDivision=this.expectedDivisionList[3].name},300)),this.calculatePrice()}currentDivisionChanged(){this.currentRank===this.expectedRank&&this.currentDivision==="III"?(this.expectedRankList=this.hideAllBeforeElement(this.expectedRankList,this.currentRank,0),setTimeout(()=>{this.expectedRank=this.getNextInList(this.expectedRankList,this.currentRank)},300)):this.currentRank===this.expectedRank&&this.checkSameDivisionOrLower()?(this.expectedDivisionList=this.hideAllBeforeElement(this.expectedDivisionList,this.currentDivision,0),setTimeout(()=>{this.expectedDivision=this.getNextInList(this.expectedDivisionList,this.currentDivision)},300)):(this.expectedRankList=this.hideAllBeforeElement(this.expectedRankList,this.currentRank,1),this.checkSameRankOrLower()&&(this.expectedDivisionList=this.hideAllBeforeElement(this.expectedDivisionList,this.currentDivision,0))),this.calculatePrice()}expectedDivisionChanged(){this.calculatePrice()}queueSelectedChanged(){this.calculatePrice()}currentLpRangeChanged(){this.calculatePrice()}async calculatePrice(){if(this.currentRank!=="Choose One"||this.currentSectionOpened==="unrankedBoostingSection"){const c=this.getProductIdBaseOnSelection(),o=this.getSkillingCategoryName(),t=this.currentSectionOpened==="placementMatchesBoostingSection"?this.placementMatchWins.selectedQuantity:this.currentSectionOpened==="winBoostingSection"?this.winBoostingWins.selectedQuantity:0;if(this.data={gameId:this.game.id,productId:c,productName:o,currentRankName:this.generateRankName(this.currentRank,this.currentDivision,o),expectedRankName:this.generateRankName(this.expectedRank,this.expectedDivision,o),currentLP:this.splitAfterSpace(this.currentLpRange),amountOfWins:t,accountLevelStart:this.accountStartLevel.selectedQuantity,accountLevelEnd:this.accountEndLevel.selectedQuantity},this.validationBasedOnBoostingSection(!1)){this.data.currentRankLevel=this.getBoostingLevelBasedOnNameAndSection(this.data.currentRankName,o)?this.getBoostingLevelBasedOnNameAndSection(this.data.currentRankName,o):0,this.data.expectedRankLevel=this.getBoostingLevelBasedOnNameAndSection(this.data.expectedRankName,o)?this.getBoostingLevelBasedOnNameAndSection(this.data.expectedRankName,o):0;const i=await this.servicePricingService.getEstimatesForLeague(this.data);this.price=this.priceModification?i?.price+i?.price*(this.priceModification.percentage/100):i?.price,this.updatedDate=i.updatedDate}}}async addToCart(){const c=await this.sessionService.getCart();if(!await this.helper.handleAccountOrderValidation(c,this.orderService,K.g1.Services,!1)&&this.validationBasedOnBoostingSection(!0)){const t=this.getProductIdBaseOnSelection(),i=this.getSkillingCategoryName();
7276let r=`${this.getSkillingCategoryName()} | `,m=this.generateRankName(this.currentRank,this.currentDivision,i),g=this.generateRankName(this.expectedRank,this.expectedDivision,i),d=`icons/val-ranks/${this.currentRank.toLowerCase()}.svg`,y="0";this.currentSectionOpened==="rankBoostingSection"&&(m=`${this.generateRankName(this.currentRank,this.currentDivision,i)} at ${this.splitAfterSpace(this.currentLpRange)}LP`,g=`${this.generateRankName(this.expectedRank,this.expectedDivision,i)}`),this.currentSectionOpened==="winBoostingSection"&&(m=`${this.generateRankName(this.currentRank,this.currentDivision,i)} at ${this.splitAfterSpace(this.currentLpRange)}LP`,y=`${this.winBoostingWins.selectedQuantity}`),this.currentSectionOpened==="placementMatchesBoostingSection"&&(m=`${this.generateRankName(this.currentRank,this.currentDivision,i)}`,y=`${this.placementMatchWins.selectedQuantity}`),this.currentSectionOpened==="unrankedBoostingSection"&&(m=`Level ${this.accountStartLevel.selectedQuantity}`,g=`Level ${this.accountEndLevel.selectedQuantity}`,d="icons/games/val-small.svg"),this.currentSectionOpened==="rankBoostingSection"||this.currentSectionOpened==="unrankedBoostingSection"?r+=`From ${m} to ${g} | (${this.currentServer})`:r+=`${y} Win on ${m} | (${this.currentServer})`;const C={name:r,serviceFullName:r,productId:t,quantity:1,leagueEstimates:this.data,price:this.price,updatedDate:this.updatedDate,isService:!0,gameId:this.game.id,parentGameId:this.game.parentGameId,gameShortName:this.game.shortName,imagePath:d,productCategoryId:this.productCategory.id,productCategoryName:this.productCategory.name};await this.sessionService.storeCartItem(C),this.addedToCart=!0,this.toastService.showToast(K.Ck.SUCCESS,"Added Skilling Service(s) to Cart.")}}validationBasedOnBoostingSection(c){switch(this.currentSectionOpened){case"rankBoostingSection":return this.currentRank!==this.ranks[0]&&!this.data.expectedRankName.includes("undefined")&&this.data.currentRankName!==this.data.expectedRankName?!0:(c&&this.toastService.showToast(K.Ck.ERROR,"Please select a starting rank."),!1);case"winBoostingSection":case"placementMatchesBoostingSection":return this.currentRank!==this.ranks[0]?!0:(c&&this.toastService.showToast(K.Ck.ERROR,"Please select a starting rank."),!1);case"unrankedBoostingSection":return parseInt(this.accountStartLevel.selectedQuantity)<parseInt(this.accountEndLevel.selectedQuantity)?!0:(c&&this.toastService.showToast(K.Ck.ERROR,"The starting level must be lower than ending level"),!1);default:return!1}}splitAfterSpace(c){return c.split("-")[0]}generateRankName(c,o,t){return c?.includes("Master")||c?.includes("GrandMaster")||c?.includes("Radiant")||t.includes("Placement Matches")?c:`${c} ${o}`}getProductIdBaseOnSelection(){return this.boostingProducts.find(c=>c.name===this.getSkillingCategoryName())?.id}getSkillingCategoryName(){let c="";switch(this.currentSectionOpened){case"rankBoostingSection":c="Valorant Rank Boosting";break;case"winBoostingSection":c="Valorant Win Boosting";break;case"placementMatchesBoostingSection":c="Valorant Placement Matches";break;case"unrankedBoostingSection":return"Valorant Unranked Matches";default:c="";break}return`${c} - ${this.queueSelected}`}hideAllBeforeElement(c,o,t){for(const r of c)r.display=!0;const i=c.findIndex(r=>r.name===o)-t;for(let r=i;r>=0;r--)c[r].display=!1;return c}checkSameRankOrLower(){return this.ranks.findIndex(c=>c===this.currentRank)>=this.ranks.findIndex(c=>c===this.expectedRank)}checkSameDivisionOrLower(){return this.divisions.findIndex(c=>c===this.currentDivision)>=this.divisions.findIndex(c=>c===this.expectedDivision)}getNextInList(c,o){return c[c.findIndex(t=>t.name===o)+1].name}getBoostingLevelBasedOnNameAndSection(c,o){const t=[{value:1,name:"Iron I"},{value:2,name:"Iron II"},{value:3,name:"Iron III"},{value:4,name:"Bronze I"},{value:5,name:"Bronze II"},{value:6,name:"Bronze III"},{value:7,name:"Silver I"},{value:8,name:"Silver II"},{value:9,name:"Silver III"},{value:10,name:"Gold I"},{value:11,name:"Gold II"},{value:12,name:"Gold III"},{value:13,name:"Platinum I"},{value:14,name:"Platinum II"},{value:15,name:"Platinum III"},{value:16,name:"Diamond I"},{value:17,name:"Diamond II"},{value:18,name:"Diamond III"},{value:19,name:"Ascendant I"},{value:20,name:"Ascendant II"},{value:21,name:"Ascendant III"},{value:22,name:"Immortal I"},{value:23,name:"Immortal II"},{value:24,name:"Immortal III"},{value:25,name:"Radiant"}],i=[{value:1,name:"Iron"},{value:2,name:"Bronze"},{value:3,name:"Silver"},{value:4,name:"Gold"},{value:5,name:"Platinum"},{value:6,name:"Diamond"},{value:7,name:"Ascendant"},{value:8,name:"Immortal"},{value:9,name:"Radiant"}],r=[{value:1,name:"1"},{value:2,name:"2"},{value:3,name:"3"},{value:4,name:"4"},{value:5,name:"5"},{value:6,name:"6"},{value:7,name:"7"},{value:8,name:"8"},{value:9,name:"9"},{value:10,name:"10"},{value:11,name:"11"},{value:12,name:"12"},{value:13,name:"13"},{value:14,name:"14"},{value:15,name:"15"},{value:16,name:"16"},{value:17,name:"17"},{value:18,name:"18"},{value:19,name:"19"},{value:20,name:"20"}];if(c&&o)return o.includes("Rank")||o.includes("Win")?t.find(m=>m.name===c)?.value:o.includes("Placement")?i.find(m=>m.name===c)?.value:r.find(m=>m.name===c)?.value}openLivechat(){window.Intercom&&window.Intercom("show")}},T=h(_.prototype,"currentGame",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=h(_.prototype,"search",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=h(_.prototype,"currentRank",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"Choose One"}}),G=h(_.prototype,"expectedRank",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"Choose One"}}),F=h(_.prototype,"currentDivision",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"I"}}),Y=h(_.prototype,"expectedDivision",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"I"}}),Z=h(_.prototype,"queueSelected",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"Solo"}}
7276),_e=h(_.prototype,"currentLpRange",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"0-20"}}),U=h(_.prototype,"placementMatchWins",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{minimum:1,maximum:10,selectedQuantity:1}}}),M=h(_.prototype,"winBoostingWins",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{minimum:1,maximum:20,selectedQuantity:1}}}),p=h(_.prototype,"accountStartLevel",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{minimum:1,maximum:998,selectedQuantity:1}}}),w=h(_.prototype,"accountEndLevel",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{minimum:1,maximum:999,selectedQuantity:1}}}),_))||B)||B)}),"pages/services/wow-powerleveling/wow-powerleveling":(function(W,f,e){"use strict";e.r(f),e.d(f,{WoWPowerleveling:function(){return Z}});var s=e("aurelia-framework"),q=e(10220),be=e(66666),ye=e(17349),X=e(12922),ae=e(39146),j=e(31018),ge=e(72148),le=e(6993),pe=e(41455),de=e("aurelia-event-aggregator"),ce=e(45246),J=e(74737),K=e(17285),H=e(30953),k=e(38489),ee=e(19806),fe=e(28674),z=e(9688),ne,B,_,T,L,O;function G(_e,U,M,p){M&&Object.defineProperty(_e,U,{enumerable:M.enumerable,configurable:M.configurable,writable:M.writable,value:M.initializer?M.initializer.call(p):void 0})}function F(_e,U,M,p,w){var u={};return Object.keys(p).forEach(function(h){u[h]=p[h]}),u.enumerable=!!u.enumerable,u.configurable=!!u.configurable,("value"in u||u.initializer)&&(u.writable=!0),u=
7276M.slice().reverse().reduce(function(h,v){return v(_e,U,h)||h},u),w&&u.initializer!==void 0&&(u.value=u.initializer?u.initializer.call(w):void 0,u.initializer=void 0),u.initializer===void 0?(Object.defineProperty(_e,U,u),null):u}function Y(_e,U){throw Error("Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.")}let Z=(ne=(0,k.connectTo)({selector:{featureFlags:_e=>_e.state.pipe((0,fe.T)(U=>U.flags),(0,ee.F)())}}),B=(0,s.inject)(s.BindingEngine,q.Ix,be.w,ge.h,le.l,ye.b,X.X,ae.F,j.Q,pe.j,de.EventAggregator,ce.H,J.f,s.TaskQueue),ne(_=B(_=(T=class{constructor(U,M,p,w,u,h,v,n,a,c,o,t,i,r){this.keyName=void 0,this.loading=!0,this.pageLoading=!0,this.games=void 0,this.currentGame=void 0,this.addedToCart=!1,this.skill=void 0,this.skills=void 0,this.totalPrice=0,this.totalGold=0,this.totalLevelCurrent=0,this.totalLevelExpected=0,this.skillsBeingLeveled=new Map,this.gameModes=void 0,this.difficulties=void 0,this.classes=[{id:0,name:"Choose One"}],this.estimatedTime=[{id:0,name:"Choose One"}],this.regions=["Choose One","US","EU","OCE"],this.factions=["Choose One","Horde","Alliance"],this.currentRegion="Choose One",this.currentFaction="Choose One",G(this,"currentClass",L,this),G(this,"currentEstimate",O,this),this.tooltip=`Express: We will deliver it 25% faster than normal. 7277 High Priority: We will deliver it 50% faster than normal.`,this.dataLoadingPromise=null,this.handleCheckoutButton=async()=>{if(!await this.sessionService.getProfile()){this.router.navigate(`/sign-in?redirect_url=${location.pathname}`);return}let m="/cart";const d=(await this.sessionService.getCart())?.find(y=>y.isSell);d&&this.featureFlags.get(z.$v.ORDER_CHAT_CART_FEATURE)&&(m=`/customer-portal/swap/chat/${d.orderId}`),this.router.navigate(m)},this.sessionService=a,this.toastService=i,this.router=M,this.helper=t,this.bindingEngine=U,this.gameService=p,this.gameModeService=w,this.difficultyService=u,this.productService=h,this.servicePricingService=v,this.productCategoryService=n,this.websiteService=c,this.eventAggregator=o,this.taskQueue=r,this.helper.getResolutions(this)}async activate(U,M){this.helper.addLoadingComponent("powerleveling");const p=globalThis.location.pathname.split("/").filter(Boolean);this.routeSlug=p.slice(-2).join("/"),this.dataLoadingPromise=new Promise(w=>{this.taskQueue.queueMicroTask(async()=>{try{const[u,h,v,n]=await Promise.all([this.gameModeService.getAll(),this.difficultyService.getAll(),this.productCategoryService.getAll(),this.productCategoryService.getNavCategory("services","CG")]);this.gameModes=u,this.difficulties=h,this.productCategories=v,this.games=n.gameForNav.filter(a=>a.shortName.includes("WOWTLKPW")),this.currentGame=this.games.find(a=>a.shortName==="WOWTLKPW"),this.productCategory=this.productCategories.find(a=>a.name==="Services"),this.wowpwProductCategory=this.productCategories.find(a=>a.name==="WOWTLKPW Power Leveling"),this.classes=this.classes.concat(this.difficulties.filter(a=>a.productCategoryId===this.wowpwProductCategory.id)),this.estimatedTime=this.estimatedTime.concat(this.gameModes.filter(a=>a.gameId===this.currentGame?.parentGameId)),w()}catch(u){throw console.error("Error loading initial data:",u),this.toastService.showToast(K.Ck.ERROR,"Failed to load game data. Please try again."),u}})}),this.pageContentAreaSubscriber=this.eventAggregator.subscribe("page-content-area",w=>{const u=w.pageContentArea;u&&(this.dynamicDisclaimer=u.find(h=>h.key===`${M.settings.keyName}_DISCLAIMER`))})}async attached(){try{await this.dataLoadingPromise;const[U,M]=await Promise.all([this.productService.getProductsWithFilter("inStockWOWTLKPW"),this.websiteService.getRouteOrDefault("Services")]);this.width=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,this.skillsProducts=U,this.servicesPageRoute=M;const p=this.router.currentInstruction.config.route;if(!p.includes("childRoute")&&this.currentGame&&this.currentGame?.slug?.[0]!==p){const w=`/${this.servicesPageRoute}/${this.currentGame.slug[0]}`;this.helper.addPrerenderMetaTagForRedirect(w),this.router.navigate(w)}await this.reloadSkills(),this.keyName=this.router.currentInstruction.config.settings.keyName,this.handleEventSubscriptions(),setTimeout(()=>{this.helper.addFilterArrow(document.getElementById("wow-powerleveling"))},100)}catch(U){console.error("Error in attached:",U),this.toastService.showToast(K.Ck.ERROR,"Failed to initialize component.")}finally{this.loading=!1,this.helper.validateLoading("powerleveling")}}detached(){this.currentGame?.slug[0]===this.routeSlug&&this.helper.removePrerenderMetaTagForRedirect(),this.adminViewSubscription?.dispose(),this.pageContentAreaSubscriber?.dispose(),this.sizeChanged?.dispose()}handleEventSubscriptions(){this.adminViewSubscription=this.eventAggregator.subscribe("admin-view-updated",U=>{this.viewingAsAdmin=U.bool}),this.sizeChanged=this.eventAggregator.subscribe("size-changed",U=>{this.width=U.width}),this.pageLoadedSubscriber=this.eventAggregator.subscribe("page-loaded",()=>{this.pageLoading=!1})}async reloadSkills(){try{if(this.helper.addLoadingComponent("powerleveling-skills"),this.skills=await this.productService.getAllUniqueSkillsForGame(this.currentGame?.shortName,-1),this.skills.length===0){this.toastService.showToast(K.Ck.INFO,"No powerleveling prices were found");return}this.skill=this.skills.find(U=>U.skillName==="WOWTLK Power Leveling"),this.skill&&(this.skill.startLevel=1,this.skill.endLevel=1,this.skill.price=0,this.skill.show=!0,this.skill.minimum=1,this.skill.maximum=80),this.bindSkillsProperty()}catch(U){console.error("Error reloading skills:",U),this.toastService.showToast(K.Ck.ERROR,"Failed to load powerleveling skills.")}finally{this.helper.validateLoading("powerleveling-skills")}}
7277bindSkillsProperty(){this.skills.forEach(U=>{this.bindingEngine.propertyObserver(U,"startLevel").subscribe(()=>this.skillChanged(U,"startLevel")),this.bindingEngine.propertyObserver(U,"endLevel").subscribe(()=>this.skillChanged(U,"endLevel"))})}currentClassChanged(){this.filterChanged()}currentEstimateChanged(){this.filterChanged()}filterChanged(){this.skills.forEach(U=>{this.skillChanged(U)})}async skillChanged(U){const M=Number(U.startLevel),p=Number(U.endLevel);this.gameModeId=this.gameModes.find(u=>u.name===this.currentEstimate)?.id,this.difficultyId=this.difficulties.find(u=>u.name===this.currentClass)?.id;let w=null;M<p?(this.gameModeId>0&&this.difficultyId>0&&(w=await this.servicePricingService.getEstimates("WOWTLKPW",U.skillName,M,p,this.currentGame?.id,this.gameModeId,this.difficultyId),U.price=this.priceModification?w?.price+w?.price*(this.priceModification.percentage/100):w?.price,U.gameModeId=this.gameModeId,U.difficultyId=this.difficultyId,U.updatedDate=w.updatedDate),this.skillsBeingLeveled.set(U.skillName,{skillName:U.skillName,startLevel:M,endLevel:p,price:w?.price,gameId:this.currentGame?.id,gameModeId:this.gameModeId,difficultyId:this.difficultyId,updatedDate:U.updatedDate,imagePath:U.imagePath})):(U.price=0,this.skillsBeingLeveled.delete(U.skillName)),this.calculateTotals()}calculateTotals(){this.totalPrice=0,this.totalGold=0,this.totalLevelCurrent=0,this.totalLevelExpected=0,this.totalPrice+=this.skill.price,this.totalLevelCurrent+=this.skill.startLevel?parseInt(this.skill.startLevel,10):0,this.totalLevelExpected+=this.skill.endLevel?parseInt(this.skill.endLevel,10):0,this.auxSkills=this.skills}skillsAreValid(){let U=!0;return this.skills.forEach(({startLevel:M,endLevel:p})=>{M=parseInt(M),p=parseInt(p),(M<1||M>p||p<M||p>80)&&(U=!1)}),U}regionAndFactionAreValid(){return this.currentRegion!=="Choose One"&&this.currentFaction!=="Choose One"}classAndEstimatedTimeAreValid(){return this.currentClass!=="Choose One"&&this.currentEstimate!=="Choose One"}priceIsValid(){return this.skill.price>0}async addToCart(){if(!this.skillsAreValid()){this.toastService.showToast(K.Ck.INFO,"It seems that the level you want leveled are entered incorrectly. Please fix and retry.");return}if(this.skillsBeingLeveled.size<1){this.toastService.showToast(K.Ck.INFO,"No level were selected.");return}if(!this.regionAndFactionAreValid()){this.toastService.showToast(K.Ck.INFO,"It seems that the region/faction you want are entered incorrectly. Please fix and retry.");return}if(!this.classAndEstimatedTimeAreValid()){this.toastService.showToast(K.Ck.INFO,"It seems that the class/estimated time you want are entered incorrectly. Please fix and retry.");return}if(!this.priceIsValid()){this.toastService.showToast(K.Ck.INFO,"Adjust the filter to have a valid combination.");return}if(this.cart||(this.cart=await this.sessionService.getCart()),this.cart?.length>=1&&this.cart.find(U=>U?.sellerId!=null))return this.toastService.showToast(K.Ck.ERROR,"You can only purchase products from one marketplace seller at a time.");try{const U=`${this.skill.skillName} | ${this.currentRegion} | ${this.currentFaction} | [${this.skill.startLevel} - ${this.skill.endLevel}]`,M=this.skillsProducts.find(w=>w.seller===null&&w.sellerId===null),p={name:U,serviceFullName:U,character:this.accountName,updatedDate:this.skill.updatedDate,skills:[this.skill],quantity:1,price:this.skill.price,isService:!0,gameId:this.currentGame.id,parentGameId:this.currentGame.parentGameId,productId:M.id,gameShortName:this.currentGame.shortName,gameModeId:this.gameModeId,difficultyId:this.difficultyId,productCategoryId:this.productCategory.id,productCategoryName:this.productCategory.name,imagePath:this.skill.imagePath};await this.sessionService.storeCartItem(p),this.addedToCart=!0,this.toastService.showToast(K.Ck.SUCCESS,"Added Skilling Service(s) to Cart.")}catch(U){console.log(U),this.toastService.showToast(K.Ck.ERROR,"Something went wrong! Please contact the Livechat.")}}},L=F(T.prototype,"currentClass",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"Choose One"}}),O=F(T.prototype,"currentEstimate",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"Choose One"}}),T))||_)||_)}),"pages/site-down/site-down":(function(W,f,e){"use strict";e.r(f),e.d(f,{SiteDown:function(){return pe}});var s=e("aurelia-framework"),q=e(41455),be,ye,X,ae;function j(de,ce,J,K){J&&Object.defineProperty(de,ce,{enumerable:J.enumerable,configurable:J.configurable,writable:J.writable,value:J.initializer?J.initializer.call(K):void 0})}function ge(de,ce,J,K,H){var k={};
7277return Object.keys(K).forEach(function(ee){k[ee]=K[ee]}),k.enumerable=!!k.enumerable,k.configurable=!!k.configurable,("value"in k||k.initializer)&&(k.writable=!0),k=J.slice().reverse().reduce(function(ee,fe){return fe(de,ce,ee)||ee},k),H&&k.initializer!==void 0&&(k.value=k.initializer?k.initializer.call(H):void 0,k.initializer=void 0),k.initializer===void 0?(Object.defineProperty(de,ce,k),null):k}function le(de,ce){throw Error("Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.")}let pe=(be=(0,s.inject)(q.j),be(ye=(X=class{constructor(ce){j(this,"redirectTo",ae,this),this.websiteService=ce}activate(){const J=new URLSearchParams(window.location.search).get("redirectTo");if(J)try{const K=new URL(decodeURIComponent(J),window.location.origin);if(K.origin!==window.location.origin)return;const H="/"+K.pathname.replace(/^\/+/,"");this.redirectTo=H+K.search+K.hash}catch{}}},ae=ge(X.prototype,"redirectTo",[s.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"/"}}),X))||ye)}),"pages/sitemap/sitemap":(function(W,f,e){"use strict";e.r(f),e.d(f,{Sitemap:function(){return ne}});var s=e(10220),q=e("aurelia-framework"),be=e(39146),ye=e(41455),X=e(45246),ae=e(66666),j=e(31018),ge=e("aurelia-event-aggregator"),le=e(58846),pe=e(46018),de=e(91861),ce,J,K,H,k;function ee(B,_,T,L){T&&Object.defineProperty(B,_,{enumerable:T.enumerable,configurable:T.configurable,writable:T.writable,value:T.initializer?T.initializer.call(L):void 0})}function fe(B,_,T,L,O){var G={};return Object.keys(L).forEach(function(F){G[F]=L[F]}),G.enumerable=!!G.enumerable,G.configurable=!!G.configurable,("value"in G||G.initializer)&&(G.writable=!0),G=T.slice().reverse().reduce(function(F,Y){return Y(B,_,F)||F},G),O&&G.initializer!==void 0&&(G.value=G.initializer?G.initializer.call(O):void 0,G.initializer=void 0),G.initializer===void 0?(Object.defineProperty(B,_,G),null):G}function z(B,_){throw Error("Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.")}let ne=(ce=(0,q.inject)(s.Ix,be.F,ye.j,X.H,ae.w,ge.EventAggregator,pe.V,de.LanguageRouteValueConverter,q.TaskQueue,j.Q),J=(0,q.computedFrom)("noResults"),ce(K=(H=class{constructor(_,T,L,O,G,F,Y,Z,_e,U){this.pages=[],this.blogPageRoute=void 0,this.cgResponsiveFilterLayoutRef=void 0,this.baseUrl=(0,le.pc)(),this.selectedCategory="",ee(this,"search",k,this),this.staticCategories=["Currency","Items","Accounts","Swap","Skins","Unique Names","Gift Cards"],this.moreStaticCategories=["Swap","Skins","Gift Cards","Unique Names"],this.excludeCategories=["Sell","Services","Swap"],this.maxAmount=6,this.noResults=!1,this.pageLoading=!0,this.drawerSearchChangeSubscriber=void 0,this.searchChangedInProgress=!1,this.compareToSearch=M=>M.some(p=>p?.toLowerCase()?.includes(this.search?.toLowerCase())),this.getRoute=(M,p=-1)=>this.pageRoutes[M]?.routeName??(p!==-1?p:this.helper.toRoute(M)),this.categorySelected=(M,p,w=!1)=>{if(this.selectedCategory=structuredClone(this.pages).find(h=>h.name?.toLowerCase()===M?.replaceAll("-"," ").toLowerCase()),this.selectedPage=this.helper.toCapitalize(p?.replaceAll("-"," ")),!this.selectedCategory)return!1;this.search&&this.compareToFilter(this.selectedCategory);const u=this.selectedPage?this.selectedCategory.pages?.find(h=>h.name===this.selectedPage):null;return this.selectedCategory.pages=this.helper.separateByChunks(this.checkIfCategoryIsSelected(this.selectedCategory.name)?this.selectedPage?u?.pages:this.selectedCategory.pages:this.selectedCategory.pages,this.maxAmount),w||this.setBreadCrumb(),!this.selectedPage||!!u},this.clearSearch=()=>{this.search=null,this.noResults=!1;const p=window.location?.pathname?.split("/");this.checkCategoryByRoute(p),this.getPages()},this.checkIfCategoryIsSelected=M=>this.selectedCategory.name===M,this.checkCategoryByRoute=M=>{M=this.removeLanguageFromPathname(M.join("/"));const p=M.length>2,w=p?M[2]:M.pop();let u;if(p&&M.length>3&&(u=this.helper.toCapitalize(M.pop(),"first")),!w)return;let h=p?w:this.router.routes.find(a=>a.route===w)?.name;h=this.helper.toCapitalize(h,"first");const v=this.categorySelected(h,u);!(!p&&w===this.siteMapPageRoute)&&!v&&this.router.navigateToRoute("404")},this.buildExtraPages=(M,p)=>{const w=[];for(const u of M){const h=this.helper.includesSome(u,["Items","Accounts"])?u.slice(0,-1):u,v=p==="sell"?`${this.helper.toCapitalize(p)} ${h}`:u;if(!this.productCategories.find(a=>a.name===v))continue;const n={name:u,slug:`/${this.siteMapPageRoute}/${p}/${u.toLowerCase().replaceAll(" ","-")}`,pages:this.clonedProductCategories.find(a=>a.name===v)?.gameForNav};w.push(n)}return w},this.replaceGameSlugs=(M,p)=>{for(let w=0;w<M.slug.length;w++){const h=M.slug[w].split("/");M.slug[w]=`currency/${h[h.length-1]}`}if(!M.items)return M;for(const w of M.items)for(let u=0;u<w.slug.length;u++){const v=w.slug[u].split("/");w.slug[u]=`currency/${v[v.length-1]}`}return M},this.buildSwapPages=async()=>{const M=await this.websiteService.getRouteOrDefault("Swap"),p=this.productCategories?.filter(u=>u.name.toLowerCase().includes("sell")&&!u.name.toLowerCase().includes("account")&&!u.name.toLowerCase().includes("gift card")&&!u.name.toLowerCase().includes("service"))??[],w=[];for(const u of p){const v=(await Promise.all(u.gameForNav.filter(n=>!n.parentGameId).map(n=>this.getGame(u,n)))).filter(n=>!w.find(a=>a.name===n.name));for(let n=0;n<v.length;n++)v[n]=this.replaceGameSlugs(v[n],M);w.push(...v)}return w.sort((u,h)=>u.name.localeCompare(h.name)),w},this.includesExtraPages=M=>this.helper.includesSome(M,["Sell","More"]),this.handleExtraPageRoute=(M,p)=>`${this.siteMapPageRoute}/${M.toLowerCase()}/${p.toLowerCase().replaceAll(" ","-")}`,this.backButtonFunction=()=>this.selectedCategory=null,this.removeLanguageFromPathname=M=>{const p=this.languageWebsiteService.languages?.map(u=>u.language.hrefLang)??[];return M.split("/").filter(u=>!p.includes(u))},this.router=_,this.productCategoryService=T,this.websiteService=L,this.helper=O,this.gameService=G,this.eventAggregator=F,this.languageWebsiteService=Y,this.languageRouteValueConverter=Z,this.taskQueue=_e,this.sessionService=U,this.helper.getResolutions(this)}async activate(){this.helper.addLoadingComponent("sitemap",this);try{const T=this.removeLanguageFromPathname(window.location?.pathname).join("/")?.split("/"),[L,O,G,F]=await Promise.all([this.websiteService.getPagesDictionary(),this.productCategoryService.getAllForNav("CG"),this.productCategoryService.getAll(),this.productCategoryService.getNavCategory("sellextra","CG")]);this.pageRoutes=L,this.productCategories=O,this.unfilteredCategories=G,this.navCategory=F,this.checkCategories=this.unfilteredCategories.filter(Z=>Z.id!==5),this.siteMapPageRoute=this.getRoute("sitemap"),this.sellPageRoute=this.getRoute("Sell");const Y=await this.buildSwapPages();this.productCategories.find(Z=>Z.name==="Swap").gameForNav=Y,this.clonedProductCategories=structuredClone(this.productCategories),this.pages=[],await this.buildPageSections(),this.setupSearchAndFiltering(),this.checkCategoryByRoute(T)}catch(_){console.error("Error loading sitemap data:",_)}finally{this.helper.validateLoading("sitemap")}}async buildPageSections(){const _={name:"Chicks Gold",pages:[{name:"About Us",slug:this.getRoute("About Us")},{name:"Blog",slug:this.sessionService.currentUser?this.helper.environmentFooterBlog+"?autologin=true":this.helper.environmentFooterBlog},{name:"Bug Bounty",slug:this.getRoute("Bug Bounty")},{name:"Coupons",slug:this.getRoute("Coupons")},{name:"CSR",slug:`${(0,le.tI)()}category/csr`}]};this.pages.push(_);const T={name:"Support",pages:[{name:"Contact Us",slug:this.getRoute("Contact Us","contact")},{name:"FAQ",slug:this.getRoute("Faq")}]};this.pages.push(T);const L={name:"Legal",pages:[{name:"Terms of Service",slug:this.getRoute("Terms Of Service")},{name:"Privacy Policy",slug:this.getRoute("Privacy Policy")},{name:"Cookies Policy",slug:this.getRoute("Cookies Policy")},{name:"Editorial Policy",slug:this.getRoute("Editorial Policy")},{name:"Complaints Policy",slug:this.getRoute("Complaints Policy")},{name:"Disclaimer",slug:this.getRoute("Disclaimer")}
7277,{name:"Accessibility",slug:this.getRoute("Accessibility")},{name:"Copyright Policy",slug:this.getRoute("Copyright Policy")},{name:"Glossary",slug:(0,le.Pm)()}]};this.pages.push(L),await this.buildProductCategoryPages();const O={name:"More",pages:this.buildExtraPages(this.moreStaticCategories,"more")};this.pages.push(O);const G={name:"Sell",pages:this.buildExtraPages(this.staticCategories,"sell")};this.pages.push(G)}async buildProductCategoryPages(){for(const _ of this.productCategories){const T={name:_.name,pages:[]};if(this.helper.excludeAll(_.name,["Swap","Skins","Unique Names","Gift Cards","Sell","Custom Order"])){for(const L of _.gameForNav){const O="buy/"+await this.websiteService.getRouteOrDefault(_.name,_.name.toLowerCase())+"/"+L.slug[0],G={name:L.name,shortName:L.shortName,keyword:L.keyword,slug:O};_.name.includes("Services")&&(L.parentGameId>0||L.dynamicService)&&T.pages.push(G),_.name.includes("Services")||T.pages.push(G)}this.pages.push(T)}}this.clonedProductCategories.forEach(_=>{if(!_.name.includes("Sell")&&this.helper.excludeAll(_.name,this.moreStaticCategories))return;let T=_?.name;this.helper.excludeAll(_.name.toLowerCase(),["sell currency","sell skins","sell unique names","sell gift cards"])&&(T+="s"),T=T.toLowerCase().split(" ").slice(1).join("-");const L=this.sellPageRoute&&_.name.includes("Sell")?`${this.sellPageRoute}/${T}`:this.getRoute(_.name);_.gameForNav.forEach(O=>O.slug=O.slug[0].startsWith((this.helper.excludeAll(_.name,this.excludeCategories)?"/buy/":"/")+`${L}/`)?O.slug[0]:(this.helper.excludeAll(_.name,this.excludeCategories)?"/buy/":"/")+`${L}/${O.slug[0]}`)})}setupSearchAndFiltering(){this.filteredPages=structuredClone(this.pages),this.filteredPages.forEac
7277h(_=>{_.pages.forEach(T=>T.categoryName=_.name),_.route=this.router.routes.find(T=>T.name===_.name?.toLowerCase())?.route}),this.originalSearchPages=this.filteredPages.map(_=>_.pages).flat(),this.navCategory?.gameForNav&&(this.originalSearchPages=[...this.originalSearchPages,...this.navCategory.gameForNav]),this.originalSearchPages.forEach(_=>{_.productCategoryName&&(_.categoryName=`Sell ${this.helper.toCapitalize(_.productCategoryName)}`)}),this.searchPages=this.originalSearchPages.map(_=>Object.assign({},_))}attached(){try{this.width=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,this.handleEventSubscriptions(),this.firstTimeTriggered=!0}finally{this.helper.validateLoading("sitemap")}}detached(){this.sizeChanged?.dispose(),this.helper.resetLoading("sitemap"),this.routerSubscription?.dispose(),this.drawerSearchChangeSubscriber?.dispose()}handleEventSubscriptions(){this.sizeChanged=this.eventAggregator.subscribe("size-changed",_=>{this.width=_.width}),this.routerSubscription=this.eventAggregator.subscribe("router:navigation:success",_=>{this.router?.currentInstruction?.fragment==="/sitemap"&&this.cgResponsiveFilterLayoutRef.clearSearchTextValue();const L=_.instruction?.fragment?.split("/");this.checkCategoryByRoute(L),this.clearSearch()}),this.pageLoaded=this.eventAggregator.subscribe("page-loaded",()=>{this.pageLoading=!1}),this.drawerSearchChangeSubscriber=this.eventAggregator.subscribe("drawer-search-change",_=>{this.handleSearchChange(_)})}async searchValue(){this.getPages(),this.filteredPages=this.filteredPages.map(T=>this.compareToFilter(T));const _=this.selectedCategory?this.selectedCategory?.pages?.length===0:this.filteredPages.every(T=>T.pages.length===0);this.noResults=this.search.length&&_}handleSearchChange(_){if(this.search=typeof _=="string"?_:_?.target?.value,this.search?.length||this.clearSearch(),this.selectedCategory){const L=window.location?.pathname?.split("/");this.checkCategoryByRoute(L)}this.search?this.searchValue():this.getPages()}searchChanged(){this.width>=this.phone||this.searchChangedInProgress||(this.searchChangedInProgress=!0,this.handleSearchChange(this.search),this.searchPages=this.search?this.originalSearchPages.filter(_=>this.compareToSearch([_.name,_.shortName,_.keyword])):this.originalSearchPages,this.noResults=this.search&&this.searchPages.length===0,this.searchChangedInProgress=!1)}compareToFilter(_){const L=window.location?.pathname?.split("/");return this.compareToSearch([_.name])||(L.length>3?_.pages.forEach(O=>O.pages=O.pages?.filter(G=>this.compareToSearch([G.name,G.shortName,G.keyword]))):_.pages=_.pages.filter(O=>this.compareToSearch([O.name,O.shortName,O.keyword]))),_}getPages(){this.filteredPages=structuredClone(this.pages)}setBreadCrumb(){this.breadcrumbs=[{title:"Sitemap",name:this.siteMapPageRoute}],this.selectedCategory?.name&&this.breadcrumbs.push({title:this.selectedCategory.name,isHome:this.checkIfCategoryIsSelected(this.selectedCategory.name),alternativeRoute:this.checkIfCategoryIsSelected(this.selectedCategory.name)?`${this.siteMapPageRoute}/${this.selectedCategory.name?.toLowerCase()}`:void 0,isActive:this.includesExtraPages(this.selectedCategory.name)!==this.checkIfCategoryIsSelected(this.selectedCategory?.name)}),this.selectedPage&&this.breadcrumbs.push({title:this.helper.toCapitalize(this.selectedPage.replaceAll("-"," ")),isActive:!0}),this.eventAggregator.publish("breadcrumb-update",{breadcrumbs:this.breadcrumbs})}async getGame(_,T){let L=_.name.toLowerCase();if(L=await this.websiteService.getRouteOrDefault(L,L.replaceAll(" ","-")),_.name.toLowerCase().includes("sell ")){const F=await this.websiteService.getRouteOrDefault("sell");let Y=_.name;_.name.toLowerCase().includes("unique names")?L=F+"/"+await this.websiteService.getRouteOrDefault("Unique Names"):(this.helper.excludeAll(_.name.toLowerCase(),["sell currency","sell skins","sell unique names","sell gift cards"])&&(Y+="s"),L=F?`${F}/${this.helper.transformStaticPageRoute(Y.toLowerCase(),!0)}`:this.helper.transformStaticPageRoute(Y.toLowerCase()))}const O={category:_.name,name:T.name,shortName:T.shortName,keyword:T.keyword,slug:T.slug.map(F=>`/${L}/${F}`),link:!0,imagePath:T.gameNavigationIcon?this.baseAwsEndpoint+T.gameNavigationIcon:"",schemaImagePath:T.schemaImagePath?`${this.baseAwsEndpoint}${T.schemaImagePath}`:"",isTrending:T.isTrending,trendingPosition:T.trendingPosition,show:!0},G=_.gameForNav.filter(F=>F.parentGameId===parseInt(T.id));return O.template=null,O.items=G.length>
72770?await this.getSubGames(G,_):null,O}async getSubGames(_,T){let L=T.name.toLowerCase();if(L=await this.websiteService.getRouteOrDefault(L,L),T.name.toLowerCase().includes("sell ")){let O=T.name;this.helper.excludeAll(T.name.toLowerCase(),["sell currency","sell skins","sell unique names","sell gift cards"])&&(O+="s");const G=await this.websiteService.getRouteOrDefault("sell");L=G?`${G}/${this.helper.transformStaticPageRoute(O.toLowerCase(),!0)}`:this.helper.transformStaticPageRoute(O.toLowerCase())}return _.map(O=>({category:T.name,name:O.name,shortName:O.shortName,slug:O.slug.map(G=>`/${L}/${G}`),template:null,link:!0,imagePath:O.gameNavigationIcon?this.baseAwsEndpoint+O.gameNavigationIcon:"",schemaImagePath:O.schemaImagePath?`${this.baseAwsEndpoint}${O.schemaImagePath}`:"",isTrending:O.isTrending,trendingPosition:O.trendingPosition,show:!0}))}get getSitemapLayoutConfig(){return{filterType:null,baseResponsiveComponent:"button",baseDesktopComponent:"searchbar",onSearchChanged:_=>this.handleSearchChange(_),onClearSearch:()=>this.clearSearch(),onCloseDrawer:()=>this.clearSearch(),noResults:this.noResults}}},k=fe(H.prototype,"search",[q.bindable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),fe(H.prototype,"getSitemapLayoutConfig",[J],Object.getOwnPropertyDescriptor(H.prototype,"getSitemapLayoutConfig"),H.prototype),H))||K)}),"pages/terms-of-service/terms-of-service":(function(W,f,e){"use strict";e.r(f),e.d(f,{TermsOfService:function(){return s}});class s{constructor(){this.contentKeys=[{key:"TERMS_OF_SERVICE_HEADER_CONTENT",type:"content",additionalClass:"text-content header-content",content:""},{key:"TERMS_OF_SERVICE_SUMMARY_TITLE",type:"title",additionalClass:"font-bold text-title summary-title regular-header-section-margin regular-title",content:""},{key:"TERMS_OF_SERVICE_SUMMARY_CONTENT",type:"content",additionalClass:"text-content summary-content",content:""},{key:"TERMS_OF_SERVICE_COMPLETE_TERMS_TITLE",type:"title",additionalClass:"font-bold text-title terms-title big-header-section-margin regular-title",content:""}
7277,{key:"TERMS_OF_SERVICE_COMPLETE_DEFINITION_TITLE",type:"title",additionalClass:"font-bold text-title definition-title big-header-section-margin regular-title",content:""},{key:"TERMS_OF_SERVICE_COMPLETE_DEFINITION_CONTENT",type:"content",additionalClass:"text-content margened-paragraph definition-content",content:""},{key:"TERMS_OF_SERVICE_ACCONT_REGISTRATION_TITLE",type:"title",additionalClass:"font-bold text-title registration-title regular-header-section-margin regular-title",content:""},{key:"TERMS_OF_SERVICE_ACCONT_REGISTRATION_CONTENT",type:"content",additionalClass:"text-content registration-content",content:""},{key:"TERMS_OF_SERVICE_USE_SERVICE_TITLE",type:"title",additionalClass:"font-bold text-title service-title regular-header-section-margin regular-title",content:""},{key:"TERMS_OF_SERVICE_USE_SERVICE_CONTENT",type:"content",additionalClass:"text-content service-content",content:""},{key:"TERMS_OF_SERVICE_PAYMENT_FEES_TITLE",type:"title",additionalClass:"font-bold text-title fees-title regular-header-section-margin regular-title",content:""},{key:"TERMS_OF_SERVICE_PAYMENT_FEES_CONTENT",type:"content",additionalClass:"text-content margened-paragraph feed-content",content:""},{key:"TERMS_OF_SERVICE_TRANSACTIONS_BUYER_SELLER_TITLE",type:"title",additionalClass:"font-bold text-title seller-title regular-header-section-margin regular-title",content:""},{key:"TERMS_OF_SERVICE_TRANSACTIONS_BUYER_SELLER_CONTENT",type:"content",additionalClass:"text-content seller-content",content:""},{key:"TERMS_OF_SERVICE_DISPUTES_USERS_TITLE",type:"title",additionalClass:"font-bold text-title users-title regular-header-section-margin regular-title",content:""},{key:"TERMS_OF_SERVICE_DISPUTES_USERS_CONTENT",type:"content",additionalClass:"text-content users-content",content:""},{key:"TERMS_OF_SERVICE_REPRESENTATION_WARRANTY_TITLE",type:"title",additionalClass:"font-bold text-title re-warranty-title regular-header-section-margin regular-title",content:""},{key:"TERMS_OF_SERVICE_REPRESENTATION_WARRANTY_CONTENT",type:"content",additionalClass:"text-content margened-paragraph re-warranty-content",content:""},{key:"TERMS_OF_SERVICE_THIRD_PARTY_TITLE",type:"title",additionalClass:"font-bold text-title party-title regular-header-section-margin regular-title",content:""},{key:"TERMS_OF_SERVICE_THIRD_PARTY_CONTENT",type:"content",additionalClass:"text-content party-content",content:""},{key:"TERMS_OF_SERVICE_LICENSE_USE_TITLE",type:"title",additionalClass:"font-bold text-title use-title regular-header-section-margin regular-title",content:""},{key:"TERMS_OF_SERVICE_LICENSE_USE_CONTENT",type:"content",additionalClass:"text-content use-content",content:""},{key:"TERMS_OF_SERVICE_OWNERSHIP_INTELLECTUAL_TITLE",type:"title",additionalClass:"font-bold text-title intellectual-title regular-header-section-margin regular-title",content:""},{key:"TERMS_OF_SERVICE_OWNERSHIP_INTELLECTUAL_CONTENT",type:"content",additionalClass:"text-content margened-paragraph intellectual-content",content:""},{key:"TERMS_OF_SERVICE_RISK_DISCLOSURE_TITLE",type:"title",additionalClass:"font-bold text-title disclosure-title regular-header-section-margin regular-title",content:""},{key:"TERMS_OF_SERVICE_RISK_DISCLOSURE_CONTENT",type:"content",additionalClass:"text-content margened-paragraph disclosure-content",content:""},{key:"TERMS_OF_SERVICE_CONFIDENTIALITY_TITLE",type:"title",additionalClass:"font-bold text-title confidential-title regular-header-section-margin regular-title",content:""},{key:"TERMS_OF_SERVICE_CONFIDENTIALITY_CONTENT",type:"content",additionalClass:"text-content confidential-content",content:""},{key:"TERMS_OF_SERVICE_INDEMNIFICATION_TITLE",type:"title",additionalClass:"font-bold text-title indem-title regular-header-section-margin regular-title",content:""},{key:"TERMS_OF_SERVICE_INDEMNIFICATION_CONTENT",type:"content",additionalClass:"text-content indem-content",content:""},{key:"TERMS_OF_SERVICE_ELECTRONIC_COMMUNICATIONS_TITLE",type:"title",additionalClass:"font-bold text-title communications-title regular-header-section-margin regular-title",content:""},{key:"TERMS_OF_SERVICE_ELECTRONIC_COMMUNICATIONS_CONTENT",type:"content",additionalClass:"text-content communications-content",content:""},{key:"TERMS_OF_SERVICE_RELIANCE_INFORMATION_TITLE",type:"title",additionalClass:"font-bold text-title information-title regular-header-section-margin regular-title",content:""},{key:"TERMS_OF_SERVICE_RELIANCE_INFORMATION_CONTENT",type:"content",additionalClass:"text-content information-content",content:""},{key:"TERMS_OF_SERVICE_LIMITATION_LIABILITY_TITLE",type:"title",additionalClass:"font-bold text-title liability-title regular-header-section-margin regular-title",content:""},{key:"TERMS_OF_SERVICE_LIMITATION_LIABILITY_CONTENT",type:"content",additionalClass:"text-content margened-paragraph liability-content",content:""},{key:"TERMS_OF_SERVICE_DISCLAIMER_WARRANTY_TITLE",type:"title",additionalClass:"font-bold text-title dis-warranty-title regular-header-section-margin regular-title",content:""},{key:"TERMS_OF_SERVICE_DISCLAIMER_WARRANTY_CONTENT",type:"content",additionalClass:"text-content margened-paragraph dis-warranty-content",content:""},{key:"TERMS_OF_SERVICE_ENTIRE_AGREEMENT_TITLE",type:"title",additionalClass:"font-bold text-title agreement-title regular-header-section-margin regular-title",content:""},{key:"TERMS_OF_SERVICE_ENTIRE_AGREEMENT_CONTENT",type:"content",additionalClass:"text-content agreement-content",content:""},{key:"TERMS_OF_SERVICE_ASSIGNMENT_TITLE",type:"title",additionalClass:"font-bold text-title assignment-title regular-header-section-margin regular-title",content:""},{key:"TERMS_OF_SERVICE_ASSIGNMENT_CONTENT",type:"content",additionalClass:"text-content assignment-content",content:""},{key:"TERMS_OF_SERVICE_NON_WAIVER_TITLE",type:"title",additionalClass:"font-bold text-title waiver-title regular-header-section-margin regular-title",content:""},{key:"TERMS_OF_SERVICE_NON_WAIVER_CONTENT",type:"content",additionalClass:"text-content waiver-content",content:""},{key:"TERMS_OF_SERVICE_FORCE_MAJEURE_TITLE",type:"title",additionalClass:"font-bold text-title majeure-title regular-header-section-margin regular-title",content:""},{key:"TERMS_OF_SERVICE_FORCE_MAJEURE_CONTENT",type:"content",additionalClass:"text-content majeure-content",content:""},{key:"TERMS_OF_SERVICE_GOVERNING_LAW_TITLE",type:"title",additionalClass:"font-bold text-title law-title regular-header-section-margin regular-title",content:""},{key:"TERMS_OF_SERVICE_GOVERNING_LAW_CONTENT",type:"content",additionalClass:"text-content law-content",content:""},{key:"TERMS_OF_SERVICE_CONTACT_US_TITLE",type:"title",additionalClass:"font-bold text-title us-title regular-header-section-margin regular-title",content:""},{key:"TERMS_OF_SERVICE_CONTACT_US_CONTENT",type:"content",additionalClass:"text-content us-content",content:""}]}}}),"pages/withdraw-fees/withdraw-fees":(function(W,f,e){"use strict";e.r(f),e.d(f,{WithdrawFees:function(){return de}});var s=e("aurelia-framework"),q=e(62148),be=e(42371),ye=e(58846),X,ae;const j="content",ge="title",le="text-content",pe="font-bold text-title";let de=(X=(0,s.inject)(q.g,be.HP,s.TaskQueue),X(ae=class{constructor(J,K,H){this.PAGE_NAME="Withdraw Fees",this.PAGE_ROUTE="withdraw-fees",this.contentKeys=[{key:"WITHDRAW_FEES_INTRODUCTION_CONTENT",type:j,additionalClass:`${le} introduction-content`,content:""},{key:"WITHDRAW_FEES_HOW_TO_WITHDRAW_TITLE",type:ge,additionalClass:
7277pe,content:""},{key:"WITHDRAW_FEES_HOW_TO_WITHDRAW_CONTENT",type:j,additionalClass:le,content:""},{key:"WITHDRAW_FEES_AVAILABLE_PAYOUT_METHODS_TITLE",type:ge,additionalClass:pe,content:""},{key:"WITHDRAW_FEES_AVAILABLE_PAYOUT_METHODS_CONTENT",type:j,additionalClass:le,content:""},{key:"WITHDRAW_FEES_PROCESSING_TIMES_TITLE",type:ge,additionalClass:pe,content:""},{key:"WITHDRAW_FEES_PROCESSING_TIMES_CONTENT",type:j,additionalClass:le,content:""},{key:"WITHDRAW_FEES_WHAT_IF_FAILS_TITLE",type:ge,additionalClass:pe,content:""},{key:"WITHDRAW_FEES_WHAT_IF_FAILS_CONTENT",type:j,additionalClass:le,content:""},{key:"WITHDRAW_FEES_CONTACT_US_TITLE",type:ge,additionalClass:pe,content:""},{key:"WITHDRAW_FEES_CONTACT_US_CONTENT",type:j,additionalClass:le,content:""}],this.fiatMethods=[],this.cryptoMethods=[],this.paymentMethodWebsiteService=J,this.helper=K,this.taskQueue=H,this.baseAwsEndpoint=(0,ye.Ty)("payment-methods")}async created(){this.taskQueue.queueMicroTask(async()=>{try{await this.loadPaymentMethods()}catch(J){console.info("Error loading Withdraw Fees data:",J)}})}async loadPaymentMethods(){const K=(await this.paymentMethodWebsiteService.getAvailableForWithdrawal()).filter(H=>H.payoutable).map(H=>{const k=H.paymentMethod?.cryptoAbbreviation!==null&&H.paymentMethod?.cryptoAbbreviation!==void 0||this.helper.includesSome(H.paymentMethod?.reference,["coinpayments","btcpay","bitcart","crypto"]),ee=H.paymentMethod?.imagePath,fe=ee?`${this.baseAwsEndpoint}${ee}`:null;return{name:H.paymentMethod?.name,overrideIconColor:H.overrideIconColor,minimumWithdrawAmount:H.minimumWithdrawAmount??0,baseWithdrawFee:H.baseWithdrawFee??0,withdrawFee:H.withdrawFee??0,withdrawStepNotes:H.withdrawStepNotes??"",icon:fe,isCrypto:k}});this.fiatMethods=K.filter(H=>!H.isCrypto),this.cryptoMethods=K.filter(H=>H.isCrypto)}})||ae)})}]); 7278 7279//# sourceMappingURL=app~4bd97953.4999cbef4c48612ed22b.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.