/* smm-e.ru 2011 - 2026 */
if(document.readyState!=='loading'){smmExploit_optionsSkuCheck()}else{document.addEventListener("DOMContentLoaded",()=>{smmExploit_optionsSkuCheck()})}
window.addEventListener('locationchange',function(){smmExploit_optionsSkuCheck()});window.addEventListener('popstate',function(){smmExploit_optionsSkuCheck()});if(typeof window.navigation!="undefined"){window.navigation.addEventListener("navigate",()=>{smmExploit_optionsSkuCheck()})}else{!(function(){let smmExploit_lastUrl=location.href;new MutationObserver(()=>{const url=location.href;if(url!==smmExploit_lastUrl){smmExploit_lastUrl=url;smmExploit_optionsSkuCheck()}}).observe(document,{subtree:!0,childList:!0,})})()};var smmExploit_sku_checkFlag="data-smmexploit-sku-check";let smmExploit_sku_t706__sidebar_observe=new MutationObserver(()=>{let prod_option_arr=document.querySelectorAll('.t706__sidebar .t706__sidebar-products .t-descr .t706__product-title__option > div:not(['+smmExploit_sku_checkFlag+'="1"])');if(prod_option_arr.length>0){smmExploit_optionsSkuRem(prod_option_arr,1)}});setTimeout(()=>{let smmExploit_sku_t706__sidebar=document.querySelector('.t706__sidebar .t706__sidebar-products');if(smmExploit_sku_t706__sidebar){smmExploit_sku_t706__sidebar_observe.observe(smmExploit_sku_t706__sidebar,{childList:!0,subtree:!0,attributes:!0})}},500);let smmExploit_sku_t706__cartpage_observe=new MutationObserver(()=>{let prod_option_arr=document.querySelectorAll('.t706__cartpage .t706__cartpage-products > .t706__product .t-descr .t706__product-title__option > div:not(['+smmExploit_sku_checkFlag+'="1"])');if(prod_option_arr.length>0){smmExploit_optionsSkuRem(prod_option_arr,1)}});setTimeout(()=>{let smmExploit_sku_t706__cartpage=document.querySelector('.t706__cartpage .t706__cartpage-products');if(smmExploit_sku_t706__cartpage){smmExploit_sku_t706__cartpage_observe.observe(smmExploit_sku_t706__cartpage,{childList:!0,subtree:!0,attributes:!0})}},500);let smmExploit_sku_footer_t706__cartwin_observe=new MutationObserver(()=>{let prod_option_arr=document.querySelectorAll('#t-footer .t706 .t706__cartwin .t706__cartwin-content .t706__cartwin-products .t706__product .t-descr .t706__product-title__option > div:not(['+smmExploit_sku_checkFlag+'="1"])');if(prod_option_arr.length>0){smmExploit_optionsSkuRem(prod_option_arr,1)}});setTimeout(()=>{let smmExploit_sku_footer_t706__cartwin=document.querySelector('#t-footer .t706 .t706__cartwin .t706__cartwin-content .t706__cartwin-products');if(smmExploit_sku_footer_t706__cartwin){smmExploit_sku_footer_t706__cartwin_observe.observe(smmExploit_sku_footer_t706__cartwin,{childList:!0,subtree:!0,attributes:!0})}},500);function smmExploit_optionsSkuCheck(){if(window.location.pathname.indexOf('/tproduct/')!==!1){let prod_info_arr=document.getElementsByClassName('t-store__prod-popup__info');if(prod_info_arr.length>0){Array.from(prod_info_arr).forEach(()=>{setTimeout(()=>{let prod_option_arr=document.querySelectorAll('.t-store__prod-popup__info select.js-product-edition-option-variants > option:not(['+smmExploit_sku_checkFlag+'="1"])');if(prod_option_arr.length>0){smmExploit_optionsSkuRem(prod_option_arr)}
prod_option_arr=document.querySelectorAll('.t-store__prod-popup__info select.js-product-option-variants > option:not(['+smmExploit_sku_checkFlag+'="1"])');if(prod_option_arr.length>0){smmExploit_optionsSkuRem(prod_option_arr)}
prod_option_arr=document.querySelectorAll('.t-store__prod-popup__info .js-product-controls-wrapper .t-product__option .t-product__checkbox-wrap > label > span:not(['+smmExploit_sku_checkFlag+'="1"])');if(prod_option_arr.length>0){smmExploit_optionsSkuRem(prod_option_arr)}},1000)})}}
setTimeout(()=>{let prod_option_arr=document.querySelectorAll('.t-product__option .t-product__option-variants select.js-product-option-variants.t-product__option-select.t-typography__options > option:not(['+smmExploit_sku_checkFlag+'="1"])');if(prod_option_arr.length>0){smmExploit_optionsSkuRem(prod_option_arr)}
prod_option_arr=document.querySelectorAll('.t-body .t-rec .t-store .js-product.t-store__card .js-product-controls-wrapper div.t-product__checkbox-wrap > label.t-checkbox__control > span:not(['+smmExploit_sku_checkFlag+'="1"])');if(prod_option_arr.length>0){smmExploit_optionsSkuRem(prod_option_arr)}},2500)}
function smmExploit_optionsSkuRem(prod_option_arr,type=0){var smmExploit_sku_str=" / SKU:";Array.from(prod_option_arr).forEach((prod_option)=>{let indexOf_sku=prod_option.innerText.indexOf(smmExploit_sku_str);if(indexOf_sku>0){if(type==0){prod_option.innerText=prod_option.innerText.substring(0,indexOf_sku)}else if(type==1){prod_option.innerText=prod_option.innerText.replace(/ \/ SKU\:(.|)[0-9]+/gi,"")}
prod_option.setAttribute(smmExploit_sku_checkFlag,"1")}})}