1(function () { 2 'use strict'; 3 4 var base = '/user/documents/upload/'; 5 var body = document.body; 6 var path = location.pathname.toLowerCase(); 7 var files = []; 8 var isCart = body.classList.contains('in-kosik') || path === '/kosik/'; 9 var isGamePicker = body.classList.contains('id-793') || path === '/herni-pocitace-podle-her/'; 10 11 function add(file) { 12 if (files.indexOf(file) === -1) files.push(file); 13 } 14 15 function stylesheetLoaded(file) { 16 var href = base + file; 17 var links = document.querySelectorAll('link[rel="stylesheet"]'); 18 var i; 19 20 for (i = 0; i < links.length; i += 1) { 21 if ((links[i].getAttribute('href') || '').indexOf(href) !== -1) return true; 22 } 23 return false; 24 } 25 26 add('gamepc-popup-buttons-v1.css?v=1'); 27 add('gamepc-mobile-bottom-nav-v5.css?v=1'); 28 29 if (body.classList.contains('type-category')) add('gamepc-sidebar-premium-v5.css?v=5'); 30 if (body.classList.contains('type-search')) add('gamepc-search-result-images-v1.css?v=1'); 31 if (isGamePicker) add('gamepc-category-793-game-picker-v3.css?v=20260813-2'); 32 33 var isGamingPcCategory = body.classList.contains('type-category') && ( 34 body.classList.contains('id-711') || 35 path === '/herni-pocitace/' || 36 path.indexOf('/herni-pocitace-') === 0 || 37 path.indexOf('/herni-pc-') === 0 || 38 path.indexOf('/zakladni-herni-pc-') === 0 39 ); 40 41 if (isGamingPcCategory) add('gamepc-herni-pocitace-sorting-v2.css?v=1'); 42 43 if (body.classList.contains('type-product')) { 44 add('gamepc-product-variants-premium-v2_2.css?v=3'); 45 add('gamepc-product-description-layout-20260910-r1.css'); 46 add('gamepc-product-assistant-v1.css?v=1'); 47 add('gamepc-desktop-buy-tab-v1.css?v=1'); 48 } 49 50 if (body.classList.contains('in-o-nas') || path === '/o-nas/') add('gamepc-about-pastel-v4.css?v=4'); 51 52 if ( 53 body.classList.contains('in-krok-1') || body.classList.contains('in-krok-2') || 54 path.indexOf('/objednavka/krok-1') === 0 || path.indexOf('/objednavka/krok-2') === 0 55 ) { 56 add('gpc-checkout-always-visible-v1.css?v=3'); 57 add('gpc-checkout-centered-layout-v1.css?v=1'); 58 } 59 60 if (body.classList.contains('in-krok-1') || path.indexOf('/objednavka/krok-1') === 0) { 61 add('gamepc-checkout-fastpay-v10.css?v=1'); 62 add('gamepc-checkout-step2-mobile-fix-v1.css?v=1'); 63 } 64 65 if (body.classList.contains('in-krok-2') || path.indexOf('/objednavka/krok-2') === 0) { 66 add('gpc-checkout-final-compact-v2.css?v=1'); 67 } 68 69 if (isCart) { 70 add('gamepc-cart-conversion-v16.css?v=2'); 71 add('gamepc-cart-quantity-layout-fix-v1.css?v=1'); 72 add('gamepc-cart-mobile-priority-v1.css?v=1'); 73 } 74 75 if (body.classList.contains('id-404')) add('gamepc-404-modern-v2.css'); 76 if (path === '/apple/' || path.indexOf('/apple/') === 0) add('gpc-apple-mobile-readable-v1.css'); 77 78 /* Jediná sdÃlená cenová zóna pro nativnà produktové karty. */ 79 add('gamepc-product-card-price-align-v1.css?v=1'); 80 81 /* Globálnà obchodnà CTA je poslednà sdÃlená CSS vrstva. */ 82 add('gamepc-commerce-cta-v3.css?v=1'); 83 84 /* Ãzce scoped empty-cart vrstva musà být poslednà pouze na /kosik/. */ 85 if (isCart) add('gamepc-empty-cart-v1.css?v=1'); 86 87 // Last cart layer: retain the editable native input and a visible keyboard focus. 88 if (isCart) add('gamepc-cart-quantity-accessible-20260918.css?v=1'); 89 90 files.forEach(function (file) { 91 if (stylesheetLoaded(file)) return; 92 var link = document.createElement('link'); 93 link.rel = 'stylesheet'; 94 link.href = base + file; 95 document.head.appendChild(link); 96 }); 97 98 if (!document.querySelector('script[data-gpc-commerce-labels-v1]')) { 99 var commerceLabels = document.createElement('script'); 100 commerceLabels.src = base + 'gamepc-commerce-labels-v1.js?v=1'; 101 commerceLabels.defer = true; 102 commerceLabels.dataset.gpcCommerceLabelsV1 = '1'; 103 document.head.appendChild(commerceLabels); 104 } 105 106 if (!document.querySelector('script[data-gpc-mobile-bottom-nav-v5], script[src*="gamepc-mobile-bottom-nav-v5.js"]')) { 107 var mobileNav = document.createElement('script'); 108 mobileNav.src = base + 'gamepc-mobile-bottom-nav-v5.js?v=1'; 109 mobileNav.defer = true; 110 mobileNav.dataset.gpcMobileBottomNavV5 = '1'; 111 document.head.appendChild(mobileNav); 112 } 113 114 if ( 115 isGamePicker && 116 !document.querySelector('script[data-gpc-game-picker-v3], script[src*="gamepc-category-793-game-picker-v3.js"]') 117 ) { 118 var gamePicker = document.createElement('script'); 119 gamePicker.src = base + 'gamepc-category-793-game-picker-v3.js?v=20260813-2'; 120 gamePicker.defer = true; 121 gamePicker.dataset.gpcGamePickerV3 = '1'; 122 document.head.appendChild(gamePicker); 123 } 124 125 if ( 126 isCart && 127 !document.querySelector('script[data-gpc-empty-cart-v1], script[src*="gamepc-empty-cart-v1.js"]') 128 ) { 129 var emptyCart = document.createElement('script'); 130 emptyCart.src = base + 'gamepc-empty-cart-v1.js?v=1'; 131 emptyCart.defer = true; 132 emptyCart.dataset.gpcEmptyCartV1 = '1'; 133 document.head.appendChild(emptyCart); 134 } 135 136 if ( 137 (body.classList.contains('type-product') || body.classList.contains('type-detail')) && 138 !document.querySelector('script[data-gpc-desktop-buy-tab-v1]') 139 ) { 140 var desktopBuy = document.createElement('script'); 141 desktopBuy.src = base + 'gamepc-desktop-buy-tab-v1.js?v=1'; 142 desktopBuy.defer = true; 143 desktopBuy.dataset.gpcDesktopBuyTabV1 = '1'; 144 document.head.appendChild(desktopBuy); 145 } 146}());
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.