8101var dimmension;8102var storeProdDimensions;8103// TODO ST-2949_1: missing properties on Window/DOM/data objects (TS2339, TS2551)8104// @ts-expect-error ST-2949_18105if (edition.pack_x && edition.pack_y && edition.pack_z) {8106if (!defpackobj) {8107defpackobj = {8108pack_x: el_product.getAttribute('data-product-pack-x') || 0,8109pack_y: el_product.getAttribute('data-product-pack-y') || 0,8110pack_z: el_product.getAttribute('data-product-pack-z') || 0,8111// TODO ST-2949_1: missing properties on Window/DOM/data objects (TS2339, TS2551)
// @ts-expect-error ST-2949_1 pack_label: el_product.getAttribute('data-product-pack-label') || product.pack_label || 'lwh', pack_m: el_product.getAttribute('data-product-pack-m') || 0, }; // @ts-expect-error ST-2949_1 window.tStoreDefPackObj[product.uid] = defpackobj; } // @ts-expect-error ST-2949_1 el_product.setAttribute('data-product-pack-x', edition.pack_x); // @ts-expect-error ST-2949_1 el_product.setAttribute('data-product-pack-y', edition.pack_y); // @ts-expect-error ST-2949_1 el_product.setAttribute('data-product-pack-z', edition.pack_z); el_product.setAttribute('data-product-pack-label', defpackobj.pack_label); // @ts-expect-error ST-2949_1 dimmension = edition.pack_x + 'x' + edition.pack_y + 'x' + edition.pack_z; storeProdDimensions = el_product.querySelector('.js-catalog-prod-dimensions'); fullDimension = // TODO ST-2949_3: null / undefined (TS18047, TS18048, TS2531, TS2722, TS2454, TS2538) // @ts-expect-error ST-2949_3 window.tCatalogDict['product-' + defpackobj.pack_label] + ': ' + dimmension + ' ' + // TODO ST-2949_3: null / undefined (TS18047, TS18048, TS2531, TS2722, TS2454, TS2538) // @ts-expect-error ST-2949_3 window.tCatalogDict['mm']; if (storeProdDimensions) { // @ts-expect-error ST-2949_3 el_product.querySelector('.js-catalog-prod-dimensions').innerHTML = fullDimension; } } else if (defpackobj && defpackobj.pack_x) { el_product.setAttribute('data-product-pack-x', defpackobj.pack_x); el_product.setAttribute('data-product-pack-y', defpackobj.pack_y); el_product.setAttribute('data-product-pack-z', defpackobj.pack_z); el_product.setAttribute('data-product-pack-label', defpackobj.pack_label); dimmension = defpackobj.pack_x + 'x' + defpackobj.pack_y + 'x' + defpackobj.pack_z; fullDimension = // TODO ST-2949_3: null / undefined (TS18047, TS18048, TS2531, TS2722, TS2454, TS2538) // @ts-expect-error ST-2949_3 window.tCatalogDict['product-' + defpackobj.pack_label] + ': ' + dimmension + ' ' + // TODO ST-2949_3: null / undefined (TS18047, TS18048, TS2531, TS2722, TS2454, TS2538) // @ts-expect-error ST-2949_3 window.tCatalogDict['mm']; storeProdDimensions = el_product.querySelector('.js-catalog-prod-dimensions'); if (storeProdDimensions) { storeProdDimensions.innerHTML = fullDimension; } } if (fullDimension) { Array.prototype.forEach.call(el_tabCharcs, function (tabCharc) { var storeProdDimensions = tabCharc.querySelector('.js-catalog-prod-dimensions'); if (storeProdDimensions) { storeProdDimensions.innerHTML = fullDimension; } }); } // update weight var fullWeight = ''; var storeProdWeight; // TODO ST-2949_1: missing properties on Window/DOM/data objects (TS2339, TS2551) // @ts-expect-error ST-2949_1 if (edition.pack_m) { // @ts-expect-error ST-2949_1 el_product.setAttribute('data-product-pack-m', edition.pack_m); fullWeight = // @ts-expect-error ST-2949_1 window.tCatalogDict['product-weight'] + ': ' + edition.pack_m + ' ' + window.tCatalogDict['g']; storeProdWeight = el_product.querySelector('.js-catalog-prod-weight'); if (storeProdWeight) { storeProdWeight.innerHTML = fullWeight; } } else if (defpackobj && parseFloat(defpackobj.pack_m) > 0) { el_product.setAttribute('data-product-pack-m', defpackobj.pack_m); fullWeight = // TODO ST-2949_3: null / undefined (TS18047, TS18048, TS2531, TS2722, TS2454, TS2538) // @ts-expect-error ST-2949_3 window.tCatalogDict['product-weight'] + ': ' + defpackobj.pack_m + ' ' + window.tCatalogDict['g']; storeProdWeight = el_product.querySelector('.js-catalog-prod-weight'); if (storeProdWeight) { storeProdWeight.innerHTML = fullWeight;